@aldiokta/protocgen 1.1.49 → 1.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/bidding/bidding_pb.js +62 -2
  3. package/prisca/v1/business_fields/business_fields_grpc_pb.js +180 -0
  4. package/prisca/v1/business_fields/business_fields_pb.js +4372 -0
  5. package/prisca/v1/core/bank/bank_grpc_pb.js +156 -0
  6. package/prisca/v1/core/bank/bank_pb.js +1988 -0
  7. package/prisca/v1/core/company/company_grpc_pb.js +11 -0
  8. package/prisca/v1/core/cron_monitor/cron_monitor_grpc_pb.js +221 -0
  9. package/prisca/v1/core/cron_monitor/cron_monitor_pb.js +2681 -0
  10. package/prisca/v1/core/employee/employee_grpc_pb.js +11 -0
  11. package/prisca/v1/core/file_upload/file_upload_pb.js +31 -1
  12. package/prisca/v1/core/item_transaction/item_transaction_pb.js +3400 -930
  13. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +12 -0
  14. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +102 -1
  15. package/prisca/v1/core/line_of_approval_delegation/line_of_approval_delegation_grpc_pb.js +180 -0
  16. package/prisca/v1/core/line_of_approval_delegation/line_of_approval_delegation_pb.js +3707 -0
  17. package/prisca/v1/core/plant/plant_grpc_pb.js +156 -0
  18. package/prisca/v1/core/plant/plant_pb.js +2078 -0
  19. package/prisca/v1/delivery_order/delivery_order_pb.js +31 -1
  20. package/prisca/v1/global/meta/meta_pb.js +452 -0
  21. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +11 -0
  22. package/prisca/v1/good_receipt/good_receipt_pb.js +268 -3
  23. package/prisca/v1/invoice/invoice_grpc_pb.js +11 -0
  24. package/prisca/v1/invoice/invoice_pb.js +292 -4
  25. package/prisca/v1/invoice_type/invoice_type_grpc_pb.js +202 -0
  26. package/prisca/v1/invoice_type/invoice_type_pb.js +3598 -0
  27. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +66 -0
  28. package/prisca/v1/purchase_order/purchase_order_pb.js +1986 -323
  29. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +44 -0
  30. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +2238 -30
  31. package/prisca/v1/vendor_domain/vendor_domain_pb.js +224 -2
@@ -38,6 +38,8 @@ goog.exportSymbol('proto.DeletePurchaseRequisitionResponse', null, global);
38
38
  goog.exportSymbol('proto.DeletePurchaseRequisitionTemplateRequest', null, global);
39
39
  goog.exportSymbol('proto.DeletePurchaseRequisitionTemplateResponse', null, global);
40
40
  goog.exportSymbol('proto.GetItemTransactionTrxDetail', null, global);
41
+ goog.exportSymbol('proto.GetPRItemTrackListResponse', null, global);
42
+ goog.exportSymbol('proto.GetPRProgressTrackListResponse', null, global);
41
43
  goog.exportSymbol('proto.GetPurchaseRequisitionDetailTrxDetail', null, global);
42
44
  goog.exportSymbol('proto.GetPurchaseRequisitionTemplateByIdRequest', null, global);
43
45
  goog.exportSymbol('proto.GetPurchaseRequisitionTemplateByIdResponse', null, global);
@@ -46,6 +48,7 @@ goog.exportSymbol('proto.GetPurchaseRequisitionTemplateListResponse', null, glob
46
48
  goog.exportSymbol('proto.GetPurchaseRequisitionTransactionTrxDetail', null, global);
47
49
  goog.exportSymbol('proto.GetPurchaseRequisitionTransactionTrxDetailItemDetailPreload', null, global);
48
50
  goog.exportSymbol('proto.GetPurchaseRequisitionTransactionTrxDetailItemPreload', null, global);
51
+ goog.exportSymbol('proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload', null, global);
49
52
  goog.exportSymbol('proto.GetPurchaseRequisitionTransactionTrxDetailPreloadResponse', null, global);
50
53
  goog.exportSymbol('proto.GetPurchaseRequisitionTrxByGroupRefRequest', null, global);
51
54
  goog.exportSymbol('proto.GetPurchaseRequisitionTrxByIdRequest', null, global);
@@ -63,6 +66,8 @@ goog.exportSymbol('proto.GetPurchaseRequisitionTrxDetailListResponse', null, glo
63
66
  goog.exportSymbol('proto.GetPurchaseRequisitionTrxDetailListTableResponse', null, global);
64
67
  goog.exportSymbol('proto.GetPurchaseRequisitionTrxListRequest', null, global);
65
68
  goog.exportSymbol('proto.GetPurchaseRequisitionTrxListResponse', null, global);
69
+ goog.exportSymbol('proto.PurchaseRequisitionItemTrack', null, global);
70
+ goog.exportSymbol('proto.PurchaseRequisitionProgressTrack', null, global);
66
71
  goog.exportSymbol('proto.PurchaseRequisitionTrx', null, global);
67
72
  goog.exportSymbol('proto.UpdatePurchaseRequisitionFileReq', null, global);
68
73
  goog.exportSymbol('proto.UpdatePurchaseRequisitionTemplateRequest', null, global);
@@ -847,6 +852,27 @@ if (goog.DEBUG && !COMPILED) {
847
852
  */
848
853
  proto.GetPurchaseRequisitionTransactionTrxDetailItemDetailPreload.displayName = 'proto.GetPurchaseRequisitionTransactionTrxDetailItemDetailPreload';
849
854
  }
855
+ /**
856
+ * Generated by JsPbCodeGenerator.
857
+ * @param {Array=} opt_data Optional initial data array, typically from a
858
+ * server response, or constructed directly in Javascript. The array is used
859
+ * in place and becomes part of the constructed object. It is not cloned.
860
+ * If no data is provided, the constructed object will be empty, but still
861
+ * valid.
862
+ * @extends {jspb.Message}
863
+ * @constructor
864
+ */
865
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload = function(opt_data) {
866
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.repeatedFields_, null);
867
+ };
868
+ goog.inherits(proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload, jspb.Message);
869
+ if (goog.DEBUG && !COMPILED) {
870
+ /**
871
+ * @public
872
+ * @override
873
+ */
874
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.displayName = 'proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload';
875
+ }
850
876
  /**
851
877
  * Generated by JsPbCodeGenerator.
852
878
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -973,6 +999,90 @@ if (goog.DEBUG && !COMPILED) {
973
999
  */
974
1000
  proto.DeletePurchaseRequisitionResponse.displayName = 'proto.DeletePurchaseRequisitionResponse';
975
1001
  }
1002
+ /**
1003
+ * Generated by JsPbCodeGenerator.
1004
+ * @param {Array=} opt_data Optional initial data array, typically from a
1005
+ * server response, or constructed directly in Javascript. The array is used
1006
+ * in place and becomes part of the constructed object. It is not cloned.
1007
+ * If no data is provided, the constructed object will be empty, but still
1008
+ * valid.
1009
+ * @extends {jspb.Message}
1010
+ * @constructor
1011
+ */
1012
+ proto.PurchaseRequisitionItemTrack = function(opt_data) {
1013
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1014
+ };
1015
+ goog.inherits(proto.PurchaseRequisitionItemTrack, jspb.Message);
1016
+ if (goog.DEBUG && !COMPILED) {
1017
+ /**
1018
+ * @public
1019
+ * @override
1020
+ */
1021
+ proto.PurchaseRequisitionItemTrack.displayName = 'proto.PurchaseRequisitionItemTrack';
1022
+ }
1023
+ /**
1024
+ * Generated by JsPbCodeGenerator.
1025
+ * @param {Array=} opt_data Optional initial data array, typically from a
1026
+ * server response, or constructed directly in Javascript. The array is used
1027
+ * in place and becomes part of the constructed object. It is not cloned.
1028
+ * If no data is provided, the constructed object will be empty, but still
1029
+ * valid.
1030
+ * @extends {jspb.Message}
1031
+ * @constructor
1032
+ */
1033
+ proto.GetPRItemTrackListResponse = function(opt_data) {
1034
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetPRItemTrackListResponse.repeatedFields_, null);
1035
+ };
1036
+ goog.inherits(proto.GetPRItemTrackListResponse, jspb.Message);
1037
+ if (goog.DEBUG && !COMPILED) {
1038
+ /**
1039
+ * @public
1040
+ * @override
1041
+ */
1042
+ proto.GetPRItemTrackListResponse.displayName = 'proto.GetPRItemTrackListResponse';
1043
+ }
1044
+ /**
1045
+ * Generated by JsPbCodeGenerator.
1046
+ * @param {Array=} opt_data Optional initial data array, typically from a
1047
+ * server response, or constructed directly in Javascript. The array is used
1048
+ * in place and becomes part of the constructed object. It is not cloned.
1049
+ * If no data is provided, the constructed object will be empty, but still
1050
+ * valid.
1051
+ * @extends {jspb.Message}
1052
+ * @constructor
1053
+ */
1054
+ proto.PurchaseRequisitionProgressTrack = function(opt_data) {
1055
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1056
+ };
1057
+ goog.inherits(proto.PurchaseRequisitionProgressTrack, jspb.Message);
1058
+ if (goog.DEBUG && !COMPILED) {
1059
+ /**
1060
+ * @public
1061
+ * @override
1062
+ */
1063
+ proto.PurchaseRequisitionProgressTrack.displayName = 'proto.PurchaseRequisitionProgressTrack';
1064
+ }
1065
+ /**
1066
+ * Generated by JsPbCodeGenerator.
1067
+ * @param {Array=} opt_data Optional initial data array, typically from a
1068
+ * server response, or constructed directly in Javascript. The array is used
1069
+ * in place and becomes part of the constructed object. It is not cloned.
1070
+ * If no data is provided, the constructed object will be empty, but still
1071
+ * valid.
1072
+ * @extends {jspb.Message}
1073
+ * @constructor
1074
+ */
1075
+ proto.GetPRProgressTrackListResponse = function(opt_data) {
1076
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetPRProgressTrackListResponse.repeatedFields_, null);
1077
+ };
1078
+ goog.inherits(proto.GetPRProgressTrackListResponse, jspb.Message);
1079
+ if (goog.DEBUG && !COMPILED) {
1080
+ /**
1081
+ * @public
1082
+ * @override
1083
+ */
1084
+ proto.GetPRProgressTrackListResponse.displayName = 'proto.GetPRProgressTrackListResponse';
1085
+ }
976
1086
 
977
1087
  /**
978
1088
  * List of repeated fields within this message type.
@@ -1040,7 +1150,9 @@ createdBy: jspb.Message.getFieldWithDefault(msg, 24, ""),
1040
1150
  updatedBy: jspb.Message.getFieldWithDefault(msg, 25, ""),
1041
1151
  justification: jspb.Message.getFieldWithDefault(msg, 26, ""),
1042
1152
  filesList: jspb.Message.toObjectList(msg.getFilesList(),
1043
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance)
1153
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
1154
+ requestedBy: jspb.Message.getFieldWithDefault(msg, 28, ""),
1155
+ requestor: (f = msg.getRequestor()) && prisca_v1_global_meta_meta_pb.Creator.toObject(includeInstance, f)
1044
1156
  };
1045
1157
 
1046
1158
  if (includeInstance) {
@@ -1188,6 +1300,15 @@ proto.PurchaseRequisitionTrx.deserializeBinaryFromReader = function(msg, reader)
1188
1300
  reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
1189
1301
  msg.addFiles(value);
1190
1302
  break;
1303
+ case 28:
1304
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1305
+ msg.setRequestedBy(value);
1306
+ break;
1307
+ case 29:
1308
+ var value = new prisca_v1_global_meta_meta_pb.Creator;
1309
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Creator.deserializeBinaryFromReader);
1310
+ msg.setRequestor(value);
1311
+ break;
1191
1312
  default:
1192
1313
  reader.skipField();
1193
1314
  break;
@@ -1409,6 +1530,21 @@ proto.PurchaseRequisitionTrx.serializeBinaryToWriter = function(message, writer)
1409
1530
  prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
1410
1531
  );
1411
1532
  }
1533
+ f = message.getRequestedBy();
1534
+ if (f.length > 0) {
1535
+ writer.writeString(
1536
+ 28,
1537
+ f
1538
+ );
1539
+ }
1540
+ f = message.getRequestor();
1541
+ if (f != null) {
1542
+ writer.writeMessage(
1543
+ 29,
1544
+ f,
1545
+ prisca_v1_global_meta_meta_pb.Creator.serializeBinaryToWriter
1546
+ );
1547
+ }
1412
1548
  };
1413
1549
 
1414
1550
 
@@ -1957,6 +2093,61 @@ proto.PurchaseRequisitionTrx.prototype.clearFilesList = function() {
1957
2093
  };
1958
2094
 
1959
2095
 
2096
+ /**
2097
+ * optional string requested_by = 28;
2098
+ * @return {string}
2099
+ */
2100
+ proto.PurchaseRequisitionTrx.prototype.getRequestedBy = function() {
2101
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, ""));
2102
+ };
2103
+
2104
+
2105
+ /**
2106
+ * @param {string} value
2107
+ * @return {!proto.PurchaseRequisitionTrx} returns this
2108
+ */
2109
+ proto.PurchaseRequisitionTrx.prototype.setRequestedBy = function(value) {
2110
+ return jspb.Message.setProto3StringField(this, 28, value);
2111
+ };
2112
+
2113
+
2114
+ /**
2115
+ * optional prisca.v1.global.meta.Creator requestor = 29;
2116
+ * @return {?proto.prisca.v1.global.meta.Creator}
2117
+ */
2118
+ proto.PurchaseRequisitionTrx.prototype.getRequestor = function() {
2119
+ return /** @type{?proto.prisca.v1.global.meta.Creator} */ (
2120
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Creator, 29));
2121
+ };
2122
+
2123
+
2124
+ /**
2125
+ * @param {?proto.prisca.v1.global.meta.Creator|undefined} value
2126
+ * @return {!proto.PurchaseRequisitionTrx} returns this
2127
+ */
2128
+ proto.PurchaseRequisitionTrx.prototype.setRequestor = function(value) {
2129
+ return jspb.Message.setWrapperField(this, 29, value);
2130
+ };
2131
+
2132
+
2133
+ /**
2134
+ * Clears the message field making it undefined.
2135
+ * @return {!proto.PurchaseRequisitionTrx} returns this
2136
+ */
2137
+ proto.PurchaseRequisitionTrx.prototype.clearRequestor = function() {
2138
+ return this.setRequestor(undefined);
2139
+ };
2140
+
2141
+
2142
+ /**
2143
+ * Returns whether this field is set.
2144
+ * @return {boolean}
2145
+ */
2146
+ proto.PurchaseRequisitionTrx.prototype.hasRequestor = function() {
2147
+ return jspb.Message.getField(this, 29) != null;
2148
+ };
2149
+
2150
+
1960
2151
 
1961
2152
  /**
1962
2153
  * List of repeated fields within this message type.
@@ -2015,7 +2206,8 @@ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 15, ""),
2015
2206
  status: jspb.Message.getFieldWithDefault(msg, 16, ""),
2016
2207
  justification: jspb.Message.getFieldWithDefault(msg, 17, ""),
2017
2208
  filesList: jspb.Message.toObjectList(msg.getFilesList(),
2018
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance)
2209
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
2210
+ requestedBy: jspb.Message.getFieldWithDefault(msg, 19, "")
2019
2211
  };
2020
2212
 
2021
2213
  if (includeInstance) {
@@ -2126,6 +2318,10 @@ proto.BasePurchaseRequisitionTrx.deserializeBinaryFromReader = function(msg, rea
2126
2318
  reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
2127
2319
  msg.addFiles(value);
2128
2320
  break;
2321
+ case 19:
2322
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2323
+ msg.setRequestedBy(value);
2324
+ break;
2129
2325
  default:
2130
2326
  reader.skipField();
2131
2327
  break;
@@ -2283,6 +2479,13 @@ proto.BasePurchaseRequisitionTrx.serializeBinaryToWriter = function(message, wri
2283
2479
  prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
2284
2480
  );
2285
2481
  }
2482
+ f = message.getRequestedBy();
2483
+ if (f.length > 0) {
2484
+ writer.writeString(
2485
+ 19,
2486
+ f
2487
+ );
2488
+ }
2286
2489
  };
2287
2490
 
2288
2491
 
@@ -2650,6 +2853,24 @@ proto.BasePurchaseRequisitionTrx.prototype.clearFilesList = function() {
2650
2853
  };
2651
2854
 
2652
2855
 
2856
+ /**
2857
+ * optional string requested_by = 19;
2858
+ * @return {string}
2859
+ */
2860
+ proto.BasePurchaseRequisitionTrx.prototype.getRequestedBy = function() {
2861
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
2862
+ };
2863
+
2864
+
2865
+ /**
2866
+ * @param {string} value
2867
+ * @return {!proto.BasePurchaseRequisitionTrx} returns this
2868
+ */
2869
+ proto.BasePurchaseRequisitionTrx.prototype.setRequestedBy = function(value) {
2870
+ return jspb.Message.setProto3StringField(this, 19, value);
2871
+ };
2872
+
2873
+
2653
2874
 
2654
2875
  /**
2655
2876
  * List of repeated fields within this message type.
@@ -2710,7 +2931,8 @@ referencesId: jspb.Message.getFieldWithDefault(msg, 17, ""),
2710
2931
  numberRangeSequence: jspb.Message.getFieldWithDefault(msg, 18, ""),
2711
2932
  justification: jspb.Message.getFieldWithDefault(msg, 19, ""),
2712
2933
  filesList: jspb.Message.toObjectList(msg.getFilesList(),
2713
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance)
2934
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
2935
+ requestedBy: jspb.Message.getFieldWithDefault(msg, 21, "")
2714
2936
  };
2715
2937
 
2716
2938
  if (includeInstance) {
@@ -2829,6 +3051,10 @@ proto.BaseUpdatePurchaseRequisitionTrx.deserializeBinaryFromReader = function(ms
2829
3051
  reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
2830
3052
  msg.addFiles(value);
2831
3053
  break;
3054
+ case 21:
3055
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3056
+ msg.setRequestedBy(value);
3057
+ break;
2832
3058
  default:
2833
3059
  reader.skipField();
2834
3060
  break;
@@ -3000,6 +3226,13 @@ proto.BaseUpdatePurchaseRequisitionTrx.serializeBinaryToWriter = function(messag
3000
3226
  prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
3001
3227
  );
3002
3228
  }
3229
+ f = message.getRequestedBy();
3230
+ if (f.length > 0) {
3231
+ writer.writeString(
3232
+ 21,
3233
+ f
3234
+ );
3235
+ }
3003
3236
  };
3004
3237
 
3005
3238
 
@@ -3403,6 +3636,24 @@ proto.BaseUpdatePurchaseRequisitionTrx.prototype.clearFilesList = function() {
3403
3636
  };
3404
3637
 
3405
3638
 
3639
+ /**
3640
+ * optional string requested_by = 21;
3641
+ * @return {string}
3642
+ */
3643
+ proto.BaseUpdatePurchaseRequisitionTrx.prototype.getRequestedBy = function() {
3644
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
3645
+ };
3646
+
3647
+
3648
+ /**
3649
+ * @param {string} value
3650
+ * @return {!proto.BaseUpdatePurchaseRequisitionTrx} returns this
3651
+ */
3652
+ proto.BaseUpdatePurchaseRequisitionTrx.prototype.setRequestedBy = function(value) {
3653
+ return jspb.Message.setProto3StringField(this, 21, value);
3654
+ };
3655
+
3656
+
3406
3657
 
3407
3658
 
3408
3659
 
@@ -9220,7 +9471,7 @@ proto.GetPurchaseRequisitionTransactionTrxDetailPreloadResponse.prototype.clearP
9220
9471
  * @private {!Array<number>}
9221
9472
  * @const
9222
9473
  */
9223
- proto.GetPurchaseRequisitionTransactionTrxDetailItemPreload.repeatedFields_ = [1,2];
9474
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemPreload.repeatedFields_ = [1,2,3];
9224
9475
 
9225
9476
 
9226
9477
 
@@ -9256,7 +9507,9 @@ proto.GetPurchaseRequisitionTransactionTrxDetailItemPreload.toObject = function(
9256
9507
  prTransactionBuilderItemList: jspb.Message.toObjectList(msg.getPrTransactionBuilderItemList(),
9257
9508
  prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
9258
9509
  prTransactionBuilderItemDetailsList: jspb.Message.toObjectList(msg.getPrTransactionBuilderItemDetailsList(),
9259
- proto.GetPurchaseRequisitionTransactionTrxDetailItemDetailPreload.toObject, includeInstance)
9510
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemDetailPreload.toObject, includeInstance),
9511
+ prTransactionBuilderItemServicesList: jspb.Message.toObjectList(msg.getPrTransactionBuilderItemServicesList(),
9512
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.toObject, includeInstance)
9260
9513
  };
9261
9514
 
9262
9515
  if (includeInstance) {
@@ -9303,6 +9556,11 @@ proto.GetPurchaseRequisitionTransactionTrxDetailItemPreload.deserializeBinaryFro
9303
9556
  reader.readMessage(value,proto.GetPurchaseRequisitionTransactionTrxDetailItemDetailPreload.deserializeBinaryFromReader);
9304
9557
  msg.addPrTransactionBuilderItemDetails(value);
9305
9558
  break;
9559
+ case 3:
9560
+ var value = new proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload;
9561
+ reader.readMessage(value,proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.deserializeBinaryFromReader);
9562
+ msg.addPrTransactionBuilderItemServices(value);
9563
+ break;
9306
9564
  default:
9307
9565
  reader.skipField();
9308
9566
  break;
@@ -9348,6 +9606,14 @@ proto.GetPurchaseRequisitionTransactionTrxDetailItemPreload.serializeBinaryToWri
9348
9606
  proto.GetPurchaseRequisitionTransactionTrxDetailItemDetailPreload.serializeBinaryToWriter
9349
9607
  );
9350
9608
  }
9609
+ f = message.getPrTransactionBuilderItemServicesList();
9610
+ if (f.length > 0) {
9611
+ writer.writeRepeatedMessage(
9612
+ 3,
9613
+ f,
9614
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.serializeBinaryToWriter
9615
+ );
9616
+ }
9351
9617
  };
9352
9618
 
9353
9619
 
@@ -9427,6 +9693,44 @@ proto.GetPurchaseRequisitionTransactionTrxDetailItemPreload.prototype.clearPrTra
9427
9693
  };
9428
9694
 
9429
9695
 
9696
+ /**
9697
+ * repeated GetPurchaseRequisitionTransactionTrxDetailItemServicePreload pr_transaction_builder_item_services = 3;
9698
+ * @return {!Array<!proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload>}
9699
+ */
9700
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemPreload.prototype.getPrTransactionBuilderItemServicesList = function() {
9701
+ return /** @type{!Array<!proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload>} */ (
9702
+ jspb.Message.getRepeatedWrapperField(this, proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload, 3));
9703
+ };
9704
+
9705
+
9706
+ /**
9707
+ * @param {!Array<!proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload>} value
9708
+ * @return {!proto.GetPurchaseRequisitionTransactionTrxDetailItemPreload} returns this
9709
+ */
9710
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemPreload.prototype.setPrTransactionBuilderItemServicesList = function(value) {
9711
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
9712
+ };
9713
+
9714
+
9715
+ /**
9716
+ * @param {!proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload=} opt_value
9717
+ * @param {number=} opt_index
9718
+ * @return {!proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload}
9719
+ */
9720
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemPreload.prototype.addPrTransactionBuilderItemServices = function(opt_value, opt_index) {
9721
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload, opt_index);
9722
+ };
9723
+
9724
+
9725
+ /**
9726
+ * Clears the list making it empty but non-null.
9727
+ * @return {!proto.GetPurchaseRequisitionTransactionTrxDetailItemPreload} returns this
9728
+ */
9729
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemPreload.prototype.clearPrTransactionBuilderItemServicesList = function() {
9730
+ return this.setPrTransactionBuilderItemServicesList([]);
9731
+ };
9732
+
9733
+
9430
9734
 
9431
9735
  /**
9432
9736
  * List of repeated fields within this message type.
@@ -9588,6 +9892,13 @@ proto.GetPurchaseRequisitionTransactionTrxDetailItemDetailPreload.prototype.clea
9588
9892
 
9589
9893
 
9590
9894
 
9895
+ /**
9896
+ * List of repeated fields within this message type.
9897
+ * @private {!Array<number>}
9898
+ * @const
9899
+ */
9900
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.repeatedFields_ = [1];
9901
+
9591
9902
 
9592
9903
 
9593
9904
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -9603,8 +9914,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
9603
9914
  * http://goto/soy-param-migration
9604
9915
  * @return {!Object}
9605
9916
  */
9606
- proto.CreatePurchaseRequisitionTemplateResponse.prototype.toObject = function(opt_includeInstance) {
9607
- return proto.CreatePurchaseRequisitionTemplateResponse.toObject(opt_includeInstance, this);
9917
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.prototype.toObject = function(opt_includeInstance) {
9918
+ return proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.toObject(opt_includeInstance, this);
9608
9919
  };
9609
9920
 
9610
9921
 
@@ -9613,14 +9924,14 @@ proto.CreatePurchaseRequisitionTemplateResponse.prototype.toObject = function(op
9613
9924
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9614
9925
  * the JSPB instance for transitional soy proto support:
9615
9926
  * http://goto/soy-param-migration
9616
- * @param {!proto.CreatePurchaseRequisitionTemplateResponse} msg The msg instance to transform.
9927
+ * @param {!proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload} msg The msg instance to transform.
9617
9928
  * @return {!Object}
9618
9929
  * @suppress {unusedLocalVariables} f is only used for nested messages
9619
9930
  */
9620
- proto.CreatePurchaseRequisitionTemplateResponse.toObject = function(includeInstance, msg) {
9931
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.toObject = function(includeInstance, msg) {
9621
9932
  var f, obj = {
9622
- purchaseRequisitionTransaction: (f = msg.getPurchaseRequisitionTransaction()) && proto.PurchaseRequisitionTrx.toObject(includeInstance, f),
9623
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
9933
+ prTransactionBuilderItemServiceList: jspb.Message.toObjectList(msg.getPrTransactionBuilderItemServiceList(),
9934
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance)
9624
9935
  };
9625
9936
 
9626
9937
  if (includeInstance) {
@@ -9634,23 +9945,23 @@ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(include
9634
9945
  /**
9635
9946
  * Deserializes binary data (in protobuf wire format).
9636
9947
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
9637
- * @return {!proto.CreatePurchaseRequisitionTemplateResponse}
9948
+ * @return {!proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload}
9638
9949
  */
9639
- proto.CreatePurchaseRequisitionTemplateResponse.deserializeBinary = function(bytes) {
9950
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.deserializeBinary = function(bytes) {
9640
9951
  var reader = new jspb.BinaryReader(bytes);
9641
- var msg = new proto.CreatePurchaseRequisitionTemplateResponse;
9642
- return proto.CreatePurchaseRequisitionTemplateResponse.deserializeBinaryFromReader(msg, reader);
9952
+ var msg = new proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload;
9953
+ return proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.deserializeBinaryFromReader(msg, reader);
9643
9954
  };
9644
9955
 
9645
9956
 
9646
9957
  /**
9647
9958
  * Deserializes binary data (in protobuf wire format) from the
9648
9959
  * given reader into the given message object.
9649
- * @param {!proto.CreatePurchaseRequisitionTemplateResponse} msg The message object to deserialize into.
9960
+ * @param {!proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload} msg The message object to deserialize into.
9650
9961
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9651
- * @return {!proto.CreatePurchaseRequisitionTemplateResponse}
9962
+ * @return {!proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload}
9652
9963
  */
9653
- proto.CreatePurchaseRequisitionTemplateResponse.deserializeBinaryFromReader = function(msg, reader) {
9964
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.deserializeBinaryFromReader = function(msg, reader) {
9654
9965
  while (reader.nextField()) {
9655
9966
  if (reader.isEndGroup()) {
9656
9967
  break;
@@ -9658,14 +9969,9 @@ proto.CreatePurchaseRequisitionTemplateResponse.deserializeBinaryFromReader = fu
9658
9969
  var field = reader.getFieldNumber();
9659
9970
  switch (field) {
9660
9971
  case 1:
9661
- var value = new proto.PurchaseRequisitionTrx;
9662
- reader.readMessage(value,proto.PurchaseRequisitionTrx.deserializeBinaryFromReader);
9663
- msg.setPurchaseRequisitionTransaction(value);
9664
- break;
9665
- case 2:
9666
- var value = new prisca_v1_global_meta_meta_pb.Meta;
9667
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
9668
- msg.setMeta(value);
9972
+ var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
9973
+ reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
9974
+ msg.addPrTransactionBuilderItemService(value);
9669
9975
  break;
9670
9976
  default:
9671
9977
  reader.skipField();
@@ -9680,9 +9986,9 @@ proto.CreatePurchaseRequisitionTemplateResponse.deserializeBinaryFromReader = fu
9680
9986
  * Serializes the message to binary data (in protobuf wire format).
9681
9987
  * @return {!Uint8Array}
9682
9988
  */
9683
- proto.CreatePurchaseRequisitionTemplateResponse.prototype.serializeBinary = function() {
9989
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.prototype.serializeBinary = function() {
9684
9990
  var writer = new jspb.BinaryWriter();
9685
- proto.CreatePurchaseRequisitionTemplateResponse.serializeBinaryToWriter(this, writer);
9991
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.serializeBinaryToWriter(this, writer);
9686
9992
  return writer.getResultBuffer();
9687
9993
  };
9688
9994
 
@@ -9690,11 +9996,169 @@ proto.CreatePurchaseRequisitionTemplateResponse.prototype.serializeBinary = func
9690
9996
  /**
9691
9997
  * Serializes the given message to binary data (in protobuf wire
9692
9998
  * format), writing to the given BinaryWriter.
9693
- * @param {!proto.CreatePurchaseRequisitionTemplateResponse} message
9999
+ * @param {!proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload} message
9694
10000
  * @param {!jspb.BinaryWriter} writer
9695
10001
  * @suppress {unusedLocalVariables} f is only used for nested messages
9696
10002
  */
9697
- proto.CreatePurchaseRequisitionTemplateResponse.serializeBinaryToWriter = function(message, writer) {
10003
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.serializeBinaryToWriter = function(message, writer) {
10004
+ var f = undefined;
10005
+ f = message.getPrTransactionBuilderItemServiceList();
10006
+ if (f.length > 0) {
10007
+ writer.writeRepeatedMessage(
10008
+ 1,
10009
+ f,
10010
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
10011
+ );
10012
+ }
10013
+ };
10014
+
10015
+
10016
+ /**
10017
+ * repeated TransactionBuilderFieldsDetail pr_transaction_builder_item_service = 1;
10018
+ * @return {!Array<!proto.TransactionBuilderFieldsDetail>}
10019
+ */
10020
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.prototype.getPrTransactionBuilderItemServiceList = function() {
10021
+ return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
10022
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
10023
+ };
10024
+
10025
+
10026
+ /**
10027
+ * @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
10028
+ * @return {!proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload} returns this
10029
+ */
10030
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.prototype.setPrTransactionBuilderItemServiceList = function(value) {
10031
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
10032
+ };
10033
+
10034
+
10035
+ /**
10036
+ * @param {!proto.TransactionBuilderFieldsDetail=} opt_value
10037
+ * @param {number=} opt_index
10038
+ * @return {!proto.TransactionBuilderFieldsDetail}
10039
+ */
10040
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.prototype.addPrTransactionBuilderItemService = function(opt_value, opt_index) {
10041
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
10042
+ };
10043
+
10044
+
10045
+ /**
10046
+ * Clears the list making it empty but non-null.
10047
+ * @return {!proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload} returns this
10048
+ */
10049
+ proto.GetPurchaseRequisitionTransactionTrxDetailItemServicePreload.prototype.clearPrTransactionBuilderItemServiceList = function() {
10050
+ return this.setPrTransactionBuilderItemServiceList([]);
10051
+ };
10052
+
10053
+
10054
+
10055
+
10056
+
10057
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10058
+ /**
10059
+ * Creates an object representation of this proto.
10060
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10061
+ * Optional fields that are not set will be set to undefined.
10062
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10063
+ * For the list of reserved names please see:
10064
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10065
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10066
+ * JSPB instance for transitional soy proto support:
10067
+ * http://goto/soy-param-migration
10068
+ * @return {!Object}
10069
+ */
10070
+ proto.CreatePurchaseRequisitionTemplateResponse.prototype.toObject = function(opt_includeInstance) {
10071
+ return proto.CreatePurchaseRequisitionTemplateResponse.toObject(opt_includeInstance, this);
10072
+ };
10073
+
10074
+
10075
+ /**
10076
+ * Static version of the {@see toObject} method.
10077
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10078
+ * the JSPB instance for transitional soy proto support:
10079
+ * http://goto/soy-param-migration
10080
+ * @param {!proto.CreatePurchaseRequisitionTemplateResponse} msg The msg instance to transform.
10081
+ * @return {!Object}
10082
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10083
+ */
10084
+ proto.CreatePurchaseRequisitionTemplateResponse.toObject = function(includeInstance, msg) {
10085
+ var f, obj = {
10086
+ purchaseRequisitionTransaction: (f = msg.getPurchaseRequisitionTransaction()) && proto.PurchaseRequisitionTrx.toObject(includeInstance, f),
10087
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
10088
+ };
10089
+
10090
+ if (includeInstance) {
10091
+ obj.$jspbMessageInstance = msg;
10092
+ }
10093
+ return obj;
10094
+ };
10095
+ }
10096
+
10097
+
10098
+ /**
10099
+ * Deserializes binary data (in protobuf wire format).
10100
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10101
+ * @return {!proto.CreatePurchaseRequisitionTemplateResponse}
10102
+ */
10103
+ proto.CreatePurchaseRequisitionTemplateResponse.deserializeBinary = function(bytes) {
10104
+ var reader = new jspb.BinaryReader(bytes);
10105
+ var msg = new proto.CreatePurchaseRequisitionTemplateResponse;
10106
+ return proto.CreatePurchaseRequisitionTemplateResponse.deserializeBinaryFromReader(msg, reader);
10107
+ };
10108
+
10109
+
10110
+ /**
10111
+ * Deserializes binary data (in protobuf wire format) from the
10112
+ * given reader into the given message object.
10113
+ * @param {!proto.CreatePurchaseRequisitionTemplateResponse} msg The message object to deserialize into.
10114
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10115
+ * @return {!proto.CreatePurchaseRequisitionTemplateResponse}
10116
+ */
10117
+ proto.CreatePurchaseRequisitionTemplateResponse.deserializeBinaryFromReader = function(msg, reader) {
10118
+ while (reader.nextField()) {
10119
+ if (reader.isEndGroup()) {
10120
+ break;
10121
+ }
10122
+ var field = reader.getFieldNumber();
10123
+ switch (field) {
10124
+ case 1:
10125
+ var value = new proto.PurchaseRequisitionTrx;
10126
+ reader.readMessage(value,proto.PurchaseRequisitionTrx.deserializeBinaryFromReader);
10127
+ msg.setPurchaseRequisitionTransaction(value);
10128
+ break;
10129
+ case 2:
10130
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
10131
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
10132
+ msg.setMeta(value);
10133
+ break;
10134
+ default:
10135
+ reader.skipField();
10136
+ break;
10137
+ }
10138
+ }
10139
+ return msg;
10140
+ };
10141
+
10142
+
10143
+ /**
10144
+ * Serializes the message to binary data (in protobuf wire format).
10145
+ * @return {!Uint8Array}
10146
+ */
10147
+ proto.CreatePurchaseRequisitionTemplateResponse.prototype.serializeBinary = function() {
10148
+ var writer = new jspb.BinaryWriter();
10149
+ proto.CreatePurchaseRequisitionTemplateResponse.serializeBinaryToWriter(this, writer);
10150
+ return writer.getResultBuffer();
10151
+ };
10152
+
10153
+
10154
+ /**
10155
+ * Serializes the given message to binary data (in protobuf wire
10156
+ * format), writing to the given BinaryWriter.
10157
+ * @param {!proto.CreatePurchaseRequisitionTemplateResponse} message
10158
+ * @param {!jspb.BinaryWriter} writer
10159
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10160
+ */
10161
+ proto.CreatePurchaseRequisitionTemplateResponse.serializeBinaryToWriter = function(message, writer) {
9698
10162
  var f = undefined;
9699
10163
  f = message.getPurchaseRequisitionTransaction();
9700
10164
  if (f != null) {
@@ -10792,4 +11256,1748 @@ proto.DeletePurchaseRequisitionResponse.prototype.hasMeta = function() {
10792
11256
  };
10793
11257
 
10794
11258
 
11259
+
11260
+
11261
+
11262
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11263
+ /**
11264
+ * Creates an object representation of this proto.
11265
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11266
+ * Optional fields that are not set will be set to undefined.
11267
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11268
+ * For the list of reserved names please see:
11269
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11270
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11271
+ * JSPB instance for transitional soy proto support:
11272
+ * http://goto/soy-param-migration
11273
+ * @return {!Object}
11274
+ */
11275
+ proto.PurchaseRequisitionItemTrack.prototype.toObject = function(opt_includeInstance) {
11276
+ return proto.PurchaseRequisitionItemTrack.toObject(opt_includeInstance, this);
11277
+ };
11278
+
11279
+
11280
+ /**
11281
+ * Static version of the {@see toObject} method.
11282
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11283
+ * the JSPB instance for transitional soy proto support:
11284
+ * http://goto/soy-param-migration
11285
+ * @param {!proto.PurchaseRequisitionItemTrack} msg The msg instance to transform.
11286
+ * @return {!Object}
11287
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11288
+ */
11289
+ proto.PurchaseRequisitionItemTrack.toObject = function(includeInstance, msg) {
11290
+ var f, obj = {
11291
+ purchaseRequestNumber: jspb.Message.getFieldWithDefault(msg, 1, ""),
11292
+ purchaseRequestItemNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
11293
+ purchaseRequestType: jspb.Message.getFieldWithDefault(msg, 3, ""),
11294
+ purchaseRequestGroup: jspb.Message.getFieldWithDefault(msg, 4, ""),
11295
+ status: jspb.Message.getFieldWithDefault(msg, 5, ""),
11296
+ materialNo: jspb.Message.getFieldWithDefault(msg, 6, ""),
11297
+ description: jspb.Message.getFieldWithDefault(msg, 7, ""),
11298
+ descriptionDetail: jspb.Message.getFieldWithDefault(msg, 8, ""),
11299
+ materialGroup: jspb.Message.getFieldWithDefault(msg, 9, ""),
11300
+ quantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
11301
+ estimatedPrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
11302
+ department: jspb.Message.getFieldWithDefault(msg, 12, ""),
11303
+ createdBy: jspb.Message.getFieldWithDefault(msg, 13, ""),
11304
+ createdAt: jspb.Message.getFieldWithDefault(msg, 14, ""),
11305
+ purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 15, ""),
11306
+ purchaseOrderQuantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
11307
+ purchaseOrderCreatedAt: jspb.Message.getFieldWithDefault(msg, 17, ""),
11308
+ goodsReceiptNumber: jspb.Message.getFieldWithDefault(msg, 18, ""),
11309
+ goodsReceiptQuantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 19, 0.0),
11310
+ goodsReceiptCreatedAt: jspb.Message.getFieldWithDefault(msg, 20, ""),
11311
+ unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 21, ""),
11312
+ createdByUser: (f = msg.getCreatedByUser()) && prisca_v1_global_meta_meta_pb.Creator.toObject(includeInstance, f)
11313
+ };
11314
+
11315
+ if (includeInstance) {
11316
+ obj.$jspbMessageInstance = msg;
11317
+ }
11318
+ return obj;
11319
+ };
11320
+ }
11321
+
11322
+
11323
+ /**
11324
+ * Deserializes binary data (in protobuf wire format).
11325
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11326
+ * @return {!proto.PurchaseRequisitionItemTrack}
11327
+ */
11328
+ proto.PurchaseRequisitionItemTrack.deserializeBinary = function(bytes) {
11329
+ var reader = new jspb.BinaryReader(bytes);
11330
+ var msg = new proto.PurchaseRequisitionItemTrack;
11331
+ return proto.PurchaseRequisitionItemTrack.deserializeBinaryFromReader(msg, reader);
11332
+ };
11333
+
11334
+
11335
+ /**
11336
+ * Deserializes binary data (in protobuf wire format) from the
11337
+ * given reader into the given message object.
11338
+ * @param {!proto.PurchaseRequisitionItemTrack} msg The message object to deserialize into.
11339
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11340
+ * @return {!proto.PurchaseRequisitionItemTrack}
11341
+ */
11342
+ proto.PurchaseRequisitionItemTrack.deserializeBinaryFromReader = function(msg, reader) {
11343
+ while (reader.nextField()) {
11344
+ if (reader.isEndGroup()) {
11345
+ break;
11346
+ }
11347
+ var field = reader.getFieldNumber();
11348
+ switch (field) {
11349
+ case 1:
11350
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11351
+ msg.setPurchaseRequestNumber(value);
11352
+ break;
11353
+ case 2:
11354
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11355
+ msg.setPurchaseRequestItemNumber(value);
11356
+ break;
11357
+ case 3:
11358
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11359
+ msg.setPurchaseRequestType(value);
11360
+ break;
11361
+ case 4:
11362
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11363
+ msg.setPurchaseRequestGroup(value);
11364
+ break;
11365
+ case 5:
11366
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11367
+ msg.setStatus(value);
11368
+ break;
11369
+ case 6:
11370
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11371
+ msg.setMaterialNo(value);
11372
+ break;
11373
+ case 7:
11374
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11375
+ msg.setDescription(value);
11376
+ break;
11377
+ case 8:
11378
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11379
+ msg.setDescriptionDetail(value);
11380
+ break;
11381
+ case 9:
11382
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11383
+ msg.setMaterialGroup(value);
11384
+ break;
11385
+ case 10:
11386
+ var value = /** @type {number} */ (reader.readDouble());
11387
+ msg.setQuantity(value);
11388
+ break;
11389
+ case 11:
11390
+ var value = /** @type {number} */ (reader.readDouble());
11391
+ msg.setEstimatedPrice(value);
11392
+ break;
11393
+ case 12:
11394
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11395
+ msg.setDepartment(value);
11396
+ break;
11397
+ case 13:
11398
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11399
+ msg.setCreatedBy(value);
11400
+ break;
11401
+ case 14:
11402
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11403
+ msg.setCreatedAt(value);
11404
+ break;
11405
+ case 15:
11406
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11407
+ msg.setPurchaseOrderNumber(value);
11408
+ break;
11409
+ case 16:
11410
+ var value = /** @type {number} */ (reader.readDouble());
11411
+ msg.setPurchaseOrderQuantity(value);
11412
+ break;
11413
+ case 17:
11414
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11415
+ msg.setPurchaseOrderCreatedAt(value);
11416
+ break;
11417
+ case 18:
11418
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11419
+ msg.setGoodsReceiptNumber(value);
11420
+ break;
11421
+ case 19:
11422
+ var value = /** @type {number} */ (reader.readDouble());
11423
+ msg.setGoodsReceiptQuantity(value);
11424
+ break;
11425
+ case 20:
11426
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11427
+ msg.setGoodsReceiptCreatedAt(value);
11428
+ break;
11429
+ case 21:
11430
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
11431
+ msg.setUnitOfMeasure(value);
11432
+ break;
11433
+ case 22:
11434
+ var value = new prisca_v1_global_meta_meta_pb.Creator;
11435
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Creator.deserializeBinaryFromReader);
11436
+ msg.setCreatedByUser(value);
11437
+ break;
11438
+ default:
11439
+ reader.skipField();
11440
+ break;
11441
+ }
11442
+ }
11443
+ return msg;
11444
+ };
11445
+
11446
+
11447
+ /**
11448
+ * Serializes the message to binary data (in protobuf wire format).
11449
+ * @return {!Uint8Array}
11450
+ */
11451
+ proto.PurchaseRequisitionItemTrack.prototype.serializeBinary = function() {
11452
+ var writer = new jspb.BinaryWriter();
11453
+ proto.PurchaseRequisitionItemTrack.serializeBinaryToWriter(this, writer);
11454
+ return writer.getResultBuffer();
11455
+ };
11456
+
11457
+
11458
+ /**
11459
+ * Serializes the given message to binary data (in protobuf wire
11460
+ * format), writing to the given BinaryWriter.
11461
+ * @param {!proto.PurchaseRequisitionItemTrack} message
11462
+ * @param {!jspb.BinaryWriter} writer
11463
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11464
+ */
11465
+ proto.PurchaseRequisitionItemTrack.serializeBinaryToWriter = function(message, writer) {
11466
+ var f = undefined;
11467
+ f = message.getPurchaseRequestNumber();
11468
+ if (f.length > 0) {
11469
+ writer.writeString(
11470
+ 1,
11471
+ f
11472
+ );
11473
+ }
11474
+ f = message.getPurchaseRequestItemNumber();
11475
+ if (f.length > 0) {
11476
+ writer.writeString(
11477
+ 2,
11478
+ f
11479
+ );
11480
+ }
11481
+ f = message.getPurchaseRequestType();
11482
+ if (f.length > 0) {
11483
+ writer.writeString(
11484
+ 3,
11485
+ f
11486
+ );
11487
+ }
11488
+ f = message.getPurchaseRequestGroup();
11489
+ if (f.length > 0) {
11490
+ writer.writeString(
11491
+ 4,
11492
+ f
11493
+ );
11494
+ }
11495
+ f = message.getStatus();
11496
+ if (f.length > 0) {
11497
+ writer.writeString(
11498
+ 5,
11499
+ f
11500
+ );
11501
+ }
11502
+ f = message.getMaterialNo();
11503
+ if (f.length > 0) {
11504
+ writer.writeString(
11505
+ 6,
11506
+ f
11507
+ );
11508
+ }
11509
+ f = message.getDescription();
11510
+ if (f.length > 0) {
11511
+ writer.writeString(
11512
+ 7,
11513
+ f
11514
+ );
11515
+ }
11516
+ f = message.getDescriptionDetail();
11517
+ if (f.length > 0) {
11518
+ writer.writeString(
11519
+ 8,
11520
+ f
11521
+ );
11522
+ }
11523
+ f = message.getMaterialGroup();
11524
+ if (f.length > 0) {
11525
+ writer.writeString(
11526
+ 9,
11527
+ f
11528
+ );
11529
+ }
11530
+ f = message.getQuantity();
11531
+ if (f !== 0.0) {
11532
+ writer.writeDouble(
11533
+ 10,
11534
+ f
11535
+ );
11536
+ }
11537
+ f = message.getEstimatedPrice();
11538
+ if (f !== 0.0) {
11539
+ writer.writeDouble(
11540
+ 11,
11541
+ f
11542
+ );
11543
+ }
11544
+ f = message.getDepartment();
11545
+ if (f.length > 0) {
11546
+ writer.writeString(
11547
+ 12,
11548
+ f
11549
+ );
11550
+ }
11551
+ f = message.getCreatedBy();
11552
+ if (f.length > 0) {
11553
+ writer.writeString(
11554
+ 13,
11555
+ f
11556
+ );
11557
+ }
11558
+ f = message.getCreatedAt();
11559
+ if (f.length > 0) {
11560
+ writer.writeString(
11561
+ 14,
11562
+ f
11563
+ );
11564
+ }
11565
+ f = message.getPurchaseOrderNumber();
11566
+ if (f.length > 0) {
11567
+ writer.writeString(
11568
+ 15,
11569
+ f
11570
+ );
11571
+ }
11572
+ f = message.getPurchaseOrderQuantity();
11573
+ if (f !== 0.0) {
11574
+ writer.writeDouble(
11575
+ 16,
11576
+ f
11577
+ );
11578
+ }
11579
+ f = message.getPurchaseOrderCreatedAt();
11580
+ if (f.length > 0) {
11581
+ writer.writeString(
11582
+ 17,
11583
+ f
11584
+ );
11585
+ }
11586
+ f = message.getGoodsReceiptNumber();
11587
+ if (f.length > 0) {
11588
+ writer.writeString(
11589
+ 18,
11590
+ f
11591
+ );
11592
+ }
11593
+ f = message.getGoodsReceiptQuantity();
11594
+ if (f !== 0.0) {
11595
+ writer.writeDouble(
11596
+ 19,
11597
+ f
11598
+ );
11599
+ }
11600
+ f = message.getGoodsReceiptCreatedAt();
11601
+ if (f.length > 0) {
11602
+ writer.writeString(
11603
+ 20,
11604
+ f
11605
+ );
11606
+ }
11607
+ f = message.getUnitOfMeasure();
11608
+ if (f.length > 0) {
11609
+ writer.writeString(
11610
+ 21,
11611
+ f
11612
+ );
11613
+ }
11614
+ f = message.getCreatedByUser();
11615
+ if (f != null) {
11616
+ writer.writeMessage(
11617
+ 22,
11618
+ f,
11619
+ prisca_v1_global_meta_meta_pb.Creator.serializeBinaryToWriter
11620
+ );
11621
+ }
11622
+ };
11623
+
11624
+
11625
+ /**
11626
+ * optional string purchase_request_number = 1;
11627
+ * @return {string}
11628
+ */
11629
+ proto.PurchaseRequisitionItemTrack.prototype.getPurchaseRequestNumber = function() {
11630
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11631
+ };
11632
+
11633
+
11634
+ /**
11635
+ * @param {string} value
11636
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11637
+ */
11638
+ proto.PurchaseRequisitionItemTrack.prototype.setPurchaseRequestNumber = function(value) {
11639
+ return jspb.Message.setProto3StringField(this, 1, value);
11640
+ };
11641
+
11642
+
11643
+ /**
11644
+ * optional string purchase_request_item_number = 2;
11645
+ * @return {string}
11646
+ */
11647
+ proto.PurchaseRequisitionItemTrack.prototype.getPurchaseRequestItemNumber = function() {
11648
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11649
+ };
11650
+
11651
+
11652
+ /**
11653
+ * @param {string} value
11654
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11655
+ */
11656
+ proto.PurchaseRequisitionItemTrack.prototype.setPurchaseRequestItemNumber = function(value) {
11657
+ return jspb.Message.setProto3StringField(this, 2, value);
11658
+ };
11659
+
11660
+
11661
+ /**
11662
+ * optional string purchase_request_type = 3;
11663
+ * @return {string}
11664
+ */
11665
+ proto.PurchaseRequisitionItemTrack.prototype.getPurchaseRequestType = function() {
11666
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
11667
+ };
11668
+
11669
+
11670
+ /**
11671
+ * @param {string} value
11672
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11673
+ */
11674
+ proto.PurchaseRequisitionItemTrack.prototype.setPurchaseRequestType = function(value) {
11675
+ return jspb.Message.setProto3StringField(this, 3, value);
11676
+ };
11677
+
11678
+
11679
+ /**
11680
+ * optional string purchase_request_group = 4;
11681
+ * @return {string}
11682
+ */
11683
+ proto.PurchaseRequisitionItemTrack.prototype.getPurchaseRequestGroup = function() {
11684
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
11685
+ };
11686
+
11687
+
11688
+ /**
11689
+ * @param {string} value
11690
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11691
+ */
11692
+ proto.PurchaseRequisitionItemTrack.prototype.setPurchaseRequestGroup = function(value) {
11693
+ return jspb.Message.setProto3StringField(this, 4, value);
11694
+ };
11695
+
11696
+
11697
+ /**
11698
+ * optional string status = 5;
11699
+ * @return {string}
11700
+ */
11701
+ proto.PurchaseRequisitionItemTrack.prototype.getStatus = function() {
11702
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
11703
+ };
11704
+
11705
+
11706
+ /**
11707
+ * @param {string} value
11708
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11709
+ */
11710
+ proto.PurchaseRequisitionItemTrack.prototype.setStatus = function(value) {
11711
+ return jspb.Message.setProto3StringField(this, 5, value);
11712
+ };
11713
+
11714
+
11715
+ /**
11716
+ * optional string material_no = 6;
11717
+ * @return {string}
11718
+ */
11719
+ proto.PurchaseRequisitionItemTrack.prototype.getMaterialNo = function() {
11720
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
11721
+ };
11722
+
11723
+
11724
+ /**
11725
+ * @param {string} value
11726
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11727
+ */
11728
+ proto.PurchaseRequisitionItemTrack.prototype.setMaterialNo = function(value) {
11729
+ return jspb.Message.setProto3StringField(this, 6, value);
11730
+ };
11731
+
11732
+
11733
+ /**
11734
+ * optional string description = 7;
11735
+ * @return {string}
11736
+ */
11737
+ proto.PurchaseRequisitionItemTrack.prototype.getDescription = function() {
11738
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
11739
+ };
11740
+
11741
+
11742
+ /**
11743
+ * @param {string} value
11744
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11745
+ */
11746
+ proto.PurchaseRequisitionItemTrack.prototype.setDescription = function(value) {
11747
+ return jspb.Message.setProto3StringField(this, 7, value);
11748
+ };
11749
+
11750
+
11751
+ /**
11752
+ * optional string description_detail = 8;
11753
+ * @return {string}
11754
+ */
11755
+ proto.PurchaseRequisitionItemTrack.prototype.getDescriptionDetail = function() {
11756
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
11757
+ };
11758
+
11759
+
11760
+ /**
11761
+ * @param {string} value
11762
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11763
+ */
11764
+ proto.PurchaseRequisitionItemTrack.prototype.setDescriptionDetail = function(value) {
11765
+ return jspb.Message.setProto3StringField(this, 8, value);
11766
+ };
11767
+
11768
+
11769
+ /**
11770
+ * optional string material_group = 9;
11771
+ * @return {string}
11772
+ */
11773
+ proto.PurchaseRequisitionItemTrack.prototype.getMaterialGroup = function() {
11774
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
11775
+ };
11776
+
11777
+
11778
+ /**
11779
+ * @param {string} value
11780
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11781
+ */
11782
+ proto.PurchaseRequisitionItemTrack.prototype.setMaterialGroup = function(value) {
11783
+ return jspb.Message.setProto3StringField(this, 9, value);
11784
+ };
11785
+
11786
+
11787
+ /**
11788
+ * optional double quantity = 10;
11789
+ * @return {number}
11790
+ */
11791
+ proto.PurchaseRequisitionItemTrack.prototype.getQuantity = function() {
11792
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
11793
+ };
11794
+
11795
+
11796
+ /**
11797
+ * @param {number} value
11798
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11799
+ */
11800
+ proto.PurchaseRequisitionItemTrack.prototype.setQuantity = function(value) {
11801
+ return jspb.Message.setProto3FloatField(this, 10, value);
11802
+ };
11803
+
11804
+
11805
+ /**
11806
+ * optional double estimated_price = 11;
11807
+ * @return {number}
11808
+ */
11809
+ proto.PurchaseRequisitionItemTrack.prototype.getEstimatedPrice = function() {
11810
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0));
11811
+ };
11812
+
11813
+
11814
+ /**
11815
+ * @param {number} value
11816
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11817
+ */
11818
+ proto.PurchaseRequisitionItemTrack.prototype.setEstimatedPrice = function(value) {
11819
+ return jspb.Message.setProto3FloatField(this, 11, value);
11820
+ };
11821
+
11822
+
11823
+ /**
11824
+ * optional string department = 12;
11825
+ * @return {string}
11826
+ */
11827
+ proto.PurchaseRequisitionItemTrack.prototype.getDepartment = function() {
11828
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
11829
+ };
11830
+
11831
+
11832
+ /**
11833
+ * @param {string} value
11834
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11835
+ */
11836
+ proto.PurchaseRequisitionItemTrack.prototype.setDepartment = function(value) {
11837
+ return jspb.Message.setProto3StringField(this, 12, value);
11838
+ };
11839
+
11840
+
11841
+ /**
11842
+ * optional string created_by = 13;
11843
+ * @return {string}
11844
+ */
11845
+ proto.PurchaseRequisitionItemTrack.prototype.getCreatedBy = function() {
11846
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
11847
+ };
11848
+
11849
+
11850
+ /**
11851
+ * @param {string} value
11852
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11853
+ */
11854
+ proto.PurchaseRequisitionItemTrack.prototype.setCreatedBy = function(value) {
11855
+ return jspb.Message.setProto3StringField(this, 13, value);
11856
+ };
11857
+
11858
+
11859
+ /**
11860
+ * optional string created_at = 14;
11861
+ * @return {string}
11862
+ */
11863
+ proto.PurchaseRequisitionItemTrack.prototype.getCreatedAt = function() {
11864
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
11865
+ };
11866
+
11867
+
11868
+ /**
11869
+ * @param {string} value
11870
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11871
+ */
11872
+ proto.PurchaseRequisitionItemTrack.prototype.setCreatedAt = function(value) {
11873
+ return jspb.Message.setProto3StringField(this, 14, value);
11874
+ };
11875
+
11876
+
11877
+ /**
11878
+ * optional string purchase_order_number = 15;
11879
+ * @return {string}
11880
+ */
11881
+ proto.PurchaseRequisitionItemTrack.prototype.getPurchaseOrderNumber = function() {
11882
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
11883
+ };
11884
+
11885
+
11886
+ /**
11887
+ * @param {string} value
11888
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11889
+ */
11890
+ proto.PurchaseRequisitionItemTrack.prototype.setPurchaseOrderNumber = function(value) {
11891
+ return jspb.Message.setProto3StringField(this, 15, value);
11892
+ };
11893
+
11894
+
11895
+ /**
11896
+ * optional double purchase_order_quantity = 16;
11897
+ * @return {number}
11898
+ */
11899
+ proto.PurchaseRequisitionItemTrack.prototype.getPurchaseOrderQuantity = function() {
11900
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 16, 0.0));
11901
+ };
11902
+
11903
+
11904
+ /**
11905
+ * @param {number} value
11906
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11907
+ */
11908
+ proto.PurchaseRequisitionItemTrack.prototype.setPurchaseOrderQuantity = function(value) {
11909
+ return jspb.Message.setProto3FloatField(this, 16, value);
11910
+ };
11911
+
11912
+
11913
+ /**
11914
+ * optional string purchase_order_created_at = 17;
11915
+ * @return {string}
11916
+ */
11917
+ proto.PurchaseRequisitionItemTrack.prototype.getPurchaseOrderCreatedAt = function() {
11918
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
11919
+ };
11920
+
11921
+
11922
+ /**
11923
+ * @param {string} value
11924
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11925
+ */
11926
+ proto.PurchaseRequisitionItemTrack.prototype.setPurchaseOrderCreatedAt = function(value) {
11927
+ return jspb.Message.setProto3StringField(this, 17, value);
11928
+ };
11929
+
11930
+
11931
+ /**
11932
+ * optional string goods_receipt_number = 18;
11933
+ * @return {string}
11934
+ */
11935
+ proto.PurchaseRequisitionItemTrack.prototype.getGoodsReceiptNumber = function() {
11936
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
11937
+ };
11938
+
11939
+
11940
+ /**
11941
+ * @param {string} value
11942
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11943
+ */
11944
+ proto.PurchaseRequisitionItemTrack.prototype.setGoodsReceiptNumber = function(value) {
11945
+ return jspb.Message.setProto3StringField(this, 18, value);
11946
+ };
11947
+
11948
+
11949
+ /**
11950
+ * optional double goods_receipt_quantity = 19;
11951
+ * @return {number}
11952
+ */
11953
+ proto.PurchaseRequisitionItemTrack.prototype.getGoodsReceiptQuantity = function() {
11954
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 19, 0.0));
11955
+ };
11956
+
11957
+
11958
+ /**
11959
+ * @param {number} value
11960
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11961
+ */
11962
+ proto.PurchaseRequisitionItemTrack.prototype.setGoodsReceiptQuantity = function(value) {
11963
+ return jspb.Message.setProto3FloatField(this, 19, value);
11964
+ };
11965
+
11966
+
11967
+ /**
11968
+ * optional string goods_receipt_created_at = 20;
11969
+ * @return {string}
11970
+ */
11971
+ proto.PurchaseRequisitionItemTrack.prototype.getGoodsReceiptCreatedAt = function() {
11972
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
11973
+ };
11974
+
11975
+
11976
+ /**
11977
+ * @param {string} value
11978
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11979
+ */
11980
+ proto.PurchaseRequisitionItemTrack.prototype.setGoodsReceiptCreatedAt = function(value) {
11981
+ return jspb.Message.setProto3StringField(this, 20, value);
11982
+ };
11983
+
11984
+
11985
+ /**
11986
+ * optional string unit_of_measure = 21;
11987
+ * @return {string}
11988
+ */
11989
+ proto.PurchaseRequisitionItemTrack.prototype.getUnitOfMeasure = function() {
11990
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
11991
+ };
11992
+
11993
+
11994
+ /**
11995
+ * @param {string} value
11996
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
11997
+ */
11998
+ proto.PurchaseRequisitionItemTrack.prototype.setUnitOfMeasure = function(value) {
11999
+ return jspb.Message.setProto3StringField(this, 21, value);
12000
+ };
12001
+
12002
+
12003
+ /**
12004
+ * optional prisca.v1.global.meta.Creator created_by_user = 22;
12005
+ * @return {?proto.prisca.v1.global.meta.Creator}
12006
+ */
12007
+ proto.PurchaseRequisitionItemTrack.prototype.getCreatedByUser = function() {
12008
+ return /** @type{?proto.prisca.v1.global.meta.Creator} */ (
12009
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Creator, 22));
12010
+ };
12011
+
12012
+
12013
+ /**
12014
+ * @param {?proto.prisca.v1.global.meta.Creator|undefined} value
12015
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
12016
+ */
12017
+ proto.PurchaseRequisitionItemTrack.prototype.setCreatedByUser = function(value) {
12018
+ return jspb.Message.setWrapperField(this, 22, value);
12019
+ };
12020
+
12021
+
12022
+ /**
12023
+ * Clears the message field making it undefined.
12024
+ * @return {!proto.PurchaseRequisitionItemTrack} returns this
12025
+ */
12026
+ proto.PurchaseRequisitionItemTrack.prototype.clearCreatedByUser = function() {
12027
+ return this.setCreatedByUser(undefined);
12028
+ };
12029
+
12030
+
12031
+ /**
12032
+ * Returns whether this field is set.
12033
+ * @return {boolean}
12034
+ */
12035
+ proto.PurchaseRequisitionItemTrack.prototype.hasCreatedByUser = function() {
12036
+ return jspb.Message.getField(this, 22) != null;
12037
+ };
12038
+
12039
+
12040
+
12041
+ /**
12042
+ * List of repeated fields within this message type.
12043
+ * @private {!Array<number>}
12044
+ * @const
12045
+ */
12046
+ proto.GetPRItemTrackListResponse.repeatedFields_ = [1];
12047
+
12048
+
12049
+
12050
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12051
+ /**
12052
+ * Creates an object representation of this proto.
12053
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12054
+ * Optional fields that are not set will be set to undefined.
12055
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12056
+ * For the list of reserved names please see:
12057
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12058
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12059
+ * JSPB instance for transitional soy proto support:
12060
+ * http://goto/soy-param-migration
12061
+ * @return {!Object}
12062
+ */
12063
+ proto.GetPRItemTrackListResponse.prototype.toObject = function(opt_includeInstance) {
12064
+ return proto.GetPRItemTrackListResponse.toObject(opt_includeInstance, this);
12065
+ };
12066
+
12067
+
12068
+ /**
12069
+ * Static version of the {@see toObject} method.
12070
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12071
+ * the JSPB instance for transitional soy proto support:
12072
+ * http://goto/soy-param-migration
12073
+ * @param {!proto.GetPRItemTrackListResponse} msg The msg instance to transform.
12074
+ * @return {!Object}
12075
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12076
+ */
12077
+ proto.GetPRItemTrackListResponse.toObject = function(includeInstance, msg) {
12078
+ var f, obj = {
12079
+ purchaseRequisitionItemTrackList: jspb.Message.toObjectList(msg.getPurchaseRequisitionItemTrackList(),
12080
+ proto.PurchaseRequisitionItemTrack.toObject, includeInstance),
12081
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
12082
+ };
12083
+
12084
+ if (includeInstance) {
12085
+ obj.$jspbMessageInstance = msg;
12086
+ }
12087
+ return obj;
12088
+ };
12089
+ }
12090
+
12091
+
12092
+ /**
12093
+ * Deserializes binary data (in protobuf wire format).
12094
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12095
+ * @return {!proto.GetPRItemTrackListResponse}
12096
+ */
12097
+ proto.GetPRItemTrackListResponse.deserializeBinary = function(bytes) {
12098
+ var reader = new jspb.BinaryReader(bytes);
12099
+ var msg = new proto.GetPRItemTrackListResponse;
12100
+ return proto.GetPRItemTrackListResponse.deserializeBinaryFromReader(msg, reader);
12101
+ };
12102
+
12103
+
12104
+ /**
12105
+ * Deserializes binary data (in protobuf wire format) from the
12106
+ * given reader into the given message object.
12107
+ * @param {!proto.GetPRItemTrackListResponse} msg The message object to deserialize into.
12108
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12109
+ * @return {!proto.GetPRItemTrackListResponse}
12110
+ */
12111
+ proto.GetPRItemTrackListResponse.deserializeBinaryFromReader = function(msg, reader) {
12112
+ while (reader.nextField()) {
12113
+ if (reader.isEndGroup()) {
12114
+ break;
12115
+ }
12116
+ var field = reader.getFieldNumber();
12117
+ switch (field) {
12118
+ case 1:
12119
+ var value = new proto.PurchaseRequisitionItemTrack;
12120
+ reader.readMessage(value,proto.PurchaseRequisitionItemTrack.deserializeBinaryFromReader);
12121
+ msg.addPurchaseRequisitionItemTrack(value);
12122
+ break;
12123
+ case 2:
12124
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
12125
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
12126
+ msg.setMeta(value);
12127
+ break;
12128
+ default:
12129
+ reader.skipField();
12130
+ break;
12131
+ }
12132
+ }
12133
+ return msg;
12134
+ };
12135
+
12136
+
12137
+ /**
12138
+ * Serializes the message to binary data (in protobuf wire format).
12139
+ * @return {!Uint8Array}
12140
+ */
12141
+ proto.GetPRItemTrackListResponse.prototype.serializeBinary = function() {
12142
+ var writer = new jspb.BinaryWriter();
12143
+ proto.GetPRItemTrackListResponse.serializeBinaryToWriter(this, writer);
12144
+ return writer.getResultBuffer();
12145
+ };
12146
+
12147
+
12148
+ /**
12149
+ * Serializes the given message to binary data (in protobuf wire
12150
+ * format), writing to the given BinaryWriter.
12151
+ * @param {!proto.GetPRItemTrackListResponse} message
12152
+ * @param {!jspb.BinaryWriter} writer
12153
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12154
+ */
12155
+ proto.GetPRItemTrackListResponse.serializeBinaryToWriter = function(message, writer) {
12156
+ var f = undefined;
12157
+ f = message.getPurchaseRequisitionItemTrackList();
12158
+ if (f.length > 0) {
12159
+ writer.writeRepeatedMessage(
12160
+ 1,
12161
+ f,
12162
+ proto.PurchaseRequisitionItemTrack.serializeBinaryToWriter
12163
+ );
12164
+ }
12165
+ f = message.getMeta();
12166
+ if (f != null) {
12167
+ writer.writeMessage(
12168
+ 2,
12169
+ f,
12170
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
12171
+ );
12172
+ }
12173
+ };
12174
+
12175
+
12176
+ /**
12177
+ * repeated PurchaseRequisitionItemTrack purchase_requisition_item_track = 1;
12178
+ * @return {!Array<!proto.PurchaseRequisitionItemTrack>}
12179
+ */
12180
+ proto.GetPRItemTrackListResponse.prototype.getPurchaseRequisitionItemTrackList = function() {
12181
+ return /** @type{!Array<!proto.PurchaseRequisitionItemTrack>} */ (
12182
+ jspb.Message.getRepeatedWrapperField(this, proto.PurchaseRequisitionItemTrack, 1));
12183
+ };
12184
+
12185
+
12186
+ /**
12187
+ * @param {!Array<!proto.PurchaseRequisitionItemTrack>} value
12188
+ * @return {!proto.GetPRItemTrackListResponse} returns this
12189
+ */
12190
+ proto.GetPRItemTrackListResponse.prototype.setPurchaseRequisitionItemTrackList = function(value) {
12191
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
12192
+ };
12193
+
12194
+
12195
+ /**
12196
+ * @param {!proto.PurchaseRequisitionItemTrack=} opt_value
12197
+ * @param {number=} opt_index
12198
+ * @return {!proto.PurchaseRequisitionItemTrack}
12199
+ */
12200
+ proto.GetPRItemTrackListResponse.prototype.addPurchaseRequisitionItemTrack = function(opt_value, opt_index) {
12201
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.PurchaseRequisitionItemTrack, opt_index);
12202
+ };
12203
+
12204
+
12205
+ /**
12206
+ * Clears the list making it empty but non-null.
12207
+ * @return {!proto.GetPRItemTrackListResponse} returns this
12208
+ */
12209
+ proto.GetPRItemTrackListResponse.prototype.clearPurchaseRequisitionItemTrackList = function() {
12210
+ return this.setPurchaseRequisitionItemTrackList([]);
12211
+ };
12212
+
12213
+
12214
+ /**
12215
+ * optional prisca.v1.global.meta.Meta meta = 2;
12216
+ * @return {?proto.prisca.v1.global.meta.Meta}
12217
+ */
12218
+ proto.GetPRItemTrackListResponse.prototype.getMeta = function() {
12219
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
12220
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
12221
+ };
12222
+
12223
+
12224
+ /**
12225
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
12226
+ * @return {!proto.GetPRItemTrackListResponse} returns this
12227
+ */
12228
+ proto.GetPRItemTrackListResponse.prototype.setMeta = function(value) {
12229
+ return jspb.Message.setWrapperField(this, 2, value);
12230
+ };
12231
+
12232
+
12233
+ /**
12234
+ * Clears the message field making it undefined.
12235
+ * @return {!proto.GetPRItemTrackListResponse} returns this
12236
+ */
12237
+ proto.GetPRItemTrackListResponse.prototype.clearMeta = function() {
12238
+ return this.setMeta(undefined);
12239
+ };
12240
+
12241
+
12242
+ /**
12243
+ * Returns whether this field is set.
12244
+ * @return {boolean}
12245
+ */
12246
+ proto.GetPRItemTrackListResponse.prototype.hasMeta = function() {
12247
+ return jspb.Message.getField(this, 2) != null;
12248
+ };
12249
+
12250
+
12251
+
12252
+
12253
+
12254
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12255
+ /**
12256
+ * Creates an object representation of this proto.
12257
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12258
+ * Optional fields that are not set will be set to undefined.
12259
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12260
+ * For the list of reserved names please see:
12261
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12262
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12263
+ * JSPB instance for transitional soy proto support:
12264
+ * http://goto/soy-param-migration
12265
+ * @return {!Object}
12266
+ */
12267
+ proto.PurchaseRequisitionProgressTrack.prototype.toObject = function(opt_includeInstance) {
12268
+ return proto.PurchaseRequisitionProgressTrack.toObject(opt_includeInstance, this);
12269
+ };
12270
+
12271
+
12272
+ /**
12273
+ * Static version of the {@see toObject} method.
12274
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12275
+ * the JSPB instance for transitional soy proto support:
12276
+ * http://goto/soy-param-migration
12277
+ * @param {!proto.PurchaseRequisitionProgressTrack} msg The msg instance to transform.
12278
+ * @return {!Object}
12279
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12280
+ */
12281
+ proto.PurchaseRequisitionProgressTrack.toObject = function(includeInstance, msg) {
12282
+ var f, obj = {
12283
+ purchaseRequestNumber: jspb.Message.getFieldWithDefault(msg, 1, ""),
12284
+ detailDescription: jspb.Message.getFieldWithDefault(msg, 2, ""),
12285
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
12286
+ total: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
12287
+ unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 5, ""),
12288
+ purchaseRequestCreatedAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
12289
+ purchaseRequestFullyApprovedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
12290
+ purchaseOrderCreatedAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
12291
+ createdBy: jspb.Message.getFieldWithDefault(msg, 9, ""),
12292
+ agingWorkdays: jspb.Message.getFieldWithDefault(msg, 10, 0),
12293
+ purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 11, ""),
12294
+ createdByUser: (f = msg.getCreatedByUser()) && prisca_v1_global_meta_meta_pb.Creator.toObject(includeInstance, f),
12295
+ quantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0),
12296
+ purchasingGroup: jspb.Message.getFieldWithDefault(msg, 14, "")
12297
+ };
12298
+
12299
+ if (includeInstance) {
12300
+ obj.$jspbMessageInstance = msg;
12301
+ }
12302
+ return obj;
12303
+ };
12304
+ }
12305
+
12306
+
12307
+ /**
12308
+ * Deserializes binary data (in protobuf wire format).
12309
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12310
+ * @return {!proto.PurchaseRequisitionProgressTrack}
12311
+ */
12312
+ proto.PurchaseRequisitionProgressTrack.deserializeBinary = function(bytes) {
12313
+ var reader = new jspb.BinaryReader(bytes);
12314
+ var msg = new proto.PurchaseRequisitionProgressTrack;
12315
+ return proto.PurchaseRequisitionProgressTrack.deserializeBinaryFromReader(msg, reader);
12316
+ };
12317
+
12318
+
12319
+ /**
12320
+ * Deserializes binary data (in protobuf wire format) from the
12321
+ * given reader into the given message object.
12322
+ * @param {!proto.PurchaseRequisitionProgressTrack} msg The message object to deserialize into.
12323
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12324
+ * @return {!proto.PurchaseRequisitionProgressTrack}
12325
+ */
12326
+ proto.PurchaseRequisitionProgressTrack.deserializeBinaryFromReader = function(msg, reader) {
12327
+ while (reader.nextField()) {
12328
+ if (reader.isEndGroup()) {
12329
+ break;
12330
+ }
12331
+ var field = reader.getFieldNumber();
12332
+ switch (field) {
12333
+ case 1:
12334
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
12335
+ msg.setPurchaseRequestNumber(value);
12336
+ break;
12337
+ case 2:
12338
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
12339
+ msg.setDetailDescription(value);
12340
+ break;
12341
+ case 3:
12342
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
12343
+ msg.setDescription(value);
12344
+ break;
12345
+ case 4:
12346
+ var value = /** @type {number} */ (reader.readDouble());
12347
+ msg.setTotal(value);
12348
+ break;
12349
+ case 5:
12350
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
12351
+ msg.setUnitOfMeasure(value);
12352
+ break;
12353
+ case 6:
12354
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
12355
+ msg.setPurchaseRequestCreatedAt(value);
12356
+ break;
12357
+ case 7:
12358
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
12359
+ msg.setPurchaseRequestFullyApprovedAt(value);
12360
+ break;
12361
+ case 8:
12362
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
12363
+ msg.setPurchaseOrderCreatedAt(value);
12364
+ break;
12365
+ case 9:
12366
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
12367
+ msg.setCreatedBy(value);
12368
+ break;
12369
+ case 10:
12370
+ var value = /** @type {number} */ (reader.readInt32());
12371
+ msg.setAgingWorkdays(value);
12372
+ break;
12373
+ case 11:
12374
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
12375
+ msg.setPurchaseOrderNumber(value);
12376
+ break;
12377
+ case 12:
12378
+ var value = new prisca_v1_global_meta_meta_pb.Creator;
12379
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Creator.deserializeBinaryFromReader);
12380
+ msg.setCreatedByUser(value);
12381
+ break;
12382
+ case 13:
12383
+ var value = /** @type {number} */ (reader.readDouble());
12384
+ msg.setQuantity(value);
12385
+ break;
12386
+ case 14:
12387
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
12388
+ msg.setPurchasingGroup(value);
12389
+ break;
12390
+ default:
12391
+ reader.skipField();
12392
+ break;
12393
+ }
12394
+ }
12395
+ return msg;
12396
+ };
12397
+
12398
+
12399
+ /**
12400
+ * Serializes the message to binary data (in protobuf wire format).
12401
+ * @return {!Uint8Array}
12402
+ */
12403
+ proto.PurchaseRequisitionProgressTrack.prototype.serializeBinary = function() {
12404
+ var writer = new jspb.BinaryWriter();
12405
+ proto.PurchaseRequisitionProgressTrack.serializeBinaryToWriter(this, writer);
12406
+ return writer.getResultBuffer();
12407
+ };
12408
+
12409
+
12410
+ /**
12411
+ * Serializes the given message to binary data (in protobuf wire
12412
+ * format), writing to the given BinaryWriter.
12413
+ * @param {!proto.PurchaseRequisitionProgressTrack} message
12414
+ * @param {!jspb.BinaryWriter} writer
12415
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12416
+ */
12417
+ proto.PurchaseRequisitionProgressTrack.serializeBinaryToWriter = function(message, writer) {
12418
+ var f = undefined;
12419
+ f = message.getPurchaseRequestNumber();
12420
+ if (f.length > 0) {
12421
+ writer.writeString(
12422
+ 1,
12423
+ f
12424
+ );
12425
+ }
12426
+ f = message.getDetailDescription();
12427
+ if (f.length > 0) {
12428
+ writer.writeString(
12429
+ 2,
12430
+ f
12431
+ );
12432
+ }
12433
+ f = message.getDescription();
12434
+ if (f.length > 0) {
12435
+ writer.writeString(
12436
+ 3,
12437
+ f
12438
+ );
12439
+ }
12440
+ f = message.getTotal();
12441
+ if (f !== 0.0) {
12442
+ writer.writeDouble(
12443
+ 4,
12444
+ f
12445
+ );
12446
+ }
12447
+ f = message.getUnitOfMeasure();
12448
+ if (f.length > 0) {
12449
+ writer.writeString(
12450
+ 5,
12451
+ f
12452
+ );
12453
+ }
12454
+ f = message.getPurchaseRequestCreatedAt();
12455
+ if (f.length > 0) {
12456
+ writer.writeString(
12457
+ 6,
12458
+ f
12459
+ );
12460
+ }
12461
+ f = message.getPurchaseRequestFullyApprovedAt();
12462
+ if (f.length > 0) {
12463
+ writer.writeString(
12464
+ 7,
12465
+ f
12466
+ );
12467
+ }
12468
+ f = message.getPurchaseOrderCreatedAt();
12469
+ if (f.length > 0) {
12470
+ writer.writeString(
12471
+ 8,
12472
+ f
12473
+ );
12474
+ }
12475
+ f = message.getCreatedBy();
12476
+ if (f.length > 0) {
12477
+ writer.writeString(
12478
+ 9,
12479
+ f
12480
+ );
12481
+ }
12482
+ f = message.getAgingWorkdays();
12483
+ if (f !== 0) {
12484
+ writer.writeInt32(
12485
+ 10,
12486
+ f
12487
+ );
12488
+ }
12489
+ f = message.getPurchaseOrderNumber();
12490
+ if (f.length > 0) {
12491
+ writer.writeString(
12492
+ 11,
12493
+ f
12494
+ );
12495
+ }
12496
+ f = message.getCreatedByUser();
12497
+ if (f != null) {
12498
+ writer.writeMessage(
12499
+ 12,
12500
+ f,
12501
+ prisca_v1_global_meta_meta_pb.Creator.serializeBinaryToWriter
12502
+ );
12503
+ }
12504
+ f = message.getQuantity();
12505
+ if (f !== 0.0) {
12506
+ writer.writeDouble(
12507
+ 13,
12508
+ f
12509
+ );
12510
+ }
12511
+ f = message.getPurchasingGroup();
12512
+ if (f.length > 0) {
12513
+ writer.writeString(
12514
+ 14,
12515
+ f
12516
+ );
12517
+ }
12518
+ };
12519
+
12520
+
12521
+ /**
12522
+ * optional string purchase_request_number = 1;
12523
+ * @return {string}
12524
+ */
12525
+ proto.PurchaseRequisitionProgressTrack.prototype.getPurchaseRequestNumber = function() {
12526
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
12527
+ };
12528
+
12529
+
12530
+ /**
12531
+ * @param {string} value
12532
+ * @return {!proto.PurchaseRequisitionProgressTrack} returns this
12533
+ */
12534
+ proto.PurchaseRequisitionProgressTrack.prototype.setPurchaseRequestNumber = function(value) {
12535
+ return jspb.Message.setProto3StringField(this, 1, value);
12536
+ };
12537
+
12538
+
12539
+ /**
12540
+ * optional string detail_description = 2;
12541
+ * @return {string}
12542
+ */
12543
+ proto.PurchaseRequisitionProgressTrack.prototype.getDetailDescription = function() {
12544
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
12545
+ };
12546
+
12547
+
12548
+ /**
12549
+ * @param {string} value
12550
+ * @return {!proto.PurchaseRequisitionProgressTrack} returns this
12551
+ */
12552
+ proto.PurchaseRequisitionProgressTrack.prototype.setDetailDescription = function(value) {
12553
+ return jspb.Message.setProto3StringField(this, 2, value);
12554
+ };
12555
+
12556
+
12557
+ /**
12558
+ * optional string description = 3;
12559
+ * @return {string}
12560
+ */
12561
+ proto.PurchaseRequisitionProgressTrack.prototype.getDescription = function() {
12562
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
12563
+ };
12564
+
12565
+
12566
+ /**
12567
+ * @param {string} value
12568
+ * @return {!proto.PurchaseRequisitionProgressTrack} returns this
12569
+ */
12570
+ proto.PurchaseRequisitionProgressTrack.prototype.setDescription = function(value) {
12571
+ return jspb.Message.setProto3StringField(this, 3, value);
12572
+ };
12573
+
12574
+
12575
+ /**
12576
+ * optional double total = 4;
12577
+ * @return {number}
12578
+ */
12579
+ proto.PurchaseRequisitionProgressTrack.prototype.getTotal = function() {
12580
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
12581
+ };
12582
+
12583
+
12584
+ /**
12585
+ * @param {number} value
12586
+ * @return {!proto.PurchaseRequisitionProgressTrack} returns this
12587
+ */
12588
+ proto.PurchaseRequisitionProgressTrack.prototype.setTotal = function(value) {
12589
+ return jspb.Message.setProto3FloatField(this, 4, value);
12590
+ };
12591
+
12592
+
12593
+ /**
12594
+ * optional string unit_of_measure = 5;
12595
+ * @return {string}
12596
+ */
12597
+ proto.PurchaseRequisitionProgressTrack.prototype.getUnitOfMeasure = function() {
12598
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
12599
+ };
12600
+
12601
+
12602
+ /**
12603
+ * @param {string} value
12604
+ * @return {!proto.PurchaseRequisitionProgressTrack} returns this
12605
+ */
12606
+ proto.PurchaseRequisitionProgressTrack.prototype.setUnitOfMeasure = function(value) {
12607
+ return jspb.Message.setProto3StringField(this, 5, value);
12608
+ };
12609
+
12610
+
12611
+ /**
12612
+ * optional string purchase_request_created_at = 6;
12613
+ * @return {string}
12614
+ */
12615
+ proto.PurchaseRequisitionProgressTrack.prototype.getPurchaseRequestCreatedAt = function() {
12616
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
12617
+ };
12618
+
12619
+
12620
+ /**
12621
+ * @param {string} value
12622
+ * @return {!proto.PurchaseRequisitionProgressTrack} returns this
12623
+ */
12624
+ proto.PurchaseRequisitionProgressTrack.prototype.setPurchaseRequestCreatedAt = function(value) {
12625
+ return jspb.Message.setProto3StringField(this, 6, value);
12626
+ };
12627
+
12628
+
12629
+ /**
12630
+ * optional string purchase_request_fully_approved_at = 7;
12631
+ * @return {string}
12632
+ */
12633
+ proto.PurchaseRequisitionProgressTrack.prototype.getPurchaseRequestFullyApprovedAt = function() {
12634
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
12635
+ };
12636
+
12637
+
12638
+ /**
12639
+ * @param {string} value
12640
+ * @return {!proto.PurchaseRequisitionProgressTrack} returns this
12641
+ */
12642
+ proto.PurchaseRequisitionProgressTrack.prototype.setPurchaseRequestFullyApprovedAt = function(value) {
12643
+ return jspb.Message.setProto3StringField(this, 7, value);
12644
+ };
12645
+
12646
+
12647
+ /**
12648
+ * optional string purchase_order_created_at = 8;
12649
+ * @return {string}
12650
+ */
12651
+ proto.PurchaseRequisitionProgressTrack.prototype.getPurchaseOrderCreatedAt = function() {
12652
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
12653
+ };
12654
+
12655
+
12656
+ /**
12657
+ * @param {string} value
12658
+ * @return {!proto.PurchaseRequisitionProgressTrack} returns this
12659
+ */
12660
+ proto.PurchaseRequisitionProgressTrack.prototype.setPurchaseOrderCreatedAt = function(value) {
12661
+ return jspb.Message.setProto3StringField(this, 8, value);
12662
+ };
12663
+
12664
+
12665
+ /**
12666
+ * optional string created_by = 9;
12667
+ * @return {string}
12668
+ */
12669
+ proto.PurchaseRequisitionProgressTrack.prototype.getCreatedBy = function() {
12670
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
12671
+ };
12672
+
12673
+
12674
+ /**
12675
+ * @param {string} value
12676
+ * @return {!proto.PurchaseRequisitionProgressTrack} returns this
12677
+ */
12678
+ proto.PurchaseRequisitionProgressTrack.prototype.setCreatedBy = function(value) {
12679
+ return jspb.Message.setProto3StringField(this, 9, value);
12680
+ };
12681
+
12682
+
12683
+ /**
12684
+ * optional int32 aging_workdays = 10;
12685
+ * @return {number}
12686
+ */
12687
+ proto.PurchaseRequisitionProgressTrack.prototype.getAgingWorkdays = function() {
12688
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
12689
+ };
12690
+
12691
+
12692
+ /**
12693
+ * @param {number} value
12694
+ * @return {!proto.PurchaseRequisitionProgressTrack} returns this
12695
+ */
12696
+ proto.PurchaseRequisitionProgressTrack.prototype.setAgingWorkdays = function(value) {
12697
+ return jspb.Message.setProto3IntField(this, 10, value);
12698
+ };
12699
+
12700
+
12701
+ /**
12702
+ * optional string purchase_order_number = 11;
12703
+ * @return {string}
12704
+ */
12705
+ proto.PurchaseRequisitionProgressTrack.prototype.getPurchaseOrderNumber = function() {
12706
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
12707
+ };
12708
+
12709
+
12710
+ /**
12711
+ * @param {string} value
12712
+ * @return {!proto.PurchaseRequisitionProgressTrack} returns this
12713
+ */
12714
+ proto.PurchaseRequisitionProgressTrack.prototype.setPurchaseOrderNumber = function(value) {
12715
+ return jspb.Message.setProto3StringField(this, 11, value);
12716
+ };
12717
+
12718
+
12719
+ /**
12720
+ * optional prisca.v1.global.meta.Creator created_by_user = 12;
12721
+ * @return {?proto.prisca.v1.global.meta.Creator}
12722
+ */
12723
+ proto.PurchaseRequisitionProgressTrack.prototype.getCreatedByUser = function() {
12724
+ return /** @type{?proto.prisca.v1.global.meta.Creator} */ (
12725
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Creator, 12));
12726
+ };
12727
+
12728
+
12729
+ /**
12730
+ * @param {?proto.prisca.v1.global.meta.Creator|undefined} value
12731
+ * @return {!proto.PurchaseRequisitionProgressTrack} returns this
12732
+ */
12733
+ proto.PurchaseRequisitionProgressTrack.prototype.setCreatedByUser = function(value) {
12734
+ return jspb.Message.setWrapperField(this, 12, value);
12735
+ };
12736
+
12737
+
12738
+ /**
12739
+ * Clears the message field making it undefined.
12740
+ * @return {!proto.PurchaseRequisitionProgressTrack} returns this
12741
+ */
12742
+ proto.PurchaseRequisitionProgressTrack.prototype.clearCreatedByUser = function() {
12743
+ return this.setCreatedByUser(undefined);
12744
+ };
12745
+
12746
+
12747
+ /**
12748
+ * Returns whether this field is set.
12749
+ * @return {boolean}
12750
+ */
12751
+ proto.PurchaseRequisitionProgressTrack.prototype.hasCreatedByUser = function() {
12752
+ return jspb.Message.getField(this, 12) != null;
12753
+ };
12754
+
12755
+
12756
+ /**
12757
+ * optional double quantity = 13;
12758
+ * @return {number}
12759
+ */
12760
+ proto.PurchaseRequisitionProgressTrack.prototype.getQuantity = function() {
12761
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0));
12762
+ };
12763
+
12764
+
12765
+ /**
12766
+ * @param {number} value
12767
+ * @return {!proto.PurchaseRequisitionProgressTrack} returns this
12768
+ */
12769
+ proto.PurchaseRequisitionProgressTrack.prototype.setQuantity = function(value) {
12770
+ return jspb.Message.setProto3FloatField(this, 13, value);
12771
+ };
12772
+
12773
+
12774
+ /**
12775
+ * optional string purchasing_group = 14;
12776
+ * @return {string}
12777
+ */
12778
+ proto.PurchaseRequisitionProgressTrack.prototype.getPurchasingGroup = function() {
12779
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
12780
+ };
12781
+
12782
+
12783
+ /**
12784
+ * @param {string} value
12785
+ * @return {!proto.PurchaseRequisitionProgressTrack} returns this
12786
+ */
12787
+ proto.PurchaseRequisitionProgressTrack.prototype.setPurchasingGroup = function(value) {
12788
+ return jspb.Message.setProto3StringField(this, 14, value);
12789
+ };
12790
+
12791
+
12792
+
12793
+ /**
12794
+ * List of repeated fields within this message type.
12795
+ * @private {!Array<number>}
12796
+ * @const
12797
+ */
12798
+ proto.GetPRProgressTrackListResponse.repeatedFields_ = [1];
12799
+
12800
+
12801
+
12802
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12803
+ /**
12804
+ * Creates an object representation of this proto.
12805
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12806
+ * Optional fields that are not set will be set to undefined.
12807
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12808
+ * For the list of reserved names please see:
12809
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12810
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12811
+ * JSPB instance for transitional soy proto support:
12812
+ * http://goto/soy-param-migration
12813
+ * @return {!Object}
12814
+ */
12815
+ proto.GetPRProgressTrackListResponse.prototype.toObject = function(opt_includeInstance) {
12816
+ return proto.GetPRProgressTrackListResponse.toObject(opt_includeInstance, this);
12817
+ };
12818
+
12819
+
12820
+ /**
12821
+ * Static version of the {@see toObject} method.
12822
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12823
+ * the JSPB instance for transitional soy proto support:
12824
+ * http://goto/soy-param-migration
12825
+ * @param {!proto.GetPRProgressTrackListResponse} msg The msg instance to transform.
12826
+ * @return {!Object}
12827
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12828
+ */
12829
+ proto.GetPRProgressTrackListResponse.toObject = function(includeInstance, msg) {
12830
+ var f, obj = {
12831
+ purchaseRequisitionProgressTrackList: jspb.Message.toObjectList(msg.getPurchaseRequisitionProgressTrackList(),
12832
+ proto.PurchaseRequisitionProgressTrack.toObject, includeInstance),
12833
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
12834
+ };
12835
+
12836
+ if (includeInstance) {
12837
+ obj.$jspbMessageInstance = msg;
12838
+ }
12839
+ return obj;
12840
+ };
12841
+ }
12842
+
12843
+
12844
+ /**
12845
+ * Deserializes binary data (in protobuf wire format).
12846
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12847
+ * @return {!proto.GetPRProgressTrackListResponse}
12848
+ */
12849
+ proto.GetPRProgressTrackListResponse.deserializeBinary = function(bytes) {
12850
+ var reader = new jspb.BinaryReader(bytes);
12851
+ var msg = new proto.GetPRProgressTrackListResponse;
12852
+ return proto.GetPRProgressTrackListResponse.deserializeBinaryFromReader(msg, reader);
12853
+ };
12854
+
12855
+
12856
+ /**
12857
+ * Deserializes binary data (in protobuf wire format) from the
12858
+ * given reader into the given message object.
12859
+ * @param {!proto.GetPRProgressTrackListResponse} msg The message object to deserialize into.
12860
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12861
+ * @return {!proto.GetPRProgressTrackListResponse}
12862
+ */
12863
+ proto.GetPRProgressTrackListResponse.deserializeBinaryFromReader = function(msg, reader) {
12864
+ while (reader.nextField()) {
12865
+ if (reader.isEndGroup()) {
12866
+ break;
12867
+ }
12868
+ var field = reader.getFieldNumber();
12869
+ switch (field) {
12870
+ case 1:
12871
+ var value = new proto.PurchaseRequisitionProgressTrack;
12872
+ reader.readMessage(value,proto.PurchaseRequisitionProgressTrack.deserializeBinaryFromReader);
12873
+ msg.addPurchaseRequisitionProgressTrack(value);
12874
+ break;
12875
+ case 2:
12876
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
12877
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
12878
+ msg.setMeta(value);
12879
+ break;
12880
+ default:
12881
+ reader.skipField();
12882
+ break;
12883
+ }
12884
+ }
12885
+ return msg;
12886
+ };
12887
+
12888
+
12889
+ /**
12890
+ * Serializes the message to binary data (in protobuf wire format).
12891
+ * @return {!Uint8Array}
12892
+ */
12893
+ proto.GetPRProgressTrackListResponse.prototype.serializeBinary = function() {
12894
+ var writer = new jspb.BinaryWriter();
12895
+ proto.GetPRProgressTrackListResponse.serializeBinaryToWriter(this, writer);
12896
+ return writer.getResultBuffer();
12897
+ };
12898
+
12899
+
12900
+ /**
12901
+ * Serializes the given message to binary data (in protobuf wire
12902
+ * format), writing to the given BinaryWriter.
12903
+ * @param {!proto.GetPRProgressTrackListResponse} message
12904
+ * @param {!jspb.BinaryWriter} writer
12905
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12906
+ */
12907
+ proto.GetPRProgressTrackListResponse.serializeBinaryToWriter = function(message, writer) {
12908
+ var f = undefined;
12909
+ f = message.getPurchaseRequisitionProgressTrackList();
12910
+ if (f.length > 0) {
12911
+ writer.writeRepeatedMessage(
12912
+ 1,
12913
+ f,
12914
+ proto.PurchaseRequisitionProgressTrack.serializeBinaryToWriter
12915
+ );
12916
+ }
12917
+ f = message.getMeta();
12918
+ if (f != null) {
12919
+ writer.writeMessage(
12920
+ 2,
12921
+ f,
12922
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
12923
+ );
12924
+ }
12925
+ };
12926
+
12927
+
12928
+ /**
12929
+ * repeated PurchaseRequisitionProgressTrack purchase_requisition_progress_track = 1;
12930
+ * @return {!Array<!proto.PurchaseRequisitionProgressTrack>}
12931
+ */
12932
+ proto.GetPRProgressTrackListResponse.prototype.getPurchaseRequisitionProgressTrackList = function() {
12933
+ return /** @type{!Array<!proto.PurchaseRequisitionProgressTrack>} */ (
12934
+ jspb.Message.getRepeatedWrapperField(this, proto.PurchaseRequisitionProgressTrack, 1));
12935
+ };
12936
+
12937
+
12938
+ /**
12939
+ * @param {!Array<!proto.PurchaseRequisitionProgressTrack>} value
12940
+ * @return {!proto.GetPRProgressTrackListResponse} returns this
12941
+ */
12942
+ proto.GetPRProgressTrackListResponse.prototype.setPurchaseRequisitionProgressTrackList = function(value) {
12943
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
12944
+ };
12945
+
12946
+
12947
+ /**
12948
+ * @param {!proto.PurchaseRequisitionProgressTrack=} opt_value
12949
+ * @param {number=} opt_index
12950
+ * @return {!proto.PurchaseRequisitionProgressTrack}
12951
+ */
12952
+ proto.GetPRProgressTrackListResponse.prototype.addPurchaseRequisitionProgressTrack = function(opt_value, opt_index) {
12953
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.PurchaseRequisitionProgressTrack, opt_index);
12954
+ };
12955
+
12956
+
12957
+ /**
12958
+ * Clears the list making it empty but non-null.
12959
+ * @return {!proto.GetPRProgressTrackListResponse} returns this
12960
+ */
12961
+ proto.GetPRProgressTrackListResponse.prototype.clearPurchaseRequisitionProgressTrackList = function() {
12962
+ return this.setPurchaseRequisitionProgressTrackList([]);
12963
+ };
12964
+
12965
+
12966
+ /**
12967
+ * optional prisca.v1.global.meta.Meta meta = 2;
12968
+ * @return {?proto.prisca.v1.global.meta.Meta}
12969
+ */
12970
+ proto.GetPRProgressTrackListResponse.prototype.getMeta = function() {
12971
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
12972
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
12973
+ };
12974
+
12975
+
12976
+ /**
12977
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
12978
+ * @return {!proto.GetPRProgressTrackListResponse} returns this
12979
+ */
12980
+ proto.GetPRProgressTrackListResponse.prototype.setMeta = function(value) {
12981
+ return jspb.Message.setWrapperField(this, 2, value);
12982
+ };
12983
+
12984
+
12985
+ /**
12986
+ * Clears the message field making it undefined.
12987
+ * @return {!proto.GetPRProgressTrackListResponse} returns this
12988
+ */
12989
+ proto.GetPRProgressTrackListResponse.prototype.clearMeta = function() {
12990
+ return this.setMeta(undefined);
12991
+ };
12992
+
12993
+
12994
+ /**
12995
+ * Returns whether this field is set.
12996
+ * @return {boolean}
12997
+ */
12998
+ proto.GetPRProgressTrackListResponse.prototype.hasMeta = function() {
12999
+ return jspb.Message.getField(this, 2) != null;
13000
+ };
13001
+
13002
+
10795
13003
  goog.object.extend(exports, proto);