@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,2291 @@
1
+ // source: prisca/v1/core/sales_org/sales_org_plant.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.BaseSalesOrgPlantRequest', null, global);
21
+ goog.exportSymbol('proto.CreateSalesOrgPlantRequest', null, global);
22
+ goog.exportSymbol('proto.CreateSalesOrgPlantResponse', null, global);
23
+ goog.exportSymbol('proto.DeleteSalesOrgPlantRequest', null, global);
24
+ goog.exportSymbol('proto.DeleteSalesOrgPlantResponse', null, global);
25
+ goog.exportSymbol('proto.GetListSalesOrgPlantRequest', null, global);
26
+ goog.exportSymbol('proto.GetListSalesOrgPlantResponse', null, global);
27
+ goog.exportSymbol('proto.GetSalesOrgPlantByIdRequest', null, global);
28
+ goog.exportSymbol('proto.GetSalesOrgPlantByIdResponse', null, global);
29
+ goog.exportSymbol('proto.SalesOrgPlant', null, global);
30
+ /**
31
+ * Generated by JsPbCodeGenerator.
32
+ * @param {Array=} opt_data Optional initial data array, typically from a
33
+ * server response, or constructed directly in Javascript. The array is used
34
+ * in place and becomes part of the constructed object. It is not cloned.
35
+ * If no data is provided, the constructed object will be empty, but still
36
+ * valid.
37
+ * @extends {jspb.Message}
38
+ * @constructor
39
+ */
40
+ proto.SalesOrgPlant = function(opt_data) {
41
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
42
+ };
43
+ goog.inherits(proto.SalesOrgPlant, jspb.Message);
44
+ if (goog.DEBUG && !COMPILED) {
45
+ /**
46
+ * @public
47
+ * @override
48
+ */
49
+ proto.SalesOrgPlant.displayName = 'proto.SalesOrgPlant';
50
+ }
51
+ /**
52
+ * Generated by JsPbCodeGenerator.
53
+ * @param {Array=} opt_data Optional initial data array, typically from a
54
+ * server response, or constructed directly in Javascript. The array is used
55
+ * in place and becomes part of the constructed object. It is not cloned.
56
+ * If no data is provided, the constructed object will be empty, but still
57
+ * valid.
58
+ * @extends {jspb.Message}
59
+ * @constructor
60
+ */
61
+ proto.BaseSalesOrgPlantRequest = function(opt_data) {
62
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
+ };
64
+ goog.inherits(proto.BaseSalesOrgPlantRequest, jspb.Message);
65
+ if (goog.DEBUG && !COMPILED) {
66
+ /**
67
+ * @public
68
+ * @override
69
+ */
70
+ proto.BaseSalesOrgPlantRequest.displayName = 'proto.BaseSalesOrgPlantRequest';
71
+ }
72
+ /**
73
+ * Generated by JsPbCodeGenerator.
74
+ * @param {Array=} opt_data Optional initial data array, typically from a
75
+ * server response, or constructed directly in Javascript. The array is used
76
+ * in place and becomes part of the constructed object. It is not cloned.
77
+ * If no data is provided, the constructed object will be empty, but still
78
+ * valid.
79
+ * @extends {jspb.Message}
80
+ * @constructor
81
+ */
82
+ proto.GetSalesOrgPlantByIdRequest = function(opt_data) {
83
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
84
+ };
85
+ goog.inherits(proto.GetSalesOrgPlantByIdRequest, jspb.Message);
86
+ if (goog.DEBUG && !COMPILED) {
87
+ /**
88
+ * @public
89
+ * @override
90
+ */
91
+ proto.GetSalesOrgPlantByIdRequest.displayName = 'proto.GetSalesOrgPlantByIdRequest';
92
+ }
93
+ /**
94
+ * Generated by JsPbCodeGenerator.
95
+ * @param {Array=} opt_data Optional initial data array, typically from a
96
+ * server response, or constructed directly in Javascript. The array is used
97
+ * in place and becomes part of the constructed object. It is not cloned.
98
+ * If no data is provided, the constructed object will be empty, but still
99
+ * valid.
100
+ * @extends {jspb.Message}
101
+ * @constructor
102
+ */
103
+ proto.GetListSalesOrgPlantRequest = function(opt_data) {
104
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
105
+ };
106
+ goog.inherits(proto.GetListSalesOrgPlantRequest, jspb.Message);
107
+ if (goog.DEBUG && !COMPILED) {
108
+ /**
109
+ * @public
110
+ * @override
111
+ */
112
+ proto.GetListSalesOrgPlantRequest.displayName = 'proto.GetListSalesOrgPlantRequest';
113
+ }
114
+ /**
115
+ * Generated by JsPbCodeGenerator.
116
+ * @param {Array=} opt_data Optional initial data array, typically from a
117
+ * server response, or constructed directly in Javascript. The array is used
118
+ * in place and becomes part of the constructed object. It is not cloned.
119
+ * If no data is provided, the constructed object will be empty, but still
120
+ * valid.
121
+ * @extends {jspb.Message}
122
+ * @constructor
123
+ */
124
+ proto.CreateSalesOrgPlantRequest = function(opt_data) {
125
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
126
+ };
127
+ goog.inherits(proto.CreateSalesOrgPlantRequest, jspb.Message);
128
+ if (goog.DEBUG && !COMPILED) {
129
+ /**
130
+ * @public
131
+ * @override
132
+ */
133
+ proto.CreateSalesOrgPlantRequest.displayName = 'proto.CreateSalesOrgPlantRequest';
134
+ }
135
+ /**
136
+ * Generated by JsPbCodeGenerator.
137
+ * @param {Array=} opt_data Optional initial data array, typically from a
138
+ * server response, or constructed directly in Javascript. The array is used
139
+ * in place and becomes part of the constructed object. It is not cloned.
140
+ * If no data is provided, the constructed object will be empty, but still
141
+ * valid.
142
+ * @extends {jspb.Message}
143
+ * @constructor
144
+ */
145
+ proto.DeleteSalesOrgPlantRequest = function(opt_data) {
146
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteSalesOrgPlantRequest.repeatedFields_, null);
147
+ };
148
+ goog.inherits(proto.DeleteSalesOrgPlantRequest, jspb.Message);
149
+ if (goog.DEBUG && !COMPILED) {
150
+ /**
151
+ * @public
152
+ * @override
153
+ */
154
+ proto.DeleteSalesOrgPlantRequest.displayName = 'proto.DeleteSalesOrgPlantRequest';
155
+ }
156
+ /**
157
+ * Generated by JsPbCodeGenerator.
158
+ * @param {Array=} opt_data Optional initial data array, typically from a
159
+ * server response, or constructed directly in Javascript. The array is used
160
+ * in place and becomes part of the constructed object. It is not cloned.
161
+ * If no data is provided, the constructed object will be empty, but still
162
+ * valid.
163
+ * @extends {jspb.Message}
164
+ * @constructor
165
+ */
166
+ proto.CreateSalesOrgPlantResponse = function(opt_data) {
167
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
168
+ };
169
+ goog.inherits(proto.CreateSalesOrgPlantResponse, jspb.Message);
170
+ if (goog.DEBUG && !COMPILED) {
171
+ /**
172
+ * @public
173
+ * @override
174
+ */
175
+ proto.CreateSalesOrgPlantResponse.displayName = 'proto.CreateSalesOrgPlantResponse';
176
+ }
177
+ /**
178
+ * Generated by JsPbCodeGenerator.
179
+ * @param {Array=} opt_data Optional initial data array, typically from a
180
+ * server response, or constructed directly in Javascript. The array is used
181
+ * in place and becomes part of the constructed object. It is not cloned.
182
+ * If no data is provided, the constructed object will be empty, but still
183
+ * valid.
184
+ * @extends {jspb.Message}
185
+ * @constructor
186
+ */
187
+ proto.GetSalesOrgPlantByIdResponse = function(opt_data) {
188
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
189
+ };
190
+ goog.inherits(proto.GetSalesOrgPlantByIdResponse, jspb.Message);
191
+ if (goog.DEBUG && !COMPILED) {
192
+ /**
193
+ * @public
194
+ * @override
195
+ */
196
+ proto.GetSalesOrgPlantByIdResponse.displayName = 'proto.GetSalesOrgPlantByIdResponse';
197
+ }
198
+ /**
199
+ * Generated by JsPbCodeGenerator.
200
+ * @param {Array=} opt_data Optional initial data array, typically from a
201
+ * server response, or constructed directly in Javascript. The array is used
202
+ * in place and becomes part of the constructed object. It is not cloned.
203
+ * If no data is provided, the constructed object will be empty, but still
204
+ * valid.
205
+ * @extends {jspb.Message}
206
+ * @constructor
207
+ */
208
+ proto.GetListSalesOrgPlantResponse = function(opt_data) {
209
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListSalesOrgPlantResponse.repeatedFields_, null);
210
+ };
211
+ goog.inherits(proto.GetListSalesOrgPlantResponse, jspb.Message);
212
+ if (goog.DEBUG && !COMPILED) {
213
+ /**
214
+ * @public
215
+ * @override
216
+ */
217
+ proto.GetListSalesOrgPlantResponse.displayName = 'proto.GetListSalesOrgPlantResponse';
218
+ }
219
+ /**
220
+ * Generated by JsPbCodeGenerator.
221
+ * @param {Array=} opt_data Optional initial data array, typically from a
222
+ * server response, or constructed directly in Javascript. The array is used
223
+ * in place and becomes part of the constructed object. It is not cloned.
224
+ * If no data is provided, the constructed object will be empty, but still
225
+ * valid.
226
+ * @extends {jspb.Message}
227
+ * @constructor
228
+ */
229
+ proto.DeleteSalesOrgPlantResponse = function(opt_data) {
230
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteSalesOrgPlantResponse.repeatedFields_, null);
231
+ };
232
+ goog.inherits(proto.DeleteSalesOrgPlantResponse, jspb.Message);
233
+ if (goog.DEBUG && !COMPILED) {
234
+ /**
235
+ * @public
236
+ * @override
237
+ */
238
+ proto.DeleteSalesOrgPlantResponse.displayName = 'proto.DeleteSalesOrgPlantResponse';
239
+ }
240
+
241
+
242
+
243
+ if (jspb.Message.GENERATE_TO_OBJECT) {
244
+ /**
245
+ * Creates an object representation of this proto.
246
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
247
+ * Optional fields that are not set will be set to undefined.
248
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
249
+ * For the list of reserved names please see:
250
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
251
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
252
+ * JSPB instance for transitional soy proto support:
253
+ * http://goto/soy-param-migration
254
+ * @return {!Object}
255
+ */
256
+ proto.SalesOrgPlant.prototype.toObject = function(opt_includeInstance) {
257
+ return proto.SalesOrgPlant.toObject(opt_includeInstance, this);
258
+ };
259
+
260
+
261
+ /**
262
+ * Static version of the {@see toObject} method.
263
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
264
+ * the JSPB instance for transitional soy proto support:
265
+ * http://goto/soy-param-migration
266
+ * @param {!proto.SalesOrgPlant} msg The msg instance to transform.
267
+ * @return {!Object}
268
+ * @suppress {unusedLocalVariables} f is only used for nested messages
269
+ */
270
+ proto.SalesOrgPlant.toObject = function(includeInstance, msg) {
271
+ var f, obj = {
272
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
273
+ referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
274
+ salesOrganizationReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
275
+ distributionChannelReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
276
+ plantReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
277
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 6, ""),
278
+ createdAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
279
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
280
+ createdBy: jspb.Message.getFieldWithDefault(msg, 9, ""),
281
+ updatedBy: jspb.Message.getFieldWithDefault(msg, 10, "")
282
+ };
283
+
284
+ if (includeInstance) {
285
+ obj.$jspbMessageInstance = msg;
286
+ }
287
+ return obj;
288
+ };
289
+ }
290
+
291
+
292
+ /**
293
+ * Deserializes binary data (in protobuf wire format).
294
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
295
+ * @return {!proto.SalesOrgPlant}
296
+ */
297
+ proto.SalesOrgPlant.deserializeBinary = function(bytes) {
298
+ var reader = new jspb.BinaryReader(bytes);
299
+ var msg = new proto.SalesOrgPlant;
300
+ return proto.SalesOrgPlant.deserializeBinaryFromReader(msg, reader);
301
+ };
302
+
303
+
304
+ /**
305
+ * Deserializes binary data (in protobuf wire format) from the
306
+ * given reader into the given message object.
307
+ * @param {!proto.SalesOrgPlant} msg The message object to deserialize into.
308
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
309
+ * @return {!proto.SalesOrgPlant}
310
+ */
311
+ proto.SalesOrgPlant.deserializeBinaryFromReader = function(msg, reader) {
312
+ while (reader.nextField()) {
313
+ if (reader.isEndGroup()) {
314
+ break;
315
+ }
316
+ var field = reader.getFieldNumber();
317
+ switch (field) {
318
+ case 1:
319
+ var value = /** @type {number} */ (reader.readInt64());
320
+ msg.setId(value);
321
+ break;
322
+ case 2:
323
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
324
+ msg.setReferencesId(value);
325
+ break;
326
+ case 3:
327
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
328
+ msg.setSalesOrganizationReferencesId(value);
329
+ break;
330
+ case 4:
331
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
332
+ msg.setDistributionChannelReferencesId(value);
333
+ break;
334
+ case 5:
335
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
336
+ msg.setPlantReferencesId(value);
337
+ break;
338
+ case 6:
339
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
340
+ msg.setCompaniesReferencesId(value);
341
+ break;
342
+ case 7:
343
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
344
+ msg.setCreatedAt(value);
345
+ break;
346
+ case 8:
347
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
348
+ msg.setUpdatedAt(value);
349
+ break;
350
+ case 9:
351
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
352
+ msg.setCreatedBy(value);
353
+ break;
354
+ case 10:
355
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
356
+ msg.setUpdatedBy(value);
357
+ break;
358
+ default:
359
+ reader.skipField();
360
+ break;
361
+ }
362
+ }
363
+ return msg;
364
+ };
365
+
366
+
367
+ /**
368
+ * Serializes the message to binary data (in protobuf wire format).
369
+ * @return {!Uint8Array}
370
+ */
371
+ proto.SalesOrgPlant.prototype.serializeBinary = function() {
372
+ var writer = new jspb.BinaryWriter();
373
+ proto.SalesOrgPlant.serializeBinaryToWriter(this, writer);
374
+ return writer.getResultBuffer();
375
+ };
376
+
377
+
378
+ /**
379
+ * Serializes the given message to binary data (in protobuf wire
380
+ * format), writing to the given BinaryWriter.
381
+ * @param {!proto.SalesOrgPlant} message
382
+ * @param {!jspb.BinaryWriter} writer
383
+ * @suppress {unusedLocalVariables} f is only used for nested messages
384
+ */
385
+ proto.SalesOrgPlant.serializeBinaryToWriter = function(message, writer) {
386
+ var f = undefined;
387
+ f = message.getId();
388
+ if (f !== 0) {
389
+ writer.writeInt64(
390
+ 1,
391
+ f
392
+ );
393
+ }
394
+ f = message.getReferencesId();
395
+ if (f.length > 0) {
396
+ writer.writeString(
397
+ 2,
398
+ f
399
+ );
400
+ }
401
+ f = message.getSalesOrganizationReferencesId();
402
+ if (f.length > 0) {
403
+ writer.writeString(
404
+ 3,
405
+ f
406
+ );
407
+ }
408
+ f = message.getDistributionChannelReferencesId();
409
+ if (f.length > 0) {
410
+ writer.writeString(
411
+ 4,
412
+ f
413
+ );
414
+ }
415
+ f = message.getPlantReferencesId();
416
+ if (f.length > 0) {
417
+ writer.writeString(
418
+ 5,
419
+ f
420
+ );
421
+ }
422
+ f = message.getCompaniesReferencesId();
423
+ if (f.length > 0) {
424
+ writer.writeString(
425
+ 6,
426
+ f
427
+ );
428
+ }
429
+ f = message.getCreatedAt();
430
+ if (f.length > 0) {
431
+ writer.writeString(
432
+ 7,
433
+ f
434
+ );
435
+ }
436
+ f = message.getUpdatedAt();
437
+ if (f.length > 0) {
438
+ writer.writeString(
439
+ 8,
440
+ f
441
+ );
442
+ }
443
+ f = message.getCreatedBy();
444
+ if (f.length > 0) {
445
+ writer.writeString(
446
+ 9,
447
+ f
448
+ );
449
+ }
450
+ f = message.getUpdatedBy();
451
+ if (f.length > 0) {
452
+ writer.writeString(
453
+ 10,
454
+ f
455
+ );
456
+ }
457
+ };
458
+
459
+
460
+ /**
461
+ * optional int64 id = 1;
462
+ * @return {number}
463
+ */
464
+ proto.SalesOrgPlant.prototype.getId = function() {
465
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
466
+ };
467
+
468
+
469
+ /**
470
+ * @param {number} value
471
+ * @return {!proto.SalesOrgPlant} returns this
472
+ */
473
+ proto.SalesOrgPlant.prototype.setId = function(value) {
474
+ return jspb.Message.setProto3IntField(this, 1, value);
475
+ };
476
+
477
+
478
+ /**
479
+ * optional string references_id = 2;
480
+ * @return {string}
481
+ */
482
+ proto.SalesOrgPlant.prototype.getReferencesId = function() {
483
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
484
+ };
485
+
486
+
487
+ /**
488
+ * @param {string} value
489
+ * @return {!proto.SalesOrgPlant} returns this
490
+ */
491
+ proto.SalesOrgPlant.prototype.setReferencesId = function(value) {
492
+ return jspb.Message.setProto3StringField(this, 2, value);
493
+ };
494
+
495
+
496
+ /**
497
+ * optional string sales_organization_references_id = 3;
498
+ * @return {string}
499
+ */
500
+ proto.SalesOrgPlant.prototype.getSalesOrganizationReferencesId = function() {
501
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
502
+ };
503
+
504
+
505
+ /**
506
+ * @param {string} value
507
+ * @return {!proto.SalesOrgPlant} returns this
508
+ */
509
+ proto.SalesOrgPlant.prototype.setSalesOrganizationReferencesId = function(value) {
510
+ return jspb.Message.setProto3StringField(this, 3, value);
511
+ };
512
+
513
+
514
+ /**
515
+ * optional string distribution_channel_references_id = 4;
516
+ * @return {string}
517
+ */
518
+ proto.SalesOrgPlant.prototype.getDistributionChannelReferencesId = function() {
519
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
520
+ };
521
+
522
+
523
+ /**
524
+ * @param {string} value
525
+ * @return {!proto.SalesOrgPlant} returns this
526
+ */
527
+ proto.SalesOrgPlant.prototype.setDistributionChannelReferencesId = function(value) {
528
+ return jspb.Message.setProto3StringField(this, 4, value);
529
+ };
530
+
531
+
532
+ /**
533
+ * optional string plant_references_id = 5;
534
+ * @return {string}
535
+ */
536
+ proto.SalesOrgPlant.prototype.getPlantReferencesId = function() {
537
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
538
+ };
539
+
540
+
541
+ /**
542
+ * @param {string} value
543
+ * @return {!proto.SalesOrgPlant} returns this
544
+ */
545
+ proto.SalesOrgPlant.prototype.setPlantReferencesId = function(value) {
546
+ return jspb.Message.setProto3StringField(this, 5, value);
547
+ };
548
+
549
+
550
+ /**
551
+ * optional string companies_references_id = 6;
552
+ * @return {string}
553
+ */
554
+ proto.SalesOrgPlant.prototype.getCompaniesReferencesId = function() {
555
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
556
+ };
557
+
558
+
559
+ /**
560
+ * @param {string} value
561
+ * @return {!proto.SalesOrgPlant} returns this
562
+ */
563
+ proto.SalesOrgPlant.prototype.setCompaniesReferencesId = function(value) {
564
+ return jspb.Message.setProto3StringField(this, 6, value);
565
+ };
566
+
567
+
568
+ /**
569
+ * optional string created_at = 7;
570
+ * @return {string}
571
+ */
572
+ proto.SalesOrgPlant.prototype.getCreatedAt = function() {
573
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
574
+ };
575
+
576
+
577
+ /**
578
+ * @param {string} value
579
+ * @return {!proto.SalesOrgPlant} returns this
580
+ */
581
+ proto.SalesOrgPlant.prototype.setCreatedAt = function(value) {
582
+ return jspb.Message.setProto3StringField(this, 7, value);
583
+ };
584
+
585
+
586
+ /**
587
+ * optional string updated_at = 8;
588
+ * @return {string}
589
+ */
590
+ proto.SalesOrgPlant.prototype.getUpdatedAt = function() {
591
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
592
+ };
593
+
594
+
595
+ /**
596
+ * @param {string} value
597
+ * @return {!proto.SalesOrgPlant} returns this
598
+ */
599
+ proto.SalesOrgPlant.prototype.setUpdatedAt = function(value) {
600
+ return jspb.Message.setProto3StringField(this, 8, value);
601
+ };
602
+
603
+
604
+ /**
605
+ * optional string created_by = 9;
606
+ * @return {string}
607
+ */
608
+ proto.SalesOrgPlant.prototype.getCreatedBy = function() {
609
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
610
+ };
611
+
612
+
613
+ /**
614
+ * @param {string} value
615
+ * @return {!proto.SalesOrgPlant} returns this
616
+ */
617
+ proto.SalesOrgPlant.prototype.setCreatedBy = function(value) {
618
+ return jspb.Message.setProto3StringField(this, 9, value);
619
+ };
620
+
621
+
622
+ /**
623
+ * optional string updated_by = 10;
624
+ * @return {string}
625
+ */
626
+ proto.SalesOrgPlant.prototype.getUpdatedBy = function() {
627
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
628
+ };
629
+
630
+
631
+ /**
632
+ * @param {string} value
633
+ * @return {!proto.SalesOrgPlant} returns this
634
+ */
635
+ proto.SalesOrgPlant.prototype.setUpdatedBy = function(value) {
636
+ return jspb.Message.setProto3StringField(this, 10, value);
637
+ };
638
+
639
+
640
+
641
+
642
+
643
+ if (jspb.Message.GENERATE_TO_OBJECT) {
644
+ /**
645
+ * Creates an object representation of this proto.
646
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
647
+ * Optional fields that are not set will be set to undefined.
648
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
649
+ * For the list of reserved names please see:
650
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
651
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
652
+ * JSPB instance for transitional soy proto support:
653
+ * http://goto/soy-param-migration
654
+ * @return {!Object}
655
+ */
656
+ proto.BaseSalesOrgPlantRequest.prototype.toObject = function(opt_includeInstance) {
657
+ return proto.BaseSalesOrgPlantRequest.toObject(opt_includeInstance, this);
658
+ };
659
+
660
+
661
+ /**
662
+ * Static version of the {@see toObject} method.
663
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
664
+ * the JSPB instance for transitional soy proto support:
665
+ * http://goto/soy-param-migration
666
+ * @param {!proto.BaseSalesOrgPlantRequest} msg The msg instance to transform.
667
+ * @return {!Object}
668
+ * @suppress {unusedLocalVariables} f is only used for nested messages
669
+ */
670
+ proto.BaseSalesOrgPlantRequest.toObject = function(includeInstance, msg) {
671
+ var f, obj = {
672
+ salesOrganizationReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
673
+ distributionChannelReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
674
+ plantReferencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
675
+ };
676
+
677
+ if (includeInstance) {
678
+ obj.$jspbMessageInstance = msg;
679
+ }
680
+ return obj;
681
+ };
682
+ }
683
+
684
+
685
+ /**
686
+ * Deserializes binary data (in protobuf wire format).
687
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
688
+ * @return {!proto.BaseSalesOrgPlantRequest}
689
+ */
690
+ proto.BaseSalesOrgPlantRequest.deserializeBinary = function(bytes) {
691
+ var reader = new jspb.BinaryReader(bytes);
692
+ var msg = new proto.BaseSalesOrgPlantRequest;
693
+ return proto.BaseSalesOrgPlantRequest.deserializeBinaryFromReader(msg, reader);
694
+ };
695
+
696
+
697
+ /**
698
+ * Deserializes binary data (in protobuf wire format) from the
699
+ * given reader into the given message object.
700
+ * @param {!proto.BaseSalesOrgPlantRequest} msg The message object to deserialize into.
701
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
702
+ * @return {!proto.BaseSalesOrgPlantRequest}
703
+ */
704
+ proto.BaseSalesOrgPlantRequest.deserializeBinaryFromReader = function(msg, reader) {
705
+ while (reader.nextField()) {
706
+ if (reader.isEndGroup()) {
707
+ break;
708
+ }
709
+ var field = reader.getFieldNumber();
710
+ switch (field) {
711
+ case 1:
712
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
713
+ msg.setSalesOrganizationReferencesId(value);
714
+ break;
715
+ case 2:
716
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
717
+ msg.setDistributionChannelReferencesId(value);
718
+ break;
719
+ case 3:
720
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
721
+ msg.setPlantReferencesId(value);
722
+ break;
723
+ default:
724
+ reader.skipField();
725
+ break;
726
+ }
727
+ }
728
+ return msg;
729
+ };
730
+
731
+
732
+ /**
733
+ * Serializes the message to binary data (in protobuf wire format).
734
+ * @return {!Uint8Array}
735
+ */
736
+ proto.BaseSalesOrgPlantRequest.prototype.serializeBinary = function() {
737
+ var writer = new jspb.BinaryWriter();
738
+ proto.BaseSalesOrgPlantRequest.serializeBinaryToWriter(this, writer);
739
+ return writer.getResultBuffer();
740
+ };
741
+
742
+
743
+ /**
744
+ * Serializes the given message to binary data (in protobuf wire
745
+ * format), writing to the given BinaryWriter.
746
+ * @param {!proto.BaseSalesOrgPlantRequest} message
747
+ * @param {!jspb.BinaryWriter} writer
748
+ * @suppress {unusedLocalVariables} f is only used for nested messages
749
+ */
750
+ proto.BaseSalesOrgPlantRequest.serializeBinaryToWriter = function(message, writer) {
751
+ var f = undefined;
752
+ f = message.getSalesOrganizationReferencesId();
753
+ if (f.length > 0) {
754
+ writer.writeString(
755
+ 1,
756
+ f
757
+ );
758
+ }
759
+ f = message.getDistributionChannelReferencesId();
760
+ if (f.length > 0) {
761
+ writer.writeString(
762
+ 2,
763
+ f
764
+ );
765
+ }
766
+ f = message.getPlantReferencesId();
767
+ if (f.length > 0) {
768
+ writer.writeString(
769
+ 3,
770
+ f
771
+ );
772
+ }
773
+ };
774
+
775
+
776
+ /**
777
+ * optional string sales_organization_references_id = 1;
778
+ * @return {string}
779
+ */
780
+ proto.BaseSalesOrgPlantRequest.prototype.getSalesOrganizationReferencesId = function() {
781
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
782
+ };
783
+
784
+
785
+ /**
786
+ * @param {string} value
787
+ * @return {!proto.BaseSalesOrgPlantRequest} returns this
788
+ */
789
+ proto.BaseSalesOrgPlantRequest.prototype.setSalesOrganizationReferencesId = function(value) {
790
+ return jspb.Message.setProto3StringField(this, 1, value);
791
+ };
792
+
793
+
794
+ /**
795
+ * optional string distribution_channel_references_id = 2;
796
+ * @return {string}
797
+ */
798
+ proto.BaseSalesOrgPlantRequest.prototype.getDistributionChannelReferencesId = function() {
799
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
800
+ };
801
+
802
+
803
+ /**
804
+ * @param {string} value
805
+ * @return {!proto.BaseSalesOrgPlantRequest} returns this
806
+ */
807
+ proto.BaseSalesOrgPlantRequest.prototype.setDistributionChannelReferencesId = function(value) {
808
+ return jspb.Message.setProto3StringField(this, 2, value);
809
+ };
810
+
811
+
812
+ /**
813
+ * optional string plant_references_id = 3;
814
+ * @return {string}
815
+ */
816
+ proto.BaseSalesOrgPlantRequest.prototype.getPlantReferencesId = function() {
817
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
818
+ };
819
+
820
+
821
+ /**
822
+ * @param {string} value
823
+ * @return {!proto.BaseSalesOrgPlantRequest} returns this
824
+ */
825
+ proto.BaseSalesOrgPlantRequest.prototype.setPlantReferencesId = function(value) {
826
+ return jspb.Message.setProto3StringField(this, 3, value);
827
+ };
828
+
829
+
830
+
831
+
832
+
833
+ if (jspb.Message.GENERATE_TO_OBJECT) {
834
+ /**
835
+ * Creates an object representation of this proto.
836
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
837
+ * Optional fields that are not set will be set to undefined.
838
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
839
+ * For the list of reserved names please see:
840
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
841
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
842
+ * JSPB instance for transitional soy proto support:
843
+ * http://goto/soy-param-migration
844
+ * @return {!Object}
845
+ */
846
+ proto.GetSalesOrgPlantByIdRequest.prototype.toObject = function(opt_includeInstance) {
847
+ return proto.GetSalesOrgPlantByIdRequest.toObject(opt_includeInstance, this);
848
+ };
849
+
850
+
851
+ /**
852
+ * Static version of the {@see toObject} method.
853
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
854
+ * the JSPB instance for transitional soy proto support:
855
+ * http://goto/soy-param-migration
856
+ * @param {!proto.GetSalesOrgPlantByIdRequest} msg The msg instance to transform.
857
+ * @return {!Object}
858
+ * @suppress {unusedLocalVariables} f is only used for nested messages
859
+ */
860
+ proto.GetSalesOrgPlantByIdRequest.toObject = function(includeInstance, msg) {
861
+ var f, obj = {
862
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
863
+ };
864
+
865
+ if (includeInstance) {
866
+ obj.$jspbMessageInstance = msg;
867
+ }
868
+ return obj;
869
+ };
870
+ }
871
+
872
+
873
+ /**
874
+ * Deserializes binary data (in protobuf wire format).
875
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
876
+ * @return {!proto.GetSalesOrgPlantByIdRequest}
877
+ */
878
+ proto.GetSalesOrgPlantByIdRequest.deserializeBinary = function(bytes) {
879
+ var reader = new jspb.BinaryReader(bytes);
880
+ var msg = new proto.GetSalesOrgPlantByIdRequest;
881
+ return proto.GetSalesOrgPlantByIdRequest.deserializeBinaryFromReader(msg, reader);
882
+ };
883
+
884
+
885
+ /**
886
+ * Deserializes binary data (in protobuf wire format) from the
887
+ * given reader into the given message object.
888
+ * @param {!proto.GetSalesOrgPlantByIdRequest} msg The message object to deserialize into.
889
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
890
+ * @return {!proto.GetSalesOrgPlantByIdRequest}
891
+ */
892
+ proto.GetSalesOrgPlantByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
893
+ while (reader.nextField()) {
894
+ if (reader.isEndGroup()) {
895
+ break;
896
+ }
897
+ var field = reader.getFieldNumber();
898
+ switch (field) {
899
+ case 1:
900
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
901
+ msg.setReferencesId(value);
902
+ break;
903
+ default:
904
+ reader.skipField();
905
+ break;
906
+ }
907
+ }
908
+ return msg;
909
+ };
910
+
911
+
912
+ /**
913
+ * Serializes the message to binary data (in protobuf wire format).
914
+ * @return {!Uint8Array}
915
+ */
916
+ proto.GetSalesOrgPlantByIdRequest.prototype.serializeBinary = function() {
917
+ var writer = new jspb.BinaryWriter();
918
+ proto.GetSalesOrgPlantByIdRequest.serializeBinaryToWriter(this, writer);
919
+ return writer.getResultBuffer();
920
+ };
921
+
922
+
923
+ /**
924
+ * Serializes the given message to binary data (in protobuf wire
925
+ * format), writing to the given BinaryWriter.
926
+ * @param {!proto.GetSalesOrgPlantByIdRequest} message
927
+ * @param {!jspb.BinaryWriter} writer
928
+ * @suppress {unusedLocalVariables} f is only used for nested messages
929
+ */
930
+ proto.GetSalesOrgPlantByIdRequest.serializeBinaryToWriter = function(message, writer) {
931
+ var f = undefined;
932
+ f = message.getReferencesId();
933
+ if (f.length > 0) {
934
+ writer.writeString(
935
+ 1,
936
+ f
937
+ );
938
+ }
939
+ };
940
+
941
+
942
+ /**
943
+ * optional string references_id = 1;
944
+ * @return {string}
945
+ */
946
+ proto.GetSalesOrgPlantByIdRequest.prototype.getReferencesId = function() {
947
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
948
+ };
949
+
950
+
951
+ /**
952
+ * @param {string} value
953
+ * @return {!proto.GetSalesOrgPlantByIdRequest} returns this
954
+ */
955
+ proto.GetSalesOrgPlantByIdRequest.prototype.setReferencesId = function(value) {
956
+ return jspb.Message.setProto3StringField(this, 1, value);
957
+ };
958
+
959
+
960
+
961
+
962
+
963
+ if (jspb.Message.GENERATE_TO_OBJECT) {
964
+ /**
965
+ * Creates an object representation of this proto.
966
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
967
+ * Optional fields that are not set will be set to undefined.
968
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
969
+ * For the list of reserved names please see:
970
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
971
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
972
+ * JSPB instance for transitional soy proto support:
973
+ * http://goto/soy-param-migration
974
+ * @return {!Object}
975
+ */
976
+ proto.GetListSalesOrgPlantRequest.prototype.toObject = function(opt_includeInstance) {
977
+ return proto.GetListSalesOrgPlantRequest.toObject(opt_includeInstance, this);
978
+ };
979
+
980
+
981
+ /**
982
+ * Static version of the {@see toObject} method.
983
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
984
+ * the JSPB instance for transitional soy proto support:
985
+ * http://goto/soy-param-migration
986
+ * @param {!proto.GetListSalesOrgPlantRequest} msg The msg instance to transform.
987
+ * @return {!Object}
988
+ * @suppress {unusedLocalVariables} f is only used for nested messages
989
+ */
990
+ proto.GetListSalesOrgPlantRequest.toObject = function(includeInstance, msg) {
991
+ var f, obj = {
992
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
993
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
994
+ };
995
+
996
+ if (includeInstance) {
997
+ obj.$jspbMessageInstance = msg;
998
+ }
999
+ return obj;
1000
+ };
1001
+ }
1002
+
1003
+
1004
+ /**
1005
+ * Deserializes binary data (in protobuf wire format).
1006
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1007
+ * @return {!proto.GetListSalesOrgPlantRequest}
1008
+ */
1009
+ proto.GetListSalesOrgPlantRequest.deserializeBinary = function(bytes) {
1010
+ var reader = new jspb.BinaryReader(bytes);
1011
+ var msg = new proto.GetListSalesOrgPlantRequest;
1012
+ return proto.GetListSalesOrgPlantRequest.deserializeBinaryFromReader(msg, reader);
1013
+ };
1014
+
1015
+
1016
+ /**
1017
+ * Deserializes binary data (in protobuf wire format) from the
1018
+ * given reader into the given message object.
1019
+ * @param {!proto.GetListSalesOrgPlantRequest} msg The message object to deserialize into.
1020
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1021
+ * @return {!proto.GetListSalesOrgPlantRequest}
1022
+ */
1023
+ proto.GetListSalesOrgPlantRequest.deserializeBinaryFromReader = function(msg, reader) {
1024
+ while (reader.nextField()) {
1025
+ if (reader.isEndGroup()) {
1026
+ break;
1027
+ }
1028
+ var field = reader.getFieldNumber();
1029
+ switch (field) {
1030
+ case 1:
1031
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1032
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1033
+ msg.setPagination(value);
1034
+ break;
1035
+ case 2:
1036
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1037
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1038
+ msg.setQuery(value);
1039
+ break;
1040
+ default:
1041
+ reader.skipField();
1042
+ break;
1043
+ }
1044
+ }
1045
+ return msg;
1046
+ };
1047
+
1048
+
1049
+ /**
1050
+ * Serializes the message to binary data (in protobuf wire format).
1051
+ * @return {!Uint8Array}
1052
+ */
1053
+ proto.GetListSalesOrgPlantRequest.prototype.serializeBinary = function() {
1054
+ var writer = new jspb.BinaryWriter();
1055
+ proto.GetListSalesOrgPlantRequest.serializeBinaryToWriter(this, writer);
1056
+ return writer.getResultBuffer();
1057
+ };
1058
+
1059
+
1060
+ /**
1061
+ * Serializes the given message to binary data (in protobuf wire
1062
+ * format), writing to the given BinaryWriter.
1063
+ * @param {!proto.GetListSalesOrgPlantRequest} message
1064
+ * @param {!jspb.BinaryWriter} writer
1065
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1066
+ */
1067
+ proto.GetListSalesOrgPlantRequest.serializeBinaryToWriter = function(message, writer) {
1068
+ var f = undefined;
1069
+ f = message.getPagination();
1070
+ if (f != null) {
1071
+ writer.writeMessage(
1072
+ 1,
1073
+ f,
1074
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1075
+ );
1076
+ }
1077
+ f = message.getQuery();
1078
+ if (f != null) {
1079
+ writer.writeMessage(
1080
+ 2,
1081
+ f,
1082
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1083
+ );
1084
+ }
1085
+ };
1086
+
1087
+
1088
+ /**
1089
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1090
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1091
+ */
1092
+ proto.GetListSalesOrgPlantRequest.prototype.getPagination = function() {
1093
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1094
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1095
+ };
1096
+
1097
+
1098
+ /**
1099
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1100
+ * @return {!proto.GetListSalesOrgPlantRequest} returns this
1101
+ */
1102
+ proto.GetListSalesOrgPlantRequest.prototype.setPagination = function(value) {
1103
+ return jspb.Message.setWrapperField(this, 1, value);
1104
+ };
1105
+
1106
+
1107
+ /**
1108
+ * Clears the message field making it undefined.
1109
+ * @return {!proto.GetListSalesOrgPlantRequest} returns this
1110
+ */
1111
+ proto.GetListSalesOrgPlantRequest.prototype.clearPagination = function() {
1112
+ return this.setPagination(undefined);
1113
+ };
1114
+
1115
+
1116
+ /**
1117
+ * Returns whether this field is set.
1118
+ * @return {boolean}
1119
+ */
1120
+ proto.GetListSalesOrgPlantRequest.prototype.hasPagination = function() {
1121
+ return jspb.Message.getField(this, 1) != null;
1122
+ };
1123
+
1124
+
1125
+ /**
1126
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
1127
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
1128
+ */
1129
+ proto.GetListSalesOrgPlantRequest.prototype.getQuery = function() {
1130
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1131
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1132
+ };
1133
+
1134
+
1135
+ /**
1136
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1137
+ * @return {!proto.GetListSalesOrgPlantRequest} returns this
1138
+ */
1139
+ proto.GetListSalesOrgPlantRequest.prototype.setQuery = function(value) {
1140
+ return jspb.Message.setWrapperField(this, 2, value);
1141
+ };
1142
+
1143
+
1144
+ /**
1145
+ * Clears the message field making it undefined.
1146
+ * @return {!proto.GetListSalesOrgPlantRequest} returns this
1147
+ */
1148
+ proto.GetListSalesOrgPlantRequest.prototype.clearQuery = function() {
1149
+ return this.setQuery(undefined);
1150
+ };
1151
+
1152
+
1153
+ /**
1154
+ * Returns whether this field is set.
1155
+ * @return {boolean}
1156
+ */
1157
+ proto.GetListSalesOrgPlantRequest.prototype.hasQuery = function() {
1158
+ return jspb.Message.getField(this, 2) != null;
1159
+ };
1160
+
1161
+
1162
+
1163
+
1164
+
1165
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1166
+ /**
1167
+ * Creates an object representation of this proto.
1168
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1169
+ * Optional fields that are not set will be set to undefined.
1170
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1171
+ * For the list of reserved names please see:
1172
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1173
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1174
+ * JSPB instance for transitional soy proto support:
1175
+ * http://goto/soy-param-migration
1176
+ * @return {!Object}
1177
+ */
1178
+ proto.CreateSalesOrgPlantRequest.prototype.toObject = function(opt_includeInstance) {
1179
+ return proto.CreateSalesOrgPlantRequest.toObject(opt_includeInstance, this);
1180
+ };
1181
+
1182
+
1183
+ /**
1184
+ * Static version of the {@see toObject} method.
1185
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1186
+ * the JSPB instance for transitional soy proto support:
1187
+ * http://goto/soy-param-migration
1188
+ * @param {!proto.CreateSalesOrgPlantRequest} msg The msg instance to transform.
1189
+ * @return {!Object}
1190
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1191
+ */
1192
+ proto.CreateSalesOrgPlantRequest.toObject = function(includeInstance, msg) {
1193
+ var f, obj = {
1194
+ baseRequest: (f = msg.getBaseRequest()) && proto.BaseSalesOrgPlantRequest.toObject(includeInstance, f)
1195
+ };
1196
+
1197
+ if (includeInstance) {
1198
+ obj.$jspbMessageInstance = msg;
1199
+ }
1200
+ return obj;
1201
+ };
1202
+ }
1203
+
1204
+
1205
+ /**
1206
+ * Deserializes binary data (in protobuf wire format).
1207
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1208
+ * @return {!proto.CreateSalesOrgPlantRequest}
1209
+ */
1210
+ proto.CreateSalesOrgPlantRequest.deserializeBinary = function(bytes) {
1211
+ var reader = new jspb.BinaryReader(bytes);
1212
+ var msg = new proto.CreateSalesOrgPlantRequest;
1213
+ return proto.CreateSalesOrgPlantRequest.deserializeBinaryFromReader(msg, reader);
1214
+ };
1215
+
1216
+
1217
+ /**
1218
+ * Deserializes binary data (in protobuf wire format) from the
1219
+ * given reader into the given message object.
1220
+ * @param {!proto.CreateSalesOrgPlantRequest} msg The message object to deserialize into.
1221
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1222
+ * @return {!proto.CreateSalesOrgPlantRequest}
1223
+ */
1224
+ proto.CreateSalesOrgPlantRequest.deserializeBinaryFromReader = function(msg, reader) {
1225
+ while (reader.nextField()) {
1226
+ if (reader.isEndGroup()) {
1227
+ break;
1228
+ }
1229
+ var field = reader.getFieldNumber();
1230
+ switch (field) {
1231
+ case 1:
1232
+ var value = new proto.BaseSalesOrgPlantRequest;
1233
+ reader.readMessage(value,proto.BaseSalesOrgPlantRequest.deserializeBinaryFromReader);
1234
+ msg.setBaseRequest(value);
1235
+ break;
1236
+ default:
1237
+ reader.skipField();
1238
+ break;
1239
+ }
1240
+ }
1241
+ return msg;
1242
+ };
1243
+
1244
+
1245
+ /**
1246
+ * Serializes the message to binary data (in protobuf wire format).
1247
+ * @return {!Uint8Array}
1248
+ */
1249
+ proto.CreateSalesOrgPlantRequest.prototype.serializeBinary = function() {
1250
+ var writer = new jspb.BinaryWriter();
1251
+ proto.CreateSalesOrgPlantRequest.serializeBinaryToWriter(this, writer);
1252
+ return writer.getResultBuffer();
1253
+ };
1254
+
1255
+
1256
+ /**
1257
+ * Serializes the given message to binary data (in protobuf wire
1258
+ * format), writing to the given BinaryWriter.
1259
+ * @param {!proto.CreateSalesOrgPlantRequest} message
1260
+ * @param {!jspb.BinaryWriter} writer
1261
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1262
+ */
1263
+ proto.CreateSalesOrgPlantRequest.serializeBinaryToWriter = function(message, writer) {
1264
+ var f = undefined;
1265
+ f = message.getBaseRequest();
1266
+ if (f != null) {
1267
+ writer.writeMessage(
1268
+ 1,
1269
+ f,
1270
+ proto.BaseSalesOrgPlantRequest.serializeBinaryToWriter
1271
+ );
1272
+ }
1273
+ };
1274
+
1275
+
1276
+ /**
1277
+ * optional BaseSalesOrgPlantRequest base_request = 1;
1278
+ * @return {?proto.BaseSalesOrgPlantRequest}
1279
+ */
1280
+ proto.CreateSalesOrgPlantRequest.prototype.getBaseRequest = function() {
1281
+ return /** @type{?proto.BaseSalesOrgPlantRequest} */ (
1282
+ jspb.Message.getWrapperField(this, proto.BaseSalesOrgPlantRequest, 1));
1283
+ };
1284
+
1285
+
1286
+ /**
1287
+ * @param {?proto.BaseSalesOrgPlantRequest|undefined} value
1288
+ * @return {!proto.CreateSalesOrgPlantRequest} returns this
1289
+ */
1290
+ proto.CreateSalesOrgPlantRequest.prototype.setBaseRequest = function(value) {
1291
+ return jspb.Message.setWrapperField(this, 1, value);
1292
+ };
1293
+
1294
+
1295
+ /**
1296
+ * Clears the message field making it undefined.
1297
+ * @return {!proto.CreateSalesOrgPlantRequest} returns this
1298
+ */
1299
+ proto.CreateSalesOrgPlantRequest.prototype.clearBaseRequest = function() {
1300
+ return this.setBaseRequest(undefined);
1301
+ };
1302
+
1303
+
1304
+ /**
1305
+ * Returns whether this field is set.
1306
+ * @return {boolean}
1307
+ */
1308
+ proto.CreateSalesOrgPlantRequest.prototype.hasBaseRequest = function() {
1309
+ return jspb.Message.getField(this, 1) != null;
1310
+ };
1311
+
1312
+
1313
+
1314
+ /**
1315
+ * List of repeated fields within this message type.
1316
+ * @private {!Array<number>}
1317
+ * @const
1318
+ */
1319
+ proto.DeleteSalesOrgPlantRequest.repeatedFields_ = [1];
1320
+
1321
+
1322
+
1323
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1324
+ /**
1325
+ * Creates an object representation of this proto.
1326
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1327
+ * Optional fields that are not set will be set to undefined.
1328
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1329
+ * For the list of reserved names please see:
1330
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1331
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1332
+ * JSPB instance for transitional soy proto support:
1333
+ * http://goto/soy-param-migration
1334
+ * @return {!Object}
1335
+ */
1336
+ proto.DeleteSalesOrgPlantRequest.prototype.toObject = function(opt_includeInstance) {
1337
+ return proto.DeleteSalesOrgPlantRequest.toObject(opt_includeInstance, this);
1338
+ };
1339
+
1340
+
1341
+ /**
1342
+ * Static version of the {@see toObject} method.
1343
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1344
+ * the JSPB instance for transitional soy proto support:
1345
+ * http://goto/soy-param-migration
1346
+ * @param {!proto.DeleteSalesOrgPlantRequest} msg The msg instance to transform.
1347
+ * @return {!Object}
1348
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1349
+ */
1350
+ proto.DeleteSalesOrgPlantRequest.toObject = function(includeInstance, msg) {
1351
+ var f, obj = {
1352
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
1353
+ };
1354
+
1355
+ if (includeInstance) {
1356
+ obj.$jspbMessageInstance = msg;
1357
+ }
1358
+ return obj;
1359
+ };
1360
+ }
1361
+
1362
+
1363
+ /**
1364
+ * Deserializes binary data (in protobuf wire format).
1365
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1366
+ * @return {!proto.DeleteSalesOrgPlantRequest}
1367
+ */
1368
+ proto.DeleteSalesOrgPlantRequest.deserializeBinary = function(bytes) {
1369
+ var reader = new jspb.BinaryReader(bytes);
1370
+ var msg = new proto.DeleteSalesOrgPlantRequest;
1371
+ return proto.DeleteSalesOrgPlantRequest.deserializeBinaryFromReader(msg, reader);
1372
+ };
1373
+
1374
+
1375
+ /**
1376
+ * Deserializes binary data (in protobuf wire format) from the
1377
+ * given reader into the given message object.
1378
+ * @param {!proto.DeleteSalesOrgPlantRequest} msg The message object to deserialize into.
1379
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1380
+ * @return {!proto.DeleteSalesOrgPlantRequest}
1381
+ */
1382
+ proto.DeleteSalesOrgPlantRequest.deserializeBinaryFromReader = function(msg, reader) {
1383
+ while (reader.nextField()) {
1384
+ if (reader.isEndGroup()) {
1385
+ break;
1386
+ }
1387
+ var field = reader.getFieldNumber();
1388
+ switch (field) {
1389
+ case 1:
1390
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1391
+ msg.addReferenceIds(value);
1392
+ break;
1393
+ default:
1394
+ reader.skipField();
1395
+ break;
1396
+ }
1397
+ }
1398
+ return msg;
1399
+ };
1400
+
1401
+
1402
+ /**
1403
+ * Serializes the message to binary data (in protobuf wire format).
1404
+ * @return {!Uint8Array}
1405
+ */
1406
+ proto.DeleteSalesOrgPlantRequest.prototype.serializeBinary = function() {
1407
+ var writer = new jspb.BinaryWriter();
1408
+ proto.DeleteSalesOrgPlantRequest.serializeBinaryToWriter(this, writer);
1409
+ return writer.getResultBuffer();
1410
+ };
1411
+
1412
+
1413
+ /**
1414
+ * Serializes the given message to binary data (in protobuf wire
1415
+ * format), writing to the given BinaryWriter.
1416
+ * @param {!proto.DeleteSalesOrgPlantRequest} message
1417
+ * @param {!jspb.BinaryWriter} writer
1418
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1419
+ */
1420
+ proto.DeleteSalesOrgPlantRequest.serializeBinaryToWriter = function(message, writer) {
1421
+ var f = undefined;
1422
+ f = message.getReferenceIdsList();
1423
+ if (f.length > 0) {
1424
+ writer.writeRepeatedString(
1425
+ 1,
1426
+ f
1427
+ );
1428
+ }
1429
+ };
1430
+
1431
+
1432
+ /**
1433
+ * repeated string reference_ids = 1;
1434
+ * @return {!Array<string>}
1435
+ */
1436
+ proto.DeleteSalesOrgPlantRequest.prototype.getReferenceIdsList = function() {
1437
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
1438
+ };
1439
+
1440
+
1441
+ /**
1442
+ * @param {!Array<string>} value
1443
+ * @return {!proto.DeleteSalesOrgPlantRequest} returns this
1444
+ */
1445
+ proto.DeleteSalesOrgPlantRequest.prototype.setReferenceIdsList = function(value) {
1446
+ return jspb.Message.setField(this, 1, value || []);
1447
+ };
1448
+
1449
+
1450
+ /**
1451
+ * @param {string} value
1452
+ * @param {number=} opt_index
1453
+ * @return {!proto.DeleteSalesOrgPlantRequest} returns this
1454
+ */
1455
+ proto.DeleteSalesOrgPlantRequest.prototype.addReferenceIds = function(value, opt_index) {
1456
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1457
+ };
1458
+
1459
+
1460
+ /**
1461
+ * Clears the list making it empty but non-null.
1462
+ * @return {!proto.DeleteSalesOrgPlantRequest} returns this
1463
+ */
1464
+ proto.DeleteSalesOrgPlantRequest.prototype.clearReferenceIdsList = function() {
1465
+ return this.setReferenceIdsList([]);
1466
+ };
1467
+
1468
+
1469
+
1470
+
1471
+
1472
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1473
+ /**
1474
+ * Creates an object representation of this proto.
1475
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1476
+ * Optional fields that are not set will be set to undefined.
1477
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1478
+ * For the list of reserved names please see:
1479
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1480
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1481
+ * JSPB instance for transitional soy proto support:
1482
+ * http://goto/soy-param-migration
1483
+ * @return {!Object}
1484
+ */
1485
+ proto.CreateSalesOrgPlantResponse.prototype.toObject = function(opt_includeInstance) {
1486
+ return proto.CreateSalesOrgPlantResponse.toObject(opt_includeInstance, this);
1487
+ };
1488
+
1489
+
1490
+ /**
1491
+ * Static version of the {@see toObject} method.
1492
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1493
+ * the JSPB instance for transitional soy proto support:
1494
+ * http://goto/soy-param-migration
1495
+ * @param {!proto.CreateSalesOrgPlantResponse} msg The msg instance to transform.
1496
+ * @return {!Object}
1497
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1498
+ */
1499
+ proto.CreateSalesOrgPlantResponse.toObject = function(includeInstance, msg) {
1500
+ var f, obj = {
1501
+ salesOrgPlant: (f = msg.getSalesOrgPlant()) && proto.SalesOrgPlant.toObject(includeInstance, f),
1502
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1503
+ };
1504
+
1505
+ if (includeInstance) {
1506
+ obj.$jspbMessageInstance = msg;
1507
+ }
1508
+ return obj;
1509
+ };
1510
+ }
1511
+
1512
+
1513
+ /**
1514
+ * Deserializes binary data (in protobuf wire format).
1515
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1516
+ * @return {!proto.CreateSalesOrgPlantResponse}
1517
+ */
1518
+ proto.CreateSalesOrgPlantResponse.deserializeBinary = function(bytes) {
1519
+ var reader = new jspb.BinaryReader(bytes);
1520
+ var msg = new proto.CreateSalesOrgPlantResponse;
1521
+ return proto.CreateSalesOrgPlantResponse.deserializeBinaryFromReader(msg, reader);
1522
+ };
1523
+
1524
+
1525
+ /**
1526
+ * Deserializes binary data (in protobuf wire format) from the
1527
+ * given reader into the given message object.
1528
+ * @param {!proto.CreateSalesOrgPlantResponse} msg The message object to deserialize into.
1529
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1530
+ * @return {!proto.CreateSalesOrgPlantResponse}
1531
+ */
1532
+ proto.CreateSalesOrgPlantResponse.deserializeBinaryFromReader = function(msg, reader) {
1533
+ while (reader.nextField()) {
1534
+ if (reader.isEndGroup()) {
1535
+ break;
1536
+ }
1537
+ var field = reader.getFieldNumber();
1538
+ switch (field) {
1539
+ case 1:
1540
+ var value = new proto.SalesOrgPlant;
1541
+ reader.readMessage(value,proto.SalesOrgPlant.deserializeBinaryFromReader);
1542
+ msg.setSalesOrgPlant(value);
1543
+ break;
1544
+ case 2:
1545
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1546
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1547
+ msg.setMeta(value);
1548
+ break;
1549
+ default:
1550
+ reader.skipField();
1551
+ break;
1552
+ }
1553
+ }
1554
+ return msg;
1555
+ };
1556
+
1557
+
1558
+ /**
1559
+ * Serializes the message to binary data (in protobuf wire format).
1560
+ * @return {!Uint8Array}
1561
+ */
1562
+ proto.CreateSalesOrgPlantResponse.prototype.serializeBinary = function() {
1563
+ var writer = new jspb.BinaryWriter();
1564
+ proto.CreateSalesOrgPlantResponse.serializeBinaryToWriter(this, writer);
1565
+ return writer.getResultBuffer();
1566
+ };
1567
+
1568
+
1569
+ /**
1570
+ * Serializes the given message to binary data (in protobuf wire
1571
+ * format), writing to the given BinaryWriter.
1572
+ * @param {!proto.CreateSalesOrgPlantResponse} message
1573
+ * @param {!jspb.BinaryWriter} writer
1574
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1575
+ */
1576
+ proto.CreateSalesOrgPlantResponse.serializeBinaryToWriter = function(message, writer) {
1577
+ var f = undefined;
1578
+ f = message.getSalesOrgPlant();
1579
+ if (f != null) {
1580
+ writer.writeMessage(
1581
+ 1,
1582
+ f,
1583
+ proto.SalesOrgPlant.serializeBinaryToWriter
1584
+ );
1585
+ }
1586
+ f = message.getMeta();
1587
+ if (f != null) {
1588
+ writer.writeMessage(
1589
+ 2,
1590
+ f,
1591
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1592
+ );
1593
+ }
1594
+ };
1595
+
1596
+
1597
+ /**
1598
+ * optional SalesOrgPlant sales_org_plant = 1;
1599
+ * @return {?proto.SalesOrgPlant}
1600
+ */
1601
+ proto.CreateSalesOrgPlantResponse.prototype.getSalesOrgPlant = function() {
1602
+ return /** @type{?proto.SalesOrgPlant} */ (
1603
+ jspb.Message.getWrapperField(this, proto.SalesOrgPlant, 1));
1604
+ };
1605
+
1606
+
1607
+ /**
1608
+ * @param {?proto.SalesOrgPlant|undefined} value
1609
+ * @return {!proto.CreateSalesOrgPlantResponse} returns this
1610
+ */
1611
+ proto.CreateSalesOrgPlantResponse.prototype.setSalesOrgPlant = function(value) {
1612
+ return jspb.Message.setWrapperField(this, 1, value);
1613
+ };
1614
+
1615
+
1616
+ /**
1617
+ * Clears the message field making it undefined.
1618
+ * @return {!proto.CreateSalesOrgPlantResponse} returns this
1619
+ */
1620
+ proto.CreateSalesOrgPlantResponse.prototype.clearSalesOrgPlant = function() {
1621
+ return this.setSalesOrgPlant(undefined);
1622
+ };
1623
+
1624
+
1625
+ /**
1626
+ * Returns whether this field is set.
1627
+ * @return {boolean}
1628
+ */
1629
+ proto.CreateSalesOrgPlantResponse.prototype.hasSalesOrgPlant = function() {
1630
+ return jspb.Message.getField(this, 1) != null;
1631
+ };
1632
+
1633
+
1634
+ /**
1635
+ * optional prisca.v1.global.meta.Meta meta = 2;
1636
+ * @return {?proto.prisca.v1.global.meta.Meta}
1637
+ */
1638
+ proto.CreateSalesOrgPlantResponse.prototype.getMeta = function() {
1639
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1640
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1641
+ };
1642
+
1643
+
1644
+ /**
1645
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1646
+ * @return {!proto.CreateSalesOrgPlantResponse} returns this
1647
+ */
1648
+ proto.CreateSalesOrgPlantResponse.prototype.setMeta = function(value) {
1649
+ return jspb.Message.setWrapperField(this, 2, value);
1650
+ };
1651
+
1652
+
1653
+ /**
1654
+ * Clears the message field making it undefined.
1655
+ * @return {!proto.CreateSalesOrgPlantResponse} returns this
1656
+ */
1657
+ proto.CreateSalesOrgPlantResponse.prototype.clearMeta = function() {
1658
+ return this.setMeta(undefined);
1659
+ };
1660
+
1661
+
1662
+ /**
1663
+ * Returns whether this field is set.
1664
+ * @return {boolean}
1665
+ */
1666
+ proto.CreateSalesOrgPlantResponse.prototype.hasMeta = function() {
1667
+ return jspb.Message.getField(this, 2) != null;
1668
+ };
1669
+
1670
+
1671
+
1672
+
1673
+
1674
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1675
+ /**
1676
+ * Creates an object representation of this proto.
1677
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1678
+ * Optional fields that are not set will be set to undefined.
1679
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1680
+ * For the list of reserved names please see:
1681
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1682
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1683
+ * JSPB instance for transitional soy proto support:
1684
+ * http://goto/soy-param-migration
1685
+ * @return {!Object}
1686
+ */
1687
+ proto.GetSalesOrgPlantByIdResponse.prototype.toObject = function(opt_includeInstance) {
1688
+ return proto.GetSalesOrgPlantByIdResponse.toObject(opt_includeInstance, this);
1689
+ };
1690
+
1691
+
1692
+ /**
1693
+ * Static version of the {@see toObject} method.
1694
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1695
+ * the JSPB instance for transitional soy proto support:
1696
+ * http://goto/soy-param-migration
1697
+ * @param {!proto.GetSalesOrgPlantByIdResponse} msg The msg instance to transform.
1698
+ * @return {!Object}
1699
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1700
+ */
1701
+ proto.GetSalesOrgPlantByIdResponse.toObject = function(includeInstance, msg) {
1702
+ var f, obj = {
1703
+ salesOrgPlant: (f = msg.getSalesOrgPlant()) && proto.SalesOrgPlant.toObject(includeInstance, f),
1704
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1705
+ };
1706
+
1707
+ if (includeInstance) {
1708
+ obj.$jspbMessageInstance = msg;
1709
+ }
1710
+ return obj;
1711
+ };
1712
+ }
1713
+
1714
+
1715
+ /**
1716
+ * Deserializes binary data (in protobuf wire format).
1717
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1718
+ * @return {!proto.GetSalesOrgPlantByIdResponse}
1719
+ */
1720
+ proto.GetSalesOrgPlantByIdResponse.deserializeBinary = function(bytes) {
1721
+ var reader = new jspb.BinaryReader(bytes);
1722
+ var msg = new proto.GetSalesOrgPlantByIdResponse;
1723
+ return proto.GetSalesOrgPlantByIdResponse.deserializeBinaryFromReader(msg, reader);
1724
+ };
1725
+
1726
+
1727
+ /**
1728
+ * Deserializes binary data (in protobuf wire format) from the
1729
+ * given reader into the given message object.
1730
+ * @param {!proto.GetSalesOrgPlantByIdResponse} msg The message object to deserialize into.
1731
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1732
+ * @return {!proto.GetSalesOrgPlantByIdResponse}
1733
+ */
1734
+ proto.GetSalesOrgPlantByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
1735
+ while (reader.nextField()) {
1736
+ if (reader.isEndGroup()) {
1737
+ break;
1738
+ }
1739
+ var field = reader.getFieldNumber();
1740
+ switch (field) {
1741
+ case 1:
1742
+ var value = new proto.SalesOrgPlant;
1743
+ reader.readMessage(value,proto.SalesOrgPlant.deserializeBinaryFromReader);
1744
+ msg.setSalesOrgPlant(value);
1745
+ break;
1746
+ case 2:
1747
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1748
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1749
+ msg.setMeta(value);
1750
+ break;
1751
+ default:
1752
+ reader.skipField();
1753
+ break;
1754
+ }
1755
+ }
1756
+ return msg;
1757
+ };
1758
+
1759
+
1760
+ /**
1761
+ * Serializes the message to binary data (in protobuf wire format).
1762
+ * @return {!Uint8Array}
1763
+ */
1764
+ proto.GetSalesOrgPlantByIdResponse.prototype.serializeBinary = function() {
1765
+ var writer = new jspb.BinaryWriter();
1766
+ proto.GetSalesOrgPlantByIdResponse.serializeBinaryToWriter(this, writer);
1767
+ return writer.getResultBuffer();
1768
+ };
1769
+
1770
+
1771
+ /**
1772
+ * Serializes the given message to binary data (in protobuf wire
1773
+ * format), writing to the given BinaryWriter.
1774
+ * @param {!proto.GetSalesOrgPlantByIdResponse} message
1775
+ * @param {!jspb.BinaryWriter} writer
1776
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1777
+ */
1778
+ proto.GetSalesOrgPlantByIdResponse.serializeBinaryToWriter = function(message, writer) {
1779
+ var f = undefined;
1780
+ f = message.getSalesOrgPlant();
1781
+ if (f != null) {
1782
+ writer.writeMessage(
1783
+ 1,
1784
+ f,
1785
+ proto.SalesOrgPlant.serializeBinaryToWriter
1786
+ );
1787
+ }
1788
+ f = message.getMeta();
1789
+ if (f != null) {
1790
+ writer.writeMessage(
1791
+ 2,
1792
+ f,
1793
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1794
+ );
1795
+ }
1796
+ };
1797
+
1798
+
1799
+ /**
1800
+ * optional SalesOrgPlant sales_org_plant = 1;
1801
+ * @return {?proto.SalesOrgPlant}
1802
+ */
1803
+ proto.GetSalesOrgPlantByIdResponse.prototype.getSalesOrgPlant = function() {
1804
+ return /** @type{?proto.SalesOrgPlant} */ (
1805
+ jspb.Message.getWrapperField(this, proto.SalesOrgPlant, 1));
1806
+ };
1807
+
1808
+
1809
+ /**
1810
+ * @param {?proto.SalesOrgPlant|undefined} value
1811
+ * @return {!proto.GetSalesOrgPlantByIdResponse} returns this
1812
+ */
1813
+ proto.GetSalesOrgPlantByIdResponse.prototype.setSalesOrgPlant = function(value) {
1814
+ return jspb.Message.setWrapperField(this, 1, value);
1815
+ };
1816
+
1817
+
1818
+ /**
1819
+ * Clears the message field making it undefined.
1820
+ * @return {!proto.GetSalesOrgPlantByIdResponse} returns this
1821
+ */
1822
+ proto.GetSalesOrgPlantByIdResponse.prototype.clearSalesOrgPlant = function() {
1823
+ return this.setSalesOrgPlant(undefined);
1824
+ };
1825
+
1826
+
1827
+ /**
1828
+ * Returns whether this field is set.
1829
+ * @return {boolean}
1830
+ */
1831
+ proto.GetSalesOrgPlantByIdResponse.prototype.hasSalesOrgPlant = function() {
1832
+ return jspb.Message.getField(this, 1) != null;
1833
+ };
1834
+
1835
+
1836
+ /**
1837
+ * optional prisca.v1.global.meta.Meta meta = 2;
1838
+ * @return {?proto.prisca.v1.global.meta.Meta}
1839
+ */
1840
+ proto.GetSalesOrgPlantByIdResponse.prototype.getMeta = function() {
1841
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1842
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1843
+ };
1844
+
1845
+
1846
+ /**
1847
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1848
+ * @return {!proto.GetSalesOrgPlantByIdResponse} returns this
1849
+ */
1850
+ proto.GetSalesOrgPlantByIdResponse.prototype.setMeta = function(value) {
1851
+ return jspb.Message.setWrapperField(this, 2, value);
1852
+ };
1853
+
1854
+
1855
+ /**
1856
+ * Clears the message field making it undefined.
1857
+ * @return {!proto.GetSalesOrgPlantByIdResponse} returns this
1858
+ */
1859
+ proto.GetSalesOrgPlantByIdResponse.prototype.clearMeta = function() {
1860
+ return this.setMeta(undefined);
1861
+ };
1862
+
1863
+
1864
+ /**
1865
+ * Returns whether this field is set.
1866
+ * @return {boolean}
1867
+ */
1868
+ proto.GetSalesOrgPlantByIdResponse.prototype.hasMeta = function() {
1869
+ return jspb.Message.getField(this, 2) != null;
1870
+ };
1871
+
1872
+
1873
+
1874
+ /**
1875
+ * List of repeated fields within this message type.
1876
+ * @private {!Array<number>}
1877
+ * @const
1878
+ */
1879
+ proto.GetListSalesOrgPlantResponse.repeatedFields_ = [1];
1880
+
1881
+
1882
+
1883
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1884
+ /**
1885
+ * Creates an object representation of this proto.
1886
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1887
+ * Optional fields that are not set will be set to undefined.
1888
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1889
+ * For the list of reserved names please see:
1890
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1891
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1892
+ * JSPB instance for transitional soy proto support:
1893
+ * http://goto/soy-param-migration
1894
+ * @return {!Object}
1895
+ */
1896
+ proto.GetListSalesOrgPlantResponse.prototype.toObject = function(opt_includeInstance) {
1897
+ return proto.GetListSalesOrgPlantResponse.toObject(opt_includeInstance, this);
1898
+ };
1899
+
1900
+
1901
+ /**
1902
+ * Static version of the {@see toObject} method.
1903
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1904
+ * the JSPB instance for transitional soy proto support:
1905
+ * http://goto/soy-param-migration
1906
+ * @param {!proto.GetListSalesOrgPlantResponse} msg The msg instance to transform.
1907
+ * @return {!Object}
1908
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1909
+ */
1910
+ proto.GetListSalesOrgPlantResponse.toObject = function(includeInstance, msg) {
1911
+ var f, obj = {
1912
+ salesOrgPlantsList: jspb.Message.toObjectList(msg.getSalesOrgPlantsList(),
1913
+ proto.SalesOrgPlant.toObject, includeInstance),
1914
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1915
+ };
1916
+
1917
+ if (includeInstance) {
1918
+ obj.$jspbMessageInstance = msg;
1919
+ }
1920
+ return obj;
1921
+ };
1922
+ }
1923
+
1924
+
1925
+ /**
1926
+ * Deserializes binary data (in protobuf wire format).
1927
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1928
+ * @return {!proto.GetListSalesOrgPlantResponse}
1929
+ */
1930
+ proto.GetListSalesOrgPlantResponse.deserializeBinary = function(bytes) {
1931
+ var reader = new jspb.BinaryReader(bytes);
1932
+ var msg = new proto.GetListSalesOrgPlantResponse;
1933
+ return proto.GetListSalesOrgPlantResponse.deserializeBinaryFromReader(msg, reader);
1934
+ };
1935
+
1936
+
1937
+ /**
1938
+ * Deserializes binary data (in protobuf wire format) from the
1939
+ * given reader into the given message object.
1940
+ * @param {!proto.GetListSalesOrgPlantResponse} msg The message object to deserialize into.
1941
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1942
+ * @return {!proto.GetListSalesOrgPlantResponse}
1943
+ */
1944
+ proto.GetListSalesOrgPlantResponse.deserializeBinaryFromReader = function(msg, reader) {
1945
+ while (reader.nextField()) {
1946
+ if (reader.isEndGroup()) {
1947
+ break;
1948
+ }
1949
+ var field = reader.getFieldNumber();
1950
+ switch (field) {
1951
+ case 1:
1952
+ var value = new proto.SalesOrgPlant;
1953
+ reader.readMessage(value,proto.SalesOrgPlant.deserializeBinaryFromReader);
1954
+ msg.addSalesOrgPlants(value);
1955
+ break;
1956
+ case 2:
1957
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1958
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1959
+ msg.setMeta(value);
1960
+ break;
1961
+ default:
1962
+ reader.skipField();
1963
+ break;
1964
+ }
1965
+ }
1966
+ return msg;
1967
+ };
1968
+
1969
+
1970
+ /**
1971
+ * Serializes the message to binary data (in protobuf wire format).
1972
+ * @return {!Uint8Array}
1973
+ */
1974
+ proto.GetListSalesOrgPlantResponse.prototype.serializeBinary = function() {
1975
+ var writer = new jspb.BinaryWriter();
1976
+ proto.GetListSalesOrgPlantResponse.serializeBinaryToWriter(this, writer);
1977
+ return writer.getResultBuffer();
1978
+ };
1979
+
1980
+
1981
+ /**
1982
+ * Serializes the given message to binary data (in protobuf wire
1983
+ * format), writing to the given BinaryWriter.
1984
+ * @param {!proto.GetListSalesOrgPlantResponse} message
1985
+ * @param {!jspb.BinaryWriter} writer
1986
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1987
+ */
1988
+ proto.GetListSalesOrgPlantResponse.serializeBinaryToWriter = function(message, writer) {
1989
+ var f = undefined;
1990
+ f = message.getSalesOrgPlantsList();
1991
+ if (f.length > 0) {
1992
+ writer.writeRepeatedMessage(
1993
+ 1,
1994
+ f,
1995
+ proto.SalesOrgPlant.serializeBinaryToWriter
1996
+ );
1997
+ }
1998
+ f = message.getMeta();
1999
+ if (f != null) {
2000
+ writer.writeMessage(
2001
+ 2,
2002
+ f,
2003
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2004
+ );
2005
+ }
2006
+ };
2007
+
2008
+
2009
+ /**
2010
+ * repeated SalesOrgPlant sales_org_plants = 1;
2011
+ * @return {!Array<!proto.SalesOrgPlant>}
2012
+ */
2013
+ proto.GetListSalesOrgPlantResponse.prototype.getSalesOrgPlantsList = function() {
2014
+ return /** @type{!Array<!proto.SalesOrgPlant>} */ (
2015
+ jspb.Message.getRepeatedWrapperField(this, proto.SalesOrgPlant, 1));
2016
+ };
2017
+
2018
+
2019
+ /**
2020
+ * @param {!Array<!proto.SalesOrgPlant>} value
2021
+ * @return {!proto.GetListSalesOrgPlantResponse} returns this
2022
+ */
2023
+ proto.GetListSalesOrgPlantResponse.prototype.setSalesOrgPlantsList = function(value) {
2024
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2025
+ };
2026
+
2027
+
2028
+ /**
2029
+ * @param {!proto.SalesOrgPlant=} opt_value
2030
+ * @param {number=} opt_index
2031
+ * @return {!proto.SalesOrgPlant}
2032
+ */
2033
+ proto.GetListSalesOrgPlantResponse.prototype.addSalesOrgPlants = function(opt_value, opt_index) {
2034
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.SalesOrgPlant, opt_index);
2035
+ };
2036
+
2037
+
2038
+ /**
2039
+ * Clears the list making it empty but non-null.
2040
+ * @return {!proto.GetListSalesOrgPlantResponse} returns this
2041
+ */
2042
+ proto.GetListSalesOrgPlantResponse.prototype.clearSalesOrgPlantsList = function() {
2043
+ return this.setSalesOrgPlantsList([]);
2044
+ };
2045
+
2046
+
2047
+ /**
2048
+ * optional prisca.v1.global.meta.Meta meta = 2;
2049
+ * @return {?proto.prisca.v1.global.meta.Meta}
2050
+ */
2051
+ proto.GetListSalesOrgPlantResponse.prototype.getMeta = function() {
2052
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2053
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2054
+ };
2055
+
2056
+
2057
+ /**
2058
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2059
+ * @return {!proto.GetListSalesOrgPlantResponse} returns this
2060
+ */
2061
+ proto.GetListSalesOrgPlantResponse.prototype.setMeta = function(value) {
2062
+ return jspb.Message.setWrapperField(this, 2, value);
2063
+ };
2064
+
2065
+
2066
+ /**
2067
+ * Clears the message field making it undefined.
2068
+ * @return {!proto.GetListSalesOrgPlantResponse} returns this
2069
+ */
2070
+ proto.GetListSalesOrgPlantResponse.prototype.clearMeta = function() {
2071
+ return this.setMeta(undefined);
2072
+ };
2073
+
2074
+
2075
+ /**
2076
+ * Returns whether this field is set.
2077
+ * @return {boolean}
2078
+ */
2079
+ proto.GetListSalesOrgPlantResponse.prototype.hasMeta = function() {
2080
+ return jspb.Message.getField(this, 2) != null;
2081
+ };
2082
+
2083
+
2084
+
2085
+ /**
2086
+ * List of repeated fields within this message type.
2087
+ * @private {!Array<number>}
2088
+ * @const
2089
+ */
2090
+ proto.DeleteSalesOrgPlantResponse.repeatedFields_ = [1];
2091
+
2092
+
2093
+
2094
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2095
+ /**
2096
+ * Creates an object representation of this proto.
2097
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2098
+ * Optional fields that are not set will be set to undefined.
2099
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2100
+ * For the list of reserved names please see:
2101
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2102
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2103
+ * JSPB instance for transitional soy proto support:
2104
+ * http://goto/soy-param-migration
2105
+ * @return {!Object}
2106
+ */
2107
+ proto.DeleteSalesOrgPlantResponse.prototype.toObject = function(opt_includeInstance) {
2108
+ return proto.DeleteSalesOrgPlantResponse.toObject(opt_includeInstance, this);
2109
+ };
2110
+
2111
+
2112
+ /**
2113
+ * Static version of the {@see toObject} method.
2114
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2115
+ * the JSPB instance for transitional soy proto support:
2116
+ * http://goto/soy-param-migration
2117
+ * @param {!proto.DeleteSalesOrgPlantResponse} msg The msg instance to transform.
2118
+ * @return {!Object}
2119
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2120
+ */
2121
+ proto.DeleteSalesOrgPlantResponse.toObject = function(includeInstance, msg) {
2122
+ var f, obj = {
2123
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2124
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2125
+ };
2126
+
2127
+ if (includeInstance) {
2128
+ obj.$jspbMessageInstance = msg;
2129
+ }
2130
+ return obj;
2131
+ };
2132
+ }
2133
+
2134
+
2135
+ /**
2136
+ * Deserializes binary data (in protobuf wire format).
2137
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2138
+ * @return {!proto.DeleteSalesOrgPlantResponse}
2139
+ */
2140
+ proto.DeleteSalesOrgPlantResponse.deserializeBinary = function(bytes) {
2141
+ var reader = new jspb.BinaryReader(bytes);
2142
+ var msg = new proto.DeleteSalesOrgPlantResponse;
2143
+ return proto.DeleteSalesOrgPlantResponse.deserializeBinaryFromReader(msg, reader);
2144
+ };
2145
+
2146
+
2147
+ /**
2148
+ * Deserializes binary data (in protobuf wire format) from the
2149
+ * given reader into the given message object.
2150
+ * @param {!proto.DeleteSalesOrgPlantResponse} msg The message object to deserialize into.
2151
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2152
+ * @return {!proto.DeleteSalesOrgPlantResponse}
2153
+ */
2154
+ proto.DeleteSalesOrgPlantResponse.deserializeBinaryFromReader = function(msg, reader) {
2155
+ while (reader.nextField()) {
2156
+ if (reader.isEndGroup()) {
2157
+ break;
2158
+ }
2159
+ var field = reader.getFieldNumber();
2160
+ switch (field) {
2161
+ case 1:
2162
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2163
+ msg.addReferenceIds(value);
2164
+ break;
2165
+ case 2:
2166
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2167
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2168
+ msg.setMeta(value);
2169
+ break;
2170
+ default:
2171
+ reader.skipField();
2172
+ break;
2173
+ }
2174
+ }
2175
+ return msg;
2176
+ };
2177
+
2178
+
2179
+ /**
2180
+ * Serializes the message to binary data (in protobuf wire format).
2181
+ * @return {!Uint8Array}
2182
+ */
2183
+ proto.DeleteSalesOrgPlantResponse.prototype.serializeBinary = function() {
2184
+ var writer = new jspb.BinaryWriter();
2185
+ proto.DeleteSalesOrgPlantResponse.serializeBinaryToWriter(this, writer);
2186
+ return writer.getResultBuffer();
2187
+ };
2188
+
2189
+
2190
+ /**
2191
+ * Serializes the given message to binary data (in protobuf wire
2192
+ * format), writing to the given BinaryWriter.
2193
+ * @param {!proto.DeleteSalesOrgPlantResponse} message
2194
+ * @param {!jspb.BinaryWriter} writer
2195
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2196
+ */
2197
+ proto.DeleteSalesOrgPlantResponse.serializeBinaryToWriter = function(message, writer) {
2198
+ var f = undefined;
2199
+ f = message.getReferenceIdsList();
2200
+ if (f.length > 0) {
2201
+ writer.writeRepeatedString(
2202
+ 1,
2203
+ f
2204
+ );
2205
+ }
2206
+ f = message.getMeta();
2207
+ if (f != null) {
2208
+ writer.writeMessage(
2209
+ 2,
2210
+ f,
2211
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2212
+ );
2213
+ }
2214
+ };
2215
+
2216
+
2217
+ /**
2218
+ * repeated string reference_ids = 1;
2219
+ * @return {!Array<string>}
2220
+ */
2221
+ proto.DeleteSalesOrgPlantResponse.prototype.getReferenceIdsList = function() {
2222
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2223
+ };
2224
+
2225
+
2226
+ /**
2227
+ * @param {!Array<string>} value
2228
+ * @return {!proto.DeleteSalesOrgPlantResponse} returns this
2229
+ */
2230
+ proto.DeleteSalesOrgPlantResponse.prototype.setReferenceIdsList = function(value) {
2231
+ return jspb.Message.setField(this, 1, value || []);
2232
+ };
2233
+
2234
+
2235
+ /**
2236
+ * @param {string} value
2237
+ * @param {number=} opt_index
2238
+ * @return {!proto.DeleteSalesOrgPlantResponse} returns this
2239
+ */
2240
+ proto.DeleteSalesOrgPlantResponse.prototype.addReferenceIds = function(value, opt_index) {
2241
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2242
+ };
2243
+
2244
+
2245
+ /**
2246
+ * Clears the list making it empty but non-null.
2247
+ * @return {!proto.DeleteSalesOrgPlantResponse} returns this
2248
+ */
2249
+ proto.DeleteSalesOrgPlantResponse.prototype.clearReferenceIdsList = function() {
2250
+ return this.setReferenceIdsList([]);
2251
+ };
2252
+
2253
+
2254
+ /**
2255
+ * optional prisca.v1.global.meta.Meta meta = 2;
2256
+ * @return {?proto.prisca.v1.global.meta.Meta}
2257
+ */
2258
+ proto.DeleteSalesOrgPlantResponse.prototype.getMeta = function() {
2259
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2260
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2261
+ };
2262
+
2263
+
2264
+ /**
2265
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2266
+ * @return {!proto.DeleteSalesOrgPlantResponse} returns this
2267
+ */
2268
+ proto.DeleteSalesOrgPlantResponse.prototype.setMeta = function(value) {
2269
+ return jspb.Message.setWrapperField(this, 2, value);
2270
+ };
2271
+
2272
+
2273
+ /**
2274
+ * Clears the message field making it undefined.
2275
+ * @return {!proto.DeleteSalesOrgPlantResponse} returns this
2276
+ */
2277
+ proto.DeleteSalesOrgPlantResponse.prototype.clearMeta = function() {
2278
+ return this.setMeta(undefined);
2279
+ };
2280
+
2281
+
2282
+ /**
2283
+ * Returns whether this field is set.
2284
+ * @return {boolean}
2285
+ */
2286
+ proto.DeleteSalesOrgPlantResponse.prototype.hasMeta = function() {
2287
+ return jspb.Message.getField(this, 2) != null;
2288
+ };
2289
+
2290
+
2291
+ goog.object.extend(exports, proto);