@aldiokta/protocgen 1.1.49 → 1.1.51

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 (31) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/bidding/bidding_pb.js +62 -2
  3. package/prisca/v1/business_fields/business_fields_grpc_pb.js +180 -0
  4. package/prisca/v1/business_fields/business_fields_pb.js +4372 -0
  5. package/prisca/v1/core/bank/bank_grpc_pb.js +156 -0
  6. package/prisca/v1/core/bank/bank_pb.js +1988 -0
  7. package/prisca/v1/core/company/company_grpc_pb.js +11 -0
  8. package/prisca/v1/core/cron_monitor/cron_monitor_grpc_pb.js +221 -0
  9. package/prisca/v1/core/cron_monitor/cron_monitor_pb.js +2681 -0
  10. package/prisca/v1/core/employee/employee_grpc_pb.js +11 -0
  11. package/prisca/v1/core/file_upload/file_upload_pb.js +31 -1
  12. package/prisca/v1/core/item_transaction/item_transaction_pb.js +3400 -930
  13. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +12 -0
  14. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +102 -1
  15. package/prisca/v1/core/line_of_approval_delegation/line_of_approval_delegation_grpc_pb.js +180 -0
  16. package/prisca/v1/core/line_of_approval_delegation/line_of_approval_delegation_pb.js +3707 -0
  17. package/prisca/v1/core/plant/plant_grpc_pb.js +156 -0
  18. package/prisca/v1/core/plant/plant_pb.js +2078 -0
  19. package/prisca/v1/delivery_order/delivery_order_pb.js +31 -1
  20. package/prisca/v1/global/meta/meta_pb.js +452 -0
  21. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +11 -0
  22. package/prisca/v1/good_receipt/good_receipt_pb.js +268 -3
  23. package/prisca/v1/invoice/invoice_grpc_pb.js +11 -0
  24. package/prisca/v1/invoice/invoice_pb.js +292 -4
  25. package/prisca/v1/invoice_type/invoice_type_grpc_pb.js +202 -0
  26. package/prisca/v1/invoice_type/invoice_type_pb.js +3598 -0
  27. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +66 -0
  28. package/prisca/v1/purchase_order/purchase_order_pb.js +1986 -323
  29. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +44 -0
  30. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +2238 -30
  31. package/prisca/v1/vendor_domain/vendor_domain_pb.js +224 -2
@@ -0,0 +1,3598 @@
1
+ // source: prisca/v1/invoice_type/invoice_type.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
+ var prisca_v1_core_item_transaction_item_transaction_pb = require('../../../prisca/v1/core/item_transaction/item_transaction_pb.js');
21
+ goog.object.extend(proto, prisca_v1_core_item_transaction_item_transaction_pb);
22
+ var prisca_v1_core_file_upload_file_upload_pb = require('../../../prisca/v1/core/file_upload/file_upload_pb.js');
23
+ goog.object.extend(proto, prisca_v1_core_file_upload_file_upload_pb);
24
+ var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
25
+ goog.object.extend(proto, prisca_v1_core_transaction_builder_transaction_builder_pb);
26
+ goog.exportSymbol('proto.BaseInvoiceType', null, global);
27
+ goog.exportSymbol('proto.CreateInvoiceTypeReq', null, global);
28
+ goog.exportSymbol('proto.CreateInvoiceTypeRes', null, global);
29
+ goog.exportSymbol('proto.DeleteInvoiceTypeRequest', null, global);
30
+ goog.exportSymbol('proto.DeleteInvoiceTypeResponse', null, global);
31
+ goog.exportSymbol('proto.GetInvoiceTypeByIdReq', null, global);
32
+ goog.exportSymbol('proto.GetInvoiceTypeByIdRes', null, global);
33
+ goog.exportSymbol('proto.GetInvoiceTypeDetailRes', null, global);
34
+ goog.exportSymbol('proto.GetInvoiceTypeItemDetailPreload', null, global);
35
+ goog.exportSymbol('proto.GetInvoiceTypeItemPreload', null, global);
36
+ goog.exportSymbol('proto.GetListInvoiceTypeReq', null, global);
37
+ goog.exportSymbol('proto.GetListInvoiceTypeRes', null, global);
38
+ goog.exportSymbol('proto.InvoiceType', null, global);
39
+ goog.exportSymbol('proto.UpdateInvoiceTypeReq', null, global);
40
+ goog.exportSymbol('proto.UpdateInvoiceTypeRes', null, global);
41
+ /**
42
+ * Generated by JsPbCodeGenerator.
43
+ * @param {Array=} opt_data Optional initial data array, typically from a
44
+ * server response, or constructed directly in Javascript. The array is used
45
+ * in place and becomes part of the constructed object. It is not cloned.
46
+ * If no data is provided, the constructed object will be empty, but still
47
+ * valid.
48
+ * @extends {jspb.Message}
49
+ * @constructor
50
+ */
51
+ proto.BaseInvoiceType = function(opt_data) {
52
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.BaseInvoiceType.repeatedFields_, null);
53
+ };
54
+ goog.inherits(proto.BaseInvoiceType, jspb.Message);
55
+ if (goog.DEBUG && !COMPILED) {
56
+ /**
57
+ * @public
58
+ * @override
59
+ */
60
+ proto.BaseInvoiceType.displayName = 'proto.BaseInvoiceType';
61
+ }
62
+ /**
63
+ * Generated by JsPbCodeGenerator.
64
+ * @param {Array=} opt_data Optional initial data array, typically from a
65
+ * server response, or constructed directly in Javascript. The array is used
66
+ * in place and becomes part of the constructed object. It is not cloned.
67
+ * If no data is provided, the constructed object will be empty, but still
68
+ * valid.
69
+ * @extends {jspb.Message}
70
+ * @constructor
71
+ */
72
+ proto.InvoiceType = function(opt_data) {
73
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.InvoiceType.repeatedFields_, null);
74
+ };
75
+ goog.inherits(proto.InvoiceType, jspb.Message);
76
+ if (goog.DEBUG && !COMPILED) {
77
+ /**
78
+ * @public
79
+ * @override
80
+ */
81
+ proto.InvoiceType.displayName = 'proto.InvoiceType';
82
+ }
83
+ /**
84
+ * Generated by JsPbCodeGenerator.
85
+ * @param {Array=} opt_data Optional initial data array, typically from a
86
+ * server response, or constructed directly in Javascript. The array is used
87
+ * in place and becomes part of the constructed object. It is not cloned.
88
+ * If no data is provided, the constructed object will be empty, but still
89
+ * valid.
90
+ * @extends {jspb.Message}
91
+ * @constructor
92
+ */
93
+ proto.CreateInvoiceTypeReq = function(opt_data) {
94
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
95
+ };
96
+ goog.inherits(proto.CreateInvoiceTypeReq, jspb.Message);
97
+ if (goog.DEBUG && !COMPILED) {
98
+ /**
99
+ * @public
100
+ * @override
101
+ */
102
+ proto.CreateInvoiceTypeReq.displayName = 'proto.CreateInvoiceTypeReq';
103
+ }
104
+ /**
105
+ * Generated by JsPbCodeGenerator.
106
+ * @param {Array=} opt_data Optional initial data array, typically from a
107
+ * server response, or constructed directly in Javascript. The array is used
108
+ * in place and becomes part of the constructed object. It is not cloned.
109
+ * If no data is provided, the constructed object will be empty, but still
110
+ * valid.
111
+ * @extends {jspb.Message}
112
+ * @constructor
113
+ */
114
+ proto.CreateInvoiceTypeRes = function(opt_data) {
115
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
116
+ };
117
+ goog.inherits(proto.CreateInvoiceTypeRes, jspb.Message);
118
+ if (goog.DEBUG && !COMPILED) {
119
+ /**
120
+ * @public
121
+ * @override
122
+ */
123
+ proto.CreateInvoiceTypeRes.displayName = 'proto.CreateInvoiceTypeRes';
124
+ }
125
+ /**
126
+ * Generated by JsPbCodeGenerator.
127
+ * @param {Array=} opt_data Optional initial data array, typically from a
128
+ * server response, or constructed directly in Javascript. The array is used
129
+ * in place and becomes part of the constructed object. It is not cloned.
130
+ * If no data is provided, the constructed object will be empty, but still
131
+ * valid.
132
+ * @extends {jspb.Message}
133
+ * @constructor
134
+ */
135
+ proto.UpdateInvoiceTypeReq = function(opt_data) {
136
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
137
+ };
138
+ goog.inherits(proto.UpdateInvoiceTypeReq, jspb.Message);
139
+ if (goog.DEBUG && !COMPILED) {
140
+ /**
141
+ * @public
142
+ * @override
143
+ */
144
+ proto.UpdateInvoiceTypeReq.displayName = 'proto.UpdateInvoiceTypeReq';
145
+ }
146
+ /**
147
+ * Generated by JsPbCodeGenerator.
148
+ * @param {Array=} opt_data Optional initial data array, typically from a
149
+ * server response, or constructed directly in Javascript. The array is used
150
+ * in place and becomes part of the constructed object. It is not cloned.
151
+ * If no data is provided, the constructed object will be empty, but still
152
+ * valid.
153
+ * @extends {jspb.Message}
154
+ * @constructor
155
+ */
156
+ proto.UpdateInvoiceTypeRes = function(opt_data) {
157
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
158
+ };
159
+ goog.inherits(proto.UpdateInvoiceTypeRes, jspb.Message);
160
+ if (goog.DEBUG && !COMPILED) {
161
+ /**
162
+ * @public
163
+ * @override
164
+ */
165
+ proto.UpdateInvoiceTypeRes.displayName = 'proto.UpdateInvoiceTypeRes';
166
+ }
167
+ /**
168
+ * Generated by JsPbCodeGenerator.
169
+ * @param {Array=} opt_data Optional initial data array, typically from a
170
+ * server response, or constructed directly in Javascript. The array is used
171
+ * in place and becomes part of the constructed object. It is not cloned.
172
+ * If no data is provided, the constructed object will be empty, but still
173
+ * valid.
174
+ * @extends {jspb.Message}
175
+ * @constructor
176
+ */
177
+ proto.DeleteInvoiceTypeRequest = function(opt_data) {
178
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteInvoiceTypeRequest.repeatedFields_, null);
179
+ };
180
+ goog.inherits(proto.DeleteInvoiceTypeRequest, jspb.Message);
181
+ if (goog.DEBUG && !COMPILED) {
182
+ /**
183
+ * @public
184
+ * @override
185
+ */
186
+ proto.DeleteInvoiceTypeRequest.displayName = 'proto.DeleteInvoiceTypeRequest';
187
+ }
188
+ /**
189
+ * Generated by JsPbCodeGenerator.
190
+ * @param {Array=} opt_data Optional initial data array, typically from a
191
+ * server response, or constructed directly in Javascript. The array is used
192
+ * in place and becomes part of the constructed object. It is not cloned.
193
+ * If no data is provided, the constructed object will be empty, but still
194
+ * valid.
195
+ * @extends {jspb.Message}
196
+ * @constructor
197
+ */
198
+ proto.GetInvoiceTypeByIdReq = function(opt_data) {
199
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
200
+ };
201
+ goog.inherits(proto.GetInvoiceTypeByIdReq, jspb.Message);
202
+ if (goog.DEBUG && !COMPILED) {
203
+ /**
204
+ * @public
205
+ * @override
206
+ */
207
+ proto.GetInvoiceTypeByIdReq.displayName = 'proto.GetInvoiceTypeByIdReq';
208
+ }
209
+ /**
210
+ * Generated by JsPbCodeGenerator.
211
+ * @param {Array=} opt_data Optional initial data array, typically from a
212
+ * server response, or constructed directly in Javascript. The array is used
213
+ * in place and becomes part of the constructed object. It is not cloned.
214
+ * If no data is provided, the constructed object will be empty, but still
215
+ * valid.
216
+ * @extends {jspb.Message}
217
+ * @constructor
218
+ */
219
+ proto.GetInvoiceTypeByIdRes = function(opt_data) {
220
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
221
+ };
222
+ goog.inherits(proto.GetInvoiceTypeByIdRes, jspb.Message);
223
+ if (goog.DEBUG && !COMPILED) {
224
+ /**
225
+ * @public
226
+ * @override
227
+ */
228
+ proto.GetInvoiceTypeByIdRes.displayName = 'proto.GetInvoiceTypeByIdRes';
229
+ }
230
+ /**
231
+ * Generated by JsPbCodeGenerator.
232
+ * @param {Array=} opt_data Optional initial data array, typically from a
233
+ * server response, or constructed directly in Javascript. The array is used
234
+ * in place and becomes part of the constructed object. It is not cloned.
235
+ * If no data is provided, the constructed object will be empty, but still
236
+ * valid.
237
+ * @extends {jspb.Message}
238
+ * @constructor
239
+ */
240
+ proto.GetInvoiceTypeDetailRes = function(opt_data) {
241
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetInvoiceTypeDetailRes.repeatedFields_, null);
242
+ };
243
+ goog.inherits(proto.GetInvoiceTypeDetailRes, jspb.Message);
244
+ if (goog.DEBUG && !COMPILED) {
245
+ /**
246
+ * @public
247
+ * @override
248
+ */
249
+ proto.GetInvoiceTypeDetailRes.displayName = 'proto.GetInvoiceTypeDetailRes';
250
+ }
251
+ /**
252
+ * Generated by JsPbCodeGenerator.
253
+ * @param {Array=} opt_data Optional initial data array, typically from a
254
+ * server response, or constructed directly in Javascript. The array is used
255
+ * in place and becomes part of the constructed object. It is not cloned.
256
+ * If no data is provided, the constructed object will be empty, but still
257
+ * valid.
258
+ * @extends {jspb.Message}
259
+ * @constructor
260
+ */
261
+ proto.GetInvoiceTypeItemPreload = function(opt_data) {
262
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetInvoiceTypeItemPreload.repeatedFields_, null);
263
+ };
264
+ goog.inherits(proto.GetInvoiceTypeItemPreload, jspb.Message);
265
+ if (goog.DEBUG && !COMPILED) {
266
+ /**
267
+ * @public
268
+ * @override
269
+ */
270
+ proto.GetInvoiceTypeItemPreload.displayName = 'proto.GetInvoiceTypeItemPreload';
271
+ }
272
+ /**
273
+ * Generated by JsPbCodeGenerator.
274
+ * @param {Array=} opt_data Optional initial data array, typically from a
275
+ * server response, or constructed directly in Javascript. The array is used
276
+ * in place and becomes part of the constructed object. It is not cloned.
277
+ * If no data is provided, the constructed object will be empty, but still
278
+ * valid.
279
+ * @extends {jspb.Message}
280
+ * @constructor
281
+ */
282
+ proto.GetInvoiceTypeItemDetailPreload = function(opt_data) {
283
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetInvoiceTypeItemDetailPreload.repeatedFields_, null);
284
+ };
285
+ goog.inherits(proto.GetInvoiceTypeItemDetailPreload, jspb.Message);
286
+ if (goog.DEBUG && !COMPILED) {
287
+ /**
288
+ * @public
289
+ * @override
290
+ */
291
+ proto.GetInvoiceTypeItemDetailPreload.displayName = 'proto.GetInvoiceTypeItemDetailPreload';
292
+ }
293
+ /**
294
+ * Generated by JsPbCodeGenerator.
295
+ * @param {Array=} opt_data Optional initial data array, typically from a
296
+ * server response, or constructed directly in Javascript. The array is used
297
+ * in place and becomes part of the constructed object. It is not cloned.
298
+ * If no data is provided, the constructed object will be empty, but still
299
+ * valid.
300
+ * @extends {jspb.Message}
301
+ * @constructor
302
+ */
303
+ proto.GetListInvoiceTypeReq = function(opt_data) {
304
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
305
+ };
306
+ goog.inherits(proto.GetListInvoiceTypeReq, jspb.Message);
307
+ if (goog.DEBUG && !COMPILED) {
308
+ /**
309
+ * @public
310
+ * @override
311
+ */
312
+ proto.GetListInvoiceTypeReq.displayName = 'proto.GetListInvoiceTypeReq';
313
+ }
314
+ /**
315
+ * Generated by JsPbCodeGenerator.
316
+ * @param {Array=} opt_data Optional initial data array, typically from a
317
+ * server response, or constructed directly in Javascript. The array is used
318
+ * in place and becomes part of the constructed object. It is not cloned.
319
+ * If no data is provided, the constructed object will be empty, but still
320
+ * valid.
321
+ * @extends {jspb.Message}
322
+ * @constructor
323
+ */
324
+ proto.GetListInvoiceTypeRes = function(opt_data) {
325
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListInvoiceTypeRes.repeatedFields_, null);
326
+ };
327
+ goog.inherits(proto.GetListInvoiceTypeRes, jspb.Message);
328
+ if (goog.DEBUG && !COMPILED) {
329
+ /**
330
+ * @public
331
+ * @override
332
+ */
333
+ proto.GetListInvoiceTypeRes.displayName = 'proto.GetListInvoiceTypeRes';
334
+ }
335
+ /**
336
+ * Generated by JsPbCodeGenerator.
337
+ * @param {Array=} opt_data Optional initial data array, typically from a
338
+ * server response, or constructed directly in Javascript. The array is used
339
+ * in place and becomes part of the constructed object. It is not cloned.
340
+ * If no data is provided, the constructed object will be empty, but still
341
+ * valid.
342
+ * @extends {jspb.Message}
343
+ * @constructor
344
+ */
345
+ proto.DeleteInvoiceTypeResponse = function(opt_data) {
346
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteInvoiceTypeResponse.repeatedFields_, null);
347
+ };
348
+ goog.inherits(proto.DeleteInvoiceTypeResponse, jspb.Message);
349
+ if (goog.DEBUG && !COMPILED) {
350
+ /**
351
+ * @public
352
+ * @override
353
+ */
354
+ proto.DeleteInvoiceTypeResponse.displayName = 'proto.DeleteInvoiceTypeResponse';
355
+ }
356
+
357
+ /**
358
+ * List of repeated fields within this message type.
359
+ * @private {!Array<number>}
360
+ * @const
361
+ */
362
+ proto.BaseInvoiceType.repeatedFields_ = [4];
363
+
364
+
365
+
366
+ if (jspb.Message.GENERATE_TO_OBJECT) {
367
+ /**
368
+ * Creates an object representation of this proto.
369
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
370
+ * Optional fields that are not set will be set to undefined.
371
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
372
+ * For the list of reserved names please see:
373
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
374
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
375
+ * JSPB instance for transitional soy proto support:
376
+ * http://goto/soy-param-migration
377
+ * @return {!Object}
378
+ */
379
+ proto.BaseInvoiceType.prototype.toObject = function(opt_includeInstance) {
380
+ return proto.BaseInvoiceType.toObject(opt_includeInstance, this);
381
+ };
382
+
383
+
384
+ /**
385
+ * Static version of the {@see toObject} method.
386
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
387
+ * the JSPB instance for transitional soy proto support:
388
+ * http://goto/soy-param-migration
389
+ * @param {!proto.BaseInvoiceType} msg The msg instance to transform.
390
+ * @return {!Object}
391
+ * @suppress {unusedLocalVariables} f is only used for nested messages
392
+ */
393
+ proto.BaseInvoiceType.toObject = function(includeInstance, msg) {
394
+ var f, obj = {
395
+ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
396
+ type: jspb.Message.getFieldWithDefault(msg, 2, ""),
397
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
398
+ filesList: jspb.Message.toObjectList(msg.getFilesList(),
399
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance)
400
+ };
401
+
402
+ if (includeInstance) {
403
+ obj.$jspbMessageInstance = msg;
404
+ }
405
+ return obj;
406
+ };
407
+ }
408
+
409
+
410
+ /**
411
+ * Deserializes binary data (in protobuf wire format).
412
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
413
+ * @return {!proto.BaseInvoiceType}
414
+ */
415
+ proto.BaseInvoiceType.deserializeBinary = function(bytes) {
416
+ var reader = new jspb.BinaryReader(bytes);
417
+ var msg = new proto.BaseInvoiceType;
418
+ return proto.BaseInvoiceType.deserializeBinaryFromReader(msg, reader);
419
+ };
420
+
421
+
422
+ /**
423
+ * Deserializes binary data (in protobuf wire format) from the
424
+ * given reader into the given message object.
425
+ * @param {!proto.BaseInvoiceType} msg The message object to deserialize into.
426
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
427
+ * @return {!proto.BaseInvoiceType}
428
+ */
429
+ proto.BaseInvoiceType.deserializeBinaryFromReader = function(msg, reader) {
430
+ while (reader.nextField()) {
431
+ if (reader.isEndGroup()) {
432
+ break;
433
+ }
434
+ var field = reader.getFieldNumber();
435
+ switch (field) {
436
+ case 1:
437
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
438
+ msg.setCode(value);
439
+ break;
440
+ case 2:
441
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
442
+ msg.setType(value);
443
+ break;
444
+ case 3:
445
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
446
+ msg.setDescription(value);
447
+ break;
448
+ case 4:
449
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
450
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
451
+ msg.addFiles(value);
452
+ break;
453
+ default:
454
+ reader.skipField();
455
+ break;
456
+ }
457
+ }
458
+ return msg;
459
+ };
460
+
461
+
462
+ /**
463
+ * Serializes the message to binary data (in protobuf wire format).
464
+ * @return {!Uint8Array}
465
+ */
466
+ proto.BaseInvoiceType.prototype.serializeBinary = function() {
467
+ var writer = new jspb.BinaryWriter();
468
+ proto.BaseInvoiceType.serializeBinaryToWriter(this, writer);
469
+ return writer.getResultBuffer();
470
+ };
471
+
472
+
473
+ /**
474
+ * Serializes the given message to binary data (in protobuf wire
475
+ * format), writing to the given BinaryWriter.
476
+ * @param {!proto.BaseInvoiceType} message
477
+ * @param {!jspb.BinaryWriter} writer
478
+ * @suppress {unusedLocalVariables} f is only used for nested messages
479
+ */
480
+ proto.BaseInvoiceType.serializeBinaryToWriter = function(message, writer) {
481
+ var f = undefined;
482
+ f = message.getCode();
483
+ if (f.length > 0) {
484
+ writer.writeString(
485
+ 1,
486
+ f
487
+ );
488
+ }
489
+ f = message.getType();
490
+ if (f.length > 0) {
491
+ writer.writeString(
492
+ 2,
493
+ f
494
+ );
495
+ }
496
+ f = message.getDescription();
497
+ if (f.length > 0) {
498
+ writer.writeString(
499
+ 3,
500
+ f
501
+ );
502
+ }
503
+ f = message.getFilesList();
504
+ if (f.length > 0) {
505
+ writer.writeRepeatedMessage(
506
+ 4,
507
+ f,
508
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
509
+ );
510
+ }
511
+ };
512
+
513
+
514
+ /**
515
+ * optional string code = 1;
516
+ * @return {string}
517
+ */
518
+ proto.BaseInvoiceType.prototype.getCode = function() {
519
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
520
+ };
521
+
522
+
523
+ /**
524
+ * @param {string} value
525
+ * @return {!proto.BaseInvoiceType} returns this
526
+ */
527
+ proto.BaseInvoiceType.prototype.setCode = function(value) {
528
+ return jspb.Message.setProto3StringField(this, 1, value);
529
+ };
530
+
531
+
532
+ /**
533
+ * optional string type = 2;
534
+ * @return {string}
535
+ */
536
+ proto.BaseInvoiceType.prototype.getType = function() {
537
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
538
+ };
539
+
540
+
541
+ /**
542
+ * @param {string} value
543
+ * @return {!proto.BaseInvoiceType} returns this
544
+ */
545
+ proto.BaseInvoiceType.prototype.setType = function(value) {
546
+ return jspb.Message.setProto3StringField(this, 2, value);
547
+ };
548
+
549
+
550
+ /**
551
+ * optional string description = 3;
552
+ * @return {string}
553
+ */
554
+ proto.BaseInvoiceType.prototype.getDescription = function() {
555
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
556
+ };
557
+
558
+
559
+ /**
560
+ * @param {string} value
561
+ * @return {!proto.BaseInvoiceType} returns this
562
+ */
563
+ proto.BaseInvoiceType.prototype.setDescription = function(value) {
564
+ return jspb.Message.setProto3StringField(this, 3, value);
565
+ };
566
+
567
+
568
+ /**
569
+ * repeated FileUploadReferencesReq files = 4;
570
+ * @return {!Array<!proto.FileUploadReferencesReq>}
571
+ */
572
+ proto.BaseInvoiceType.prototype.getFilesList = function() {
573
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
574
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 4));
575
+ };
576
+
577
+
578
+ /**
579
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
580
+ * @return {!proto.BaseInvoiceType} returns this
581
+ */
582
+ proto.BaseInvoiceType.prototype.setFilesList = function(value) {
583
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
584
+ };
585
+
586
+
587
+ /**
588
+ * @param {!proto.FileUploadReferencesReq=} opt_value
589
+ * @param {number=} opt_index
590
+ * @return {!proto.FileUploadReferencesReq}
591
+ */
592
+ proto.BaseInvoiceType.prototype.addFiles = function(opt_value, opt_index) {
593
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.FileUploadReferencesReq, opt_index);
594
+ };
595
+
596
+
597
+ /**
598
+ * Clears the list making it empty but non-null.
599
+ * @return {!proto.BaseInvoiceType} returns this
600
+ */
601
+ proto.BaseInvoiceType.prototype.clearFilesList = function() {
602
+ return this.setFilesList([]);
603
+ };
604
+
605
+
606
+
607
+ /**
608
+ * List of repeated fields within this message type.
609
+ * @private {!Array<number>}
610
+ * @const
611
+ */
612
+ proto.InvoiceType.repeatedFields_ = [11];
613
+
614
+
615
+
616
+ if (jspb.Message.GENERATE_TO_OBJECT) {
617
+ /**
618
+ * Creates an object representation of this proto.
619
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
620
+ * Optional fields that are not set will be set to undefined.
621
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
622
+ * For the list of reserved names please see:
623
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
624
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
625
+ * JSPB instance for transitional soy proto support:
626
+ * http://goto/soy-param-migration
627
+ * @return {!Object}
628
+ */
629
+ proto.InvoiceType.prototype.toObject = function(opt_includeInstance) {
630
+ return proto.InvoiceType.toObject(opt_includeInstance, this);
631
+ };
632
+
633
+
634
+ /**
635
+ * Static version of the {@see toObject} method.
636
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
637
+ * the JSPB instance for transitional soy proto support:
638
+ * http://goto/soy-param-migration
639
+ * @param {!proto.InvoiceType} msg The msg instance to transform.
640
+ * @return {!Object}
641
+ * @suppress {unusedLocalVariables} f is only used for nested messages
642
+ */
643
+ proto.InvoiceType.toObject = function(includeInstance, msg) {
644
+ var f, obj = {
645
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
646
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
647
+ type: jspb.Message.getFieldWithDefault(msg, 3, ""),
648
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
649
+ referencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
650
+ createdAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
651
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
652
+ createdBy: jspb.Message.getFieldWithDefault(msg, 8, ""),
653
+ updatedBy: jspb.Message.getFieldWithDefault(msg, 9, ""),
654
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 10, ""),
655
+ filesList: jspb.Message.toObjectList(msg.getFilesList(),
656
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
657
+ createdByUser: (f = msg.getCreatedByUser()) && prisca_v1_global_meta_meta_pb.Creator.toObject(includeInstance, f),
658
+ updatedByUser: (f = msg.getUpdatedByUser()) && prisca_v1_global_meta_meta_pb.Creator.toObject(includeInstance, f)
659
+ };
660
+
661
+ if (includeInstance) {
662
+ obj.$jspbMessageInstance = msg;
663
+ }
664
+ return obj;
665
+ };
666
+ }
667
+
668
+
669
+ /**
670
+ * Deserializes binary data (in protobuf wire format).
671
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
672
+ * @return {!proto.InvoiceType}
673
+ */
674
+ proto.InvoiceType.deserializeBinary = function(bytes) {
675
+ var reader = new jspb.BinaryReader(bytes);
676
+ var msg = new proto.InvoiceType;
677
+ return proto.InvoiceType.deserializeBinaryFromReader(msg, reader);
678
+ };
679
+
680
+
681
+ /**
682
+ * Deserializes binary data (in protobuf wire format) from the
683
+ * given reader into the given message object.
684
+ * @param {!proto.InvoiceType} msg The message object to deserialize into.
685
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
686
+ * @return {!proto.InvoiceType}
687
+ */
688
+ proto.InvoiceType.deserializeBinaryFromReader = function(msg, reader) {
689
+ while (reader.nextField()) {
690
+ if (reader.isEndGroup()) {
691
+ break;
692
+ }
693
+ var field = reader.getFieldNumber();
694
+ switch (field) {
695
+ case 1:
696
+ var value = /** @type {number} */ (reader.readInt64());
697
+ msg.setId(value);
698
+ break;
699
+ case 2:
700
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
701
+ msg.setCode(value);
702
+ break;
703
+ case 3:
704
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
705
+ msg.setType(value);
706
+ break;
707
+ case 4:
708
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
709
+ msg.setDescription(value);
710
+ break;
711
+ case 5:
712
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
713
+ msg.setReferencesId(value);
714
+ break;
715
+ case 6:
716
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
717
+ msg.setCreatedAt(value);
718
+ break;
719
+ case 7:
720
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
721
+ msg.setUpdatedAt(value);
722
+ break;
723
+ case 8:
724
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
725
+ msg.setCreatedBy(value);
726
+ break;
727
+ case 9:
728
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
729
+ msg.setUpdatedBy(value);
730
+ break;
731
+ case 10:
732
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
733
+ msg.setCompaniesReferencesId(value);
734
+ break;
735
+ case 11:
736
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
737
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
738
+ msg.addFiles(value);
739
+ break;
740
+ case 12:
741
+ var value = new prisca_v1_global_meta_meta_pb.Creator;
742
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Creator.deserializeBinaryFromReader);
743
+ msg.setCreatedByUser(value);
744
+ break;
745
+ case 13:
746
+ var value = new prisca_v1_global_meta_meta_pb.Creator;
747
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Creator.deserializeBinaryFromReader);
748
+ msg.setUpdatedByUser(value);
749
+ break;
750
+ default:
751
+ reader.skipField();
752
+ break;
753
+ }
754
+ }
755
+ return msg;
756
+ };
757
+
758
+
759
+ /**
760
+ * Serializes the message to binary data (in protobuf wire format).
761
+ * @return {!Uint8Array}
762
+ */
763
+ proto.InvoiceType.prototype.serializeBinary = function() {
764
+ var writer = new jspb.BinaryWriter();
765
+ proto.InvoiceType.serializeBinaryToWriter(this, writer);
766
+ return writer.getResultBuffer();
767
+ };
768
+
769
+
770
+ /**
771
+ * Serializes the given message to binary data (in protobuf wire
772
+ * format), writing to the given BinaryWriter.
773
+ * @param {!proto.InvoiceType} message
774
+ * @param {!jspb.BinaryWriter} writer
775
+ * @suppress {unusedLocalVariables} f is only used for nested messages
776
+ */
777
+ proto.InvoiceType.serializeBinaryToWriter = function(message, writer) {
778
+ var f = undefined;
779
+ f = message.getId();
780
+ if (f !== 0) {
781
+ writer.writeInt64(
782
+ 1,
783
+ f
784
+ );
785
+ }
786
+ f = message.getCode();
787
+ if (f.length > 0) {
788
+ writer.writeString(
789
+ 2,
790
+ f
791
+ );
792
+ }
793
+ f = message.getType();
794
+ if (f.length > 0) {
795
+ writer.writeString(
796
+ 3,
797
+ f
798
+ );
799
+ }
800
+ f = message.getDescription();
801
+ if (f.length > 0) {
802
+ writer.writeString(
803
+ 4,
804
+ f
805
+ );
806
+ }
807
+ f = message.getReferencesId();
808
+ if (f.length > 0) {
809
+ writer.writeString(
810
+ 5,
811
+ f
812
+ );
813
+ }
814
+ f = message.getCreatedAt();
815
+ if (f.length > 0) {
816
+ writer.writeString(
817
+ 6,
818
+ f
819
+ );
820
+ }
821
+ f = message.getUpdatedAt();
822
+ if (f.length > 0) {
823
+ writer.writeString(
824
+ 7,
825
+ f
826
+ );
827
+ }
828
+ f = message.getCreatedBy();
829
+ if (f.length > 0) {
830
+ writer.writeString(
831
+ 8,
832
+ f
833
+ );
834
+ }
835
+ f = message.getUpdatedBy();
836
+ if (f.length > 0) {
837
+ writer.writeString(
838
+ 9,
839
+ f
840
+ );
841
+ }
842
+ f = message.getCompaniesReferencesId();
843
+ if (f.length > 0) {
844
+ writer.writeString(
845
+ 10,
846
+ f
847
+ );
848
+ }
849
+ f = message.getFilesList();
850
+ if (f.length > 0) {
851
+ writer.writeRepeatedMessage(
852
+ 11,
853
+ f,
854
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
855
+ );
856
+ }
857
+ f = message.getCreatedByUser();
858
+ if (f != null) {
859
+ writer.writeMessage(
860
+ 12,
861
+ f,
862
+ prisca_v1_global_meta_meta_pb.Creator.serializeBinaryToWriter
863
+ );
864
+ }
865
+ f = message.getUpdatedByUser();
866
+ if (f != null) {
867
+ writer.writeMessage(
868
+ 13,
869
+ f,
870
+ prisca_v1_global_meta_meta_pb.Creator.serializeBinaryToWriter
871
+ );
872
+ }
873
+ };
874
+
875
+
876
+ /**
877
+ * optional int64 id = 1;
878
+ * @return {number}
879
+ */
880
+ proto.InvoiceType.prototype.getId = function() {
881
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
882
+ };
883
+
884
+
885
+ /**
886
+ * @param {number} value
887
+ * @return {!proto.InvoiceType} returns this
888
+ */
889
+ proto.InvoiceType.prototype.setId = function(value) {
890
+ return jspb.Message.setProto3IntField(this, 1, value);
891
+ };
892
+
893
+
894
+ /**
895
+ * optional string code = 2;
896
+ * @return {string}
897
+ */
898
+ proto.InvoiceType.prototype.getCode = function() {
899
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
900
+ };
901
+
902
+
903
+ /**
904
+ * @param {string} value
905
+ * @return {!proto.InvoiceType} returns this
906
+ */
907
+ proto.InvoiceType.prototype.setCode = function(value) {
908
+ return jspb.Message.setProto3StringField(this, 2, value);
909
+ };
910
+
911
+
912
+ /**
913
+ * optional string type = 3;
914
+ * @return {string}
915
+ */
916
+ proto.InvoiceType.prototype.getType = function() {
917
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
918
+ };
919
+
920
+
921
+ /**
922
+ * @param {string} value
923
+ * @return {!proto.InvoiceType} returns this
924
+ */
925
+ proto.InvoiceType.prototype.setType = function(value) {
926
+ return jspb.Message.setProto3StringField(this, 3, value);
927
+ };
928
+
929
+
930
+ /**
931
+ * optional string description = 4;
932
+ * @return {string}
933
+ */
934
+ proto.InvoiceType.prototype.getDescription = function() {
935
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
936
+ };
937
+
938
+
939
+ /**
940
+ * @param {string} value
941
+ * @return {!proto.InvoiceType} returns this
942
+ */
943
+ proto.InvoiceType.prototype.setDescription = function(value) {
944
+ return jspb.Message.setProto3StringField(this, 4, value);
945
+ };
946
+
947
+
948
+ /**
949
+ * optional string references_id = 5;
950
+ * @return {string}
951
+ */
952
+ proto.InvoiceType.prototype.getReferencesId = function() {
953
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
954
+ };
955
+
956
+
957
+ /**
958
+ * @param {string} value
959
+ * @return {!proto.InvoiceType} returns this
960
+ */
961
+ proto.InvoiceType.prototype.setReferencesId = function(value) {
962
+ return jspb.Message.setProto3StringField(this, 5, value);
963
+ };
964
+
965
+
966
+ /**
967
+ * optional string created_at = 6;
968
+ * @return {string}
969
+ */
970
+ proto.InvoiceType.prototype.getCreatedAt = function() {
971
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
972
+ };
973
+
974
+
975
+ /**
976
+ * @param {string} value
977
+ * @return {!proto.InvoiceType} returns this
978
+ */
979
+ proto.InvoiceType.prototype.setCreatedAt = function(value) {
980
+ return jspb.Message.setProto3StringField(this, 6, value);
981
+ };
982
+
983
+
984
+ /**
985
+ * optional string updated_at = 7;
986
+ * @return {string}
987
+ */
988
+ proto.InvoiceType.prototype.getUpdatedAt = function() {
989
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
990
+ };
991
+
992
+
993
+ /**
994
+ * @param {string} value
995
+ * @return {!proto.InvoiceType} returns this
996
+ */
997
+ proto.InvoiceType.prototype.setUpdatedAt = function(value) {
998
+ return jspb.Message.setProto3StringField(this, 7, value);
999
+ };
1000
+
1001
+
1002
+ /**
1003
+ * optional string created_by = 8;
1004
+ * @return {string}
1005
+ */
1006
+ proto.InvoiceType.prototype.getCreatedBy = function() {
1007
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1008
+ };
1009
+
1010
+
1011
+ /**
1012
+ * @param {string} value
1013
+ * @return {!proto.InvoiceType} returns this
1014
+ */
1015
+ proto.InvoiceType.prototype.setCreatedBy = function(value) {
1016
+ return jspb.Message.setProto3StringField(this, 8, value);
1017
+ };
1018
+
1019
+
1020
+ /**
1021
+ * optional string updated_by = 9;
1022
+ * @return {string}
1023
+ */
1024
+ proto.InvoiceType.prototype.getUpdatedBy = function() {
1025
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1026
+ };
1027
+
1028
+
1029
+ /**
1030
+ * @param {string} value
1031
+ * @return {!proto.InvoiceType} returns this
1032
+ */
1033
+ proto.InvoiceType.prototype.setUpdatedBy = function(value) {
1034
+ return jspb.Message.setProto3StringField(this, 9, value);
1035
+ };
1036
+
1037
+
1038
+ /**
1039
+ * optional string companies_references_id = 10;
1040
+ * @return {string}
1041
+ */
1042
+ proto.InvoiceType.prototype.getCompaniesReferencesId = function() {
1043
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1044
+ };
1045
+
1046
+
1047
+ /**
1048
+ * @param {string} value
1049
+ * @return {!proto.InvoiceType} returns this
1050
+ */
1051
+ proto.InvoiceType.prototype.setCompaniesReferencesId = function(value) {
1052
+ return jspb.Message.setProto3StringField(this, 10, value);
1053
+ };
1054
+
1055
+
1056
+ /**
1057
+ * repeated FileUploadReferencesReq files = 11;
1058
+ * @return {!Array<!proto.FileUploadReferencesReq>}
1059
+ */
1060
+ proto.InvoiceType.prototype.getFilesList = function() {
1061
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
1062
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 11));
1063
+ };
1064
+
1065
+
1066
+ /**
1067
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
1068
+ * @return {!proto.InvoiceType} returns this
1069
+ */
1070
+ proto.InvoiceType.prototype.setFilesList = function(value) {
1071
+ return jspb.Message.setRepeatedWrapperField(this, 11, value);
1072
+ };
1073
+
1074
+
1075
+ /**
1076
+ * @param {!proto.FileUploadReferencesReq=} opt_value
1077
+ * @param {number=} opt_index
1078
+ * @return {!proto.FileUploadReferencesReq}
1079
+ */
1080
+ proto.InvoiceType.prototype.addFiles = function(opt_value, opt_index) {
1081
+ return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.FileUploadReferencesReq, opt_index);
1082
+ };
1083
+
1084
+
1085
+ /**
1086
+ * Clears the list making it empty but non-null.
1087
+ * @return {!proto.InvoiceType} returns this
1088
+ */
1089
+ proto.InvoiceType.prototype.clearFilesList = function() {
1090
+ return this.setFilesList([]);
1091
+ };
1092
+
1093
+
1094
+ /**
1095
+ * optional prisca.v1.global.meta.Creator created_by_user = 12;
1096
+ * @return {?proto.prisca.v1.global.meta.Creator}
1097
+ */
1098
+ proto.InvoiceType.prototype.getCreatedByUser = function() {
1099
+ return /** @type{?proto.prisca.v1.global.meta.Creator} */ (
1100
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Creator, 12));
1101
+ };
1102
+
1103
+
1104
+ /**
1105
+ * @param {?proto.prisca.v1.global.meta.Creator|undefined} value
1106
+ * @return {!proto.InvoiceType} returns this
1107
+ */
1108
+ proto.InvoiceType.prototype.setCreatedByUser = function(value) {
1109
+ return jspb.Message.setWrapperField(this, 12, value);
1110
+ };
1111
+
1112
+
1113
+ /**
1114
+ * Clears the message field making it undefined.
1115
+ * @return {!proto.InvoiceType} returns this
1116
+ */
1117
+ proto.InvoiceType.prototype.clearCreatedByUser = function() {
1118
+ return this.setCreatedByUser(undefined);
1119
+ };
1120
+
1121
+
1122
+ /**
1123
+ * Returns whether this field is set.
1124
+ * @return {boolean}
1125
+ */
1126
+ proto.InvoiceType.prototype.hasCreatedByUser = function() {
1127
+ return jspb.Message.getField(this, 12) != null;
1128
+ };
1129
+
1130
+
1131
+ /**
1132
+ * optional prisca.v1.global.meta.Creator updated_by_user = 13;
1133
+ * @return {?proto.prisca.v1.global.meta.Creator}
1134
+ */
1135
+ proto.InvoiceType.prototype.getUpdatedByUser = function() {
1136
+ return /** @type{?proto.prisca.v1.global.meta.Creator} */ (
1137
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Creator, 13));
1138
+ };
1139
+
1140
+
1141
+ /**
1142
+ * @param {?proto.prisca.v1.global.meta.Creator|undefined} value
1143
+ * @return {!proto.InvoiceType} returns this
1144
+ */
1145
+ proto.InvoiceType.prototype.setUpdatedByUser = function(value) {
1146
+ return jspb.Message.setWrapperField(this, 13, value);
1147
+ };
1148
+
1149
+
1150
+ /**
1151
+ * Clears the message field making it undefined.
1152
+ * @return {!proto.InvoiceType} returns this
1153
+ */
1154
+ proto.InvoiceType.prototype.clearUpdatedByUser = function() {
1155
+ return this.setUpdatedByUser(undefined);
1156
+ };
1157
+
1158
+
1159
+ /**
1160
+ * Returns whether this field is set.
1161
+ * @return {boolean}
1162
+ */
1163
+ proto.InvoiceType.prototype.hasUpdatedByUser = function() {
1164
+ return jspb.Message.getField(this, 13) != null;
1165
+ };
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1172
+ /**
1173
+ * Creates an object representation of this proto.
1174
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1175
+ * Optional fields that are not set will be set to undefined.
1176
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1177
+ * For the list of reserved names please see:
1178
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1179
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1180
+ * JSPB instance for transitional soy proto support:
1181
+ * http://goto/soy-param-migration
1182
+ * @return {!Object}
1183
+ */
1184
+ proto.CreateInvoiceTypeReq.prototype.toObject = function(opt_includeInstance) {
1185
+ return proto.CreateInvoiceTypeReq.toObject(opt_includeInstance, this);
1186
+ };
1187
+
1188
+
1189
+ /**
1190
+ * Static version of the {@see toObject} method.
1191
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1192
+ * the JSPB instance for transitional soy proto support:
1193
+ * http://goto/soy-param-migration
1194
+ * @param {!proto.CreateInvoiceTypeReq} msg The msg instance to transform.
1195
+ * @return {!Object}
1196
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1197
+ */
1198
+ proto.CreateInvoiceTypeReq.toObject = function(includeInstance, msg) {
1199
+ var f, obj = {
1200
+ baseInvoiceType: (f = msg.getBaseInvoiceType()) && proto.BaseInvoiceType.toObject(includeInstance, f)
1201
+ };
1202
+
1203
+ if (includeInstance) {
1204
+ obj.$jspbMessageInstance = msg;
1205
+ }
1206
+ return obj;
1207
+ };
1208
+ }
1209
+
1210
+
1211
+ /**
1212
+ * Deserializes binary data (in protobuf wire format).
1213
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1214
+ * @return {!proto.CreateInvoiceTypeReq}
1215
+ */
1216
+ proto.CreateInvoiceTypeReq.deserializeBinary = function(bytes) {
1217
+ var reader = new jspb.BinaryReader(bytes);
1218
+ var msg = new proto.CreateInvoiceTypeReq;
1219
+ return proto.CreateInvoiceTypeReq.deserializeBinaryFromReader(msg, reader);
1220
+ };
1221
+
1222
+
1223
+ /**
1224
+ * Deserializes binary data (in protobuf wire format) from the
1225
+ * given reader into the given message object.
1226
+ * @param {!proto.CreateInvoiceTypeReq} msg The message object to deserialize into.
1227
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1228
+ * @return {!proto.CreateInvoiceTypeReq}
1229
+ */
1230
+ proto.CreateInvoiceTypeReq.deserializeBinaryFromReader = function(msg, reader) {
1231
+ while (reader.nextField()) {
1232
+ if (reader.isEndGroup()) {
1233
+ break;
1234
+ }
1235
+ var field = reader.getFieldNumber();
1236
+ switch (field) {
1237
+ case 1:
1238
+ var value = new proto.BaseInvoiceType;
1239
+ reader.readMessage(value,proto.BaseInvoiceType.deserializeBinaryFromReader);
1240
+ msg.setBaseInvoiceType(value);
1241
+ break;
1242
+ default:
1243
+ reader.skipField();
1244
+ break;
1245
+ }
1246
+ }
1247
+ return msg;
1248
+ };
1249
+
1250
+
1251
+ /**
1252
+ * Serializes the message to binary data (in protobuf wire format).
1253
+ * @return {!Uint8Array}
1254
+ */
1255
+ proto.CreateInvoiceTypeReq.prototype.serializeBinary = function() {
1256
+ var writer = new jspb.BinaryWriter();
1257
+ proto.CreateInvoiceTypeReq.serializeBinaryToWriter(this, writer);
1258
+ return writer.getResultBuffer();
1259
+ };
1260
+
1261
+
1262
+ /**
1263
+ * Serializes the given message to binary data (in protobuf wire
1264
+ * format), writing to the given BinaryWriter.
1265
+ * @param {!proto.CreateInvoiceTypeReq} message
1266
+ * @param {!jspb.BinaryWriter} writer
1267
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1268
+ */
1269
+ proto.CreateInvoiceTypeReq.serializeBinaryToWriter = function(message, writer) {
1270
+ var f = undefined;
1271
+ f = message.getBaseInvoiceType();
1272
+ if (f != null) {
1273
+ writer.writeMessage(
1274
+ 1,
1275
+ f,
1276
+ proto.BaseInvoiceType.serializeBinaryToWriter
1277
+ );
1278
+ }
1279
+ };
1280
+
1281
+
1282
+ /**
1283
+ * optional BaseInvoiceType base_invoice_type = 1;
1284
+ * @return {?proto.BaseInvoiceType}
1285
+ */
1286
+ proto.CreateInvoiceTypeReq.prototype.getBaseInvoiceType = function() {
1287
+ return /** @type{?proto.BaseInvoiceType} */ (
1288
+ jspb.Message.getWrapperField(this, proto.BaseInvoiceType, 1));
1289
+ };
1290
+
1291
+
1292
+ /**
1293
+ * @param {?proto.BaseInvoiceType|undefined} value
1294
+ * @return {!proto.CreateInvoiceTypeReq} returns this
1295
+ */
1296
+ proto.CreateInvoiceTypeReq.prototype.setBaseInvoiceType = function(value) {
1297
+ return jspb.Message.setWrapperField(this, 1, value);
1298
+ };
1299
+
1300
+
1301
+ /**
1302
+ * Clears the message field making it undefined.
1303
+ * @return {!proto.CreateInvoiceTypeReq} returns this
1304
+ */
1305
+ proto.CreateInvoiceTypeReq.prototype.clearBaseInvoiceType = function() {
1306
+ return this.setBaseInvoiceType(undefined);
1307
+ };
1308
+
1309
+
1310
+ /**
1311
+ * Returns whether this field is set.
1312
+ * @return {boolean}
1313
+ */
1314
+ proto.CreateInvoiceTypeReq.prototype.hasBaseInvoiceType = function() {
1315
+ return jspb.Message.getField(this, 1) != null;
1316
+ };
1317
+
1318
+
1319
+
1320
+
1321
+
1322
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1323
+ /**
1324
+ * Creates an object representation of this proto.
1325
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1326
+ * Optional fields that are not set will be set to undefined.
1327
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1328
+ * For the list of reserved names please see:
1329
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1330
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1331
+ * JSPB instance for transitional soy proto support:
1332
+ * http://goto/soy-param-migration
1333
+ * @return {!Object}
1334
+ */
1335
+ proto.CreateInvoiceTypeRes.prototype.toObject = function(opt_includeInstance) {
1336
+ return proto.CreateInvoiceTypeRes.toObject(opt_includeInstance, this);
1337
+ };
1338
+
1339
+
1340
+ /**
1341
+ * Static version of the {@see toObject} method.
1342
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1343
+ * the JSPB instance for transitional soy proto support:
1344
+ * http://goto/soy-param-migration
1345
+ * @param {!proto.CreateInvoiceTypeRes} msg The msg instance to transform.
1346
+ * @return {!Object}
1347
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1348
+ */
1349
+ proto.CreateInvoiceTypeRes.toObject = function(includeInstance, msg) {
1350
+ var f, obj = {
1351
+ invoiceType: (f = msg.getInvoiceType()) && proto.InvoiceType.toObject(includeInstance, f),
1352
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1353
+ };
1354
+
1355
+ if (includeInstance) {
1356
+ obj.$jspbMessageInstance = msg;
1357
+ }
1358
+ return obj;
1359
+ };
1360
+ }
1361
+
1362
+
1363
+ /**
1364
+ * Deserializes binary data (in protobuf wire format).
1365
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1366
+ * @return {!proto.CreateInvoiceTypeRes}
1367
+ */
1368
+ proto.CreateInvoiceTypeRes.deserializeBinary = function(bytes) {
1369
+ var reader = new jspb.BinaryReader(bytes);
1370
+ var msg = new proto.CreateInvoiceTypeRes;
1371
+ return proto.CreateInvoiceTypeRes.deserializeBinaryFromReader(msg, reader);
1372
+ };
1373
+
1374
+
1375
+ /**
1376
+ * Deserializes binary data (in protobuf wire format) from the
1377
+ * given reader into the given message object.
1378
+ * @param {!proto.CreateInvoiceTypeRes} msg The message object to deserialize into.
1379
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1380
+ * @return {!proto.CreateInvoiceTypeRes}
1381
+ */
1382
+ proto.CreateInvoiceTypeRes.deserializeBinaryFromReader = function(msg, reader) {
1383
+ while (reader.nextField()) {
1384
+ if (reader.isEndGroup()) {
1385
+ break;
1386
+ }
1387
+ var field = reader.getFieldNumber();
1388
+ switch (field) {
1389
+ case 1:
1390
+ var value = new proto.InvoiceType;
1391
+ reader.readMessage(value,proto.InvoiceType.deserializeBinaryFromReader);
1392
+ msg.setInvoiceType(value);
1393
+ break;
1394
+ case 2:
1395
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1396
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1397
+ msg.setMeta(value);
1398
+ break;
1399
+ default:
1400
+ reader.skipField();
1401
+ break;
1402
+ }
1403
+ }
1404
+ return msg;
1405
+ };
1406
+
1407
+
1408
+ /**
1409
+ * Serializes the message to binary data (in protobuf wire format).
1410
+ * @return {!Uint8Array}
1411
+ */
1412
+ proto.CreateInvoiceTypeRes.prototype.serializeBinary = function() {
1413
+ var writer = new jspb.BinaryWriter();
1414
+ proto.CreateInvoiceTypeRes.serializeBinaryToWriter(this, writer);
1415
+ return writer.getResultBuffer();
1416
+ };
1417
+
1418
+
1419
+ /**
1420
+ * Serializes the given message to binary data (in protobuf wire
1421
+ * format), writing to the given BinaryWriter.
1422
+ * @param {!proto.CreateInvoiceTypeRes} message
1423
+ * @param {!jspb.BinaryWriter} writer
1424
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1425
+ */
1426
+ proto.CreateInvoiceTypeRes.serializeBinaryToWriter = function(message, writer) {
1427
+ var f = undefined;
1428
+ f = message.getInvoiceType();
1429
+ if (f != null) {
1430
+ writer.writeMessage(
1431
+ 1,
1432
+ f,
1433
+ proto.InvoiceType.serializeBinaryToWriter
1434
+ );
1435
+ }
1436
+ f = message.getMeta();
1437
+ if (f != null) {
1438
+ writer.writeMessage(
1439
+ 2,
1440
+ f,
1441
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1442
+ );
1443
+ }
1444
+ };
1445
+
1446
+
1447
+ /**
1448
+ * optional InvoiceType invoice_type = 1;
1449
+ * @return {?proto.InvoiceType}
1450
+ */
1451
+ proto.CreateInvoiceTypeRes.prototype.getInvoiceType = function() {
1452
+ return /** @type{?proto.InvoiceType} */ (
1453
+ jspb.Message.getWrapperField(this, proto.InvoiceType, 1));
1454
+ };
1455
+
1456
+
1457
+ /**
1458
+ * @param {?proto.InvoiceType|undefined} value
1459
+ * @return {!proto.CreateInvoiceTypeRes} returns this
1460
+ */
1461
+ proto.CreateInvoiceTypeRes.prototype.setInvoiceType = function(value) {
1462
+ return jspb.Message.setWrapperField(this, 1, value);
1463
+ };
1464
+
1465
+
1466
+ /**
1467
+ * Clears the message field making it undefined.
1468
+ * @return {!proto.CreateInvoiceTypeRes} returns this
1469
+ */
1470
+ proto.CreateInvoiceTypeRes.prototype.clearInvoiceType = function() {
1471
+ return this.setInvoiceType(undefined);
1472
+ };
1473
+
1474
+
1475
+ /**
1476
+ * Returns whether this field is set.
1477
+ * @return {boolean}
1478
+ */
1479
+ proto.CreateInvoiceTypeRes.prototype.hasInvoiceType = function() {
1480
+ return jspb.Message.getField(this, 1) != null;
1481
+ };
1482
+
1483
+
1484
+ /**
1485
+ * optional prisca.v1.global.meta.Meta meta = 2;
1486
+ * @return {?proto.prisca.v1.global.meta.Meta}
1487
+ */
1488
+ proto.CreateInvoiceTypeRes.prototype.getMeta = function() {
1489
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1490
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1491
+ };
1492
+
1493
+
1494
+ /**
1495
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1496
+ * @return {!proto.CreateInvoiceTypeRes} returns this
1497
+ */
1498
+ proto.CreateInvoiceTypeRes.prototype.setMeta = function(value) {
1499
+ return jspb.Message.setWrapperField(this, 2, value);
1500
+ };
1501
+
1502
+
1503
+ /**
1504
+ * Clears the message field making it undefined.
1505
+ * @return {!proto.CreateInvoiceTypeRes} returns this
1506
+ */
1507
+ proto.CreateInvoiceTypeRes.prototype.clearMeta = function() {
1508
+ return this.setMeta(undefined);
1509
+ };
1510
+
1511
+
1512
+ /**
1513
+ * Returns whether this field is set.
1514
+ * @return {boolean}
1515
+ */
1516
+ proto.CreateInvoiceTypeRes.prototype.hasMeta = function() {
1517
+ return jspb.Message.getField(this, 2) != null;
1518
+ };
1519
+
1520
+
1521
+
1522
+
1523
+
1524
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1525
+ /**
1526
+ * Creates an object representation of this proto.
1527
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1528
+ * Optional fields that are not set will be set to undefined.
1529
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1530
+ * For the list of reserved names please see:
1531
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1532
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1533
+ * JSPB instance for transitional soy proto support:
1534
+ * http://goto/soy-param-migration
1535
+ * @return {!Object}
1536
+ */
1537
+ proto.UpdateInvoiceTypeReq.prototype.toObject = function(opt_includeInstance) {
1538
+ return proto.UpdateInvoiceTypeReq.toObject(opt_includeInstance, this);
1539
+ };
1540
+
1541
+
1542
+ /**
1543
+ * Static version of the {@see toObject} method.
1544
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1545
+ * the JSPB instance for transitional soy proto support:
1546
+ * http://goto/soy-param-migration
1547
+ * @param {!proto.UpdateInvoiceTypeReq} msg The msg instance to transform.
1548
+ * @return {!Object}
1549
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1550
+ */
1551
+ proto.UpdateInvoiceTypeReq.toObject = function(includeInstance, msg) {
1552
+ var f, obj = {
1553
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1554
+ baseInvoiceType: (f = msg.getBaseInvoiceType()) && proto.BaseInvoiceType.toObject(includeInstance, f)
1555
+ };
1556
+
1557
+ if (includeInstance) {
1558
+ obj.$jspbMessageInstance = msg;
1559
+ }
1560
+ return obj;
1561
+ };
1562
+ }
1563
+
1564
+
1565
+ /**
1566
+ * Deserializes binary data (in protobuf wire format).
1567
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1568
+ * @return {!proto.UpdateInvoiceTypeReq}
1569
+ */
1570
+ proto.UpdateInvoiceTypeReq.deserializeBinary = function(bytes) {
1571
+ var reader = new jspb.BinaryReader(bytes);
1572
+ var msg = new proto.UpdateInvoiceTypeReq;
1573
+ return proto.UpdateInvoiceTypeReq.deserializeBinaryFromReader(msg, reader);
1574
+ };
1575
+
1576
+
1577
+ /**
1578
+ * Deserializes binary data (in protobuf wire format) from the
1579
+ * given reader into the given message object.
1580
+ * @param {!proto.UpdateInvoiceTypeReq} msg The message object to deserialize into.
1581
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1582
+ * @return {!proto.UpdateInvoiceTypeReq}
1583
+ */
1584
+ proto.UpdateInvoiceTypeReq.deserializeBinaryFromReader = function(msg, reader) {
1585
+ while (reader.nextField()) {
1586
+ if (reader.isEndGroup()) {
1587
+ break;
1588
+ }
1589
+ var field = reader.getFieldNumber();
1590
+ switch (field) {
1591
+ case 1:
1592
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1593
+ msg.setReferencesId(value);
1594
+ break;
1595
+ case 2:
1596
+ var value = new proto.BaseInvoiceType;
1597
+ reader.readMessage(value,proto.BaseInvoiceType.deserializeBinaryFromReader);
1598
+ msg.setBaseInvoiceType(value);
1599
+ break;
1600
+ default:
1601
+ reader.skipField();
1602
+ break;
1603
+ }
1604
+ }
1605
+ return msg;
1606
+ };
1607
+
1608
+
1609
+ /**
1610
+ * Serializes the message to binary data (in protobuf wire format).
1611
+ * @return {!Uint8Array}
1612
+ */
1613
+ proto.UpdateInvoiceTypeReq.prototype.serializeBinary = function() {
1614
+ var writer = new jspb.BinaryWriter();
1615
+ proto.UpdateInvoiceTypeReq.serializeBinaryToWriter(this, writer);
1616
+ return writer.getResultBuffer();
1617
+ };
1618
+
1619
+
1620
+ /**
1621
+ * Serializes the given message to binary data (in protobuf wire
1622
+ * format), writing to the given BinaryWriter.
1623
+ * @param {!proto.UpdateInvoiceTypeReq} message
1624
+ * @param {!jspb.BinaryWriter} writer
1625
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1626
+ */
1627
+ proto.UpdateInvoiceTypeReq.serializeBinaryToWriter = function(message, writer) {
1628
+ var f = undefined;
1629
+ f = message.getReferencesId();
1630
+ if (f.length > 0) {
1631
+ writer.writeString(
1632
+ 1,
1633
+ f
1634
+ );
1635
+ }
1636
+ f = message.getBaseInvoiceType();
1637
+ if (f != null) {
1638
+ writer.writeMessage(
1639
+ 2,
1640
+ f,
1641
+ proto.BaseInvoiceType.serializeBinaryToWriter
1642
+ );
1643
+ }
1644
+ };
1645
+
1646
+
1647
+ /**
1648
+ * optional string references_id = 1;
1649
+ * @return {string}
1650
+ */
1651
+ proto.UpdateInvoiceTypeReq.prototype.getReferencesId = function() {
1652
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1653
+ };
1654
+
1655
+
1656
+ /**
1657
+ * @param {string} value
1658
+ * @return {!proto.UpdateInvoiceTypeReq} returns this
1659
+ */
1660
+ proto.UpdateInvoiceTypeReq.prototype.setReferencesId = function(value) {
1661
+ return jspb.Message.setProto3StringField(this, 1, value);
1662
+ };
1663
+
1664
+
1665
+ /**
1666
+ * optional BaseInvoiceType base_invoice_type = 2;
1667
+ * @return {?proto.BaseInvoiceType}
1668
+ */
1669
+ proto.UpdateInvoiceTypeReq.prototype.getBaseInvoiceType = function() {
1670
+ return /** @type{?proto.BaseInvoiceType} */ (
1671
+ jspb.Message.getWrapperField(this, proto.BaseInvoiceType, 2));
1672
+ };
1673
+
1674
+
1675
+ /**
1676
+ * @param {?proto.BaseInvoiceType|undefined} value
1677
+ * @return {!proto.UpdateInvoiceTypeReq} returns this
1678
+ */
1679
+ proto.UpdateInvoiceTypeReq.prototype.setBaseInvoiceType = function(value) {
1680
+ return jspb.Message.setWrapperField(this, 2, value);
1681
+ };
1682
+
1683
+
1684
+ /**
1685
+ * Clears the message field making it undefined.
1686
+ * @return {!proto.UpdateInvoiceTypeReq} returns this
1687
+ */
1688
+ proto.UpdateInvoiceTypeReq.prototype.clearBaseInvoiceType = function() {
1689
+ return this.setBaseInvoiceType(undefined);
1690
+ };
1691
+
1692
+
1693
+ /**
1694
+ * Returns whether this field is set.
1695
+ * @return {boolean}
1696
+ */
1697
+ proto.UpdateInvoiceTypeReq.prototype.hasBaseInvoiceType = function() {
1698
+ return jspb.Message.getField(this, 2) != null;
1699
+ };
1700
+
1701
+
1702
+
1703
+
1704
+
1705
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1706
+ /**
1707
+ * Creates an object representation of this proto.
1708
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1709
+ * Optional fields that are not set will be set to undefined.
1710
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1711
+ * For the list of reserved names please see:
1712
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1713
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1714
+ * JSPB instance for transitional soy proto support:
1715
+ * http://goto/soy-param-migration
1716
+ * @return {!Object}
1717
+ */
1718
+ proto.UpdateInvoiceTypeRes.prototype.toObject = function(opt_includeInstance) {
1719
+ return proto.UpdateInvoiceTypeRes.toObject(opt_includeInstance, this);
1720
+ };
1721
+
1722
+
1723
+ /**
1724
+ * Static version of the {@see toObject} method.
1725
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1726
+ * the JSPB instance for transitional soy proto support:
1727
+ * http://goto/soy-param-migration
1728
+ * @param {!proto.UpdateInvoiceTypeRes} msg The msg instance to transform.
1729
+ * @return {!Object}
1730
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1731
+ */
1732
+ proto.UpdateInvoiceTypeRes.toObject = function(includeInstance, msg) {
1733
+ var f, obj = {
1734
+ invoiceType: (f = msg.getInvoiceType()) && proto.InvoiceType.toObject(includeInstance, f),
1735
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1736
+ };
1737
+
1738
+ if (includeInstance) {
1739
+ obj.$jspbMessageInstance = msg;
1740
+ }
1741
+ return obj;
1742
+ };
1743
+ }
1744
+
1745
+
1746
+ /**
1747
+ * Deserializes binary data (in protobuf wire format).
1748
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1749
+ * @return {!proto.UpdateInvoiceTypeRes}
1750
+ */
1751
+ proto.UpdateInvoiceTypeRes.deserializeBinary = function(bytes) {
1752
+ var reader = new jspb.BinaryReader(bytes);
1753
+ var msg = new proto.UpdateInvoiceTypeRes;
1754
+ return proto.UpdateInvoiceTypeRes.deserializeBinaryFromReader(msg, reader);
1755
+ };
1756
+
1757
+
1758
+ /**
1759
+ * Deserializes binary data (in protobuf wire format) from the
1760
+ * given reader into the given message object.
1761
+ * @param {!proto.UpdateInvoiceTypeRes} msg The message object to deserialize into.
1762
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1763
+ * @return {!proto.UpdateInvoiceTypeRes}
1764
+ */
1765
+ proto.UpdateInvoiceTypeRes.deserializeBinaryFromReader = function(msg, reader) {
1766
+ while (reader.nextField()) {
1767
+ if (reader.isEndGroup()) {
1768
+ break;
1769
+ }
1770
+ var field = reader.getFieldNumber();
1771
+ switch (field) {
1772
+ case 1:
1773
+ var value = new proto.InvoiceType;
1774
+ reader.readMessage(value,proto.InvoiceType.deserializeBinaryFromReader);
1775
+ msg.setInvoiceType(value);
1776
+ break;
1777
+ case 2:
1778
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1779
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1780
+ msg.setMeta(value);
1781
+ break;
1782
+ default:
1783
+ reader.skipField();
1784
+ break;
1785
+ }
1786
+ }
1787
+ return msg;
1788
+ };
1789
+
1790
+
1791
+ /**
1792
+ * Serializes the message to binary data (in protobuf wire format).
1793
+ * @return {!Uint8Array}
1794
+ */
1795
+ proto.UpdateInvoiceTypeRes.prototype.serializeBinary = function() {
1796
+ var writer = new jspb.BinaryWriter();
1797
+ proto.UpdateInvoiceTypeRes.serializeBinaryToWriter(this, writer);
1798
+ return writer.getResultBuffer();
1799
+ };
1800
+
1801
+
1802
+ /**
1803
+ * Serializes the given message to binary data (in protobuf wire
1804
+ * format), writing to the given BinaryWriter.
1805
+ * @param {!proto.UpdateInvoiceTypeRes} message
1806
+ * @param {!jspb.BinaryWriter} writer
1807
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1808
+ */
1809
+ proto.UpdateInvoiceTypeRes.serializeBinaryToWriter = function(message, writer) {
1810
+ var f = undefined;
1811
+ f = message.getInvoiceType();
1812
+ if (f != null) {
1813
+ writer.writeMessage(
1814
+ 1,
1815
+ f,
1816
+ proto.InvoiceType.serializeBinaryToWriter
1817
+ );
1818
+ }
1819
+ f = message.getMeta();
1820
+ if (f != null) {
1821
+ writer.writeMessage(
1822
+ 2,
1823
+ f,
1824
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1825
+ );
1826
+ }
1827
+ };
1828
+
1829
+
1830
+ /**
1831
+ * optional InvoiceType invoice_type = 1;
1832
+ * @return {?proto.InvoiceType}
1833
+ */
1834
+ proto.UpdateInvoiceTypeRes.prototype.getInvoiceType = function() {
1835
+ return /** @type{?proto.InvoiceType} */ (
1836
+ jspb.Message.getWrapperField(this, proto.InvoiceType, 1));
1837
+ };
1838
+
1839
+
1840
+ /**
1841
+ * @param {?proto.InvoiceType|undefined} value
1842
+ * @return {!proto.UpdateInvoiceTypeRes} returns this
1843
+ */
1844
+ proto.UpdateInvoiceTypeRes.prototype.setInvoiceType = function(value) {
1845
+ return jspb.Message.setWrapperField(this, 1, value);
1846
+ };
1847
+
1848
+
1849
+ /**
1850
+ * Clears the message field making it undefined.
1851
+ * @return {!proto.UpdateInvoiceTypeRes} returns this
1852
+ */
1853
+ proto.UpdateInvoiceTypeRes.prototype.clearInvoiceType = function() {
1854
+ return this.setInvoiceType(undefined);
1855
+ };
1856
+
1857
+
1858
+ /**
1859
+ * Returns whether this field is set.
1860
+ * @return {boolean}
1861
+ */
1862
+ proto.UpdateInvoiceTypeRes.prototype.hasInvoiceType = function() {
1863
+ return jspb.Message.getField(this, 1) != null;
1864
+ };
1865
+
1866
+
1867
+ /**
1868
+ * optional prisca.v1.global.meta.Meta meta = 2;
1869
+ * @return {?proto.prisca.v1.global.meta.Meta}
1870
+ */
1871
+ proto.UpdateInvoiceTypeRes.prototype.getMeta = function() {
1872
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1873
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1874
+ };
1875
+
1876
+
1877
+ /**
1878
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1879
+ * @return {!proto.UpdateInvoiceTypeRes} returns this
1880
+ */
1881
+ proto.UpdateInvoiceTypeRes.prototype.setMeta = function(value) {
1882
+ return jspb.Message.setWrapperField(this, 2, value);
1883
+ };
1884
+
1885
+
1886
+ /**
1887
+ * Clears the message field making it undefined.
1888
+ * @return {!proto.UpdateInvoiceTypeRes} returns this
1889
+ */
1890
+ proto.UpdateInvoiceTypeRes.prototype.clearMeta = function() {
1891
+ return this.setMeta(undefined);
1892
+ };
1893
+
1894
+
1895
+ /**
1896
+ * Returns whether this field is set.
1897
+ * @return {boolean}
1898
+ */
1899
+ proto.UpdateInvoiceTypeRes.prototype.hasMeta = function() {
1900
+ return jspb.Message.getField(this, 2) != null;
1901
+ };
1902
+
1903
+
1904
+
1905
+ /**
1906
+ * List of repeated fields within this message type.
1907
+ * @private {!Array<number>}
1908
+ * @const
1909
+ */
1910
+ proto.DeleteInvoiceTypeRequest.repeatedFields_ = [1];
1911
+
1912
+
1913
+
1914
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1915
+ /**
1916
+ * Creates an object representation of this proto.
1917
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1918
+ * Optional fields that are not set will be set to undefined.
1919
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1920
+ * For the list of reserved names please see:
1921
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1922
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1923
+ * JSPB instance for transitional soy proto support:
1924
+ * http://goto/soy-param-migration
1925
+ * @return {!Object}
1926
+ */
1927
+ proto.DeleteInvoiceTypeRequest.prototype.toObject = function(opt_includeInstance) {
1928
+ return proto.DeleteInvoiceTypeRequest.toObject(opt_includeInstance, this);
1929
+ };
1930
+
1931
+
1932
+ /**
1933
+ * Static version of the {@see toObject} method.
1934
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1935
+ * the JSPB instance for transitional soy proto support:
1936
+ * http://goto/soy-param-migration
1937
+ * @param {!proto.DeleteInvoiceTypeRequest} msg The msg instance to transform.
1938
+ * @return {!Object}
1939
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1940
+ */
1941
+ proto.DeleteInvoiceTypeRequest.toObject = function(includeInstance, msg) {
1942
+ var f, obj = {
1943
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
1944
+ };
1945
+
1946
+ if (includeInstance) {
1947
+ obj.$jspbMessageInstance = msg;
1948
+ }
1949
+ return obj;
1950
+ };
1951
+ }
1952
+
1953
+
1954
+ /**
1955
+ * Deserializes binary data (in protobuf wire format).
1956
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1957
+ * @return {!proto.DeleteInvoiceTypeRequest}
1958
+ */
1959
+ proto.DeleteInvoiceTypeRequest.deserializeBinary = function(bytes) {
1960
+ var reader = new jspb.BinaryReader(bytes);
1961
+ var msg = new proto.DeleteInvoiceTypeRequest;
1962
+ return proto.DeleteInvoiceTypeRequest.deserializeBinaryFromReader(msg, reader);
1963
+ };
1964
+
1965
+
1966
+ /**
1967
+ * Deserializes binary data (in protobuf wire format) from the
1968
+ * given reader into the given message object.
1969
+ * @param {!proto.DeleteInvoiceTypeRequest} msg The message object to deserialize into.
1970
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1971
+ * @return {!proto.DeleteInvoiceTypeRequest}
1972
+ */
1973
+ proto.DeleteInvoiceTypeRequest.deserializeBinaryFromReader = function(msg, reader) {
1974
+ while (reader.nextField()) {
1975
+ if (reader.isEndGroup()) {
1976
+ break;
1977
+ }
1978
+ var field = reader.getFieldNumber();
1979
+ switch (field) {
1980
+ case 1:
1981
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1982
+ msg.addReferenceIds(value);
1983
+ break;
1984
+ default:
1985
+ reader.skipField();
1986
+ break;
1987
+ }
1988
+ }
1989
+ return msg;
1990
+ };
1991
+
1992
+
1993
+ /**
1994
+ * Serializes the message to binary data (in protobuf wire format).
1995
+ * @return {!Uint8Array}
1996
+ */
1997
+ proto.DeleteInvoiceTypeRequest.prototype.serializeBinary = function() {
1998
+ var writer = new jspb.BinaryWriter();
1999
+ proto.DeleteInvoiceTypeRequest.serializeBinaryToWriter(this, writer);
2000
+ return writer.getResultBuffer();
2001
+ };
2002
+
2003
+
2004
+ /**
2005
+ * Serializes the given message to binary data (in protobuf wire
2006
+ * format), writing to the given BinaryWriter.
2007
+ * @param {!proto.DeleteInvoiceTypeRequest} message
2008
+ * @param {!jspb.BinaryWriter} writer
2009
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2010
+ */
2011
+ proto.DeleteInvoiceTypeRequest.serializeBinaryToWriter = function(message, writer) {
2012
+ var f = undefined;
2013
+ f = message.getReferenceIdsList();
2014
+ if (f.length > 0) {
2015
+ writer.writeRepeatedString(
2016
+ 1,
2017
+ f
2018
+ );
2019
+ }
2020
+ };
2021
+
2022
+
2023
+ /**
2024
+ * repeated string reference_ids = 1;
2025
+ * @return {!Array<string>}
2026
+ */
2027
+ proto.DeleteInvoiceTypeRequest.prototype.getReferenceIdsList = function() {
2028
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2029
+ };
2030
+
2031
+
2032
+ /**
2033
+ * @param {!Array<string>} value
2034
+ * @return {!proto.DeleteInvoiceTypeRequest} returns this
2035
+ */
2036
+ proto.DeleteInvoiceTypeRequest.prototype.setReferenceIdsList = function(value) {
2037
+ return jspb.Message.setField(this, 1, value || []);
2038
+ };
2039
+
2040
+
2041
+ /**
2042
+ * @param {string} value
2043
+ * @param {number=} opt_index
2044
+ * @return {!proto.DeleteInvoiceTypeRequest} returns this
2045
+ */
2046
+ proto.DeleteInvoiceTypeRequest.prototype.addReferenceIds = function(value, opt_index) {
2047
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2048
+ };
2049
+
2050
+
2051
+ /**
2052
+ * Clears the list making it empty but non-null.
2053
+ * @return {!proto.DeleteInvoiceTypeRequest} returns this
2054
+ */
2055
+ proto.DeleteInvoiceTypeRequest.prototype.clearReferenceIdsList = function() {
2056
+ return this.setReferenceIdsList([]);
2057
+ };
2058
+
2059
+
2060
+
2061
+
2062
+
2063
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2064
+ /**
2065
+ * Creates an object representation of this proto.
2066
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2067
+ * Optional fields that are not set will be set to undefined.
2068
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2069
+ * For the list of reserved names please see:
2070
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2071
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2072
+ * JSPB instance for transitional soy proto support:
2073
+ * http://goto/soy-param-migration
2074
+ * @return {!Object}
2075
+ */
2076
+ proto.GetInvoiceTypeByIdReq.prototype.toObject = function(opt_includeInstance) {
2077
+ return proto.GetInvoiceTypeByIdReq.toObject(opt_includeInstance, this);
2078
+ };
2079
+
2080
+
2081
+ /**
2082
+ * Static version of the {@see toObject} method.
2083
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2084
+ * the JSPB instance for transitional soy proto support:
2085
+ * http://goto/soy-param-migration
2086
+ * @param {!proto.GetInvoiceTypeByIdReq} msg The msg instance to transform.
2087
+ * @return {!Object}
2088
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2089
+ */
2090
+ proto.GetInvoiceTypeByIdReq.toObject = function(includeInstance, msg) {
2091
+ var f, obj = {
2092
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2093
+ };
2094
+
2095
+ if (includeInstance) {
2096
+ obj.$jspbMessageInstance = msg;
2097
+ }
2098
+ return obj;
2099
+ };
2100
+ }
2101
+
2102
+
2103
+ /**
2104
+ * Deserializes binary data (in protobuf wire format).
2105
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2106
+ * @return {!proto.GetInvoiceTypeByIdReq}
2107
+ */
2108
+ proto.GetInvoiceTypeByIdReq.deserializeBinary = function(bytes) {
2109
+ var reader = new jspb.BinaryReader(bytes);
2110
+ var msg = new proto.GetInvoiceTypeByIdReq;
2111
+ return proto.GetInvoiceTypeByIdReq.deserializeBinaryFromReader(msg, reader);
2112
+ };
2113
+
2114
+
2115
+ /**
2116
+ * Deserializes binary data (in protobuf wire format) from the
2117
+ * given reader into the given message object.
2118
+ * @param {!proto.GetInvoiceTypeByIdReq} msg The message object to deserialize into.
2119
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2120
+ * @return {!proto.GetInvoiceTypeByIdReq}
2121
+ */
2122
+ proto.GetInvoiceTypeByIdReq.deserializeBinaryFromReader = function(msg, reader) {
2123
+ while (reader.nextField()) {
2124
+ if (reader.isEndGroup()) {
2125
+ break;
2126
+ }
2127
+ var field = reader.getFieldNumber();
2128
+ switch (field) {
2129
+ case 1:
2130
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2131
+ msg.setReferencesId(value);
2132
+ break;
2133
+ default:
2134
+ reader.skipField();
2135
+ break;
2136
+ }
2137
+ }
2138
+ return msg;
2139
+ };
2140
+
2141
+
2142
+ /**
2143
+ * Serializes the message to binary data (in protobuf wire format).
2144
+ * @return {!Uint8Array}
2145
+ */
2146
+ proto.GetInvoiceTypeByIdReq.prototype.serializeBinary = function() {
2147
+ var writer = new jspb.BinaryWriter();
2148
+ proto.GetInvoiceTypeByIdReq.serializeBinaryToWriter(this, writer);
2149
+ return writer.getResultBuffer();
2150
+ };
2151
+
2152
+
2153
+ /**
2154
+ * Serializes the given message to binary data (in protobuf wire
2155
+ * format), writing to the given BinaryWriter.
2156
+ * @param {!proto.GetInvoiceTypeByIdReq} message
2157
+ * @param {!jspb.BinaryWriter} writer
2158
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2159
+ */
2160
+ proto.GetInvoiceTypeByIdReq.serializeBinaryToWriter = function(message, writer) {
2161
+ var f = undefined;
2162
+ f = message.getReferencesId();
2163
+ if (f.length > 0) {
2164
+ writer.writeString(
2165
+ 1,
2166
+ f
2167
+ );
2168
+ }
2169
+ };
2170
+
2171
+
2172
+ /**
2173
+ * optional string references_id = 1;
2174
+ * @return {string}
2175
+ */
2176
+ proto.GetInvoiceTypeByIdReq.prototype.getReferencesId = function() {
2177
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2178
+ };
2179
+
2180
+
2181
+ /**
2182
+ * @param {string} value
2183
+ * @return {!proto.GetInvoiceTypeByIdReq} returns this
2184
+ */
2185
+ proto.GetInvoiceTypeByIdReq.prototype.setReferencesId = function(value) {
2186
+ return jspb.Message.setProto3StringField(this, 1, value);
2187
+ };
2188
+
2189
+
2190
+
2191
+
2192
+
2193
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2194
+ /**
2195
+ * Creates an object representation of this proto.
2196
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2197
+ * Optional fields that are not set will be set to undefined.
2198
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2199
+ * For the list of reserved names please see:
2200
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2201
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2202
+ * JSPB instance for transitional soy proto support:
2203
+ * http://goto/soy-param-migration
2204
+ * @return {!Object}
2205
+ */
2206
+ proto.GetInvoiceTypeByIdRes.prototype.toObject = function(opt_includeInstance) {
2207
+ return proto.GetInvoiceTypeByIdRes.toObject(opt_includeInstance, this);
2208
+ };
2209
+
2210
+
2211
+ /**
2212
+ * Static version of the {@see toObject} method.
2213
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2214
+ * the JSPB instance for transitional soy proto support:
2215
+ * http://goto/soy-param-migration
2216
+ * @param {!proto.GetInvoiceTypeByIdRes} msg The msg instance to transform.
2217
+ * @return {!Object}
2218
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2219
+ */
2220
+ proto.GetInvoiceTypeByIdRes.toObject = function(includeInstance, msg) {
2221
+ var f, obj = {
2222
+ invoiceType: (f = msg.getInvoiceType()) && proto.InvoiceType.toObject(includeInstance, f),
2223
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2224
+ };
2225
+
2226
+ if (includeInstance) {
2227
+ obj.$jspbMessageInstance = msg;
2228
+ }
2229
+ return obj;
2230
+ };
2231
+ }
2232
+
2233
+
2234
+ /**
2235
+ * Deserializes binary data (in protobuf wire format).
2236
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2237
+ * @return {!proto.GetInvoiceTypeByIdRes}
2238
+ */
2239
+ proto.GetInvoiceTypeByIdRes.deserializeBinary = function(bytes) {
2240
+ var reader = new jspb.BinaryReader(bytes);
2241
+ var msg = new proto.GetInvoiceTypeByIdRes;
2242
+ return proto.GetInvoiceTypeByIdRes.deserializeBinaryFromReader(msg, reader);
2243
+ };
2244
+
2245
+
2246
+ /**
2247
+ * Deserializes binary data (in protobuf wire format) from the
2248
+ * given reader into the given message object.
2249
+ * @param {!proto.GetInvoiceTypeByIdRes} msg The message object to deserialize into.
2250
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2251
+ * @return {!proto.GetInvoiceTypeByIdRes}
2252
+ */
2253
+ proto.GetInvoiceTypeByIdRes.deserializeBinaryFromReader = function(msg, reader) {
2254
+ while (reader.nextField()) {
2255
+ if (reader.isEndGroup()) {
2256
+ break;
2257
+ }
2258
+ var field = reader.getFieldNumber();
2259
+ switch (field) {
2260
+ case 1:
2261
+ var value = new proto.InvoiceType;
2262
+ reader.readMessage(value,proto.InvoiceType.deserializeBinaryFromReader);
2263
+ msg.setInvoiceType(value);
2264
+ break;
2265
+ case 2:
2266
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2267
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2268
+ msg.setMeta(value);
2269
+ break;
2270
+ default:
2271
+ reader.skipField();
2272
+ break;
2273
+ }
2274
+ }
2275
+ return msg;
2276
+ };
2277
+
2278
+
2279
+ /**
2280
+ * Serializes the message to binary data (in protobuf wire format).
2281
+ * @return {!Uint8Array}
2282
+ */
2283
+ proto.GetInvoiceTypeByIdRes.prototype.serializeBinary = function() {
2284
+ var writer = new jspb.BinaryWriter();
2285
+ proto.GetInvoiceTypeByIdRes.serializeBinaryToWriter(this, writer);
2286
+ return writer.getResultBuffer();
2287
+ };
2288
+
2289
+
2290
+ /**
2291
+ * Serializes the given message to binary data (in protobuf wire
2292
+ * format), writing to the given BinaryWriter.
2293
+ * @param {!proto.GetInvoiceTypeByIdRes} message
2294
+ * @param {!jspb.BinaryWriter} writer
2295
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2296
+ */
2297
+ proto.GetInvoiceTypeByIdRes.serializeBinaryToWriter = function(message, writer) {
2298
+ var f = undefined;
2299
+ f = message.getInvoiceType();
2300
+ if (f != null) {
2301
+ writer.writeMessage(
2302
+ 1,
2303
+ f,
2304
+ proto.InvoiceType.serializeBinaryToWriter
2305
+ );
2306
+ }
2307
+ f = message.getMeta();
2308
+ if (f != null) {
2309
+ writer.writeMessage(
2310
+ 2,
2311
+ f,
2312
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2313
+ );
2314
+ }
2315
+ };
2316
+
2317
+
2318
+ /**
2319
+ * optional InvoiceType invoice_type = 1;
2320
+ * @return {?proto.InvoiceType}
2321
+ */
2322
+ proto.GetInvoiceTypeByIdRes.prototype.getInvoiceType = function() {
2323
+ return /** @type{?proto.InvoiceType} */ (
2324
+ jspb.Message.getWrapperField(this, proto.InvoiceType, 1));
2325
+ };
2326
+
2327
+
2328
+ /**
2329
+ * @param {?proto.InvoiceType|undefined} value
2330
+ * @return {!proto.GetInvoiceTypeByIdRes} returns this
2331
+ */
2332
+ proto.GetInvoiceTypeByIdRes.prototype.setInvoiceType = function(value) {
2333
+ return jspb.Message.setWrapperField(this, 1, value);
2334
+ };
2335
+
2336
+
2337
+ /**
2338
+ * Clears the message field making it undefined.
2339
+ * @return {!proto.GetInvoiceTypeByIdRes} returns this
2340
+ */
2341
+ proto.GetInvoiceTypeByIdRes.prototype.clearInvoiceType = function() {
2342
+ return this.setInvoiceType(undefined);
2343
+ };
2344
+
2345
+
2346
+ /**
2347
+ * Returns whether this field is set.
2348
+ * @return {boolean}
2349
+ */
2350
+ proto.GetInvoiceTypeByIdRes.prototype.hasInvoiceType = function() {
2351
+ return jspb.Message.getField(this, 1) != null;
2352
+ };
2353
+
2354
+
2355
+ /**
2356
+ * optional prisca.v1.global.meta.Meta meta = 2;
2357
+ * @return {?proto.prisca.v1.global.meta.Meta}
2358
+ */
2359
+ proto.GetInvoiceTypeByIdRes.prototype.getMeta = function() {
2360
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2361
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2362
+ };
2363
+
2364
+
2365
+ /**
2366
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2367
+ * @return {!proto.GetInvoiceTypeByIdRes} returns this
2368
+ */
2369
+ proto.GetInvoiceTypeByIdRes.prototype.setMeta = function(value) {
2370
+ return jspb.Message.setWrapperField(this, 2, value);
2371
+ };
2372
+
2373
+
2374
+ /**
2375
+ * Clears the message field making it undefined.
2376
+ * @return {!proto.GetInvoiceTypeByIdRes} returns this
2377
+ */
2378
+ proto.GetInvoiceTypeByIdRes.prototype.clearMeta = function() {
2379
+ return this.setMeta(undefined);
2380
+ };
2381
+
2382
+
2383
+ /**
2384
+ * Returns whether this field is set.
2385
+ * @return {boolean}
2386
+ */
2387
+ proto.GetInvoiceTypeByIdRes.prototype.hasMeta = function() {
2388
+ return jspb.Message.getField(this, 2) != null;
2389
+ };
2390
+
2391
+
2392
+
2393
+ /**
2394
+ * List of repeated fields within this message type.
2395
+ * @private {!Array<number>}
2396
+ * @const
2397
+ */
2398
+ proto.GetInvoiceTypeDetailRes.repeatedFields_ = [1,2];
2399
+
2400
+
2401
+
2402
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2403
+ /**
2404
+ * Creates an object representation of this proto.
2405
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2406
+ * Optional fields that are not set will be set to undefined.
2407
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2408
+ * For the list of reserved names please see:
2409
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2410
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2411
+ * JSPB instance for transitional soy proto support:
2412
+ * http://goto/soy-param-migration
2413
+ * @return {!Object}
2414
+ */
2415
+ proto.GetInvoiceTypeDetailRes.prototype.toObject = function(opt_includeInstance) {
2416
+ return proto.GetInvoiceTypeDetailRes.toObject(opt_includeInstance, this);
2417
+ };
2418
+
2419
+
2420
+ /**
2421
+ * Static version of the {@see toObject} method.
2422
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2423
+ * the JSPB instance for transitional soy proto support:
2424
+ * http://goto/soy-param-migration
2425
+ * @param {!proto.GetInvoiceTypeDetailRes} msg The msg instance to transform.
2426
+ * @return {!Object}
2427
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2428
+ */
2429
+ proto.GetInvoiceTypeDetailRes.toObject = function(includeInstance, msg) {
2430
+ var f, obj = {
2431
+ transactionBuilderList: jspb.Message.toObjectList(msg.getTransactionBuilderList(),
2432
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
2433
+ transactionBuilderItemsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemsList(),
2434
+ proto.GetInvoiceTypeItemPreload.toObject, includeInstance)
2435
+ };
2436
+
2437
+ if (includeInstance) {
2438
+ obj.$jspbMessageInstance = msg;
2439
+ }
2440
+ return obj;
2441
+ };
2442
+ }
2443
+
2444
+
2445
+ /**
2446
+ * Deserializes binary data (in protobuf wire format).
2447
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2448
+ * @return {!proto.GetInvoiceTypeDetailRes}
2449
+ */
2450
+ proto.GetInvoiceTypeDetailRes.deserializeBinary = function(bytes) {
2451
+ var reader = new jspb.BinaryReader(bytes);
2452
+ var msg = new proto.GetInvoiceTypeDetailRes;
2453
+ return proto.GetInvoiceTypeDetailRes.deserializeBinaryFromReader(msg, reader);
2454
+ };
2455
+
2456
+
2457
+ /**
2458
+ * Deserializes binary data (in protobuf wire format) from the
2459
+ * given reader into the given message object.
2460
+ * @param {!proto.GetInvoiceTypeDetailRes} msg The message object to deserialize into.
2461
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2462
+ * @return {!proto.GetInvoiceTypeDetailRes}
2463
+ */
2464
+ proto.GetInvoiceTypeDetailRes.deserializeBinaryFromReader = function(msg, reader) {
2465
+ while (reader.nextField()) {
2466
+ if (reader.isEndGroup()) {
2467
+ break;
2468
+ }
2469
+ var field = reader.getFieldNumber();
2470
+ switch (field) {
2471
+ case 1:
2472
+ var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
2473
+ reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
2474
+ msg.addTransactionBuilder(value);
2475
+ break;
2476
+ case 2:
2477
+ var value = new proto.GetInvoiceTypeItemPreload;
2478
+ reader.readMessage(value,proto.GetInvoiceTypeItemPreload.deserializeBinaryFromReader);
2479
+ msg.addTransactionBuilderItems(value);
2480
+ break;
2481
+ default:
2482
+ reader.skipField();
2483
+ break;
2484
+ }
2485
+ }
2486
+ return msg;
2487
+ };
2488
+
2489
+
2490
+ /**
2491
+ * Serializes the message to binary data (in protobuf wire format).
2492
+ * @return {!Uint8Array}
2493
+ */
2494
+ proto.GetInvoiceTypeDetailRes.prototype.serializeBinary = function() {
2495
+ var writer = new jspb.BinaryWriter();
2496
+ proto.GetInvoiceTypeDetailRes.serializeBinaryToWriter(this, writer);
2497
+ return writer.getResultBuffer();
2498
+ };
2499
+
2500
+
2501
+ /**
2502
+ * Serializes the given message to binary data (in protobuf wire
2503
+ * format), writing to the given BinaryWriter.
2504
+ * @param {!proto.GetInvoiceTypeDetailRes} message
2505
+ * @param {!jspb.BinaryWriter} writer
2506
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2507
+ */
2508
+ proto.GetInvoiceTypeDetailRes.serializeBinaryToWriter = function(message, writer) {
2509
+ var f = undefined;
2510
+ f = message.getTransactionBuilderList();
2511
+ if (f.length > 0) {
2512
+ writer.writeRepeatedMessage(
2513
+ 1,
2514
+ f,
2515
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
2516
+ );
2517
+ }
2518
+ f = message.getTransactionBuilderItemsList();
2519
+ if (f.length > 0) {
2520
+ writer.writeRepeatedMessage(
2521
+ 2,
2522
+ f,
2523
+ proto.GetInvoiceTypeItemPreload.serializeBinaryToWriter
2524
+ );
2525
+ }
2526
+ };
2527
+
2528
+
2529
+ /**
2530
+ * repeated TransactionBuilderFieldsDetail transaction_builder = 1;
2531
+ * @return {!Array<!proto.TransactionBuilderFieldsDetail>}
2532
+ */
2533
+ proto.GetInvoiceTypeDetailRes.prototype.getTransactionBuilderList = function() {
2534
+ return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
2535
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
2536
+ };
2537
+
2538
+
2539
+ /**
2540
+ * @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
2541
+ * @return {!proto.GetInvoiceTypeDetailRes} returns this
2542
+ */
2543
+ proto.GetInvoiceTypeDetailRes.prototype.setTransactionBuilderList = function(value) {
2544
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2545
+ };
2546
+
2547
+
2548
+ /**
2549
+ * @param {!proto.TransactionBuilderFieldsDetail=} opt_value
2550
+ * @param {number=} opt_index
2551
+ * @return {!proto.TransactionBuilderFieldsDetail}
2552
+ */
2553
+ proto.GetInvoiceTypeDetailRes.prototype.addTransactionBuilder = function(opt_value, opt_index) {
2554
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
2555
+ };
2556
+
2557
+
2558
+ /**
2559
+ * Clears the list making it empty but non-null.
2560
+ * @return {!proto.GetInvoiceTypeDetailRes} returns this
2561
+ */
2562
+ proto.GetInvoiceTypeDetailRes.prototype.clearTransactionBuilderList = function() {
2563
+ return this.setTransactionBuilderList([]);
2564
+ };
2565
+
2566
+
2567
+ /**
2568
+ * repeated GetInvoiceTypeItemPreload transaction_builder_items = 2;
2569
+ * @return {!Array<!proto.GetInvoiceTypeItemPreload>}
2570
+ */
2571
+ proto.GetInvoiceTypeDetailRes.prototype.getTransactionBuilderItemsList = function() {
2572
+ return /** @type{!Array<!proto.GetInvoiceTypeItemPreload>} */ (
2573
+ jspb.Message.getRepeatedWrapperField(this, proto.GetInvoiceTypeItemPreload, 2));
2574
+ };
2575
+
2576
+
2577
+ /**
2578
+ * @param {!Array<!proto.GetInvoiceTypeItemPreload>} value
2579
+ * @return {!proto.GetInvoiceTypeDetailRes} returns this
2580
+ */
2581
+ proto.GetInvoiceTypeDetailRes.prototype.setTransactionBuilderItemsList = function(value) {
2582
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
2583
+ };
2584
+
2585
+
2586
+ /**
2587
+ * @param {!proto.GetInvoiceTypeItemPreload=} opt_value
2588
+ * @param {number=} opt_index
2589
+ * @return {!proto.GetInvoiceTypeItemPreload}
2590
+ */
2591
+ proto.GetInvoiceTypeDetailRes.prototype.addTransactionBuilderItems = function(opt_value, opt_index) {
2592
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetInvoiceTypeItemPreload, opt_index);
2593
+ };
2594
+
2595
+
2596
+ /**
2597
+ * Clears the list making it empty but non-null.
2598
+ * @return {!proto.GetInvoiceTypeDetailRes} returns this
2599
+ */
2600
+ proto.GetInvoiceTypeDetailRes.prototype.clearTransactionBuilderItemsList = function() {
2601
+ return this.setTransactionBuilderItemsList([]);
2602
+ };
2603
+
2604
+
2605
+
2606
+ /**
2607
+ * List of repeated fields within this message type.
2608
+ * @private {!Array<number>}
2609
+ * @const
2610
+ */
2611
+ proto.GetInvoiceTypeItemPreload.repeatedFields_ = [1,2];
2612
+
2613
+
2614
+
2615
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2616
+ /**
2617
+ * Creates an object representation of this proto.
2618
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2619
+ * Optional fields that are not set will be set to undefined.
2620
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2621
+ * For the list of reserved names please see:
2622
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2623
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2624
+ * JSPB instance for transitional soy proto support:
2625
+ * http://goto/soy-param-migration
2626
+ * @return {!Object}
2627
+ */
2628
+ proto.GetInvoiceTypeItemPreload.prototype.toObject = function(opt_includeInstance) {
2629
+ return proto.GetInvoiceTypeItemPreload.toObject(opt_includeInstance, this);
2630
+ };
2631
+
2632
+
2633
+ /**
2634
+ * Static version of the {@see toObject} method.
2635
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2636
+ * the JSPB instance for transitional soy proto support:
2637
+ * http://goto/soy-param-migration
2638
+ * @param {!proto.GetInvoiceTypeItemPreload} msg The msg instance to transform.
2639
+ * @return {!Object}
2640
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2641
+ */
2642
+ proto.GetInvoiceTypeItemPreload.toObject = function(includeInstance, msg) {
2643
+ var f, obj = {
2644
+ transactionBuilderItemList: jspb.Message.toObjectList(msg.getTransactionBuilderItemList(),
2645
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
2646
+ transactionBuilderItemDetailsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemDetailsList(),
2647
+ proto.GetInvoiceTypeItemDetailPreload.toObject, includeInstance)
2648
+ };
2649
+
2650
+ if (includeInstance) {
2651
+ obj.$jspbMessageInstance = msg;
2652
+ }
2653
+ return obj;
2654
+ };
2655
+ }
2656
+
2657
+
2658
+ /**
2659
+ * Deserializes binary data (in protobuf wire format).
2660
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2661
+ * @return {!proto.GetInvoiceTypeItemPreload}
2662
+ */
2663
+ proto.GetInvoiceTypeItemPreload.deserializeBinary = function(bytes) {
2664
+ var reader = new jspb.BinaryReader(bytes);
2665
+ var msg = new proto.GetInvoiceTypeItemPreload;
2666
+ return proto.GetInvoiceTypeItemPreload.deserializeBinaryFromReader(msg, reader);
2667
+ };
2668
+
2669
+
2670
+ /**
2671
+ * Deserializes binary data (in protobuf wire format) from the
2672
+ * given reader into the given message object.
2673
+ * @param {!proto.GetInvoiceTypeItemPreload} msg The message object to deserialize into.
2674
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2675
+ * @return {!proto.GetInvoiceTypeItemPreload}
2676
+ */
2677
+ proto.GetInvoiceTypeItemPreload.deserializeBinaryFromReader = function(msg, reader) {
2678
+ while (reader.nextField()) {
2679
+ if (reader.isEndGroup()) {
2680
+ break;
2681
+ }
2682
+ var field = reader.getFieldNumber();
2683
+ switch (field) {
2684
+ case 1:
2685
+ var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
2686
+ reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
2687
+ msg.addTransactionBuilderItem(value);
2688
+ break;
2689
+ case 2:
2690
+ var value = new proto.GetInvoiceTypeItemDetailPreload;
2691
+ reader.readMessage(value,proto.GetInvoiceTypeItemDetailPreload.deserializeBinaryFromReader);
2692
+ msg.addTransactionBuilderItemDetails(value);
2693
+ break;
2694
+ default:
2695
+ reader.skipField();
2696
+ break;
2697
+ }
2698
+ }
2699
+ return msg;
2700
+ };
2701
+
2702
+
2703
+ /**
2704
+ * Serializes the message to binary data (in protobuf wire format).
2705
+ * @return {!Uint8Array}
2706
+ */
2707
+ proto.GetInvoiceTypeItemPreload.prototype.serializeBinary = function() {
2708
+ var writer = new jspb.BinaryWriter();
2709
+ proto.GetInvoiceTypeItemPreload.serializeBinaryToWriter(this, writer);
2710
+ return writer.getResultBuffer();
2711
+ };
2712
+
2713
+
2714
+ /**
2715
+ * Serializes the given message to binary data (in protobuf wire
2716
+ * format), writing to the given BinaryWriter.
2717
+ * @param {!proto.GetInvoiceTypeItemPreload} message
2718
+ * @param {!jspb.BinaryWriter} writer
2719
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2720
+ */
2721
+ proto.GetInvoiceTypeItemPreload.serializeBinaryToWriter = function(message, writer) {
2722
+ var f = undefined;
2723
+ f = message.getTransactionBuilderItemList();
2724
+ if (f.length > 0) {
2725
+ writer.writeRepeatedMessage(
2726
+ 1,
2727
+ f,
2728
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
2729
+ );
2730
+ }
2731
+ f = message.getTransactionBuilderItemDetailsList();
2732
+ if (f.length > 0) {
2733
+ writer.writeRepeatedMessage(
2734
+ 2,
2735
+ f,
2736
+ proto.GetInvoiceTypeItemDetailPreload.serializeBinaryToWriter
2737
+ );
2738
+ }
2739
+ };
2740
+
2741
+
2742
+ /**
2743
+ * repeated TransactionBuilderFieldsDetail transaction_builder_item = 1;
2744
+ * @return {!Array<!proto.TransactionBuilderFieldsDetail>}
2745
+ */
2746
+ proto.GetInvoiceTypeItemPreload.prototype.getTransactionBuilderItemList = function() {
2747
+ return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
2748
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
2749
+ };
2750
+
2751
+
2752
+ /**
2753
+ * @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
2754
+ * @return {!proto.GetInvoiceTypeItemPreload} returns this
2755
+ */
2756
+ proto.GetInvoiceTypeItemPreload.prototype.setTransactionBuilderItemList = function(value) {
2757
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2758
+ };
2759
+
2760
+
2761
+ /**
2762
+ * @param {!proto.TransactionBuilderFieldsDetail=} opt_value
2763
+ * @param {number=} opt_index
2764
+ * @return {!proto.TransactionBuilderFieldsDetail}
2765
+ */
2766
+ proto.GetInvoiceTypeItemPreload.prototype.addTransactionBuilderItem = function(opt_value, opt_index) {
2767
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
2768
+ };
2769
+
2770
+
2771
+ /**
2772
+ * Clears the list making it empty but non-null.
2773
+ * @return {!proto.GetInvoiceTypeItemPreload} returns this
2774
+ */
2775
+ proto.GetInvoiceTypeItemPreload.prototype.clearTransactionBuilderItemList = function() {
2776
+ return this.setTransactionBuilderItemList([]);
2777
+ };
2778
+
2779
+
2780
+ /**
2781
+ * repeated GetInvoiceTypeItemDetailPreload transaction_builder_item_details = 2;
2782
+ * @return {!Array<!proto.GetInvoiceTypeItemDetailPreload>}
2783
+ */
2784
+ proto.GetInvoiceTypeItemPreload.prototype.getTransactionBuilderItemDetailsList = function() {
2785
+ return /** @type{!Array<!proto.GetInvoiceTypeItemDetailPreload>} */ (
2786
+ jspb.Message.getRepeatedWrapperField(this, proto.GetInvoiceTypeItemDetailPreload, 2));
2787
+ };
2788
+
2789
+
2790
+ /**
2791
+ * @param {!Array<!proto.GetInvoiceTypeItemDetailPreload>} value
2792
+ * @return {!proto.GetInvoiceTypeItemPreload} returns this
2793
+ */
2794
+ proto.GetInvoiceTypeItemPreload.prototype.setTransactionBuilderItemDetailsList = function(value) {
2795
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
2796
+ };
2797
+
2798
+
2799
+ /**
2800
+ * @param {!proto.GetInvoiceTypeItemDetailPreload=} opt_value
2801
+ * @param {number=} opt_index
2802
+ * @return {!proto.GetInvoiceTypeItemDetailPreload}
2803
+ */
2804
+ proto.GetInvoiceTypeItemPreload.prototype.addTransactionBuilderItemDetails = function(opt_value, opt_index) {
2805
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetInvoiceTypeItemDetailPreload, opt_index);
2806
+ };
2807
+
2808
+
2809
+ /**
2810
+ * Clears the list making it empty but non-null.
2811
+ * @return {!proto.GetInvoiceTypeItemPreload} returns this
2812
+ */
2813
+ proto.GetInvoiceTypeItemPreload.prototype.clearTransactionBuilderItemDetailsList = function() {
2814
+ return this.setTransactionBuilderItemDetailsList([]);
2815
+ };
2816
+
2817
+
2818
+
2819
+ /**
2820
+ * List of repeated fields within this message type.
2821
+ * @private {!Array<number>}
2822
+ * @const
2823
+ */
2824
+ proto.GetInvoiceTypeItemDetailPreload.repeatedFields_ = [1];
2825
+
2826
+
2827
+
2828
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2829
+ /**
2830
+ * Creates an object representation of this proto.
2831
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2832
+ * Optional fields that are not set will be set to undefined.
2833
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2834
+ * For the list of reserved names please see:
2835
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2836
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2837
+ * JSPB instance for transitional soy proto support:
2838
+ * http://goto/soy-param-migration
2839
+ * @return {!Object}
2840
+ */
2841
+ proto.GetInvoiceTypeItemDetailPreload.prototype.toObject = function(opt_includeInstance) {
2842
+ return proto.GetInvoiceTypeItemDetailPreload.toObject(opt_includeInstance, this);
2843
+ };
2844
+
2845
+
2846
+ /**
2847
+ * Static version of the {@see toObject} method.
2848
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2849
+ * the JSPB instance for transitional soy proto support:
2850
+ * http://goto/soy-param-migration
2851
+ * @param {!proto.GetInvoiceTypeItemDetailPreload} msg The msg instance to transform.
2852
+ * @return {!Object}
2853
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2854
+ */
2855
+ proto.GetInvoiceTypeItemDetailPreload.toObject = function(includeInstance, msg) {
2856
+ var f, obj = {
2857
+ transactionBuilderItemDetailList: jspb.Message.toObjectList(msg.getTransactionBuilderItemDetailList(),
2858
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance)
2859
+ };
2860
+
2861
+ if (includeInstance) {
2862
+ obj.$jspbMessageInstance = msg;
2863
+ }
2864
+ return obj;
2865
+ };
2866
+ }
2867
+
2868
+
2869
+ /**
2870
+ * Deserializes binary data (in protobuf wire format).
2871
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2872
+ * @return {!proto.GetInvoiceTypeItemDetailPreload}
2873
+ */
2874
+ proto.GetInvoiceTypeItemDetailPreload.deserializeBinary = function(bytes) {
2875
+ var reader = new jspb.BinaryReader(bytes);
2876
+ var msg = new proto.GetInvoiceTypeItemDetailPreload;
2877
+ return proto.GetInvoiceTypeItemDetailPreload.deserializeBinaryFromReader(msg, reader);
2878
+ };
2879
+
2880
+
2881
+ /**
2882
+ * Deserializes binary data (in protobuf wire format) from the
2883
+ * given reader into the given message object.
2884
+ * @param {!proto.GetInvoiceTypeItemDetailPreload} msg The message object to deserialize into.
2885
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2886
+ * @return {!proto.GetInvoiceTypeItemDetailPreload}
2887
+ */
2888
+ proto.GetInvoiceTypeItemDetailPreload.deserializeBinaryFromReader = function(msg, reader) {
2889
+ while (reader.nextField()) {
2890
+ if (reader.isEndGroup()) {
2891
+ break;
2892
+ }
2893
+ var field = reader.getFieldNumber();
2894
+ switch (field) {
2895
+ case 1:
2896
+ var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
2897
+ reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
2898
+ msg.addTransactionBuilderItemDetail(value);
2899
+ break;
2900
+ default:
2901
+ reader.skipField();
2902
+ break;
2903
+ }
2904
+ }
2905
+ return msg;
2906
+ };
2907
+
2908
+
2909
+ /**
2910
+ * Serializes the message to binary data (in protobuf wire format).
2911
+ * @return {!Uint8Array}
2912
+ */
2913
+ proto.GetInvoiceTypeItemDetailPreload.prototype.serializeBinary = function() {
2914
+ var writer = new jspb.BinaryWriter();
2915
+ proto.GetInvoiceTypeItemDetailPreload.serializeBinaryToWriter(this, writer);
2916
+ return writer.getResultBuffer();
2917
+ };
2918
+
2919
+
2920
+ /**
2921
+ * Serializes the given message to binary data (in protobuf wire
2922
+ * format), writing to the given BinaryWriter.
2923
+ * @param {!proto.GetInvoiceTypeItemDetailPreload} message
2924
+ * @param {!jspb.BinaryWriter} writer
2925
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2926
+ */
2927
+ proto.GetInvoiceTypeItemDetailPreload.serializeBinaryToWriter = function(message, writer) {
2928
+ var f = undefined;
2929
+ f = message.getTransactionBuilderItemDetailList();
2930
+ if (f.length > 0) {
2931
+ writer.writeRepeatedMessage(
2932
+ 1,
2933
+ f,
2934
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
2935
+ );
2936
+ }
2937
+ };
2938
+
2939
+
2940
+ /**
2941
+ * repeated TransactionBuilderFieldsDetail transaction_builder_item_detail = 1;
2942
+ * @return {!Array<!proto.TransactionBuilderFieldsDetail>}
2943
+ */
2944
+ proto.GetInvoiceTypeItemDetailPreload.prototype.getTransactionBuilderItemDetailList = function() {
2945
+ return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
2946
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
2947
+ };
2948
+
2949
+
2950
+ /**
2951
+ * @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
2952
+ * @return {!proto.GetInvoiceTypeItemDetailPreload} returns this
2953
+ */
2954
+ proto.GetInvoiceTypeItemDetailPreload.prototype.setTransactionBuilderItemDetailList = function(value) {
2955
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2956
+ };
2957
+
2958
+
2959
+ /**
2960
+ * @param {!proto.TransactionBuilderFieldsDetail=} opt_value
2961
+ * @param {number=} opt_index
2962
+ * @return {!proto.TransactionBuilderFieldsDetail}
2963
+ */
2964
+ proto.GetInvoiceTypeItemDetailPreload.prototype.addTransactionBuilderItemDetail = function(opt_value, opt_index) {
2965
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
2966
+ };
2967
+
2968
+
2969
+ /**
2970
+ * Clears the list making it empty but non-null.
2971
+ * @return {!proto.GetInvoiceTypeItemDetailPreload} returns this
2972
+ */
2973
+ proto.GetInvoiceTypeItemDetailPreload.prototype.clearTransactionBuilderItemDetailList = function() {
2974
+ return this.setTransactionBuilderItemDetailList([]);
2975
+ };
2976
+
2977
+
2978
+
2979
+
2980
+
2981
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2982
+ /**
2983
+ * Creates an object representation of this proto.
2984
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2985
+ * Optional fields that are not set will be set to undefined.
2986
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2987
+ * For the list of reserved names please see:
2988
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2989
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2990
+ * JSPB instance for transitional soy proto support:
2991
+ * http://goto/soy-param-migration
2992
+ * @return {!Object}
2993
+ */
2994
+ proto.GetListInvoiceTypeReq.prototype.toObject = function(opt_includeInstance) {
2995
+ return proto.GetListInvoiceTypeReq.toObject(opt_includeInstance, this);
2996
+ };
2997
+
2998
+
2999
+ /**
3000
+ * Static version of the {@see toObject} method.
3001
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3002
+ * the JSPB instance for transitional soy proto support:
3003
+ * http://goto/soy-param-migration
3004
+ * @param {!proto.GetListInvoiceTypeReq} msg The msg instance to transform.
3005
+ * @return {!Object}
3006
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3007
+ */
3008
+ proto.GetListInvoiceTypeReq.toObject = function(includeInstance, msg) {
3009
+ var f, obj = {
3010
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
3011
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
3012
+ };
3013
+
3014
+ if (includeInstance) {
3015
+ obj.$jspbMessageInstance = msg;
3016
+ }
3017
+ return obj;
3018
+ };
3019
+ }
3020
+
3021
+
3022
+ /**
3023
+ * Deserializes binary data (in protobuf wire format).
3024
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3025
+ * @return {!proto.GetListInvoiceTypeReq}
3026
+ */
3027
+ proto.GetListInvoiceTypeReq.deserializeBinary = function(bytes) {
3028
+ var reader = new jspb.BinaryReader(bytes);
3029
+ var msg = new proto.GetListInvoiceTypeReq;
3030
+ return proto.GetListInvoiceTypeReq.deserializeBinaryFromReader(msg, reader);
3031
+ };
3032
+
3033
+
3034
+ /**
3035
+ * Deserializes binary data (in protobuf wire format) from the
3036
+ * given reader into the given message object.
3037
+ * @param {!proto.GetListInvoiceTypeReq} msg The message object to deserialize into.
3038
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3039
+ * @return {!proto.GetListInvoiceTypeReq}
3040
+ */
3041
+ proto.GetListInvoiceTypeReq.deserializeBinaryFromReader = function(msg, reader) {
3042
+ while (reader.nextField()) {
3043
+ if (reader.isEndGroup()) {
3044
+ break;
3045
+ }
3046
+ var field = reader.getFieldNumber();
3047
+ switch (field) {
3048
+ case 1:
3049
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
3050
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
3051
+ msg.setPagination(value);
3052
+ break;
3053
+ case 2:
3054
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
3055
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
3056
+ msg.setQuery(value);
3057
+ break;
3058
+ default:
3059
+ reader.skipField();
3060
+ break;
3061
+ }
3062
+ }
3063
+ return msg;
3064
+ };
3065
+
3066
+
3067
+ /**
3068
+ * Serializes the message to binary data (in protobuf wire format).
3069
+ * @return {!Uint8Array}
3070
+ */
3071
+ proto.GetListInvoiceTypeReq.prototype.serializeBinary = function() {
3072
+ var writer = new jspb.BinaryWriter();
3073
+ proto.GetListInvoiceTypeReq.serializeBinaryToWriter(this, writer);
3074
+ return writer.getResultBuffer();
3075
+ };
3076
+
3077
+
3078
+ /**
3079
+ * Serializes the given message to binary data (in protobuf wire
3080
+ * format), writing to the given BinaryWriter.
3081
+ * @param {!proto.GetListInvoiceTypeReq} message
3082
+ * @param {!jspb.BinaryWriter} writer
3083
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3084
+ */
3085
+ proto.GetListInvoiceTypeReq.serializeBinaryToWriter = function(message, writer) {
3086
+ var f = undefined;
3087
+ f = message.getPagination();
3088
+ if (f != null) {
3089
+ writer.writeMessage(
3090
+ 1,
3091
+ f,
3092
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
3093
+ );
3094
+ }
3095
+ f = message.getQuery();
3096
+ if (f != null) {
3097
+ writer.writeMessage(
3098
+ 2,
3099
+ f,
3100
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
3101
+ );
3102
+ }
3103
+ };
3104
+
3105
+
3106
+ /**
3107
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
3108
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
3109
+ */
3110
+ proto.GetListInvoiceTypeReq.prototype.getPagination = function() {
3111
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
3112
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
3113
+ };
3114
+
3115
+
3116
+ /**
3117
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
3118
+ * @return {!proto.GetListInvoiceTypeReq} returns this
3119
+ */
3120
+ proto.GetListInvoiceTypeReq.prototype.setPagination = function(value) {
3121
+ return jspb.Message.setWrapperField(this, 1, value);
3122
+ };
3123
+
3124
+
3125
+ /**
3126
+ * Clears the message field making it undefined.
3127
+ * @return {!proto.GetListInvoiceTypeReq} returns this
3128
+ */
3129
+ proto.GetListInvoiceTypeReq.prototype.clearPagination = function() {
3130
+ return this.setPagination(undefined);
3131
+ };
3132
+
3133
+
3134
+ /**
3135
+ * Returns whether this field is set.
3136
+ * @return {boolean}
3137
+ */
3138
+ proto.GetListInvoiceTypeReq.prototype.hasPagination = function() {
3139
+ return jspb.Message.getField(this, 1) != null;
3140
+ };
3141
+
3142
+
3143
+ /**
3144
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
3145
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
3146
+ */
3147
+ proto.GetListInvoiceTypeReq.prototype.getQuery = function() {
3148
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
3149
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
3150
+ };
3151
+
3152
+
3153
+ /**
3154
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
3155
+ * @return {!proto.GetListInvoiceTypeReq} returns this
3156
+ */
3157
+ proto.GetListInvoiceTypeReq.prototype.setQuery = function(value) {
3158
+ return jspb.Message.setWrapperField(this, 2, value);
3159
+ };
3160
+
3161
+
3162
+ /**
3163
+ * Clears the message field making it undefined.
3164
+ * @return {!proto.GetListInvoiceTypeReq} returns this
3165
+ */
3166
+ proto.GetListInvoiceTypeReq.prototype.clearQuery = function() {
3167
+ return this.setQuery(undefined);
3168
+ };
3169
+
3170
+
3171
+ /**
3172
+ * Returns whether this field is set.
3173
+ * @return {boolean}
3174
+ */
3175
+ proto.GetListInvoiceTypeReq.prototype.hasQuery = function() {
3176
+ return jspb.Message.getField(this, 2) != null;
3177
+ };
3178
+
3179
+
3180
+
3181
+ /**
3182
+ * List of repeated fields within this message type.
3183
+ * @private {!Array<number>}
3184
+ * @const
3185
+ */
3186
+ proto.GetListInvoiceTypeRes.repeatedFields_ = [1];
3187
+
3188
+
3189
+
3190
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3191
+ /**
3192
+ * Creates an object representation of this proto.
3193
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3194
+ * Optional fields that are not set will be set to undefined.
3195
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3196
+ * For the list of reserved names please see:
3197
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3198
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3199
+ * JSPB instance for transitional soy proto support:
3200
+ * http://goto/soy-param-migration
3201
+ * @return {!Object}
3202
+ */
3203
+ proto.GetListInvoiceTypeRes.prototype.toObject = function(opt_includeInstance) {
3204
+ return proto.GetListInvoiceTypeRes.toObject(opt_includeInstance, this);
3205
+ };
3206
+
3207
+
3208
+ /**
3209
+ * Static version of the {@see toObject} method.
3210
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3211
+ * the JSPB instance for transitional soy proto support:
3212
+ * http://goto/soy-param-migration
3213
+ * @param {!proto.GetListInvoiceTypeRes} msg The msg instance to transform.
3214
+ * @return {!Object}
3215
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3216
+ */
3217
+ proto.GetListInvoiceTypeRes.toObject = function(includeInstance, msg) {
3218
+ var f, obj = {
3219
+ invoiceTypesList: jspb.Message.toObjectList(msg.getInvoiceTypesList(),
3220
+ proto.InvoiceType.toObject, includeInstance),
3221
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3222
+ };
3223
+
3224
+ if (includeInstance) {
3225
+ obj.$jspbMessageInstance = msg;
3226
+ }
3227
+ return obj;
3228
+ };
3229
+ }
3230
+
3231
+
3232
+ /**
3233
+ * Deserializes binary data (in protobuf wire format).
3234
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3235
+ * @return {!proto.GetListInvoiceTypeRes}
3236
+ */
3237
+ proto.GetListInvoiceTypeRes.deserializeBinary = function(bytes) {
3238
+ var reader = new jspb.BinaryReader(bytes);
3239
+ var msg = new proto.GetListInvoiceTypeRes;
3240
+ return proto.GetListInvoiceTypeRes.deserializeBinaryFromReader(msg, reader);
3241
+ };
3242
+
3243
+
3244
+ /**
3245
+ * Deserializes binary data (in protobuf wire format) from the
3246
+ * given reader into the given message object.
3247
+ * @param {!proto.GetListInvoiceTypeRes} msg The message object to deserialize into.
3248
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3249
+ * @return {!proto.GetListInvoiceTypeRes}
3250
+ */
3251
+ proto.GetListInvoiceTypeRes.deserializeBinaryFromReader = function(msg, reader) {
3252
+ while (reader.nextField()) {
3253
+ if (reader.isEndGroup()) {
3254
+ break;
3255
+ }
3256
+ var field = reader.getFieldNumber();
3257
+ switch (field) {
3258
+ case 1:
3259
+ var value = new proto.InvoiceType;
3260
+ reader.readMessage(value,proto.InvoiceType.deserializeBinaryFromReader);
3261
+ msg.addInvoiceTypes(value);
3262
+ break;
3263
+ case 2:
3264
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3265
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3266
+ msg.setMeta(value);
3267
+ break;
3268
+ default:
3269
+ reader.skipField();
3270
+ break;
3271
+ }
3272
+ }
3273
+ return msg;
3274
+ };
3275
+
3276
+
3277
+ /**
3278
+ * Serializes the message to binary data (in protobuf wire format).
3279
+ * @return {!Uint8Array}
3280
+ */
3281
+ proto.GetListInvoiceTypeRes.prototype.serializeBinary = function() {
3282
+ var writer = new jspb.BinaryWriter();
3283
+ proto.GetListInvoiceTypeRes.serializeBinaryToWriter(this, writer);
3284
+ return writer.getResultBuffer();
3285
+ };
3286
+
3287
+
3288
+ /**
3289
+ * Serializes the given message to binary data (in protobuf wire
3290
+ * format), writing to the given BinaryWriter.
3291
+ * @param {!proto.GetListInvoiceTypeRes} message
3292
+ * @param {!jspb.BinaryWriter} writer
3293
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3294
+ */
3295
+ proto.GetListInvoiceTypeRes.serializeBinaryToWriter = function(message, writer) {
3296
+ var f = undefined;
3297
+ f = message.getInvoiceTypesList();
3298
+ if (f.length > 0) {
3299
+ writer.writeRepeatedMessage(
3300
+ 1,
3301
+ f,
3302
+ proto.InvoiceType.serializeBinaryToWriter
3303
+ );
3304
+ }
3305
+ f = message.getMeta();
3306
+ if (f != null) {
3307
+ writer.writeMessage(
3308
+ 2,
3309
+ f,
3310
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3311
+ );
3312
+ }
3313
+ };
3314
+
3315
+
3316
+ /**
3317
+ * repeated InvoiceType invoice_types = 1;
3318
+ * @return {!Array<!proto.InvoiceType>}
3319
+ */
3320
+ proto.GetListInvoiceTypeRes.prototype.getInvoiceTypesList = function() {
3321
+ return /** @type{!Array<!proto.InvoiceType>} */ (
3322
+ jspb.Message.getRepeatedWrapperField(this, proto.InvoiceType, 1));
3323
+ };
3324
+
3325
+
3326
+ /**
3327
+ * @param {!Array<!proto.InvoiceType>} value
3328
+ * @return {!proto.GetListInvoiceTypeRes} returns this
3329
+ */
3330
+ proto.GetListInvoiceTypeRes.prototype.setInvoiceTypesList = function(value) {
3331
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3332
+ };
3333
+
3334
+
3335
+ /**
3336
+ * @param {!proto.InvoiceType=} opt_value
3337
+ * @param {number=} opt_index
3338
+ * @return {!proto.InvoiceType}
3339
+ */
3340
+ proto.GetListInvoiceTypeRes.prototype.addInvoiceTypes = function(opt_value, opt_index) {
3341
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.InvoiceType, opt_index);
3342
+ };
3343
+
3344
+
3345
+ /**
3346
+ * Clears the list making it empty but non-null.
3347
+ * @return {!proto.GetListInvoiceTypeRes} returns this
3348
+ */
3349
+ proto.GetListInvoiceTypeRes.prototype.clearInvoiceTypesList = function() {
3350
+ return this.setInvoiceTypesList([]);
3351
+ };
3352
+
3353
+
3354
+ /**
3355
+ * optional prisca.v1.global.meta.Meta meta = 2;
3356
+ * @return {?proto.prisca.v1.global.meta.Meta}
3357
+ */
3358
+ proto.GetListInvoiceTypeRes.prototype.getMeta = function() {
3359
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3360
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3361
+ };
3362
+
3363
+
3364
+ /**
3365
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3366
+ * @return {!proto.GetListInvoiceTypeRes} returns this
3367
+ */
3368
+ proto.GetListInvoiceTypeRes.prototype.setMeta = function(value) {
3369
+ return jspb.Message.setWrapperField(this, 2, value);
3370
+ };
3371
+
3372
+
3373
+ /**
3374
+ * Clears the message field making it undefined.
3375
+ * @return {!proto.GetListInvoiceTypeRes} returns this
3376
+ */
3377
+ proto.GetListInvoiceTypeRes.prototype.clearMeta = function() {
3378
+ return this.setMeta(undefined);
3379
+ };
3380
+
3381
+
3382
+ /**
3383
+ * Returns whether this field is set.
3384
+ * @return {boolean}
3385
+ */
3386
+ proto.GetListInvoiceTypeRes.prototype.hasMeta = function() {
3387
+ return jspb.Message.getField(this, 2) != null;
3388
+ };
3389
+
3390
+
3391
+
3392
+ /**
3393
+ * List of repeated fields within this message type.
3394
+ * @private {!Array<number>}
3395
+ * @const
3396
+ */
3397
+ proto.DeleteInvoiceTypeResponse.repeatedFields_ = [1];
3398
+
3399
+
3400
+
3401
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3402
+ /**
3403
+ * Creates an object representation of this proto.
3404
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3405
+ * Optional fields that are not set will be set to undefined.
3406
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3407
+ * For the list of reserved names please see:
3408
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3409
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3410
+ * JSPB instance for transitional soy proto support:
3411
+ * http://goto/soy-param-migration
3412
+ * @return {!Object}
3413
+ */
3414
+ proto.DeleteInvoiceTypeResponse.prototype.toObject = function(opt_includeInstance) {
3415
+ return proto.DeleteInvoiceTypeResponse.toObject(opt_includeInstance, this);
3416
+ };
3417
+
3418
+
3419
+ /**
3420
+ * Static version of the {@see toObject} method.
3421
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3422
+ * the JSPB instance for transitional soy proto support:
3423
+ * http://goto/soy-param-migration
3424
+ * @param {!proto.DeleteInvoiceTypeResponse} msg The msg instance to transform.
3425
+ * @return {!Object}
3426
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3427
+ */
3428
+ proto.DeleteInvoiceTypeResponse.toObject = function(includeInstance, msg) {
3429
+ var f, obj = {
3430
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
3431
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3432
+ };
3433
+
3434
+ if (includeInstance) {
3435
+ obj.$jspbMessageInstance = msg;
3436
+ }
3437
+ return obj;
3438
+ };
3439
+ }
3440
+
3441
+
3442
+ /**
3443
+ * Deserializes binary data (in protobuf wire format).
3444
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3445
+ * @return {!proto.DeleteInvoiceTypeResponse}
3446
+ */
3447
+ proto.DeleteInvoiceTypeResponse.deserializeBinary = function(bytes) {
3448
+ var reader = new jspb.BinaryReader(bytes);
3449
+ var msg = new proto.DeleteInvoiceTypeResponse;
3450
+ return proto.DeleteInvoiceTypeResponse.deserializeBinaryFromReader(msg, reader);
3451
+ };
3452
+
3453
+
3454
+ /**
3455
+ * Deserializes binary data (in protobuf wire format) from the
3456
+ * given reader into the given message object.
3457
+ * @param {!proto.DeleteInvoiceTypeResponse} msg The message object to deserialize into.
3458
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3459
+ * @return {!proto.DeleteInvoiceTypeResponse}
3460
+ */
3461
+ proto.DeleteInvoiceTypeResponse.deserializeBinaryFromReader = function(msg, reader) {
3462
+ while (reader.nextField()) {
3463
+ if (reader.isEndGroup()) {
3464
+ break;
3465
+ }
3466
+ var field = reader.getFieldNumber();
3467
+ switch (field) {
3468
+ case 1:
3469
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3470
+ msg.addReferenceIds(value);
3471
+ break;
3472
+ case 2:
3473
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3474
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3475
+ msg.setMeta(value);
3476
+ break;
3477
+ default:
3478
+ reader.skipField();
3479
+ break;
3480
+ }
3481
+ }
3482
+ return msg;
3483
+ };
3484
+
3485
+
3486
+ /**
3487
+ * Serializes the message to binary data (in protobuf wire format).
3488
+ * @return {!Uint8Array}
3489
+ */
3490
+ proto.DeleteInvoiceTypeResponse.prototype.serializeBinary = function() {
3491
+ var writer = new jspb.BinaryWriter();
3492
+ proto.DeleteInvoiceTypeResponse.serializeBinaryToWriter(this, writer);
3493
+ return writer.getResultBuffer();
3494
+ };
3495
+
3496
+
3497
+ /**
3498
+ * Serializes the given message to binary data (in protobuf wire
3499
+ * format), writing to the given BinaryWriter.
3500
+ * @param {!proto.DeleteInvoiceTypeResponse} message
3501
+ * @param {!jspb.BinaryWriter} writer
3502
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3503
+ */
3504
+ proto.DeleteInvoiceTypeResponse.serializeBinaryToWriter = function(message, writer) {
3505
+ var f = undefined;
3506
+ f = message.getReferenceIdsList();
3507
+ if (f.length > 0) {
3508
+ writer.writeRepeatedString(
3509
+ 1,
3510
+ f
3511
+ );
3512
+ }
3513
+ f = message.getMeta();
3514
+ if (f != null) {
3515
+ writer.writeMessage(
3516
+ 2,
3517
+ f,
3518
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3519
+ );
3520
+ }
3521
+ };
3522
+
3523
+
3524
+ /**
3525
+ * repeated string reference_ids = 1;
3526
+ * @return {!Array<string>}
3527
+ */
3528
+ proto.DeleteInvoiceTypeResponse.prototype.getReferenceIdsList = function() {
3529
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
3530
+ };
3531
+
3532
+
3533
+ /**
3534
+ * @param {!Array<string>} value
3535
+ * @return {!proto.DeleteInvoiceTypeResponse} returns this
3536
+ */
3537
+ proto.DeleteInvoiceTypeResponse.prototype.setReferenceIdsList = function(value) {
3538
+ return jspb.Message.setField(this, 1, value || []);
3539
+ };
3540
+
3541
+
3542
+ /**
3543
+ * @param {string} value
3544
+ * @param {number=} opt_index
3545
+ * @return {!proto.DeleteInvoiceTypeResponse} returns this
3546
+ */
3547
+ proto.DeleteInvoiceTypeResponse.prototype.addReferenceIds = function(value, opt_index) {
3548
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3549
+ };
3550
+
3551
+
3552
+ /**
3553
+ * Clears the list making it empty but non-null.
3554
+ * @return {!proto.DeleteInvoiceTypeResponse} returns this
3555
+ */
3556
+ proto.DeleteInvoiceTypeResponse.prototype.clearReferenceIdsList = function() {
3557
+ return this.setReferenceIdsList([]);
3558
+ };
3559
+
3560
+
3561
+ /**
3562
+ * optional prisca.v1.global.meta.Meta meta = 2;
3563
+ * @return {?proto.prisca.v1.global.meta.Meta}
3564
+ */
3565
+ proto.DeleteInvoiceTypeResponse.prototype.getMeta = function() {
3566
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3567
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3568
+ };
3569
+
3570
+
3571
+ /**
3572
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3573
+ * @return {!proto.DeleteInvoiceTypeResponse} returns this
3574
+ */
3575
+ proto.DeleteInvoiceTypeResponse.prototype.setMeta = function(value) {
3576
+ return jspb.Message.setWrapperField(this, 2, value);
3577
+ };
3578
+
3579
+
3580
+ /**
3581
+ * Clears the message field making it undefined.
3582
+ * @return {!proto.DeleteInvoiceTypeResponse} returns this
3583
+ */
3584
+ proto.DeleteInvoiceTypeResponse.prototype.clearMeta = function() {
3585
+ return this.setMeta(undefined);
3586
+ };
3587
+
3588
+
3589
+ /**
3590
+ * Returns whether this field is set.
3591
+ * @return {boolean}
3592
+ */
3593
+ proto.DeleteInvoiceTypeResponse.prototype.hasMeta = function() {
3594
+ return jspb.Message.getField(this, 2) != null;
3595
+ };
3596
+
3597
+
3598
+ goog.object.extend(exports, proto);