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