@aldiokta/protocgen 1.1.66 → 1.1.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/audit_trail/audit_trail_grpc_pb.js +92 -0
  3. package/prisca/v1/audit_trail/audit_trail_pb.js +2107 -0
  4. package/prisca/v1/bidding/bidding_pb.js +61 -1
  5. package/prisca/v1/business_partner/business_partner_grpc_pb.js +334 -0
  6. package/prisca/v1/business_partner/business_partner_pb.js +5244 -0
  7. package/prisca/v1/core/auth/auth_grpc_pb.js +36 -0
  8. package/prisca/v1/core/auth/auth_pb.js +386 -0
  9. package/prisca/v1/core/bp_config/bp_config_grpc_pb.js +697 -0
  10. package/prisca/v1/core/bp_config/bp_config_pb.js +10812 -0
  11. package/prisca/v1/core/employee/employee_pb.js +61 -1
  12. package/prisca/v1/core/item_transaction/item_transaction_pb.js +340 -10
  13. package/prisca/v1/core/job_title/job_title_pb.js +31 -1
  14. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +73 -0
  15. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +2027 -0
  16. package/prisca/v1/core/material_sales/material_account_assignment_group_grpc_pb.js +183 -0
  17. package/prisca/v1/core/material_sales/material_account_assignment_group_pb.js +2658 -0
  18. package/prisca/v1/core/material_sales/material_division_grpc_pb.js +199 -0
  19. package/prisca/v1/core/material_sales/material_division_pb.js +2706 -0
  20. package/prisca/v1/core/material_sales/material_item_category_group_grpc_pb.js +183 -0
  21. package/prisca/v1/core/material_sales/material_item_category_group_pb.js +2658 -0
  22. package/prisca/v1/core/material_sales/material_plant_grpc_pb.js +193 -0
  23. package/prisca/v1/core/material_sales/material_plant_pb.js +2757 -0
  24. package/prisca/v1/core/material_sales/material_sales_eligibility_grpc_pb.js +62 -0
  25. package/prisca/v1/core/material_sales/material_sales_eligibility_pb.js +475 -0
  26. package/prisca/v1/core/material_sales/material_sales_org_grpc_pb.js +191 -0
  27. package/prisca/v1/core/material_sales/material_sales_org_pb.js +2937 -0
  28. package/prisca/v1/core/material_sales/material_tax_classification_grpc_pb.js +193 -0
  29. package/prisca/v1/core/material_sales/material_tax_classification_pb.js +2817 -0
  30. package/prisca/v1/core/material_sales/material_tax_classification_value_grpc_pb.js +194 -0
  31. package/prisca/v1/core/material_sales/material_tax_classification_value_pb.js +2868 -0
  32. package/prisca/v1/core/material_sales/material_withholding_tax_group_grpc_pb.js +188 -0
  33. package/prisca/v1/core/material_sales/material_withholding_tax_group_pb.js +2658 -0
  34. package/prisca/v1/core/sales_org/distribution_channel_grpc_pb.js +180 -0
  35. package/prisca/v1/core/sales_org/distribution_channel_pb.js +2658 -0
  36. package/prisca/v1/core/sales_org/sales_address_grpc_pb.js +1 -0
  37. package/prisca/v1/core/sales_org/sales_address_pb.js +380 -0
  38. package/prisca/v1/core/sales_org/sales_area_grpc_pb.js +157 -0
  39. package/prisca/v1/core/sales_org/sales_area_pb.js +2381 -0
  40. package/prisca/v1/core/sales_org/sales_division_grpc_pb.js +180 -0
  41. package/prisca/v1/core/sales_org/sales_division_pb.js +2658 -0
  42. package/prisca/v1/core/sales_org/sales_group_assignment_grpc_pb.js +151 -0
  43. package/prisca/v1/core/sales_org/sales_group_assignment_pb.js +2231 -0
  44. package/prisca/v1/core/sales_org/sales_group_grpc_pb.js +180 -0
  45. package/prisca/v1/core/sales_org/sales_group_pb.js +2658 -0
  46. package/prisca/v1/core/sales_org/sales_office_assignment_grpc_pb.js +151 -0
  47. package/prisca/v1/core/sales_org/sales_office_assignment_pb.js +2231 -0
  48. package/prisca/v1/core/sales_org/sales_office_grpc_pb.js +181 -0
  49. package/prisca/v1/core/sales_org/sales_office_pb.js +2762 -0
  50. package/prisca/v1/core/sales_org/sales_org_distribution_channel_grpc_pb.js +151 -0
  51. package/prisca/v1/core/sales_org/sales_org_distribution_channel_pb.js +2231 -0
  52. package/prisca/v1/core/sales_org/sales_org_division_grpc_pb.js +151 -0
  53. package/prisca/v1/core/sales_org/sales_org_division_pb.js +2231 -0
  54. package/prisca/v1/core/sales_org/sales_org_plant_grpc_pb.js +152 -0
  55. package/prisca/v1/core/sales_org/sales_org_plant_pb.js +2291 -0
  56. package/prisca/v1/core/sales_org/sales_organization_grpc_pb.js +181 -0
  57. package/prisca/v1/core/sales_org/sales_organization_pb.js +2822 -0
  58. package/prisca/v1/core/sales_org/shipping_point_grpc_pb.js +181 -0
  59. package/prisca/v1/core/sales_org/shipping_point_pb.js +2762 -0
  60. package/prisca/v1/core/sales_org/shipping_point_plant_grpc_pb.js +152 -0
  61. package/prisca/v1/core/sales_org/shipping_point_plant_pb.js +2231 -0
  62. package/prisca/v1/core/transaction_type/transaction_type_grpc_pb.js +147 -0
  63. package/prisca/v1/core/transaction_type/transaction_type_pb.js +2587 -0
  64. package/prisca/v1/customer/customer_grpc_pb.js +184 -0
  65. package/prisca/v1/customer/customer_pb.js +3498 -0
  66. package/prisca/v1/customer/customer_registration_grpc_pb.js +93 -0
  67. package/prisca/v1/customer/customer_registration_pb.js +1300 -0
  68. package/prisca/v1/customer/customer_sales_area_grpc_pb.js +256 -0
  69. package/prisca/v1/customer/customer_sales_area_pb.js +4681 -0
  70. package/prisca/v1/delivery_order/delivery_order_pb.js +61 -1
  71. package/prisca/v1/good_receipt/good_receipt_pb.js +31 -1
  72. package/prisca/v1/invoice/invoice_pb.js +62 -2
  73. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +87 -0
  74. package/prisca/v1/purchase_order/purchase_order_pb.js +1015 -5
  75. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +31 -1
  76. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +152 -2
  77. package/prisca/v1/vendor_domain/vendor_domain_pb.js +94 -15
@@ -0,0 +1,2868 @@
1
+ // source: prisca/v1/core/material_sales/material_tax_classification_value.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.BaseMaterialTaxClassificationValueRequest', null, global);
21
+ goog.exportSymbol('proto.CreateMaterialTaxClassificationValueRequest', null, global);
22
+ goog.exportSymbol('proto.CreateMaterialTaxClassificationValueResponse', null, global);
23
+ goog.exportSymbol('proto.DeleteMaterialTaxClassificationValueRequest', null, global);
24
+ goog.exportSymbol('proto.DeleteMaterialTaxClassificationValueResponse', null, global);
25
+ goog.exportSymbol('proto.GetListMaterialTaxClassificationValueRequest', null, global);
26
+ goog.exportSymbol('proto.GetListMaterialTaxClassificationValueResponse', null, global);
27
+ goog.exportSymbol('proto.GetMaterialTaxClassificationValueByIdRequest', null, global);
28
+ goog.exportSymbol('proto.GetMaterialTaxClassificationValueByIdResponse', null, global);
29
+ goog.exportSymbol('proto.MaterialTaxClassificationValue', null, global);
30
+ goog.exportSymbol('proto.UpdateMaterialTaxClassificationValueRequest', null, global);
31
+ goog.exportSymbol('proto.UpdateMaterialTaxClassificationValueResponse', 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.MaterialTaxClassificationValue = function(opt_data) {
43
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
44
+ };
45
+ goog.inherits(proto.MaterialTaxClassificationValue, jspb.Message);
46
+ if (goog.DEBUG && !COMPILED) {
47
+ /**
48
+ * @public
49
+ * @override
50
+ */
51
+ proto.MaterialTaxClassificationValue.displayName = 'proto.MaterialTaxClassificationValue';
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.BaseMaterialTaxClassificationValueRequest = function(opt_data) {
64
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
65
+ };
66
+ goog.inherits(proto.BaseMaterialTaxClassificationValueRequest, jspb.Message);
67
+ if (goog.DEBUG && !COMPILED) {
68
+ /**
69
+ * @public
70
+ * @override
71
+ */
72
+ proto.BaseMaterialTaxClassificationValueRequest.displayName = 'proto.BaseMaterialTaxClassificationValueRequest';
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.GetMaterialTaxClassificationValueByIdRequest = function(opt_data) {
85
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
86
+ };
87
+ goog.inherits(proto.GetMaterialTaxClassificationValueByIdRequest, jspb.Message);
88
+ if (goog.DEBUG && !COMPILED) {
89
+ /**
90
+ * @public
91
+ * @override
92
+ */
93
+ proto.GetMaterialTaxClassificationValueByIdRequest.displayName = 'proto.GetMaterialTaxClassificationValueByIdRequest';
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.GetListMaterialTaxClassificationValueRequest = function(opt_data) {
106
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
107
+ };
108
+ goog.inherits(proto.GetListMaterialTaxClassificationValueRequest, jspb.Message);
109
+ if (goog.DEBUG && !COMPILED) {
110
+ /**
111
+ * @public
112
+ * @override
113
+ */
114
+ proto.GetListMaterialTaxClassificationValueRequest.displayName = 'proto.GetListMaterialTaxClassificationValueRequest';
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.CreateMaterialTaxClassificationValueRequest = function(opt_data) {
127
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
128
+ };
129
+ goog.inherits(proto.CreateMaterialTaxClassificationValueRequest, jspb.Message);
130
+ if (goog.DEBUG && !COMPILED) {
131
+ /**
132
+ * @public
133
+ * @override
134
+ */
135
+ proto.CreateMaterialTaxClassificationValueRequest.displayName = 'proto.CreateMaterialTaxClassificationValueRequest';
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.UpdateMaterialTaxClassificationValueRequest = function(opt_data) {
148
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
149
+ };
150
+ goog.inherits(proto.UpdateMaterialTaxClassificationValueRequest, jspb.Message);
151
+ if (goog.DEBUG && !COMPILED) {
152
+ /**
153
+ * @public
154
+ * @override
155
+ */
156
+ proto.UpdateMaterialTaxClassificationValueRequest.displayName = 'proto.UpdateMaterialTaxClassificationValueRequest';
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.DeleteMaterialTaxClassificationValueRequest = function(opt_data) {
169
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteMaterialTaxClassificationValueRequest.repeatedFields_, null);
170
+ };
171
+ goog.inherits(proto.DeleteMaterialTaxClassificationValueRequest, jspb.Message);
172
+ if (goog.DEBUG && !COMPILED) {
173
+ /**
174
+ * @public
175
+ * @override
176
+ */
177
+ proto.DeleteMaterialTaxClassificationValueRequest.displayName = 'proto.DeleteMaterialTaxClassificationValueRequest';
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.CreateMaterialTaxClassificationValueResponse = function(opt_data) {
190
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
191
+ };
192
+ goog.inherits(proto.CreateMaterialTaxClassificationValueResponse, jspb.Message);
193
+ if (goog.DEBUG && !COMPILED) {
194
+ /**
195
+ * @public
196
+ * @override
197
+ */
198
+ proto.CreateMaterialTaxClassificationValueResponse.displayName = 'proto.CreateMaterialTaxClassificationValueResponse';
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.UpdateMaterialTaxClassificationValueResponse = function(opt_data) {
211
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
212
+ };
213
+ goog.inherits(proto.UpdateMaterialTaxClassificationValueResponse, jspb.Message);
214
+ if (goog.DEBUG && !COMPILED) {
215
+ /**
216
+ * @public
217
+ * @override
218
+ */
219
+ proto.UpdateMaterialTaxClassificationValueResponse.displayName = 'proto.UpdateMaterialTaxClassificationValueResponse';
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.GetMaterialTaxClassificationValueByIdResponse = function(opt_data) {
232
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
233
+ };
234
+ goog.inherits(proto.GetMaterialTaxClassificationValueByIdResponse, jspb.Message);
235
+ if (goog.DEBUG && !COMPILED) {
236
+ /**
237
+ * @public
238
+ * @override
239
+ */
240
+ proto.GetMaterialTaxClassificationValueByIdResponse.displayName = 'proto.GetMaterialTaxClassificationValueByIdResponse';
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.GetListMaterialTaxClassificationValueResponse = function(opt_data) {
253
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListMaterialTaxClassificationValueResponse.repeatedFields_, null);
254
+ };
255
+ goog.inherits(proto.GetListMaterialTaxClassificationValueResponse, jspb.Message);
256
+ if (goog.DEBUG && !COMPILED) {
257
+ /**
258
+ * @public
259
+ * @override
260
+ */
261
+ proto.GetListMaterialTaxClassificationValueResponse.displayName = 'proto.GetListMaterialTaxClassificationValueResponse';
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.DeleteMaterialTaxClassificationValueResponse = function(opt_data) {
274
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteMaterialTaxClassificationValueResponse.repeatedFields_, null);
275
+ };
276
+ goog.inherits(proto.DeleteMaterialTaxClassificationValueResponse, jspb.Message);
277
+ if (goog.DEBUG && !COMPILED) {
278
+ /**
279
+ * @public
280
+ * @override
281
+ */
282
+ proto.DeleteMaterialTaxClassificationValueResponse.displayName = 'proto.DeleteMaterialTaxClassificationValueResponse';
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.MaterialTaxClassificationValue.prototype.toObject = function(opt_includeInstance) {
301
+ return proto.MaterialTaxClassificationValue.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.MaterialTaxClassificationValue} msg The msg instance to transform.
311
+ * @return {!Object}
312
+ * @suppress {unusedLocalVariables} f is only used for nested messages
313
+ */
314
+ proto.MaterialTaxClassificationValue.toObject = function(includeInstance, msg) {
315
+ var f, obj = {
316
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
317
+ referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
318
+ countryReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
319
+ taxCategory: jspb.Message.getFieldWithDefault(msg, 4, ""),
320
+ code: jspb.Message.getFieldWithDefault(msg, 5, ""),
321
+ name: 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.MaterialTaxClassificationValue}
342
+ */
343
+ proto.MaterialTaxClassificationValue.deserializeBinary = function(bytes) {
344
+ var reader = new jspb.BinaryReader(bytes);
345
+ var msg = new proto.MaterialTaxClassificationValue;
346
+ return proto.MaterialTaxClassificationValue.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.MaterialTaxClassificationValue} msg The message object to deserialize into.
354
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
355
+ * @return {!proto.MaterialTaxClassificationValue}
356
+ */
357
+ proto.MaterialTaxClassificationValue.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.setCountryReferencesId(value);
375
+ break;
376
+ case 4:
377
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
378
+ msg.setTaxCategory(value);
379
+ break;
380
+ case 5:
381
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
382
+ msg.setCode(value);
383
+ break;
384
+ case 6:
385
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
386
+ msg.setName(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.MaterialTaxClassificationValue.prototype.serializeBinary = function() {
426
+ var writer = new jspb.BinaryWriter();
427
+ proto.MaterialTaxClassificationValue.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.MaterialTaxClassificationValue} message
436
+ * @param {!jspb.BinaryWriter} writer
437
+ * @suppress {unusedLocalVariables} f is only used for nested messages
438
+ */
439
+ proto.MaterialTaxClassificationValue.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.getCountryReferencesId();
456
+ if (f.length > 0) {
457
+ writer.writeString(
458
+ 3,
459
+ f
460
+ );
461
+ }
462
+ f = message.getTaxCategory();
463
+ if (f.length > 0) {
464
+ writer.writeString(
465
+ 4,
466
+ f
467
+ );
468
+ }
469
+ f = message.getCode();
470
+ if (f.length > 0) {
471
+ writer.writeString(
472
+ 5,
473
+ f
474
+ );
475
+ }
476
+ f = message.getName();
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.MaterialTaxClassificationValue.prototype.getId = function() {
533
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
534
+ };
535
+
536
+
537
+ /**
538
+ * @param {number} value
539
+ * @return {!proto.MaterialTaxClassificationValue} returns this
540
+ */
541
+ proto.MaterialTaxClassificationValue.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.MaterialTaxClassificationValue.prototype.getReferencesId = function() {
551
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
552
+ };
553
+
554
+
555
+ /**
556
+ * @param {string} value
557
+ * @return {!proto.MaterialTaxClassificationValue} returns this
558
+ */
559
+ proto.MaterialTaxClassificationValue.prototype.setReferencesId = function(value) {
560
+ return jspb.Message.setProto3StringField(this, 2, value);
561
+ };
562
+
563
+
564
+ /**
565
+ * optional string country_references_id = 3;
566
+ * @return {string}
567
+ */
568
+ proto.MaterialTaxClassificationValue.prototype.getCountryReferencesId = function() {
569
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
570
+ };
571
+
572
+
573
+ /**
574
+ * @param {string} value
575
+ * @return {!proto.MaterialTaxClassificationValue} returns this
576
+ */
577
+ proto.MaterialTaxClassificationValue.prototype.setCountryReferencesId = function(value) {
578
+ return jspb.Message.setProto3StringField(this, 3, value);
579
+ };
580
+
581
+
582
+ /**
583
+ * optional string tax_category = 4;
584
+ * @return {string}
585
+ */
586
+ proto.MaterialTaxClassificationValue.prototype.getTaxCategory = function() {
587
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
588
+ };
589
+
590
+
591
+ /**
592
+ * @param {string} value
593
+ * @return {!proto.MaterialTaxClassificationValue} returns this
594
+ */
595
+ proto.MaterialTaxClassificationValue.prototype.setTaxCategory = function(value) {
596
+ return jspb.Message.setProto3StringField(this, 4, value);
597
+ };
598
+
599
+
600
+ /**
601
+ * optional string code = 5;
602
+ * @return {string}
603
+ */
604
+ proto.MaterialTaxClassificationValue.prototype.getCode = function() {
605
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
606
+ };
607
+
608
+
609
+ /**
610
+ * @param {string} value
611
+ * @return {!proto.MaterialTaxClassificationValue} returns this
612
+ */
613
+ proto.MaterialTaxClassificationValue.prototype.setCode = function(value) {
614
+ return jspb.Message.setProto3StringField(this, 5, value);
615
+ };
616
+
617
+
618
+ /**
619
+ * optional string name = 6;
620
+ * @return {string}
621
+ */
622
+ proto.MaterialTaxClassificationValue.prototype.getName = function() {
623
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
624
+ };
625
+
626
+
627
+ /**
628
+ * @param {string} value
629
+ * @return {!proto.MaterialTaxClassificationValue} returns this
630
+ */
631
+ proto.MaterialTaxClassificationValue.prototype.setName = 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.MaterialTaxClassificationValue.prototype.getCountryName = function() {
641
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
642
+ };
643
+
644
+
645
+ /**
646
+ * @param {string} value
647
+ * @return {!proto.MaterialTaxClassificationValue} returns this
648
+ */
649
+ proto.MaterialTaxClassificationValue.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.MaterialTaxClassificationValue.prototype.getCompaniesReferencesId = function() {
659
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
660
+ };
661
+
662
+
663
+ /**
664
+ * @param {string} value
665
+ * @return {!proto.MaterialTaxClassificationValue} returns this
666
+ */
667
+ proto.MaterialTaxClassificationValue.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.MaterialTaxClassificationValue.prototype.getCreatedAt = function() {
677
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
678
+ };
679
+
680
+
681
+ /**
682
+ * @param {string} value
683
+ * @return {!proto.MaterialTaxClassificationValue} returns this
684
+ */
685
+ proto.MaterialTaxClassificationValue.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.MaterialTaxClassificationValue.prototype.getUpdatedAt = function() {
695
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
696
+ };
697
+
698
+
699
+ /**
700
+ * @param {string} value
701
+ * @return {!proto.MaterialTaxClassificationValue} returns this
702
+ */
703
+ proto.MaterialTaxClassificationValue.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.MaterialTaxClassificationValue.prototype.getCreatedBy = function() {
713
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
714
+ };
715
+
716
+
717
+ /**
718
+ * @param {string} value
719
+ * @return {!proto.MaterialTaxClassificationValue} returns this
720
+ */
721
+ proto.MaterialTaxClassificationValue.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.MaterialTaxClassificationValue.prototype.getUpdatedBy = function() {
731
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
732
+ };
733
+
734
+
735
+ /**
736
+ * @param {string} value
737
+ * @return {!proto.MaterialTaxClassificationValue} returns this
738
+ */
739
+ proto.MaterialTaxClassificationValue.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.BaseMaterialTaxClassificationValueRequest.prototype.toObject = function(opt_includeInstance) {
761
+ return proto.BaseMaterialTaxClassificationValueRequest.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.BaseMaterialTaxClassificationValueRequest} msg The msg instance to transform.
771
+ * @return {!Object}
772
+ * @suppress {unusedLocalVariables} f is only used for nested messages
773
+ */
774
+ proto.BaseMaterialTaxClassificationValueRequest.toObject = function(includeInstance, msg) {
775
+ var f, obj = {
776
+ countryReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
777
+ taxCategory: jspb.Message.getFieldWithDefault(msg, 2, ""),
778
+ code: jspb.Message.getFieldWithDefault(msg, 3, ""),
779
+ name: 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.BaseMaterialTaxClassificationValueRequest}
794
+ */
795
+ proto.BaseMaterialTaxClassificationValueRequest.deserializeBinary = function(bytes) {
796
+ var reader = new jspb.BinaryReader(bytes);
797
+ var msg = new proto.BaseMaterialTaxClassificationValueRequest;
798
+ return proto.BaseMaterialTaxClassificationValueRequest.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.BaseMaterialTaxClassificationValueRequest} msg The message object to deserialize into.
806
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
807
+ * @return {!proto.BaseMaterialTaxClassificationValueRequest}
808
+ */
809
+ proto.BaseMaterialTaxClassificationValueRequest.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.setCountryReferencesId(value);
819
+ break;
820
+ case 2:
821
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
822
+ msg.setTaxCategory(value);
823
+ break;
824
+ case 3:
825
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
826
+ msg.setCode(value);
827
+ break;
828
+ case 4:
829
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
830
+ msg.setName(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.BaseMaterialTaxClassificationValueRequest.prototype.serializeBinary = function() {
846
+ var writer = new jspb.BinaryWriter();
847
+ proto.BaseMaterialTaxClassificationValueRequest.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.BaseMaterialTaxClassificationValueRequest} message
856
+ * @param {!jspb.BinaryWriter} writer
857
+ * @suppress {unusedLocalVariables} f is only used for nested messages
858
+ */
859
+ proto.BaseMaterialTaxClassificationValueRequest.serializeBinaryToWriter = function(message, writer) {
860
+ var f = undefined;
861
+ f = message.getCountryReferencesId();
862
+ if (f.length > 0) {
863
+ writer.writeString(
864
+ 1,
865
+ f
866
+ );
867
+ }
868
+ f = message.getTaxCategory();
869
+ if (f.length > 0) {
870
+ writer.writeString(
871
+ 2,
872
+ f
873
+ );
874
+ }
875
+ f = message.getCode();
876
+ if (f.length > 0) {
877
+ writer.writeString(
878
+ 3,
879
+ f
880
+ );
881
+ }
882
+ f = message.getName();
883
+ if (f.length > 0) {
884
+ writer.writeString(
885
+ 4,
886
+ f
887
+ );
888
+ }
889
+ };
890
+
891
+
892
+ /**
893
+ * optional string country_references_id = 1;
894
+ * @return {string}
895
+ */
896
+ proto.BaseMaterialTaxClassificationValueRequest.prototype.getCountryReferencesId = function() {
897
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
898
+ };
899
+
900
+
901
+ /**
902
+ * @param {string} value
903
+ * @return {!proto.BaseMaterialTaxClassificationValueRequest} returns this
904
+ */
905
+ proto.BaseMaterialTaxClassificationValueRequest.prototype.setCountryReferencesId = function(value) {
906
+ return jspb.Message.setProto3StringField(this, 1, value);
907
+ };
908
+
909
+
910
+ /**
911
+ * optional string tax_category = 2;
912
+ * @return {string}
913
+ */
914
+ proto.BaseMaterialTaxClassificationValueRequest.prototype.getTaxCategory = function() {
915
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
916
+ };
917
+
918
+
919
+ /**
920
+ * @param {string} value
921
+ * @return {!proto.BaseMaterialTaxClassificationValueRequest} returns this
922
+ */
923
+ proto.BaseMaterialTaxClassificationValueRequest.prototype.setTaxCategory = function(value) {
924
+ return jspb.Message.setProto3StringField(this, 2, value);
925
+ };
926
+
927
+
928
+ /**
929
+ * optional string code = 3;
930
+ * @return {string}
931
+ */
932
+ proto.BaseMaterialTaxClassificationValueRequest.prototype.getCode = function() {
933
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
934
+ };
935
+
936
+
937
+ /**
938
+ * @param {string} value
939
+ * @return {!proto.BaseMaterialTaxClassificationValueRequest} returns this
940
+ */
941
+ proto.BaseMaterialTaxClassificationValueRequest.prototype.setCode = function(value) {
942
+ return jspb.Message.setProto3StringField(this, 3, value);
943
+ };
944
+
945
+
946
+ /**
947
+ * optional string name = 4;
948
+ * @return {string}
949
+ */
950
+ proto.BaseMaterialTaxClassificationValueRequest.prototype.getName = function() {
951
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
952
+ };
953
+
954
+
955
+ /**
956
+ * @param {string} value
957
+ * @return {!proto.BaseMaterialTaxClassificationValueRequest} returns this
958
+ */
959
+ proto.BaseMaterialTaxClassificationValueRequest.prototype.setName = 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.GetMaterialTaxClassificationValueByIdRequest.prototype.toObject = function(opt_includeInstance) {
981
+ return proto.GetMaterialTaxClassificationValueByIdRequest.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.GetMaterialTaxClassificationValueByIdRequest} msg The msg instance to transform.
991
+ * @return {!Object}
992
+ * @suppress {unusedLocalVariables} f is only used for nested messages
993
+ */
994
+ proto.GetMaterialTaxClassificationValueByIdRequest.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.GetMaterialTaxClassificationValueByIdRequest}
1011
+ */
1012
+ proto.GetMaterialTaxClassificationValueByIdRequest.deserializeBinary = function(bytes) {
1013
+ var reader = new jspb.BinaryReader(bytes);
1014
+ var msg = new proto.GetMaterialTaxClassificationValueByIdRequest;
1015
+ return proto.GetMaterialTaxClassificationValueByIdRequest.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.GetMaterialTaxClassificationValueByIdRequest} msg The message object to deserialize into.
1023
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1024
+ * @return {!proto.GetMaterialTaxClassificationValueByIdRequest}
1025
+ */
1026
+ proto.GetMaterialTaxClassificationValueByIdRequest.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.GetMaterialTaxClassificationValueByIdRequest.prototype.serializeBinary = function() {
1051
+ var writer = new jspb.BinaryWriter();
1052
+ proto.GetMaterialTaxClassificationValueByIdRequest.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.GetMaterialTaxClassificationValueByIdRequest} message
1061
+ * @param {!jspb.BinaryWriter} writer
1062
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1063
+ */
1064
+ proto.GetMaterialTaxClassificationValueByIdRequest.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.GetMaterialTaxClassificationValueByIdRequest.prototype.getReferencesId = function() {
1081
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1082
+ };
1083
+
1084
+
1085
+ /**
1086
+ * @param {string} value
1087
+ * @return {!proto.GetMaterialTaxClassificationValueByIdRequest} returns this
1088
+ */
1089
+ proto.GetMaterialTaxClassificationValueByIdRequest.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.GetListMaterialTaxClassificationValueRequest.prototype.toObject = function(opt_includeInstance) {
1111
+ return proto.GetListMaterialTaxClassificationValueRequest.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.GetListMaterialTaxClassificationValueRequest} msg The msg instance to transform.
1121
+ * @return {!Object}
1122
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1123
+ */
1124
+ proto.GetListMaterialTaxClassificationValueRequest.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
+ countryReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
1129
+ taxCategory: jspb.Message.getFieldWithDefault(msg, 4, "")
1130
+ };
1131
+
1132
+ if (includeInstance) {
1133
+ obj.$jspbMessageInstance = msg;
1134
+ }
1135
+ return obj;
1136
+ };
1137
+ }
1138
+
1139
+
1140
+ /**
1141
+ * Deserializes binary data (in protobuf wire format).
1142
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1143
+ * @return {!proto.GetListMaterialTaxClassificationValueRequest}
1144
+ */
1145
+ proto.GetListMaterialTaxClassificationValueRequest.deserializeBinary = function(bytes) {
1146
+ var reader = new jspb.BinaryReader(bytes);
1147
+ var msg = new proto.GetListMaterialTaxClassificationValueRequest;
1148
+ return proto.GetListMaterialTaxClassificationValueRequest.deserializeBinaryFromReader(msg, reader);
1149
+ };
1150
+
1151
+
1152
+ /**
1153
+ * Deserializes binary data (in protobuf wire format) from the
1154
+ * given reader into the given message object.
1155
+ * @param {!proto.GetListMaterialTaxClassificationValueRequest} msg The message object to deserialize into.
1156
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1157
+ * @return {!proto.GetListMaterialTaxClassificationValueRequest}
1158
+ */
1159
+ proto.GetListMaterialTaxClassificationValueRequest.deserializeBinaryFromReader = function(msg, reader) {
1160
+ while (reader.nextField()) {
1161
+ if (reader.isEndGroup()) {
1162
+ break;
1163
+ }
1164
+ var field = reader.getFieldNumber();
1165
+ switch (field) {
1166
+ case 1:
1167
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1168
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1169
+ msg.setPagination(value);
1170
+ break;
1171
+ case 2:
1172
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1173
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1174
+ msg.setQuery(value);
1175
+ break;
1176
+ case 3:
1177
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1178
+ msg.setCountryReferencesId(value);
1179
+ break;
1180
+ case 4:
1181
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1182
+ msg.setTaxCategory(value);
1183
+ break;
1184
+ default:
1185
+ reader.skipField();
1186
+ break;
1187
+ }
1188
+ }
1189
+ return msg;
1190
+ };
1191
+
1192
+
1193
+ /**
1194
+ * Serializes the message to binary data (in protobuf wire format).
1195
+ * @return {!Uint8Array}
1196
+ */
1197
+ proto.GetListMaterialTaxClassificationValueRequest.prototype.serializeBinary = function() {
1198
+ var writer = new jspb.BinaryWriter();
1199
+ proto.GetListMaterialTaxClassificationValueRequest.serializeBinaryToWriter(this, writer);
1200
+ return writer.getResultBuffer();
1201
+ };
1202
+
1203
+
1204
+ /**
1205
+ * Serializes the given message to binary data (in protobuf wire
1206
+ * format), writing to the given BinaryWriter.
1207
+ * @param {!proto.GetListMaterialTaxClassificationValueRequest} message
1208
+ * @param {!jspb.BinaryWriter} writer
1209
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1210
+ */
1211
+ proto.GetListMaterialTaxClassificationValueRequest.serializeBinaryToWriter = function(message, writer) {
1212
+ var f = undefined;
1213
+ f = message.getPagination();
1214
+ if (f != null) {
1215
+ writer.writeMessage(
1216
+ 1,
1217
+ f,
1218
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1219
+ );
1220
+ }
1221
+ f = message.getQuery();
1222
+ if (f != null) {
1223
+ writer.writeMessage(
1224
+ 2,
1225
+ f,
1226
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1227
+ );
1228
+ }
1229
+ f = message.getCountryReferencesId();
1230
+ if (f.length > 0) {
1231
+ writer.writeString(
1232
+ 3,
1233
+ f
1234
+ );
1235
+ }
1236
+ f = message.getTaxCategory();
1237
+ if (f.length > 0) {
1238
+ writer.writeString(
1239
+ 4,
1240
+ f
1241
+ );
1242
+ }
1243
+ };
1244
+
1245
+
1246
+ /**
1247
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1248
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1249
+ */
1250
+ proto.GetListMaterialTaxClassificationValueRequest.prototype.getPagination = function() {
1251
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1252
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1253
+ };
1254
+
1255
+
1256
+ /**
1257
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1258
+ * @return {!proto.GetListMaterialTaxClassificationValueRequest} returns this
1259
+ */
1260
+ proto.GetListMaterialTaxClassificationValueRequest.prototype.setPagination = function(value) {
1261
+ return jspb.Message.setWrapperField(this, 1, value);
1262
+ };
1263
+
1264
+
1265
+ /**
1266
+ * Clears the message field making it undefined.
1267
+ * @return {!proto.GetListMaterialTaxClassificationValueRequest} returns this
1268
+ */
1269
+ proto.GetListMaterialTaxClassificationValueRequest.prototype.clearPagination = function() {
1270
+ return this.setPagination(undefined);
1271
+ };
1272
+
1273
+
1274
+ /**
1275
+ * Returns whether this field is set.
1276
+ * @return {boolean}
1277
+ */
1278
+ proto.GetListMaterialTaxClassificationValueRequest.prototype.hasPagination = function() {
1279
+ return jspb.Message.getField(this, 1) != null;
1280
+ };
1281
+
1282
+
1283
+ /**
1284
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
1285
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
1286
+ */
1287
+ proto.GetListMaterialTaxClassificationValueRequest.prototype.getQuery = function() {
1288
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1289
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1290
+ };
1291
+
1292
+
1293
+ /**
1294
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1295
+ * @return {!proto.GetListMaterialTaxClassificationValueRequest} returns this
1296
+ */
1297
+ proto.GetListMaterialTaxClassificationValueRequest.prototype.setQuery = function(value) {
1298
+ return jspb.Message.setWrapperField(this, 2, value);
1299
+ };
1300
+
1301
+
1302
+ /**
1303
+ * Clears the message field making it undefined.
1304
+ * @return {!proto.GetListMaterialTaxClassificationValueRequest} returns this
1305
+ */
1306
+ proto.GetListMaterialTaxClassificationValueRequest.prototype.clearQuery = function() {
1307
+ return this.setQuery(undefined);
1308
+ };
1309
+
1310
+
1311
+ /**
1312
+ * Returns whether this field is set.
1313
+ * @return {boolean}
1314
+ */
1315
+ proto.GetListMaterialTaxClassificationValueRequest.prototype.hasQuery = function() {
1316
+ return jspb.Message.getField(this, 2) != null;
1317
+ };
1318
+
1319
+
1320
+ /**
1321
+ * optional string country_references_id = 3;
1322
+ * @return {string}
1323
+ */
1324
+ proto.GetListMaterialTaxClassificationValueRequest.prototype.getCountryReferencesId = function() {
1325
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1326
+ };
1327
+
1328
+
1329
+ /**
1330
+ * @param {string} value
1331
+ * @return {!proto.GetListMaterialTaxClassificationValueRequest} returns this
1332
+ */
1333
+ proto.GetListMaterialTaxClassificationValueRequest.prototype.setCountryReferencesId = function(value) {
1334
+ return jspb.Message.setProto3StringField(this, 3, value);
1335
+ };
1336
+
1337
+
1338
+ /**
1339
+ * optional string tax_category = 4;
1340
+ * @return {string}
1341
+ */
1342
+ proto.GetListMaterialTaxClassificationValueRequest.prototype.getTaxCategory = function() {
1343
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1344
+ };
1345
+
1346
+
1347
+ /**
1348
+ * @param {string} value
1349
+ * @return {!proto.GetListMaterialTaxClassificationValueRequest} returns this
1350
+ */
1351
+ proto.GetListMaterialTaxClassificationValueRequest.prototype.setTaxCategory = function(value) {
1352
+ return jspb.Message.setProto3StringField(this, 4, value);
1353
+ };
1354
+
1355
+
1356
+
1357
+
1358
+
1359
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1360
+ /**
1361
+ * Creates an object representation of this proto.
1362
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1363
+ * Optional fields that are not set will be set to undefined.
1364
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1365
+ * For the list of reserved names please see:
1366
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1367
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1368
+ * JSPB instance for transitional soy proto support:
1369
+ * http://goto/soy-param-migration
1370
+ * @return {!Object}
1371
+ */
1372
+ proto.CreateMaterialTaxClassificationValueRequest.prototype.toObject = function(opt_includeInstance) {
1373
+ return proto.CreateMaterialTaxClassificationValueRequest.toObject(opt_includeInstance, this);
1374
+ };
1375
+
1376
+
1377
+ /**
1378
+ * Static version of the {@see toObject} method.
1379
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1380
+ * the JSPB instance for transitional soy proto support:
1381
+ * http://goto/soy-param-migration
1382
+ * @param {!proto.CreateMaterialTaxClassificationValueRequest} msg The msg instance to transform.
1383
+ * @return {!Object}
1384
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1385
+ */
1386
+ proto.CreateMaterialTaxClassificationValueRequest.toObject = function(includeInstance, msg) {
1387
+ var f, obj = {
1388
+ baseRequest: (f = msg.getBaseRequest()) && proto.BaseMaterialTaxClassificationValueRequest.toObject(includeInstance, f)
1389
+ };
1390
+
1391
+ if (includeInstance) {
1392
+ obj.$jspbMessageInstance = msg;
1393
+ }
1394
+ return obj;
1395
+ };
1396
+ }
1397
+
1398
+
1399
+ /**
1400
+ * Deserializes binary data (in protobuf wire format).
1401
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1402
+ * @return {!proto.CreateMaterialTaxClassificationValueRequest}
1403
+ */
1404
+ proto.CreateMaterialTaxClassificationValueRequest.deserializeBinary = function(bytes) {
1405
+ var reader = new jspb.BinaryReader(bytes);
1406
+ var msg = new proto.CreateMaterialTaxClassificationValueRequest;
1407
+ return proto.CreateMaterialTaxClassificationValueRequest.deserializeBinaryFromReader(msg, reader);
1408
+ };
1409
+
1410
+
1411
+ /**
1412
+ * Deserializes binary data (in protobuf wire format) from the
1413
+ * given reader into the given message object.
1414
+ * @param {!proto.CreateMaterialTaxClassificationValueRequest} msg The message object to deserialize into.
1415
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1416
+ * @return {!proto.CreateMaterialTaxClassificationValueRequest}
1417
+ */
1418
+ proto.CreateMaterialTaxClassificationValueRequest.deserializeBinaryFromReader = function(msg, reader) {
1419
+ while (reader.nextField()) {
1420
+ if (reader.isEndGroup()) {
1421
+ break;
1422
+ }
1423
+ var field = reader.getFieldNumber();
1424
+ switch (field) {
1425
+ case 1:
1426
+ var value = new proto.BaseMaterialTaxClassificationValueRequest;
1427
+ reader.readMessage(value,proto.BaseMaterialTaxClassificationValueRequest.deserializeBinaryFromReader);
1428
+ msg.setBaseRequest(value);
1429
+ break;
1430
+ default:
1431
+ reader.skipField();
1432
+ break;
1433
+ }
1434
+ }
1435
+ return msg;
1436
+ };
1437
+
1438
+
1439
+ /**
1440
+ * Serializes the message to binary data (in protobuf wire format).
1441
+ * @return {!Uint8Array}
1442
+ */
1443
+ proto.CreateMaterialTaxClassificationValueRequest.prototype.serializeBinary = function() {
1444
+ var writer = new jspb.BinaryWriter();
1445
+ proto.CreateMaterialTaxClassificationValueRequest.serializeBinaryToWriter(this, writer);
1446
+ return writer.getResultBuffer();
1447
+ };
1448
+
1449
+
1450
+ /**
1451
+ * Serializes the given message to binary data (in protobuf wire
1452
+ * format), writing to the given BinaryWriter.
1453
+ * @param {!proto.CreateMaterialTaxClassificationValueRequest} message
1454
+ * @param {!jspb.BinaryWriter} writer
1455
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1456
+ */
1457
+ proto.CreateMaterialTaxClassificationValueRequest.serializeBinaryToWriter = function(message, writer) {
1458
+ var f = undefined;
1459
+ f = message.getBaseRequest();
1460
+ if (f != null) {
1461
+ writer.writeMessage(
1462
+ 1,
1463
+ f,
1464
+ proto.BaseMaterialTaxClassificationValueRequest.serializeBinaryToWriter
1465
+ );
1466
+ }
1467
+ };
1468
+
1469
+
1470
+ /**
1471
+ * optional BaseMaterialTaxClassificationValueRequest base_request = 1;
1472
+ * @return {?proto.BaseMaterialTaxClassificationValueRequest}
1473
+ */
1474
+ proto.CreateMaterialTaxClassificationValueRequest.prototype.getBaseRequest = function() {
1475
+ return /** @type{?proto.BaseMaterialTaxClassificationValueRequest} */ (
1476
+ jspb.Message.getWrapperField(this, proto.BaseMaterialTaxClassificationValueRequest, 1));
1477
+ };
1478
+
1479
+
1480
+ /**
1481
+ * @param {?proto.BaseMaterialTaxClassificationValueRequest|undefined} value
1482
+ * @return {!proto.CreateMaterialTaxClassificationValueRequest} returns this
1483
+ */
1484
+ proto.CreateMaterialTaxClassificationValueRequest.prototype.setBaseRequest = function(value) {
1485
+ return jspb.Message.setWrapperField(this, 1, value);
1486
+ };
1487
+
1488
+
1489
+ /**
1490
+ * Clears the message field making it undefined.
1491
+ * @return {!proto.CreateMaterialTaxClassificationValueRequest} returns this
1492
+ */
1493
+ proto.CreateMaterialTaxClassificationValueRequest.prototype.clearBaseRequest = function() {
1494
+ return this.setBaseRequest(undefined);
1495
+ };
1496
+
1497
+
1498
+ /**
1499
+ * Returns whether this field is set.
1500
+ * @return {boolean}
1501
+ */
1502
+ proto.CreateMaterialTaxClassificationValueRequest.prototype.hasBaseRequest = function() {
1503
+ return jspb.Message.getField(this, 1) != null;
1504
+ };
1505
+
1506
+
1507
+
1508
+
1509
+
1510
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1511
+ /**
1512
+ * Creates an object representation of this proto.
1513
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1514
+ * Optional fields that are not set will be set to undefined.
1515
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1516
+ * For the list of reserved names please see:
1517
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1518
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1519
+ * JSPB instance for transitional soy proto support:
1520
+ * http://goto/soy-param-migration
1521
+ * @return {!Object}
1522
+ */
1523
+ proto.UpdateMaterialTaxClassificationValueRequest.prototype.toObject = function(opt_includeInstance) {
1524
+ return proto.UpdateMaterialTaxClassificationValueRequest.toObject(opt_includeInstance, this);
1525
+ };
1526
+
1527
+
1528
+ /**
1529
+ * Static version of the {@see toObject} method.
1530
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1531
+ * the JSPB instance for transitional soy proto support:
1532
+ * http://goto/soy-param-migration
1533
+ * @param {!proto.UpdateMaterialTaxClassificationValueRequest} msg The msg instance to transform.
1534
+ * @return {!Object}
1535
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1536
+ */
1537
+ proto.UpdateMaterialTaxClassificationValueRequest.toObject = function(includeInstance, msg) {
1538
+ var f, obj = {
1539
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1540
+ baseRequest: (f = msg.getBaseRequest()) && proto.BaseMaterialTaxClassificationValueRequest.toObject(includeInstance, f)
1541
+ };
1542
+
1543
+ if (includeInstance) {
1544
+ obj.$jspbMessageInstance = msg;
1545
+ }
1546
+ return obj;
1547
+ };
1548
+ }
1549
+
1550
+
1551
+ /**
1552
+ * Deserializes binary data (in protobuf wire format).
1553
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1554
+ * @return {!proto.UpdateMaterialTaxClassificationValueRequest}
1555
+ */
1556
+ proto.UpdateMaterialTaxClassificationValueRequest.deserializeBinary = function(bytes) {
1557
+ var reader = new jspb.BinaryReader(bytes);
1558
+ var msg = new proto.UpdateMaterialTaxClassificationValueRequest;
1559
+ return proto.UpdateMaterialTaxClassificationValueRequest.deserializeBinaryFromReader(msg, reader);
1560
+ };
1561
+
1562
+
1563
+ /**
1564
+ * Deserializes binary data (in protobuf wire format) from the
1565
+ * given reader into the given message object.
1566
+ * @param {!proto.UpdateMaterialTaxClassificationValueRequest} msg The message object to deserialize into.
1567
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1568
+ * @return {!proto.UpdateMaterialTaxClassificationValueRequest}
1569
+ */
1570
+ proto.UpdateMaterialTaxClassificationValueRequest.deserializeBinaryFromReader = function(msg, reader) {
1571
+ while (reader.nextField()) {
1572
+ if (reader.isEndGroup()) {
1573
+ break;
1574
+ }
1575
+ var field = reader.getFieldNumber();
1576
+ switch (field) {
1577
+ case 1:
1578
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1579
+ msg.setReferencesId(value);
1580
+ break;
1581
+ case 2:
1582
+ var value = new proto.BaseMaterialTaxClassificationValueRequest;
1583
+ reader.readMessage(value,proto.BaseMaterialTaxClassificationValueRequest.deserializeBinaryFromReader);
1584
+ msg.setBaseRequest(value);
1585
+ break;
1586
+ default:
1587
+ reader.skipField();
1588
+ break;
1589
+ }
1590
+ }
1591
+ return msg;
1592
+ };
1593
+
1594
+
1595
+ /**
1596
+ * Serializes the message to binary data (in protobuf wire format).
1597
+ * @return {!Uint8Array}
1598
+ */
1599
+ proto.UpdateMaterialTaxClassificationValueRequest.prototype.serializeBinary = function() {
1600
+ var writer = new jspb.BinaryWriter();
1601
+ proto.UpdateMaterialTaxClassificationValueRequest.serializeBinaryToWriter(this, writer);
1602
+ return writer.getResultBuffer();
1603
+ };
1604
+
1605
+
1606
+ /**
1607
+ * Serializes the given message to binary data (in protobuf wire
1608
+ * format), writing to the given BinaryWriter.
1609
+ * @param {!proto.UpdateMaterialTaxClassificationValueRequest} message
1610
+ * @param {!jspb.BinaryWriter} writer
1611
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1612
+ */
1613
+ proto.UpdateMaterialTaxClassificationValueRequest.serializeBinaryToWriter = function(message, writer) {
1614
+ var f = undefined;
1615
+ f = message.getReferencesId();
1616
+ if (f.length > 0) {
1617
+ writer.writeString(
1618
+ 1,
1619
+ f
1620
+ );
1621
+ }
1622
+ f = message.getBaseRequest();
1623
+ if (f != null) {
1624
+ writer.writeMessage(
1625
+ 2,
1626
+ f,
1627
+ proto.BaseMaterialTaxClassificationValueRequest.serializeBinaryToWriter
1628
+ );
1629
+ }
1630
+ };
1631
+
1632
+
1633
+ /**
1634
+ * optional string references_id = 1;
1635
+ * @return {string}
1636
+ */
1637
+ proto.UpdateMaterialTaxClassificationValueRequest.prototype.getReferencesId = function() {
1638
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1639
+ };
1640
+
1641
+
1642
+ /**
1643
+ * @param {string} value
1644
+ * @return {!proto.UpdateMaterialTaxClassificationValueRequest} returns this
1645
+ */
1646
+ proto.UpdateMaterialTaxClassificationValueRequest.prototype.setReferencesId = function(value) {
1647
+ return jspb.Message.setProto3StringField(this, 1, value);
1648
+ };
1649
+
1650
+
1651
+ /**
1652
+ * optional BaseMaterialTaxClassificationValueRequest base_request = 2;
1653
+ * @return {?proto.BaseMaterialTaxClassificationValueRequest}
1654
+ */
1655
+ proto.UpdateMaterialTaxClassificationValueRequest.prototype.getBaseRequest = function() {
1656
+ return /** @type{?proto.BaseMaterialTaxClassificationValueRequest} */ (
1657
+ jspb.Message.getWrapperField(this, proto.BaseMaterialTaxClassificationValueRequest, 2));
1658
+ };
1659
+
1660
+
1661
+ /**
1662
+ * @param {?proto.BaseMaterialTaxClassificationValueRequest|undefined} value
1663
+ * @return {!proto.UpdateMaterialTaxClassificationValueRequest} returns this
1664
+ */
1665
+ proto.UpdateMaterialTaxClassificationValueRequest.prototype.setBaseRequest = function(value) {
1666
+ return jspb.Message.setWrapperField(this, 2, value);
1667
+ };
1668
+
1669
+
1670
+ /**
1671
+ * Clears the message field making it undefined.
1672
+ * @return {!proto.UpdateMaterialTaxClassificationValueRequest} returns this
1673
+ */
1674
+ proto.UpdateMaterialTaxClassificationValueRequest.prototype.clearBaseRequest = function() {
1675
+ return this.setBaseRequest(undefined);
1676
+ };
1677
+
1678
+
1679
+ /**
1680
+ * Returns whether this field is set.
1681
+ * @return {boolean}
1682
+ */
1683
+ proto.UpdateMaterialTaxClassificationValueRequest.prototype.hasBaseRequest = function() {
1684
+ return jspb.Message.getField(this, 2) != null;
1685
+ };
1686
+
1687
+
1688
+
1689
+ /**
1690
+ * List of repeated fields within this message type.
1691
+ * @private {!Array<number>}
1692
+ * @const
1693
+ */
1694
+ proto.DeleteMaterialTaxClassificationValueRequest.repeatedFields_ = [1];
1695
+
1696
+
1697
+
1698
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1699
+ /**
1700
+ * Creates an object representation of this proto.
1701
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1702
+ * Optional fields that are not set will be set to undefined.
1703
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1704
+ * For the list of reserved names please see:
1705
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1706
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1707
+ * JSPB instance for transitional soy proto support:
1708
+ * http://goto/soy-param-migration
1709
+ * @return {!Object}
1710
+ */
1711
+ proto.DeleteMaterialTaxClassificationValueRequest.prototype.toObject = function(opt_includeInstance) {
1712
+ return proto.DeleteMaterialTaxClassificationValueRequest.toObject(opt_includeInstance, this);
1713
+ };
1714
+
1715
+
1716
+ /**
1717
+ * Static version of the {@see toObject} method.
1718
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1719
+ * the JSPB instance for transitional soy proto support:
1720
+ * http://goto/soy-param-migration
1721
+ * @param {!proto.DeleteMaterialTaxClassificationValueRequest} msg The msg instance to transform.
1722
+ * @return {!Object}
1723
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1724
+ */
1725
+ proto.DeleteMaterialTaxClassificationValueRequest.toObject = function(includeInstance, msg) {
1726
+ var f, obj = {
1727
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
1728
+ };
1729
+
1730
+ if (includeInstance) {
1731
+ obj.$jspbMessageInstance = msg;
1732
+ }
1733
+ return obj;
1734
+ };
1735
+ }
1736
+
1737
+
1738
+ /**
1739
+ * Deserializes binary data (in protobuf wire format).
1740
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1741
+ * @return {!proto.DeleteMaterialTaxClassificationValueRequest}
1742
+ */
1743
+ proto.DeleteMaterialTaxClassificationValueRequest.deserializeBinary = function(bytes) {
1744
+ var reader = new jspb.BinaryReader(bytes);
1745
+ var msg = new proto.DeleteMaterialTaxClassificationValueRequest;
1746
+ return proto.DeleteMaterialTaxClassificationValueRequest.deserializeBinaryFromReader(msg, reader);
1747
+ };
1748
+
1749
+
1750
+ /**
1751
+ * Deserializes binary data (in protobuf wire format) from the
1752
+ * given reader into the given message object.
1753
+ * @param {!proto.DeleteMaterialTaxClassificationValueRequest} msg The message object to deserialize into.
1754
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1755
+ * @return {!proto.DeleteMaterialTaxClassificationValueRequest}
1756
+ */
1757
+ proto.DeleteMaterialTaxClassificationValueRequest.deserializeBinaryFromReader = function(msg, reader) {
1758
+ while (reader.nextField()) {
1759
+ if (reader.isEndGroup()) {
1760
+ break;
1761
+ }
1762
+ var field = reader.getFieldNumber();
1763
+ switch (field) {
1764
+ case 1:
1765
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1766
+ msg.addReferenceIds(value);
1767
+ break;
1768
+ default:
1769
+ reader.skipField();
1770
+ break;
1771
+ }
1772
+ }
1773
+ return msg;
1774
+ };
1775
+
1776
+
1777
+ /**
1778
+ * Serializes the message to binary data (in protobuf wire format).
1779
+ * @return {!Uint8Array}
1780
+ */
1781
+ proto.DeleteMaterialTaxClassificationValueRequest.prototype.serializeBinary = function() {
1782
+ var writer = new jspb.BinaryWriter();
1783
+ proto.DeleteMaterialTaxClassificationValueRequest.serializeBinaryToWriter(this, writer);
1784
+ return writer.getResultBuffer();
1785
+ };
1786
+
1787
+
1788
+ /**
1789
+ * Serializes the given message to binary data (in protobuf wire
1790
+ * format), writing to the given BinaryWriter.
1791
+ * @param {!proto.DeleteMaterialTaxClassificationValueRequest} message
1792
+ * @param {!jspb.BinaryWriter} writer
1793
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1794
+ */
1795
+ proto.DeleteMaterialTaxClassificationValueRequest.serializeBinaryToWriter = function(message, writer) {
1796
+ var f = undefined;
1797
+ f = message.getReferenceIdsList();
1798
+ if (f.length > 0) {
1799
+ writer.writeRepeatedString(
1800
+ 1,
1801
+ f
1802
+ );
1803
+ }
1804
+ };
1805
+
1806
+
1807
+ /**
1808
+ * repeated string reference_ids = 1;
1809
+ * @return {!Array<string>}
1810
+ */
1811
+ proto.DeleteMaterialTaxClassificationValueRequest.prototype.getReferenceIdsList = function() {
1812
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
1813
+ };
1814
+
1815
+
1816
+ /**
1817
+ * @param {!Array<string>} value
1818
+ * @return {!proto.DeleteMaterialTaxClassificationValueRequest} returns this
1819
+ */
1820
+ proto.DeleteMaterialTaxClassificationValueRequest.prototype.setReferenceIdsList = function(value) {
1821
+ return jspb.Message.setField(this, 1, value || []);
1822
+ };
1823
+
1824
+
1825
+ /**
1826
+ * @param {string} value
1827
+ * @param {number=} opt_index
1828
+ * @return {!proto.DeleteMaterialTaxClassificationValueRequest} returns this
1829
+ */
1830
+ proto.DeleteMaterialTaxClassificationValueRequest.prototype.addReferenceIds = function(value, opt_index) {
1831
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1832
+ };
1833
+
1834
+
1835
+ /**
1836
+ * Clears the list making it empty but non-null.
1837
+ * @return {!proto.DeleteMaterialTaxClassificationValueRequest} returns this
1838
+ */
1839
+ proto.DeleteMaterialTaxClassificationValueRequest.prototype.clearReferenceIdsList = function() {
1840
+ return this.setReferenceIdsList([]);
1841
+ };
1842
+
1843
+
1844
+
1845
+
1846
+
1847
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1848
+ /**
1849
+ * Creates an object representation of this proto.
1850
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1851
+ * Optional fields that are not set will be set to undefined.
1852
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1853
+ * For the list of reserved names please see:
1854
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1855
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1856
+ * JSPB instance for transitional soy proto support:
1857
+ * http://goto/soy-param-migration
1858
+ * @return {!Object}
1859
+ */
1860
+ proto.CreateMaterialTaxClassificationValueResponse.prototype.toObject = function(opt_includeInstance) {
1861
+ return proto.CreateMaterialTaxClassificationValueResponse.toObject(opt_includeInstance, this);
1862
+ };
1863
+
1864
+
1865
+ /**
1866
+ * Static version of the {@see toObject} method.
1867
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1868
+ * the JSPB instance for transitional soy proto support:
1869
+ * http://goto/soy-param-migration
1870
+ * @param {!proto.CreateMaterialTaxClassificationValueResponse} msg The msg instance to transform.
1871
+ * @return {!Object}
1872
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1873
+ */
1874
+ proto.CreateMaterialTaxClassificationValueResponse.toObject = function(includeInstance, msg) {
1875
+ var f, obj = {
1876
+ materialTaxClassificationValue: (f = msg.getMaterialTaxClassificationValue()) && proto.MaterialTaxClassificationValue.toObject(includeInstance, f),
1877
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1878
+ };
1879
+
1880
+ if (includeInstance) {
1881
+ obj.$jspbMessageInstance = msg;
1882
+ }
1883
+ return obj;
1884
+ };
1885
+ }
1886
+
1887
+
1888
+ /**
1889
+ * Deserializes binary data (in protobuf wire format).
1890
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1891
+ * @return {!proto.CreateMaterialTaxClassificationValueResponse}
1892
+ */
1893
+ proto.CreateMaterialTaxClassificationValueResponse.deserializeBinary = function(bytes) {
1894
+ var reader = new jspb.BinaryReader(bytes);
1895
+ var msg = new proto.CreateMaterialTaxClassificationValueResponse;
1896
+ return proto.CreateMaterialTaxClassificationValueResponse.deserializeBinaryFromReader(msg, reader);
1897
+ };
1898
+
1899
+
1900
+ /**
1901
+ * Deserializes binary data (in protobuf wire format) from the
1902
+ * given reader into the given message object.
1903
+ * @param {!proto.CreateMaterialTaxClassificationValueResponse} msg The message object to deserialize into.
1904
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1905
+ * @return {!proto.CreateMaterialTaxClassificationValueResponse}
1906
+ */
1907
+ proto.CreateMaterialTaxClassificationValueResponse.deserializeBinaryFromReader = function(msg, reader) {
1908
+ while (reader.nextField()) {
1909
+ if (reader.isEndGroup()) {
1910
+ break;
1911
+ }
1912
+ var field = reader.getFieldNumber();
1913
+ switch (field) {
1914
+ case 1:
1915
+ var value = new proto.MaterialTaxClassificationValue;
1916
+ reader.readMessage(value,proto.MaterialTaxClassificationValue.deserializeBinaryFromReader);
1917
+ msg.setMaterialTaxClassificationValue(value);
1918
+ break;
1919
+ case 2:
1920
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1921
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1922
+ msg.setMeta(value);
1923
+ break;
1924
+ default:
1925
+ reader.skipField();
1926
+ break;
1927
+ }
1928
+ }
1929
+ return msg;
1930
+ };
1931
+
1932
+
1933
+ /**
1934
+ * Serializes the message to binary data (in protobuf wire format).
1935
+ * @return {!Uint8Array}
1936
+ */
1937
+ proto.CreateMaterialTaxClassificationValueResponse.prototype.serializeBinary = function() {
1938
+ var writer = new jspb.BinaryWriter();
1939
+ proto.CreateMaterialTaxClassificationValueResponse.serializeBinaryToWriter(this, writer);
1940
+ return writer.getResultBuffer();
1941
+ };
1942
+
1943
+
1944
+ /**
1945
+ * Serializes the given message to binary data (in protobuf wire
1946
+ * format), writing to the given BinaryWriter.
1947
+ * @param {!proto.CreateMaterialTaxClassificationValueResponse} message
1948
+ * @param {!jspb.BinaryWriter} writer
1949
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1950
+ */
1951
+ proto.CreateMaterialTaxClassificationValueResponse.serializeBinaryToWriter = function(message, writer) {
1952
+ var f = undefined;
1953
+ f = message.getMaterialTaxClassificationValue();
1954
+ if (f != null) {
1955
+ writer.writeMessage(
1956
+ 1,
1957
+ f,
1958
+ proto.MaterialTaxClassificationValue.serializeBinaryToWriter
1959
+ );
1960
+ }
1961
+ f = message.getMeta();
1962
+ if (f != null) {
1963
+ writer.writeMessage(
1964
+ 2,
1965
+ f,
1966
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1967
+ );
1968
+ }
1969
+ };
1970
+
1971
+
1972
+ /**
1973
+ * optional MaterialTaxClassificationValue material_tax_classification_value = 1;
1974
+ * @return {?proto.MaterialTaxClassificationValue}
1975
+ */
1976
+ proto.CreateMaterialTaxClassificationValueResponse.prototype.getMaterialTaxClassificationValue = function() {
1977
+ return /** @type{?proto.MaterialTaxClassificationValue} */ (
1978
+ jspb.Message.getWrapperField(this, proto.MaterialTaxClassificationValue, 1));
1979
+ };
1980
+
1981
+
1982
+ /**
1983
+ * @param {?proto.MaterialTaxClassificationValue|undefined} value
1984
+ * @return {!proto.CreateMaterialTaxClassificationValueResponse} returns this
1985
+ */
1986
+ proto.CreateMaterialTaxClassificationValueResponse.prototype.setMaterialTaxClassificationValue = function(value) {
1987
+ return jspb.Message.setWrapperField(this, 1, value);
1988
+ };
1989
+
1990
+
1991
+ /**
1992
+ * Clears the message field making it undefined.
1993
+ * @return {!proto.CreateMaterialTaxClassificationValueResponse} returns this
1994
+ */
1995
+ proto.CreateMaterialTaxClassificationValueResponse.prototype.clearMaterialTaxClassificationValue = function() {
1996
+ return this.setMaterialTaxClassificationValue(undefined);
1997
+ };
1998
+
1999
+
2000
+ /**
2001
+ * Returns whether this field is set.
2002
+ * @return {boolean}
2003
+ */
2004
+ proto.CreateMaterialTaxClassificationValueResponse.prototype.hasMaterialTaxClassificationValue = function() {
2005
+ return jspb.Message.getField(this, 1) != null;
2006
+ };
2007
+
2008
+
2009
+ /**
2010
+ * optional prisca.v1.global.meta.Meta meta = 2;
2011
+ * @return {?proto.prisca.v1.global.meta.Meta}
2012
+ */
2013
+ proto.CreateMaterialTaxClassificationValueResponse.prototype.getMeta = function() {
2014
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2015
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2016
+ };
2017
+
2018
+
2019
+ /**
2020
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2021
+ * @return {!proto.CreateMaterialTaxClassificationValueResponse} returns this
2022
+ */
2023
+ proto.CreateMaterialTaxClassificationValueResponse.prototype.setMeta = function(value) {
2024
+ return jspb.Message.setWrapperField(this, 2, value);
2025
+ };
2026
+
2027
+
2028
+ /**
2029
+ * Clears the message field making it undefined.
2030
+ * @return {!proto.CreateMaterialTaxClassificationValueResponse} returns this
2031
+ */
2032
+ proto.CreateMaterialTaxClassificationValueResponse.prototype.clearMeta = function() {
2033
+ return this.setMeta(undefined);
2034
+ };
2035
+
2036
+
2037
+ /**
2038
+ * Returns whether this field is set.
2039
+ * @return {boolean}
2040
+ */
2041
+ proto.CreateMaterialTaxClassificationValueResponse.prototype.hasMeta = function() {
2042
+ return jspb.Message.getField(this, 2) != null;
2043
+ };
2044
+
2045
+
2046
+
2047
+
2048
+
2049
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2050
+ /**
2051
+ * Creates an object representation of this proto.
2052
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2053
+ * Optional fields that are not set will be set to undefined.
2054
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2055
+ * For the list of reserved names please see:
2056
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2057
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2058
+ * JSPB instance for transitional soy proto support:
2059
+ * http://goto/soy-param-migration
2060
+ * @return {!Object}
2061
+ */
2062
+ proto.UpdateMaterialTaxClassificationValueResponse.prototype.toObject = function(opt_includeInstance) {
2063
+ return proto.UpdateMaterialTaxClassificationValueResponse.toObject(opt_includeInstance, this);
2064
+ };
2065
+
2066
+
2067
+ /**
2068
+ * Static version of the {@see toObject} method.
2069
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2070
+ * the JSPB instance for transitional soy proto support:
2071
+ * http://goto/soy-param-migration
2072
+ * @param {!proto.UpdateMaterialTaxClassificationValueResponse} msg The msg instance to transform.
2073
+ * @return {!Object}
2074
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2075
+ */
2076
+ proto.UpdateMaterialTaxClassificationValueResponse.toObject = function(includeInstance, msg) {
2077
+ var f, obj = {
2078
+ materialTaxClassificationValue: (f = msg.getMaterialTaxClassificationValue()) && proto.MaterialTaxClassificationValue.toObject(includeInstance, f),
2079
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2080
+ };
2081
+
2082
+ if (includeInstance) {
2083
+ obj.$jspbMessageInstance = msg;
2084
+ }
2085
+ return obj;
2086
+ };
2087
+ }
2088
+
2089
+
2090
+ /**
2091
+ * Deserializes binary data (in protobuf wire format).
2092
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2093
+ * @return {!proto.UpdateMaterialTaxClassificationValueResponse}
2094
+ */
2095
+ proto.UpdateMaterialTaxClassificationValueResponse.deserializeBinary = function(bytes) {
2096
+ var reader = new jspb.BinaryReader(bytes);
2097
+ var msg = new proto.UpdateMaterialTaxClassificationValueResponse;
2098
+ return proto.UpdateMaterialTaxClassificationValueResponse.deserializeBinaryFromReader(msg, reader);
2099
+ };
2100
+
2101
+
2102
+ /**
2103
+ * Deserializes binary data (in protobuf wire format) from the
2104
+ * given reader into the given message object.
2105
+ * @param {!proto.UpdateMaterialTaxClassificationValueResponse} msg The message object to deserialize into.
2106
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2107
+ * @return {!proto.UpdateMaterialTaxClassificationValueResponse}
2108
+ */
2109
+ proto.UpdateMaterialTaxClassificationValueResponse.deserializeBinaryFromReader = function(msg, reader) {
2110
+ while (reader.nextField()) {
2111
+ if (reader.isEndGroup()) {
2112
+ break;
2113
+ }
2114
+ var field = reader.getFieldNumber();
2115
+ switch (field) {
2116
+ case 1:
2117
+ var value = new proto.MaterialTaxClassificationValue;
2118
+ reader.readMessage(value,proto.MaterialTaxClassificationValue.deserializeBinaryFromReader);
2119
+ msg.setMaterialTaxClassificationValue(value);
2120
+ break;
2121
+ case 2:
2122
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2123
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2124
+ msg.setMeta(value);
2125
+ break;
2126
+ default:
2127
+ reader.skipField();
2128
+ break;
2129
+ }
2130
+ }
2131
+ return msg;
2132
+ };
2133
+
2134
+
2135
+ /**
2136
+ * Serializes the message to binary data (in protobuf wire format).
2137
+ * @return {!Uint8Array}
2138
+ */
2139
+ proto.UpdateMaterialTaxClassificationValueResponse.prototype.serializeBinary = function() {
2140
+ var writer = new jspb.BinaryWriter();
2141
+ proto.UpdateMaterialTaxClassificationValueResponse.serializeBinaryToWriter(this, writer);
2142
+ return writer.getResultBuffer();
2143
+ };
2144
+
2145
+
2146
+ /**
2147
+ * Serializes the given message to binary data (in protobuf wire
2148
+ * format), writing to the given BinaryWriter.
2149
+ * @param {!proto.UpdateMaterialTaxClassificationValueResponse} message
2150
+ * @param {!jspb.BinaryWriter} writer
2151
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2152
+ */
2153
+ proto.UpdateMaterialTaxClassificationValueResponse.serializeBinaryToWriter = function(message, writer) {
2154
+ var f = undefined;
2155
+ f = message.getMaterialTaxClassificationValue();
2156
+ if (f != null) {
2157
+ writer.writeMessage(
2158
+ 1,
2159
+ f,
2160
+ proto.MaterialTaxClassificationValue.serializeBinaryToWriter
2161
+ );
2162
+ }
2163
+ f = message.getMeta();
2164
+ if (f != null) {
2165
+ writer.writeMessage(
2166
+ 2,
2167
+ f,
2168
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2169
+ );
2170
+ }
2171
+ };
2172
+
2173
+
2174
+ /**
2175
+ * optional MaterialTaxClassificationValue material_tax_classification_value = 1;
2176
+ * @return {?proto.MaterialTaxClassificationValue}
2177
+ */
2178
+ proto.UpdateMaterialTaxClassificationValueResponse.prototype.getMaterialTaxClassificationValue = function() {
2179
+ return /** @type{?proto.MaterialTaxClassificationValue} */ (
2180
+ jspb.Message.getWrapperField(this, proto.MaterialTaxClassificationValue, 1));
2181
+ };
2182
+
2183
+
2184
+ /**
2185
+ * @param {?proto.MaterialTaxClassificationValue|undefined} value
2186
+ * @return {!proto.UpdateMaterialTaxClassificationValueResponse} returns this
2187
+ */
2188
+ proto.UpdateMaterialTaxClassificationValueResponse.prototype.setMaterialTaxClassificationValue = function(value) {
2189
+ return jspb.Message.setWrapperField(this, 1, value);
2190
+ };
2191
+
2192
+
2193
+ /**
2194
+ * Clears the message field making it undefined.
2195
+ * @return {!proto.UpdateMaterialTaxClassificationValueResponse} returns this
2196
+ */
2197
+ proto.UpdateMaterialTaxClassificationValueResponse.prototype.clearMaterialTaxClassificationValue = function() {
2198
+ return this.setMaterialTaxClassificationValue(undefined);
2199
+ };
2200
+
2201
+
2202
+ /**
2203
+ * Returns whether this field is set.
2204
+ * @return {boolean}
2205
+ */
2206
+ proto.UpdateMaterialTaxClassificationValueResponse.prototype.hasMaterialTaxClassificationValue = function() {
2207
+ return jspb.Message.getField(this, 1) != null;
2208
+ };
2209
+
2210
+
2211
+ /**
2212
+ * optional prisca.v1.global.meta.Meta meta = 2;
2213
+ * @return {?proto.prisca.v1.global.meta.Meta}
2214
+ */
2215
+ proto.UpdateMaterialTaxClassificationValueResponse.prototype.getMeta = function() {
2216
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2217
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2218
+ };
2219
+
2220
+
2221
+ /**
2222
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2223
+ * @return {!proto.UpdateMaterialTaxClassificationValueResponse} returns this
2224
+ */
2225
+ proto.UpdateMaterialTaxClassificationValueResponse.prototype.setMeta = function(value) {
2226
+ return jspb.Message.setWrapperField(this, 2, value);
2227
+ };
2228
+
2229
+
2230
+ /**
2231
+ * Clears the message field making it undefined.
2232
+ * @return {!proto.UpdateMaterialTaxClassificationValueResponse} returns this
2233
+ */
2234
+ proto.UpdateMaterialTaxClassificationValueResponse.prototype.clearMeta = function() {
2235
+ return this.setMeta(undefined);
2236
+ };
2237
+
2238
+
2239
+ /**
2240
+ * Returns whether this field is set.
2241
+ * @return {boolean}
2242
+ */
2243
+ proto.UpdateMaterialTaxClassificationValueResponse.prototype.hasMeta = function() {
2244
+ return jspb.Message.getField(this, 2) != null;
2245
+ };
2246
+
2247
+
2248
+
2249
+
2250
+
2251
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2252
+ /**
2253
+ * Creates an object representation of this proto.
2254
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2255
+ * Optional fields that are not set will be set to undefined.
2256
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2257
+ * For the list of reserved names please see:
2258
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2259
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2260
+ * JSPB instance for transitional soy proto support:
2261
+ * http://goto/soy-param-migration
2262
+ * @return {!Object}
2263
+ */
2264
+ proto.GetMaterialTaxClassificationValueByIdResponse.prototype.toObject = function(opt_includeInstance) {
2265
+ return proto.GetMaterialTaxClassificationValueByIdResponse.toObject(opt_includeInstance, this);
2266
+ };
2267
+
2268
+
2269
+ /**
2270
+ * Static version of the {@see toObject} method.
2271
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2272
+ * the JSPB instance for transitional soy proto support:
2273
+ * http://goto/soy-param-migration
2274
+ * @param {!proto.GetMaterialTaxClassificationValueByIdResponse} msg The msg instance to transform.
2275
+ * @return {!Object}
2276
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2277
+ */
2278
+ proto.GetMaterialTaxClassificationValueByIdResponse.toObject = function(includeInstance, msg) {
2279
+ var f, obj = {
2280
+ materialTaxClassificationValue: (f = msg.getMaterialTaxClassificationValue()) && proto.MaterialTaxClassificationValue.toObject(includeInstance, f),
2281
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2282
+ };
2283
+
2284
+ if (includeInstance) {
2285
+ obj.$jspbMessageInstance = msg;
2286
+ }
2287
+ return obj;
2288
+ };
2289
+ }
2290
+
2291
+
2292
+ /**
2293
+ * Deserializes binary data (in protobuf wire format).
2294
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2295
+ * @return {!proto.GetMaterialTaxClassificationValueByIdResponse}
2296
+ */
2297
+ proto.GetMaterialTaxClassificationValueByIdResponse.deserializeBinary = function(bytes) {
2298
+ var reader = new jspb.BinaryReader(bytes);
2299
+ var msg = new proto.GetMaterialTaxClassificationValueByIdResponse;
2300
+ return proto.GetMaterialTaxClassificationValueByIdResponse.deserializeBinaryFromReader(msg, reader);
2301
+ };
2302
+
2303
+
2304
+ /**
2305
+ * Deserializes binary data (in protobuf wire format) from the
2306
+ * given reader into the given message object.
2307
+ * @param {!proto.GetMaterialTaxClassificationValueByIdResponse} msg The message object to deserialize into.
2308
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2309
+ * @return {!proto.GetMaterialTaxClassificationValueByIdResponse}
2310
+ */
2311
+ proto.GetMaterialTaxClassificationValueByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2312
+ while (reader.nextField()) {
2313
+ if (reader.isEndGroup()) {
2314
+ break;
2315
+ }
2316
+ var field = reader.getFieldNumber();
2317
+ switch (field) {
2318
+ case 1:
2319
+ var value = new proto.MaterialTaxClassificationValue;
2320
+ reader.readMessage(value,proto.MaterialTaxClassificationValue.deserializeBinaryFromReader);
2321
+ msg.setMaterialTaxClassificationValue(value);
2322
+ break;
2323
+ case 2:
2324
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2325
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2326
+ msg.setMeta(value);
2327
+ break;
2328
+ default:
2329
+ reader.skipField();
2330
+ break;
2331
+ }
2332
+ }
2333
+ return msg;
2334
+ };
2335
+
2336
+
2337
+ /**
2338
+ * Serializes the message to binary data (in protobuf wire format).
2339
+ * @return {!Uint8Array}
2340
+ */
2341
+ proto.GetMaterialTaxClassificationValueByIdResponse.prototype.serializeBinary = function() {
2342
+ var writer = new jspb.BinaryWriter();
2343
+ proto.GetMaterialTaxClassificationValueByIdResponse.serializeBinaryToWriter(this, writer);
2344
+ return writer.getResultBuffer();
2345
+ };
2346
+
2347
+
2348
+ /**
2349
+ * Serializes the given message to binary data (in protobuf wire
2350
+ * format), writing to the given BinaryWriter.
2351
+ * @param {!proto.GetMaterialTaxClassificationValueByIdResponse} message
2352
+ * @param {!jspb.BinaryWriter} writer
2353
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2354
+ */
2355
+ proto.GetMaterialTaxClassificationValueByIdResponse.serializeBinaryToWriter = function(message, writer) {
2356
+ var f = undefined;
2357
+ f = message.getMaterialTaxClassificationValue();
2358
+ if (f != null) {
2359
+ writer.writeMessage(
2360
+ 1,
2361
+ f,
2362
+ proto.MaterialTaxClassificationValue.serializeBinaryToWriter
2363
+ );
2364
+ }
2365
+ f = message.getMeta();
2366
+ if (f != null) {
2367
+ writer.writeMessage(
2368
+ 2,
2369
+ f,
2370
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2371
+ );
2372
+ }
2373
+ };
2374
+
2375
+
2376
+ /**
2377
+ * optional MaterialTaxClassificationValue material_tax_classification_value = 1;
2378
+ * @return {?proto.MaterialTaxClassificationValue}
2379
+ */
2380
+ proto.GetMaterialTaxClassificationValueByIdResponse.prototype.getMaterialTaxClassificationValue = function() {
2381
+ return /** @type{?proto.MaterialTaxClassificationValue} */ (
2382
+ jspb.Message.getWrapperField(this, proto.MaterialTaxClassificationValue, 1));
2383
+ };
2384
+
2385
+
2386
+ /**
2387
+ * @param {?proto.MaterialTaxClassificationValue|undefined} value
2388
+ * @return {!proto.GetMaterialTaxClassificationValueByIdResponse} returns this
2389
+ */
2390
+ proto.GetMaterialTaxClassificationValueByIdResponse.prototype.setMaterialTaxClassificationValue = function(value) {
2391
+ return jspb.Message.setWrapperField(this, 1, value);
2392
+ };
2393
+
2394
+
2395
+ /**
2396
+ * Clears the message field making it undefined.
2397
+ * @return {!proto.GetMaterialTaxClassificationValueByIdResponse} returns this
2398
+ */
2399
+ proto.GetMaterialTaxClassificationValueByIdResponse.prototype.clearMaterialTaxClassificationValue = function() {
2400
+ return this.setMaterialTaxClassificationValue(undefined);
2401
+ };
2402
+
2403
+
2404
+ /**
2405
+ * Returns whether this field is set.
2406
+ * @return {boolean}
2407
+ */
2408
+ proto.GetMaterialTaxClassificationValueByIdResponse.prototype.hasMaterialTaxClassificationValue = function() {
2409
+ return jspb.Message.getField(this, 1) != null;
2410
+ };
2411
+
2412
+
2413
+ /**
2414
+ * optional prisca.v1.global.meta.Meta meta = 2;
2415
+ * @return {?proto.prisca.v1.global.meta.Meta}
2416
+ */
2417
+ proto.GetMaterialTaxClassificationValueByIdResponse.prototype.getMeta = function() {
2418
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2419
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2420
+ };
2421
+
2422
+
2423
+ /**
2424
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2425
+ * @return {!proto.GetMaterialTaxClassificationValueByIdResponse} returns this
2426
+ */
2427
+ proto.GetMaterialTaxClassificationValueByIdResponse.prototype.setMeta = function(value) {
2428
+ return jspb.Message.setWrapperField(this, 2, value);
2429
+ };
2430
+
2431
+
2432
+ /**
2433
+ * Clears the message field making it undefined.
2434
+ * @return {!proto.GetMaterialTaxClassificationValueByIdResponse} returns this
2435
+ */
2436
+ proto.GetMaterialTaxClassificationValueByIdResponse.prototype.clearMeta = function() {
2437
+ return this.setMeta(undefined);
2438
+ };
2439
+
2440
+
2441
+ /**
2442
+ * Returns whether this field is set.
2443
+ * @return {boolean}
2444
+ */
2445
+ proto.GetMaterialTaxClassificationValueByIdResponse.prototype.hasMeta = function() {
2446
+ return jspb.Message.getField(this, 2) != null;
2447
+ };
2448
+
2449
+
2450
+
2451
+ /**
2452
+ * List of repeated fields within this message type.
2453
+ * @private {!Array<number>}
2454
+ * @const
2455
+ */
2456
+ proto.GetListMaterialTaxClassificationValueResponse.repeatedFields_ = [1];
2457
+
2458
+
2459
+
2460
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2461
+ /**
2462
+ * Creates an object representation of this proto.
2463
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2464
+ * Optional fields that are not set will be set to undefined.
2465
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2466
+ * For the list of reserved names please see:
2467
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2468
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2469
+ * JSPB instance for transitional soy proto support:
2470
+ * http://goto/soy-param-migration
2471
+ * @return {!Object}
2472
+ */
2473
+ proto.GetListMaterialTaxClassificationValueResponse.prototype.toObject = function(opt_includeInstance) {
2474
+ return proto.GetListMaterialTaxClassificationValueResponse.toObject(opt_includeInstance, this);
2475
+ };
2476
+
2477
+
2478
+ /**
2479
+ * Static version of the {@see toObject} method.
2480
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2481
+ * the JSPB instance for transitional soy proto support:
2482
+ * http://goto/soy-param-migration
2483
+ * @param {!proto.GetListMaterialTaxClassificationValueResponse} msg The msg instance to transform.
2484
+ * @return {!Object}
2485
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2486
+ */
2487
+ proto.GetListMaterialTaxClassificationValueResponse.toObject = function(includeInstance, msg) {
2488
+ var f, obj = {
2489
+ materialTaxClassificationValuesList: jspb.Message.toObjectList(msg.getMaterialTaxClassificationValuesList(),
2490
+ proto.MaterialTaxClassificationValue.toObject, includeInstance),
2491
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2492
+ };
2493
+
2494
+ if (includeInstance) {
2495
+ obj.$jspbMessageInstance = msg;
2496
+ }
2497
+ return obj;
2498
+ };
2499
+ }
2500
+
2501
+
2502
+ /**
2503
+ * Deserializes binary data (in protobuf wire format).
2504
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2505
+ * @return {!proto.GetListMaterialTaxClassificationValueResponse}
2506
+ */
2507
+ proto.GetListMaterialTaxClassificationValueResponse.deserializeBinary = function(bytes) {
2508
+ var reader = new jspb.BinaryReader(bytes);
2509
+ var msg = new proto.GetListMaterialTaxClassificationValueResponse;
2510
+ return proto.GetListMaterialTaxClassificationValueResponse.deserializeBinaryFromReader(msg, reader);
2511
+ };
2512
+
2513
+
2514
+ /**
2515
+ * Deserializes binary data (in protobuf wire format) from the
2516
+ * given reader into the given message object.
2517
+ * @param {!proto.GetListMaterialTaxClassificationValueResponse} msg The message object to deserialize into.
2518
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2519
+ * @return {!proto.GetListMaterialTaxClassificationValueResponse}
2520
+ */
2521
+ proto.GetListMaterialTaxClassificationValueResponse.deserializeBinaryFromReader = function(msg, reader) {
2522
+ while (reader.nextField()) {
2523
+ if (reader.isEndGroup()) {
2524
+ break;
2525
+ }
2526
+ var field = reader.getFieldNumber();
2527
+ switch (field) {
2528
+ case 1:
2529
+ var value = new proto.MaterialTaxClassificationValue;
2530
+ reader.readMessage(value,proto.MaterialTaxClassificationValue.deserializeBinaryFromReader);
2531
+ msg.addMaterialTaxClassificationValues(value);
2532
+ break;
2533
+ case 2:
2534
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2535
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2536
+ msg.setMeta(value);
2537
+ break;
2538
+ default:
2539
+ reader.skipField();
2540
+ break;
2541
+ }
2542
+ }
2543
+ return msg;
2544
+ };
2545
+
2546
+
2547
+ /**
2548
+ * Serializes the message to binary data (in protobuf wire format).
2549
+ * @return {!Uint8Array}
2550
+ */
2551
+ proto.GetListMaterialTaxClassificationValueResponse.prototype.serializeBinary = function() {
2552
+ var writer = new jspb.BinaryWriter();
2553
+ proto.GetListMaterialTaxClassificationValueResponse.serializeBinaryToWriter(this, writer);
2554
+ return writer.getResultBuffer();
2555
+ };
2556
+
2557
+
2558
+ /**
2559
+ * Serializes the given message to binary data (in protobuf wire
2560
+ * format), writing to the given BinaryWriter.
2561
+ * @param {!proto.GetListMaterialTaxClassificationValueResponse} message
2562
+ * @param {!jspb.BinaryWriter} writer
2563
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2564
+ */
2565
+ proto.GetListMaterialTaxClassificationValueResponse.serializeBinaryToWriter = function(message, writer) {
2566
+ var f = undefined;
2567
+ f = message.getMaterialTaxClassificationValuesList();
2568
+ if (f.length > 0) {
2569
+ writer.writeRepeatedMessage(
2570
+ 1,
2571
+ f,
2572
+ proto.MaterialTaxClassificationValue.serializeBinaryToWriter
2573
+ );
2574
+ }
2575
+ f = message.getMeta();
2576
+ if (f != null) {
2577
+ writer.writeMessage(
2578
+ 2,
2579
+ f,
2580
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2581
+ );
2582
+ }
2583
+ };
2584
+
2585
+
2586
+ /**
2587
+ * repeated MaterialTaxClassificationValue material_tax_classification_values = 1;
2588
+ * @return {!Array<!proto.MaterialTaxClassificationValue>}
2589
+ */
2590
+ proto.GetListMaterialTaxClassificationValueResponse.prototype.getMaterialTaxClassificationValuesList = function() {
2591
+ return /** @type{!Array<!proto.MaterialTaxClassificationValue>} */ (
2592
+ jspb.Message.getRepeatedWrapperField(this, proto.MaterialTaxClassificationValue, 1));
2593
+ };
2594
+
2595
+
2596
+ /**
2597
+ * @param {!Array<!proto.MaterialTaxClassificationValue>} value
2598
+ * @return {!proto.GetListMaterialTaxClassificationValueResponse} returns this
2599
+ */
2600
+ proto.GetListMaterialTaxClassificationValueResponse.prototype.setMaterialTaxClassificationValuesList = function(value) {
2601
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2602
+ };
2603
+
2604
+
2605
+ /**
2606
+ * @param {!proto.MaterialTaxClassificationValue=} opt_value
2607
+ * @param {number=} opt_index
2608
+ * @return {!proto.MaterialTaxClassificationValue}
2609
+ */
2610
+ proto.GetListMaterialTaxClassificationValueResponse.prototype.addMaterialTaxClassificationValues = function(opt_value, opt_index) {
2611
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.MaterialTaxClassificationValue, opt_index);
2612
+ };
2613
+
2614
+
2615
+ /**
2616
+ * Clears the list making it empty but non-null.
2617
+ * @return {!proto.GetListMaterialTaxClassificationValueResponse} returns this
2618
+ */
2619
+ proto.GetListMaterialTaxClassificationValueResponse.prototype.clearMaterialTaxClassificationValuesList = function() {
2620
+ return this.setMaterialTaxClassificationValuesList([]);
2621
+ };
2622
+
2623
+
2624
+ /**
2625
+ * optional prisca.v1.global.meta.Meta meta = 2;
2626
+ * @return {?proto.prisca.v1.global.meta.Meta}
2627
+ */
2628
+ proto.GetListMaterialTaxClassificationValueResponse.prototype.getMeta = function() {
2629
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2630
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2631
+ };
2632
+
2633
+
2634
+ /**
2635
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2636
+ * @return {!proto.GetListMaterialTaxClassificationValueResponse} returns this
2637
+ */
2638
+ proto.GetListMaterialTaxClassificationValueResponse.prototype.setMeta = function(value) {
2639
+ return jspb.Message.setWrapperField(this, 2, value);
2640
+ };
2641
+
2642
+
2643
+ /**
2644
+ * Clears the message field making it undefined.
2645
+ * @return {!proto.GetListMaterialTaxClassificationValueResponse} returns this
2646
+ */
2647
+ proto.GetListMaterialTaxClassificationValueResponse.prototype.clearMeta = function() {
2648
+ return this.setMeta(undefined);
2649
+ };
2650
+
2651
+
2652
+ /**
2653
+ * Returns whether this field is set.
2654
+ * @return {boolean}
2655
+ */
2656
+ proto.GetListMaterialTaxClassificationValueResponse.prototype.hasMeta = function() {
2657
+ return jspb.Message.getField(this, 2) != null;
2658
+ };
2659
+
2660
+
2661
+
2662
+ /**
2663
+ * List of repeated fields within this message type.
2664
+ * @private {!Array<number>}
2665
+ * @const
2666
+ */
2667
+ proto.DeleteMaterialTaxClassificationValueResponse.repeatedFields_ = [1];
2668
+
2669
+
2670
+
2671
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2672
+ /**
2673
+ * Creates an object representation of this proto.
2674
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2675
+ * Optional fields that are not set will be set to undefined.
2676
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2677
+ * For the list of reserved names please see:
2678
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2679
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2680
+ * JSPB instance for transitional soy proto support:
2681
+ * http://goto/soy-param-migration
2682
+ * @return {!Object}
2683
+ */
2684
+ proto.DeleteMaterialTaxClassificationValueResponse.prototype.toObject = function(opt_includeInstance) {
2685
+ return proto.DeleteMaterialTaxClassificationValueResponse.toObject(opt_includeInstance, this);
2686
+ };
2687
+
2688
+
2689
+ /**
2690
+ * Static version of the {@see toObject} method.
2691
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2692
+ * the JSPB instance for transitional soy proto support:
2693
+ * http://goto/soy-param-migration
2694
+ * @param {!proto.DeleteMaterialTaxClassificationValueResponse} msg The msg instance to transform.
2695
+ * @return {!Object}
2696
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2697
+ */
2698
+ proto.DeleteMaterialTaxClassificationValueResponse.toObject = function(includeInstance, msg) {
2699
+ var f, obj = {
2700
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2701
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2702
+ };
2703
+
2704
+ if (includeInstance) {
2705
+ obj.$jspbMessageInstance = msg;
2706
+ }
2707
+ return obj;
2708
+ };
2709
+ }
2710
+
2711
+
2712
+ /**
2713
+ * Deserializes binary data (in protobuf wire format).
2714
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2715
+ * @return {!proto.DeleteMaterialTaxClassificationValueResponse}
2716
+ */
2717
+ proto.DeleteMaterialTaxClassificationValueResponse.deserializeBinary = function(bytes) {
2718
+ var reader = new jspb.BinaryReader(bytes);
2719
+ var msg = new proto.DeleteMaterialTaxClassificationValueResponse;
2720
+ return proto.DeleteMaterialTaxClassificationValueResponse.deserializeBinaryFromReader(msg, reader);
2721
+ };
2722
+
2723
+
2724
+ /**
2725
+ * Deserializes binary data (in protobuf wire format) from the
2726
+ * given reader into the given message object.
2727
+ * @param {!proto.DeleteMaterialTaxClassificationValueResponse} msg The message object to deserialize into.
2728
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2729
+ * @return {!proto.DeleteMaterialTaxClassificationValueResponse}
2730
+ */
2731
+ proto.DeleteMaterialTaxClassificationValueResponse.deserializeBinaryFromReader = function(msg, reader) {
2732
+ while (reader.nextField()) {
2733
+ if (reader.isEndGroup()) {
2734
+ break;
2735
+ }
2736
+ var field = reader.getFieldNumber();
2737
+ switch (field) {
2738
+ case 1:
2739
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2740
+ msg.addReferenceIds(value);
2741
+ break;
2742
+ case 2:
2743
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2744
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2745
+ msg.setMeta(value);
2746
+ break;
2747
+ default:
2748
+ reader.skipField();
2749
+ break;
2750
+ }
2751
+ }
2752
+ return msg;
2753
+ };
2754
+
2755
+
2756
+ /**
2757
+ * Serializes the message to binary data (in protobuf wire format).
2758
+ * @return {!Uint8Array}
2759
+ */
2760
+ proto.DeleteMaterialTaxClassificationValueResponse.prototype.serializeBinary = function() {
2761
+ var writer = new jspb.BinaryWriter();
2762
+ proto.DeleteMaterialTaxClassificationValueResponse.serializeBinaryToWriter(this, writer);
2763
+ return writer.getResultBuffer();
2764
+ };
2765
+
2766
+
2767
+ /**
2768
+ * Serializes the given message to binary data (in protobuf wire
2769
+ * format), writing to the given BinaryWriter.
2770
+ * @param {!proto.DeleteMaterialTaxClassificationValueResponse} message
2771
+ * @param {!jspb.BinaryWriter} writer
2772
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2773
+ */
2774
+ proto.DeleteMaterialTaxClassificationValueResponse.serializeBinaryToWriter = function(message, writer) {
2775
+ var f = undefined;
2776
+ f = message.getReferenceIdsList();
2777
+ if (f.length > 0) {
2778
+ writer.writeRepeatedString(
2779
+ 1,
2780
+ f
2781
+ );
2782
+ }
2783
+ f = message.getMeta();
2784
+ if (f != null) {
2785
+ writer.writeMessage(
2786
+ 2,
2787
+ f,
2788
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2789
+ );
2790
+ }
2791
+ };
2792
+
2793
+
2794
+ /**
2795
+ * repeated string reference_ids = 1;
2796
+ * @return {!Array<string>}
2797
+ */
2798
+ proto.DeleteMaterialTaxClassificationValueResponse.prototype.getReferenceIdsList = function() {
2799
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2800
+ };
2801
+
2802
+
2803
+ /**
2804
+ * @param {!Array<string>} value
2805
+ * @return {!proto.DeleteMaterialTaxClassificationValueResponse} returns this
2806
+ */
2807
+ proto.DeleteMaterialTaxClassificationValueResponse.prototype.setReferenceIdsList = function(value) {
2808
+ return jspb.Message.setField(this, 1, value || []);
2809
+ };
2810
+
2811
+
2812
+ /**
2813
+ * @param {string} value
2814
+ * @param {number=} opt_index
2815
+ * @return {!proto.DeleteMaterialTaxClassificationValueResponse} returns this
2816
+ */
2817
+ proto.DeleteMaterialTaxClassificationValueResponse.prototype.addReferenceIds = function(value, opt_index) {
2818
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2819
+ };
2820
+
2821
+
2822
+ /**
2823
+ * Clears the list making it empty but non-null.
2824
+ * @return {!proto.DeleteMaterialTaxClassificationValueResponse} returns this
2825
+ */
2826
+ proto.DeleteMaterialTaxClassificationValueResponse.prototype.clearReferenceIdsList = function() {
2827
+ return this.setReferenceIdsList([]);
2828
+ };
2829
+
2830
+
2831
+ /**
2832
+ * optional prisca.v1.global.meta.Meta meta = 2;
2833
+ * @return {?proto.prisca.v1.global.meta.Meta}
2834
+ */
2835
+ proto.DeleteMaterialTaxClassificationValueResponse.prototype.getMeta = function() {
2836
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2837
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2838
+ };
2839
+
2840
+
2841
+ /**
2842
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2843
+ * @return {!proto.DeleteMaterialTaxClassificationValueResponse} returns this
2844
+ */
2845
+ proto.DeleteMaterialTaxClassificationValueResponse.prototype.setMeta = function(value) {
2846
+ return jspb.Message.setWrapperField(this, 2, value);
2847
+ };
2848
+
2849
+
2850
+ /**
2851
+ * Clears the message field making it undefined.
2852
+ * @return {!proto.DeleteMaterialTaxClassificationValueResponse} returns this
2853
+ */
2854
+ proto.DeleteMaterialTaxClassificationValueResponse.prototype.clearMeta = function() {
2855
+ return this.setMeta(undefined);
2856
+ };
2857
+
2858
+
2859
+ /**
2860
+ * Returns whether this field is set.
2861
+ * @return {boolean}
2862
+ */
2863
+ proto.DeleteMaterialTaxClassificationValueResponse.prototype.hasMeta = function() {
2864
+ return jspb.Message.getField(this, 2) != null;
2865
+ };
2866
+
2867
+
2868
+ goog.object.extend(exports, proto);