@aldiokta/protocgen 1.1.19 → 1.1.21

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