@aldiokta/protocgen 1.1.9 → 1.1.19

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 (160) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +79 -0
  3. package/prisca/v1/account_group/account_group.proto +86 -0
  4. package/prisca/v1/bidding/bidding.proto +159 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +87 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +281 -0
  7. package/prisca/v1/core/auth/auth.proto +150 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +55 -0
  9. package/prisca/v1/core/company/company.proto +92 -0
  10. package/prisca/v1/core/currency/currency.proto +76 -0
  11. package/prisca/v1/core/department_material/department_material.proto +69 -0
  12. package/prisca/v1/core/employee/employee.proto +129 -0
  13. package/prisca/v1/core/file_upload/file_upload.proto +31 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +76 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +120 -0
  16. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  17. package/prisca/v1/core/job_position/job_position.proto +113 -0
  18. package/prisca/v1/core/job_title/job_title.proto +89 -0
  19. package/prisca/v1/core/line_of_activity/line_of_activity.proto +42 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +94 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +289 -0
  23. package/prisca/v1/core/material/material.proto +131 -0
  24. package/prisca/v1/core/material_group/material_group.proto +85 -0
  25. package/prisca/v1/core/material_type/material_type.proto +86 -0
  26. package/prisca/v1/core/messaging/email_template.proto +75 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/number_range/number_range.proto +89 -0
  29. package/prisca/v1/core/organization/organization.proto +94 -0
  30. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  31. package/prisca/v1/core/price_condition/price_condition.proto +83 -0
  32. package/prisca/v1/core/procurement/procurement.proto +54 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  34. package/prisca/v1/core/report/report.proto +90 -0
  35. package/prisca/v1/core/report/user_report.proto +74 -0
  36. package/prisca/v1/core/tax_code/tax_code.proto +77 -0
  37. package/prisca/v1/core/term_of_payment/term_of_payment.proto +64 -0
  38. package/prisca/v1/core/transaction_builder/transaction_builder.proto +325 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  40. package/prisca/v1/core/users/users.proto +45 -0
  41. package/prisca/v1/core/work_location/work_location.proto +122 -0
  42. package/prisca/v1/core/workflow/workflow.proto +216 -0
  43. package/prisca/v1/document_type/document_type.proto +80 -0
  44. package/prisca/v1/general_ledger_account/general_ledger_account.proto +98 -0
  45. package/prisca/v1/global/meta/meta.proto +57 -0
  46. package/prisca/v1/purchase_order/purchase_order.proto +155 -0
  47. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +304 -0
  48. package/prisca/v1/purchasing_group/purchasing_group.proto +87 -0
  49. package/prisca/v1/purchasing_organization/purchasing_organization.proto +68 -0
  50. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +70 -0
  51. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  52. package/prisca/v1/quotation/quotation.proto +82 -0
  53. package/prisca/v1/request_for_quotation/request_for_quotation.proto +166 -0
  54. package/prisca/v1/vendor_domain/vendor_domain.proto +225 -0
  55. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  56. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
  57. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  58. package/prisca/v1/account_group/account_group_pb.js +0 -2937
  59. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -174
  60. package/prisca/v1/bidding/bidding_pb.js +0 -3793
  61. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  62. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
  63. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  64. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
  65. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
  66. package/prisca/v1/core/auth/auth_pb.js +0 -4497
  67. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  68. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
  69. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  70. package/prisca/v1/core/company/company_pb.js +0 -3048
  71. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  72. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  73. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  74. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  75. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  76. package/prisca/v1/core/employee/employee_pb.js +0 -4283
  77. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
  78. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -872
  79. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -144
  80. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2497
  81. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  82. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -3880
  83. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  84. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
  85. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  86. package/prisca/v1/core/job_position/job_position_pb.js +0 -3762
  87. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  88. package/prisca/v1/core/job_title/job_title_pb.js +0 -2958
  89. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  90. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
  91. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
  92. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3191
  93. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  94. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  95. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  96. package/prisca/v1/core/location/location_pb.js +0 -10879
  97. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  98. package/prisca/v1/core/material/material_pb.js +0 -4180
  99. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  100. package/prisca/v1/core/material_group/material_group_pb.js +0 -2776
  101. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -149
  102. package/prisca/v1/core/material_type/material_type_pb.js +0 -2697
  103. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  104. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  105. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  106. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  107. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  108. package/prisca/v1/core/number_range/number_range_pb.js +0 -2926
  109. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  110. package/prisca/v1/core/organization/organization_pb.js +0 -3032
  111. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  112. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2545
  113. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -146
  114. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -2654
  115. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  116. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  117. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  118. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  119. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  120. package/prisca/v1/core/report/report_pb.js +0 -2822
  121. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  122. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  123. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  124. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2582
  125. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -144
  126. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2105
  127. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
  128. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
  129. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  130. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  131. package/prisca/v1/core/users/users_grpc_pb.js +0 -45
  132. package/prisca/v1/core/users/users_pb.js +0 -1246
  133. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  134. package/prisca/v1/core/work_location/work_location_pb.js +0 -3972
  135. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  136. package/prisca/v1/core/workflow/workflow_pb.js +0 -7525
  137. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  138. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  139. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  140. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  141. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  142. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  143. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -228
  144. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -4989
  145. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -512
  146. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
  147. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  148. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2875
  149. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -145
  150. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2139
  151. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -146
  152. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2183
  153. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  154. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
  155. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -151
  156. package/prisca/v1/quotation/quotation_pb.js +0 -3971
  157. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -192
  158. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5703
  159. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -224
  160. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -6333
@@ -1,4989 +0,0 @@
1
- // source: prisca/v1/purchase_order/purchase_order.proto
2
- /**
3
- * @fileoverview
4
- * @enhanceable
5
- * @suppress {missingRequire} reports error on implicit type usages.
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
- // @ts-nocheck
13
-
14
- var jspb = require('google-protobuf');
15
- var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
23
-
24
- var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
25
- goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
- var prisca_v1_core_file_upload_file_upload_pb = require('../../../prisca/v1/core/file_upload/file_upload_pb.js');
27
- goog.object.extend(proto, prisca_v1_core_file_upload_file_upload_pb);
28
- var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
29
- goog.object.extend(proto, prisca_v1_core_transaction_builder_transaction_builder_pb);
30
- var prisca_v1_core_item_transaction_item_transaction_pb = require('../../../prisca/v1/core/item_transaction/item_transaction_pb.js');
31
- goog.object.extend(proto, prisca_v1_core_item_transaction_item_transaction_pb);
32
- var prisca_v1_vendor_domain_vendor_domain_pb = require('../../../prisca/v1/vendor_domain/vendor_domain_pb.js');
33
- goog.object.extend(proto, prisca_v1_vendor_domain_vendor_domain_pb);
34
- var prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb = require('../../../prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js');
35
- goog.object.extend(proto, prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb);
36
- var prisca_v1_core_employee_employee_pb = require('../../../prisca/v1/core/employee/employee_pb.js');
37
- goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
38
- goog.exportSymbol('proto.BasePurchaseOrderRequest', null, global);
39
- goog.exportSymbol('proto.CreatePurchaseOrderRequest', null, global);
40
- goog.exportSymbol('proto.CreatePurchaseOrderResponse', null, global);
41
- goog.exportSymbol('proto.DeletePurchaseOrderRequest', null, global);
42
- goog.exportSymbol('proto.DeletePurchaseOrderResponse', null, global);
43
- goog.exportSymbol('proto.GetListPurchaseOrderRequest', null, global);
44
- goog.exportSymbol('proto.GetListPurchaseOrderResponse', null, global);
45
- goog.exportSymbol('proto.GetPurchaseOrderByIdRequest', null, global);
46
- goog.exportSymbol('proto.GetPurchaseOrderByIdResponse', null, global);
47
- goog.exportSymbol('proto.GetPurchaseOrderDetailResponse', null, global);
48
- goog.exportSymbol('proto.GetPurchaseOrderItemDetailPreload', null, global);
49
- goog.exportSymbol('proto.GetPurchaseOrderItemPreload', null, global);
50
- goog.exportSymbol('proto.PurchaseOrder', null, global);
51
- goog.exportSymbol('proto.UpdatePurchaseOrderRequest', null, global);
52
- goog.exportSymbol('proto.UpdatePurchaseOrderResponse', null, global);
53
- goog.exportSymbol('proto.UpdatePurchaseOrderStatusRequest', null, global);
54
- /**
55
- * Generated by JsPbCodeGenerator.
56
- * @param {Array=} opt_data Optional initial data array, typically from a
57
- * server response, or constructed directly in Javascript. The array is used
58
- * in place and becomes part of the constructed object. It is not cloned.
59
- * If no data is provided, the constructed object will be empty, but still
60
- * valid.
61
- * @extends {jspb.Message}
62
- * @constructor
63
- */
64
- proto.PurchaseOrder = function(opt_data) {
65
- jspb.Message.initialize(this, opt_data, 0, -1, proto.PurchaseOrder.repeatedFields_, null);
66
- };
67
- goog.inherits(proto.PurchaseOrder, jspb.Message);
68
- if (goog.DEBUG && !COMPILED) {
69
- /**
70
- * @public
71
- * @override
72
- */
73
- proto.PurchaseOrder.displayName = 'proto.PurchaseOrder';
74
- }
75
- /**
76
- * Generated by JsPbCodeGenerator.
77
- * @param {Array=} opt_data Optional initial data array, typically from a
78
- * server response, or constructed directly in Javascript. The array is used
79
- * in place and becomes part of the constructed object. It is not cloned.
80
- * If no data is provided, the constructed object will be empty, but still
81
- * valid.
82
- * @extends {jspb.Message}
83
- * @constructor
84
- */
85
- proto.BasePurchaseOrderRequest = function(opt_data) {
86
- jspb.Message.initialize(this, opt_data, 0, -1, proto.BasePurchaseOrderRequest.repeatedFields_, null);
87
- };
88
- goog.inherits(proto.BasePurchaseOrderRequest, jspb.Message);
89
- if (goog.DEBUG && !COMPILED) {
90
- /**
91
- * @public
92
- * @override
93
- */
94
- proto.BasePurchaseOrderRequest.displayName = 'proto.BasePurchaseOrderRequest';
95
- }
96
- /**
97
- * Generated by JsPbCodeGenerator.
98
- * @param {Array=} opt_data Optional initial data array, typically from a
99
- * server response, or constructed directly in Javascript. The array is used
100
- * in place and becomes part of the constructed object. It is not cloned.
101
- * If no data is provided, the constructed object will be empty, but still
102
- * valid.
103
- * @extends {jspb.Message}
104
- * @constructor
105
- */
106
- proto.CreatePurchaseOrderRequest = function(opt_data) {
107
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
108
- };
109
- goog.inherits(proto.CreatePurchaseOrderRequest, jspb.Message);
110
- if (goog.DEBUG && !COMPILED) {
111
- /**
112
- * @public
113
- * @override
114
- */
115
- proto.CreatePurchaseOrderRequest.displayName = 'proto.CreatePurchaseOrderRequest';
116
- }
117
- /**
118
- * Generated by JsPbCodeGenerator.
119
- * @param {Array=} opt_data Optional initial data array, typically from a
120
- * server response, or constructed directly in Javascript. The array is used
121
- * in place and becomes part of the constructed object. It is not cloned.
122
- * If no data is provided, the constructed object will be empty, but still
123
- * valid.
124
- * @extends {jspb.Message}
125
- * @constructor
126
- */
127
- proto.UpdatePurchaseOrderStatusRequest = function(opt_data) {
128
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
129
- };
130
- goog.inherits(proto.UpdatePurchaseOrderStatusRequest, jspb.Message);
131
- if (goog.DEBUG && !COMPILED) {
132
- /**
133
- * @public
134
- * @override
135
- */
136
- proto.UpdatePurchaseOrderStatusRequest.displayName = 'proto.UpdatePurchaseOrderStatusRequest';
137
- }
138
- /**
139
- * Generated by JsPbCodeGenerator.
140
- * @param {Array=} opt_data Optional initial data array, typically from a
141
- * server response, or constructed directly in Javascript. The array is used
142
- * in place and becomes part of the constructed object. It is not cloned.
143
- * If no data is provided, the constructed object will be empty, but still
144
- * valid.
145
- * @extends {jspb.Message}
146
- * @constructor
147
- */
148
- proto.UpdatePurchaseOrderRequest = function(opt_data) {
149
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
150
- };
151
- goog.inherits(proto.UpdatePurchaseOrderRequest, jspb.Message);
152
- if (goog.DEBUG && !COMPILED) {
153
- /**
154
- * @public
155
- * @override
156
- */
157
- proto.UpdatePurchaseOrderRequest.displayName = 'proto.UpdatePurchaseOrderRequest';
158
- }
159
- /**
160
- * Generated by JsPbCodeGenerator.
161
- * @param {Array=} opt_data Optional initial data array, typically from a
162
- * server response, or constructed directly in Javascript. The array is used
163
- * in place and becomes part of the constructed object. It is not cloned.
164
- * If no data is provided, the constructed object will be empty, but still
165
- * valid.
166
- * @extends {jspb.Message}
167
- * @constructor
168
- */
169
- proto.GetPurchaseOrderByIdRequest = function(opt_data) {
170
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
171
- };
172
- goog.inherits(proto.GetPurchaseOrderByIdRequest, jspb.Message);
173
- if (goog.DEBUG && !COMPILED) {
174
- /**
175
- * @public
176
- * @override
177
- */
178
- proto.GetPurchaseOrderByIdRequest.displayName = 'proto.GetPurchaseOrderByIdRequest';
179
- }
180
- /**
181
- * Generated by JsPbCodeGenerator.
182
- * @param {Array=} opt_data Optional initial data array, typically from a
183
- * server response, or constructed directly in Javascript. The array is used
184
- * in place and becomes part of the constructed object. It is not cloned.
185
- * If no data is provided, the constructed object will be empty, but still
186
- * valid.
187
- * @extends {jspb.Message}
188
- * @constructor
189
- */
190
- proto.GetListPurchaseOrderRequest = function(opt_data) {
191
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
192
- };
193
- goog.inherits(proto.GetListPurchaseOrderRequest, jspb.Message);
194
- if (goog.DEBUG && !COMPILED) {
195
- /**
196
- * @public
197
- * @override
198
- */
199
- proto.GetListPurchaseOrderRequest.displayName = 'proto.GetListPurchaseOrderRequest';
200
- }
201
- /**
202
- * Generated by JsPbCodeGenerator.
203
- * @param {Array=} opt_data Optional initial data array, typically from a
204
- * server response, or constructed directly in Javascript. The array is used
205
- * in place and becomes part of the constructed object. It is not cloned.
206
- * If no data is provided, the constructed object will be empty, but still
207
- * valid.
208
- * @extends {jspb.Message}
209
- * @constructor
210
- */
211
- proto.DeletePurchaseOrderRequest = function(opt_data) {
212
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
213
- };
214
- goog.inherits(proto.DeletePurchaseOrderRequest, jspb.Message);
215
- if (goog.DEBUG && !COMPILED) {
216
- /**
217
- * @public
218
- * @override
219
- */
220
- proto.DeletePurchaseOrderRequest.displayName = 'proto.DeletePurchaseOrderRequest';
221
- }
222
- /**
223
- * Generated by JsPbCodeGenerator.
224
- * @param {Array=} opt_data Optional initial data array, typically from a
225
- * server response, or constructed directly in Javascript. The array is used
226
- * in place and becomes part of the constructed object. It is not cloned.
227
- * If no data is provided, the constructed object will be empty, but still
228
- * valid.
229
- * @extends {jspb.Message}
230
- * @constructor
231
- */
232
- proto.CreatePurchaseOrderResponse = function(opt_data) {
233
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
234
- };
235
- goog.inherits(proto.CreatePurchaseOrderResponse, jspb.Message);
236
- if (goog.DEBUG && !COMPILED) {
237
- /**
238
- * @public
239
- * @override
240
- */
241
- proto.CreatePurchaseOrderResponse.displayName = 'proto.CreatePurchaseOrderResponse';
242
- }
243
- /**
244
- * Generated by JsPbCodeGenerator.
245
- * @param {Array=} opt_data Optional initial data array, typically from a
246
- * server response, or constructed directly in Javascript. The array is used
247
- * in place and becomes part of the constructed object. It is not cloned.
248
- * If no data is provided, the constructed object will be empty, but still
249
- * valid.
250
- * @extends {jspb.Message}
251
- * @constructor
252
- */
253
- proto.UpdatePurchaseOrderResponse = function(opt_data) {
254
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
255
- };
256
- goog.inherits(proto.UpdatePurchaseOrderResponse, jspb.Message);
257
- if (goog.DEBUG && !COMPILED) {
258
- /**
259
- * @public
260
- * @override
261
- */
262
- proto.UpdatePurchaseOrderResponse.displayName = 'proto.UpdatePurchaseOrderResponse';
263
- }
264
- /**
265
- * Generated by JsPbCodeGenerator.
266
- * @param {Array=} opt_data Optional initial data array, typically from a
267
- * server response, or constructed directly in Javascript. The array is used
268
- * in place and becomes part of the constructed object. It is not cloned.
269
- * If no data is provided, the constructed object will be empty, but still
270
- * valid.
271
- * @extends {jspb.Message}
272
- * @constructor
273
- */
274
- proto.GetPurchaseOrderByIdResponse = function(opt_data) {
275
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
276
- };
277
- goog.inherits(proto.GetPurchaseOrderByIdResponse, jspb.Message);
278
- if (goog.DEBUG && !COMPILED) {
279
- /**
280
- * @public
281
- * @override
282
- */
283
- proto.GetPurchaseOrderByIdResponse.displayName = 'proto.GetPurchaseOrderByIdResponse';
284
- }
285
- /**
286
- * Generated by JsPbCodeGenerator.
287
- * @param {Array=} opt_data Optional initial data array, typically from a
288
- * server response, or constructed directly in Javascript. The array is used
289
- * in place and becomes part of the constructed object. It is not cloned.
290
- * If no data is provided, the constructed object will be empty, but still
291
- * valid.
292
- * @extends {jspb.Message}
293
- * @constructor
294
- */
295
- proto.GetPurchaseOrderDetailResponse = function(opt_data) {
296
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetPurchaseOrderDetailResponse.repeatedFields_, null);
297
- };
298
- goog.inherits(proto.GetPurchaseOrderDetailResponse, jspb.Message);
299
- if (goog.DEBUG && !COMPILED) {
300
- /**
301
- * @public
302
- * @override
303
- */
304
- proto.GetPurchaseOrderDetailResponse.displayName = 'proto.GetPurchaseOrderDetailResponse';
305
- }
306
- /**
307
- * Generated by JsPbCodeGenerator.
308
- * @param {Array=} opt_data Optional initial data array, typically from a
309
- * server response, or constructed directly in Javascript. The array is used
310
- * in place and becomes part of the constructed object. It is not cloned.
311
- * If no data is provided, the constructed object will be empty, but still
312
- * valid.
313
- * @extends {jspb.Message}
314
- * @constructor
315
- */
316
- proto.GetPurchaseOrderItemPreload = function(opt_data) {
317
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetPurchaseOrderItemPreload.repeatedFields_, null);
318
- };
319
- goog.inherits(proto.GetPurchaseOrderItemPreload, jspb.Message);
320
- if (goog.DEBUG && !COMPILED) {
321
- /**
322
- * @public
323
- * @override
324
- */
325
- proto.GetPurchaseOrderItemPreload.displayName = 'proto.GetPurchaseOrderItemPreload';
326
- }
327
- /**
328
- * Generated by JsPbCodeGenerator.
329
- * @param {Array=} opt_data Optional initial data array, typically from a
330
- * server response, or constructed directly in Javascript. The array is used
331
- * in place and becomes part of the constructed object. It is not cloned.
332
- * If no data is provided, the constructed object will be empty, but still
333
- * valid.
334
- * @extends {jspb.Message}
335
- * @constructor
336
- */
337
- proto.GetPurchaseOrderItemDetailPreload = function(opt_data) {
338
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetPurchaseOrderItemDetailPreload.repeatedFields_, null);
339
- };
340
- goog.inherits(proto.GetPurchaseOrderItemDetailPreload, jspb.Message);
341
- if (goog.DEBUG && !COMPILED) {
342
- /**
343
- * @public
344
- * @override
345
- */
346
- proto.GetPurchaseOrderItemDetailPreload.displayName = 'proto.GetPurchaseOrderItemDetailPreload';
347
- }
348
- /**
349
- * Generated by JsPbCodeGenerator.
350
- * @param {Array=} opt_data Optional initial data array, typically from a
351
- * server response, or constructed directly in Javascript. The array is used
352
- * in place and becomes part of the constructed object. It is not cloned.
353
- * If no data is provided, the constructed object will be empty, but still
354
- * valid.
355
- * @extends {jspb.Message}
356
- * @constructor
357
- */
358
- proto.GetListPurchaseOrderResponse = function(opt_data) {
359
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListPurchaseOrderResponse.repeatedFields_, null);
360
- };
361
- goog.inherits(proto.GetListPurchaseOrderResponse, jspb.Message);
362
- if (goog.DEBUG && !COMPILED) {
363
- /**
364
- * @public
365
- * @override
366
- */
367
- proto.GetListPurchaseOrderResponse.displayName = 'proto.GetListPurchaseOrderResponse';
368
- }
369
- /**
370
- * Generated by JsPbCodeGenerator.
371
- * @param {Array=} opt_data Optional initial data array, typically from a
372
- * server response, or constructed directly in Javascript. The array is used
373
- * in place and becomes part of the constructed object. It is not cloned.
374
- * If no data is provided, the constructed object will be empty, but still
375
- * valid.
376
- * @extends {jspb.Message}
377
- * @constructor
378
- */
379
- proto.DeletePurchaseOrderResponse = function(opt_data) {
380
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
381
- };
382
- goog.inherits(proto.DeletePurchaseOrderResponse, jspb.Message);
383
- if (goog.DEBUG && !COMPILED) {
384
- /**
385
- * @public
386
- * @override
387
- */
388
- proto.DeletePurchaseOrderResponse.displayName = 'proto.DeletePurchaseOrderResponse';
389
- }
390
-
391
- /**
392
- * List of repeated fields within this message type.
393
- * @private {!Array<number>}
394
- * @const
395
- */
396
- proto.PurchaseOrder.repeatedFields_ = [29,30];
397
-
398
-
399
-
400
- if (jspb.Message.GENERATE_TO_OBJECT) {
401
- /**
402
- * Creates an object representation of this proto.
403
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
404
- * Optional fields that are not set will be set to undefined.
405
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
406
- * For the list of reserved names please see:
407
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
408
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
409
- * JSPB instance for transitional soy proto support:
410
- * http://goto/soy-param-migration
411
- * @return {!Object}
412
- */
413
- proto.PurchaseOrder.prototype.toObject = function(opt_includeInstance) {
414
- return proto.PurchaseOrder.toObject(opt_includeInstance, this);
415
- };
416
-
417
-
418
- /**
419
- * Static version of the {@see toObject} method.
420
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
421
- * the JSPB instance for transitional soy proto support:
422
- * http://goto/soy-param-migration
423
- * @param {!proto.PurchaseOrder} msg The msg instance to transform.
424
- * @return {!Object}
425
- * @suppress {unusedLocalVariables} f is only used for nested messages
426
- */
427
- proto.PurchaseOrder.toObject = function(includeInstance, msg) {
428
- var f, obj = {
429
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
430
- purchaseRequestReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
431
- title: jspb.Message.getFieldWithDefault(msg, 3, ""),
432
- date: jspb.Message.getFieldWithDefault(msg, 4, ""),
433
- vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
434
- companyCode: jspb.Message.getFieldWithDefault(msg, 6, ""),
435
- purchasingOrganizations: jspb.Message.getFieldWithDefault(msg, 7, ""),
436
- purchasingGroups: jspb.Message.getFieldWithDefault(msg, 8, ""),
437
- termOfPayment: jspb.Message.getFieldWithDefault(msg, 9, ""),
438
- shippingAddress: jspb.Message.getFieldWithDefault(msg, 10, ""),
439
- termOfPaymentText: jspb.Message.getFieldWithDefault(msg, 11, ""),
440
- guaranteePeriod: jspb.Message.getFieldWithDefault(msg, 12, ""),
441
- retention: jspb.Message.getFieldWithDefault(msg, 13, ""),
442
- penalty: jspb.Message.getFieldWithDefault(msg, 14, ""),
443
- insurance: jspb.Message.getFieldWithDefault(msg, 15, ""),
444
- headerText: jspb.Message.getFieldWithDefault(msg, 16, ""),
445
- headerNote: jspb.Message.getFieldWithDefault(msg, 17, ""),
446
- emailCc: jspb.Message.getFieldWithDefault(msg, 18, ""),
447
- referencesId: jspb.Message.getFieldWithDefault(msg, 19, ""),
448
- status: jspb.Message.getFieldWithDefault(msg, 20, ""),
449
- createdAt: jspb.Message.getFieldWithDefault(msg, 21, ""),
450
- updatedAt: jspb.Message.getFieldWithDefault(msg, 22, ""),
451
- createdBy: jspb.Message.getFieldWithDefault(msg, 23, ""),
452
- updatedBy: jspb.Message.getFieldWithDefault(msg, 24, ""),
453
- fileIds: jspb.Message.getFieldWithDefault(msg, 25, ""),
454
- groupReferences: jspb.Message.getFieldWithDefault(msg, 26, ""),
455
- isExpired: jspb.Message.getBooleanFieldWithDefault(msg, 27, false),
456
- purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 28, ""),
457
- filesList: jspb.Message.toObjectList(msg.getFilesList(),
458
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
459
- itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
460
- prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance),
461
- vendor: (f = msg.getVendor()) && prisca_v1_vendor_domain_vendor_domain_pb.Vendor.toObject(includeInstance, f),
462
- purchaseRequisitionTransaction: (f = msg.getPurchaseRequisitionTransaction()) && prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.PurchaseRequisitionTrx.toObject(includeInstance, f),
463
- createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
464
- updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f)
465
- };
466
-
467
- if (includeInstance) {
468
- obj.$jspbMessageInstance = msg;
469
- }
470
- return obj;
471
- };
472
- }
473
-
474
-
475
- /**
476
- * Deserializes binary data (in protobuf wire format).
477
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
478
- * @return {!proto.PurchaseOrder}
479
- */
480
- proto.PurchaseOrder.deserializeBinary = function(bytes) {
481
- var reader = new jspb.BinaryReader(bytes);
482
- var msg = new proto.PurchaseOrder;
483
- return proto.PurchaseOrder.deserializeBinaryFromReader(msg, reader);
484
- };
485
-
486
-
487
- /**
488
- * Deserializes binary data (in protobuf wire format) from the
489
- * given reader into the given message object.
490
- * @param {!proto.PurchaseOrder} msg The message object to deserialize into.
491
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
492
- * @return {!proto.PurchaseOrder}
493
- */
494
- proto.PurchaseOrder.deserializeBinaryFromReader = function(msg, reader) {
495
- while (reader.nextField()) {
496
- if (reader.isEndGroup()) {
497
- break;
498
- }
499
- var field = reader.getFieldNumber();
500
- switch (field) {
501
- case 1:
502
- var value = /** @type {number} */ (reader.readInt64());
503
- msg.setId(value);
504
- break;
505
- case 2:
506
- var value = /** @type {string} */ (reader.readString());
507
- msg.setPurchaseRequestReferencesId(value);
508
- break;
509
- case 3:
510
- var value = /** @type {string} */ (reader.readString());
511
- msg.setTitle(value);
512
- break;
513
- case 4:
514
- var value = /** @type {string} */ (reader.readString());
515
- msg.setDate(value);
516
- break;
517
- case 5:
518
- var value = /** @type {string} */ (reader.readString());
519
- msg.setVendorReferencesId(value);
520
- break;
521
- case 6:
522
- var value = /** @type {string} */ (reader.readString());
523
- msg.setCompanyCode(value);
524
- break;
525
- case 7:
526
- var value = /** @type {string} */ (reader.readString());
527
- msg.setPurchasingOrganizations(value);
528
- break;
529
- case 8:
530
- var value = /** @type {string} */ (reader.readString());
531
- msg.setPurchasingGroups(value);
532
- break;
533
- case 9:
534
- var value = /** @type {string} */ (reader.readString());
535
- msg.setTermOfPayment(value);
536
- break;
537
- case 10:
538
- var value = /** @type {string} */ (reader.readString());
539
- msg.setShippingAddress(value);
540
- break;
541
- case 11:
542
- var value = /** @type {string} */ (reader.readString());
543
- msg.setTermOfPaymentText(value);
544
- break;
545
- case 12:
546
- var value = /** @type {string} */ (reader.readString());
547
- msg.setGuaranteePeriod(value);
548
- break;
549
- case 13:
550
- var value = /** @type {string} */ (reader.readString());
551
- msg.setRetention(value);
552
- break;
553
- case 14:
554
- var value = /** @type {string} */ (reader.readString());
555
- msg.setPenalty(value);
556
- break;
557
- case 15:
558
- var value = /** @type {string} */ (reader.readString());
559
- msg.setInsurance(value);
560
- break;
561
- case 16:
562
- var value = /** @type {string} */ (reader.readString());
563
- msg.setHeaderText(value);
564
- break;
565
- case 17:
566
- var value = /** @type {string} */ (reader.readString());
567
- msg.setHeaderNote(value);
568
- break;
569
- case 18:
570
- var value = /** @type {string} */ (reader.readString());
571
- msg.setEmailCc(value);
572
- break;
573
- case 19:
574
- var value = /** @type {string} */ (reader.readString());
575
- msg.setReferencesId(value);
576
- break;
577
- case 20:
578
- var value = /** @type {string} */ (reader.readString());
579
- msg.setStatus(value);
580
- break;
581
- case 21:
582
- var value = /** @type {string} */ (reader.readString());
583
- msg.setCreatedAt(value);
584
- break;
585
- case 22:
586
- var value = /** @type {string} */ (reader.readString());
587
- msg.setUpdatedAt(value);
588
- break;
589
- case 23:
590
- var value = /** @type {string} */ (reader.readString());
591
- msg.setCreatedBy(value);
592
- break;
593
- case 24:
594
- var value = /** @type {string} */ (reader.readString());
595
- msg.setUpdatedBy(value);
596
- break;
597
- case 25:
598
- var value = /** @type {string} */ (reader.readString());
599
- msg.setFileIds(value);
600
- break;
601
- case 26:
602
- var value = /** @type {string} */ (reader.readString());
603
- msg.setGroupReferences(value);
604
- break;
605
- case 27:
606
- var value = /** @type {boolean} */ (reader.readBool());
607
- msg.setIsExpired(value);
608
- break;
609
- case 28:
610
- var value = /** @type {string} */ (reader.readString());
611
- msg.setPurchaseOrderNumber(value);
612
- break;
613
- case 29:
614
- var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
615
- reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
616
- msg.addFiles(value);
617
- break;
618
- case 30:
619
- var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
620
- reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
621
- msg.addItemTransactions(value);
622
- break;
623
- case 31:
624
- var value = new prisca_v1_vendor_domain_vendor_domain_pb.Vendor;
625
- reader.readMessage(value,prisca_v1_vendor_domain_vendor_domain_pb.Vendor.deserializeBinaryFromReader);
626
- msg.setVendor(value);
627
- break;
628
- case 32:
629
- var value = new prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.PurchaseRequisitionTrx;
630
- reader.readMessage(value,prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.PurchaseRequisitionTrx.deserializeBinaryFromReader);
631
- msg.setPurchaseRequisitionTransaction(value);
632
- break;
633
- case 33:
634
- var value = new prisca_v1_core_employee_employee_pb.Employee;
635
- reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
636
- msg.setCreatedByEmployee(value);
637
- break;
638
- case 34:
639
- var value = new prisca_v1_core_employee_employee_pb.Employee;
640
- reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
641
- msg.setUpdatedByEmployee(value);
642
- break;
643
- default:
644
- reader.skipField();
645
- break;
646
- }
647
- }
648
- return msg;
649
- };
650
-
651
-
652
- /**
653
- * Serializes the message to binary data (in protobuf wire format).
654
- * @return {!Uint8Array}
655
- */
656
- proto.PurchaseOrder.prototype.serializeBinary = function() {
657
- var writer = new jspb.BinaryWriter();
658
- proto.PurchaseOrder.serializeBinaryToWriter(this, writer);
659
- return writer.getResultBuffer();
660
- };
661
-
662
-
663
- /**
664
- * Serializes the given message to binary data (in protobuf wire
665
- * format), writing to the given BinaryWriter.
666
- * @param {!proto.PurchaseOrder} message
667
- * @param {!jspb.BinaryWriter} writer
668
- * @suppress {unusedLocalVariables} f is only used for nested messages
669
- */
670
- proto.PurchaseOrder.serializeBinaryToWriter = function(message, writer) {
671
- var f = undefined;
672
- f = message.getId();
673
- if (f !== 0) {
674
- writer.writeInt64(
675
- 1,
676
- f
677
- );
678
- }
679
- f = message.getPurchaseRequestReferencesId();
680
- if (f.length > 0) {
681
- writer.writeString(
682
- 2,
683
- f
684
- );
685
- }
686
- f = message.getTitle();
687
- if (f.length > 0) {
688
- writer.writeString(
689
- 3,
690
- f
691
- );
692
- }
693
- f = message.getDate();
694
- if (f.length > 0) {
695
- writer.writeString(
696
- 4,
697
- f
698
- );
699
- }
700
- f = message.getVendorReferencesId();
701
- if (f.length > 0) {
702
- writer.writeString(
703
- 5,
704
- f
705
- );
706
- }
707
- f = message.getCompanyCode();
708
- if (f.length > 0) {
709
- writer.writeString(
710
- 6,
711
- f
712
- );
713
- }
714
- f = message.getPurchasingOrganizations();
715
- if (f.length > 0) {
716
- writer.writeString(
717
- 7,
718
- f
719
- );
720
- }
721
- f = message.getPurchasingGroups();
722
- if (f.length > 0) {
723
- writer.writeString(
724
- 8,
725
- f
726
- );
727
- }
728
- f = message.getTermOfPayment();
729
- if (f.length > 0) {
730
- writer.writeString(
731
- 9,
732
- f
733
- );
734
- }
735
- f = message.getShippingAddress();
736
- if (f.length > 0) {
737
- writer.writeString(
738
- 10,
739
- f
740
- );
741
- }
742
- f = message.getTermOfPaymentText();
743
- if (f.length > 0) {
744
- writer.writeString(
745
- 11,
746
- f
747
- );
748
- }
749
- f = message.getGuaranteePeriod();
750
- if (f.length > 0) {
751
- writer.writeString(
752
- 12,
753
- f
754
- );
755
- }
756
- f = message.getRetention();
757
- if (f.length > 0) {
758
- writer.writeString(
759
- 13,
760
- f
761
- );
762
- }
763
- f = message.getPenalty();
764
- if (f.length > 0) {
765
- writer.writeString(
766
- 14,
767
- f
768
- );
769
- }
770
- f = message.getInsurance();
771
- if (f.length > 0) {
772
- writer.writeString(
773
- 15,
774
- f
775
- );
776
- }
777
- f = message.getHeaderText();
778
- if (f.length > 0) {
779
- writer.writeString(
780
- 16,
781
- f
782
- );
783
- }
784
- f = message.getHeaderNote();
785
- if (f.length > 0) {
786
- writer.writeString(
787
- 17,
788
- f
789
- );
790
- }
791
- f = message.getEmailCc();
792
- if (f.length > 0) {
793
- writer.writeString(
794
- 18,
795
- f
796
- );
797
- }
798
- f = message.getReferencesId();
799
- if (f.length > 0) {
800
- writer.writeString(
801
- 19,
802
- f
803
- );
804
- }
805
- f = message.getStatus();
806
- if (f.length > 0) {
807
- writer.writeString(
808
- 20,
809
- f
810
- );
811
- }
812
- f = message.getCreatedAt();
813
- if (f.length > 0) {
814
- writer.writeString(
815
- 21,
816
- f
817
- );
818
- }
819
- f = message.getUpdatedAt();
820
- if (f.length > 0) {
821
- writer.writeString(
822
- 22,
823
- f
824
- );
825
- }
826
- f = message.getCreatedBy();
827
- if (f.length > 0) {
828
- writer.writeString(
829
- 23,
830
- f
831
- );
832
- }
833
- f = message.getUpdatedBy();
834
- if (f.length > 0) {
835
- writer.writeString(
836
- 24,
837
- f
838
- );
839
- }
840
- f = message.getFileIds();
841
- if (f.length > 0) {
842
- writer.writeString(
843
- 25,
844
- f
845
- );
846
- }
847
- f = message.getGroupReferences();
848
- if (f.length > 0) {
849
- writer.writeString(
850
- 26,
851
- f
852
- );
853
- }
854
- f = message.getIsExpired();
855
- if (f) {
856
- writer.writeBool(
857
- 27,
858
- f
859
- );
860
- }
861
- f = message.getPurchaseOrderNumber();
862
- if (f.length > 0) {
863
- writer.writeString(
864
- 28,
865
- f
866
- );
867
- }
868
- f = message.getFilesList();
869
- if (f.length > 0) {
870
- writer.writeRepeatedMessage(
871
- 29,
872
- f,
873
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
874
- );
875
- }
876
- f = message.getItemTransactionsList();
877
- if (f.length > 0) {
878
- writer.writeRepeatedMessage(
879
- 30,
880
- f,
881
- prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
882
- );
883
- }
884
- f = message.getVendor();
885
- if (f != null) {
886
- writer.writeMessage(
887
- 31,
888
- f,
889
- prisca_v1_vendor_domain_vendor_domain_pb.Vendor.serializeBinaryToWriter
890
- );
891
- }
892
- f = message.getPurchaseRequisitionTransaction();
893
- if (f != null) {
894
- writer.writeMessage(
895
- 32,
896
- f,
897
- prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.PurchaseRequisitionTrx.serializeBinaryToWriter
898
- );
899
- }
900
- f = message.getCreatedByEmployee();
901
- if (f != null) {
902
- writer.writeMessage(
903
- 33,
904
- f,
905
- prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
906
- );
907
- }
908
- f = message.getUpdatedByEmployee();
909
- if (f != null) {
910
- writer.writeMessage(
911
- 34,
912
- f,
913
- prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
914
- );
915
- }
916
- };
917
-
918
-
919
- /**
920
- * optional int64 id = 1;
921
- * @return {number}
922
- */
923
- proto.PurchaseOrder.prototype.getId = function() {
924
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
925
- };
926
-
927
-
928
- /**
929
- * @param {number} value
930
- * @return {!proto.PurchaseOrder} returns this
931
- */
932
- proto.PurchaseOrder.prototype.setId = function(value) {
933
- return jspb.Message.setProto3IntField(this, 1, value);
934
- };
935
-
936
-
937
- /**
938
- * optional string purchase_request_references_id = 2;
939
- * @return {string}
940
- */
941
- proto.PurchaseOrder.prototype.getPurchaseRequestReferencesId = function() {
942
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
943
- };
944
-
945
-
946
- /**
947
- * @param {string} value
948
- * @return {!proto.PurchaseOrder} returns this
949
- */
950
- proto.PurchaseOrder.prototype.setPurchaseRequestReferencesId = function(value) {
951
- return jspb.Message.setProto3StringField(this, 2, value);
952
- };
953
-
954
-
955
- /**
956
- * optional string title = 3;
957
- * @return {string}
958
- */
959
- proto.PurchaseOrder.prototype.getTitle = function() {
960
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
961
- };
962
-
963
-
964
- /**
965
- * @param {string} value
966
- * @return {!proto.PurchaseOrder} returns this
967
- */
968
- proto.PurchaseOrder.prototype.setTitle = function(value) {
969
- return jspb.Message.setProto3StringField(this, 3, value);
970
- };
971
-
972
-
973
- /**
974
- * optional string date = 4;
975
- * @return {string}
976
- */
977
- proto.PurchaseOrder.prototype.getDate = function() {
978
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
979
- };
980
-
981
-
982
- /**
983
- * @param {string} value
984
- * @return {!proto.PurchaseOrder} returns this
985
- */
986
- proto.PurchaseOrder.prototype.setDate = function(value) {
987
- return jspb.Message.setProto3StringField(this, 4, value);
988
- };
989
-
990
-
991
- /**
992
- * optional string vendor_references_id = 5;
993
- * @return {string}
994
- */
995
- proto.PurchaseOrder.prototype.getVendorReferencesId = function() {
996
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
997
- };
998
-
999
-
1000
- /**
1001
- * @param {string} value
1002
- * @return {!proto.PurchaseOrder} returns this
1003
- */
1004
- proto.PurchaseOrder.prototype.setVendorReferencesId = function(value) {
1005
- return jspb.Message.setProto3StringField(this, 5, value);
1006
- };
1007
-
1008
-
1009
- /**
1010
- * optional string company_code = 6;
1011
- * @return {string}
1012
- */
1013
- proto.PurchaseOrder.prototype.getCompanyCode = function() {
1014
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1015
- };
1016
-
1017
-
1018
- /**
1019
- * @param {string} value
1020
- * @return {!proto.PurchaseOrder} returns this
1021
- */
1022
- proto.PurchaseOrder.prototype.setCompanyCode = function(value) {
1023
- return jspb.Message.setProto3StringField(this, 6, value);
1024
- };
1025
-
1026
-
1027
- /**
1028
- * optional string purchasing_organizations = 7;
1029
- * @return {string}
1030
- */
1031
- proto.PurchaseOrder.prototype.getPurchasingOrganizations = function() {
1032
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1033
- };
1034
-
1035
-
1036
- /**
1037
- * @param {string} value
1038
- * @return {!proto.PurchaseOrder} returns this
1039
- */
1040
- proto.PurchaseOrder.prototype.setPurchasingOrganizations = function(value) {
1041
- return jspb.Message.setProto3StringField(this, 7, value);
1042
- };
1043
-
1044
-
1045
- /**
1046
- * optional string purchasing_groups = 8;
1047
- * @return {string}
1048
- */
1049
- proto.PurchaseOrder.prototype.getPurchasingGroups = function() {
1050
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1051
- };
1052
-
1053
-
1054
- /**
1055
- * @param {string} value
1056
- * @return {!proto.PurchaseOrder} returns this
1057
- */
1058
- proto.PurchaseOrder.prototype.setPurchasingGroups = function(value) {
1059
- return jspb.Message.setProto3StringField(this, 8, value);
1060
- };
1061
-
1062
-
1063
- /**
1064
- * optional string term_of_payment = 9;
1065
- * @return {string}
1066
- */
1067
- proto.PurchaseOrder.prototype.getTermOfPayment = function() {
1068
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1069
- };
1070
-
1071
-
1072
- /**
1073
- * @param {string} value
1074
- * @return {!proto.PurchaseOrder} returns this
1075
- */
1076
- proto.PurchaseOrder.prototype.setTermOfPayment = function(value) {
1077
- return jspb.Message.setProto3StringField(this, 9, value);
1078
- };
1079
-
1080
-
1081
- /**
1082
- * optional string shipping_address = 10;
1083
- * @return {string}
1084
- */
1085
- proto.PurchaseOrder.prototype.getShippingAddress = function() {
1086
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1087
- };
1088
-
1089
-
1090
- /**
1091
- * @param {string} value
1092
- * @return {!proto.PurchaseOrder} returns this
1093
- */
1094
- proto.PurchaseOrder.prototype.setShippingAddress = function(value) {
1095
- return jspb.Message.setProto3StringField(this, 10, value);
1096
- };
1097
-
1098
-
1099
- /**
1100
- * optional string term_of_payment_text = 11;
1101
- * @return {string}
1102
- */
1103
- proto.PurchaseOrder.prototype.getTermOfPaymentText = function() {
1104
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1105
- };
1106
-
1107
-
1108
- /**
1109
- * @param {string} value
1110
- * @return {!proto.PurchaseOrder} returns this
1111
- */
1112
- proto.PurchaseOrder.prototype.setTermOfPaymentText = function(value) {
1113
- return jspb.Message.setProto3StringField(this, 11, value);
1114
- };
1115
-
1116
-
1117
- /**
1118
- * optional string guarantee_period = 12;
1119
- * @return {string}
1120
- */
1121
- proto.PurchaseOrder.prototype.getGuaranteePeriod = function() {
1122
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
1123
- };
1124
-
1125
-
1126
- /**
1127
- * @param {string} value
1128
- * @return {!proto.PurchaseOrder} returns this
1129
- */
1130
- proto.PurchaseOrder.prototype.setGuaranteePeriod = function(value) {
1131
- return jspb.Message.setProto3StringField(this, 12, value);
1132
- };
1133
-
1134
-
1135
- /**
1136
- * optional string retention = 13;
1137
- * @return {string}
1138
- */
1139
- proto.PurchaseOrder.prototype.getRetention = function() {
1140
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
1141
- };
1142
-
1143
-
1144
- /**
1145
- * @param {string} value
1146
- * @return {!proto.PurchaseOrder} returns this
1147
- */
1148
- proto.PurchaseOrder.prototype.setRetention = function(value) {
1149
- return jspb.Message.setProto3StringField(this, 13, value);
1150
- };
1151
-
1152
-
1153
- /**
1154
- * optional string penalty = 14;
1155
- * @return {string}
1156
- */
1157
- proto.PurchaseOrder.prototype.getPenalty = function() {
1158
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
1159
- };
1160
-
1161
-
1162
- /**
1163
- * @param {string} value
1164
- * @return {!proto.PurchaseOrder} returns this
1165
- */
1166
- proto.PurchaseOrder.prototype.setPenalty = function(value) {
1167
- return jspb.Message.setProto3StringField(this, 14, value);
1168
- };
1169
-
1170
-
1171
- /**
1172
- * optional string insurance = 15;
1173
- * @return {string}
1174
- */
1175
- proto.PurchaseOrder.prototype.getInsurance = function() {
1176
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
1177
- };
1178
-
1179
-
1180
- /**
1181
- * @param {string} value
1182
- * @return {!proto.PurchaseOrder} returns this
1183
- */
1184
- proto.PurchaseOrder.prototype.setInsurance = function(value) {
1185
- return jspb.Message.setProto3StringField(this, 15, value);
1186
- };
1187
-
1188
-
1189
- /**
1190
- * optional string header_text = 16;
1191
- * @return {string}
1192
- */
1193
- proto.PurchaseOrder.prototype.getHeaderText = function() {
1194
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
1195
- };
1196
-
1197
-
1198
- /**
1199
- * @param {string} value
1200
- * @return {!proto.PurchaseOrder} returns this
1201
- */
1202
- proto.PurchaseOrder.prototype.setHeaderText = function(value) {
1203
- return jspb.Message.setProto3StringField(this, 16, value);
1204
- };
1205
-
1206
-
1207
- /**
1208
- * optional string header_note = 17;
1209
- * @return {string}
1210
- */
1211
- proto.PurchaseOrder.prototype.getHeaderNote = function() {
1212
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
1213
- };
1214
-
1215
-
1216
- /**
1217
- * @param {string} value
1218
- * @return {!proto.PurchaseOrder} returns this
1219
- */
1220
- proto.PurchaseOrder.prototype.setHeaderNote = function(value) {
1221
- return jspb.Message.setProto3StringField(this, 17, value);
1222
- };
1223
-
1224
-
1225
- /**
1226
- * optional string email_cc = 18;
1227
- * @return {string}
1228
- */
1229
- proto.PurchaseOrder.prototype.getEmailCc = function() {
1230
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
1231
- };
1232
-
1233
-
1234
- /**
1235
- * @param {string} value
1236
- * @return {!proto.PurchaseOrder} returns this
1237
- */
1238
- proto.PurchaseOrder.prototype.setEmailCc = function(value) {
1239
- return jspb.Message.setProto3StringField(this, 18, value);
1240
- };
1241
-
1242
-
1243
- /**
1244
- * optional string references_id = 19;
1245
- * @return {string}
1246
- */
1247
- proto.PurchaseOrder.prototype.getReferencesId = function() {
1248
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
1249
- };
1250
-
1251
-
1252
- /**
1253
- * @param {string} value
1254
- * @return {!proto.PurchaseOrder} returns this
1255
- */
1256
- proto.PurchaseOrder.prototype.setReferencesId = function(value) {
1257
- return jspb.Message.setProto3StringField(this, 19, value);
1258
- };
1259
-
1260
-
1261
- /**
1262
- * optional string status = 20;
1263
- * @return {string}
1264
- */
1265
- proto.PurchaseOrder.prototype.getStatus = function() {
1266
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
1267
- };
1268
-
1269
-
1270
- /**
1271
- * @param {string} value
1272
- * @return {!proto.PurchaseOrder} returns this
1273
- */
1274
- proto.PurchaseOrder.prototype.setStatus = function(value) {
1275
- return jspb.Message.setProto3StringField(this, 20, value);
1276
- };
1277
-
1278
-
1279
- /**
1280
- * optional string created_at = 21;
1281
- * @return {string}
1282
- */
1283
- proto.PurchaseOrder.prototype.getCreatedAt = function() {
1284
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
1285
- };
1286
-
1287
-
1288
- /**
1289
- * @param {string} value
1290
- * @return {!proto.PurchaseOrder} returns this
1291
- */
1292
- proto.PurchaseOrder.prototype.setCreatedAt = function(value) {
1293
- return jspb.Message.setProto3StringField(this, 21, value);
1294
- };
1295
-
1296
-
1297
- /**
1298
- * optional string updated_at = 22;
1299
- * @return {string}
1300
- */
1301
- proto.PurchaseOrder.prototype.getUpdatedAt = function() {
1302
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
1303
- };
1304
-
1305
-
1306
- /**
1307
- * @param {string} value
1308
- * @return {!proto.PurchaseOrder} returns this
1309
- */
1310
- proto.PurchaseOrder.prototype.setUpdatedAt = function(value) {
1311
- return jspb.Message.setProto3StringField(this, 22, value);
1312
- };
1313
-
1314
-
1315
- /**
1316
- * optional string created_by = 23;
1317
- * @return {string}
1318
- */
1319
- proto.PurchaseOrder.prototype.getCreatedBy = function() {
1320
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
1321
- };
1322
-
1323
-
1324
- /**
1325
- * @param {string} value
1326
- * @return {!proto.PurchaseOrder} returns this
1327
- */
1328
- proto.PurchaseOrder.prototype.setCreatedBy = function(value) {
1329
- return jspb.Message.setProto3StringField(this, 23, value);
1330
- };
1331
-
1332
-
1333
- /**
1334
- * optional string updated_by = 24;
1335
- * @return {string}
1336
- */
1337
- proto.PurchaseOrder.prototype.getUpdatedBy = function() {
1338
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, ""));
1339
- };
1340
-
1341
-
1342
- /**
1343
- * @param {string} value
1344
- * @return {!proto.PurchaseOrder} returns this
1345
- */
1346
- proto.PurchaseOrder.prototype.setUpdatedBy = function(value) {
1347
- return jspb.Message.setProto3StringField(this, 24, value);
1348
- };
1349
-
1350
-
1351
- /**
1352
- * optional string file_ids = 25;
1353
- * @return {string}
1354
- */
1355
- proto.PurchaseOrder.prototype.getFileIds = function() {
1356
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
1357
- };
1358
-
1359
-
1360
- /**
1361
- * @param {string} value
1362
- * @return {!proto.PurchaseOrder} returns this
1363
- */
1364
- proto.PurchaseOrder.prototype.setFileIds = function(value) {
1365
- return jspb.Message.setProto3StringField(this, 25, value);
1366
- };
1367
-
1368
-
1369
- /**
1370
- * optional string group_references = 26;
1371
- * @return {string}
1372
- */
1373
- proto.PurchaseOrder.prototype.getGroupReferences = function() {
1374
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, ""));
1375
- };
1376
-
1377
-
1378
- /**
1379
- * @param {string} value
1380
- * @return {!proto.PurchaseOrder} returns this
1381
- */
1382
- proto.PurchaseOrder.prototype.setGroupReferences = function(value) {
1383
- return jspb.Message.setProto3StringField(this, 26, value);
1384
- };
1385
-
1386
-
1387
- /**
1388
- * optional bool is_expired = 27;
1389
- * @return {boolean}
1390
- */
1391
- proto.PurchaseOrder.prototype.getIsExpired = function() {
1392
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 27, false));
1393
- };
1394
-
1395
-
1396
- /**
1397
- * @param {boolean} value
1398
- * @return {!proto.PurchaseOrder} returns this
1399
- */
1400
- proto.PurchaseOrder.prototype.setIsExpired = function(value) {
1401
- return jspb.Message.setProto3BooleanField(this, 27, value);
1402
- };
1403
-
1404
-
1405
- /**
1406
- * optional string purchase_order_number = 28;
1407
- * @return {string}
1408
- */
1409
- proto.PurchaseOrder.prototype.getPurchaseOrderNumber = function() {
1410
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, ""));
1411
- };
1412
-
1413
-
1414
- /**
1415
- * @param {string} value
1416
- * @return {!proto.PurchaseOrder} returns this
1417
- */
1418
- proto.PurchaseOrder.prototype.setPurchaseOrderNumber = function(value) {
1419
- return jspb.Message.setProto3StringField(this, 28, value);
1420
- };
1421
-
1422
-
1423
- /**
1424
- * repeated FileUploadReferencesReq files = 29;
1425
- * @return {!Array<!proto.FileUploadReferencesReq>}
1426
- */
1427
- proto.PurchaseOrder.prototype.getFilesList = function() {
1428
- return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
1429
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 29));
1430
- };
1431
-
1432
-
1433
- /**
1434
- * @param {!Array<!proto.FileUploadReferencesReq>} value
1435
- * @return {!proto.PurchaseOrder} returns this
1436
- */
1437
- proto.PurchaseOrder.prototype.setFilesList = function(value) {
1438
- return jspb.Message.setRepeatedWrapperField(this, 29, value);
1439
- };
1440
-
1441
-
1442
- /**
1443
- * @param {!proto.FileUploadReferencesReq=} opt_value
1444
- * @param {number=} opt_index
1445
- * @return {!proto.FileUploadReferencesReq}
1446
- */
1447
- proto.PurchaseOrder.prototype.addFiles = function(opt_value, opt_index) {
1448
- return jspb.Message.addToRepeatedWrapperField(this, 29, opt_value, proto.FileUploadReferencesReq, opt_index);
1449
- };
1450
-
1451
-
1452
- /**
1453
- * Clears the list making it empty but non-null.
1454
- * @return {!proto.PurchaseOrder} returns this
1455
- */
1456
- proto.PurchaseOrder.prototype.clearFilesList = function() {
1457
- return this.setFilesList([]);
1458
- };
1459
-
1460
-
1461
- /**
1462
- * repeated ItemTransaction item_transactions = 30;
1463
- * @return {!Array<!proto.ItemTransaction>}
1464
- */
1465
- proto.PurchaseOrder.prototype.getItemTransactionsList = function() {
1466
- return /** @type{!Array<!proto.ItemTransaction>} */ (
1467
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 30));
1468
- };
1469
-
1470
-
1471
- /**
1472
- * @param {!Array<!proto.ItemTransaction>} value
1473
- * @return {!proto.PurchaseOrder} returns this
1474
- */
1475
- proto.PurchaseOrder.prototype.setItemTransactionsList = function(value) {
1476
- return jspb.Message.setRepeatedWrapperField(this, 30, value);
1477
- };
1478
-
1479
-
1480
- /**
1481
- * @param {!proto.ItemTransaction=} opt_value
1482
- * @param {number=} opt_index
1483
- * @return {!proto.ItemTransaction}
1484
- */
1485
- proto.PurchaseOrder.prototype.addItemTransactions = function(opt_value, opt_index) {
1486
- return jspb.Message.addToRepeatedWrapperField(this, 30, opt_value, proto.ItemTransaction, opt_index);
1487
- };
1488
-
1489
-
1490
- /**
1491
- * Clears the list making it empty but non-null.
1492
- * @return {!proto.PurchaseOrder} returns this
1493
- */
1494
- proto.PurchaseOrder.prototype.clearItemTransactionsList = function() {
1495
- return this.setItemTransactionsList([]);
1496
- };
1497
-
1498
-
1499
- /**
1500
- * optional Vendor vendor = 31;
1501
- * @return {?proto.Vendor}
1502
- */
1503
- proto.PurchaseOrder.prototype.getVendor = function() {
1504
- return /** @type{?proto.Vendor} */ (
1505
- jspb.Message.getWrapperField(this, prisca_v1_vendor_domain_vendor_domain_pb.Vendor, 31));
1506
- };
1507
-
1508
-
1509
- /**
1510
- * @param {?proto.Vendor|undefined} value
1511
- * @return {!proto.PurchaseOrder} returns this
1512
- */
1513
- proto.PurchaseOrder.prototype.setVendor = function(value) {
1514
- return jspb.Message.setWrapperField(this, 31, value);
1515
- };
1516
-
1517
-
1518
- /**
1519
- * Clears the message field making it undefined.
1520
- * @return {!proto.PurchaseOrder} returns this
1521
- */
1522
- proto.PurchaseOrder.prototype.clearVendor = function() {
1523
- return this.setVendor(undefined);
1524
- };
1525
-
1526
-
1527
- /**
1528
- * Returns whether this field is set.
1529
- * @return {boolean}
1530
- */
1531
- proto.PurchaseOrder.prototype.hasVendor = function() {
1532
- return jspb.Message.getField(this, 31) != null;
1533
- };
1534
-
1535
-
1536
- /**
1537
- * optional PurchaseRequisitionTrx purchase_requisition_transaction = 32;
1538
- * @return {?proto.PurchaseRequisitionTrx}
1539
- */
1540
- proto.PurchaseOrder.prototype.getPurchaseRequisitionTransaction = function() {
1541
- return /** @type{?proto.PurchaseRequisitionTrx} */ (
1542
- jspb.Message.getWrapperField(this, prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.PurchaseRequisitionTrx, 32));
1543
- };
1544
-
1545
-
1546
- /**
1547
- * @param {?proto.PurchaseRequisitionTrx|undefined} value
1548
- * @return {!proto.PurchaseOrder} returns this
1549
- */
1550
- proto.PurchaseOrder.prototype.setPurchaseRequisitionTransaction = function(value) {
1551
- return jspb.Message.setWrapperField(this, 32, value);
1552
- };
1553
-
1554
-
1555
- /**
1556
- * Clears the message field making it undefined.
1557
- * @return {!proto.PurchaseOrder} returns this
1558
- */
1559
- proto.PurchaseOrder.prototype.clearPurchaseRequisitionTransaction = function() {
1560
- return this.setPurchaseRequisitionTransaction(undefined);
1561
- };
1562
-
1563
-
1564
- /**
1565
- * Returns whether this field is set.
1566
- * @return {boolean}
1567
- */
1568
- proto.PurchaseOrder.prototype.hasPurchaseRequisitionTransaction = function() {
1569
- return jspb.Message.getField(this, 32) != null;
1570
- };
1571
-
1572
-
1573
- /**
1574
- * optional Employee created_by_employee = 33;
1575
- * @return {?proto.Employee}
1576
- */
1577
- proto.PurchaseOrder.prototype.getCreatedByEmployee = function() {
1578
- return /** @type{?proto.Employee} */ (
1579
- jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 33));
1580
- };
1581
-
1582
-
1583
- /**
1584
- * @param {?proto.Employee|undefined} value
1585
- * @return {!proto.PurchaseOrder} returns this
1586
- */
1587
- proto.PurchaseOrder.prototype.setCreatedByEmployee = function(value) {
1588
- return jspb.Message.setWrapperField(this, 33, value);
1589
- };
1590
-
1591
-
1592
- /**
1593
- * Clears the message field making it undefined.
1594
- * @return {!proto.PurchaseOrder} returns this
1595
- */
1596
- proto.PurchaseOrder.prototype.clearCreatedByEmployee = function() {
1597
- return this.setCreatedByEmployee(undefined);
1598
- };
1599
-
1600
-
1601
- /**
1602
- * Returns whether this field is set.
1603
- * @return {boolean}
1604
- */
1605
- proto.PurchaseOrder.prototype.hasCreatedByEmployee = function() {
1606
- return jspb.Message.getField(this, 33) != null;
1607
- };
1608
-
1609
-
1610
- /**
1611
- * optional Employee updated_by_employee = 34;
1612
- * @return {?proto.Employee}
1613
- */
1614
- proto.PurchaseOrder.prototype.getUpdatedByEmployee = function() {
1615
- return /** @type{?proto.Employee} */ (
1616
- jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 34));
1617
- };
1618
-
1619
-
1620
- /**
1621
- * @param {?proto.Employee|undefined} value
1622
- * @return {!proto.PurchaseOrder} returns this
1623
- */
1624
- proto.PurchaseOrder.prototype.setUpdatedByEmployee = function(value) {
1625
- return jspb.Message.setWrapperField(this, 34, value);
1626
- };
1627
-
1628
-
1629
- /**
1630
- * Clears the message field making it undefined.
1631
- * @return {!proto.PurchaseOrder} returns this
1632
- */
1633
- proto.PurchaseOrder.prototype.clearUpdatedByEmployee = function() {
1634
- return this.setUpdatedByEmployee(undefined);
1635
- };
1636
-
1637
-
1638
- /**
1639
- * Returns whether this field is set.
1640
- * @return {boolean}
1641
- */
1642
- proto.PurchaseOrder.prototype.hasUpdatedByEmployee = function() {
1643
- return jspb.Message.getField(this, 34) != null;
1644
- };
1645
-
1646
-
1647
-
1648
- /**
1649
- * List of repeated fields within this message type.
1650
- * @private {!Array<number>}
1651
- * @const
1652
- */
1653
- proto.BasePurchaseOrderRequest.repeatedFields_ = [19,20];
1654
-
1655
-
1656
-
1657
- if (jspb.Message.GENERATE_TO_OBJECT) {
1658
- /**
1659
- * Creates an object representation of this proto.
1660
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1661
- * Optional fields that are not set will be set to undefined.
1662
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1663
- * For the list of reserved names please see:
1664
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1665
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1666
- * JSPB instance for transitional soy proto support:
1667
- * http://goto/soy-param-migration
1668
- * @return {!Object}
1669
- */
1670
- proto.BasePurchaseOrderRequest.prototype.toObject = function(opt_includeInstance) {
1671
- return proto.BasePurchaseOrderRequest.toObject(opt_includeInstance, this);
1672
- };
1673
-
1674
-
1675
- /**
1676
- * Static version of the {@see toObject} method.
1677
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1678
- * the JSPB instance for transitional soy proto support:
1679
- * http://goto/soy-param-migration
1680
- * @param {!proto.BasePurchaseOrderRequest} msg The msg instance to transform.
1681
- * @return {!Object}
1682
- * @suppress {unusedLocalVariables} f is only used for nested messages
1683
- */
1684
- proto.BasePurchaseOrderRequest.toObject = function(includeInstance, msg) {
1685
- var f, obj = {
1686
- purchaseRequestReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1687
- title: jspb.Message.getFieldWithDefault(msg, 2, ""),
1688
- companyCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
1689
- purchasingOrganizations: jspb.Message.getFieldWithDefault(msg, 4, ""),
1690
- purchasingGroups: jspb.Message.getFieldWithDefault(msg, 5, ""),
1691
- termOfPayment: jspb.Message.getFieldWithDefault(msg, 6, ""),
1692
- shippingAddress: jspb.Message.getFieldWithDefault(msg, 7, ""),
1693
- termOfPaymentText: jspb.Message.getFieldWithDefault(msg, 8, ""),
1694
- guaranteePeriod: jspb.Message.getFieldWithDefault(msg, 9, ""),
1695
- retention: jspb.Message.getFieldWithDefault(msg, 10, ""),
1696
- penalty: jspb.Message.getFieldWithDefault(msg, 11, ""),
1697
- insurance: jspb.Message.getFieldWithDefault(msg, 12, ""),
1698
- headerText: jspb.Message.getFieldWithDefault(msg, 13, ""),
1699
- headerNote: jspb.Message.getFieldWithDefault(msg, 14, ""),
1700
- emailCc: jspb.Message.getFieldWithDefault(msg, 15, ""),
1701
- status: jspb.Message.getFieldWithDefault(msg, 16, ""),
1702
- date: jspb.Message.getFieldWithDefault(msg, 17, ""),
1703
- groupReferences: jspb.Message.getFieldWithDefault(msg, 18, ""),
1704
- filesList: jspb.Message.toObjectList(msg.getFilesList(),
1705
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
1706
- itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
1707
- prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.toObject, includeInstance),
1708
- vendor: (f = msg.getVendor()) && prisca_v1_vendor_domain_vendor_domain_pb.Vendor.toObject(includeInstance, f)
1709
- };
1710
-
1711
- if (includeInstance) {
1712
- obj.$jspbMessageInstance = msg;
1713
- }
1714
- return obj;
1715
- };
1716
- }
1717
-
1718
-
1719
- /**
1720
- * Deserializes binary data (in protobuf wire format).
1721
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1722
- * @return {!proto.BasePurchaseOrderRequest}
1723
- */
1724
- proto.BasePurchaseOrderRequest.deserializeBinary = function(bytes) {
1725
- var reader = new jspb.BinaryReader(bytes);
1726
- var msg = new proto.BasePurchaseOrderRequest;
1727
- return proto.BasePurchaseOrderRequest.deserializeBinaryFromReader(msg, reader);
1728
- };
1729
-
1730
-
1731
- /**
1732
- * Deserializes binary data (in protobuf wire format) from the
1733
- * given reader into the given message object.
1734
- * @param {!proto.BasePurchaseOrderRequest} msg The message object to deserialize into.
1735
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1736
- * @return {!proto.BasePurchaseOrderRequest}
1737
- */
1738
- proto.BasePurchaseOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
1739
- while (reader.nextField()) {
1740
- if (reader.isEndGroup()) {
1741
- break;
1742
- }
1743
- var field = reader.getFieldNumber();
1744
- switch (field) {
1745
- case 1:
1746
- var value = /** @type {string} */ (reader.readString());
1747
- msg.setPurchaseRequestReferencesId(value);
1748
- break;
1749
- case 2:
1750
- var value = /** @type {string} */ (reader.readString());
1751
- msg.setTitle(value);
1752
- break;
1753
- case 3:
1754
- var value = /** @type {string} */ (reader.readString());
1755
- msg.setCompanyCode(value);
1756
- break;
1757
- case 4:
1758
- var value = /** @type {string} */ (reader.readString());
1759
- msg.setPurchasingOrganizations(value);
1760
- break;
1761
- case 5:
1762
- var value = /** @type {string} */ (reader.readString());
1763
- msg.setPurchasingGroups(value);
1764
- break;
1765
- case 6:
1766
- var value = /** @type {string} */ (reader.readString());
1767
- msg.setTermOfPayment(value);
1768
- break;
1769
- case 7:
1770
- var value = /** @type {string} */ (reader.readString());
1771
- msg.setShippingAddress(value);
1772
- break;
1773
- case 8:
1774
- var value = /** @type {string} */ (reader.readString());
1775
- msg.setTermOfPaymentText(value);
1776
- break;
1777
- case 9:
1778
- var value = /** @type {string} */ (reader.readString());
1779
- msg.setGuaranteePeriod(value);
1780
- break;
1781
- case 10:
1782
- var value = /** @type {string} */ (reader.readString());
1783
- msg.setRetention(value);
1784
- break;
1785
- case 11:
1786
- var value = /** @type {string} */ (reader.readString());
1787
- msg.setPenalty(value);
1788
- break;
1789
- case 12:
1790
- var value = /** @type {string} */ (reader.readString());
1791
- msg.setInsurance(value);
1792
- break;
1793
- case 13:
1794
- var value = /** @type {string} */ (reader.readString());
1795
- msg.setHeaderText(value);
1796
- break;
1797
- case 14:
1798
- var value = /** @type {string} */ (reader.readString());
1799
- msg.setHeaderNote(value);
1800
- break;
1801
- case 15:
1802
- var value = /** @type {string} */ (reader.readString());
1803
- msg.setEmailCc(value);
1804
- break;
1805
- case 16:
1806
- var value = /** @type {string} */ (reader.readString());
1807
- msg.setStatus(value);
1808
- break;
1809
- case 17:
1810
- var value = /** @type {string} */ (reader.readString());
1811
- msg.setDate(value);
1812
- break;
1813
- case 18:
1814
- var value = /** @type {string} */ (reader.readString());
1815
- msg.setGroupReferences(value);
1816
- break;
1817
- case 19:
1818
- var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
1819
- reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
1820
- msg.addFiles(value);
1821
- break;
1822
- case 20:
1823
- var value = new prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction;
1824
- reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.deserializeBinaryFromReader);
1825
- msg.addItemTransactions(value);
1826
- break;
1827
- case 21:
1828
- var value = new prisca_v1_vendor_domain_vendor_domain_pb.Vendor;
1829
- reader.readMessage(value,prisca_v1_vendor_domain_vendor_domain_pb.Vendor.deserializeBinaryFromReader);
1830
- msg.setVendor(value);
1831
- break;
1832
- default:
1833
- reader.skipField();
1834
- break;
1835
- }
1836
- }
1837
- return msg;
1838
- };
1839
-
1840
-
1841
- /**
1842
- * Serializes the message to binary data (in protobuf wire format).
1843
- * @return {!Uint8Array}
1844
- */
1845
- proto.BasePurchaseOrderRequest.prototype.serializeBinary = function() {
1846
- var writer = new jspb.BinaryWriter();
1847
- proto.BasePurchaseOrderRequest.serializeBinaryToWriter(this, writer);
1848
- return writer.getResultBuffer();
1849
- };
1850
-
1851
-
1852
- /**
1853
- * Serializes the given message to binary data (in protobuf wire
1854
- * format), writing to the given BinaryWriter.
1855
- * @param {!proto.BasePurchaseOrderRequest} message
1856
- * @param {!jspb.BinaryWriter} writer
1857
- * @suppress {unusedLocalVariables} f is only used for nested messages
1858
- */
1859
- proto.BasePurchaseOrderRequest.serializeBinaryToWriter = function(message, writer) {
1860
- var f = undefined;
1861
- f = message.getPurchaseRequestReferencesId();
1862
- if (f.length > 0) {
1863
- writer.writeString(
1864
- 1,
1865
- f
1866
- );
1867
- }
1868
- f = message.getTitle();
1869
- if (f.length > 0) {
1870
- writer.writeString(
1871
- 2,
1872
- f
1873
- );
1874
- }
1875
- f = message.getCompanyCode();
1876
- if (f.length > 0) {
1877
- writer.writeString(
1878
- 3,
1879
- f
1880
- );
1881
- }
1882
- f = message.getPurchasingOrganizations();
1883
- if (f.length > 0) {
1884
- writer.writeString(
1885
- 4,
1886
- f
1887
- );
1888
- }
1889
- f = message.getPurchasingGroups();
1890
- if (f.length > 0) {
1891
- writer.writeString(
1892
- 5,
1893
- f
1894
- );
1895
- }
1896
- f = message.getTermOfPayment();
1897
- if (f.length > 0) {
1898
- writer.writeString(
1899
- 6,
1900
- f
1901
- );
1902
- }
1903
- f = message.getShippingAddress();
1904
- if (f.length > 0) {
1905
- writer.writeString(
1906
- 7,
1907
- f
1908
- );
1909
- }
1910
- f = message.getTermOfPaymentText();
1911
- if (f.length > 0) {
1912
- writer.writeString(
1913
- 8,
1914
- f
1915
- );
1916
- }
1917
- f = message.getGuaranteePeriod();
1918
- if (f.length > 0) {
1919
- writer.writeString(
1920
- 9,
1921
- f
1922
- );
1923
- }
1924
- f = message.getRetention();
1925
- if (f.length > 0) {
1926
- writer.writeString(
1927
- 10,
1928
- f
1929
- );
1930
- }
1931
- f = message.getPenalty();
1932
- if (f.length > 0) {
1933
- writer.writeString(
1934
- 11,
1935
- f
1936
- );
1937
- }
1938
- f = message.getInsurance();
1939
- if (f.length > 0) {
1940
- writer.writeString(
1941
- 12,
1942
- f
1943
- );
1944
- }
1945
- f = message.getHeaderText();
1946
- if (f.length > 0) {
1947
- writer.writeString(
1948
- 13,
1949
- f
1950
- );
1951
- }
1952
- f = message.getHeaderNote();
1953
- if (f.length > 0) {
1954
- writer.writeString(
1955
- 14,
1956
- f
1957
- );
1958
- }
1959
- f = message.getEmailCc();
1960
- if (f.length > 0) {
1961
- writer.writeString(
1962
- 15,
1963
- f
1964
- );
1965
- }
1966
- f = message.getStatus();
1967
- if (f.length > 0) {
1968
- writer.writeString(
1969
- 16,
1970
- f
1971
- );
1972
- }
1973
- f = message.getDate();
1974
- if (f.length > 0) {
1975
- writer.writeString(
1976
- 17,
1977
- f
1978
- );
1979
- }
1980
- f = message.getGroupReferences();
1981
- if (f.length > 0) {
1982
- writer.writeString(
1983
- 18,
1984
- f
1985
- );
1986
- }
1987
- f = message.getFilesList();
1988
- if (f.length > 0) {
1989
- writer.writeRepeatedMessage(
1990
- 19,
1991
- f,
1992
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
1993
- );
1994
- }
1995
- f = message.getItemTransactionsList();
1996
- if (f.length > 0) {
1997
- writer.writeRepeatedMessage(
1998
- 20,
1999
- f,
2000
- prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.serializeBinaryToWriter
2001
- );
2002
- }
2003
- f = message.getVendor();
2004
- if (f != null) {
2005
- writer.writeMessage(
2006
- 21,
2007
- f,
2008
- prisca_v1_vendor_domain_vendor_domain_pb.Vendor.serializeBinaryToWriter
2009
- );
2010
- }
2011
- };
2012
-
2013
-
2014
- /**
2015
- * optional string purchase_request_references_id = 1;
2016
- * @return {string}
2017
- */
2018
- proto.BasePurchaseOrderRequest.prototype.getPurchaseRequestReferencesId = function() {
2019
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2020
- };
2021
-
2022
-
2023
- /**
2024
- * @param {string} value
2025
- * @return {!proto.BasePurchaseOrderRequest} returns this
2026
- */
2027
- proto.BasePurchaseOrderRequest.prototype.setPurchaseRequestReferencesId = function(value) {
2028
- return jspb.Message.setProto3StringField(this, 1, value);
2029
- };
2030
-
2031
-
2032
- /**
2033
- * optional string title = 2;
2034
- * @return {string}
2035
- */
2036
- proto.BasePurchaseOrderRequest.prototype.getTitle = function() {
2037
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2038
- };
2039
-
2040
-
2041
- /**
2042
- * @param {string} value
2043
- * @return {!proto.BasePurchaseOrderRequest} returns this
2044
- */
2045
- proto.BasePurchaseOrderRequest.prototype.setTitle = function(value) {
2046
- return jspb.Message.setProto3StringField(this, 2, value);
2047
- };
2048
-
2049
-
2050
- /**
2051
- * optional string company_code = 3;
2052
- * @return {string}
2053
- */
2054
- proto.BasePurchaseOrderRequest.prototype.getCompanyCode = function() {
2055
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2056
- };
2057
-
2058
-
2059
- /**
2060
- * @param {string} value
2061
- * @return {!proto.BasePurchaseOrderRequest} returns this
2062
- */
2063
- proto.BasePurchaseOrderRequest.prototype.setCompanyCode = function(value) {
2064
- return jspb.Message.setProto3StringField(this, 3, value);
2065
- };
2066
-
2067
-
2068
- /**
2069
- * optional string purchasing_organizations = 4;
2070
- * @return {string}
2071
- */
2072
- proto.BasePurchaseOrderRequest.prototype.getPurchasingOrganizations = function() {
2073
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2074
- };
2075
-
2076
-
2077
- /**
2078
- * @param {string} value
2079
- * @return {!proto.BasePurchaseOrderRequest} returns this
2080
- */
2081
- proto.BasePurchaseOrderRequest.prototype.setPurchasingOrganizations = function(value) {
2082
- return jspb.Message.setProto3StringField(this, 4, value);
2083
- };
2084
-
2085
-
2086
- /**
2087
- * optional string purchasing_groups = 5;
2088
- * @return {string}
2089
- */
2090
- proto.BasePurchaseOrderRequest.prototype.getPurchasingGroups = function() {
2091
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2092
- };
2093
-
2094
-
2095
- /**
2096
- * @param {string} value
2097
- * @return {!proto.BasePurchaseOrderRequest} returns this
2098
- */
2099
- proto.BasePurchaseOrderRequest.prototype.setPurchasingGroups = function(value) {
2100
- return jspb.Message.setProto3StringField(this, 5, value);
2101
- };
2102
-
2103
-
2104
- /**
2105
- * optional string term_of_payment = 6;
2106
- * @return {string}
2107
- */
2108
- proto.BasePurchaseOrderRequest.prototype.getTermOfPayment = function() {
2109
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2110
- };
2111
-
2112
-
2113
- /**
2114
- * @param {string} value
2115
- * @return {!proto.BasePurchaseOrderRequest} returns this
2116
- */
2117
- proto.BasePurchaseOrderRequest.prototype.setTermOfPayment = function(value) {
2118
- return jspb.Message.setProto3StringField(this, 6, value);
2119
- };
2120
-
2121
-
2122
- /**
2123
- * optional string shipping_address = 7;
2124
- * @return {string}
2125
- */
2126
- proto.BasePurchaseOrderRequest.prototype.getShippingAddress = function() {
2127
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2128
- };
2129
-
2130
-
2131
- /**
2132
- * @param {string} value
2133
- * @return {!proto.BasePurchaseOrderRequest} returns this
2134
- */
2135
- proto.BasePurchaseOrderRequest.prototype.setShippingAddress = function(value) {
2136
- return jspb.Message.setProto3StringField(this, 7, value);
2137
- };
2138
-
2139
-
2140
- /**
2141
- * optional string term_of_payment_text = 8;
2142
- * @return {string}
2143
- */
2144
- proto.BasePurchaseOrderRequest.prototype.getTermOfPaymentText = function() {
2145
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2146
- };
2147
-
2148
-
2149
- /**
2150
- * @param {string} value
2151
- * @return {!proto.BasePurchaseOrderRequest} returns this
2152
- */
2153
- proto.BasePurchaseOrderRequest.prototype.setTermOfPaymentText = function(value) {
2154
- return jspb.Message.setProto3StringField(this, 8, value);
2155
- };
2156
-
2157
-
2158
- /**
2159
- * optional string guarantee_period = 9;
2160
- * @return {string}
2161
- */
2162
- proto.BasePurchaseOrderRequest.prototype.getGuaranteePeriod = function() {
2163
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
2164
- };
2165
-
2166
-
2167
- /**
2168
- * @param {string} value
2169
- * @return {!proto.BasePurchaseOrderRequest} returns this
2170
- */
2171
- proto.BasePurchaseOrderRequest.prototype.setGuaranteePeriod = function(value) {
2172
- return jspb.Message.setProto3StringField(this, 9, value);
2173
- };
2174
-
2175
-
2176
- /**
2177
- * optional string retention = 10;
2178
- * @return {string}
2179
- */
2180
- proto.BasePurchaseOrderRequest.prototype.getRetention = function() {
2181
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
2182
- };
2183
-
2184
-
2185
- /**
2186
- * @param {string} value
2187
- * @return {!proto.BasePurchaseOrderRequest} returns this
2188
- */
2189
- proto.BasePurchaseOrderRequest.prototype.setRetention = function(value) {
2190
- return jspb.Message.setProto3StringField(this, 10, value);
2191
- };
2192
-
2193
-
2194
- /**
2195
- * optional string penalty = 11;
2196
- * @return {string}
2197
- */
2198
- proto.BasePurchaseOrderRequest.prototype.getPenalty = function() {
2199
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
2200
- };
2201
-
2202
-
2203
- /**
2204
- * @param {string} value
2205
- * @return {!proto.BasePurchaseOrderRequest} returns this
2206
- */
2207
- proto.BasePurchaseOrderRequest.prototype.setPenalty = function(value) {
2208
- return jspb.Message.setProto3StringField(this, 11, value);
2209
- };
2210
-
2211
-
2212
- /**
2213
- * optional string insurance = 12;
2214
- * @return {string}
2215
- */
2216
- proto.BasePurchaseOrderRequest.prototype.getInsurance = function() {
2217
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
2218
- };
2219
-
2220
-
2221
- /**
2222
- * @param {string} value
2223
- * @return {!proto.BasePurchaseOrderRequest} returns this
2224
- */
2225
- proto.BasePurchaseOrderRequest.prototype.setInsurance = function(value) {
2226
- return jspb.Message.setProto3StringField(this, 12, value);
2227
- };
2228
-
2229
-
2230
- /**
2231
- * optional string header_text = 13;
2232
- * @return {string}
2233
- */
2234
- proto.BasePurchaseOrderRequest.prototype.getHeaderText = function() {
2235
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
2236
- };
2237
-
2238
-
2239
- /**
2240
- * @param {string} value
2241
- * @return {!proto.BasePurchaseOrderRequest} returns this
2242
- */
2243
- proto.BasePurchaseOrderRequest.prototype.setHeaderText = function(value) {
2244
- return jspb.Message.setProto3StringField(this, 13, value);
2245
- };
2246
-
2247
-
2248
- /**
2249
- * optional string header_note = 14;
2250
- * @return {string}
2251
- */
2252
- proto.BasePurchaseOrderRequest.prototype.getHeaderNote = function() {
2253
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
2254
- };
2255
-
2256
-
2257
- /**
2258
- * @param {string} value
2259
- * @return {!proto.BasePurchaseOrderRequest} returns this
2260
- */
2261
- proto.BasePurchaseOrderRequest.prototype.setHeaderNote = function(value) {
2262
- return jspb.Message.setProto3StringField(this, 14, value);
2263
- };
2264
-
2265
-
2266
- /**
2267
- * optional string email_cc = 15;
2268
- * @return {string}
2269
- */
2270
- proto.BasePurchaseOrderRequest.prototype.getEmailCc = function() {
2271
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
2272
- };
2273
-
2274
-
2275
- /**
2276
- * @param {string} value
2277
- * @return {!proto.BasePurchaseOrderRequest} returns this
2278
- */
2279
- proto.BasePurchaseOrderRequest.prototype.setEmailCc = function(value) {
2280
- return jspb.Message.setProto3StringField(this, 15, value);
2281
- };
2282
-
2283
-
2284
- /**
2285
- * optional string status = 16;
2286
- * @return {string}
2287
- */
2288
- proto.BasePurchaseOrderRequest.prototype.getStatus = function() {
2289
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
2290
- };
2291
-
2292
-
2293
- /**
2294
- * @param {string} value
2295
- * @return {!proto.BasePurchaseOrderRequest} returns this
2296
- */
2297
- proto.BasePurchaseOrderRequest.prototype.setStatus = function(value) {
2298
- return jspb.Message.setProto3StringField(this, 16, value);
2299
- };
2300
-
2301
-
2302
- /**
2303
- * optional string date = 17;
2304
- * @return {string}
2305
- */
2306
- proto.BasePurchaseOrderRequest.prototype.getDate = function() {
2307
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
2308
- };
2309
-
2310
-
2311
- /**
2312
- * @param {string} value
2313
- * @return {!proto.BasePurchaseOrderRequest} returns this
2314
- */
2315
- proto.BasePurchaseOrderRequest.prototype.setDate = function(value) {
2316
- return jspb.Message.setProto3StringField(this, 17, value);
2317
- };
2318
-
2319
-
2320
- /**
2321
- * optional string group_references = 18;
2322
- * @return {string}
2323
- */
2324
- proto.BasePurchaseOrderRequest.prototype.getGroupReferences = function() {
2325
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
2326
- };
2327
-
2328
-
2329
- /**
2330
- * @param {string} value
2331
- * @return {!proto.BasePurchaseOrderRequest} returns this
2332
- */
2333
- proto.BasePurchaseOrderRequest.prototype.setGroupReferences = function(value) {
2334
- return jspb.Message.setProto3StringField(this, 18, value);
2335
- };
2336
-
2337
-
2338
- /**
2339
- * repeated FileUploadReferencesReq files = 19;
2340
- * @return {!Array<!proto.FileUploadReferencesReq>}
2341
- */
2342
- proto.BasePurchaseOrderRequest.prototype.getFilesList = function() {
2343
- return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
2344
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 19));
2345
- };
2346
-
2347
-
2348
- /**
2349
- * @param {!Array<!proto.FileUploadReferencesReq>} value
2350
- * @return {!proto.BasePurchaseOrderRequest} returns this
2351
- */
2352
- proto.BasePurchaseOrderRequest.prototype.setFilesList = function(value) {
2353
- return jspb.Message.setRepeatedWrapperField(this, 19, value);
2354
- };
2355
-
2356
-
2357
- /**
2358
- * @param {!proto.FileUploadReferencesReq=} opt_value
2359
- * @param {number=} opt_index
2360
- * @return {!proto.FileUploadReferencesReq}
2361
- */
2362
- proto.BasePurchaseOrderRequest.prototype.addFiles = function(opt_value, opt_index) {
2363
- return jspb.Message.addToRepeatedWrapperField(this, 19, opt_value, proto.FileUploadReferencesReq, opt_index);
2364
- };
2365
-
2366
-
2367
- /**
2368
- * Clears the list making it empty but non-null.
2369
- * @return {!proto.BasePurchaseOrderRequest} returns this
2370
- */
2371
- proto.BasePurchaseOrderRequest.prototype.clearFilesList = function() {
2372
- return this.setFilesList([]);
2373
- };
2374
-
2375
-
2376
- /**
2377
- * repeated BaseItemTransaction item_transactions = 20;
2378
- * @return {!Array<!proto.BaseItemTransaction>}
2379
- */
2380
- proto.BasePurchaseOrderRequest.prototype.getItemTransactionsList = function() {
2381
- return /** @type{!Array<!proto.BaseItemTransaction>} */ (
2382
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction, 20));
2383
- };
2384
-
2385
-
2386
- /**
2387
- * @param {!Array<!proto.BaseItemTransaction>} value
2388
- * @return {!proto.BasePurchaseOrderRequest} returns this
2389
- */
2390
- proto.BasePurchaseOrderRequest.prototype.setItemTransactionsList = function(value) {
2391
- return jspb.Message.setRepeatedWrapperField(this, 20, value);
2392
- };
2393
-
2394
-
2395
- /**
2396
- * @param {!proto.BaseItemTransaction=} opt_value
2397
- * @param {number=} opt_index
2398
- * @return {!proto.BaseItemTransaction}
2399
- */
2400
- proto.BasePurchaseOrderRequest.prototype.addItemTransactions = function(opt_value, opt_index) {
2401
- return jspb.Message.addToRepeatedWrapperField(this, 20, opt_value, proto.BaseItemTransaction, opt_index);
2402
- };
2403
-
2404
-
2405
- /**
2406
- * Clears the list making it empty but non-null.
2407
- * @return {!proto.BasePurchaseOrderRequest} returns this
2408
- */
2409
- proto.BasePurchaseOrderRequest.prototype.clearItemTransactionsList = function() {
2410
- return this.setItemTransactionsList([]);
2411
- };
2412
-
2413
-
2414
- /**
2415
- * optional Vendor vendor = 21;
2416
- * @return {?proto.Vendor}
2417
- */
2418
- proto.BasePurchaseOrderRequest.prototype.getVendor = function() {
2419
- return /** @type{?proto.Vendor} */ (
2420
- jspb.Message.getWrapperField(this, prisca_v1_vendor_domain_vendor_domain_pb.Vendor, 21));
2421
- };
2422
-
2423
-
2424
- /**
2425
- * @param {?proto.Vendor|undefined} value
2426
- * @return {!proto.BasePurchaseOrderRequest} returns this
2427
- */
2428
- proto.BasePurchaseOrderRequest.prototype.setVendor = function(value) {
2429
- return jspb.Message.setWrapperField(this, 21, value);
2430
- };
2431
-
2432
-
2433
- /**
2434
- * Clears the message field making it undefined.
2435
- * @return {!proto.BasePurchaseOrderRequest} returns this
2436
- */
2437
- proto.BasePurchaseOrderRequest.prototype.clearVendor = function() {
2438
- return this.setVendor(undefined);
2439
- };
2440
-
2441
-
2442
- /**
2443
- * Returns whether this field is set.
2444
- * @return {boolean}
2445
- */
2446
- proto.BasePurchaseOrderRequest.prototype.hasVendor = function() {
2447
- return jspb.Message.getField(this, 21) != null;
2448
- };
2449
-
2450
-
2451
-
2452
-
2453
-
2454
- if (jspb.Message.GENERATE_TO_OBJECT) {
2455
- /**
2456
- * Creates an object representation of this proto.
2457
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2458
- * Optional fields that are not set will be set to undefined.
2459
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2460
- * For the list of reserved names please see:
2461
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2462
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2463
- * JSPB instance for transitional soy proto support:
2464
- * http://goto/soy-param-migration
2465
- * @return {!Object}
2466
- */
2467
- proto.CreatePurchaseOrderRequest.prototype.toObject = function(opt_includeInstance) {
2468
- return proto.CreatePurchaseOrderRequest.toObject(opt_includeInstance, this);
2469
- };
2470
-
2471
-
2472
- /**
2473
- * Static version of the {@see toObject} method.
2474
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2475
- * the JSPB instance for transitional soy proto support:
2476
- * http://goto/soy-param-migration
2477
- * @param {!proto.CreatePurchaseOrderRequest} msg The msg instance to transform.
2478
- * @return {!Object}
2479
- * @suppress {unusedLocalVariables} f is only used for nested messages
2480
- */
2481
- proto.CreatePurchaseOrderRequest.toObject = function(includeInstance, msg) {
2482
- var f, obj = {
2483
- basePurchaseOrder: (f = msg.getBasePurchaseOrder()) && proto.BasePurchaseOrderRequest.toObject(includeInstance, f)
2484
- };
2485
-
2486
- if (includeInstance) {
2487
- obj.$jspbMessageInstance = msg;
2488
- }
2489
- return obj;
2490
- };
2491
- }
2492
-
2493
-
2494
- /**
2495
- * Deserializes binary data (in protobuf wire format).
2496
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2497
- * @return {!proto.CreatePurchaseOrderRequest}
2498
- */
2499
- proto.CreatePurchaseOrderRequest.deserializeBinary = function(bytes) {
2500
- var reader = new jspb.BinaryReader(bytes);
2501
- var msg = new proto.CreatePurchaseOrderRequest;
2502
- return proto.CreatePurchaseOrderRequest.deserializeBinaryFromReader(msg, reader);
2503
- };
2504
-
2505
-
2506
- /**
2507
- * Deserializes binary data (in protobuf wire format) from the
2508
- * given reader into the given message object.
2509
- * @param {!proto.CreatePurchaseOrderRequest} msg The message object to deserialize into.
2510
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2511
- * @return {!proto.CreatePurchaseOrderRequest}
2512
- */
2513
- proto.CreatePurchaseOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
2514
- while (reader.nextField()) {
2515
- if (reader.isEndGroup()) {
2516
- break;
2517
- }
2518
- var field = reader.getFieldNumber();
2519
- switch (field) {
2520
- case 1:
2521
- var value = new proto.BasePurchaseOrderRequest;
2522
- reader.readMessage(value,proto.BasePurchaseOrderRequest.deserializeBinaryFromReader);
2523
- msg.setBasePurchaseOrder(value);
2524
- break;
2525
- default:
2526
- reader.skipField();
2527
- break;
2528
- }
2529
- }
2530
- return msg;
2531
- };
2532
-
2533
-
2534
- /**
2535
- * Serializes the message to binary data (in protobuf wire format).
2536
- * @return {!Uint8Array}
2537
- */
2538
- proto.CreatePurchaseOrderRequest.prototype.serializeBinary = function() {
2539
- var writer = new jspb.BinaryWriter();
2540
- proto.CreatePurchaseOrderRequest.serializeBinaryToWriter(this, writer);
2541
- return writer.getResultBuffer();
2542
- };
2543
-
2544
-
2545
- /**
2546
- * Serializes the given message to binary data (in protobuf wire
2547
- * format), writing to the given BinaryWriter.
2548
- * @param {!proto.CreatePurchaseOrderRequest} message
2549
- * @param {!jspb.BinaryWriter} writer
2550
- * @suppress {unusedLocalVariables} f is only used for nested messages
2551
- */
2552
- proto.CreatePurchaseOrderRequest.serializeBinaryToWriter = function(message, writer) {
2553
- var f = undefined;
2554
- f = message.getBasePurchaseOrder();
2555
- if (f != null) {
2556
- writer.writeMessage(
2557
- 1,
2558
- f,
2559
- proto.BasePurchaseOrderRequest.serializeBinaryToWriter
2560
- );
2561
- }
2562
- };
2563
-
2564
-
2565
- /**
2566
- * optional BasePurchaseOrderRequest base_purchase_order = 1;
2567
- * @return {?proto.BasePurchaseOrderRequest}
2568
- */
2569
- proto.CreatePurchaseOrderRequest.prototype.getBasePurchaseOrder = function() {
2570
- return /** @type{?proto.BasePurchaseOrderRequest} */ (
2571
- jspb.Message.getWrapperField(this, proto.BasePurchaseOrderRequest, 1));
2572
- };
2573
-
2574
-
2575
- /**
2576
- * @param {?proto.BasePurchaseOrderRequest|undefined} value
2577
- * @return {!proto.CreatePurchaseOrderRequest} returns this
2578
- */
2579
- proto.CreatePurchaseOrderRequest.prototype.setBasePurchaseOrder = function(value) {
2580
- return jspb.Message.setWrapperField(this, 1, value);
2581
- };
2582
-
2583
-
2584
- /**
2585
- * Clears the message field making it undefined.
2586
- * @return {!proto.CreatePurchaseOrderRequest} returns this
2587
- */
2588
- proto.CreatePurchaseOrderRequest.prototype.clearBasePurchaseOrder = function() {
2589
- return this.setBasePurchaseOrder(undefined);
2590
- };
2591
-
2592
-
2593
- /**
2594
- * Returns whether this field is set.
2595
- * @return {boolean}
2596
- */
2597
- proto.CreatePurchaseOrderRequest.prototype.hasBasePurchaseOrder = function() {
2598
- return jspb.Message.getField(this, 1) != null;
2599
- };
2600
-
2601
-
2602
-
2603
-
2604
-
2605
- if (jspb.Message.GENERATE_TO_OBJECT) {
2606
- /**
2607
- * Creates an object representation of this proto.
2608
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2609
- * Optional fields that are not set will be set to undefined.
2610
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2611
- * For the list of reserved names please see:
2612
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2613
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2614
- * JSPB instance for transitional soy proto support:
2615
- * http://goto/soy-param-migration
2616
- * @return {!Object}
2617
- */
2618
- proto.UpdatePurchaseOrderStatusRequest.prototype.toObject = function(opt_includeInstance) {
2619
- return proto.UpdatePurchaseOrderStatusRequest.toObject(opt_includeInstance, this);
2620
- };
2621
-
2622
-
2623
- /**
2624
- * Static version of the {@see toObject} method.
2625
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2626
- * the JSPB instance for transitional soy proto support:
2627
- * http://goto/soy-param-migration
2628
- * @param {!proto.UpdatePurchaseOrderStatusRequest} msg The msg instance to transform.
2629
- * @return {!Object}
2630
- * @suppress {unusedLocalVariables} f is only used for nested messages
2631
- */
2632
- proto.UpdatePurchaseOrderStatusRequest.toObject = function(includeInstance, msg) {
2633
- var f, obj = {
2634
- status: jspb.Message.getFieldWithDefault(msg, 1, ""),
2635
- referencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
2636
- };
2637
-
2638
- if (includeInstance) {
2639
- obj.$jspbMessageInstance = msg;
2640
- }
2641
- return obj;
2642
- };
2643
- }
2644
-
2645
-
2646
- /**
2647
- * Deserializes binary data (in protobuf wire format).
2648
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2649
- * @return {!proto.UpdatePurchaseOrderStatusRequest}
2650
- */
2651
- proto.UpdatePurchaseOrderStatusRequest.deserializeBinary = function(bytes) {
2652
- var reader = new jspb.BinaryReader(bytes);
2653
- var msg = new proto.UpdatePurchaseOrderStatusRequest;
2654
- return proto.UpdatePurchaseOrderStatusRequest.deserializeBinaryFromReader(msg, reader);
2655
- };
2656
-
2657
-
2658
- /**
2659
- * Deserializes binary data (in protobuf wire format) from the
2660
- * given reader into the given message object.
2661
- * @param {!proto.UpdatePurchaseOrderStatusRequest} msg The message object to deserialize into.
2662
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2663
- * @return {!proto.UpdatePurchaseOrderStatusRequest}
2664
- */
2665
- proto.UpdatePurchaseOrderStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
2666
- while (reader.nextField()) {
2667
- if (reader.isEndGroup()) {
2668
- break;
2669
- }
2670
- var field = reader.getFieldNumber();
2671
- switch (field) {
2672
- case 1:
2673
- var value = /** @type {string} */ (reader.readString());
2674
- msg.setStatus(value);
2675
- break;
2676
- case 2:
2677
- var value = /** @type {string} */ (reader.readString());
2678
- msg.setReferencesId(value);
2679
- break;
2680
- default:
2681
- reader.skipField();
2682
- break;
2683
- }
2684
- }
2685
- return msg;
2686
- };
2687
-
2688
-
2689
- /**
2690
- * Serializes the message to binary data (in protobuf wire format).
2691
- * @return {!Uint8Array}
2692
- */
2693
- proto.UpdatePurchaseOrderStatusRequest.prototype.serializeBinary = function() {
2694
- var writer = new jspb.BinaryWriter();
2695
- proto.UpdatePurchaseOrderStatusRequest.serializeBinaryToWriter(this, writer);
2696
- return writer.getResultBuffer();
2697
- };
2698
-
2699
-
2700
- /**
2701
- * Serializes the given message to binary data (in protobuf wire
2702
- * format), writing to the given BinaryWriter.
2703
- * @param {!proto.UpdatePurchaseOrderStatusRequest} message
2704
- * @param {!jspb.BinaryWriter} writer
2705
- * @suppress {unusedLocalVariables} f is only used for nested messages
2706
- */
2707
- proto.UpdatePurchaseOrderStatusRequest.serializeBinaryToWriter = function(message, writer) {
2708
- var f = undefined;
2709
- f = message.getStatus();
2710
- if (f.length > 0) {
2711
- writer.writeString(
2712
- 1,
2713
- f
2714
- );
2715
- }
2716
- f = message.getReferencesId();
2717
- if (f.length > 0) {
2718
- writer.writeString(
2719
- 2,
2720
- f
2721
- );
2722
- }
2723
- };
2724
-
2725
-
2726
- /**
2727
- * optional string status = 1;
2728
- * @return {string}
2729
- */
2730
- proto.UpdatePurchaseOrderStatusRequest.prototype.getStatus = function() {
2731
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2732
- };
2733
-
2734
-
2735
- /**
2736
- * @param {string} value
2737
- * @return {!proto.UpdatePurchaseOrderStatusRequest} returns this
2738
- */
2739
- proto.UpdatePurchaseOrderStatusRequest.prototype.setStatus = function(value) {
2740
- return jspb.Message.setProto3StringField(this, 1, value);
2741
- };
2742
-
2743
-
2744
- /**
2745
- * optional string references_id = 2;
2746
- * @return {string}
2747
- */
2748
- proto.UpdatePurchaseOrderStatusRequest.prototype.getReferencesId = function() {
2749
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2750
- };
2751
-
2752
-
2753
- /**
2754
- * @param {string} value
2755
- * @return {!proto.UpdatePurchaseOrderStatusRequest} returns this
2756
- */
2757
- proto.UpdatePurchaseOrderStatusRequest.prototype.setReferencesId = function(value) {
2758
- return jspb.Message.setProto3StringField(this, 2, value);
2759
- };
2760
-
2761
-
2762
-
2763
-
2764
-
2765
- if (jspb.Message.GENERATE_TO_OBJECT) {
2766
- /**
2767
- * Creates an object representation of this proto.
2768
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2769
- * Optional fields that are not set will be set to undefined.
2770
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2771
- * For the list of reserved names please see:
2772
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2773
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2774
- * JSPB instance for transitional soy proto support:
2775
- * http://goto/soy-param-migration
2776
- * @return {!Object}
2777
- */
2778
- proto.UpdatePurchaseOrderRequest.prototype.toObject = function(opt_includeInstance) {
2779
- return proto.UpdatePurchaseOrderRequest.toObject(opt_includeInstance, this);
2780
- };
2781
-
2782
-
2783
- /**
2784
- * Static version of the {@see toObject} method.
2785
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2786
- * the JSPB instance for transitional soy proto support:
2787
- * http://goto/soy-param-migration
2788
- * @param {!proto.UpdatePurchaseOrderRequest} msg The msg instance to transform.
2789
- * @return {!Object}
2790
- * @suppress {unusedLocalVariables} f is only used for nested messages
2791
- */
2792
- proto.UpdatePurchaseOrderRequest.toObject = function(includeInstance, msg) {
2793
- var f, obj = {
2794
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2795
- basePurchaseOrder: (f = msg.getBasePurchaseOrder()) && proto.BasePurchaseOrderRequest.toObject(includeInstance, f)
2796
- };
2797
-
2798
- if (includeInstance) {
2799
- obj.$jspbMessageInstance = msg;
2800
- }
2801
- return obj;
2802
- };
2803
- }
2804
-
2805
-
2806
- /**
2807
- * Deserializes binary data (in protobuf wire format).
2808
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2809
- * @return {!proto.UpdatePurchaseOrderRequest}
2810
- */
2811
- proto.UpdatePurchaseOrderRequest.deserializeBinary = function(bytes) {
2812
- var reader = new jspb.BinaryReader(bytes);
2813
- var msg = new proto.UpdatePurchaseOrderRequest;
2814
- return proto.UpdatePurchaseOrderRequest.deserializeBinaryFromReader(msg, reader);
2815
- };
2816
-
2817
-
2818
- /**
2819
- * Deserializes binary data (in protobuf wire format) from the
2820
- * given reader into the given message object.
2821
- * @param {!proto.UpdatePurchaseOrderRequest} msg The message object to deserialize into.
2822
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2823
- * @return {!proto.UpdatePurchaseOrderRequest}
2824
- */
2825
- proto.UpdatePurchaseOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
2826
- while (reader.nextField()) {
2827
- if (reader.isEndGroup()) {
2828
- break;
2829
- }
2830
- var field = reader.getFieldNumber();
2831
- switch (field) {
2832
- case 1:
2833
- var value = /** @type {string} */ (reader.readString());
2834
- msg.setReferencesId(value);
2835
- break;
2836
- case 2:
2837
- var value = new proto.BasePurchaseOrderRequest;
2838
- reader.readMessage(value,proto.BasePurchaseOrderRequest.deserializeBinaryFromReader);
2839
- msg.setBasePurchaseOrder(value);
2840
- break;
2841
- default:
2842
- reader.skipField();
2843
- break;
2844
- }
2845
- }
2846
- return msg;
2847
- };
2848
-
2849
-
2850
- /**
2851
- * Serializes the message to binary data (in protobuf wire format).
2852
- * @return {!Uint8Array}
2853
- */
2854
- proto.UpdatePurchaseOrderRequest.prototype.serializeBinary = function() {
2855
- var writer = new jspb.BinaryWriter();
2856
- proto.UpdatePurchaseOrderRequest.serializeBinaryToWriter(this, writer);
2857
- return writer.getResultBuffer();
2858
- };
2859
-
2860
-
2861
- /**
2862
- * Serializes the given message to binary data (in protobuf wire
2863
- * format), writing to the given BinaryWriter.
2864
- * @param {!proto.UpdatePurchaseOrderRequest} message
2865
- * @param {!jspb.BinaryWriter} writer
2866
- * @suppress {unusedLocalVariables} f is only used for nested messages
2867
- */
2868
- proto.UpdatePurchaseOrderRequest.serializeBinaryToWriter = function(message, writer) {
2869
- var f = undefined;
2870
- f = message.getReferencesId();
2871
- if (f.length > 0) {
2872
- writer.writeString(
2873
- 1,
2874
- f
2875
- );
2876
- }
2877
- f = message.getBasePurchaseOrder();
2878
- if (f != null) {
2879
- writer.writeMessage(
2880
- 2,
2881
- f,
2882
- proto.BasePurchaseOrderRequest.serializeBinaryToWriter
2883
- );
2884
- }
2885
- };
2886
-
2887
-
2888
- /**
2889
- * optional string references_id = 1;
2890
- * @return {string}
2891
- */
2892
- proto.UpdatePurchaseOrderRequest.prototype.getReferencesId = function() {
2893
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2894
- };
2895
-
2896
-
2897
- /**
2898
- * @param {string} value
2899
- * @return {!proto.UpdatePurchaseOrderRequest} returns this
2900
- */
2901
- proto.UpdatePurchaseOrderRequest.prototype.setReferencesId = function(value) {
2902
- return jspb.Message.setProto3StringField(this, 1, value);
2903
- };
2904
-
2905
-
2906
- /**
2907
- * optional BasePurchaseOrderRequest base_purchase_order = 2;
2908
- * @return {?proto.BasePurchaseOrderRequest}
2909
- */
2910
- proto.UpdatePurchaseOrderRequest.prototype.getBasePurchaseOrder = function() {
2911
- return /** @type{?proto.BasePurchaseOrderRequest} */ (
2912
- jspb.Message.getWrapperField(this, proto.BasePurchaseOrderRequest, 2));
2913
- };
2914
-
2915
-
2916
- /**
2917
- * @param {?proto.BasePurchaseOrderRequest|undefined} value
2918
- * @return {!proto.UpdatePurchaseOrderRequest} returns this
2919
- */
2920
- proto.UpdatePurchaseOrderRequest.prototype.setBasePurchaseOrder = function(value) {
2921
- return jspb.Message.setWrapperField(this, 2, value);
2922
- };
2923
-
2924
-
2925
- /**
2926
- * Clears the message field making it undefined.
2927
- * @return {!proto.UpdatePurchaseOrderRequest} returns this
2928
- */
2929
- proto.UpdatePurchaseOrderRequest.prototype.clearBasePurchaseOrder = function() {
2930
- return this.setBasePurchaseOrder(undefined);
2931
- };
2932
-
2933
-
2934
- /**
2935
- * Returns whether this field is set.
2936
- * @return {boolean}
2937
- */
2938
- proto.UpdatePurchaseOrderRequest.prototype.hasBasePurchaseOrder = function() {
2939
- return jspb.Message.getField(this, 2) != null;
2940
- };
2941
-
2942
-
2943
-
2944
-
2945
-
2946
- if (jspb.Message.GENERATE_TO_OBJECT) {
2947
- /**
2948
- * Creates an object representation of this proto.
2949
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2950
- * Optional fields that are not set will be set to undefined.
2951
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2952
- * For the list of reserved names please see:
2953
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2954
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2955
- * JSPB instance for transitional soy proto support:
2956
- * http://goto/soy-param-migration
2957
- * @return {!Object}
2958
- */
2959
- proto.GetPurchaseOrderByIdRequest.prototype.toObject = function(opt_includeInstance) {
2960
- return proto.GetPurchaseOrderByIdRequest.toObject(opt_includeInstance, this);
2961
- };
2962
-
2963
-
2964
- /**
2965
- * Static version of the {@see toObject} method.
2966
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2967
- * the JSPB instance for transitional soy proto support:
2968
- * http://goto/soy-param-migration
2969
- * @param {!proto.GetPurchaseOrderByIdRequest} msg The msg instance to transform.
2970
- * @return {!Object}
2971
- * @suppress {unusedLocalVariables} f is only used for nested messages
2972
- */
2973
- proto.GetPurchaseOrderByIdRequest.toObject = function(includeInstance, msg) {
2974
- var f, obj = {
2975
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2976
- };
2977
-
2978
- if (includeInstance) {
2979
- obj.$jspbMessageInstance = msg;
2980
- }
2981
- return obj;
2982
- };
2983
- }
2984
-
2985
-
2986
- /**
2987
- * Deserializes binary data (in protobuf wire format).
2988
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2989
- * @return {!proto.GetPurchaseOrderByIdRequest}
2990
- */
2991
- proto.GetPurchaseOrderByIdRequest.deserializeBinary = function(bytes) {
2992
- var reader = new jspb.BinaryReader(bytes);
2993
- var msg = new proto.GetPurchaseOrderByIdRequest;
2994
- return proto.GetPurchaseOrderByIdRequest.deserializeBinaryFromReader(msg, reader);
2995
- };
2996
-
2997
-
2998
- /**
2999
- * Deserializes binary data (in protobuf wire format) from the
3000
- * given reader into the given message object.
3001
- * @param {!proto.GetPurchaseOrderByIdRequest} msg The message object to deserialize into.
3002
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3003
- * @return {!proto.GetPurchaseOrderByIdRequest}
3004
- */
3005
- proto.GetPurchaseOrderByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
3006
- while (reader.nextField()) {
3007
- if (reader.isEndGroup()) {
3008
- break;
3009
- }
3010
- var field = reader.getFieldNumber();
3011
- switch (field) {
3012
- case 1:
3013
- var value = /** @type {string} */ (reader.readString());
3014
- msg.setReferencesId(value);
3015
- break;
3016
- default:
3017
- reader.skipField();
3018
- break;
3019
- }
3020
- }
3021
- return msg;
3022
- };
3023
-
3024
-
3025
- /**
3026
- * Serializes the message to binary data (in protobuf wire format).
3027
- * @return {!Uint8Array}
3028
- */
3029
- proto.GetPurchaseOrderByIdRequest.prototype.serializeBinary = function() {
3030
- var writer = new jspb.BinaryWriter();
3031
- proto.GetPurchaseOrderByIdRequest.serializeBinaryToWriter(this, writer);
3032
- return writer.getResultBuffer();
3033
- };
3034
-
3035
-
3036
- /**
3037
- * Serializes the given message to binary data (in protobuf wire
3038
- * format), writing to the given BinaryWriter.
3039
- * @param {!proto.GetPurchaseOrderByIdRequest} message
3040
- * @param {!jspb.BinaryWriter} writer
3041
- * @suppress {unusedLocalVariables} f is only used for nested messages
3042
- */
3043
- proto.GetPurchaseOrderByIdRequest.serializeBinaryToWriter = function(message, writer) {
3044
- var f = undefined;
3045
- f = message.getReferencesId();
3046
- if (f.length > 0) {
3047
- writer.writeString(
3048
- 1,
3049
- f
3050
- );
3051
- }
3052
- };
3053
-
3054
-
3055
- /**
3056
- * optional string references_id = 1;
3057
- * @return {string}
3058
- */
3059
- proto.GetPurchaseOrderByIdRequest.prototype.getReferencesId = function() {
3060
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3061
- };
3062
-
3063
-
3064
- /**
3065
- * @param {string} value
3066
- * @return {!proto.GetPurchaseOrderByIdRequest} returns this
3067
- */
3068
- proto.GetPurchaseOrderByIdRequest.prototype.setReferencesId = function(value) {
3069
- return jspb.Message.setProto3StringField(this, 1, value);
3070
- };
3071
-
3072
-
3073
-
3074
-
3075
-
3076
- if (jspb.Message.GENERATE_TO_OBJECT) {
3077
- /**
3078
- * Creates an object representation of this proto.
3079
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3080
- * Optional fields that are not set will be set to undefined.
3081
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3082
- * For the list of reserved names please see:
3083
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3084
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3085
- * JSPB instance for transitional soy proto support:
3086
- * http://goto/soy-param-migration
3087
- * @return {!Object}
3088
- */
3089
- proto.GetListPurchaseOrderRequest.prototype.toObject = function(opt_includeInstance) {
3090
- return proto.GetListPurchaseOrderRequest.toObject(opt_includeInstance, this);
3091
- };
3092
-
3093
-
3094
- /**
3095
- * Static version of the {@see toObject} method.
3096
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3097
- * the JSPB instance for transitional soy proto support:
3098
- * http://goto/soy-param-migration
3099
- * @param {!proto.GetListPurchaseOrderRequest} msg The msg instance to transform.
3100
- * @return {!Object}
3101
- * @suppress {unusedLocalVariables} f is only used for nested messages
3102
- */
3103
- proto.GetListPurchaseOrderRequest.toObject = function(includeInstance, msg) {
3104
- var f, obj = {
3105
- pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
3106
- query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
3107
- };
3108
-
3109
- if (includeInstance) {
3110
- obj.$jspbMessageInstance = msg;
3111
- }
3112
- return obj;
3113
- };
3114
- }
3115
-
3116
-
3117
- /**
3118
- * Deserializes binary data (in protobuf wire format).
3119
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3120
- * @return {!proto.GetListPurchaseOrderRequest}
3121
- */
3122
- proto.GetListPurchaseOrderRequest.deserializeBinary = function(bytes) {
3123
- var reader = new jspb.BinaryReader(bytes);
3124
- var msg = new proto.GetListPurchaseOrderRequest;
3125
- return proto.GetListPurchaseOrderRequest.deserializeBinaryFromReader(msg, reader);
3126
- };
3127
-
3128
-
3129
- /**
3130
- * Deserializes binary data (in protobuf wire format) from the
3131
- * given reader into the given message object.
3132
- * @param {!proto.GetListPurchaseOrderRequest} msg The message object to deserialize into.
3133
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3134
- * @return {!proto.GetListPurchaseOrderRequest}
3135
- */
3136
- proto.GetListPurchaseOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
3137
- while (reader.nextField()) {
3138
- if (reader.isEndGroup()) {
3139
- break;
3140
- }
3141
- var field = reader.getFieldNumber();
3142
- switch (field) {
3143
- case 1:
3144
- var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
3145
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
3146
- msg.setPagination(value);
3147
- break;
3148
- case 2:
3149
- var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
3150
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
3151
- msg.setQuery(value);
3152
- break;
3153
- default:
3154
- reader.skipField();
3155
- break;
3156
- }
3157
- }
3158
- return msg;
3159
- };
3160
-
3161
-
3162
- /**
3163
- * Serializes the message to binary data (in protobuf wire format).
3164
- * @return {!Uint8Array}
3165
- */
3166
- proto.GetListPurchaseOrderRequest.prototype.serializeBinary = function() {
3167
- var writer = new jspb.BinaryWriter();
3168
- proto.GetListPurchaseOrderRequest.serializeBinaryToWriter(this, writer);
3169
- return writer.getResultBuffer();
3170
- };
3171
-
3172
-
3173
- /**
3174
- * Serializes the given message to binary data (in protobuf wire
3175
- * format), writing to the given BinaryWriter.
3176
- * @param {!proto.GetListPurchaseOrderRequest} message
3177
- * @param {!jspb.BinaryWriter} writer
3178
- * @suppress {unusedLocalVariables} f is only used for nested messages
3179
- */
3180
- proto.GetListPurchaseOrderRequest.serializeBinaryToWriter = function(message, writer) {
3181
- var f = undefined;
3182
- f = message.getPagination();
3183
- if (f != null) {
3184
- writer.writeMessage(
3185
- 1,
3186
- f,
3187
- prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
3188
- );
3189
- }
3190
- f = message.getQuery();
3191
- if (f != null) {
3192
- writer.writeMessage(
3193
- 2,
3194
- f,
3195
- prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
3196
- );
3197
- }
3198
- };
3199
-
3200
-
3201
- /**
3202
- * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
3203
- * @return {?proto.prisca.v1.global.meta.PaginationRequest}
3204
- */
3205
- proto.GetListPurchaseOrderRequest.prototype.getPagination = function() {
3206
- return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
3207
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
3208
- };
3209
-
3210
-
3211
- /**
3212
- * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
3213
- * @return {!proto.GetListPurchaseOrderRequest} returns this
3214
- */
3215
- proto.GetListPurchaseOrderRequest.prototype.setPagination = function(value) {
3216
- return jspb.Message.setWrapperField(this, 1, value);
3217
- };
3218
-
3219
-
3220
- /**
3221
- * Clears the message field making it undefined.
3222
- * @return {!proto.GetListPurchaseOrderRequest} returns this
3223
- */
3224
- proto.GetListPurchaseOrderRequest.prototype.clearPagination = function() {
3225
- return this.setPagination(undefined);
3226
- };
3227
-
3228
-
3229
- /**
3230
- * Returns whether this field is set.
3231
- * @return {boolean}
3232
- */
3233
- proto.GetListPurchaseOrderRequest.prototype.hasPagination = function() {
3234
- return jspb.Message.getField(this, 1) != null;
3235
- };
3236
-
3237
-
3238
- /**
3239
- * optional prisca.v1.global.meta.FilterRequest query = 2;
3240
- * @return {?proto.prisca.v1.global.meta.FilterRequest}
3241
- */
3242
- proto.GetListPurchaseOrderRequest.prototype.getQuery = function() {
3243
- return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
3244
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
3245
- };
3246
-
3247
-
3248
- /**
3249
- * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
3250
- * @return {!proto.GetListPurchaseOrderRequest} returns this
3251
- */
3252
- proto.GetListPurchaseOrderRequest.prototype.setQuery = function(value) {
3253
- return jspb.Message.setWrapperField(this, 2, value);
3254
- };
3255
-
3256
-
3257
- /**
3258
- * Clears the message field making it undefined.
3259
- * @return {!proto.GetListPurchaseOrderRequest} returns this
3260
- */
3261
- proto.GetListPurchaseOrderRequest.prototype.clearQuery = function() {
3262
- return this.setQuery(undefined);
3263
- };
3264
-
3265
-
3266
- /**
3267
- * Returns whether this field is set.
3268
- * @return {boolean}
3269
- */
3270
- proto.GetListPurchaseOrderRequest.prototype.hasQuery = function() {
3271
- return jspb.Message.getField(this, 2) != null;
3272
- };
3273
-
3274
-
3275
-
3276
-
3277
-
3278
- if (jspb.Message.GENERATE_TO_OBJECT) {
3279
- /**
3280
- * Creates an object representation of this proto.
3281
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3282
- * Optional fields that are not set will be set to undefined.
3283
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3284
- * For the list of reserved names please see:
3285
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3286
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3287
- * JSPB instance for transitional soy proto support:
3288
- * http://goto/soy-param-migration
3289
- * @return {!Object}
3290
- */
3291
- proto.DeletePurchaseOrderRequest.prototype.toObject = function(opt_includeInstance) {
3292
- return proto.DeletePurchaseOrderRequest.toObject(opt_includeInstance, this);
3293
- };
3294
-
3295
-
3296
- /**
3297
- * Static version of the {@see toObject} method.
3298
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3299
- * the JSPB instance for transitional soy proto support:
3300
- * http://goto/soy-param-migration
3301
- * @param {!proto.DeletePurchaseOrderRequest} msg The msg instance to transform.
3302
- * @return {!Object}
3303
- * @suppress {unusedLocalVariables} f is only used for nested messages
3304
- */
3305
- proto.DeletePurchaseOrderRequest.toObject = function(includeInstance, msg) {
3306
- var f, obj = {
3307
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
3308
- };
3309
-
3310
- if (includeInstance) {
3311
- obj.$jspbMessageInstance = msg;
3312
- }
3313
- return obj;
3314
- };
3315
- }
3316
-
3317
-
3318
- /**
3319
- * Deserializes binary data (in protobuf wire format).
3320
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3321
- * @return {!proto.DeletePurchaseOrderRequest}
3322
- */
3323
- proto.DeletePurchaseOrderRequest.deserializeBinary = function(bytes) {
3324
- var reader = new jspb.BinaryReader(bytes);
3325
- var msg = new proto.DeletePurchaseOrderRequest;
3326
- return proto.DeletePurchaseOrderRequest.deserializeBinaryFromReader(msg, reader);
3327
- };
3328
-
3329
-
3330
- /**
3331
- * Deserializes binary data (in protobuf wire format) from the
3332
- * given reader into the given message object.
3333
- * @param {!proto.DeletePurchaseOrderRequest} msg The message object to deserialize into.
3334
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3335
- * @return {!proto.DeletePurchaseOrderRequest}
3336
- */
3337
- proto.DeletePurchaseOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
3338
- while (reader.nextField()) {
3339
- if (reader.isEndGroup()) {
3340
- break;
3341
- }
3342
- var field = reader.getFieldNumber();
3343
- switch (field) {
3344
- case 1:
3345
- var value = /** @type {string} */ (reader.readString());
3346
- msg.setReferencesId(value);
3347
- break;
3348
- default:
3349
- reader.skipField();
3350
- break;
3351
- }
3352
- }
3353
- return msg;
3354
- };
3355
-
3356
-
3357
- /**
3358
- * Serializes the message to binary data (in protobuf wire format).
3359
- * @return {!Uint8Array}
3360
- */
3361
- proto.DeletePurchaseOrderRequest.prototype.serializeBinary = function() {
3362
- var writer = new jspb.BinaryWriter();
3363
- proto.DeletePurchaseOrderRequest.serializeBinaryToWriter(this, writer);
3364
- return writer.getResultBuffer();
3365
- };
3366
-
3367
-
3368
- /**
3369
- * Serializes the given message to binary data (in protobuf wire
3370
- * format), writing to the given BinaryWriter.
3371
- * @param {!proto.DeletePurchaseOrderRequest} message
3372
- * @param {!jspb.BinaryWriter} writer
3373
- * @suppress {unusedLocalVariables} f is only used for nested messages
3374
- */
3375
- proto.DeletePurchaseOrderRequest.serializeBinaryToWriter = function(message, writer) {
3376
- var f = undefined;
3377
- f = message.getReferencesId();
3378
- if (f.length > 0) {
3379
- writer.writeString(
3380
- 1,
3381
- f
3382
- );
3383
- }
3384
- };
3385
-
3386
-
3387
- /**
3388
- * optional string references_id = 1;
3389
- * @return {string}
3390
- */
3391
- proto.DeletePurchaseOrderRequest.prototype.getReferencesId = function() {
3392
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3393
- };
3394
-
3395
-
3396
- /**
3397
- * @param {string} value
3398
- * @return {!proto.DeletePurchaseOrderRequest} returns this
3399
- */
3400
- proto.DeletePurchaseOrderRequest.prototype.setReferencesId = function(value) {
3401
- return jspb.Message.setProto3StringField(this, 1, value);
3402
- };
3403
-
3404
-
3405
-
3406
-
3407
-
3408
- if (jspb.Message.GENERATE_TO_OBJECT) {
3409
- /**
3410
- * Creates an object representation of this proto.
3411
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3412
- * Optional fields that are not set will be set to undefined.
3413
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3414
- * For the list of reserved names please see:
3415
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3416
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3417
- * JSPB instance for transitional soy proto support:
3418
- * http://goto/soy-param-migration
3419
- * @return {!Object}
3420
- */
3421
- proto.CreatePurchaseOrderResponse.prototype.toObject = function(opt_includeInstance) {
3422
- return proto.CreatePurchaseOrderResponse.toObject(opt_includeInstance, this);
3423
- };
3424
-
3425
-
3426
- /**
3427
- * Static version of the {@see toObject} method.
3428
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3429
- * the JSPB instance for transitional soy proto support:
3430
- * http://goto/soy-param-migration
3431
- * @param {!proto.CreatePurchaseOrderResponse} msg The msg instance to transform.
3432
- * @return {!Object}
3433
- * @suppress {unusedLocalVariables} f is only used for nested messages
3434
- */
3435
- proto.CreatePurchaseOrderResponse.toObject = function(includeInstance, msg) {
3436
- var f, obj = {
3437
- purchaseOrder: (f = msg.getPurchaseOrder()) && proto.PurchaseOrder.toObject(includeInstance, f),
3438
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3439
- };
3440
-
3441
- if (includeInstance) {
3442
- obj.$jspbMessageInstance = msg;
3443
- }
3444
- return obj;
3445
- };
3446
- }
3447
-
3448
-
3449
- /**
3450
- * Deserializes binary data (in protobuf wire format).
3451
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3452
- * @return {!proto.CreatePurchaseOrderResponse}
3453
- */
3454
- proto.CreatePurchaseOrderResponse.deserializeBinary = function(bytes) {
3455
- var reader = new jspb.BinaryReader(bytes);
3456
- var msg = new proto.CreatePurchaseOrderResponse;
3457
- return proto.CreatePurchaseOrderResponse.deserializeBinaryFromReader(msg, reader);
3458
- };
3459
-
3460
-
3461
- /**
3462
- * Deserializes binary data (in protobuf wire format) from the
3463
- * given reader into the given message object.
3464
- * @param {!proto.CreatePurchaseOrderResponse} msg The message object to deserialize into.
3465
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3466
- * @return {!proto.CreatePurchaseOrderResponse}
3467
- */
3468
- proto.CreatePurchaseOrderResponse.deserializeBinaryFromReader = function(msg, reader) {
3469
- while (reader.nextField()) {
3470
- if (reader.isEndGroup()) {
3471
- break;
3472
- }
3473
- var field = reader.getFieldNumber();
3474
- switch (field) {
3475
- case 1:
3476
- var value = new proto.PurchaseOrder;
3477
- reader.readMessage(value,proto.PurchaseOrder.deserializeBinaryFromReader);
3478
- msg.setPurchaseOrder(value);
3479
- break;
3480
- case 2:
3481
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3482
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3483
- msg.setMeta(value);
3484
- break;
3485
- default:
3486
- reader.skipField();
3487
- break;
3488
- }
3489
- }
3490
- return msg;
3491
- };
3492
-
3493
-
3494
- /**
3495
- * Serializes the message to binary data (in protobuf wire format).
3496
- * @return {!Uint8Array}
3497
- */
3498
- proto.CreatePurchaseOrderResponse.prototype.serializeBinary = function() {
3499
- var writer = new jspb.BinaryWriter();
3500
- proto.CreatePurchaseOrderResponse.serializeBinaryToWriter(this, writer);
3501
- return writer.getResultBuffer();
3502
- };
3503
-
3504
-
3505
- /**
3506
- * Serializes the given message to binary data (in protobuf wire
3507
- * format), writing to the given BinaryWriter.
3508
- * @param {!proto.CreatePurchaseOrderResponse} message
3509
- * @param {!jspb.BinaryWriter} writer
3510
- * @suppress {unusedLocalVariables} f is only used for nested messages
3511
- */
3512
- proto.CreatePurchaseOrderResponse.serializeBinaryToWriter = function(message, writer) {
3513
- var f = undefined;
3514
- f = message.getPurchaseOrder();
3515
- if (f != null) {
3516
- writer.writeMessage(
3517
- 1,
3518
- f,
3519
- proto.PurchaseOrder.serializeBinaryToWriter
3520
- );
3521
- }
3522
- f = message.getMeta();
3523
- if (f != null) {
3524
- writer.writeMessage(
3525
- 2,
3526
- f,
3527
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3528
- );
3529
- }
3530
- };
3531
-
3532
-
3533
- /**
3534
- * optional PurchaseOrder purchase_order = 1;
3535
- * @return {?proto.PurchaseOrder}
3536
- */
3537
- proto.CreatePurchaseOrderResponse.prototype.getPurchaseOrder = function() {
3538
- return /** @type{?proto.PurchaseOrder} */ (
3539
- jspb.Message.getWrapperField(this, proto.PurchaseOrder, 1));
3540
- };
3541
-
3542
-
3543
- /**
3544
- * @param {?proto.PurchaseOrder|undefined} value
3545
- * @return {!proto.CreatePurchaseOrderResponse} returns this
3546
- */
3547
- proto.CreatePurchaseOrderResponse.prototype.setPurchaseOrder = function(value) {
3548
- return jspb.Message.setWrapperField(this, 1, value);
3549
- };
3550
-
3551
-
3552
- /**
3553
- * Clears the message field making it undefined.
3554
- * @return {!proto.CreatePurchaseOrderResponse} returns this
3555
- */
3556
- proto.CreatePurchaseOrderResponse.prototype.clearPurchaseOrder = function() {
3557
- return this.setPurchaseOrder(undefined);
3558
- };
3559
-
3560
-
3561
- /**
3562
- * Returns whether this field is set.
3563
- * @return {boolean}
3564
- */
3565
- proto.CreatePurchaseOrderResponse.prototype.hasPurchaseOrder = function() {
3566
- return jspb.Message.getField(this, 1) != null;
3567
- };
3568
-
3569
-
3570
- /**
3571
- * optional prisca.v1.global.meta.Meta meta = 2;
3572
- * @return {?proto.prisca.v1.global.meta.Meta}
3573
- */
3574
- proto.CreatePurchaseOrderResponse.prototype.getMeta = function() {
3575
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3576
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3577
- };
3578
-
3579
-
3580
- /**
3581
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3582
- * @return {!proto.CreatePurchaseOrderResponse} returns this
3583
- */
3584
- proto.CreatePurchaseOrderResponse.prototype.setMeta = function(value) {
3585
- return jspb.Message.setWrapperField(this, 2, value);
3586
- };
3587
-
3588
-
3589
- /**
3590
- * Clears the message field making it undefined.
3591
- * @return {!proto.CreatePurchaseOrderResponse} returns this
3592
- */
3593
- proto.CreatePurchaseOrderResponse.prototype.clearMeta = function() {
3594
- return this.setMeta(undefined);
3595
- };
3596
-
3597
-
3598
- /**
3599
- * Returns whether this field is set.
3600
- * @return {boolean}
3601
- */
3602
- proto.CreatePurchaseOrderResponse.prototype.hasMeta = function() {
3603
- return jspb.Message.getField(this, 2) != null;
3604
- };
3605
-
3606
-
3607
-
3608
-
3609
-
3610
- if (jspb.Message.GENERATE_TO_OBJECT) {
3611
- /**
3612
- * Creates an object representation of this proto.
3613
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3614
- * Optional fields that are not set will be set to undefined.
3615
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3616
- * For the list of reserved names please see:
3617
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3618
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3619
- * JSPB instance for transitional soy proto support:
3620
- * http://goto/soy-param-migration
3621
- * @return {!Object}
3622
- */
3623
- proto.UpdatePurchaseOrderResponse.prototype.toObject = function(opt_includeInstance) {
3624
- return proto.UpdatePurchaseOrderResponse.toObject(opt_includeInstance, this);
3625
- };
3626
-
3627
-
3628
- /**
3629
- * Static version of the {@see toObject} method.
3630
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3631
- * the JSPB instance for transitional soy proto support:
3632
- * http://goto/soy-param-migration
3633
- * @param {!proto.UpdatePurchaseOrderResponse} msg The msg instance to transform.
3634
- * @return {!Object}
3635
- * @suppress {unusedLocalVariables} f is only used for nested messages
3636
- */
3637
- proto.UpdatePurchaseOrderResponse.toObject = function(includeInstance, msg) {
3638
- var f, obj = {
3639
- purchaseOrder: (f = msg.getPurchaseOrder()) && proto.PurchaseOrder.toObject(includeInstance, f),
3640
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3641
- };
3642
-
3643
- if (includeInstance) {
3644
- obj.$jspbMessageInstance = msg;
3645
- }
3646
- return obj;
3647
- };
3648
- }
3649
-
3650
-
3651
- /**
3652
- * Deserializes binary data (in protobuf wire format).
3653
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3654
- * @return {!proto.UpdatePurchaseOrderResponse}
3655
- */
3656
- proto.UpdatePurchaseOrderResponse.deserializeBinary = function(bytes) {
3657
- var reader = new jspb.BinaryReader(bytes);
3658
- var msg = new proto.UpdatePurchaseOrderResponse;
3659
- return proto.UpdatePurchaseOrderResponse.deserializeBinaryFromReader(msg, reader);
3660
- };
3661
-
3662
-
3663
- /**
3664
- * Deserializes binary data (in protobuf wire format) from the
3665
- * given reader into the given message object.
3666
- * @param {!proto.UpdatePurchaseOrderResponse} msg The message object to deserialize into.
3667
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3668
- * @return {!proto.UpdatePurchaseOrderResponse}
3669
- */
3670
- proto.UpdatePurchaseOrderResponse.deserializeBinaryFromReader = function(msg, reader) {
3671
- while (reader.nextField()) {
3672
- if (reader.isEndGroup()) {
3673
- break;
3674
- }
3675
- var field = reader.getFieldNumber();
3676
- switch (field) {
3677
- case 1:
3678
- var value = new proto.PurchaseOrder;
3679
- reader.readMessage(value,proto.PurchaseOrder.deserializeBinaryFromReader);
3680
- msg.setPurchaseOrder(value);
3681
- break;
3682
- case 2:
3683
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3684
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3685
- msg.setMeta(value);
3686
- break;
3687
- default:
3688
- reader.skipField();
3689
- break;
3690
- }
3691
- }
3692
- return msg;
3693
- };
3694
-
3695
-
3696
- /**
3697
- * Serializes the message to binary data (in protobuf wire format).
3698
- * @return {!Uint8Array}
3699
- */
3700
- proto.UpdatePurchaseOrderResponse.prototype.serializeBinary = function() {
3701
- var writer = new jspb.BinaryWriter();
3702
- proto.UpdatePurchaseOrderResponse.serializeBinaryToWriter(this, writer);
3703
- return writer.getResultBuffer();
3704
- };
3705
-
3706
-
3707
- /**
3708
- * Serializes the given message to binary data (in protobuf wire
3709
- * format), writing to the given BinaryWriter.
3710
- * @param {!proto.UpdatePurchaseOrderResponse} message
3711
- * @param {!jspb.BinaryWriter} writer
3712
- * @suppress {unusedLocalVariables} f is only used for nested messages
3713
- */
3714
- proto.UpdatePurchaseOrderResponse.serializeBinaryToWriter = function(message, writer) {
3715
- var f = undefined;
3716
- f = message.getPurchaseOrder();
3717
- if (f != null) {
3718
- writer.writeMessage(
3719
- 1,
3720
- f,
3721
- proto.PurchaseOrder.serializeBinaryToWriter
3722
- );
3723
- }
3724
- f = message.getMeta();
3725
- if (f != null) {
3726
- writer.writeMessage(
3727
- 2,
3728
- f,
3729
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3730
- );
3731
- }
3732
- };
3733
-
3734
-
3735
- /**
3736
- * optional PurchaseOrder purchase_order = 1;
3737
- * @return {?proto.PurchaseOrder}
3738
- */
3739
- proto.UpdatePurchaseOrderResponse.prototype.getPurchaseOrder = function() {
3740
- return /** @type{?proto.PurchaseOrder} */ (
3741
- jspb.Message.getWrapperField(this, proto.PurchaseOrder, 1));
3742
- };
3743
-
3744
-
3745
- /**
3746
- * @param {?proto.PurchaseOrder|undefined} value
3747
- * @return {!proto.UpdatePurchaseOrderResponse} returns this
3748
- */
3749
- proto.UpdatePurchaseOrderResponse.prototype.setPurchaseOrder = function(value) {
3750
- return jspb.Message.setWrapperField(this, 1, value);
3751
- };
3752
-
3753
-
3754
- /**
3755
- * Clears the message field making it undefined.
3756
- * @return {!proto.UpdatePurchaseOrderResponse} returns this
3757
- */
3758
- proto.UpdatePurchaseOrderResponse.prototype.clearPurchaseOrder = function() {
3759
- return this.setPurchaseOrder(undefined);
3760
- };
3761
-
3762
-
3763
- /**
3764
- * Returns whether this field is set.
3765
- * @return {boolean}
3766
- */
3767
- proto.UpdatePurchaseOrderResponse.prototype.hasPurchaseOrder = function() {
3768
- return jspb.Message.getField(this, 1) != null;
3769
- };
3770
-
3771
-
3772
- /**
3773
- * optional prisca.v1.global.meta.Meta meta = 2;
3774
- * @return {?proto.prisca.v1.global.meta.Meta}
3775
- */
3776
- proto.UpdatePurchaseOrderResponse.prototype.getMeta = function() {
3777
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3778
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3779
- };
3780
-
3781
-
3782
- /**
3783
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3784
- * @return {!proto.UpdatePurchaseOrderResponse} returns this
3785
- */
3786
- proto.UpdatePurchaseOrderResponse.prototype.setMeta = function(value) {
3787
- return jspb.Message.setWrapperField(this, 2, value);
3788
- };
3789
-
3790
-
3791
- /**
3792
- * Clears the message field making it undefined.
3793
- * @return {!proto.UpdatePurchaseOrderResponse} returns this
3794
- */
3795
- proto.UpdatePurchaseOrderResponse.prototype.clearMeta = function() {
3796
- return this.setMeta(undefined);
3797
- };
3798
-
3799
-
3800
- /**
3801
- * Returns whether this field is set.
3802
- * @return {boolean}
3803
- */
3804
- proto.UpdatePurchaseOrderResponse.prototype.hasMeta = function() {
3805
- return jspb.Message.getField(this, 2) != null;
3806
- };
3807
-
3808
-
3809
-
3810
-
3811
-
3812
- if (jspb.Message.GENERATE_TO_OBJECT) {
3813
- /**
3814
- * Creates an object representation of this proto.
3815
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3816
- * Optional fields that are not set will be set to undefined.
3817
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3818
- * For the list of reserved names please see:
3819
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3820
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3821
- * JSPB instance for transitional soy proto support:
3822
- * http://goto/soy-param-migration
3823
- * @return {!Object}
3824
- */
3825
- proto.GetPurchaseOrderByIdResponse.prototype.toObject = function(opt_includeInstance) {
3826
- return proto.GetPurchaseOrderByIdResponse.toObject(opt_includeInstance, this);
3827
- };
3828
-
3829
-
3830
- /**
3831
- * Static version of the {@see toObject} method.
3832
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3833
- * the JSPB instance for transitional soy proto support:
3834
- * http://goto/soy-param-migration
3835
- * @param {!proto.GetPurchaseOrderByIdResponse} msg The msg instance to transform.
3836
- * @return {!Object}
3837
- * @suppress {unusedLocalVariables} f is only used for nested messages
3838
- */
3839
- proto.GetPurchaseOrderByIdResponse.toObject = function(includeInstance, msg) {
3840
- var f, obj = {
3841
- purchaseOrder: (f = msg.getPurchaseOrder()) && proto.PurchaseOrder.toObject(includeInstance, f),
3842
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3843
- };
3844
-
3845
- if (includeInstance) {
3846
- obj.$jspbMessageInstance = msg;
3847
- }
3848
- return obj;
3849
- };
3850
- }
3851
-
3852
-
3853
- /**
3854
- * Deserializes binary data (in protobuf wire format).
3855
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3856
- * @return {!proto.GetPurchaseOrderByIdResponse}
3857
- */
3858
- proto.GetPurchaseOrderByIdResponse.deserializeBinary = function(bytes) {
3859
- var reader = new jspb.BinaryReader(bytes);
3860
- var msg = new proto.GetPurchaseOrderByIdResponse;
3861
- return proto.GetPurchaseOrderByIdResponse.deserializeBinaryFromReader(msg, reader);
3862
- };
3863
-
3864
-
3865
- /**
3866
- * Deserializes binary data (in protobuf wire format) from the
3867
- * given reader into the given message object.
3868
- * @param {!proto.GetPurchaseOrderByIdResponse} msg The message object to deserialize into.
3869
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3870
- * @return {!proto.GetPurchaseOrderByIdResponse}
3871
- */
3872
- proto.GetPurchaseOrderByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
3873
- while (reader.nextField()) {
3874
- if (reader.isEndGroup()) {
3875
- break;
3876
- }
3877
- var field = reader.getFieldNumber();
3878
- switch (field) {
3879
- case 1:
3880
- var value = new proto.PurchaseOrder;
3881
- reader.readMessage(value,proto.PurchaseOrder.deserializeBinaryFromReader);
3882
- msg.setPurchaseOrder(value);
3883
- break;
3884
- case 2:
3885
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3886
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3887
- msg.setMeta(value);
3888
- break;
3889
- default:
3890
- reader.skipField();
3891
- break;
3892
- }
3893
- }
3894
- return msg;
3895
- };
3896
-
3897
-
3898
- /**
3899
- * Serializes the message to binary data (in protobuf wire format).
3900
- * @return {!Uint8Array}
3901
- */
3902
- proto.GetPurchaseOrderByIdResponse.prototype.serializeBinary = function() {
3903
- var writer = new jspb.BinaryWriter();
3904
- proto.GetPurchaseOrderByIdResponse.serializeBinaryToWriter(this, writer);
3905
- return writer.getResultBuffer();
3906
- };
3907
-
3908
-
3909
- /**
3910
- * Serializes the given message to binary data (in protobuf wire
3911
- * format), writing to the given BinaryWriter.
3912
- * @param {!proto.GetPurchaseOrderByIdResponse} message
3913
- * @param {!jspb.BinaryWriter} writer
3914
- * @suppress {unusedLocalVariables} f is only used for nested messages
3915
- */
3916
- proto.GetPurchaseOrderByIdResponse.serializeBinaryToWriter = function(message, writer) {
3917
- var f = undefined;
3918
- f = message.getPurchaseOrder();
3919
- if (f != null) {
3920
- writer.writeMessage(
3921
- 1,
3922
- f,
3923
- proto.PurchaseOrder.serializeBinaryToWriter
3924
- );
3925
- }
3926
- f = message.getMeta();
3927
- if (f != null) {
3928
- writer.writeMessage(
3929
- 2,
3930
- f,
3931
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3932
- );
3933
- }
3934
- };
3935
-
3936
-
3937
- /**
3938
- * optional PurchaseOrder purchase_order = 1;
3939
- * @return {?proto.PurchaseOrder}
3940
- */
3941
- proto.GetPurchaseOrderByIdResponse.prototype.getPurchaseOrder = function() {
3942
- return /** @type{?proto.PurchaseOrder} */ (
3943
- jspb.Message.getWrapperField(this, proto.PurchaseOrder, 1));
3944
- };
3945
-
3946
-
3947
- /**
3948
- * @param {?proto.PurchaseOrder|undefined} value
3949
- * @return {!proto.GetPurchaseOrderByIdResponse} returns this
3950
- */
3951
- proto.GetPurchaseOrderByIdResponse.prototype.setPurchaseOrder = function(value) {
3952
- return jspb.Message.setWrapperField(this, 1, value);
3953
- };
3954
-
3955
-
3956
- /**
3957
- * Clears the message field making it undefined.
3958
- * @return {!proto.GetPurchaseOrderByIdResponse} returns this
3959
- */
3960
- proto.GetPurchaseOrderByIdResponse.prototype.clearPurchaseOrder = function() {
3961
- return this.setPurchaseOrder(undefined);
3962
- };
3963
-
3964
-
3965
- /**
3966
- * Returns whether this field is set.
3967
- * @return {boolean}
3968
- */
3969
- proto.GetPurchaseOrderByIdResponse.prototype.hasPurchaseOrder = function() {
3970
- return jspb.Message.getField(this, 1) != null;
3971
- };
3972
-
3973
-
3974
- /**
3975
- * optional prisca.v1.global.meta.Meta meta = 2;
3976
- * @return {?proto.prisca.v1.global.meta.Meta}
3977
- */
3978
- proto.GetPurchaseOrderByIdResponse.prototype.getMeta = function() {
3979
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3980
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3981
- };
3982
-
3983
-
3984
- /**
3985
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3986
- * @return {!proto.GetPurchaseOrderByIdResponse} returns this
3987
- */
3988
- proto.GetPurchaseOrderByIdResponse.prototype.setMeta = function(value) {
3989
- return jspb.Message.setWrapperField(this, 2, value);
3990
- };
3991
-
3992
-
3993
- /**
3994
- * Clears the message field making it undefined.
3995
- * @return {!proto.GetPurchaseOrderByIdResponse} returns this
3996
- */
3997
- proto.GetPurchaseOrderByIdResponse.prototype.clearMeta = function() {
3998
- return this.setMeta(undefined);
3999
- };
4000
-
4001
-
4002
- /**
4003
- * Returns whether this field is set.
4004
- * @return {boolean}
4005
- */
4006
- proto.GetPurchaseOrderByIdResponse.prototype.hasMeta = function() {
4007
- return jspb.Message.getField(this, 2) != null;
4008
- };
4009
-
4010
-
4011
-
4012
- /**
4013
- * List of repeated fields within this message type.
4014
- * @private {!Array<number>}
4015
- * @const
4016
- */
4017
- proto.GetPurchaseOrderDetailResponse.repeatedFields_ = [1,2];
4018
-
4019
-
4020
-
4021
- if (jspb.Message.GENERATE_TO_OBJECT) {
4022
- /**
4023
- * Creates an object representation of this proto.
4024
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4025
- * Optional fields that are not set will be set to undefined.
4026
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4027
- * For the list of reserved names please see:
4028
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4029
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4030
- * JSPB instance for transitional soy proto support:
4031
- * http://goto/soy-param-migration
4032
- * @return {!Object}
4033
- */
4034
- proto.GetPurchaseOrderDetailResponse.prototype.toObject = function(opt_includeInstance) {
4035
- return proto.GetPurchaseOrderDetailResponse.toObject(opt_includeInstance, this);
4036
- };
4037
-
4038
-
4039
- /**
4040
- * Static version of the {@see toObject} method.
4041
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4042
- * the JSPB instance for transitional soy proto support:
4043
- * http://goto/soy-param-migration
4044
- * @param {!proto.GetPurchaseOrderDetailResponse} msg The msg instance to transform.
4045
- * @return {!Object}
4046
- * @suppress {unusedLocalVariables} f is only used for nested messages
4047
- */
4048
- proto.GetPurchaseOrderDetailResponse.toObject = function(includeInstance, msg) {
4049
- var f, obj = {
4050
- transactionBuilderList: jspb.Message.toObjectList(msg.getTransactionBuilderList(),
4051
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
4052
- transactionBuilderItemsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemsList(),
4053
- proto.GetPurchaseOrderItemPreload.toObject, includeInstance)
4054
- };
4055
-
4056
- if (includeInstance) {
4057
- obj.$jspbMessageInstance = msg;
4058
- }
4059
- return obj;
4060
- };
4061
- }
4062
-
4063
-
4064
- /**
4065
- * Deserializes binary data (in protobuf wire format).
4066
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4067
- * @return {!proto.GetPurchaseOrderDetailResponse}
4068
- */
4069
- proto.GetPurchaseOrderDetailResponse.deserializeBinary = function(bytes) {
4070
- var reader = new jspb.BinaryReader(bytes);
4071
- var msg = new proto.GetPurchaseOrderDetailResponse;
4072
- return proto.GetPurchaseOrderDetailResponse.deserializeBinaryFromReader(msg, reader);
4073
- };
4074
-
4075
-
4076
- /**
4077
- * Deserializes binary data (in protobuf wire format) from the
4078
- * given reader into the given message object.
4079
- * @param {!proto.GetPurchaseOrderDetailResponse} msg The message object to deserialize into.
4080
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4081
- * @return {!proto.GetPurchaseOrderDetailResponse}
4082
- */
4083
- proto.GetPurchaseOrderDetailResponse.deserializeBinaryFromReader = function(msg, reader) {
4084
- while (reader.nextField()) {
4085
- if (reader.isEndGroup()) {
4086
- break;
4087
- }
4088
- var field = reader.getFieldNumber();
4089
- switch (field) {
4090
- case 1:
4091
- var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
4092
- reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
4093
- msg.addTransactionBuilder(value);
4094
- break;
4095
- case 2:
4096
- var value = new proto.GetPurchaseOrderItemPreload;
4097
- reader.readMessage(value,proto.GetPurchaseOrderItemPreload.deserializeBinaryFromReader);
4098
- msg.addTransactionBuilderItems(value);
4099
- break;
4100
- default:
4101
- reader.skipField();
4102
- break;
4103
- }
4104
- }
4105
- return msg;
4106
- };
4107
-
4108
-
4109
- /**
4110
- * Serializes the message to binary data (in protobuf wire format).
4111
- * @return {!Uint8Array}
4112
- */
4113
- proto.GetPurchaseOrderDetailResponse.prototype.serializeBinary = function() {
4114
- var writer = new jspb.BinaryWriter();
4115
- proto.GetPurchaseOrderDetailResponse.serializeBinaryToWriter(this, writer);
4116
- return writer.getResultBuffer();
4117
- };
4118
-
4119
-
4120
- /**
4121
- * Serializes the given message to binary data (in protobuf wire
4122
- * format), writing to the given BinaryWriter.
4123
- * @param {!proto.GetPurchaseOrderDetailResponse} message
4124
- * @param {!jspb.BinaryWriter} writer
4125
- * @suppress {unusedLocalVariables} f is only used for nested messages
4126
- */
4127
- proto.GetPurchaseOrderDetailResponse.serializeBinaryToWriter = function(message, writer) {
4128
- var f = undefined;
4129
- f = message.getTransactionBuilderList();
4130
- if (f.length > 0) {
4131
- writer.writeRepeatedMessage(
4132
- 1,
4133
- f,
4134
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
4135
- );
4136
- }
4137
- f = message.getTransactionBuilderItemsList();
4138
- if (f.length > 0) {
4139
- writer.writeRepeatedMessage(
4140
- 2,
4141
- f,
4142
- proto.GetPurchaseOrderItemPreload.serializeBinaryToWriter
4143
- );
4144
- }
4145
- };
4146
-
4147
-
4148
- /**
4149
- * repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder = 1;
4150
- * @return {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>}
4151
- */
4152
- proto.GetPurchaseOrderDetailResponse.prototype.getTransactionBuilderList = function() {
4153
- return /** @type{!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} */ (
4154
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
4155
- };
4156
-
4157
-
4158
- /**
4159
- * @param {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} value
4160
- * @return {!proto.GetPurchaseOrderDetailResponse} returns this
4161
- */
4162
- proto.GetPurchaseOrderDetailResponse.prototype.setTransactionBuilderList = function(value) {
4163
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
4164
- };
4165
-
4166
-
4167
- /**
4168
- * @param {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail=} opt_value
4169
- * @param {number=} opt_index
4170
- * @return {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail}
4171
- */
4172
- proto.GetPurchaseOrderDetailResponse.prototype.addTransactionBuilder = function(opt_value, opt_index) {
4173
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail, opt_index);
4174
- };
4175
-
4176
-
4177
- /**
4178
- * Clears the list making it empty but non-null.
4179
- * @return {!proto.GetPurchaseOrderDetailResponse} returns this
4180
- */
4181
- proto.GetPurchaseOrderDetailResponse.prototype.clearTransactionBuilderList = function() {
4182
- return this.setTransactionBuilderList([]);
4183
- };
4184
-
4185
-
4186
- /**
4187
- * repeated GetPurchaseOrderItemPreload transaction_builder_items = 2;
4188
- * @return {!Array<!proto.GetPurchaseOrderItemPreload>}
4189
- */
4190
- proto.GetPurchaseOrderDetailResponse.prototype.getTransactionBuilderItemsList = function() {
4191
- return /** @type{!Array<!proto.GetPurchaseOrderItemPreload>} */ (
4192
- jspb.Message.getRepeatedWrapperField(this, proto.GetPurchaseOrderItemPreload, 2));
4193
- };
4194
-
4195
-
4196
- /**
4197
- * @param {!Array<!proto.GetPurchaseOrderItemPreload>} value
4198
- * @return {!proto.GetPurchaseOrderDetailResponse} returns this
4199
- */
4200
- proto.GetPurchaseOrderDetailResponse.prototype.setTransactionBuilderItemsList = function(value) {
4201
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
4202
- };
4203
-
4204
-
4205
- /**
4206
- * @param {!proto.GetPurchaseOrderItemPreload=} opt_value
4207
- * @param {number=} opt_index
4208
- * @return {!proto.GetPurchaseOrderItemPreload}
4209
- */
4210
- proto.GetPurchaseOrderDetailResponse.prototype.addTransactionBuilderItems = function(opt_value, opt_index) {
4211
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetPurchaseOrderItemPreload, opt_index);
4212
- };
4213
-
4214
-
4215
- /**
4216
- * Clears the list making it empty but non-null.
4217
- * @return {!proto.GetPurchaseOrderDetailResponse} returns this
4218
- */
4219
- proto.GetPurchaseOrderDetailResponse.prototype.clearTransactionBuilderItemsList = function() {
4220
- return this.setTransactionBuilderItemsList([]);
4221
- };
4222
-
4223
-
4224
-
4225
- /**
4226
- * List of repeated fields within this message type.
4227
- * @private {!Array<number>}
4228
- * @const
4229
- */
4230
- proto.GetPurchaseOrderItemPreload.repeatedFields_ = [1,2];
4231
-
4232
-
4233
-
4234
- if (jspb.Message.GENERATE_TO_OBJECT) {
4235
- /**
4236
- * Creates an object representation of this proto.
4237
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4238
- * Optional fields that are not set will be set to undefined.
4239
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4240
- * For the list of reserved names please see:
4241
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4242
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4243
- * JSPB instance for transitional soy proto support:
4244
- * http://goto/soy-param-migration
4245
- * @return {!Object}
4246
- */
4247
- proto.GetPurchaseOrderItemPreload.prototype.toObject = function(opt_includeInstance) {
4248
- return proto.GetPurchaseOrderItemPreload.toObject(opt_includeInstance, this);
4249
- };
4250
-
4251
-
4252
- /**
4253
- * Static version of the {@see toObject} method.
4254
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4255
- * the JSPB instance for transitional soy proto support:
4256
- * http://goto/soy-param-migration
4257
- * @param {!proto.GetPurchaseOrderItemPreload} msg The msg instance to transform.
4258
- * @return {!Object}
4259
- * @suppress {unusedLocalVariables} f is only used for nested messages
4260
- */
4261
- proto.GetPurchaseOrderItemPreload.toObject = function(includeInstance, msg) {
4262
- var f, obj = {
4263
- transactionBuilderItemList: jspb.Message.toObjectList(msg.getTransactionBuilderItemList(),
4264
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
4265
- transactionBuilderItemDetailsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemDetailsList(),
4266
- proto.GetPurchaseOrderItemDetailPreload.toObject, includeInstance)
4267
- };
4268
-
4269
- if (includeInstance) {
4270
- obj.$jspbMessageInstance = msg;
4271
- }
4272
- return obj;
4273
- };
4274
- }
4275
-
4276
-
4277
- /**
4278
- * Deserializes binary data (in protobuf wire format).
4279
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4280
- * @return {!proto.GetPurchaseOrderItemPreload}
4281
- */
4282
- proto.GetPurchaseOrderItemPreload.deserializeBinary = function(bytes) {
4283
- var reader = new jspb.BinaryReader(bytes);
4284
- var msg = new proto.GetPurchaseOrderItemPreload;
4285
- return proto.GetPurchaseOrderItemPreload.deserializeBinaryFromReader(msg, reader);
4286
- };
4287
-
4288
-
4289
- /**
4290
- * Deserializes binary data (in protobuf wire format) from the
4291
- * given reader into the given message object.
4292
- * @param {!proto.GetPurchaseOrderItemPreload} msg The message object to deserialize into.
4293
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4294
- * @return {!proto.GetPurchaseOrderItemPreload}
4295
- */
4296
- proto.GetPurchaseOrderItemPreload.deserializeBinaryFromReader = function(msg, reader) {
4297
- while (reader.nextField()) {
4298
- if (reader.isEndGroup()) {
4299
- break;
4300
- }
4301
- var field = reader.getFieldNumber();
4302
- switch (field) {
4303
- case 1:
4304
- var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
4305
- reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
4306
- msg.addTransactionBuilderItem(value);
4307
- break;
4308
- case 2:
4309
- var value = new proto.GetPurchaseOrderItemDetailPreload;
4310
- reader.readMessage(value,proto.GetPurchaseOrderItemDetailPreload.deserializeBinaryFromReader);
4311
- msg.addTransactionBuilderItemDetails(value);
4312
- break;
4313
- default:
4314
- reader.skipField();
4315
- break;
4316
- }
4317
- }
4318
- return msg;
4319
- };
4320
-
4321
-
4322
- /**
4323
- * Serializes the message to binary data (in protobuf wire format).
4324
- * @return {!Uint8Array}
4325
- */
4326
- proto.GetPurchaseOrderItemPreload.prototype.serializeBinary = function() {
4327
- var writer = new jspb.BinaryWriter();
4328
- proto.GetPurchaseOrderItemPreload.serializeBinaryToWriter(this, writer);
4329
- return writer.getResultBuffer();
4330
- };
4331
-
4332
-
4333
- /**
4334
- * Serializes the given message to binary data (in protobuf wire
4335
- * format), writing to the given BinaryWriter.
4336
- * @param {!proto.GetPurchaseOrderItemPreload} message
4337
- * @param {!jspb.BinaryWriter} writer
4338
- * @suppress {unusedLocalVariables} f is only used for nested messages
4339
- */
4340
- proto.GetPurchaseOrderItemPreload.serializeBinaryToWriter = function(message, writer) {
4341
- var f = undefined;
4342
- f = message.getTransactionBuilderItemList();
4343
- if (f.length > 0) {
4344
- writer.writeRepeatedMessage(
4345
- 1,
4346
- f,
4347
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
4348
- );
4349
- }
4350
- f = message.getTransactionBuilderItemDetailsList();
4351
- if (f.length > 0) {
4352
- writer.writeRepeatedMessage(
4353
- 2,
4354
- f,
4355
- proto.GetPurchaseOrderItemDetailPreload.serializeBinaryToWriter
4356
- );
4357
- }
4358
- };
4359
-
4360
-
4361
- /**
4362
- * repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder_item = 1;
4363
- * @return {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>}
4364
- */
4365
- proto.GetPurchaseOrderItemPreload.prototype.getTransactionBuilderItemList = function() {
4366
- return /** @type{!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} */ (
4367
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
4368
- };
4369
-
4370
-
4371
- /**
4372
- * @param {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} value
4373
- * @return {!proto.GetPurchaseOrderItemPreload} returns this
4374
- */
4375
- proto.GetPurchaseOrderItemPreload.prototype.setTransactionBuilderItemList = function(value) {
4376
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
4377
- };
4378
-
4379
-
4380
- /**
4381
- * @param {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail=} opt_value
4382
- * @param {number=} opt_index
4383
- * @return {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail}
4384
- */
4385
- proto.GetPurchaseOrderItemPreload.prototype.addTransactionBuilderItem = function(opt_value, opt_index) {
4386
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail, opt_index);
4387
- };
4388
-
4389
-
4390
- /**
4391
- * Clears the list making it empty but non-null.
4392
- * @return {!proto.GetPurchaseOrderItemPreload} returns this
4393
- */
4394
- proto.GetPurchaseOrderItemPreload.prototype.clearTransactionBuilderItemList = function() {
4395
- return this.setTransactionBuilderItemList([]);
4396
- };
4397
-
4398
-
4399
- /**
4400
- * repeated GetPurchaseOrderItemDetailPreload transaction_builder_item_details = 2;
4401
- * @return {!Array<!proto.GetPurchaseOrderItemDetailPreload>}
4402
- */
4403
- proto.GetPurchaseOrderItemPreload.prototype.getTransactionBuilderItemDetailsList = function() {
4404
- return /** @type{!Array<!proto.GetPurchaseOrderItemDetailPreload>} */ (
4405
- jspb.Message.getRepeatedWrapperField(this, proto.GetPurchaseOrderItemDetailPreload, 2));
4406
- };
4407
-
4408
-
4409
- /**
4410
- * @param {!Array<!proto.GetPurchaseOrderItemDetailPreload>} value
4411
- * @return {!proto.GetPurchaseOrderItemPreload} returns this
4412
- */
4413
- proto.GetPurchaseOrderItemPreload.prototype.setTransactionBuilderItemDetailsList = function(value) {
4414
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
4415
- };
4416
-
4417
-
4418
- /**
4419
- * @param {!proto.GetPurchaseOrderItemDetailPreload=} opt_value
4420
- * @param {number=} opt_index
4421
- * @return {!proto.GetPurchaseOrderItemDetailPreload}
4422
- */
4423
- proto.GetPurchaseOrderItemPreload.prototype.addTransactionBuilderItemDetails = function(opt_value, opt_index) {
4424
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetPurchaseOrderItemDetailPreload, opt_index);
4425
- };
4426
-
4427
-
4428
- /**
4429
- * Clears the list making it empty but non-null.
4430
- * @return {!proto.GetPurchaseOrderItemPreload} returns this
4431
- */
4432
- proto.GetPurchaseOrderItemPreload.prototype.clearTransactionBuilderItemDetailsList = function() {
4433
- return this.setTransactionBuilderItemDetailsList([]);
4434
- };
4435
-
4436
-
4437
-
4438
- /**
4439
- * List of repeated fields within this message type.
4440
- * @private {!Array<number>}
4441
- * @const
4442
- */
4443
- proto.GetPurchaseOrderItemDetailPreload.repeatedFields_ = [1];
4444
-
4445
-
4446
-
4447
- if (jspb.Message.GENERATE_TO_OBJECT) {
4448
- /**
4449
- * Creates an object representation of this proto.
4450
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4451
- * Optional fields that are not set will be set to undefined.
4452
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4453
- * For the list of reserved names please see:
4454
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4455
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4456
- * JSPB instance for transitional soy proto support:
4457
- * http://goto/soy-param-migration
4458
- * @return {!Object}
4459
- */
4460
- proto.GetPurchaseOrderItemDetailPreload.prototype.toObject = function(opt_includeInstance) {
4461
- return proto.GetPurchaseOrderItemDetailPreload.toObject(opt_includeInstance, this);
4462
- };
4463
-
4464
-
4465
- /**
4466
- * Static version of the {@see toObject} method.
4467
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4468
- * the JSPB instance for transitional soy proto support:
4469
- * http://goto/soy-param-migration
4470
- * @param {!proto.GetPurchaseOrderItemDetailPreload} msg The msg instance to transform.
4471
- * @return {!Object}
4472
- * @suppress {unusedLocalVariables} f is only used for nested messages
4473
- */
4474
- proto.GetPurchaseOrderItemDetailPreload.toObject = function(includeInstance, msg) {
4475
- var f, obj = {
4476
- transactionBuilderItemDetailList: jspb.Message.toObjectList(msg.getTransactionBuilderItemDetailList(),
4477
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance)
4478
- };
4479
-
4480
- if (includeInstance) {
4481
- obj.$jspbMessageInstance = msg;
4482
- }
4483
- return obj;
4484
- };
4485
- }
4486
-
4487
-
4488
- /**
4489
- * Deserializes binary data (in protobuf wire format).
4490
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4491
- * @return {!proto.GetPurchaseOrderItemDetailPreload}
4492
- */
4493
- proto.GetPurchaseOrderItemDetailPreload.deserializeBinary = function(bytes) {
4494
- var reader = new jspb.BinaryReader(bytes);
4495
- var msg = new proto.GetPurchaseOrderItemDetailPreload;
4496
- return proto.GetPurchaseOrderItemDetailPreload.deserializeBinaryFromReader(msg, reader);
4497
- };
4498
-
4499
-
4500
- /**
4501
- * Deserializes binary data (in protobuf wire format) from the
4502
- * given reader into the given message object.
4503
- * @param {!proto.GetPurchaseOrderItemDetailPreload} msg The message object to deserialize into.
4504
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4505
- * @return {!proto.GetPurchaseOrderItemDetailPreload}
4506
- */
4507
- proto.GetPurchaseOrderItemDetailPreload.deserializeBinaryFromReader = function(msg, reader) {
4508
- while (reader.nextField()) {
4509
- if (reader.isEndGroup()) {
4510
- break;
4511
- }
4512
- var field = reader.getFieldNumber();
4513
- switch (field) {
4514
- case 1:
4515
- var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
4516
- reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
4517
- msg.addTransactionBuilderItemDetail(value);
4518
- break;
4519
- default:
4520
- reader.skipField();
4521
- break;
4522
- }
4523
- }
4524
- return msg;
4525
- };
4526
-
4527
-
4528
- /**
4529
- * Serializes the message to binary data (in protobuf wire format).
4530
- * @return {!Uint8Array}
4531
- */
4532
- proto.GetPurchaseOrderItemDetailPreload.prototype.serializeBinary = function() {
4533
- var writer = new jspb.BinaryWriter();
4534
- proto.GetPurchaseOrderItemDetailPreload.serializeBinaryToWriter(this, writer);
4535
- return writer.getResultBuffer();
4536
- };
4537
-
4538
-
4539
- /**
4540
- * Serializes the given message to binary data (in protobuf wire
4541
- * format), writing to the given BinaryWriter.
4542
- * @param {!proto.GetPurchaseOrderItemDetailPreload} message
4543
- * @param {!jspb.BinaryWriter} writer
4544
- * @suppress {unusedLocalVariables} f is only used for nested messages
4545
- */
4546
- proto.GetPurchaseOrderItemDetailPreload.serializeBinaryToWriter = function(message, writer) {
4547
- var f = undefined;
4548
- f = message.getTransactionBuilderItemDetailList();
4549
- if (f.length > 0) {
4550
- writer.writeRepeatedMessage(
4551
- 1,
4552
- f,
4553
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
4554
- );
4555
- }
4556
- };
4557
-
4558
-
4559
- /**
4560
- * repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder_item_detail = 1;
4561
- * @return {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>}
4562
- */
4563
- proto.GetPurchaseOrderItemDetailPreload.prototype.getTransactionBuilderItemDetailList = function() {
4564
- return /** @type{!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} */ (
4565
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
4566
- };
4567
-
4568
-
4569
- /**
4570
- * @param {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} value
4571
- * @return {!proto.GetPurchaseOrderItemDetailPreload} returns this
4572
- */
4573
- proto.GetPurchaseOrderItemDetailPreload.prototype.setTransactionBuilderItemDetailList = function(value) {
4574
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
4575
- };
4576
-
4577
-
4578
- /**
4579
- * @param {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail=} opt_value
4580
- * @param {number=} opt_index
4581
- * @return {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail}
4582
- */
4583
- proto.GetPurchaseOrderItemDetailPreload.prototype.addTransactionBuilderItemDetail = function(opt_value, opt_index) {
4584
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail, opt_index);
4585
- };
4586
-
4587
-
4588
- /**
4589
- * Clears the list making it empty but non-null.
4590
- * @return {!proto.GetPurchaseOrderItemDetailPreload} returns this
4591
- */
4592
- proto.GetPurchaseOrderItemDetailPreload.prototype.clearTransactionBuilderItemDetailList = function() {
4593
- return this.setTransactionBuilderItemDetailList([]);
4594
- };
4595
-
4596
-
4597
-
4598
- /**
4599
- * List of repeated fields within this message type.
4600
- * @private {!Array<number>}
4601
- * @const
4602
- */
4603
- proto.GetListPurchaseOrderResponse.repeatedFields_ = [1];
4604
-
4605
-
4606
-
4607
- if (jspb.Message.GENERATE_TO_OBJECT) {
4608
- /**
4609
- * Creates an object representation of this proto.
4610
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4611
- * Optional fields that are not set will be set to undefined.
4612
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4613
- * For the list of reserved names please see:
4614
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4615
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4616
- * JSPB instance for transitional soy proto support:
4617
- * http://goto/soy-param-migration
4618
- * @return {!Object}
4619
- */
4620
- proto.GetListPurchaseOrderResponse.prototype.toObject = function(opt_includeInstance) {
4621
- return proto.GetListPurchaseOrderResponse.toObject(opt_includeInstance, this);
4622
- };
4623
-
4624
-
4625
- /**
4626
- * Static version of the {@see toObject} method.
4627
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4628
- * the JSPB instance for transitional soy proto support:
4629
- * http://goto/soy-param-migration
4630
- * @param {!proto.GetListPurchaseOrderResponse} msg The msg instance to transform.
4631
- * @return {!Object}
4632
- * @suppress {unusedLocalVariables} f is only used for nested messages
4633
- */
4634
- proto.GetListPurchaseOrderResponse.toObject = function(includeInstance, msg) {
4635
- var f, obj = {
4636
- purchaseOrdersList: jspb.Message.toObjectList(msg.getPurchaseOrdersList(),
4637
- proto.PurchaseOrder.toObject, includeInstance),
4638
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
4639
- };
4640
-
4641
- if (includeInstance) {
4642
- obj.$jspbMessageInstance = msg;
4643
- }
4644
- return obj;
4645
- };
4646
- }
4647
-
4648
-
4649
- /**
4650
- * Deserializes binary data (in protobuf wire format).
4651
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4652
- * @return {!proto.GetListPurchaseOrderResponse}
4653
- */
4654
- proto.GetListPurchaseOrderResponse.deserializeBinary = function(bytes) {
4655
- var reader = new jspb.BinaryReader(bytes);
4656
- var msg = new proto.GetListPurchaseOrderResponse;
4657
- return proto.GetListPurchaseOrderResponse.deserializeBinaryFromReader(msg, reader);
4658
- };
4659
-
4660
-
4661
- /**
4662
- * Deserializes binary data (in protobuf wire format) from the
4663
- * given reader into the given message object.
4664
- * @param {!proto.GetListPurchaseOrderResponse} msg The message object to deserialize into.
4665
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4666
- * @return {!proto.GetListPurchaseOrderResponse}
4667
- */
4668
- proto.GetListPurchaseOrderResponse.deserializeBinaryFromReader = function(msg, reader) {
4669
- while (reader.nextField()) {
4670
- if (reader.isEndGroup()) {
4671
- break;
4672
- }
4673
- var field = reader.getFieldNumber();
4674
- switch (field) {
4675
- case 1:
4676
- var value = new proto.PurchaseOrder;
4677
- reader.readMessage(value,proto.PurchaseOrder.deserializeBinaryFromReader);
4678
- msg.addPurchaseOrders(value);
4679
- break;
4680
- case 2:
4681
- var value = new prisca_v1_global_meta_meta_pb.Meta;
4682
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
4683
- msg.setMeta(value);
4684
- break;
4685
- default:
4686
- reader.skipField();
4687
- break;
4688
- }
4689
- }
4690
- return msg;
4691
- };
4692
-
4693
-
4694
- /**
4695
- * Serializes the message to binary data (in protobuf wire format).
4696
- * @return {!Uint8Array}
4697
- */
4698
- proto.GetListPurchaseOrderResponse.prototype.serializeBinary = function() {
4699
- var writer = new jspb.BinaryWriter();
4700
- proto.GetListPurchaseOrderResponse.serializeBinaryToWriter(this, writer);
4701
- return writer.getResultBuffer();
4702
- };
4703
-
4704
-
4705
- /**
4706
- * Serializes the given message to binary data (in protobuf wire
4707
- * format), writing to the given BinaryWriter.
4708
- * @param {!proto.GetListPurchaseOrderResponse} message
4709
- * @param {!jspb.BinaryWriter} writer
4710
- * @suppress {unusedLocalVariables} f is only used for nested messages
4711
- */
4712
- proto.GetListPurchaseOrderResponse.serializeBinaryToWriter = function(message, writer) {
4713
- var f = undefined;
4714
- f = message.getPurchaseOrdersList();
4715
- if (f.length > 0) {
4716
- writer.writeRepeatedMessage(
4717
- 1,
4718
- f,
4719
- proto.PurchaseOrder.serializeBinaryToWriter
4720
- );
4721
- }
4722
- f = message.getMeta();
4723
- if (f != null) {
4724
- writer.writeMessage(
4725
- 2,
4726
- f,
4727
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
4728
- );
4729
- }
4730
- };
4731
-
4732
-
4733
- /**
4734
- * repeated PurchaseOrder purchase_orders = 1;
4735
- * @return {!Array<!proto.PurchaseOrder>}
4736
- */
4737
- proto.GetListPurchaseOrderResponse.prototype.getPurchaseOrdersList = function() {
4738
- return /** @type{!Array<!proto.PurchaseOrder>} */ (
4739
- jspb.Message.getRepeatedWrapperField(this, proto.PurchaseOrder, 1));
4740
- };
4741
-
4742
-
4743
- /**
4744
- * @param {!Array<!proto.PurchaseOrder>} value
4745
- * @return {!proto.GetListPurchaseOrderResponse} returns this
4746
- */
4747
- proto.GetListPurchaseOrderResponse.prototype.setPurchaseOrdersList = function(value) {
4748
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
4749
- };
4750
-
4751
-
4752
- /**
4753
- * @param {!proto.PurchaseOrder=} opt_value
4754
- * @param {number=} opt_index
4755
- * @return {!proto.PurchaseOrder}
4756
- */
4757
- proto.GetListPurchaseOrderResponse.prototype.addPurchaseOrders = function(opt_value, opt_index) {
4758
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.PurchaseOrder, opt_index);
4759
- };
4760
-
4761
-
4762
- /**
4763
- * Clears the list making it empty but non-null.
4764
- * @return {!proto.GetListPurchaseOrderResponse} returns this
4765
- */
4766
- proto.GetListPurchaseOrderResponse.prototype.clearPurchaseOrdersList = function() {
4767
- return this.setPurchaseOrdersList([]);
4768
- };
4769
-
4770
-
4771
- /**
4772
- * optional prisca.v1.global.meta.Meta meta = 2;
4773
- * @return {?proto.prisca.v1.global.meta.Meta}
4774
- */
4775
- proto.GetListPurchaseOrderResponse.prototype.getMeta = function() {
4776
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
4777
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
4778
- };
4779
-
4780
-
4781
- /**
4782
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
4783
- * @return {!proto.GetListPurchaseOrderResponse} returns this
4784
- */
4785
- proto.GetListPurchaseOrderResponse.prototype.setMeta = function(value) {
4786
- return jspb.Message.setWrapperField(this, 2, value);
4787
- };
4788
-
4789
-
4790
- /**
4791
- * Clears the message field making it undefined.
4792
- * @return {!proto.GetListPurchaseOrderResponse} returns this
4793
- */
4794
- proto.GetListPurchaseOrderResponse.prototype.clearMeta = function() {
4795
- return this.setMeta(undefined);
4796
- };
4797
-
4798
-
4799
- /**
4800
- * Returns whether this field is set.
4801
- * @return {boolean}
4802
- */
4803
- proto.GetListPurchaseOrderResponse.prototype.hasMeta = function() {
4804
- return jspb.Message.getField(this, 2) != null;
4805
- };
4806
-
4807
-
4808
-
4809
-
4810
-
4811
- if (jspb.Message.GENERATE_TO_OBJECT) {
4812
- /**
4813
- * Creates an object representation of this proto.
4814
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4815
- * Optional fields that are not set will be set to undefined.
4816
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4817
- * For the list of reserved names please see:
4818
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4819
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4820
- * JSPB instance for transitional soy proto support:
4821
- * http://goto/soy-param-migration
4822
- * @return {!Object}
4823
- */
4824
- proto.DeletePurchaseOrderResponse.prototype.toObject = function(opt_includeInstance) {
4825
- return proto.DeletePurchaseOrderResponse.toObject(opt_includeInstance, this);
4826
- };
4827
-
4828
-
4829
- /**
4830
- * Static version of the {@see toObject} method.
4831
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4832
- * the JSPB instance for transitional soy proto support:
4833
- * http://goto/soy-param-migration
4834
- * @param {!proto.DeletePurchaseOrderResponse} msg The msg instance to transform.
4835
- * @return {!Object}
4836
- * @suppress {unusedLocalVariables} f is only used for nested messages
4837
- */
4838
- proto.DeletePurchaseOrderResponse.toObject = function(includeInstance, msg) {
4839
- var f, obj = {
4840
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4841
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
4842
- };
4843
-
4844
- if (includeInstance) {
4845
- obj.$jspbMessageInstance = msg;
4846
- }
4847
- return obj;
4848
- };
4849
- }
4850
-
4851
-
4852
- /**
4853
- * Deserializes binary data (in protobuf wire format).
4854
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4855
- * @return {!proto.DeletePurchaseOrderResponse}
4856
- */
4857
- proto.DeletePurchaseOrderResponse.deserializeBinary = function(bytes) {
4858
- var reader = new jspb.BinaryReader(bytes);
4859
- var msg = new proto.DeletePurchaseOrderResponse;
4860
- return proto.DeletePurchaseOrderResponse.deserializeBinaryFromReader(msg, reader);
4861
- };
4862
-
4863
-
4864
- /**
4865
- * Deserializes binary data (in protobuf wire format) from the
4866
- * given reader into the given message object.
4867
- * @param {!proto.DeletePurchaseOrderResponse} msg The message object to deserialize into.
4868
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4869
- * @return {!proto.DeletePurchaseOrderResponse}
4870
- */
4871
- proto.DeletePurchaseOrderResponse.deserializeBinaryFromReader = function(msg, reader) {
4872
- while (reader.nextField()) {
4873
- if (reader.isEndGroup()) {
4874
- break;
4875
- }
4876
- var field = reader.getFieldNumber();
4877
- switch (field) {
4878
- case 1:
4879
- var value = /** @type {string} */ (reader.readString());
4880
- msg.setReferencesId(value);
4881
- break;
4882
- case 2:
4883
- var value = new prisca_v1_global_meta_meta_pb.Meta;
4884
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
4885
- msg.setMeta(value);
4886
- break;
4887
- default:
4888
- reader.skipField();
4889
- break;
4890
- }
4891
- }
4892
- return msg;
4893
- };
4894
-
4895
-
4896
- /**
4897
- * Serializes the message to binary data (in protobuf wire format).
4898
- * @return {!Uint8Array}
4899
- */
4900
- proto.DeletePurchaseOrderResponse.prototype.serializeBinary = function() {
4901
- var writer = new jspb.BinaryWriter();
4902
- proto.DeletePurchaseOrderResponse.serializeBinaryToWriter(this, writer);
4903
- return writer.getResultBuffer();
4904
- };
4905
-
4906
-
4907
- /**
4908
- * Serializes the given message to binary data (in protobuf wire
4909
- * format), writing to the given BinaryWriter.
4910
- * @param {!proto.DeletePurchaseOrderResponse} message
4911
- * @param {!jspb.BinaryWriter} writer
4912
- * @suppress {unusedLocalVariables} f is only used for nested messages
4913
- */
4914
- proto.DeletePurchaseOrderResponse.serializeBinaryToWriter = function(message, writer) {
4915
- var f = undefined;
4916
- f = message.getReferencesId();
4917
- if (f.length > 0) {
4918
- writer.writeString(
4919
- 1,
4920
- f
4921
- );
4922
- }
4923
- f = message.getMeta();
4924
- if (f != null) {
4925
- writer.writeMessage(
4926
- 2,
4927
- f,
4928
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
4929
- );
4930
- }
4931
- };
4932
-
4933
-
4934
- /**
4935
- * optional string references_id = 1;
4936
- * @return {string}
4937
- */
4938
- proto.DeletePurchaseOrderResponse.prototype.getReferencesId = function() {
4939
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4940
- };
4941
-
4942
-
4943
- /**
4944
- * @param {string} value
4945
- * @return {!proto.DeletePurchaseOrderResponse} returns this
4946
- */
4947
- proto.DeletePurchaseOrderResponse.prototype.setReferencesId = function(value) {
4948
- return jspb.Message.setProto3StringField(this, 1, value);
4949
- };
4950
-
4951
-
4952
- /**
4953
- * optional prisca.v1.global.meta.Meta meta = 2;
4954
- * @return {?proto.prisca.v1.global.meta.Meta}
4955
- */
4956
- proto.DeletePurchaseOrderResponse.prototype.getMeta = function() {
4957
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
4958
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
4959
- };
4960
-
4961
-
4962
- /**
4963
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
4964
- * @return {!proto.DeletePurchaseOrderResponse} returns this
4965
- */
4966
- proto.DeletePurchaseOrderResponse.prototype.setMeta = function(value) {
4967
- return jspb.Message.setWrapperField(this, 2, value);
4968
- };
4969
-
4970
-
4971
- /**
4972
- * Clears the message field making it undefined.
4973
- * @return {!proto.DeletePurchaseOrderResponse} returns this
4974
- */
4975
- proto.DeletePurchaseOrderResponse.prototype.clearMeta = function() {
4976
- return this.setMeta(undefined);
4977
- };
4978
-
4979
-
4980
- /**
4981
- * Returns whether this field is set.
4982
- * @return {boolean}
4983
- */
4984
- proto.DeletePurchaseOrderResponse.prototype.hasMeta = function() {
4985
- return jspb.Message.getField(this, 2) != null;
4986
- };
4987
-
4988
-
4989
- goog.object.extend(exports, proto);