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