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