@aldiokta/protocgen 1.1.66 → 1.1.68

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 (77) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/audit_trail/audit_trail_grpc_pb.js +92 -0
  3. package/prisca/v1/audit_trail/audit_trail_pb.js +2107 -0
  4. package/prisca/v1/bidding/bidding_pb.js +61 -1
  5. package/prisca/v1/business_partner/business_partner_grpc_pb.js +334 -0
  6. package/prisca/v1/business_partner/business_partner_pb.js +5244 -0
  7. package/prisca/v1/core/auth/auth_grpc_pb.js +36 -0
  8. package/prisca/v1/core/auth/auth_pb.js +386 -0
  9. package/prisca/v1/core/bp_config/bp_config_grpc_pb.js +697 -0
  10. package/prisca/v1/core/bp_config/bp_config_pb.js +10812 -0
  11. package/prisca/v1/core/employee/employee_pb.js +61 -1
  12. package/prisca/v1/core/item_transaction/item_transaction_pb.js +340 -10
  13. package/prisca/v1/core/job_title/job_title_pb.js +31 -1
  14. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +73 -0
  15. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +2027 -0
  16. package/prisca/v1/core/material_sales/material_account_assignment_group_grpc_pb.js +183 -0
  17. package/prisca/v1/core/material_sales/material_account_assignment_group_pb.js +2658 -0
  18. package/prisca/v1/core/material_sales/material_division_grpc_pb.js +199 -0
  19. package/prisca/v1/core/material_sales/material_division_pb.js +2706 -0
  20. package/prisca/v1/core/material_sales/material_item_category_group_grpc_pb.js +183 -0
  21. package/prisca/v1/core/material_sales/material_item_category_group_pb.js +2658 -0
  22. package/prisca/v1/core/material_sales/material_plant_grpc_pb.js +193 -0
  23. package/prisca/v1/core/material_sales/material_plant_pb.js +2757 -0
  24. package/prisca/v1/core/material_sales/material_sales_eligibility_grpc_pb.js +62 -0
  25. package/prisca/v1/core/material_sales/material_sales_eligibility_pb.js +475 -0
  26. package/prisca/v1/core/material_sales/material_sales_org_grpc_pb.js +191 -0
  27. package/prisca/v1/core/material_sales/material_sales_org_pb.js +2937 -0
  28. package/prisca/v1/core/material_sales/material_tax_classification_grpc_pb.js +193 -0
  29. package/prisca/v1/core/material_sales/material_tax_classification_pb.js +2817 -0
  30. package/prisca/v1/core/material_sales/material_tax_classification_value_grpc_pb.js +194 -0
  31. package/prisca/v1/core/material_sales/material_tax_classification_value_pb.js +2868 -0
  32. package/prisca/v1/core/material_sales/material_withholding_tax_group_grpc_pb.js +188 -0
  33. package/prisca/v1/core/material_sales/material_withholding_tax_group_pb.js +2658 -0
  34. package/prisca/v1/core/sales_org/distribution_channel_grpc_pb.js +180 -0
  35. package/prisca/v1/core/sales_org/distribution_channel_pb.js +2658 -0
  36. package/prisca/v1/core/sales_org/sales_address_grpc_pb.js +1 -0
  37. package/prisca/v1/core/sales_org/sales_address_pb.js +380 -0
  38. package/prisca/v1/core/sales_org/sales_area_grpc_pb.js +157 -0
  39. package/prisca/v1/core/sales_org/sales_area_pb.js +2381 -0
  40. package/prisca/v1/core/sales_org/sales_division_grpc_pb.js +180 -0
  41. package/prisca/v1/core/sales_org/sales_division_pb.js +2658 -0
  42. package/prisca/v1/core/sales_org/sales_group_assignment_grpc_pb.js +151 -0
  43. package/prisca/v1/core/sales_org/sales_group_assignment_pb.js +2231 -0
  44. package/prisca/v1/core/sales_org/sales_group_grpc_pb.js +180 -0
  45. package/prisca/v1/core/sales_org/sales_group_pb.js +2658 -0
  46. package/prisca/v1/core/sales_org/sales_office_assignment_grpc_pb.js +151 -0
  47. package/prisca/v1/core/sales_org/sales_office_assignment_pb.js +2231 -0
  48. package/prisca/v1/core/sales_org/sales_office_grpc_pb.js +181 -0
  49. package/prisca/v1/core/sales_org/sales_office_pb.js +2762 -0
  50. package/prisca/v1/core/sales_org/sales_org_distribution_channel_grpc_pb.js +151 -0
  51. package/prisca/v1/core/sales_org/sales_org_distribution_channel_pb.js +2231 -0
  52. package/prisca/v1/core/sales_org/sales_org_division_grpc_pb.js +151 -0
  53. package/prisca/v1/core/sales_org/sales_org_division_pb.js +2231 -0
  54. package/prisca/v1/core/sales_org/sales_org_plant_grpc_pb.js +152 -0
  55. package/prisca/v1/core/sales_org/sales_org_plant_pb.js +2291 -0
  56. package/prisca/v1/core/sales_org/sales_organization_grpc_pb.js +181 -0
  57. package/prisca/v1/core/sales_org/sales_organization_pb.js +2822 -0
  58. package/prisca/v1/core/sales_org/shipping_point_grpc_pb.js +181 -0
  59. package/prisca/v1/core/sales_org/shipping_point_pb.js +2762 -0
  60. package/prisca/v1/core/sales_org/shipping_point_plant_grpc_pb.js +152 -0
  61. package/prisca/v1/core/sales_org/shipping_point_plant_pb.js +2231 -0
  62. package/prisca/v1/core/transaction_type/transaction_type_grpc_pb.js +147 -0
  63. package/prisca/v1/core/transaction_type/transaction_type_pb.js +2587 -0
  64. package/prisca/v1/customer/customer_grpc_pb.js +184 -0
  65. package/prisca/v1/customer/customer_pb.js +3498 -0
  66. package/prisca/v1/customer/customer_registration_grpc_pb.js +93 -0
  67. package/prisca/v1/customer/customer_registration_pb.js +1300 -0
  68. package/prisca/v1/customer/customer_sales_area_grpc_pb.js +256 -0
  69. package/prisca/v1/customer/customer_sales_area_pb.js +4681 -0
  70. package/prisca/v1/delivery_order/delivery_order_pb.js +61 -1
  71. package/prisca/v1/good_receipt/good_receipt_pb.js +31 -1
  72. package/prisca/v1/invoice/invoice_pb.js +62 -2
  73. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +87 -0
  74. package/prisca/v1/purchase_order/purchase_order_pb.js +1015 -5
  75. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +31 -1
  76. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +152 -2
  77. package/prisca/v1/vendor_domain/vendor_domain_pb.js +94 -15
@@ -0,0 +1,2937 @@
1
+ // source: prisca/v1/core/material_sales/material_sales_org.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 = globalThis;
17
+
18
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
19
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
20
+ goog.exportSymbol('proto.BaseMaterialSalesOrgRequest', null, global);
21
+ goog.exportSymbol('proto.CreateMaterialSalesOrgRequest', null, global);
22
+ goog.exportSymbol('proto.CreateMaterialSalesOrgResponse', null, global);
23
+ goog.exportSymbol('proto.DeleteMaterialSalesOrgRequest', null, global);
24
+ goog.exportSymbol('proto.DeleteMaterialSalesOrgResponse', null, global);
25
+ goog.exportSymbol('proto.GetListMaterialSalesOrgRequest', null, global);
26
+ goog.exportSymbol('proto.GetListMaterialSalesOrgResponse', null, global);
27
+ goog.exportSymbol('proto.GetMaterialSalesOrgByIdRequest', null, global);
28
+ goog.exportSymbol('proto.GetMaterialSalesOrgByIdResponse', null, global);
29
+ goog.exportSymbol('proto.MaterialSalesOrg', null, global);
30
+ goog.exportSymbol('proto.UpdateMaterialSalesOrgRequest', null, global);
31
+ goog.exportSymbol('proto.UpdateMaterialSalesOrgResponse', null, global);
32
+ /**
33
+ * Generated by JsPbCodeGenerator.
34
+ * @param {Array=} opt_data Optional initial data array, typically from a
35
+ * server response, or constructed directly in Javascript. The array is used
36
+ * in place and becomes part of the constructed object. It is not cloned.
37
+ * If no data is provided, the constructed object will be empty, but still
38
+ * valid.
39
+ * @extends {jspb.Message}
40
+ * @constructor
41
+ */
42
+ proto.MaterialSalesOrg = function(opt_data) {
43
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
44
+ };
45
+ goog.inherits(proto.MaterialSalesOrg, jspb.Message);
46
+ if (goog.DEBUG && !COMPILED) {
47
+ /**
48
+ * @public
49
+ * @override
50
+ */
51
+ proto.MaterialSalesOrg.displayName = 'proto.MaterialSalesOrg';
52
+ }
53
+ /**
54
+ * Generated by JsPbCodeGenerator.
55
+ * @param {Array=} opt_data Optional initial data array, typically from a
56
+ * server response, or constructed directly in Javascript. The array is used
57
+ * in place and becomes part of the constructed object. It is not cloned.
58
+ * If no data is provided, the constructed object will be empty, but still
59
+ * valid.
60
+ * @extends {jspb.Message}
61
+ * @constructor
62
+ */
63
+ proto.BaseMaterialSalesOrgRequest = function(opt_data) {
64
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
65
+ };
66
+ goog.inherits(proto.BaseMaterialSalesOrgRequest, jspb.Message);
67
+ if (goog.DEBUG && !COMPILED) {
68
+ /**
69
+ * @public
70
+ * @override
71
+ */
72
+ proto.BaseMaterialSalesOrgRequest.displayName = 'proto.BaseMaterialSalesOrgRequest';
73
+ }
74
+ /**
75
+ * Generated by JsPbCodeGenerator.
76
+ * @param {Array=} opt_data Optional initial data array, typically from a
77
+ * server response, or constructed directly in Javascript. The array is used
78
+ * in place and becomes part of the constructed object. It is not cloned.
79
+ * If no data is provided, the constructed object will be empty, but still
80
+ * valid.
81
+ * @extends {jspb.Message}
82
+ * @constructor
83
+ */
84
+ proto.GetMaterialSalesOrgByIdRequest = function(opt_data) {
85
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
86
+ };
87
+ goog.inherits(proto.GetMaterialSalesOrgByIdRequest, jspb.Message);
88
+ if (goog.DEBUG && !COMPILED) {
89
+ /**
90
+ * @public
91
+ * @override
92
+ */
93
+ proto.GetMaterialSalesOrgByIdRequest.displayName = 'proto.GetMaterialSalesOrgByIdRequest';
94
+ }
95
+ /**
96
+ * Generated by JsPbCodeGenerator.
97
+ * @param {Array=} opt_data Optional initial data array, typically from a
98
+ * server response, or constructed directly in Javascript. The array is used
99
+ * in place and becomes part of the constructed object. It is not cloned.
100
+ * If no data is provided, the constructed object will be empty, but still
101
+ * valid.
102
+ * @extends {jspb.Message}
103
+ * @constructor
104
+ */
105
+ proto.GetListMaterialSalesOrgRequest = function(opt_data) {
106
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
107
+ };
108
+ goog.inherits(proto.GetListMaterialSalesOrgRequest, jspb.Message);
109
+ if (goog.DEBUG && !COMPILED) {
110
+ /**
111
+ * @public
112
+ * @override
113
+ */
114
+ proto.GetListMaterialSalesOrgRequest.displayName = 'proto.GetListMaterialSalesOrgRequest';
115
+ }
116
+ /**
117
+ * Generated by JsPbCodeGenerator.
118
+ * @param {Array=} opt_data Optional initial data array, typically from a
119
+ * server response, or constructed directly in Javascript. The array is used
120
+ * in place and becomes part of the constructed object. It is not cloned.
121
+ * If no data is provided, the constructed object will be empty, but still
122
+ * valid.
123
+ * @extends {jspb.Message}
124
+ * @constructor
125
+ */
126
+ proto.CreateMaterialSalesOrgRequest = function(opt_data) {
127
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
128
+ };
129
+ goog.inherits(proto.CreateMaterialSalesOrgRequest, jspb.Message);
130
+ if (goog.DEBUG && !COMPILED) {
131
+ /**
132
+ * @public
133
+ * @override
134
+ */
135
+ proto.CreateMaterialSalesOrgRequest.displayName = 'proto.CreateMaterialSalesOrgRequest';
136
+ }
137
+ /**
138
+ * Generated by JsPbCodeGenerator.
139
+ * @param {Array=} opt_data Optional initial data array, typically from a
140
+ * server response, or constructed directly in Javascript. The array is used
141
+ * in place and becomes part of the constructed object. It is not cloned.
142
+ * If no data is provided, the constructed object will be empty, but still
143
+ * valid.
144
+ * @extends {jspb.Message}
145
+ * @constructor
146
+ */
147
+ proto.UpdateMaterialSalesOrgRequest = function(opt_data) {
148
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
149
+ };
150
+ goog.inherits(proto.UpdateMaterialSalesOrgRequest, jspb.Message);
151
+ if (goog.DEBUG && !COMPILED) {
152
+ /**
153
+ * @public
154
+ * @override
155
+ */
156
+ proto.UpdateMaterialSalesOrgRequest.displayName = 'proto.UpdateMaterialSalesOrgRequest';
157
+ }
158
+ /**
159
+ * Generated by JsPbCodeGenerator.
160
+ * @param {Array=} opt_data Optional initial data array, typically from a
161
+ * server response, or constructed directly in Javascript. The array is used
162
+ * in place and becomes part of the constructed object. It is not cloned.
163
+ * If no data is provided, the constructed object will be empty, but still
164
+ * valid.
165
+ * @extends {jspb.Message}
166
+ * @constructor
167
+ */
168
+ proto.DeleteMaterialSalesOrgRequest = function(opt_data) {
169
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteMaterialSalesOrgRequest.repeatedFields_, null);
170
+ };
171
+ goog.inherits(proto.DeleteMaterialSalesOrgRequest, jspb.Message);
172
+ if (goog.DEBUG && !COMPILED) {
173
+ /**
174
+ * @public
175
+ * @override
176
+ */
177
+ proto.DeleteMaterialSalesOrgRequest.displayName = 'proto.DeleteMaterialSalesOrgRequest';
178
+ }
179
+ /**
180
+ * Generated by JsPbCodeGenerator.
181
+ * @param {Array=} opt_data Optional initial data array, typically from a
182
+ * server response, or constructed directly in Javascript. The array is used
183
+ * in place and becomes part of the constructed object. It is not cloned.
184
+ * If no data is provided, the constructed object will be empty, but still
185
+ * valid.
186
+ * @extends {jspb.Message}
187
+ * @constructor
188
+ */
189
+ proto.CreateMaterialSalesOrgResponse = function(opt_data) {
190
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
191
+ };
192
+ goog.inherits(proto.CreateMaterialSalesOrgResponse, jspb.Message);
193
+ if (goog.DEBUG && !COMPILED) {
194
+ /**
195
+ * @public
196
+ * @override
197
+ */
198
+ proto.CreateMaterialSalesOrgResponse.displayName = 'proto.CreateMaterialSalesOrgResponse';
199
+ }
200
+ /**
201
+ * Generated by JsPbCodeGenerator.
202
+ * @param {Array=} opt_data Optional initial data array, typically from a
203
+ * server response, or constructed directly in Javascript. The array is used
204
+ * in place and becomes part of the constructed object. It is not cloned.
205
+ * If no data is provided, the constructed object will be empty, but still
206
+ * valid.
207
+ * @extends {jspb.Message}
208
+ * @constructor
209
+ */
210
+ proto.UpdateMaterialSalesOrgResponse = function(opt_data) {
211
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
212
+ };
213
+ goog.inherits(proto.UpdateMaterialSalesOrgResponse, jspb.Message);
214
+ if (goog.DEBUG && !COMPILED) {
215
+ /**
216
+ * @public
217
+ * @override
218
+ */
219
+ proto.UpdateMaterialSalesOrgResponse.displayName = 'proto.UpdateMaterialSalesOrgResponse';
220
+ }
221
+ /**
222
+ * Generated by JsPbCodeGenerator.
223
+ * @param {Array=} opt_data Optional initial data array, typically from a
224
+ * server response, or constructed directly in Javascript. The array is used
225
+ * in place and becomes part of the constructed object. It is not cloned.
226
+ * If no data is provided, the constructed object will be empty, but still
227
+ * valid.
228
+ * @extends {jspb.Message}
229
+ * @constructor
230
+ */
231
+ proto.GetMaterialSalesOrgByIdResponse = function(opt_data) {
232
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
233
+ };
234
+ goog.inherits(proto.GetMaterialSalesOrgByIdResponse, jspb.Message);
235
+ if (goog.DEBUG && !COMPILED) {
236
+ /**
237
+ * @public
238
+ * @override
239
+ */
240
+ proto.GetMaterialSalesOrgByIdResponse.displayName = 'proto.GetMaterialSalesOrgByIdResponse';
241
+ }
242
+ /**
243
+ * Generated by JsPbCodeGenerator.
244
+ * @param {Array=} opt_data Optional initial data array, typically from a
245
+ * server response, or constructed directly in Javascript. The array is used
246
+ * in place and becomes part of the constructed object. It is not cloned.
247
+ * If no data is provided, the constructed object will be empty, but still
248
+ * valid.
249
+ * @extends {jspb.Message}
250
+ * @constructor
251
+ */
252
+ proto.GetListMaterialSalesOrgResponse = function(opt_data) {
253
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListMaterialSalesOrgResponse.repeatedFields_, null);
254
+ };
255
+ goog.inherits(proto.GetListMaterialSalesOrgResponse, jspb.Message);
256
+ if (goog.DEBUG && !COMPILED) {
257
+ /**
258
+ * @public
259
+ * @override
260
+ */
261
+ proto.GetListMaterialSalesOrgResponse.displayName = 'proto.GetListMaterialSalesOrgResponse';
262
+ }
263
+ /**
264
+ * Generated by JsPbCodeGenerator.
265
+ * @param {Array=} opt_data Optional initial data array, typically from a
266
+ * server response, or constructed directly in Javascript. The array is used
267
+ * in place and becomes part of the constructed object. It is not cloned.
268
+ * If no data is provided, the constructed object will be empty, but still
269
+ * valid.
270
+ * @extends {jspb.Message}
271
+ * @constructor
272
+ */
273
+ proto.DeleteMaterialSalesOrgResponse = function(opt_data) {
274
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteMaterialSalesOrgResponse.repeatedFields_, null);
275
+ };
276
+ goog.inherits(proto.DeleteMaterialSalesOrgResponse, jspb.Message);
277
+ if (goog.DEBUG && !COMPILED) {
278
+ /**
279
+ * @public
280
+ * @override
281
+ */
282
+ proto.DeleteMaterialSalesOrgResponse.displayName = 'proto.DeleteMaterialSalesOrgResponse';
283
+ }
284
+
285
+
286
+
287
+ if (jspb.Message.GENERATE_TO_OBJECT) {
288
+ /**
289
+ * Creates an object representation of this proto.
290
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
291
+ * Optional fields that are not set will be set to undefined.
292
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
293
+ * For the list of reserved names please see:
294
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
295
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
296
+ * JSPB instance for transitional soy proto support:
297
+ * http://goto/soy-param-migration
298
+ * @return {!Object}
299
+ */
300
+ proto.MaterialSalesOrg.prototype.toObject = function(opt_includeInstance) {
301
+ return proto.MaterialSalesOrg.toObject(opt_includeInstance, this);
302
+ };
303
+
304
+
305
+ /**
306
+ * Static version of the {@see toObject} method.
307
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
308
+ * the JSPB instance for transitional soy proto support:
309
+ * http://goto/soy-param-migration
310
+ * @param {!proto.MaterialSalesOrg} msg The msg instance to transform.
311
+ * @return {!Object}
312
+ * @suppress {unusedLocalVariables} f is only used for nested messages
313
+ */
314
+ proto.MaterialSalesOrg.toObject = function(includeInstance, msg) {
315
+ var f, obj = {
316
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
317
+ referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
318
+ materialReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
319
+ salesOrgDistributionChannelReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
320
+ materialAccountAssignmentGroupReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
321
+ materialItemCategoryGroupReferencesId: jspb.Message.getFieldWithDefault(msg, 6, ""),
322
+ materialWithholdingTaxGroupReferencesId: jspb.Message.getFieldWithDefault(msg, 7, ""),
323
+ salesOrgDistributionChannelLabel: jspb.Message.getFieldWithDefault(msg, 8, ""),
324
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 9, ""),
325
+ createdAt: jspb.Message.getFieldWithDefault(msg, 10, ""),
326
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 11, ""),
327
+ createdBy: jspb.Message.getFieldWithDefault(msg, 12, ""),
328
+ updatedBy: jspb.Message.getFieldWithDefault(msg, 13, "")
329
+ };
330
+
331
+ if (includeInstance) {
332
+ obj.$jspbMessageInstance = msg;
333
+ }
334
+ return obj;
335
+ };
336
+ }
337
+
338
+
339
+ /**
340
+ * Deserializes binary data (in protobuf wire format).
341
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
342
+ * @return {!proto.MaterialSalesOrg}
343
+ */
344
+ proto.MaterialSalesOrg.deserializeBinary = function(bytes) {
345
+ var reader = new jspb.BinaryReader(bytes);
346
+ var msg = new proto.MaterialSalesOrg;
347
+ return proto.MaterialSalesOrg.deserializeBinaryFromReader(msg, reader);
348
+ };
349
+
350
+
351
+ /**
352
+ * Deserializes binary data (in protobuf wire format) from the
353
+ * given reader into the given message object.
354
+ * @param {!proto.MaterialSalesOrg} msg The message object to deserialize into.
355
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
356
+ * @return {!proto.MaterialSalesOrg}
357
+ */
358
+ proto.MaterialSalesOrg.deserializeBinaryFromReader = function(msg, reader) {
359
+ while (reader.nextField()) {
360
+ if (reader.isEndGroup()) {
361
+ break;
362
+ }
363
+ var field = reader.getFieldNumber();
364
+ switch (field) {
365
+ case 1:
366
+ var value = /** @type {number} */ (reader.readInt64());
367
+ msg.setId(value);
368
+ break;
369
+ case 2:
370
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
371
+ msg.setReferencesId(value);
372
+ break;
373
+ case 3:
374
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
375
+ msg.setMaterialReferencesId(value);
376
+ break;
377
+ case 4:
378
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
379
+ msg.setSalesOrgDistributionChannelReferencesId(value);
380
+ break;
381
+ case 5:
382
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
383
+ msg.setMaterialAccountAssignmentGroupReferencesId(value);
384
+ break;
385
+ case 6:
386
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
387
+ msg.setMaterialItemCategoryGroupReferencesId(value);
388
+ break;
389
+ case 7:
390
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
391
+ msg.setMaterialWithholdingTaxGroupReferencesId(value);
392
+ break;
393
+ case 8:
394
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
395
+ msg.setSalesOrgDistributionChannelLabel(value);
396
+ break;
397
+ case 9:
398
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
399
+ msg.setCompaniesReferencesId(value);
400
+ break;
401
+ case 10:
402
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
403
+ msg.setCreatedAt(value);
404
+ break;
405
+ case 11:
406
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
407
+ msg.setUpdatedAt(value);
408
+ break;
409
+ case 12:
410
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
411
+ msg.setCreatedBy(value);
412
+ break;
413
+ case 13:
414
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
415
+ msg.setUpdatedBy(value);
416
+ break;
417
+ default:
418
+ reader.skipField();
419
+ break;
420
+ }
421
+ }
422
+ return msg;
423
+ };
424
+
425
+
426
+ /**
427
+ * Serializes the message to binary data (in protobuf wire format).
428
+ * @return {!Uint8Array}
429
+ */
430
+ proto.MaterialSalesOrg.prototype.serializeBinary = function() {
431
+ var writer = new jspb.BinaryWriter();
432
+ proto.MaterialSalesOrg.serializeBinaryToWriter(this, writer);
433
+ return writer.getResultBuffer();
434
+ };
435
+
436
+
437
+ /**
438
+ * Serializes the given message to binary data (in protobuf wire
439
+ * format), writing to the given BinaryWriter.
440
+ * @param {!proto.MaterialSalesOrg} message
441
+ * @param {!jspb.BinaryWriter} writer
442
+ * @suppress {unusedLocalVariables} f is only used for nested messages
443
+ */
444
+ proto.MaterialSalesOrg.serializeBinaryToWriter = function(message, writer) {
445
+ var f = undefined;
446
+ f = message.getId();
447
+ if (f !== 0) {
448
+ writer.writeInt64(
449
+ 1,
450
+ f
451
+ );
452
+ }
453
+ f = message.getReferencesId();
454
+ if (f.length > 0) {
455
+ writer.writeString(
456
+ 2,
457
+ f
458
+ );
459
+ }
460
+ f = message.getMaterialReferencesId();
461
+ if (f.length > 0) {
462
+ writer.writeString(
463
+ 3,
464
+ f
465
+ );
466
+ }
467
+ f = message.getSalesOrgDistributionChannelReferencesId();
468
+ if (f.length > 0) {
469
+ writer.writeString(
470
+ 4,
471
+ f
472
+ );
473
+ }
474
+ f = message.getMaterialAccountAssignmentGroupReferencesId();
475
+ if (f.length > 0) {
476
+ writer.writeString(
477
+ 5,
478
+ f
479
+ );
480
+ }
481
+ f = message.getMaterialItemCategoryGroupReferencesId();
482
+ if (f.length > 0) {
483
+ writer.writeString(
484
+ 6,
485
+ f
486
+ );
487
+ }
488
+ f = message.getMaterialWithholdingTaxGroupReferencesId();
489
+ if (f.length > 0) {
490
+ writer.writeString(
491
+ 7,
492
+ f
493
+ );
494
+ }
495
+ f = message.getSalesOrgDistributionChannelLabel();
496
+ if (f.length > 0) {
497
+ writer.writeString(
498
+ 8,
499
+ f
500
+ );
501
+ }
502
+ f = message.getCompaniesReferencesId();
503
+ if (f.length > 0) {
504
+ writer.writeString(
505
+ 9,
506
+ f
507
+ );
508
+ }
509
+ f = message.getCreatedAt();
510
+ if (f.length > 0) {
511
+ writer.writeString(
512
+ 10,
513
+ f
514
+ );
515
+ }
516
+ f = message.getUpdatedAt();
517
+ if (f.length > 0) {
518
+ writer.writeString(
519
+ 11,
520
+ f
521
+ );
522
+ }
523
+ f = message.getCreatedBy();
524
+ if (f.length > 0) {
525
+ writer.writeString(
526
+ 12,
527
+ f
528
+ );
529
+ }
530
+ f = message.getUpdatedBy();
531
+ if (f.length > 0) {
532
+ writer.writeString(
533
+ 13,
534
+ f
535
+ );
536
+ }
537
+ };
538
+
539
+
540
+ /**
541
+ * optional int64 id = 1;
542
+ * @return {number}
543
+ */
544
+ proto.MaterialSalesOrg.prototype.getId = function() {
545
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
546
+ };
547
+
548
+
549
+ /**
550
+ * @param {number} value
551
+ * @return {!proto.MaterialSalesOrg} returns this
552
+ */
553
+ proto.MaterialSalesOrg.prototype.setId = function(value) {
554
+ return jspb.Message.setProto3IntField(this, 1, value);
555
+ };
556
+
557
+
558
+ /**
559
+ * optional string references_id = 2;
560
+ * @return {string}
561
+ */
562
+ proto.MaterialSalesOrg.prototype.getReferencesId = function() {
563
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
564
+ };
565
+
566
+
567
+ /**
568
+ * @param {string} value
569
+ * @return {!proto.MaterialSalesOrg} returns this
570
+ */
571
+ proto.MaterialSalesOrg.prototype.setReferencesId = function(value) {
572
+ return jspb.Message.setProto3StringField(this, 2, value);
573
+ };
574
+
575
+
576
+ /**
577
+ * optional string material_references_id = 3;
578
+ * @return {string}
579
+ */
580
+ proto.MaterialSalesOrg.prototype.getMaterialReferencesId = function() {
581
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
582
+ };
583
+
584
+
585
+ /**
586
+ * @param {string} value
587
+ * @return {!proto.MaterialSalesOrg} returns this
588
+ */
589
+ proto.MaterialSalesOrg.prototype.setMaterialReferencesId = function(value) {
590
+ return jspb.Message.setProto3StringField(this, 3, value);
591
+ };
592
+
593
+
594
+ /**
595
+ * optional string sales_org_distribution_channel_references_id = 4;
596
+ * @return {string}
597
+ */
598
+ proto.MaterialSalesOrg.prototype.getSalesOrgDistributionChannelReferencesId = function() {
599
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
600
+ };
601
+
602
+
603
+ /**
604
+ * @param {string} value
605
+ * @return {!proto.MaterialSalesOrg} returns this
606
+ */
607
+ proto.MaterialSalesOrg.prototype.setSalesOrgDistributionChannelReferencesId = function(value) {
608
+ return jspb.Message.setProto3StringField(this, 4, value);
609
+ };
610
+
611
+
612
+ /**
613
+ * optional string material_account_assignment_group_references_id = 5;
614
+ * @return {string}
615
+ */
616
+ proto.MaterialSalesOrg.prototype.getMaterialAccountAssignmentGroupReferencesId = function() {
617
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
618
+ };
619
+
620
+
621
+ /**
622
+ * @param {string} value
623
+ * @return {!proto.MaterialSalesOrg} returns this
624
+ */
625
+ proto.MaterialSalesOrg.prototype.setMaterialAccountAssignmentGroupReferencesId = function(value) {
626
+ return jspb.Message.setProto3StringField(this, 5, value);
627
+ };
628
+
629
+
630
+ /**
631
+ * optional string material_item_category_group_references_id = 6;
632
+ * @return {string}
633
+ */
634
+ proto.MaterialSalesOrg.prototype.getMaterialItemCategoryGroupReferencesId = function() {
635
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
636
+ };
637
+
638
+
639
+ /**
640
+ * @param {string} value
641
+ * @return {!proto.MaterialSalesOrg} returns this
642
+ */
643
+ proto.MaterialSalesOrg.prototype.setMaterialItemCategoryGroupReferencesId = function(value) {
644
+ return jspb.Message.setProto3StringField(this, 6, value);
645
+ };
646
+
647
+
648
+ /**
649
+ * optional string material_withholding_tax_group_references_id = 7;
650
+ * @return {string}
651
+ */
652
+ proto.MaterialSalesOrg.prototype.getMaterialWithholdingTaxGroupReferencesId = function() {
653
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
654
+ };
655
+
656
+
657
+ /**
658
+ * @param {string} value
659
+ * @return {!proto.MaterialSalesOrg} returns this
660
+ */
661
+ proto.MaterialSalesOrg.prototype.setMaterialWithholdingTaxGroupReferencesId = function(value) {
662
+ return jspb.Message.setProto3StringField(this, 7, value);
663
+ };
664
+
665
+
666
+ /**
667
+ * optional string sales_org_distribution_channel_label = 8;
668
+ * @return {string}
669
+ */
670
+ proto.MaterialSalesOrg.prototype.getSalesOrgDistributionChannelLabel = function() {
671
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
672
+ };
673
+
674
+
675
+ /**
676
+ * @param {string} value
677
+ * @return {!proto.MaterialSalesOrg} returns this
678
+ */
679
+ proto.MaterialSalesOrg.prototype.setSalesOrgDistributionChannelLabel = function(value) {
680
+ return jspb.Message.setProto3StringField(this, 8, value);
681
+ };
682
+
683
+
684
+ /**
685
+ * optional string companies_references_id = 9;
686
+ * @return {string}
687
+ */
688
+ proto.MaterialSalesOrg.prototype.getCompaniesReferencesId = function() {
689
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
690
+ };
691
+
692
+
693
+ /**
694
+ * @param {string} value
695
+ * @return {!proto.MaterialSalesOrg} returns this
696
+ */
697
+ proto.MaterialSalesOrg.prototype.setCompaniesReferencesId = function(value) {
698
+ return jspb.Message.setProto3StringField(this, 9, value);
699
+ };
700
+
701
+
702
+ /**
703
+ * optional string created_at = 10;
704
+ * @return {string}
705
+ */
706
+ proto.MaterialSalesOrg.prototype.getCreatedAt = function() {
707
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
708
+ };
709
+
710
+
711
+ /**
712
+ * @param {string} value
713
+ * @return {!proto.MaterialSalesOrg} returns this
714
+ */
715
+ proto.MaterialSalesOrg.prototype.setCreatedAt = function(value) {
716
+ return jspb.Message.setProto3StringField(this, 10, value);
717
+ };
718
+
719
+
720
+ /**
721
+ * optional string updated_at = 11;
722
+ * @return {string}
723
+ */
724
+ proto.MaterialSalesOrg.prototype.getUpdatedAt = function() {
725
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
726
+ };
727
+
728
+
729
+ /**
730
+ * @param {string} value
731
+ * @return {!proto.MaterialSalesOrg} returns this
732
+ */
733
+ proto.MaterialSalesOrg.prototype.setUpdatedAt = function(value) {
734
+ return jspb.Message.setProto3StringField(this, 11, value);
735
+ };
736
+
737
+
738
+ /**
739
+ * optional string created_by = 12;
740
+ * @return {string}
741
+ */
742
+ proto.MaterialSalesOrg.prototype.getCreatedBy = function() {
743
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
744
+ };
745
+
746
+
747
+ /**
748
+ * @param {string} value
749
+ * @return {!proto.MaterialSalesOrg} returns this
750
+ */
751
+ proto.MaterialSalesOrg.prototype.setCreatedBy = function(value) {
752
+ return jspb.Message.setProto3StringField(this, 12, value);
753
+ };
754
+
755
+
756
+ /**
757
+ * optional string updated_by = 13;
758
+ * @return {string}
759
+ */
760
+ proto.MaterialSalesOrg.prototype.getUpdatedBy = function() {
761
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
762
+ };
763
+
764
+
765
+ /**
766
+ * @param {string} value
767
+ * @return {!proto.MaterialSalesOrg} returns this
768
+ */
769
+ proto.MaterialSalesOrg.prototype.setUpdatedBy = function(value) {
770
+ return jspb.Message.setProto3StringField(this, 13, value);
771
+ };
772
+
773
+
774
+
775
+
776
+
777
+ if (jspb.Message.GENERATE_TO_OBJECT) {
778
+ /**
779
+ * Creates an object representation of this proto.
780
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
781
+ * Optional fields that are not set will be set to undefined.
782
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
783
+ * For the list of reserved names please see:
784
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
785
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
786
+ * JSPB instance for transitional soy proto support:
787
+ * http://goto/soy-param-migration
788
+ * @return {!Object}
789
+ */
790
+ proto.BaseMaterialSalesOrgRequest.prototype.toObject = function(opt_includeInstance) {
791
+ return proto.BaseMaterialSalesOrgRequest.toObject(opt_includeInstance, this);
792
+ };
793
+
794
+
795
+ /**
796
+ * Static version of the {@see toObject} method.
797
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
798
+ * the JSPB instance for transitional soy proto support:
799
+ * http://goto/soy-param-migration
800
+ * @param {!proto.BaseMaterialSalesOrgRequest} msg The msg instance to transform.
801
+ * @return {!Object}
802
+ * @suppress {unusedLocalVariables} f is only used for nested messages
803
+ */
804
+ proto.BaseMaterialSalesOrgRequest.toObject = function(includeInstance, msg) {
805
+ var f, obj = {
806
+ materialReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
807
+ salesOrgDistributionChannelReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
808
+ materialAccountAssignmentGroupReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
809
+ materialItemCategoryGroupReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
810
+ materialWithholdingTaxGroupReferencesId: jspb.Message.getFieldWithDefault(msg, 5, "")
811
+ };
812
+
813
+ if (includeInstance) {
814
+ obj.$jspbMessageInstance = msg;
815
+ }
816
+ return obj;
817
+ };
818
+ }
819
+
820
+
821
+ /**
822
+ * Deserializes binary data (in protobuf wire format).
823
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
824
+ * @return {!proto.BaseMaterialSalesOrgRequest}
825
+ */
826
+ proto.BaseMaterialSalesOrgRequest.deserializeBinary = function(bytes) {
827
+ var reader = new jspb.BinaryReader(bytes);
828
+ var msg = new proto.BaseMaterialSalesOrgRequest;
829
+ return proto.BaseMaterialSalesOrgRequest.deserializeBinaryFromReader(msg, reader);
830
+ };
831
+
832
+
833
+ /**
834
+ * Deserializes binary data (in protobuf wire format) from the
835
+ * given reader into the given message object.
836
+ * @param {!proto.BaseMaterialSalesOrgRequest} msg The message object to deserialize into.
837
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
838
+ * @return {!proto.BaseMaterialSalesOrgRequest}
839
+ */
840
+ proto.BaseMaterialSalesOrgRequest.deserializeBinaryFromReader = function(msg, reader) {
841
+ while (reader.nextField()) {
842
+ if (reader.isEndGroup()) {
843
+ break;
844
+ }
845
+ var field = reader.getFieldNumber();
846
+ switch (field) {
847
+ case 1:
848
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
849
+ msg.setMaterialReferencesId(value);
850
+ break;
851
+ case 2:
852
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
853
+ msg.setSalesOrgDistributionChannelReferencesId(value);
854
+ break;
855
+ case 3:
856
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
857
+ msg.setMaterialAccountAssignmentGroupReferencesId(value);
858
+ break;
859
+ case 4:
860
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
861
+ msg.setMaterialItemCategoryGroupReferencesId(value);
862
+ break;
863
+ case 5:
864
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
865
+ msg.setMaterialWithholdingTaxGroupReferencesId(value);
866
+ break;
867
+ default:
868
+ reader.skipField();
869
+ break;
870
+ }
871
+ }
872
+ return msg;
873
+ };
874
+
875
+
876
+ /**
877
+ * Serializes the message to binary data (in protobuf wire format).
878
+ * @return {!Uint8Array}
879
+ */
880
+ proto.BaseMaterialSalesOrgRequest.prototype.serializeBinary = function() {
881
+ var writer = new jspb.BinaryWriter();
882
+ proto.BaseMaterialSalesOrgRequest.serializeBinaryToWriter(this, writer);
883
+ return writer.getResultBuffer();
884
+ };
885
+
886
+
887
+ /**
888
+ * Serializes the given message to binary data (in protobuf wire
889
+ * format), writing to the given BinaryWriter.
890
+ * @param {!proto.BaseMaterialSalesOrgRequest} message
891
+ * @param {!jspb.BinaryWriter} writer
892
+ * @suppress {unusedLocalVariables} f is only used for nested messages
893
+ */
894
+ proto.BaseMaterialSalesOrgRequest.serializeBinaryToWriter = function(message, writer) {
895
+ var f = undefined;
896
+ f = message.getMaterialReferencesId();
897
+ if (f.length > 0) {
898
+ writer.writeString(
899
+ 1,
900
+ f
901
+ );
902
+ }
903
+ f = message.getSalesOrgDistributionChannelReferencesId();
904
+ if (f.length > 0) {
905
+ writer.writeString(
906
+ 2,
907
+ f
908
+ );
909
+ }
910
+ f = message.getMaterialAccountAssignmentGroupReferencesId();
911
+ if (f.length > 0) {
912
+ writer.writeString(
913
+ 3,
914
+ f
915
+ );
916
+ }
917
+ f = message.getMaterialItemCategoryGroupReferencesId();
918
+ if (f.length > 0) {
919
+ writer.writeString(
920
+ 4,
921
+ f
922
+ );
923
+ }
924
+ f = message.getMaterialWithholdingTaxGroupReferencesId();
925
+ if (f.length > 0) {
926
+ writer.writeString(
927
+ 5,
928
+ f
929
+ );
930
+ }
931
+ };
932
+
933
+
934
+ /**
935
+ * optional string material_references_id = 1;
936
+ * @return {string}
937
+ */
938
+ proto.BaseMaterialSalesOrgRequest.prototype.getMaterialReferencesId = function() {
939
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
940
+ };
941
+
942
+
943
+ /**
944
+ * @param {string} value
945
+ * @return {!proto.BaseMaterialSalesOrgRequest} returns this
946
+ */
947
+ proto.BaseMaterialSalesOrgRequest.prototype.setMaterialReferencesId = function(value) {
948
+ return jspb.Message.setProto3StringField(this, 1, value);
949
+ };
950
+
951
+
952
+ /**
953
+ * optional string sales_org_distribution_channel_references_id = 2;
954
+ * @return {string}
955
+ */
956
+ proto.BaseMaterialSalesOrgRequest.prototype.getSalesOrgDistributionChannelReferencesId = function() {
957
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
958
+ };
959
+
960
+
961
+ /**
962
+ * @param {string} value
963
+ * @return {!proto.BaseMaterialSalesOrgRequest} returns this
964
+ */
965
+ proto.BaseMaterialSalesOrgRequest.prototype.setSalesOrgDistributionChannelReferencesId = function(value) {
966
+ return jspb.Message.setProto3StringField(this, 2, value);
967
+ };
968
+
969
+
970
+ /**
971
+ * optional string material_account_assignment_group_references_id = 3;
972
+ * @return {string}
973
+ */
974
+ proto.BaseMaterialSalesOrgRequest.prototype.getMaterialAccountAssignmentGroupReferencesId = function() {
975
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
976
+ };
977
+
978
+
979
+ /**
980
+ * @param {string} value
981
+ * @return {!proto.BaseMaterialSalesOrgRequest} returns this
982
+ */
983
+ proto.BaseMaterialSalesOrgRequest.prototype.setMaterialAccountAssignmentGroupReferencesId = function(value) {
984
+ return jspb.Message.setProto3StringField(this, 3, value);
985
+ };
986
+
987
+
988
+ /**
989
+ * optional string material_item_category_group_references_id = 4;
990
+ * @return {string}
991
+ */
992
+ proto.BaseMaterialSalesOrgRequest.prototype.getMaterialItemCategoryGroupReferencesId = function() {
993
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
994
+ };
995
+
996
+
997
+ /**
998
+ * @param {string} value
999
+ * @return {!proto.BaseMaterialSalesOrgRequest} returns this
1000
+ */
1001
+ proto.BaseMaterialSalesOrgRequest.prototype.setMaterialItemCategoryGroupReferencesId = function(value) {
1002
+ return jspb.Message.setProto3StringField(this, 4, value);
1003
+ };
1004
+
1005
+
1006
+ /**
1007
+ * optional string material_withholding_tax_group_references_id = 5;
1008
+ * @return {string}
1009
+ */
1010
+ proto.BaseMaterialSalesOrgRequest.prototype.getMaterialWithholdingTaxGroupReferencesId = function() {
1011
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1012
+ };
1013
+
1014
+
1015
+ /**
1016
+ * @param {string} value
1017
+ * @return {!proto.BaseMaterialSalesOrgRequest} returns this
1018
+ */
1019
+ proto.BaseMaterialSalesOrgRequest.prototype.setMaterialWithholdingTaxGroupReferencesId = function(value) {
1020
+ return jspb.Message.setProto3StringField(this, 5, value);
1021
+ };
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1028
+ /**
1029
+ * Creates an object representation of this proto.
1030
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1031
+ * Optional fields that are not set will be set to undefined.
1032
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1033
+ * For the list of reserved names please see:
1034
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1035
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1036
+ * JSPB instance for transitional soy proto support:
1037
+ * http://goto/soy-param-migration
1038
+ * @return {!Object}
1039
+ */
1040
+ proto.GetMaterialSalesOrgByIdRequest.prototype.toObject = function(opt_includeInstance) {
1041
+ return proto.GetMaterialSalesOrgByIdRequest.toObject(opt_includeInstance, this);
1042
+ };
1043
+
1044
+
1045
+ /**
1046
+ * Static version of the {@see toObject} method.
1047
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1048
+ * the JSPB instance for transitional soy proto support:
1049
+ * http://goto/soy-param-migration
1050
+ * @param {!proto.GetMaterialSalesOrgByIdRequest} msg The msg instance to transform.
1051
+ * @return {!Object}
1052
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1053
+ */
1054
+ proto.GetMaterialSalesOrgByIdRequest.toObject = function(includeInstance, msg) {
1055
+ var f, obj = {
1056
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1057
+ };
1058
+
1059
+ if (includeInstance) {
1060
+ obj.$jspbMessageInstance = msg;
1061
+ }
1062
+ return obj;
1063
+ };
1064
+ }
1065
+
1066
+
1067
+ /**
1068
+ * Deserializes binary data (in protobuf wire format).
1069
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1070
+ * @return {!proto.GetMaterialSalesOrgByIdRequest}
1071
+ */
1072
+ proto.GetMaterialSalesOrgByIdRequest.deserializeBinary = function(bytes) {
1073
+ var reader = new jspb.BinaryReader(bytes);
1074
+ var msg = new proto.GetMaterialSalesOrgByIdRequest;
1075
+ return proto.GetMaterialSalesOrgByIdRequest.deserializeBinaryFromReader(msg, reader);
1076
+ };
1077
+
1078
+
1079
+ /**
1080
+ * Deserializes binary data (in protobuf wire format) from the
1081
+ * given reader into the given message object.
1082
+ * @param {!proto.GetMaterialSalesOrgByIdRequest} msg The message object to deserialize into.
1083
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1084
+ * @return {!proto.GetMaterialSalesOrgByIdRequest}
1085
+ */
1086
+ proto.GetMaterialSalesOrgByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1087
+ while (reader.nextField()) {
1088
+ if (reader.isEndGroup()) {
1089
+ break;
1090
+ }
1091
+ var field = reader.getFieldNumber();
1092
+ switch (field) {
1093
+ case 1:
1094
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1095
+ msg.setReferencesId(value);
1096
+ break;
1097
+ default:
1098
+ reader.skipField();
1099
+ break;
1100
+ }
1101
+ }
1102
+ return msg;
1103
+ };
1104
+
1105
+
1106
+ /**
1107
+ * Serializes the message to binary data (in protobuf wire format).
1108
+ * @return {!Uint8Array}
1109
+ */
1110
+ proto.GetMaterialSalesOrgByIdRequest.prototype.serializeBinary = function() {
1111
+ var writer = new jspb.BinaryWriter();
1112
+ proto.GetMaterialSalesOrgByIdRequest.serializeBinaryToWriter(this, writer);
1113
+ return writer.getResultBuffer();
1114
+ };
1115
+
1116
+
1117
+ /**
1118
+ * Serializes the given message to binary data (in protobuf wire
1119
+ * format), writing to the given BinaryWriter.
1120
+ * @param {!proto.GetMaterialSalesOrgByIdRequest} message
1121
+ * @param {!jspb.BinaryWriter} writer
1122
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1123
+ */
1124
+ proto.GetMaterialSalesOrgByIdRequest.serializeBinaryToWriter = function(message, writer) {
1125
+ var f = undefined;
1126
+ f = message.getReferencesId();
1127
+ if (f.length > 0) {
1128
+ writer.writeString(
1129
+ 1,
1130
+ f
1131
+ );
1132
+ }
1133
+ };
1134
+
1135
+
1136
+ /**
1137
+ * optional string references_id = 1;
1138
+ * @return {string}
1139
+ */
1140
+ proto.GetMaterialSalesOrgByIdRequest.prototype.getReferencesId = function() {
1141
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1142
+ };
1143
+
1144
+
1145
+ /**
1146
+ * @param {string} value
1147
+ * @return {!proto.GetMaterialSalesOrgByIdRequest} returns this
1148
+ */
1149
+ proto.GetMaterialSalesOrgByIdRequest.prototype.setReferencesId = function(value) {
1150
+ return jspb.Message.setProto3StringField(this, 1, value);
1151
+ };
1152
+
1153
+
1154
+
1155
+
1156
+
1157
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1158
+ /**
1159
+ * Creates an object representation of this proto.
1160
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1161
+ * Optional fields that are not set will be set to undefined.
1162
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1163
+ * For the list of reserved names please see:
1164
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1165
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1166
+ * JSPB instance for transitional soy proto support:
1167
+ * http://goto/soy-param-migration
1168
+ * @return {!Object}
1169
+ */
1170
+ proto.GetListMaterialSalesOrgRequest.prototype.toObject = function(opt_includeInstance) {
1171
+ return proto.GetListMaterialSalesOrgRequest.toObject(opt_includeInstance, this);
1172
+ };
1173
+
1174
+
1175
+ /**
1176
+ * Static version of the {@see toObject} method.
1177
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1178
+ * the JSPB instance for transitional soy proto support:
1179
+ * http://goto/soy-param-migration
1180
+ * @param {!proto.GetListMaterialSalesOrgRequest} msg The msg instance to transform.
1181
+ * @return {!Object}
1182
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1183
+ */
1184
+ proto.GetListMaterialSalesOrgRequest.toObject = function(includeInstance, msg) {
1185
+ var f, obj = {
1186
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1187
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f),
1188
+ materialReferencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
1189
+ };
1190
+
1191
+ if (includeInstance) {
1192
+ obj.$jspbMessageInstance = msg;
1193
+ }
1194
+ return obj;
1195
+ };
1196
+ }
1197
+
1198
+
1199
+ /**
1200
+ * Deserializes binary data (in protobuf wire format).
1201
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1202
+ * @return {!proto.GetListMaterialSalesOrgRequest}
1203
+ */
1204
+ proto.GetListMaterialSalesOrgRequest.deserializeBinary = function(bytes) {
1205
+ var reader = new jspb.BinaryReader(bytes);
1206
+ var msg = new proto.GetListMaterialSalesOrgRequest;
1207
+ return proto.GetListMaterialSalesOrgRequest.deserializeBinaryFromReader(msg, reader);
1208
+ };
1209
+
1210
+
1211
+ /**
1212
+ * Deserializes binary data (in protobuf wire format) from the
1213
+ * given reader into the given message object.
1214
+ * @param {!proto.GetListMaterialSalesOrgRequest} msg The message object to deserialize into.
1215
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1216
+ * @return {!proto.GetListMaterialSalesOrgRequest}
1217
+ */
1218
+ proto.GetListMaterialSalesOrgRequest.deserializeBinaryFromReader = function(msg, reader) {
1219
+ while (reader.nextField()) {
1220
+ if (reader.isEndGroup()) {
1221
+ break;
1222
+ }
1223
+ var field = reader.getFieldNumber();
1224
+ switch (field) {
1225
+ case 1:
1226
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1227
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1228
+ msg.setPagination(value);
1229
+ break;
1230
+ case 2:
1231
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1232
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1233
+ msg.setQuery(value);
1234
+ break;
1235
+ case 3:
1236
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1237
+ msg.setMaterialReferencesId(value);
1238
+ break;
1239
+ default:
1240
+ reader.skipField();
1241
+ break;
1242
+ }
1243
+ }
1244
+ return msg;
1245
+ };
1246
+
1247
+
1248
+ /**
1249
+ * Serializes the message to binary data (in protobuf wire format).
1250
+ * @return {!Uint8Array}
1251
+ */
1252
+ proto.GetListMaterialSalesOrgRequest.prototype.serializeBinary = function() {
1253
+ var writer = new jspb.BinaryWriter();
1254
+ proto.GetListMaterialSalesOrgRequest.serializeBinaryToWriter(this, writer);
1255
+ return writer.getResultBuffer();
1256
+ };
1257
+
1258
+
1259
+ /**
1260
+ * Serializes the given message to binary data (in protobuf wire
1261
+ * format), writing to the given BinaryWriter.
1262
+ * @param {!proto.GetListMaterialSalesOrgRequest} message
1263
+ * @param {!jspb.BinaryWriter} writer
1264
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1265
+ */
1266
+ proto.GetListMaterialSalesOrgRequest.serializeBinaryToWriter = function(message, writer) {
1267
+ var f = undefined;
1268
+ f = message.getPagination();
1269
+ if (f != null) {
1270
+ writer.writeMessage(
1271
+ 1,
1272
+ f,
1273
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1274
+ );
1275
+ }
1276
+ f = message.getQuery();
1277
+ if (f != null) {
1278
+ writer.writeMessage(
1279
+ 2,
1280
+ f,
1281
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1282
+ );
1283
+ }
1284
+ f = message.getMaterialReferencesId();
1285
+ if (f.length > 0) {
1286
+ writer.writeString(
1287
+ 3,
1288
+ f
1289
+ );
1290
+ }
1291
+ };
1292
+
1293
+
1294
+ /**
1295
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1296
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1297
+ */
1298
+ proto.GetListMaterialSalesOrgRequest.prototype.getPagination = function() {
1299
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1300
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1301
+ };
1302
+
1303
+
1304
+ /**
1305
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1306
+ * @return {!proto.GetListMaterialSalesOrgRequest} returns this
1307
+ */
1308
+ proto.GetListMaterialSalesOrgRequest.prototype.setPagination = function(value) {
1309
+ return jspb.Message.setWrapperField(this, 1, value);
1310
+ };
1311
+
1312
+
1313
+ /**
1314
+ * Clears the message field making it undefined.
1315
+ * @return {!proto.GetListMaterialSalesOrgRequest} returns this
1316
+ */
1317
+ proto.GetListMaterialSalesOrgRequest.prototype.clearPagination = function() {
1318
+ return this.setPagination(undefined);
1319
+ };
1320
+
1321
+
1322
+ /**
1323
+ * Returns whether this field is set.
1324
+ * @return {boolean}
1325
+ */
1326
+ proto.GetListMaterialSalesOrgRequest.prototype.hasPagination = function() {
1327
+ return jspb.Message.getField(this, 1) != null;
1328
+ };
1329
+
1330
+
1331
+ /**
1332
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
1333
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
1334
+ */
1335
+ proto.GetListMaterialSalesOrgRequest.prototype.getQuery = function() {
1336
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1337
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1338
+ };
1339
+
1340
+
1341
+ /**
1342
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1343
+ * @return {!proto.GetListMaterialSalesOrgRequest} returns this
1344
+ */
1345
+ proto.GetListMaterialSalesOrgRequest.prototype.setQuery = function(value) {
1346
+ return jspb.Message.setWrapperField(this, 2, value);
1347
+ };
1348
+
1349
+
1350
+ /**
1351
+ * Clears the message field making it undefined.
1352
+ * @return {!proto.GetListMaterialSalesOrgRequest} returns this
1353
+ */
1354
+ proto.GetListMaterialSalesOrgRequest.prototype.clearQuery = function() {
1355
+ return this.setQuery(undefined);
1356
+ };
1357
+
1358
+
1359
+ /**
1360
+ * Returns whether this field is set.
1361
+ * @return {boolean}
1362
+ */
1363
+ proto.GetListMaterialSalesOrgRequest.prototype.hasQuery = function() {
1364
+ return jspb.Message.getField(this, 2) != null;
1365
+ };
1366
+
1367
+
1368
+ /**
1369
+ * optional string material_references_id = 3;
1370
+ * @return {string}
1371
+ */
1372
+ proto.GetListMaterialSalesOrgRequest.prototype.getMaterialReferencesId = function() {
1373
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1374
+ };
1375
+
1376
+
1377
+ /**
1378
+ * @param {string} value
1379
+ * @return {!proto.GetListMaterialSalesOrgRequest} returns this
1380
+ */
1381
+ proto.GetListMaterialSalesOrgRequest.prototype.setMaterialReferencesId = function(value) {
1382
+ return jspb.Message.setProto3StringField(this, 3, value);
1383
+ };
1384
+
1385
+
1386
+
1387
+
1388
+
1389
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1390
+ /**
1391
+ * Creates an object representation of this proto.
1392
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1393
+ * Optional fields that are not set will be set to undefined.
1394
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1395
+ * For the list of reserved names please see:
1396
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1397
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1398
+ * JSPB instance for transitional soy proto support:
1399
+ * http://goto/soy-param-migration
1400
+ * @return {!Object}
1401
+ */
1402
+ proto.CreateMaterialSalesOrgRequest.prototype.toObject = function(opt_includeInstance) {
1403
+ return proto.CreateMaterialSalesOrgRequest.toObject(opt_includeInstance, this);
1404
+ };
1405
+
1406
+
1407
+ /**
1408
+ * Static version of the {@see toObject} method.
1409
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1410
+ * the JSPB instance for transitional soy proto support:
1411
+ * http://goto/soy-param-migration
1412
+ * @param {!proto.CreateMaterialSalesOrgRequest} msg The msg instance to transform.
1413
+ * @return {!Object}
1414
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1415
+ */
1416
+ proto.CreateMaterialSalesOrgRequest.toObject = function(includeInstance, msg) {
1417
+ var f, obj = {
1418
+ baseRequest: (f = msg.getBaseRequest()) && proto.BaseMaterialSalesOrgRequest.toObject(includeInstance, f)
1419
+ };
1420
+
1421
+ if (includeInstance) {
1422
+ obj.$jspbMessageInstance = msg;
1423
+ }
1424
+ return obj;
1425
+ };
1426
+ }
1427
+
1428
+
1429
+ /**
1430
+ * Deserializes binary data (in protobuf wire format).
1431
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1432
+ * @return {!proto.CreateMaterialSalesOrgRequest}
1433
+ */
1434
+ proto.CreateMaterialSalesOrgRequest.deserializeBinary = function(bytes) {
1435
+ var reader = new jspb.BinaryReader(bytes);
1436
+ var msg = new proto.CreateMaterialSalesOrgRequest;
1437
+ return proto.CreateMaterialSalesOrgRequest.deserializeBinaryFromReader(msg, reader);
1438
+ };
1439
+
1440
+
1441
+ /**
1442
+ * Deserializes binary data (in protobuf wire format) from the
1443
+ * given reader into the given message object.
1444
+ * @param {!proto.CreateMaterialSalesOrgRequest} msg The message object to deserialize into.
1445
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1446
+ * @return {!proto.CreateMaterialSalesOrgRequest}
1447
+ */
1448
+ proto.CreateMaterialSalesOrgRequest.deserializeBinaryFromReader = function(msg, reader) {
1449
+ while (reader.nextField()) {
1450
+ if (reader.isEndGroup()) {
1451
+ break;
1452
+ }
1453
+ var field = reader.getFieldNumber();
1454
+ switch (field) {
1455
+ case 1:
1456
+ var value = new proto.BaseMaterialSalesOrgRequest;
1457
+ reader.readMessage(value,proto.BaseMaterialSalesOrgRequest.deserializeBinaryFromReader);
1458
+ msg.setBaseRequest(value);
1459
+ break;
1460
+ default:
1461
+ reader.skipField();
1462
+ break;
1463
+ }
1464
+ }
1465
+ return msg;
1466
+ };
1467
+
1468
+
1469
+ /**
1470
+ * Serializes the message to binary data (in protobuf wire format).
1471
+ * @return {!Uint8Array}
1472
+ */
1473
+ proto.CreateMaterialSalesOrgRequest.prototype.serializeBinary = function() {
1474
+ var writer = new jspb.BinaryWriter();
1475
+ proto.CreateMaterialSalesOrgRequest.serializeBinaryToWriter(this, writer);
1476
+ return writer.getResultBuffer();
1477
+ };
1478
+
1479
+
1480
+ /**
1481
+ * Serializes the given message to binary data (in protobuf wire
1482
+ * format), writing to the given BinaryWriter.
1483
+ * @param {!proto.CreateMaterialSalesOrgRequest} message
1484
+ * @param {!jspb.BinaryWriter} writer
1485
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1486
+ */
1487
+ proto.CreateMaterialSalesOrgRequest.serializeBinaryToWriter = function(message, writer) {
1488
+ var f = undefined;
1489
+ f = message.getBaseRequest();
1490
+ if (f != null) {
1491
+ writer.writeMessage(
1492
+ 1,
1493
+ f,
1494
+ proto.BaseMaterialSalesOrgRequest.serializeBinaryToWriter
1495
+ );
1496
+ }
1497
+ };
1498
+
1499
+
1500
+ /**
1501
+ * optional BaseMaterialSalesOrgRequest base_request = 1;
1502
+ * @return {?proto.BaseMaterialSalesOrgRequest}
1503
+ */
1504
+ proto.CreateMaterialSalesOrgRequest.prototype.getBaseRequest = function() {
1505
+ return /** @type{?proto.BaseMaterialSalesOrgRequest} */ (
1506
+ jspb.Message.getWrapperField(this, proto.BaseMaterialSalesOrgRequest, 1));
1507
+ };
1508
+
1509
+
1510
+ /**
1511
+ * @param {?proto.BaseMaterialSalesOrgRequest|undefined} value
1512
+ * @return {!proto.CreateMaterialSalesOrgRequest} returns this
1513
+ */
1514
+ proto.CreateMaterialSalesOrgRequest.prototype.setBaseRequest = function(value) {
1515
+ return jspb.Message.setWrapperField(this, 1, value);
1516
+ };
1517
+
1518
+
1519
+ /**
1520
+ * Clears the message field making it undefined.
1521
+ * @return {!proto.CreateMaterialSalesOrgRequest} returns this
1522
+ */
1523
+ proto.CreateMaterialSalesOrgRequest.prototype.clearBaseRequest = function() {
1524
+ return this.setBaseRequest(undefined);
1525
+ };
1526
+
1527
+
1528
+ /**
1529
+ * Returns whether this field is set.
1530
+ * @return {boolean}
1531
+ */
1532
+ proto.CreateMaterialSalesOrgRequest.prototype.hasBaseRequest = function() {
1533
+ return jspb.Message.getField(this, 1) != null;
1534
+ };
1535
+
1536
+
1537
+
1538
+
1539
+
1540
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1541
+ /**
1542
+ * Creates an object representation of this proto.
1543
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1544
+ * Optional fields that are not set will be set to undefined.
1545
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1546
+ * For the list of reserved names please see:
1547
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1548
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1549
+ * JSPB instance for transitional soy proto support:
1550
+ * http://goto/soy-param-migration
1551
+ * @return {!Object}
1552
+ */
1553
+ proto.UpdateMaterialSalesOrgRequest.prototype.toObject = function(opt_includeInstance) {
1554
+ return proto.UpdateMaterialSalesOrgRequest.toObject(opt_includeInstance, this);
1555
+ };
1556
+
1557
+
1558
+ /**
1559
+ * Static version of the {@see toObject} method.
1560
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1561
+ * the JSPB instance for transitional soy proto support:
1562
+ * http://goto/soy-param-migration
1563
+ * @param {!proto.UpdateMaterialSalesOrgRequest} msg The msg instance to transform.
1564
+ * @return {!Object}
1565
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1566
+ */
1567
+ proto.UpdateMaterialSalesOrgRequest.toObject = function(includeInstance, msg) {
1568
+ var f, obj = {
1569
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1570
+ materialAccountAssignmentGroupReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1571
+ materialItemCategoryGroupReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
1572
+ materialWithholdingTaxGroupReferencesId: jspb.Message.getFieldWithDefault(msg, 4, "")
1573
+ };
1574
+
1575
+ if (includeInstance) {
1576
+ obj.$jspbMessageInstance = msg;
1577
+ }
1578
+ return obj;
1579
+ };
1580
+ }
1581
+
1582
+
1583
+ /**
1584
+ * Deserializes binary data (in protobuf wire format).
1585
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1586
+ * @return {!proto.UpdateMaterialSalesOrgRequest}
1587
+ */
1588
+ proto.UpdateMaterialSalesOrgRequest.deserializeBinary = function(bytes) {
1589
+ var reader = new jspb.BinaryReader(bytes);
1590
+ var msg = new proto.UpdateMaterialSalesOrgRequest;
1591
+ return proto.UpdateMaterialSalesOrgRequest.deserializeBinaryFromReader(msg, reader);
1592
+ };
1593
+
1594
+
1595
+ /**
1596
+ * Deserializes binary data (in protobuf wire format) from the
1597
+ * given reader into the given message object.
1598
+ * @param {!proto.UpdateMaterialSalesOrgRequest} msg The message object to deserialize into.
1599
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1600
+ * @return {!proto.UpdateMaterialSalesOrgRequest}
1601
+ */
1602
+ proto.UpdateMaterialSalesOrgRequest.deserializeBinaryFromReader = function(msg, reader) {
1603
+ while (reader.nextField()) {
1604
+ if (reader.isEndGroup()) {
1605
+ break;
1606
+ }
1607
+ var field = reader.getFieldNumber();
1608
+ switch (field) {
1609
+ case 1:
1610
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1611
+ msg.setReferencesId(value);
1612
+ break;
1613
+ case 2:
1614
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1615
+ msg.setMaterialAccountAssignmentGroupReferencesId(value);
1616
+ break;
1617
+ case 3:
1618
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1619
+ msg.setMaterialItemCategoryGroupReferencesId(value);
1620
+ break;
1621
+ case 4:
1622
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1623
+ msg.setMaterialWithholdingTaxGroupReferencesId(value);
1624
+ break;
1625
+ default:
1626
+ reader.skipField();
1627
+ break;
1628
+ }
1629
+ }
1630
+ return msg;
1631
+ };
1632
+
1633
+
1634
+ /**
1635
+ * Serializes the message to binary data (in protobuf wire format).
1636
+ * @return {!Uint8Array}
1637
+ */
1638
+ proto.UpdateMaterialSalesOrgRequest.prototype.serializeBinary = function() {
1639
+ var writer = new jspb.BinaryWriter();
1640
+ proto.UpdateMaterialSalesOrgRequest.serializeBinaryToWriter(this, writer);
1641
+ return writer.getResultBuffer();
1642
+ };
1643
+
1644
+
1645
+ /**
1646
+ * Serializes the given message to binary data (in protobuf wire
1647
+ * format), writing to the given BinaryWriter.
1648
+ * @param {!proto.UpdateMaterialSalesOrgRequest} message
1649
+ * @param {!jspb.BinaryWriter} writer
1650
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1651
+ */
1652
+ proto.UpdateMaterialSalesOrgRequest.serializeBinaryToWriter = function(message, writer) {
1653
+ var f = undefined;
1654
+ f = message.getReferencesId();
1655
+ if (f.length > 0) {
1656
+ writer.writeString(
1657
+ 1,
1658
+ f
1659
+ );
1660
+ }
1661
+ f = message.getMaterialAccountAssignmentGroupReferencesId();
1662
+ if (f.length > 0) {
1663
+ writer.writeString(
1664
+ 2,
1665
+ f
1666
+ );
1667
+ }
1668
+ f = message.getMaterialItemCategoryGroupReferencesId();
1669
+ if (f.length > 0) {
1670
+ writer.writeString(
1671
+ 3,
1672
+ f
1673
+ );
1674
+ }
1675
+ f = message.getMaterialWithholdingTaxGroupReferencesId();
1676
+ if (f.length > 0) {
1677
+ writer.writeString(
1678
+ 4,
1679
+ f
1680
+ );
1681
+ }
1682
+ };
1683
+
1684
+
1685
+ /**
1686
+ * optional string references_id = 1;
1687
+ * @return {string}
1688
+ */
1689
+ proto.UpdateMaterialSalesOrgRequest.prototype.getReferencesId = function() {
1690
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1691
+ };
1692
+
1693
+
1694
+ /**
1695
+ * @param {string} value
1696
+ * @return {!proto.UpdateMaterialSalesOrgRequest} returns this
1697
+ */
1698
+ proto.UpdateMaterialSalesOrgRequest.prototype.setReferencesId = function(value) {
1699
+ return jspb.Message.setProto3StringField(this, 1, value);
1700
+ };
1701
+
1702
+
1703
+ /**
1704
+ * optional string material_account_assignment_group_references_id = 2;
1705
+ * @return {string}
1706
+ */
1707
+ proto.UpdateMaterialSalesOrgRequest.prototype.getMaterialAccountAssignmentGroupReferencesId = function() {
1708
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1709
+ };
1710
+
1711
+
1712
+ /**
1713
+ * @param {string} value
1714
+ * @return {!proto.UpdateMaterialSalesOrgRequest} returns this
1715
+ */
1716
+ proto.UpdateMaterialSalesOrgRequest.prototype.setMaterialAccountAssignmentGroupReferencesId = function(value) {
1717
+ return jspb.Message.setProto3StringField(this, 2, value);
1718
+ };
1719
+
1720
+
1721
+ /**
1722
+ * optional string material_item_category_group_references_id = 3;
1723
+ * @return {string}
1724
+ */
1725
+ proto.UpdateMaterialSalesOrgRequest.prototype.getMaterialItemCategoryGroupReferencesId = function() {
1726
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1727
+ };
1728
+
1729
+
1730
+ /**
1731
+ * @param {string} value
1732
+ * @return {!proto.UpdateMaterialSalesOrgRequest} returns this
1733
+ */
1734
+ proto.UpdateMaterialSalesOrgRequest.prototype.setMaterialItemCategoryGroupReferencesId = function(value) {
1735
+ return jspb.Message.setProto3StringField(this, 3, value);
1736
+ };
1737
+
1738
+
1739
+ /**
1740
+ * optional string material_withholding_tax_group_references_id = 4;
1741
+ * @return {string}
1742
+ */
1743
+ proto.UpdateMaterialSalesOrgRequest.prototype.getMaterialWithholdingTaxGroupReferencesId = function() {
1744
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1745
+ };
1746
+
1747
+
1748
+ /**
1749
+ * @param {string} value
1750
+ * @return {!proto.UpdateMaterialSalesOrgRequest} returns this
1751
+ */
1752
+ proto.UpdateMaterialSalesOrgRequest.prototype.setMaterialWithholdingTaxGroupReferencesId = function(value) {
1753
+ return jspb.Message.setProto3StringField(this, 4, value);
1754
+ };
1755
+
1756
+
1757
+
1758
+ /**
1759
+ * List of repeated fields within this message type.
1760
+ * @private {!Array<number>}
1761
+ * @const
1762
+ */
1763
+ proto.DeleteMaterialSalesOrgRequest.repeatedFields_ = [1];
1764
+
1765
+
1766
+
1767
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1768
+ /**
1769
+ * Creates an object representation of this proto.
1770
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1771
+ * Optional fields that are not set will be set to undefined.
1772
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1773
+ * For the list of reserved names please see:
1774
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1775
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1776
+ * JSPB instance for transitional soy proto support:
1777
+ * http://goto/soy-param-migration
1778
+ * @return {!Object}
1779
+ */
1780
+ proto.DeleteMaterialSalesOrgRequest.prototype.toObject = function(opt_includeInstance) {
1781
+ return proto.DeleteMaterialSalesOrgRequest.toObject(opt_includeInstance, this);
1782
+ };
1783
+
1784
+
1785
+ /**
1786
+ * Static version of the {@see toObject} method.
1787
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1788
+ * the JSPB instance for transitional soy proto support:
1789
+ * http://goto/soy-param-migration
1790
+ * @param {!proto.DeleteMaterialSalesOrgRequest} msg The msg instance to transform.
1791
+ * @return {!Object}
1792
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1793
+ */
1794
+ proto.DeleteMaterialSalesOrgRequest.toObject = function(includeInstance, msg) {
1795
+ var f, obj = {
1796
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
1797
+ };
1798
+
1799
+ if (includeInstance) {
1800
+ obj.$jspbMessageInstance = msg;
1801
+ }
1802
+ return obj;
1803
+ };
1804
+ }
1805
+
1806
+
1807
+ /**
1808
+ * Deserializes binary data (in protobuf wire format).
1809
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1810
+ * @return {!proto.DeleteMaterialSalesOrgRequest}
1811
+ */
1812
+ proto.DeleteMaterialSalesOrgRequest.deserializeBinary = function(bytes) {
1813
+ var reader = new jspb.BinaryReader(bytes);
1814
+ var msg = new proto.DeleteMaterialSalesOrgRequest;
1815
+ return proto.DeleteMaterialSalesOrgRequest.deserializeBinaryFromReader(msg, reader);
1816
+ };
1817
+
1818
+
1819
+ /**
1820
+ * Deserializes binary data (in protobuf wire format) from the
1821
+ * given reader into the given message object.
1822
+ * @param {!proto.DeleteMaterialSalesOrgRequest} msg The message object to deserialize into.
1823
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1824
+ * @return {!proto.DeleteMaterialSalesOrgRequest}
1825
+ */
1826
+ proto.DeleteMaterialSalesOrgRequest.deserializeBinaryFromReader = function(msg, reader) {
1827
+ while (reader.nextField()) {
1828
+ if (reader.isEndGroup()) {
1829
+ break;
1830
+ }
1831
+ var field = reader.getFieldNumber();
1832
+ switch (field) {
1833
+ case 1:
1834
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1835
+ msg.addReferenceIds(value);
1836
+ break;
1837
+ default:
1838
+ reader.skipField();
1839
+ break;
1840
+ }
1841
+ }
1842
+ return msg;
1843
+ };
1844
+
1845
+
1846
+ /**
1847
+ * Serializes the message to binary data (in protobuf wire format).
1848
+ * @return {!Uint8Array}
1849
+ */
1850
+ proto.DeleteMaterialSalesOrgRequest.prototype.serializeBinary = function() {
1851
+ var writer = new jspb.BinaryWriter();
1852
+ proto.DeleteMaterialSalesOrgRequest.serializeBinaryToWriter(this, writer);
1853
+ return writer.getResultBuffer();
1854
+ };
1855
+
1856
+
1857
+ /**
1858
+ * Serializes the given message to binary data (in protobuf wire
1859
+ * format), writing to the given BinaryWriter.
1860
+ * @param {!proto.DeleteMaterialSalesOrgRequest} message
1861
+ * @param {!jspb.BinaryWriter} writer
1862
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1863
+ */
1864
+ proto.DeleteMaterialSalesOrgRequest.serializeBinaryToWriter = function(message, writer) {
1865
+ var f = undefined;
1866
+ f = message.getReferenceIdsList();
1867
+ if (f.length > 0) {
1868
+ writer.writeRepeatedString(
1869
+ 1,
1870
+ f
1871
+ );
1872
+ }
1873
+ };
1874
+
1875
+
1876
+ /**
1877
+ * repeated string reference_ids = 1;
1878
+ * @return {!Array<string>}
1879
+ */
1880
+ proto.DeleteMaterialSalesOrgRequest.prototype.getReferenceIdsList = function() {
1881
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
1882
+ };
1883
+
1884
+
1885
+ /**
1886
+ * @param {!Array<string>} value
1887
+ * @return {!proto.DeleteMaterialSalesOrgRequest} returns this
1888
+ */
1889
+ proto.DeleteMaterialSalesOrgRequest.prototype.setReferenceIdsList = function(value) {
1890
+ return jspb.Message.setField(this, 1, value || []);
1891
+ };
1892
+
1893
+
1894
+ /**
1895
+ * @param {string} value
1896
+ * @param {number=} opt_index
1897
+ * @return {!proto.DeleteMaterialSalesOrgRequest} returns this
1898
+ */
1899
+ proto.DeleteMaterialSalesOrgRequest.prototype.addReferenceIds = function(value, opt_index) {
1900
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1901
+ };
1902
+
1903
+
1904
+ /**
1905
+ * Clears the list making it empty but non-null.
1906
+ * @return {!proto.DeleteMaterialSalesOrgRequest} returns this
1907
+ */
1908
+ proto.DeleteMaterialSalesOrgRequest.prototype.clearReferenceIdsList = function() {
1909
+ return this.setReferenceIdsList([]);
1910
+ };
1911
+
1912
+
1913
+
1914
+
1915
+
1916
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1917
+ /**
1918
+ * Creates an object representation of this proto.
1919
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1920
+ * Optional fields that are not set will be set to undefined.
1921
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1922
+ * For the list of reserved names please see:
1923
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1924
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1925
+ * JSPB instance for transitional soy proto support:
1926
+ * http://goto/soy-param-migration
1927
+ * @return {!Object}
1928
+ */
1929
+ proto.CreateMaterialSalesOrgResponse.prototype.toObject = function(opt_includeInstance) {
1930
+ return proto.CreateMaterialSalesOrgResponse.toObject(opt_includeInstance, this);
1931
+ };
1932
+
1933
+
1934
+ /**
1935
+ * Static version of the {@see toObject} method.
1936
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1937
+ * the JSPB instance for transitional soy proto support:
1938
+ * http://goto/soy-param-migration
1939
+ * @param {!proto.CreateMaterialSalesOrgResponse} msg The msg instance to transform.
1940
+ * @return {!Object}
1941
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1942
+ */
1943
+ proto.CreateMaterialSalesOrgResponse.toObject = function(includeInstance, msg) {
1944
+ var f, obj = {
1945
+ materialSalesOrg: (f = msg.getMaterialSalesOrg()) && proto.MaterialSalesOrg.toObject(includeInstance, f),
1946
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1947
+ };
1948
+
1949
+ if (includeInstance) {
1950
+ obj.$jspbMessageInstance = msg;
1951
+ }
1952
+ return obj;
1953
+ };
1954
+ }
1955
+
1956
+
1957
+ /**
1958
+ * Deserializes binary data (in protobuf wire format).
1959
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1960
+ * @return {!proto.CreateMaterialSalesOrgResponse}
1961
+ */
1962
+ proto.CreateMaterialSalesOrgResponse.deserializeBinary = function(bytes) {
1963
+ var reader = new jspb.BinaryReader(bytes);
1964
+ var msg = new proto.CreateMaterialSalesOrgResponse;
1965
+ return proto.CreateMaterialSalesOrgResponse.deserializeBinaryFromReader(msg, reader);
1966
+ };
1967
+
1968
+
1969
+ /**
1970
+ * Deserializes binary data (in protobuf wire format) from the
1971
+ * given reader into the given message object.
1972
+ * @param {!proto.CreateMaterialSalesOrgResponse} msg The message object to deserialize into.
1973
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1974
+ * @return {!proto.CreateMaterialSalesOrgResponse}
1975
+ */
1976
+ proto.CreateMaterialSalesOrgResponse.deserializeBinaryFromReader = function(msg, reader) {
1977
+ while (reader.nextField()) {
1978
+ if (reader.isEndGroup()) {
1979
+ break;
1980
+ }
1981
+ var field = reader.getFieldNumber();
1982
+ switch (field) {
1983
+ case 1:
1984
+ var value = new proto.MaterialSalesOrg;
1985
+ reader.readMessage(value,proto.MaterialSalesOrg.deserializeBinaryFromReader);
1986
+ msg.setMaterialSalesOrg(value);
1987
+ break;
1988
+ case 2:
1989
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1990
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1991
+ msg.setMeta(value);
1992
+ break;
1993
+ default:
1994
+ reader.skipField();
1995
+ break;
1996
+ }
1997
+ }
1998
+ return msg;
1999
+ };
2000
+
2001
+
2002
+ /**
2003
+ * Serializes the message to binary data (in protobuf wire format).
2004
+ * @return {!Uint8Array}
2005
+ */
2006
+ proto.CreateMaterialSalesOrgResponse.prototype.serializeBinary = function() {
2007
+ var writer = new jspb.BinaryWriter();
2008
+ proto.CreateMaterialSalesOrgResponse.serializeBinaryToWriter(this, writer);
2009
+ return writer.getResultBuffer();
2010
+ };
2011
+
2012
+
2013
+ /**
2014
+ * Serializes the given message to binary data (in protobuf wire
2015
+ * format), writing to the given BinaryWriter.
2016
+ * @param {!proto.CreateMaterialSalesOrgResponse} message
2017
+ * @param {!jspb.BinaryWriter} writer
2018
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2019
+ */
2020
+ proto.CreateMaterialSalesOrgResponse.serializeBinaryToWriter = function(message, writer) {
2021
+ var f = undefined;
2022
+ f = message.getMaterialSalesOrg();
2023
+ if (f != null) {
2024
+ writer.writeMessage(
2025
+ 1,
2026
+ f,
2027
+ proto.MaterialSalesOrg.serializeBinaryToWriter
2028
+ );
2029
+ }
2030
+ f = message.getMeta();
2031
+ if (f != null) {
2032
+ writer.writeMessage(
2033
+ 2,
2034
+ f,
2035
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2036
+ );
2037
+ }
2038
+ };
2039
+
2040
+
2041
+ /**
2042
+ * optional MaterialSalesOrg material_sales_org = 1;
2043
+ * @return {?proto.MaterialSalesOrg}
2044
+ */
2045
+ proto.CreateMaterialSalesOrgResponse.prototype.getMaterialSalesOrg = function() {
2046
+ return /** @type{?proto.MaterialSalesOrg} */ (
2047
+ jspb.Message.getWrapperField(this, proto.MaterialSalesOrg, 1));
2048
+ };
2049
+
2050
+
2051
+ /**
2052
+ * @param {?proto.MaterialSalesOrg|undefined} value
2053
+ * @return {!proto.CreateMaterialSalesOrgResponse} returns this
2054
+ */
2055
+ proto.CreateMaterialSalesOrgResponse.prototype.setMaterialSalesOrg = function(value) {
2056
+ return jspb.Message.setWrapperField(this, 1, value);
2057
+ };
2058
+
2059
+
2060
+ /**
2061
+ * Clears the message field making it undefined.
2062
+ * @return {!proto.CreateMaterialSalesOrgResponse} returns this
2063
+ */
2064
+ proto.CreateMaterialSalesOrgResponse.prototype.clearMaterialSalesOrg = function() {
2065
+ return this.setMaterialSalesOrg(undefined);
2066
+ };
2067
+
2068
+
2069
+ /**
2070
+ * Returns whether this field is set.
2071
+ * @return {boolean}
2072
+ */
2073
+ proto.CreateMaterialSalesOrgResponse.prototype.hasMaterialSalesOrg = function() {
2074
+ return jspb.Message.getField(this, 1) != null;
2075
+ };
2076
+
2077
+
2078
+ /**
2079
+ * optional prisca.v1.global.meta.Meta meta = 2;
2080
+ * @return {?proto.prisca.v1.global.meta.Meta}
2081
+ */
2082
+ proto.CreateMaterialSalesOrgResponse.prototype.getMeta = function() {
2083
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2084
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2085
+ };
2086
+
2087
+
2088
+ /**
2089
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2090
+ * @return {!proto.CreateMaterialSalesOrgResponse} returns this
2091
+ */
2092
+ proto.CreateMaterialSalesOrgResponse.prototype.setMeta = function(value) {
2093
+ return jspb.Message.setWrapperField(this, 2, value);
2094
+ };
2095
+
2096
+
2097
+ /**
2098
+ * Clears the message field making it undefined.
2099
+ * @return {!proto.CreateMaterialSalesOrgResponse} returns this
2100
+ */
2101
+ proto.CreateMaterialSalesOrgResponse.prototype.clearMeta = function() {
2102
+ return this.setMeta(undefined);
2103
+ };
2104
+
2105
+
2106
+ /**
2107
+ * Returns whether this field is set.
2108
+ * @return {boolean}
2109
+ */
2110
+ proto.CreateMaterialSalesOrgResponse.prototype.hasMeta = function() {
2111
+ return jspb.Message.getField(this, 2) != null;
2112
+ };
2113
+
2114
+
2115
+
2116
+
2117
+
2118
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2119
+ /**
2120
+ * Creates an object representation of this proto.
2121
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2122
+ * Optional fields that are not set will be set to undefined.
2123
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2124
+ * For the list of reserved names please see:
2125
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2126
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2127
+ * JSPB instance for transitional soy proto support:
2128
+ * http://goto/soy-param-migration
2129
+ * @return {!Object}
2130
+ */
2131
+ proto.UpdateMaterialSalesOrgResponse.prototype.toObject = function(opt_includeInstance) {
2132
+ return proto.UpdateMaterialSalesOrgResponse.toObject(opt_includeInstance, this);
2133
+ };
2134
+
2135
+
2136
+ /**
2137
+ * Static version of the {@see toObject} method.
2138
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2139
+ * the JSPB instance for transitional soy proto support:
2140
+ * http://goto/soy-param-migration
2141
+ * @param {!proto.UpdateMaterialSalesOrgResponse} msg The msg instance to transform.
2142
+ * @return {!Object}
2143
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2144
+ */
2145
+ proto.UpdateMaterialSalesOrgResponse.toObject = function(includeInstance, msg) {
2146
+ var f, obj = {
2147
+ materialSalesOrg: (f = msg.getMaterialSalesOrg()) && proto.MaterialSalesOrg.toObject(includeInstance, f),
2148
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2149
+ };
2150
+
2151
+ if (includeInstance) {
2152
+ obj.$jspbMessageInstance = msg;
2153
+ }
2154
+ return obj;
2155
+ };
2156
+ }
2157
+
2158
+
2159
+ /**
2160
+ * Deserializes binary data (in protobuf wire format).
2161
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2162
+ * @return {!proto.UpdateMaterialSalesOrgResponse}
2163
+ */
2164
+ proto.UpdateMaterialSalesOrgResponse.deserializeBinary = function(bytes) {
2165
+ var reader = new jspb.BinaryReader(bytes);
2166
+ var msg = new proto.UpdateMaterialSalesOrgResponse;
2167
+ return proto.UpdateMaterialSalesOrgResponse.deserializeBinaryFromReader(msg, reader);
2168
+ };
2169
+
2170
+
2171
+ /**
2172
+ * Deserializes binary data (in protobuf wire format) from the
2173
+ * given reader into the given message object.
2174
+ * @param {!proto.UpdateMaterialSalesOrgResponse} msg The message object to deserialize into.
2175
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2176
+ * @return {!proto.UpdateMaterialSalesOrgResponse}
2177
+ */
2178
+ proto.UpdateMaterialSalesOrgResponse.deserializeBinaryFromReader = function(msg, reader) {
2179
+ while (reader.nextField()) {
2180
+ if (reader.isEndGroup()) {
2181
+ break;
2182
+ }
2183
+ var field = reader.getFieldNumber();
2184
+ switch (field) {
2185
+ case 1:
2186
+ var value = new proto.MaterialSalesOrg;
2187
+ reader.readMessage(value,proto.MaterialSalesOrg.deserializeBinaryFromReader);
2188
+ msg.setMaterialSalesOrg(value);
2189
+ break;
2190
+ case 2:
2191
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2192
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2193
+ msg.setMeta(value);
2194
+ break;
2195
+ default:
2196
+ reader.skipField();
2197
+ break;
2198
+ }
2199
+ }
2200
+ return msg;
2201
+ };
2202
+
2203
+
2204
+ /**
2205
+ * Serializes the message to binary data (in protobuf wire format).
2206
+ * @return {!Uint8Array}
2207
+ */
2208
+ proto.UpdateMaterialSalesOrgResponse.prototype.serializeBinary = function() {
2209
+ var writer = new jspb.BinaryWriter();
2210
+ proto.UpdateMaterialSalesOrgResponse.serializeBinaryToWriter(this, writer);
2211
+ return writer.getResultBuffer();
2212
+ };
2213
+
2214
+
2215
+ /**
2216
+ * Serializes the given message to binary data (in protobuf wire
2217
+ * format), writing to the given BinaryWriter.
2218
+ * @param {!proto.UpdateMaterialSalesOrgResponse} message
2219
+ * @param {!jspb.BinaryWriter} writer
2220
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2221
+ */
2222
+ proto.UpdateMaterialSalesOrgResponse.serializeBinaryToWriter = function(message, writer) {
2223
+ var f = undefined;
2224
+ f = message.getMaterialSalesOrg();
2225
+ if (f != null) {
2226
+ writer.writeMessage(
2227
+ 1,
2228
+ f,
2229
+ proto.MaterialSalesOrg.serializeBinaryToWriter
2230
+ );
2231
+ }
2232
+ f = message.getMeta();
2233
+ if (f != null) {
2234
+ writer.writeMessage(
2235
+ 2,
2236
+ f,
2237
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2238
+ );
2239
+ }
2240
+ };
2241
+
2242
+
2243
+ /**
2244
+ * optional MaterialSalesOrg material_sales_org = 1;
2245
+ * @return {?proto.MaterialSalesOrg}
2246
+ */
2247
+ proto.UpdateMaterialSalesOrgResponse.prototype.getMaterialSalesOrg = function() {
2248
+ return /** @type{?proto.MaterialSalesOrg} */ (
2249
+ jspb.Message.getWrapperField(this, proto.MaterialSalesOrg, 1));
2250
+ };
2251
+
2252
+
2253
+ /**
2254
+ * @param {?proto.MaterialSalesOrg|undefined} value
2255
+ * @return {!proto.UpdateMaterialSalesOrgResponse} returns this
2256
+ */
2257
+ proto.UpdateMaterialSalesOrgResponse.prototype.setMaterialSalesOrg = function(value) {
2258
+ return jspb.Message.setWrapperField(this, 1, value);
2259
+ };
2260
+
2261
+
2262
+ /**
2263
+ * Clears the message field making it undefined.
2264
+ * @return {!proto.UpdateMaterialSalesOrgResponse} returns this
2265
+ */
2266
+ proto.UpdateMaterialSalesOrgResponse.prototype.clearMaterialSalesOrg = function() {
2267
+ return this.setMaterialSalesOrg(undefined);
2268
+ };
2269
+
2270
+
2271
+ /**
2272
+ * Returns whether this field is set.
2273
+ * @return {boolean}
2274
+ */
2275
+ proto.UpdateMaterialSalesOrgResponse.prototype.hasMaterialSalesOrg = function() {
2276
+ return jspb.Message.getField(this, 1) != null;
2277
+ };
2278
+
2279
+
2280
+ /**
2281
+ * optional prisca.v1.global.meta.Meta meta = 2;
2282
+ * @return {?proto.prisca.v1.global.meta.Meta}
2283
+ */
2284
+ proto.UpdateMaterialSalesOrgResponse.prototype.getMeta = function() {
2285
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2286
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2287
+ };
2288
+
2289
+
2290
+ /**
2291
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2292
+ * @return {!proto.UpdateMaterialSalesOrgResponse} returns this
2293
+ */
2294
+ proto.UpdateMaterialSalesOrgResponse.prototype.setMeta = function(value) {
2295
+ return jspb.Message.setWrapperField(this, 2, value);
2296
+ };
2297
+
2298
+
2299
+ /**
2300
+ * Clears the message field making it undefined.
2301
+ * @return {!proto.UpdateMaterialSalesOrgResponse} returns this
2302
+ */
2303
+ proto.UpdateMaterialSalesOrgResponse.prototype.clearMeta = function() {
2304
+ return this.setMeta(undefined);
2305
+ };
2306
+
2307
+
2308
+ /**
2309
+ * Returns whether this field is set.
2310
+ * @return {boolean}
2311
+ */
2312
+ proto.UpdateMaterialSalesOrgResponse.prototype.hasMeta = function() {
2313
+ return jspb.Message.getField(this, 2) != null;
2314
+ };
2315
+
2316
+
2317
+
2318
+
2319
+
2320
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2321
+ /**
2322
+ * Creates an object representation of this proto.
2323
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2324
+ * Optional fields that are not set will be set to undefined.
2325
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2326
+ * For the list of reserved names please see:
2327
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2328
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2329
+ * JSPB instance for transitional soy proto support:
2330
+ * http://goto/soy-param-migration
2331
+ * @return {!Object}
2332
+ */
2333
+ proto.GetMaterialSalesOrgByIdResponse.prototype.toObject = function(opt_includeInstance) {
2334
+ return proto.GetMaterialSalesOrgByIdResponse.toObject(opt_includeInstance, this);
2335
+ };
2336
+
2337
+
2338
+ /**
2339
+ * Static version of the {@see toObject} method.
2340
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2341
+ * the JSPB instance for transitional soy proto support:
2342
+ * http://goto/soy-param-migration
2343
+ * @param {!proto.GetMaterialSalesOrgByIdResponse} msg The msg instance to transform.
2344
+ * @return {!Object}
2345
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2346
+ */
2347
+ proto.GetMaterialSalesOrgByIdResponse.toObject = function(includeInstance, msg) {
2348
+ var f, obj = {
2349
+ materialSalesOrg: (f = msg.getMaterialSalesOrg()) && proto.MaterialSalesOrg.toObject(includeInstance, f),
2350
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2351
+ };
2352
+
2353
+ if (includeInstance) {
2354
+ obj.$jspbMessageInstance = msg;
2355
+ }
2356
+ return obj;
2357
+ };
2358
+ }
2359
+
2360
+
2361
+ /**
2362
+ * Deserializes binary data (in protobuf wire format).
2363
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2364
+ * @return {!proto.GetMaterialSalesOrgByIdResponse}
2365
+ */
2366
+ proto.GetMaterialSalesOrgByIdResponse.deserializeBinary = function(bytes) {
2367
+ var reader = new jspb.BinaryReader(bytes);
2368
+ var msg = new proto.GetMaterialSalesOrgByIdResponse;
2369
+ return proto.GetMaterialSalesOrgByIdResponse.deserializeBinaryFromReader(msg, reader);
2370
+ };
2371
+
2372
+
2373
+ /**
2374
+ * Deserializes binary data (in protobuf wire format) from the
2375
+ * given reader into the given message object.
2376
+ * @param {!proto.GetMaterialSalesOrgByIdResponse} msg The message object to deserialize into.
2377
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2378
+ * @return {!proto.GetMaterialSalesOrgByIdResponse}
2379
+ */
2380
+ proto.GetMaterialSalesOrgByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2381
+ while (reader.nextField()) {
2382
+ if (reader.isEndGroup()) {
2383
+ break;
2384
+ }
2385
+ var field = reader.getFieldNumber();
2386
+ switch (field) {
2387
+ case 1:
2388
+ var value = new proto.MaterialSalesOrg;
2389
+ reader.readMessage(value,proto.MaterialSalesOrg.deserializeBinaryFromReader);
2390
+ msg.setMaterialSalesOrg(value);
2391
+ break;
2392
+ case 2:
2393
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2394
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2395
+ msg.setMeta(value);
2396
+ break;
2397
+ default:
2398
+ reader.skipField();
2399
+ break;
2400
+ }
2401
+ }
2402
+ return msg;
2403
+ };
2404
+
2405
+
2406
+ /**
2407
+ * Serializes the message to binary data (in protobuf wire format).
2408
+ * @return {!Uint8Array}
2409
+ */
2410
+ proto.GetMaterialSalesOrgByIdResponse.prototype.serializeBinary = function() {
2411
+ var writer = new jspb.BinaryWriter();
2412
+ proto.GetMaterialSalesOrgByIdResponse.serializeBinaryToWriter(this, writer);
2413
+ return writer.getResultBuffer();
2414
+ };
2415
+
2416
+
2417
+ /**
2418
+ * Serializes the given message to binary data (in protobuf wire
2419
+ * format), writing to the given BinaryWriter.
2420
+ * @param {!proto.GetMaterialSalesOrgByIdResponse} message
2421
+ * @param {!jspb.BinaryWriter} writer
2422
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2423
+ */
2424
+ proto.GetMaterialSalesOrgByIdResponse.serializeBinaryToWriter = function(message, writer) {
2425
+ var f = undefined;
2426
+ f = message.getMaterialSalesOrg();
2427
+ if (f != null) {
2428
+ writer.writeMessage(
2429
+ 1,
2430
+ f,
2431
+ proto.MaterialSalesOrg.serializeBinaryToWriter
2432
+ );
2433
+ }
2434
+ f = message.getMeta();
2435
+ if (f != null) {
2436
+ writer.writeMessage(
2437
+ 2,
2438
+ f,
2439
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2440
+ );
2441
+ }
2442
+ };
2443
+
2444
+
2445
+ /**
2446
+ * optional MaterialSalesOrg material_sales_org = 1;
2447
+ * @return {?proto.MaterialSalesOrg}
2448
+ */
2449
+ proto.GetMaterialSalesOrgByIdResponse.prototype.getMaterialSalesOrg = function() {
2450
+ return /** @type{?proto.MaterialSalesOrg} */ (
2451
+ jspb.Message.getWrapperField(this, proto.MaterialSalesOrg, 1));
2452
+ };
2453
+
2454
+
2455
+ /**
2456
+ * @param {?proto.MaterialSalesOrg|undefined} value
2457
+ * @return {!proto.GetMaterialSalesOrgByIdResponse} returns this
2458
+ */
2459
+ proto.GetMaterialSalesOrgByIdResponse.prototype.setMaterialSalesOrg = function(value) {
2460
+ return jspb.Message.setWrapperField(this, 1, value);
2461
+ };
2462
+
2463
+
2464
+ /**
2465
+ * Clears the message field making it undefined.
2466
+ * @return {!proto.GetMaterialSalesOrgByIdResponse} returns this
2467
+ */
2468
+ proto.GetMaterialSalesOrgByIdResponse.prototype.clearMaterialSalesOrg = function() {
2469
+ return this.setMaterialSalesOrg(undefined);
2470
+ };
2471
+
2472
+
2473
+ /**
2474
+ * Returns whether this field is set.
2475
+ * @return {boolean}
2476
+ */
2477
+ proto.GetMaterialSalesOrgByIdResponse.prototype.hasMaterialSalesOrg = function() {
2478
+ return jspb.Message.getField(this, 1) != null;
2479
+ };
2480
+
2481
+
2482
+ /**
2483
+ * optional prisca.v1.global.meta.Meta meta = 2;
2484
+ * @return {?proto.prisca.v1.global.meta.Meta}
2485
+ */
2486
+ proto.GetMaterialSalesOrgByIdResponse.prototype.getMeta = function() {
2487
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2488
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2489
+ };
2490
+
2491
+
2492
+ /**
2493
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2494
+ * @return {!proto.GetMaterialSalesOrgByIdResponse} returns this
2495
+ */
2496
+ proto.GetMaterialSalesOrgByIdResponse.prototype.setMeta = function(value) {
2497
+ return jspb.Message.setWrapperField(this, 2, value);
2498
+ };
2499
+
2500
+
2501
+ /**
2502
+ * Clears the message field making it undefined.
2503
+ * @return {!proto.GetMaterialSalesOrgByIdResponse} returns this
2504
+ */
2505
+ proto.GetMaterialSalesOrgByIdResponse.prototype.clearMeta = function() {
2506
+ return this.setMeta(undefined);
2507
+ };
2508
+
2509
+
2510
+ /**
2511
+ * Returns whether this field is set.
2512
+ * @return {boolean}
2513
+ */
2514
+ proto.GetMaterialSalesOrgByIdResponse.prototype.hasMeta = function() {
2515
+ return jspb.Message.getField(this, 2) != null;
2516
+ };
2517
+
2518
+
2519
+
2520
+ /**
2521
+ * List of repeated fields within this message type.
2522
+ * @private {!Array<number>}
2523
+ * @const
2524
+ */
2525
+ proto.GetListMaterialSalesOrgResponse.repeatedFields_ = [1];
2526
+
2527
+
2528
+
2529
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2530
+ /**
2531
+ * Creates an object representation of this proto.
2532
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2533
+ * Optional fields that are not set will be set to undefined.
2534
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2535
+ * For the list of reserved names please see:
2536
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2537
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2538
+ * JSPB instance for transitional soy proto support:
2539
+ * http://goto/soy-param-migration
2540
+ * @return {!Object}
2541
+ */
2542
+ proto.GetListMaterialSalesOrgResponse.prototype.toObject = function(opt_includeInstance) {
2543
+ return proto.GetListMaterialSalesOrgResponse.toObject(opt_includeInstance, this);
2544
+ };
2545
+
2546
+
2547
+ /**
2548
+ * Static version of the {@see toObject} method.
2549
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2550
+ * the JSPB instance for transitional soy proto support:
2551
+ * http://goto/soy-param-migration
2552
+ * @param {!proto.GetListMaterialSalesOrgResponse} msg The msg instance to transform.
2553
+ * @return {!Object}
2554
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2555
+ */
2556
+ proto.GetListMaterialSalesOrgResponse.toObject = function(includeInstance, msg) {
2557
+ var f, obj = {
2558
+ materialSalesOrgsList: jspb.Message.toObjectList(msg.getMaterialSalesOrgsList(),
2559
+ proto.MaterialSalesOrg.toObject, includeInstance),
2560
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2561
+ };
2562
+
2563
+ if (includeInstance) {
2564
+ obj.$jspbMessageInstance = msg;
2565
+ }
2566
+ return obj;
2567
+ };
2568
+ }
2569
+
2570
+
2571
+ /**
2572
+ * Deserializes binary data (in protobuf wire format).
2573
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2574
+ * @return {!proto.GetListMaterialSalesOrgResponse}
2575
+ */
2576
+ proto.GetListMaterialSalesOrgResponse.deserializeBinary = function(bytes) {
2577
+ var reader = new jspb.BinaryReader(bytes);
2578
+ var msg = new proto.GetListMaterialSalesOrgResponse;
2579
+ return proto.GetListMaterialSalesOrgResponse.deserializeBinaryFromReader(msg, reader);
2580
+ };
2581
+
2582
+
2583
+ /**
2584
+ * Deserializes binary data (in protobuf wire format) from the
2585
+ * given reader into the given message object.
2586
+ * @param {!proto.GetListMaterialSalesOrgResponse} msg The message object to deserialize into.
2587
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2588
+ * @return {!proto.GetListMaterialSalesOrgResponse}
2589
+ */
2590
+ proto.GetListMaterialSalesOrgResponse.deserializeBinaryFromReader = function(msg, reader) {
2591
+ while (reader.nextField()) {
2592
+ if (reader.isEndGroup()) {
2593
+ break;
2594
+ }
2595
+ var field = reader.getFieldNumber();
2596
+ switch (field) {
2597
+ case 1:
2598
+ var value = new proto.MaterialSalesOrg;
2599
+ reader.readMessage(value,proto.MaterialSalesOrg.deserializeBinaryFromReader);
2600
+ msg.addMaterialSalesOrgs(value);
2601
+ break;
2602
+ case 2:
2603
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2604
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2605
+ msg.setMeta(value);
2606
+ break;
2607
+ default:
2608
+ reader.skipField();
2609
+ break;
2610
+ }
2611
+ }
2612
+ return msg;
2613
+ };
2614
+
2615
+
2616
+ /**
2617
+ * Serializes the message to binary data (in protobuf wire format).
2618
+ * @return {!Uint8Array}
2619
+ */
2620
+ proto.GetListMaterialSalesOrgResponse.prototype.serializeBinary = function() {
2621
+ var writer = new jspb.BinaryWriter();
2622
+ proto.GetListMaterialSalesOrgResponse.serializeBinaryToWriter(this, writer);
2623
+ return writer.getResultBuffer();
2624
+ };
2625
+
2626
+
2627
+ /**
2628
+ * Serializes the given message to binary data (in protobuf wire
2629
+ * format), writing to the given BinaryWriter.
2630
+ * @param {!proto.GetListMaterialSalesOrgResponse} message
2631
+ * @param {!jspb.BinaryWriter} writer
2632
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2633
+ */
2634
+ proto.GetListMaterialSalesOrgResponse.serializeBinaryToWriter = function(message, writer) {
2635
+ var f = undefined;
2636
+ f = message.getMaterialSalesOrgsList();
2637
+ if (f.length > 0) {
2638
+ writer.writeRepeatedMessage(
2639
+ 1,
2640
+ f,
2641
+ proto.MaterialSalesOrg.serializeBinaryToWriter
2642
+ );
2643
+ }
2644
+ f = message.getMeta();
2645
+ if (f != null) {
2646
+ writer.writeMessage(
2647
+ 2,
2648
+ f,
2649
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2650
+ );
2651
+ }
2652
+ };
2653
+
2654
+
2655
+ /**
2656
+ * repeated MaterialSalesOrg material_sales_orgs = 1;
2657
+ * @return {!Array<!proto.MaterialSalesOrg>}
2658
+ */
2659
+ proto.GetListMaterialSalesOrgResponse.prototype.getMaterialSalesOrgsList = function() {
2660
+ return /** @type{!Array<!proto.MaterialSalesOrg>} */ (
2661
+ jspb.Message.getRepeatedWrapperField(this, proto.MaterialSalesOrg, 1));
2662
+ };
2663
+
2664
+
2665
+ /**
2666
+ * @param {!Array<!proto.MaterialSalesOrg>} value
2667
+ * @return {!proto.GetListMaterialSalesOrgResponse} returns this
2668
+ */
2669
+ proto.GetListMaterialSalesOrgResponse.prototype.setMaterialSalesOrgsList = function(value) {
2670
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2671
+ };
2672
+
2673
+
2674
+ /**
2675
+ * @param {!proto.MaterialSalesOrg=} opt_value
2676
+ * @param {number=} opt_index
2677
+ * @return {!proto.MaterialSalesOrg}
2678
+ */
2679
+ proto.GetListMaterialSalesOrgResponse.prototype.addMaterialSalesOrgs = function(opt_value, opt_index) {
2680
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.MaterialSalesOrg, opt_index);
2681
+ };
2682
+
2683
+
2684
+ /**
2685
+ * Clears the list making it empty but non-null.
2686
+ * @return {!proto.GetListMaterialSalesOrgResponse} returns this
2687
+ */
2688
+ proto.GetListMaterialSalesOrgResponse.prototype.clearMaterialSalesOrgsList = function() {
2689
+ return this.setMaterialSalesOrgsList([]);
2690
+ };
2691
+
2692
+
2693
+ /**
2694
+ * optional prisca.v1.global.meta.Meta meta = 2;
2695
+ * @return {?proto.prisca.v1.global.meta.Meta}
2696
+ */
2697
+ proto.GetListMaterialSalesOrgResponse.prototype.getMeta = function() {
2698
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2699
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2700
+ };
2701
+
2702
+
2703
+ /**
2704
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2705
+ * @return {!proto.GetListMaterialSalesOrgResponse} returns this
2706
+ */
2707
+ proto.GetListMaterialSalesOrgResponse.prototype.setMeta = function(value) {
2708
+ return jspb.Message.setWrapperField(this, 2, value);
2709
+ };
2710
+
2711
+
2712
+ /**
2713
+ * Clears the message field making it undefined.
2714
+ * @return {!proto.GetListMaterialSalesOrgResponse} returns this
2715
+ */
2716
+ proto.GetListMaterialSalesOrgResponse.prototype.clearMeta = function() {
2717
+ return this.setMeta(undefined);
2718
+ };
2719
+
2720
+
2721
+ /**
2722
+ * Returns whether this field is set.
2723
+ * @return {boolean}
2724
+ */
2725
+ proto.GetListMaterialSalesOrgResponse.prototype.hasMeta = function() {
2726
+ return jspb.Message.getField(this, 2) != null;
2727
+ };
2728
+
2729
+
2730
+
2731
+ /**
2732
+ * List of repeated fields within this message type.
2733
+ * @private {!Array<number>}
2734
+ * @const
2735
+ */
2736
+ proto.DeleteMaterialSalesOrgResponse.repeatedFields_ = [1];
2737
+
2738
+
2739
+
2740
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2741
+ /**
2742
+ * Creates an object representation of this proto.
2743
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2744
+ * Optional fields that are not set will be set to undefined.
2745
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2746
+ * For the list of reserved names please see:
2747
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2748
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2749
+ * JSPB instance for transitional soy proto support:
2750
+ * http://goto/soy-param-migration
2751
+ * @return {!Object}
2752
+ */
2753
+ proto.DeleteMaterialSalesOrgResponse.prototype.toObject = function(opt_includeInstance) {
2754
+ return proto.DeleteMaterialSalesOrgResponse.toObject(opt_includeInstance, this);
2755
+ };
2756
+
2757
+
2758
+ /**
2759
+ * Static version of the {@see toObject} method.
2760
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2761
+ * the JSPB instance for transitional soy proto support:
2762
+ * http://goto/soy-param-migration
2763
+ * @param {!proto.DeleteMaterialSalesOrgResponse} msg The msg instance to transform.
2764
+ * @return {!Object}
2765
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2766
+ */
2767
+ proto.DeleteMaterialSalesOrgResponse.toObject = function(includeInstance, msg) {
2768
+ var f, obj = {
2769
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2770
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2771
+ };
2772
+
2773
+ if (includeInstance) {
2774
+ obj.$jspbMessageInstance = msg;
2775
+ }
2776
+ return obj;
2777
+ };
2778
+ }
2779
+
2780
+
2781
+ /**
2782
+ * Deserializes binary data (in protobuf wire format).
2783
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2784
+ * @return {!proto.DeleteMaterialSalesOrgResponse}
2785
+ */
2786
+ proto.DeleteMaterialSalesOrgResponse.deserializeBinary = function(bytes) {
2787
+ var reader = new jspb.BinaryReader(bytes);
2788
+ var msg = new proto.DeleteMaterialSalesOrgResponse;
2789
+ return proto.DeleteMaterialSalesOrgResponse.deserializeBinaryFromReader(msg, reader);
2790
+ };
2791
+
2792
+
2793
+ /**
2794
+ * Deserializes binary data (in protobuf wire format) from the
2795
+ * given reader into the given message object.
2796
+ * @param {!proto.DeleteMaterialSalesOrgResponse} msg The message object to deserialize into.
2797
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2798
+ * @return {!proto.DeleteMaterialSalesOrgResponse}
2799
+ */
2800
+ proto.DeleteMaterialSalesOrgResponse.deserializeBinaryFromReader = function(msg, reader) {
2801
+ while (reader.nextField()) {
2802
+ if (reader.isEndGroup()) {
2803
+ break;
2804
+ }
2805
+ var field = reader.getFieldNumber();
2806
+ switch (field) {
2807
+ case 1:
2808
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2809
+ msg.addReferenceIds(value);
2810
+ break;
2811
+ case 2:
2812
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2813
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2814
+ msg.setMeta(value);
2815
+ break;
2816
+ default:
2817
+ reader.skipField();
2818
+ break;
2819
+ }
2820
+ }
2821
+ return msg;
2822
+ };
2823
+
2824
+
2825
+ /**
2826
+ * Serializes the message to binary data (in protobuf wire format).
2827
+ * @return {!Uint8Array}
2828
+ */
2829
+ proto.DeleteMaterialSalesOrgResponse.prototype.serializeBinary = function() {
2830
+ var writer = new jspb.BinaryWriter();
2831
+ proto.DeleteMaterialSalesOrgResponse.serializeBinaryToWriter(this, writer);
2832
+ return writer.getResultBuffer();
2833
+ };
2834
+
2835
+
2836
+ /**
2837
+ * Serializes the given message to binary data (in protobuf wire
2838
+ * format), writing to the given BinaryWriter.
2839
+ * @param {!proto.DeleteMaterialSalesOrgResponse} message
2840
+ * @param {!jspb.BinaryWriter} writer
2841
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2842
+ */
2843
+ proto.DeleteMaterialSalesOrgResponse.serializeBinaryToWriter = function(message, writer) {
2844
+ var f = undefined;
2845
+ f = message.getReferenceIdsList();
2846
+ if (f.length > 0) {
2847
+ writer.writeRepeatedString(
2848
+ 1,
2849
+ f
2850
+ );
2851
+ }
2852
+ f = message.getMeta();
2853
+ if (f != null) {
2854
+ writer.writeMessage(
2855
+ 2,
2856
+ f,
2857
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2858
+ );
2859
+ }
2860
+ };
2861
+
2862
+
2863
+ /**
2864
+ * repeated string reference_ids = 1;
2865
+ * @return {!Array<string>}
2866
+ */
2867
+ proto.DeleteMaterialSalesOrgResponse.prototype.getReferenceIdsList = function() {
2868
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2869
+ };
2870
+
2871
+
2872
+ /**
2873
+ * @param {!Array<string>} value
2874
+ * @return {!proto.DeleteMaterialSalesOrgResponse} returns this
2875
+ */
2876
+ proto.DeleteMaterialSalesOrgResponse.prototype.setReferenceIdsList = function(value) {
2877
+ return jspb.Message.setField(this, 1, value || []);
2878
+ };
2879
+
2880
+
2881
+ /**
2882
+ * @param {string} value
2883
+ * @param {number=} opt_index
2884
+ * @return {!proto.DeleteMaterialSalesOrgResponse} returns this
2885
+ */
2886
+ proto.DeleteMaterialSalesOrgResponse.prototype.addReferenceIds = function(value, opt_index) {
2887
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2888
+ };
2889
+
2890
+
2891
+ /**
2892
+ * Clears the list making it empty but non-null.
2893
+ * @return {!proto.DeleteMaterialSalesOrgResponse} returns this
2894
+ */
2895
+ proto.DeleteMaterialSalesOrgResponse.prototype.clearReferenceIdsList = function() {
2896
+ return this.setReferenceIdsList([]);
2897
+ };
2898
+
2899
+
2900
+ /**
2901
+ * optional prisca.v1.global.meta.Meta meta = 2;
2902
+ * @return {?proto.prisca.v1.global.meta.Meta}
2903
+ */
2904
+ proto.DeleteMaterialSalesOrgResponse.prototype.getMeta = function() {
2905
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2906
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2907
+ };
2908
+
2909
+
2910
+ /**
2911
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2912
+ * @return {!proto.DeleteMaterialSalesOrgResponse} returns this
2913
+ */
2914
+ proto.DeleteMaterialSalesOrgResponse.prototype.setMeta = function(value) {
2915
+ return jspb.Message.setWrapperField(this, 2, value);
2916
+ };
2917
+
2918
+
2919
+ /**
2920
+ * Clears the message field making it undefined.
2921
+ * @return {!proto.DeleteMaterialSalesOrgResponse} returns this
2922
+ */
2923
+ proto.DeleteMaterialSalesOrgResponse.prototype.clearMeta = function() {
2924
+ return this.setMeta(undefined);
2925
+ };
2926
+
2927
+
2928
+ /**
2929
+ * Returns whether this field is set.
2930
+ * @return {boolean}
2931
+ */
2932
+ proto.DeleteMaterialSalesOrgResponse.prototype.hasMeta = function() {
2933
+ return jspb.Message.getField(this, 2) != null;
2934
+ };
2935
+
2936
+
2937
+ goog.object.extend(exports, proto);