@aldiokta/protocgen 1.1.23 → 1.1.25

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