@aldiokta/protocgen 1.1.26 → 1.1.28

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_grpc_pb.js +55 -0
  3. package/prisca/v1/bidding/bidding_pb.js +1042 -63
  4. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +33 -0
  5. package/prisca/v1/core/access_manager/access_manager_pb.js +385 -0
  6. package/prisca/v1/core/auth/auth_grpc_pb.js +103 -3
  7. package/prisca/v1/core/auth/auth_pb.js +2519 -1181
  8. package/prisca/v1/core/file_upload/file_upload_pb.js +93 -3
  9. package/prisca/v1/core/item_transaction/item_transaction_pb.js +183 -33
  10. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +438 -46
  11. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +31 -1
  12. package/prisca/v1/core/location/location_pb.js +446 -57
  13. package/prisca/v1/core/messaging/notification_grpc_pb.js +188 -0
  14. package/prisca/v1/core/messaging/notification_pb.js +2780 -0
  15. package/prisca/v1/core/price_condition/price_condition_pb.js +122 -2
  16. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +234 -168
  17. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +1987 -1775
  18. package/prisca/v1/delivery_order/delivery_order_pb.js +130 -70
  19. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +228 -1
  20. package/prisca/v1/good_receipt/good_receipt_pb.js +4779 -0
  21. package/prisca/v1/invoice/invoice_grpc_pb.js +174 -0
  22. package/prisca/v1/invoice/invoice_pb.js +4398 -0
  23. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +11 -0
  24. package/prisca/v1/purchase_order/purchase_order_pb.js +142 -22
  25. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +105 -75
  26. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +55 -177
  27. package/prisca/v1/quotation/quotation_pb.js +236 -26
  28. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +33 -0
  29. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +413 -28
  30. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +55 -0
  31. package/prisca/v1/vendor_domain/vendor_domain_pb.js +1076 -317
@@ -0,0 +1,4398 @@
1
+ // source: prisca/v1/invoice/invoice.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 =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
25
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
+ var prisca_v1_vendor_domain_vendor_domain_pb = require('../../../prisca/v1/vendor_domain/vendor_domain_pb.js');
27
+ goog.object.extend(proto, prisca_v1_vendor_domain_vendor_domain_pb);
28
+ var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
29
+ goog.object.extend(proto, prisca_v1_core_company_company_pb);
30
+ var prisca_v1_core_item_transaction_item_transaction_pb = require('../../../prisca/v1/core/item_transaction/item_transaction_pb.js');
31
+ goog.object.extend(proto, prisca_v1_core_item_transaction_item_transaction_pb);
32
+ var prisca_v1_core_employee_employee_pb = require('../../../prisca/v1/core/employee/employee_pb.js');
33
+ goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
34
+ var prisca_v1_purchase_order_purchase_order_pb = require('../../../prisca/v1/purchase_order/purchase_order_pb.js');
35
+ goog.object.extend(proto, prisca_v1_purchase_order_purchase_order_pb);
36
+ var prisca_v1_good_receipt_good_receipt_pb = require('../../../prisca/v1/good_receipt/good_receipt_pb.js');
37
+ goog.object.extend(proto, prisca_v1_good_receipt_good_receipt_pb);
38
+ var prisca_v1_core_file_upload_file_upload_pb = require('../../../prisca/v1/core/file_upload/file_upload_pb.js');
39
+ goog.object.extend(proto, prisca_v1_core_file_upload_file_upload_pb);
40
+ var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
41
+ goog.object.extend(proto, prisca_v1_core_transaction_builder_transaction_builder_pb);
42
+ goog.exportSymbol('proto.BaseInvoice', null, global);
43
+ goog.exportSymbol('proto.CreateInvoiceReq', null, global);
44
+ goog.exportSymbol('proto.CreateInvoiceRes', null, global);
45
+ goog.exportSymbol('proto.GetInvoiceByIdReq', null, global);
46
+ goog.exportSymbol('proto.GetInvoiceByIdRes', null, global);
47
+ goog.exportSymbol('proto.GetInvoiceDetailRes', null, global);
48
+ goog.exportSymbol('proto.GetInvoiceItemDetailPreload', null, global);
49
+ goog.exportSymbol('proto.GetInvoiceItemPreload', null, global);
50
+ goog.exportSymbol('proto.GetListInvoiceReq', null, global);
51
+ goog.exportSymbol('proto.GetListInvoiceRes', null, global);
52
+ goog.exportSymbol('proto.Invoice', null, global);
53
+ goog.exportSymbol('proto.UpdateInvoiceReq', null, global);
54
+ goog.exportSymbol('proto.UpdateInvoiceRes', null, global);
55
+ /**
56
+ * Generated by JsPbCodeGenerator.
57
+ * @param {Array=} opt_data Optional initial data array, typically from a
58
+ * server response, or constructed directly in Javascript. The array is used
59
+ * in place and becomes part of the constructed object. It is not cloned.
60
+ * If no data is provided, the constructed object will be empty, but still
61
+ * valid.
62
+ * @extends {jspb.Message}
63
+ * @constructor
64
+ */
65
+ proto.BaseInvoice = function(opt_data) {
66
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.BaseInvoice.repeatedFields_, null);
67
+ };
68
+ goog.inherits(proto.BaseInvoice, jspb.Message);
69
+ if (goog.DEBUG && !COMPILED) {
70
+ /**
71
+ * @public
72
+ * @override
73
+ */
74
+ proto.BaseInvoice.displayName = 'proto.BaseInvoice';
75
+ }
76
+ /**
77
+ * Generated by JsPbCodeGenerator.
78
+ * @param {Array=} opt_data Optional initial data array, typically from a
79
+ * server response, or constructed directly in Javascript. The array is used
80
+ * in place and becomes part of the constructed object. It is not cloned.
81
+ * If no data is provided, the constructed object will be empty, but still
82
+ * valid.
83
+ * @extends {jspb.Message}
84
+ * @constructor
85
+ */
86
+ proto.Invoice = function(opt_data) {
87
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Invoice.repeatedFields_, null);
88
+ };
89
+ goog.inherits(proto.Invoice, jspb.Message);
90
+ if (goog.DEBUG && !COMPILED) {
91
+ /**
92
+ * @public
93
+ * @override
94
+ */
95
+ proto.Invoice.displayName = 'proto.Invoice';
96
+ }
97
+ /**
98
+ * Generated by JsPbCodeGenerator.
99
+ * @param {Array=} opt_data Optional initial data array, typically from a
100
+ * server response, or constructed directly in Javascript. The array is used
101
+ * in place and becomes part of the constructed object. It is not cloned.
102
+ * If no data is provided, the constructed object will be empty, but still
103
+ * valid.
104
+ * @extends {jspb.Message}
105
+ * @constructor
106
+ */
107
+ proto.CreateInvoiceReq = function(opt_data) {
108
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
109
+ };
110
+ goog.inherits(proto.CreateInvoiceReq, jspb.Message);
111
+ if (goog.DEBUG && !COMPILED) {
112
+ /**
113
+ * @public
114
+ * @override
115
+ */
116
+ proto.CreateInvoiceReq.displayName = 'proto.CreateInvoiceReq';
117
+ }
118
+ /**
119
+ * Generated by JsPbCodeGenerator.
120
+ * @param {Array=} opt_data Optional initial data array, typically from a
121
+ * server response, or constructed directly in Javascript. The array is used
122
+ * in place and becomes part of the constructed object. It is not cloned.
123
+ * If no data is provided, the constructed object will be empty, but still
124
+ * valid.
125
+ * @extends {jspb.Message}
126
+ * @constructor
127
+ */
128
+ proto.CreateInvoiceRes = function(opt_data) {
129
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
130
+ };
131
+ goog.inherits(proto.CreateInvoiceRes, jspb.Message);
132
+ if (goog.DEBUG && !COMPILED) {
133
+ /**
134
+ * @public
135
+ * @override
136
+ */
137
+ proto.CreateInvoiceRes.displayName = 'proto.CreateInvoiceRes';
138
+ }
139
+ /**
140
+ * Generated by JsPbCodeGenerator.
141
+ * @param {Array=} opt_data Optional initial data array, typically from a
142
+ * server response, or constructed directly in Javascript. The array is used
143
+ * in place and becomes part of the constructed object. It is not cloned.
144
+ * If no data is provided, the constructed object will be empty, but still
145
+ * valid.
146
+ * @extends {jspb.Message}
147
+ * @constructor
148
+ */
149
+ proto.UpdateInvoiceReq = function(opt_data) {
150
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
151
+ };
152
+ goog.inherits(proto.UpdateInvoiceReq, jspb.Message);
153
+ if (goog.DEBUG && !COMPILED) {
154
+ /**
155
+ * @public
156
+ * @override
157
+ */
158
+ proto.UpdateInvoiceReq.displayName = 'proto.UpdateInvoiceReq';
159
+ }
160
+ /**
161
+ * Generated by JsPbCodeGenerator.
162
+ * @param {Array=} opt_data Optional initial data array, typically from a
163
+ * server response, or constructed directly in Javascript. The array is used
164
+ * in place and becomes part of the constructed object. It is not cloned.
165
+ * If no data is provided, the constructed object will be empty, but still
166
+ * valid.
167
+ * @extends {jspb.Message}
168
+ * @constructor
169
+ */
170
+ proto.UpdateInvoiceRes = function(opt_data) {
171
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
172
+ };
173
+ goog.inherits(proto.UpdateInvoiceRes, jspb.Message);
174
+ if (goog.DEBUG && !COMPILED) {
175
+ /**
176
+ * @public
177
+ * @override
178
+ */
179
+ proto.UpdateInvoiceRes.displayName = 'proto.UpdateInvoiceRes';
180
+ }
181
+ /**
182
+ * Generated by JsPbCodeGenerator.
183
+ * @param {Array=} opt_data Optional initial data array, typically from a
184
+ * server response, or constructed directly in Javascript. The array is used
185
+ * in place and becomes part of the constructed object. It is not cloned.
186
+ * If no data is provided, the constructed object will be empty, but still
187
+ * valid.
188
+ * @extends {jspb.Message}
189
+ * @constructor
190
+ */
191
+ proto.GetInvoiceByIdReq = function(opt_data) {
192
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
193
+ };
194
+ goog.inherits(proto.GetInvoiceByIdReq, jspb.Message);
195
+ if (goog.DEBUG && !COMPILED) {
196
+ /**
197
+ * @public
198
+ * @override
199
+ */
200
+ proto.GetInvoiceByIdReq.displayName = 'proto.GetInvoiceByIdReq';
201
+ }
202
+ /**
203
+ * Generated by JsPbCodeGenerator.
204
+ * @param {Array=} opt_data Optional initial data array, typically from a
205
+ * server response, or constructed directly in Javascript. The array is used
206
+ * in place and becomes part of the constructed object. It is not cloned.
207
+ * If no data is provided, the constructed object will be empty, but still
208
+ * valid.
209
+ * @extends {jspb.Message}
210
+ * @constructor
211
+ */
212
+ proto.GetInvoiceByIdRes = function(opt_data) {
213
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
214
+ };
215
+ goog.inherits(proto.GetInvoiceByIdRes, jspb.Message);
216
+ if (goog.DEBUG && !COMPILED) {
217
+ /**
218
+ * @public
219
+ * @override
220
+ */
221
+ proto.GetInvoiceByIdRes.displayName = 'proto.GetInvoiceByIdRes';
222
+ }
223
+ /**
224
+ * Generated by JsPbCodeGenerator.
225
+ * @param {Array=} opt_data Optional initial data array, typically from a
226
+ * server response, or constructed directly in Javascript. The array is used
227
+ * in place and becomes part of the constructed object. It is not cloned.
228
+ * If no data is provided, the constructed object will be empty, but still
229
+ * valid.
230
+ * @extends {jspb.Message}
231
+ * @constructor
232
+ */
233
+ proto.GetInvoiceDetailRes = function(opt_data) {
234
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetInvoiceDetailRes.repeatedFields_, null);
235
+ };
236
+ goog.inherits(proto.GetInvoiceDetailRes, jspb.Message);
237
+ if (goog.DEBUG && !COMPILED) {
238
+ /**
239
+ * @public
240
+ * @override
241
+ */
242
+ proto.GetInvoiceDetailRes.displayName = 'proto.GetInvoiceDetailRes';
243
+ }
244
+ /**
245
+ * Generated by JsPbCodeGenerator.
246
+ * @param {Array=} opt_data Optional initial data array, typically from a
247
+ * server response, or constructed directly in Javascript. The array is used
248
+ * in place and becomes part of the constructed object. It is not cloned.
249
+ * If no data is provided, the constructed object will be empty, but still
250
+ * valid.
251
+ * @extends {jspb.Message}
252
+ * @constructor
253
+ */
254
+ proto.GetInvoiceItemPreload = function(opt_data) {
255
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetInvoiceItemPreload.repeatedFields_, null);
256
+ };
257
+ goog.inherits(proto.GetInvoiceItemPreload, jspb.Message);
258
+ if (goog.DEBUG && !COMPILED) {
259
+ /**
260
+ * @public
261
+ * @override
262
+ */
263
+ proto.GetInvoiceItemPreload.displayName = 'proto.GetInvoiceItemPreload';
264
+ }
265
+ /**
266
+ * Generated by JsPbCodeGenerator.
267
+ * @param {Array=} opt_data Optional initial data array, typically from a
268
+ * server response, or constructed directly in Javascript. The array is used
269
+ * in place and becomes part of the constructed object. It is not cloned.
270
+ * If no data is provided, the constructed object will be empty, but still
271
+ * valid.
272
+ * @extends {jspb.Message}
273
+ * @constructor
274
+ */
275
+ proto.GetInvoiceItemDetailPreload = function(opt_data) {
276
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetInvoiceItemDetailPreload.repeatedFields_, null);
277
+ };
278
+ goog.inherits(proto.GetInvoiceItemDetailPreload, jspb.Message);
279
+ if (goog.DEBUG && !COMPILED) {
280
+ /**
281
+ * @public
282
+ * @override
283
+ */
284
+ proto.GetInvoiceItemDetailPreload.displayName = 'proto.GetInvoiceItemDetailPreload';
285
+ }
286
+ /**
287
+ * Generated by JsPbCodeGenerator.
288
+ * @param {Array=} opt_data Optional initial data array, typically from a
289
+ * server response, or constructed directly in Javascript. The array is used
290
+ * in place and becomes part of the constructed object. It is not cloned.
291
+ * If no data is provided, the constructed object will be empty, but still
292
+ * valid.
293
+ * @extends {jspb.Message}
294
+ * @constructor
295
+ */
296
+ proto.GetListInvoiceReq = function(opt_data) {
297
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
298
+ };
299
+ goog.inherits(proto.GetListInvoiceReq, jspb.Message);
300
+ if (goog.DEBUG && !COMPILED) {
301
+ /**
302
+ * @public
303
+ * @override
304
+ */
305
+ proto.GetListInvoiceReq.displayName = 'proto.GetListInvoiceReq';
306
+ }
307
+ /**
308
+ * Generated by JsPbCodeGenerator.
309
+ * @param {Array=} opt_data Optional initial data array, typically from a
310
+ * server response, or constructed directly in Javascript. The array is used
311
+ * in place and becomes part of the constructed object. It is not cloned.
312
+ * If no data is provided, the constructed object will be empty, but still
313
+ * valid.
314
+ * @extends {jspb.Message}
315
+ * @constructor
316
+ */
317
+ proto.GetListInvoiceRes = function(opt_data) {
318
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListInvoiceRes.repeatedFields_, null);
319
+ };
320
+ goog.inherits(proto.GetListInvoiceRes, jspb.Message);
321
+ if (goog.DEBUG && !COMPILED) {
322
+ /**
323
+ * @public
324
+ * @override
325
+ */
326
+ proto.GetListInvoiceRes.displayName = 'proto.GetListInvoiceRes';
327
+ }
328
+
329
+ /**
330
+ * List of repeated fields within this message type.
331
+ * @private {!Array<number>}
332
+ * @const
333
+ */
334
+ proto.BaseInvoice.repeatedFields_ = [8,9];
335
+
336
+
337
+
338
+ if (jspb.Message.GENERATE_TO_OBJECT) {
339
+ /**
340
+ * Creates an object representation of this proto.
341
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
342
+ * Optional fields that are not set will be set to undefined.
343
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
344
+ * For the list of reserved names please see:
345
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
346
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
347
+ * JSPB instance for transitional soy proto support:
348
+ * http://goto/soy-param-migration
349
+ * @return {!Object}
350
+ */
351
+ proto.BaseInvoice.prototype.toObject = function(opt_includeInstance) {
352
+ return proto.BaseInvoice.toObject(opt_includeInstance, this);
353
+ };
354
+
355
+
356
+ /**
357
+ * Static version of the {@see toObject} method.
358
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
359
+ * the JSPB instance for transitional soy proto support:
360
+ * http://goto/soy-param-migration
361
+ * @param {!proto.BaseInvoice} msg The msg instance to transform.
362
+ * @return {!Object}
363
+ * @suppress {unusedLocalVariables} f is only used for nested messages
364
+ */
365
+ proto.BaseInvoice.toObject = function(includeInstance, msg) {
366
+ var f, obj = {
367
+ purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
368
+ vendorName: jspb.Message.getFieldWithDefault(msg, 2, ""),
369
+ invoiceSubject: jspb.Message.getFieldWithDefault(msg, 3, ""),
370
+ invoiceNumber: jspb.Message.getFieldWithDefault(msg, 4, ""),
371
+ invoiceDate: jspb.Message.getFieldWithDefault(msg, 5, ""),
372
+ plant: jspb.Message.getFieldWithDefault(msg, 6, ""),
373
+ invoiceType: jspb.Message.getFieldWithDefault(msg, 7, ""),
374
+ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
375
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance),
376
+ filesList: jspb.Message.toObjectList(msg.getFilesList(),
377
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
378
+ transactionType: jspb.Message.getFieldWithDefault(msg, 10, ""),
379
+ taxReferences: jspb.Message.getFieldWithDefault(msg, 11, ""),
380
+ status: jspb.Message.getFieldWithDefault(msg, 12, ""),
381
+ remarks: jspb.Message.getFieldWithDefault(msg, 13, "")
382
+ };
383
+
384
+ if (includeInstance) {
385
+ obj.$jspbMessageInstance = msg;
386
+ }
387
+ return obj;
388
+ };
389
+ }
390
+
391
+
392
+ /**
393
+ * Deserializes binary data (in protobuf wire format).
394
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
395
+ * @return {!proto.BaseInvoice}
396
+ */
397
+ proto.BaseInvoice.deserializeBinary = function(bytes) {
398
+ var reader = new jspb.BinaryReader(bytes);
399
+ var msg = new proto.BaseInvoice;
400
+ return proto.BaseInvoice.deserializeBinaryFromReader(msg, reader);
401
+ };
402
+
403
+
404
+ /**
405
+ * Deserializes binary data (in protobuf wire format) from the
406
+ * given reader into the given message object.
407
+ * @param {!proto.BaseInvoice} msg The message object to deserialize into.
408
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
409
+ * @return {!proto.BaseInvoice}
410
+ */
411
+ proto.BaseInvoice.deserializeBinaryFromReader = function(msg, reader) {
412
+ while (reader.nextField()) {
413
+ if (reader.isEndGroup()) {
414
+ break;
415
+ }
416
+ var field = reader.getFieldNumber();
417
+ switch (field) {
418
+ case 1:
419
+ var value = /** @type {string} */ (reader.readString());
420
+ msg.setPurchaseOrderReferencesId(value);
421
+ break;
422
+ case 2:
423
+ var value = /** @type {string} */ (reader.readString());
424
+ msg.setVendorName(value);
425
+ break;
426
+ case 3:
427
+ var value = /** @type {string} */ (reader.readString());
428
+ msg.setInvoiceSubject(value);
429
+ break;
430
+ case 4:
431
+ var value = /** @type {string} */ (reader.readString());
432
+ msg.setInvoiceNumber(value);
433
+ break;
434
+ case 5:
435
+ var value = /** @type {string} */ (reader.readString());
436
+ msg.setInvoiceDate(value);
437
+ break;
438
+ case 6:
439
+ var value = /** @type {string} */ (reader.readString());
440
+ msg.setPlant(value);
441
+ break;
442
+ case 7:
443
+ var value = /** @type {string} */ (reader.readString());
444
+ msg.setInvoiceType(value);
445
+ break;
446
+ case 8:
447
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
448
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
449
+ msg.addItemTransactions(value);
450
+ break;
451
+ case 9:
452
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
453
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
454
+ msg.addFiles(value);
455
+ break;
456
+ case 10:
457
+ var value = /** @type {string} */ (reader.readString());
458
+ msg.setTransactionType(value);
459
+ break;
460
+ case 11:
461
+ var value = /** @type {string} */ (reader.readString());
462
+ msg.setTaxReferences(value);
463
+ break;
464
+ case 12:
465
+ var value = /** @type {string} */ (reader.readString());
466
+ msg.setStatus(value);
467
+ break;
468
+ case 13:
469
+ var value = /** @type {string} */ (reader.readString());
470
+ msg.setRemarks(value);
471
+ break;
472
+ default:
473
+ reader.skipField();
474
+ break;
475
+ }
476
+ }
477
+ return msg;
478
+ };
479
+
480
+
481
+ /**
482
+ * Serializes the message to binary data (in protobuf wire format).
483
+ * @return {!Uint8Array}
484
+ */
485
+ proto.BaseInvoice.prototype.serializeBinary = function() {
486
+ var writer = new jspb.BinaryWriter();
487
+ proto.BaseInvoice.serializeBinaryToWriter(this, writer);
488
+ return writer.getResultBuffer();
489
+ };
490
+
491
+
492
+ /**
493
+ * Serializes the given message to binary data (in protobuf wire
494
+ * format), writing to the given BinaryWriter.
495
+ * @param {!proto.BaseInvoice} message
496
+ * @param {!jspb.BinaryWriter} writer
497
+ * @suppress {unusedLocalVariables} f is only used for nested messages
498
+ */
499
+ proto.BaseInvoice.serializeBinaryToWriter = function(message, writer) {
500
+ var f = undefined;
501
+ f = message.getPurchaseOrderReferencesId();
502
+ if (f.length > 0) {
503
+ writer.writeString(
504
+ 1,
505
+ f
506
+ );
507
+ }
508
+ f = message.getVendorName();
509
+ if (f.length > 0) {
510
+ writer.writeString(
511
+ 2,
512
+ f
513
+ );
514
+ }
515
+ f = message.getInvoiceSubject();
516
+ if (f.length > 0) {
517
+ writer.writeString(
518
+ 3,
519
+ f
520
+ );
521
+ }
522
+ f = message.getInvoiceNumber();
523
+ if (f.length > 0) {
524
+ writer.writeString(
525
+ 4,
526
+ f
527
+ );
528
+ }
529
+ f = message.getInvoiceDate();
530
+ if (f.length > 0) {
531
+ writer.writeString(
532
+ 5,
533
+ f
534
+ );
535
+ }
536
+ f = message.getPlant();
537
+ if (f.length > 0) {
538
+ writer.writeString(
539
+ 6,
540
+ f
541
+ );
542
+ }
543
+ f = message.getInvoiceType();
544
+ if (f.length > 0) {
545
+ writer.writeString(
546
+ 7,
547
+ f
548
+ );
549
+ }
550
+ f = message.getItemTransactionsList();
551
+ if (f.length > 0) {
552
+ writer.writeRepeatedMessage(
553
+ 8,
554
+ f,
555
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
556
+ );
557
+ }
558
+ f = message.getFilesList();
559
+ if (f.length > 0) {
560
+ writer.writeRepeatedMessage(
561
+ 9,
562
+ f,
563
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
564
+ );
565
+ }
566
+ f = message.getTransactionType();
567
+ if (f.length > 0) {
568
+ writer.writeString(
569
+ 10,
570
+ f
571
+ );
572
+ }
573
+ f = message.getTaxReferences();
574
+ if (f.length > 0) {
575
+ writer.writeString(
576
+ 11,
577
+ f
578
+ );
579
+ }
580
+ f = message.getStatus();
581
+ if (f.length > 0) {
582
+ writer.writeString(
583
+ 12,
584
+ f
585
+ );
586
+ }
587
+ f = message.getRemarks();
588
+ if (f.length > 0) {
589
+ writer.writeString(
590
+ 13,
591
+ f
592
+ );
593
+ }
594
+ };
595
+
596
+
597
+ /**
598
+ * optional string purchase_order_references_id = 1;
599
+ * @return {string}
600
+ */
601
+ proto.BaseInvoice.prototype.getPurchaseOrderReferencesId = function() {
602
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
603
+ };
604
+
605
+
606
+ /**
607
+ * @param {string} value
608
+ * @return {!proto.BaseInvoice} returns this
609
+ */
610
+ proto.BaseInvoice.prototype.setPurchaseOrderReferencesId = function(value) {
611
+ return jspb.Message.setProto3StringField(this, 1, value);
612
+ };
613
+
614
+
615
+ /**
616
+ * optional string vendor_name = 2;
617
+ * @return {string}
618
+ */
619
+ proto.BaseInvoice.prototype.getVendorName = function() {
620
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
621
+ };
622
+
623
+
624
+ /**
625
+ * @param {string} value
626
+ * @return {!proto.BaseInvoice} returns this
627
+ */
628
+ proto.BaseInvoice.prototype.setVendorName = function(value) {
629
+ return jspb.Message.setProto3StringField(this, 2, value);
630
+ };
631
+
632
+
633
+ /**
634
+ * optional string invoice_subject = 3;
635
+ * @return {string}
636
+ */
637
+ proto.BaseInvoice.prototype.getInvoiceSubject = function() {
638
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
639
+ };
640
+
641
+
642
+ /**
643
+ * @param {string} value
644
+ * @return {!proto.BaseInvoice} returns this
645
+ */
646
+ proto.BaseInvoice.prototype.setInvoiceSubject = function(value) {
647
+ return jspb.Message.setProto3StringField(this, 3, value);
648
+ };
649
+
650
+
651
+ /**
652
+ * optional string invoice_number = 4;
653
+ * @return {string}
654
+ */
655
+ proto.BaseInvoice.prototype.getInvoiceNumber = function() {
656
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
657
+ };
658
+
659
+
660
+ /**
661
+ * @param {string} value
662
+ * @return {!proto.BaseInvoice} returns this
663
+ */
664
+ proto.BaseInvoice.prototype.setInvoiceNumber = function(value) {
665
+ return jspb.Message.setProto3StringField(this, 4, value);
666
+ };
667
+
668
+
669
+ /**
670
+ * optional string invoice_date = 5;
671
+ * @return {string}
672
+ */
673
+ proto.BaseInvoice.prototype.getInvoiceDate = function() {
674
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
675
+ };
676
+
677
+
678
+ /**
679
+ * @param {string} value
680
+ * @return {!proto.BaseInvoice} returns this
681
+ */
682
+ proto.BaseInvoice.prototype.setInvoiceDate = function(value) {
683
+ return jspb.Message.setProto3StringField(this, 5, value);
684
+ };
685
+
686
+
687
+ /**
688
+ * optional string plant = 6;
689
+ * @return {string}
690
+ */
691
+ proto.BaseInvoice.prototype.getPlant = function() {
692
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
693
+ };
694
+
695
+
696
+ /**
697
+ * @param {string} value
698
+ * @return {!proto.BaseInvoice} returns this
699
+ */
700
+ proto.BaseInvoice.prototype.setPlant = function(value) {
701
+ return jspb.Message.setProto3StringField(this, 6, value);
702
+ };
703
+
704
+
705
+ /**
706
+ * optional string invoice_type = 7;
707
+ * @return {string}
708
+ */
709
+ proto.BaseInvoice.prototype.getInvoiceType = function() {
710
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
711
+ };
712
+
713
+
714
+ /**
715
+ * @param {string} value
716
+ * @return {!proto.BaseInvoice} returns this
717
+ */
718
+ proto.BaseInvoice.prototype.setInvoiceType = function(value) {
719
+ return jspb.Message.setProto3StringField(this, 7, value);
720
+ };
721
+
722
+
723
+ /**
724
+ * repeated ItemTransaction item_transactions = 8;
725
+ * @return {!Array<!proto.ItemTransaction>}
726
+ */
727
+ proto.BaseInvoice.prototype.getItemTransactionsList = function() {
728
+ return /** @type{!Array<!proto.ItemTransaction>} */ (
729
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 8));
730
+ };
731
+
732
+
733
+ /**
734
+ * @param {!Array<!proto.ItemTransaction>} value
735
+ * @return {!proto.BaseInvoice} returns this
736
+ */
737
+ proto.BaseInvoice.prototype.setItemTransactionsList = function(value) {
738
+ return jspb.Message.setRepeatedWrapperField(this, 8, value);
739
+ };
740
+
741
+
742
+ /**
743
+ * @param {!proto.ItemTransaction=} opt_value
744
+ * @param {number=} opt_index
745
+ * @return {!proto.ItemTransaction}
746
+ */
747
+ proto.BaseInvoice.prototype.addItemTransactions = function(opt_value, opt_index) {
748
+ return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.ItemTransaction, opt_index);
749
+ };
750
+
751
+
752
+ /**
753
+ * Clears the list making it empty but non-null.
754
+ * @return {!proto.BaseInvoice} returns this
755
+ */
756
+ proto.BaseInvoice.prototype.clearItemTransactionsList = function() {
757
+ return this.setItemTransactionsList([]);
758
+ };
759
+
760
+
761
+ /**
762
+ * repeated FileUploadReferencesReq files = 9;
763
+ * @return {!Array<!proto.FileUploadReferencesReq>}
764
+ */
765
+ proto.BaseInvoice.prototype.getFilesList = function() {
766
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
767
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 9));
768
+ };
769
+
770
+
771
+ /**
772
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
773
+ * @return {!proto.BaseInvoice} returns this
774
+ */
775
+ proto.BaseInvoice.prototype.setFilesList = function(value) {
776
+ return jspb.Message.setRepeatedWrapperField(this, 9, value);
777
+ };
778
+
779
+
780
+ /**
781
+ * @param {!proto.FileUploadReferencesReq=} opt_value
782
+ * @param {number=} opt_index
783
+ * @return {!proto.FileUploadReferencesReq}
784
+ */
785
+ proto.BaseInvoice.prototype.addFiles = function(opt_value, opt_index) {
786
+ return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.FileUploadReferencesReq, opt_index);
787
+ };
788
+
789
+
790
+ /**
791
+ * Clears the list making it empty but non-null.
792
+ * @return {!proto.BaseInvoice} returns this
793
+ */
794
+ proto.BaseInvoice.prototype.clearFilesList = function() {
795
+ return this.setFilesList([]);
796
+ };
797
+
798
+
799
+ /**
800
+ * optional string transaction_type = 10;
801
+ * @return {string}
802
+ */
803
+ proto.BaseInvoice.prototype.getTransactionType = function() {
804
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
805
+ };
806
+
807
+
808
+ /**
809
+ * @param {string} value
810
+ * @return {!proto.BaseInvoice} returns this
811
+ */
812
+ proto.BaseInvoice.prototype.setTransactionType = function(value) {
813
+ return jspb.Message.setProto3StringField(this, 10, value);
814
+ };
815
+
816
+
817
+ /**
818
+ * optional string tax_references = 11;
819
+ * @return {string}
820
+ */
821
+ proto.BaseInvoice.prototype.getTaxReferences = function() {
822
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
823
+ };
824
+
825
+
826
+ /**
827
+ * @param {string} value
828
+ * @return {!proto.BaseInvoice} returns this
829
+ */
830
+ proto.BaseInvoice.prototype.setTaxReferences = function(value) {
831
+ return jspb.Message.setProto3StringField(this, 11, value);
832
+ };
833
+
834
+
835
+ /**
836
+ * optional string status = 12;
837
+ * @return {string}
838
+ */
839
+ proto.BaseInvoice.prototype.getStatus = function() {
840
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
841
+ };
842
+
843
+
844
+ /**
845
+ * @param {string} value
846
+ * @return {!proto.BaseInvoice} returns this
847
+ */
848
+ proto.BaseInvoice.prototype.setStatus = function(value) {
849
+ return jspb.Message.setProto3StringField(this, 12, value);
850
+ };
851
+
852
+
853
+ /**
854
+ * optional string remarks = 13;
855
+ * @return {string}
856
+ */
857
+ proto.BaseInvoice.prototype.getRemarks = function() {
858
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
859
+ };
860
+
861
+
862
+ /**
863
+ * @param {string} value
864
+ * @return {!proto.BaseInvoice} returns this
865
+ */
866
+ proto.BaseInvoice.prototype.setRemarks = function(value) {
867
+ return jspb.Message.setProto3StringField(this, 13, value);
868
+ };
869
+
870
+
871
+
872
+ /**
873
+ * List of repeated fields within this message type.
874
+ * @private {!Array<number>}
875
+ * @const
876
+ */
877
+ proto.Invoice.repeatedFields_ = [26,29,31];
878
+
879
+
880
+
881
+ if (jspb.Message.GENERATE_TO_OBJECT) {
882
+ /**
883
+ * Creates an object representation of this proto.
884
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
885
+ * Optional fields that are not set will be set to undefined.
886
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
887
+ * For the list of reserved names please see:
888
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
889
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
890
+ * JSPB instance for transitional soy proto support:
891
+ * http://goto/soy-param-migration
892
+ * @return {!Object}
893
+ */
894
+ proto.Invoice.prototype.toObject = function(opt_includeInstance) {
895
+ return proto.Invoice.toObject(opt_includeInstance, this);
896
+ };
897
+
898
+
899
+ /**
900
+ * Static version of the {@see toObject} method.
901
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
902
+ * the JSPB instance for transitional soy proto support:
903
+ * http://goto/soy-param-migration
904
+ * @param {!proto.Invoice} msg The msg instance to transform.
905
+ * @return {!Object}
906
+ * @suppress {unusedLocalVariables} f is only used for nested messages
907
+ */
908
+ proto.Invoice.toObject = function(includeInstance, msg) {
909
+ var f, obj = {
910
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
911
+ purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
912
+ goodReceiptReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
913
+ vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
914
+ invoiceSubject: jspb.Message.getFieldWithDefault(msg, 5, ""),
915
+ invoiceType: jspb.Message.getFieldWithDefault(msg, 6, ""),
916
+ plant: jspb.Message.getFieldWithDefault(msg, 7, ""),
917
+ invoiceDate: jspb.Message.getFieldWithDefault(msg, 8, ""),
918
+ invoiceNumber: jspb.Message.getFieldWithDefault(msg, 9, ""),
919
+ documentNumber: jspb.Message.getFieldWithDefault(msg, 10, ""),
920
+ remarks: jspb.Message.getFieldWithDefault(msg, 11, ""),
921
+ taxReferences: jspb.Message.getFieldWithDefault(msg, 12, ""),
922
+ externalNumber: jspb.Message.getFieldWithDefault(msg, 13, ""),
923
+ goodReceiptNumber: jspb.Message.getFieldWithDefault(msg, 14, ""),
924
+ purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 15, ""),
925
+ referencesId: jspb.Message.getFieldWithDefault(msg, 16, ""),
926
+ status: jspb.Message.getFieldWithDefault(msg, 17, ""),
927
+ createdAt: jspb.Message.getFieldWithDefault(msg, 18, ""),
928
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 19, ""),
929
+ createdBy: jspb.Message.getFieldWithDefault(msg, 20, ""),
930
+ updateBy: jspb.Message.getFieldWithDefault(msg, 21, ""),
931
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 22, ""),
932
+ groupReferences: jspb.Message.getFieldWithDefault(msg, 23, ""),
933
+ isExpired: jspb.Message.getBooleanFieldWithDefault(msg, 24, false),
934
+ fileIds: jspb.Message.getFieldWithDefault(msg, 25, ""),
935
+ filesList: jspb.Message.toObjectList(msg.getFilesList(),
936
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
937
+ company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
938
+ purchaseOrder: (f = msg.getPurchaseOrder()) && prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.toObject(includeInstance, f),
939
+ goodReceiptsList: jspb.Message.toObjectList(msg.getGoodReceiptsList(),
940
+ prisca_v1_good_receipt_good_receipt_pb.GoodReceipt.toObject, includeInstance),
941
+ vendor: (f = msg.getVendor()) && prisca_v1_vendor_domain_vendor_domain_pb.Vendor.toObject(includeInstance, f),
942
+ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
943
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance),
944
+ createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
945
+ updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
946
+ vendorName: jspb.Message.getFieldWithDefault(msg, 34, "")
947
+ };
948
+
949
+ if (includeInstance) {
950
+ obj.$jspbMessageInstance = msg;
951
+ }
952
+ return obj;
953
+ };
954
+ }
955
+
956
+
957
+ /**
958
+ * Deserializes binary data (in protobuf wire format).
959
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
960
+ * @return {!proto.Invoice}
961
+ */
962
+ proto.Invoice.deserializeBinary = function(bytes) {
963
+ var reader = new jspb.BinaryReader(bytes);
964
+ var msg = new proto.Invoice;
965
+ return proto.Invoice.deserializeBinaryFromReader(msg, reader);
966
+ };
967
+
968
+
969
+ /**
970
+ * Deserializes binary data (in protobuf wire format) from the
971
+ * given reader into the given message object.
972
+ * @param {!proto.Invoice} msg The message object to deserialize into.
973
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
974
+ * @return {!proto.Invoice}
975
+ */
976
+ proto.Invoice.deserializeBinaryFromReader = function(msg, reader) {
977
+ while (reader.nextField()) {
978
+ if (reader.isEndGroup()) {
979
+ break;
980
+ }
981
+ var field = reader.getFieldNumber();
982
+ switch (field) {
983
+ case 1:
984
+ var value = /** @type {number} */ (reader.readInt64());
985
+ msg.setId(value);
986
+ break;
987
+ case 2:
988
+ var value = /** @type {string} */ (reader.readString());
989
+ msg.setPurchaseOrderReferencesId(value);
990
+ break;
991
+ case 3:
992
+ var value = /** @type {string} */ (reader.readString());
993
+ msg.setGoodReceiptReferencesId(value);
994
+ break;
995
+ case 4:
996
+ var value = /** @type {string} */ (reader.readString());
997
+ msg.setVendorReferencesId(value);
998
+ break;
999
+ case 5:
1000
+ var value = /** @type {string} */ (reader.readString());
1001
+ msg.setInvoiceSubject(value);
1002
+ break;
1003
+ case 6:
1004
+ var value = /** @type {string} */ (reader.readString());
1005
+ msg.setInvoiceType(value);
1006
+ break;
1007
+ case 7:
1008
+ var value = /** @type {string} */ (reader.readString());
1009
+ msg.setPlant(value);
1010
+ break;
1011
+ case 8:
1012
+ var value = /** @type {string} */ (reader.readString());
1013
+ msg.setInvoiceDate(value);
1014
+ break;
1015
+ case 9:
1016
+ var value = /** @type {string} */ (reader.readString());
1017
+ msg.setInvoiceNumber(value);
1018
+ break;
1019
+ case 10:
1020
+ var value = /** @type {string} */ (reader.readString());
1021
+ msg.setDocumentNumber(value);
1022
+ break;
1023
+ case 11:
1024
+ var value = /** @type {string} */ (reader.readString());
1025
+ msg.setRemarks(value);
1026
+ break;
1027
+ case 12:
1028
+ var value = /** @type {string} */ (reader.readString());
1029
+ msg.setTaxReferences(value);
1030
+ break;
1031
+ case 13:
1032
+ var value = /** @type {string} */ (reader.readString());
1033
+ msg.setExternalNumber(value);
1034
+ break;
1035
+ case 14:
1036
+ var value = /** @type {string} */ (reader.readString());
1037
+ msg.setGoodReceiptNumber(value);
1038
+ break;
1039
+ case 15:
1040
+ var value = /** @type {string} */ (reader.readString());
1041
+ msg.setPurchaseOrderNumber(value);
1042
+ break;
1043
+ case 16:
1044
+ var value = /** @type {string} */ (reader.readString());
1045
+ msg.setReferencesId(value);
1046
+ break;
1047
+ case 17:
1048
+ var value = /** @type {string} */ (reader.readString());
1049
+ msg.setStatus(value);
1050
+ break;
1051
+ case 18:
1052
+ var value = /** @type {string} */ (reader.readString());
1053
+ msg.setCreatedAt(value);
1054
+ break;
1055
+ case 19:
1056
+ var value = /** @type {string} */ (reader.readString());
1057
+ msg.setUpdatedAt(value);
1058
+ break;
1059
+ case 20:
1060
+ var value = /** @type {string} */ (reader.readString());
1061
+ msg.setCreatedBy(value);
1062
+ break;
1063
+ case 21:
1064
+ var value = /** @type {string} */ (reader.readString());
1065
+ msg.setUpdateBy(value);
1066
+ break;
1067
+ case 22:
1068
+ var value = /** @type {string} */ (reader.readString());
1069
+ msg.setCompaniesReferencesId(value);
1070
+ break;
1071
+ case 23:
1072
+ var value = /** @type {string} */ (reader.readString());
1073
+ msg.setGroupReferences(value);
1074
+ break;
1075
+ case 24:
1076
+ var value = /** @type {boolean} */ (reader.readBool());
1077
+ msg.setIsExpired(value);
1078
+ break;
1079
+ case 25:
1080
+ var value = /** @type {string} */ (reader.readString());
1081
+ msg.setFileIds(value);
1082
+ break;
1083
+ case 26:
1084
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
1085
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
1086
+ msg.addFiles(value);
1087
+ break;
1088
+ case 27:
1089
+ var value = new prisca_v1_core_company_company_pb.Company;
1090
+ reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
1091
+ msg.setCompany(value);
1092
+ break;
1093
+ case 28:
1094
+ var value = new prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder;
1095
+ reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.deserializeBinaryFromReader);
1096
+ msg.setPurchaseOrder(value);
1097
+ break;
1098
+ case 29:
1099
+ var value = new prisca_v1_good_receipt_good_receipt_pb.GoodReceipt;
1100
+ reader.readMessage(value,prisca_v1_good_receipt_good_receipt_pb.GoodReceipt.deserializeBinaryFromReader);
1101
+ msg.addGoodReceipts(value);
1102
+ break;
1103
+ case 30:
1104
+ var value = new prisca_v1_vendor_domain_vendor_domain_pb.Vendor;
1105
+ reader.readMessage(value,prisca_v1_vendor_domain_vendor_domain_pb.Vendor.deserializeBinaryFromReader);
1106
+ msg.setVendor(value);
1107
+ break;
1108
+ case 31:
1109
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
1110
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
1111
+ msg.addItemTransactions(value);
1112
+ break;
1113
+ case 32:
1114
+ var value = new prisca_v1_core_employee_employee_pb.Employee;
1115
+ reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
1116
+ msg.setCreatedByEmployee(value);
1117
+ break;
1118
+ case 33:
1119
+ var value = new prisca_v1_core_employee_employee_pb.Employee;
1120
+ reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
1121
+ msg.setUpdatedByEmployee(value);
1122
+ break;
1123
+ case 34:
1124
+ var value = /** @type {string} */ (reader.readString());
1125
+ msg.setVendorName(value);
1126
+ break;
1127
+ default:
1128
+ reader.skipField();
1129
+ break;
1130
+ }
1131
+ }
1132
+ return msg;
1133
+ };
1134
+
1135
+
1136
+ /**
1137
+ * Serializes the message to binary data (in protobuf wire format).
1138
+ * @return {!Uint8Array}
1139
+ */
1140
+ proto.Invoice.prototype.serializeBinary = function() {
1141
+ var writer = new jspb.BinaryWriter();
1142
+ proto.Invoice.serializeBinaryToWriter(this, writer);
1143
+ return writer.getResultBuffer();
1144
+ };
1145
+
1146
+
1147
+ /**
1148
+ * Serializes the given message to binary data (in protobuf wire
1149
+ * format), writing to the given BinaryWriter.
1150
+ * @param {!proto.Invoice} message
1151
+ * @param {!jspb.BinaryWriter} writer
1152
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1153
+ */
1154
+ proto.Invoice.serializeBinaryToWriter = function(message, writer) {
1155
+ var f = undefined;
1156
+ f = message.getId();
1157
+ if (f !== 0) {
1158
+ writer.writeInt64(
1159
+ 1,
1160
+ f
1161
+ );
1162
+ }
1163
+ f = message.getPurchaseOrderReferencesId();
1164
+ if (f.length > 0) {
1165
+ writer.writeString(
1166
+ 2,
1167
+ f
1168
+ );
1169
+ }
1170
+ f = message.getGoodReceiptReferencesId();
1171
+ if (f.length > 0) {
1172
+ writer.writeString(
1173
+ 3,
1174
+ f
1175
+ );
1176
+ }
1177
+ f = message.getVendorReferencesId();
1178
+ if (f.length > 0) {
1179
+ writer.writeString(
1180
+ 4,
1181
+ f
1182
+ );
1183
+ }
1184
+ f = message.getInvoiceSubject();
1185
+ if (f.length > 0) {
1186
+ writer.writeString(
1187
+ 5,
1188
+ f
1189
+ );
1190
+ }
1191
+ f = message.getInvoiceType();
1192
+ if (f.length > 0) {
1193
+ writer.writeString(
1194
+ 6,
1195
+ f
1196
+ );
1197
+ }
1198
+ f = message.getPlant();
1199
+ if (f.length > 0) {
1200
+ writer.writeString(
1201
+ 7,
1202
+ f
1203
+ );
1204
+ }
1205
+ f = message.getInvoiceDate();
1206
+ if (f.length > 0) {
1207
+ writer.writeString(
1208
+ 8,
1209
+ f
1210
+ );
1211
+ }
1212
+ f = message.getInvoiceNumber();
1213
+ if (f.length > 0) {
1214
+ writer.writeString(
1215
+ 9,
1216
+ f
1217
+ );
1218
+ }
1219
+ f = message.getDocumentNumber();
1220
+ if (f.length > 0) {
1221
+ writer.writeString(
1222
+ 10,
1223
+ f
1224
+ );
1225
+ }
1226
+ f = message.getRemarks();
1227
+ if (f.length > 0) {
1228
+ writer.writeString(
1229
+ 11,
1230
+ f
1231
+ );
1232
+ }
1233
+ f = message.getTaxReferences();
1234
+ if (f.length > 0) {
1235
+ writer.writeString(
1236
+ 12,
1237
+ f
1238
+ );
1239
+ }
1240
+ f = message.getExternalNumber();
1241
+ if (f.length > 0) {
1242
+ writer.writeString(
1243
+ 13,
1244
+ f
1245
+ );
1246
+ }
1247
+ f = message.getGoodReceiptNumber();
1248
+ if (f.length > 0) {
1249
+ writer.writeString(
1250
+ 14,
1251
+ f
1252
+ );
1253
+ }
1254
+ f = message.getPurchaseOrderNumber();
1255
+ if (f.length > 0) {
1256
+ writer.writeString(
1257
+ 15,
1258
+ f
1259
+ );
1260
+ }
1261
+ f = message.getReferencesId();
1262
+ if (f.length > 0) {
1263
+ writer.writeString(
1264
+ 16,
1265
+ f
1266
+ );
1267
+ }
1268
+ f = message.getStatus();
1269
+ if (f.length > 0) {
1270
+ writer.writeString(
1271
+ 17,
1272
+ f
1273
+ );
1274
+ }
1275
+ f = message.getCreatedAt();
1276
+ if (f.length > 0) {
1277
+ writer.writeString(
1278
+ 18,
1279
+ f
1280
+ );
1281
+ }
1282
+ f = message.getUpdatedAt();
1283
+ if (f.length > 0) {
1284
+ writer.writeString(
1285
+ 19,
1286
+ f
1287
+ );
1288
+ }
1289
+ f = message.getCreatedBy();
1290
+ if (f.length > 0) {
1291
+ writer.writeString(
1292
+ 20,
1293
+ f
1294
+ );
1295
+ }
1296
+ f = message.getUpdateBy();
1297
+ if (f.length > 0) {
1298
+ writer.writeString(
1299
+ 21,
1300
+ f
1301
+ );
1302
+ }
1303
+ f = message.getCompaniesReferencesId();
1304
+ if (f.length > 0) {
1305
+ writer.writeString(
1306
+ 22,
1307
+ f
1308
+ );
1309
+ }
1310
+ f = message.getGroupReferences();
1311
+ if (f.length > 0) {
1312
+ writer.writeString(
1313
+ 23,
1314
+ f
1315
+ );
1316
+ }
1317
+ f = message.getIsExpired();
1318
+ if (f) {
1319
+ writer.writeBool(
1320
+ 24,
1321
+ f
1322
+ );
1323
+ }
1324
+ f = message.getFileIds();
1325
+ if (f.length > 0) {
1326
+ writer.writeString(
1327
+ 25,
1328
+ f
1329
+ );
1330
+ }
1331
+ f = message.getFilesList();
1332
+ if (f.length > 0) {
1333
+ writer.writeRepeatedMessage(
1334
+ 26,
1335
+ f,
1336
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
1337
+ );
1338
+ }
1339
+ f = message.getCompany();
1340
+ if (f != null) {
1341
+ writer.writeMessage(
1342
+ 27,
1343
+ f,
1344
+ prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
1345
+ );
1346
+ }
1347
+ f = message.getPurchaseOrder();
1348
+ if (f != null) {
1349
+ writer.writeMessage(
1350
+ 28,
1351
+ f,
1352
+ prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.serializeBinaryToWriter
1353
+ );
1354
+ }
1355
+ f = message.getGoodReceiptsList();
1356
+ if (f.length > 0) {
1357
+ writer.writeRepeatedMessage(
1358
+ 29,
1359
+ f,
1360
+ prisca_v1_good_receipt_good_receipt_pb.GoodReceipt.serializeBinaryToWriter
1361
+ );
1362
+ }
1363
+ f = message.getVendor();
1364
+ if (f != null) {
1365
+ writer.writeMessage(
1366
+ 30,
1367
+ f,
1368
+ prisca_v1_vendor_domain_vendor_domain_pb.Vendor.serializeBinaryToWriter
1369
+ );
1370
+ }
1371
+ f = message.getItemTransactionsList();
1372
+ if (f.length > 0) {
1373
+ writer.writeRepeatedMessage(
1374
+ 31,
1375
+ f,
1376
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
1377
+ );
1378
+ }
1379
+ f = message.getCreatedByEmployee();
1380
+ if (f != null) {
1381
+ writer.writeMessage(
1382
+ 32,
1383
+ f,
1384
+ prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
1385
+ );
1386
+ }
1387
+ f = message.getUpdatedByEmployee();
1388
+ if (f != null) {
1389
+ writer.writeMessage(
1390
+ 33,
1391
+ f,
1392
+ prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
1393
+ );
1394
+ }
1395
+ f = message.getVendorName();
1396
+ if (f.length > 0) {
1397
+ writer.writeString(
1398
+ 34,
1399
+ f
1400
+ );
1401
+ }
1402
+ };
1403
+
1404
+
1405
+ /**
1406
+ * optional int64 id = 1;
1407
+ * @return {number}
1408
+ */
1409
+ proto.Invoice.prototype.getId = function() {
1410
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1411
+ };
1412
+
1413
+
1414
+ /**
1415
+ * @param {number} value
1416
+ * @return {!proto.Invoice} returns this
1417
+ */
1418
+ proto.Invoice.prototype.setId = function(value) {
1419
+ return jspb.Message.setProto3IntField(this, 1, value);
1420
+ };
1421
+
1422
+
1423
+ /**
1424
+ * optional string purchase_order_references_id = 2;
1425
+ * @return {string}
1426
+ */
1427
+ proto.Invoice.prototype.getPurchaseOrderReferencesId = function() {
1428
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1429
+ };
1430
+
1431
+
1432
+ /**
1433
+ * @param {string} value
1434
+ * @return {!proto.Invoice} returns this
1435
+ */
1436
+ proto.Invoice.prototype.setPurchaseOrderReferencesId = function(value) {
1437
+ return jspb.Message.setProto3StringField(this, 2, value);
1438
+ };
1439
+
1440
+
1441
+ /**
1442
+ * optional string good_receipt_references_id = 3;
1443
+ * @return {string}
1444
+ */
1445
+ proto.Invoice.prototype.getGoodReceiptReferencesId = function() {
1446
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1447
+ };
1448
+
1449
+
1450
+ /**
1451
+ * @param {string} value
1452
+ * @return {!proto.Invoice} returns this
1453
+ */
1454
+ proto.Invoice.prototype.setGoodReceiptReferencesId = function(value) {
1455
+ return jspb.Message.setProto3StringField(this, 3, value);
1456
+ };
1457
+
1458
+
1459
+ /**
1460
+ * optional string vendor_references_id = 4;
1461
+ * @return {string}
1462
+ */
1463
+ proto.Invoice.prototype.getVendorReferencesId = function() {
1464
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1465
+ };
1466
+
1467
+
1468
+ /**
1469
+ * @param {string} value
1470
+ * @return {!proto.Invoice} returns this
1471
+ */
1472
+ proto.Invoice.prototype.setVendorReferencesId = function(value) {
1473
+ return jspb.Message.setProto3StringField(this, 4, value);
1474
+ };
1475
+
1476
+
1477
+ /**
1478
+ * optional string invoice_subject = 5;
1479
+ * @return {string}
1480
+ */
1481
+ proto.Invoice.prototype.getInvoiceSubject = function() {
1482
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1483
+ };
1484
+
1485
+
1486
+ /**
1487
+ * @param {string} value
1488
+ * @return {!proto.Invoice} returns this
1489
+ */
1490
+ proto.Invoice.prototype.setInvoiceSubject = function(value) {
1491
+ return jspb.Message.setProto3StringField(this, 5, value);
1492
+ };
1493
+
1494
+
1495
+ /**
1496
+ * optional string invoice_type = 6;
1497
+ * @return {string}
1498
+ */
1499
+ proto.Invoice.prototype.getInvoiceType = function() {
1500
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1501
+ };
1502
+
1503
+
1504
+ /**
1505
+ * @param {string} value
1506
+ * @return {!proto.Invoice} returns this
1507
+ */
1508
+ proto.Invoice.prototype.setInvoiceType = function(value) {
1509
+ return jspb.Message.setProto3StringField(this, 6, value);
1510
+ };
1511
+
1512
+
1513
+ /**
1514
+ * optional string plant = 7;
1515
+ * @return {string}
1516
+ */
1517
+ proto.Invoice.prototype.getPlant = function() {
1518
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1519
+ };
1520
+
1521
+
1522
+ /**
1523
+ * @param {string} value
1524
+ * @return {!proto.Invoice} returns this
1525
+ */
1526
+ proto.Invoice.prototype.setPlant = function(value) {
1527
+ return jspb.Message.setProto3StringField(this, 7, value);
1528
+ };
1529
+
1530
+
1531
+ /**
1532
+ * optional string invoice_date = 8;
1533
+ * @return {string}
1534
+ */
1535
+ proto.Invoice.prototype.getInvoiceDate = function() {
1536
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1537
+ };
1538
+
1539
+
1540
+ /**
1541
+ * @param {string} value
1542
+ * @return {!proto.Invoice} returns this
1543
+ */
1544
+ proto.Invoice.prototype.setInvoiceDate = function(value) {
1545
+ return jspb.Message.setProto3StringField(this, 8, value);
1546
+ };
1547
+
1548
+
1549
+ /**
1550
+ * optional string invoice_number = 9;
1551
+ * @return {string}
1552
+ */
1553
+ proto.Invoice.prototype.getInvoiceNumber = function() {
1554
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1555
+ };
1556
+
1557
+
1558
+ /**
1559
+ * @param {string} value
1560
+ * @return {!proto.Invoice} returns this
1561
+ */
1562
+ proto.Invoice.prototype.setInvoiceNumber = function(value) {
1563
+ return jspb.Message.setProto3StringField(this, 9, value);
1564
+ };
1565
+
1566
+
1567
+ /**
1568
+ * optional string document_number = 10;
1569
+ * @return {string}
1570
+ */
1571
+ proto.Invoice.prototype.getDocumentNumber = function() {
1572
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1573
+ };
1574
+
1575
+
1576
+ /**
1577
+ * @param {string} value
1578
+ * @return {!proto.Invoice} returns this
1579
+ */
1580
+ proto.Invoice.prototype.setDocumentNumber = function(value) {
1581
+ return jspb.Message.setProto3StringField(this, 10, value);
1582
+ };
1583
+
1584
+
1585
+ /**
1586
+ * optional string remarks = 11;
1587
+ * @return {string}
1588
+ */
1589
+ proto.Invoice.prototype.getRemarks = function() {
1590
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1591
+ };
1592
+
1593
+
1594
+ /**
1595
+ * @param {string} value
1596
+ * @return {!proto.Invoice} returns this
1597
+ */
1598
+ proto.Invoice.prototype.setRemarks = function(value) {
1599
+ return jspb.Message.setProto3StringField(this, 11, value);
1600
+ };
1601
+
1602
+
1603
+ /**
1604
+ * optional string tax_references = 12;
1605
+ * @return {string}
1606
+ */
1607
+ proto.Invoice.prototype.getTaxReferences = function() {
1608
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
1609
+ };
1610
+
1611
+
1612
+ /**
1613
+ * @param {string} value
1614
+ * @return {!proto.Invoice} returns this
1615
+ */
1616
+ proto.Invoice.prototype.setTaxReferences = function(value) {
1617
+ return jspb.Message.setProto3StringField(this, 12, value);
1618
+ };
1619
+
1620
+
1621
+ /**
1622
+ * optional string external_number = 13;
1623
+ * @return {string}
1624
+ */
1625
+ proto.Invoice.prototype.getExternalNumber = function() {
1626
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
1627
+ };
1628
+
1629
+
1630
+ /**
1631
+ * @param {string} value
1632
+ * @return {!proto.Invoice} returns this
1633
+ */
1634
+ proto.Invoice.prototype.setExternalNumber = function(value) {
1635
+ return jspb.Message.setProto3StringField(this, 13, value);
1636
+ };
1637
+
1638
+
1639
+ /**
1640
+ * optional string good_receipt_number = 14;
1641
+ * @return {string}
1642
+ */
1643
+ proto.Invoice.prototype.getGoodReceiptNumber = function() {
1644
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
1645
+ };
1646
+
1647
+
1648
+ /**
1649
+ * @param {string} value
1650
+ * @return {!proto.Invoice} returns this
1651
+ */
1652
+ proto.Invoice.prototype.setGoodReceiptNumber = function(value) {
1653
+ return jspb.Message.setProto3StringField(this, 14, value);
1654
+ };
1655
+
1656
+
1657
+ /**
1658
+ * optional string purchase_order_number = 15;
1659
+ * @return {string}
1660
+ */
1661
+ proto.Invoice.prototype.getPurchaseOrderNumber = function() {
1662
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
1663
+ };
1664
+
1665
+
1666
+ /**
1667
+ * @param {string} value
1668
+ * @return {!proto.Invoice} returns this
1669
+ */
1670
+ proto.Invoice.prototype.setPurchaseOrderNumber = function(value) {
1671
+ return jspb.Message.setProto3StringField(this, 15, value);
1672
+ };
1673
+
1674
+
1675
+ /**
1676
+ * optional string references_id = 16;
1677
+ * @return {string}
1678
+ */
1679
+ proto.Invoice.prototype.getReferencesId = function() {
1680
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
1681
+ };
1682
+
1683
+
1684
+ /**
1685
+ * @param {string} value
1686
+ * @return {!proto.Invoice} returns this
1687
+ */
1688
+ proto.Invoice.prototype.setReferencesId = function(value) {
1689
+ return jspb.Message.setProto3StringField(this, 16, value);
1690
+ };
1691
+
1692
+
1693
+ /**
1694
+ * optional string status = 17;
1695
+ * @return {string}
1696
+ */
1697
+ proto.Invoice.prototype.getStatus = function() {
1698
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
1699
+ };
1700
+
1701
+
1702
+ /**
1703
+ * @param {string} value
1704
+ * @return {!proto.Invoice} returns this
1705
+ */
1706
+ proto.Invoice.prototype.setStatus = function(value) {
1707
+ return jspb.Message.setProto3StringField(this, 17, value);
1708
+ };
1709
+
1710
+
1711
+ /**
1712
+ * optional string created_at = 18;
1713
+ * @return {string}
1714
+ */
1715
+ proto.Invoice.prototype.getCreatedAt = function() {
1716
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
1717
+ };
1718
+
1719
+
1720
+ /**
1721
+ * @param {string} value
1722
+ * @return {!proto.Invoice} returns this
1723
+ */
1724
+ proto.Invoice.prototype.setCreatedAt = function(value) {
1725
+ return jspb.Message.setProto3StringField(this, 18, value);
1726
+ };
1727
+
1728
+
1729
+ /**
1730
+ * optional string updated_at = 19;
1731
+ * @return {string}
1732
+ */
1733
+ proto.Invoice.prototype.getUpdatedAt = function() {
1734
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
1735
+ };
1736
+
1737
+
1738
+ /**
1739
+ * @param {string} value
1740
+ * @return {!proto.Invoice} returns this
1741
+ */
1742
+ proto.Invoice.prototype.setUpdatedAt = function(value) {
1743
+ return jspb.Message.setProto3StringField(this, 19, value);
1744
+ };
1745
+
1746
+
1747
+ /**
1748
+ * optional string created_by = 20;
1749
+ * @return {string}
1750
+ */
1751
+ proto.Invoice.prototype.getCreatedBy = function() {
1752
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
1753
+ };
1754
+
1755
+
1756
+ /**
1757
+ * @param {string} value
1758
+ * @return {!proto.Invoice} returns this
1759
+ */
1760
+ proto.Invoice.prototype.setCreatedBy = function(value) {
1761
+ return jspb.Message.setProto3StringField(this, 20, value);
1762
+ };
1763
+
1764
+
1765
+ /**
1766
+ * optional string update_by = 21;
1767
+ * @return {string}
1768
+ */
1769
+ proto.Invoice.prototype.getUpdateBy = function() {
1770
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
1771
+ };
1772
+
1773
+
1774
+ /**
1775
+ * @param {string} value
1776
+ * @return {!proto.Invoice} returns this
1777
+ */
1778
+ proto.Invoice.prototype.setUpdateBy = function(value) {
1779
+ return jspb.Message.setProto3StringField(this, 21, value);
1780
+ };
1781
+
1782
+
1783
+ /**
1784
+ * optional string companies_references_id = 22;
1785
+ * @return {string}
1786
+ */
1787
+ proto.Invoice.prototype.getCompaniesReferencesId = function() {
1788
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
1789
+ };
1790
+
1791
+
1792
+ /**
1793
+ * @param {string} value
1794
+ * @return {!proto.Invoice} returns this
1795
+ */
1796
+ proto.Invoice.prototype.setCompaniesReferencesId = function(value) {
1797
+ return jspb.Message.setProto3StringField(this, 22, value);
1798
+ };
1799
+
1800
+
1801
+ /**
1802
+ * optional string group_references = 23;
1803
+ * @return {string}
1804
+ */
1805
+ proto.Invoice.prototype.getGroupReferences = function() {
1806
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
1807
+ };
1808
+
1809
+
1810
+ /**
1811
+ * @param {string} value
1812
+ * @return {!proto.Invoice} returns this
1813
+ */
1814
+ proto.Invoice.prototype.setGroupReferences = function(value) {
1815
+ return jspb.Message.setProto3StringField(this, 23, value);
1816
+ };
1817
+
1818
+
1819
+ /**
1820
+ * optional bool is_expired = 24;
1821
+ * @return {boolean}
1822
+ */
1823
+ proto.Invoice.prototype.getIsExpired = function() {
1824
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 24, false));
1825
+ };
1826
+
1827
+
1828
+ /**
1829
+ * @param {boolean} value
1830
+ * @return {!proto.Invoice} returns this
1831
+ */
1832
+ proto.Invoice.prototype.setIsExpired = function(value) {
1833
+ return jspb.Message.setProto3BooleanField(this, 24, value);
1834
+ };
1835
+
1836
+
1837
+ /**
1838
+ * optional string file_ids = 25;
1839
+ * @return {string}
1840
+ */
1841
+ proto.Invoice.prototype.getFileIds = function() {
1842
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
1843
+ };
1844
+
1845
+
1846
+ /**
1847
+ * @param {string} value
1848
+ * @return {!proto.Invoice} returns this
1849
+ */
1850
+ proto.Invoice.prototype.setFileIds = function(value) {
1851
+ return jspb.Message.setProto3StringField(this, 25, value);
1852
+ };
1853
+
1854
+
1855
+ /**
1856
+ * repeated FileUploadReferencesReq files = 26;
1857
+ * @return {!Array<!proto.FileUploadReferencesReq>}
1858
+ */
1859
+ proto.Invoice.prototype.getFilesList = function() {
1860
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
1861
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 26));
1862
+ };
1863
+
1864
+
1865
+ /**
1866
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
1867
+ * @return {!proto.Invoice} returns this
1868
+ */
1869
+ proto.Invoice.prototype.setFilesList = function(value) {
1870
+ return jspb.Message.setRepeatedWrapperField(this, 26, value);
1871
+ };
1872
+
1873
+
1874
+ /**
1875
+ * @param {!proto.FileUploadReferencesReq=} opt_value
1876
+ * @param {number=} opt_index
1877
+ * @return {!proto.FileUploadReferencesReq}
1878
+ */
1879
+ proto.Invoice.prototype.addFiles = function(opt_value, opt_index) {
1880
+ return jspb.Message.addToRepeatedWrapperField(this, 26, opt_value, proto.FileUploadReferencesReq, opt_index);
1881
+ };
1882
+
1883
+
1884
+ /**
1885
+ * Clears the list making it empty but non-null.
1886
+ * @return {!proto.Invoice} returns this
1887
+ */
1888
+ proto.Invoice.prototype.clearFilesList = function() {
1889
+ return this.setFilesList([]);
1890
+ };
1891
+
1892
+
1893
+ /**
1894
+ * optional Company company = 27;
1895
+ * @return {?proto.Company}
1896
+ */
1897
+ proto.Invoice.prototype.getCompany = function() {
1898
+ return /** @type{?proto.Company} */ (
1899
+ jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 27));
1900
+ };
1901
+
1902
+
1903
+ /**
1904
+ * @param {?proto.Company|undefined} value
1905
+ * @return {!proto.Invoice} returns this
1906
+ */
1907
+ proto.Invoice.prototype.setCompany = function(value) {
1908
+ return jspb.Message.setWrapperField(this, 27, value);
1909
+ };
1910
+
1911
+
1912
+ /**
1913
+ * Clears the message field making it undefined.
1914
+ * @return {!proto.Invoice} returns this
1915
+ */
1916
+ proto.Invoice.prototype.clearCompany = function() {
1917
+ return this.setCompany(undefined);
1918
+ };
1919
+
1920
+
1921
+ /**
1922
+ * Returns whether this field is set.
1923
+ * @return {boolean}
1924
+ */
1925
+ proto.Invoice.prototype.hasCompany = function() {
1926
+ return jspb.Message.getField(this, 27) != null;
1927
+ };
1928
+
1929
+
1930
+ /**
1931
+ * optional PurchaseOrder purchase_order = 28;
1932
+ * @return {?proto.PurchaseOrder}
1933
+ */
1934
+ proto.Invoice.prototype.getPurchaseOrder = function() {
1935
+ return /** @type{?proto.PurchaseOrder} */ (
1936
+ jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder, 28));
1937
+ };
1938
+
1939
+
1940
+ /**
1941
+ * @param {?proto.PurchaseOrder|undefined} value
1942
+ * @return {!proto.Invoice} returns this
1943
+ */
1944
+ proto.Invoice.prototype.setPurchaseOrder = function(value) {
1945
+ return jspb.Message.setWrapperField(this, 28, value);
1946
+ };
1947
+
1948
+
1949
+ /**
1950
+ * Clears the message field making it undefined.
1951
+ * @return {!proto.Invoice} returns this
1952
+ */
1953
+ proto.Invoice.prototype.clearPurchaseOrder = function() {
1954
+ return this.setPurchaseOrder(undefined);
1955
+ };
1956
+
1957
+
1958
+ /**
1959
+ * Returns whether this field is set.
1960
+ * @return {boolean}
1961
+ */
1962
+ proto.Invoice.prototype.hasPurchaseOrder = function() {
1963
+ return jspb.Message.getField(this, 28) != null;
1964
+ };
1965
+
1966
+
1967
+ /**
1968
+ * repeated GoodReceipt good_receipts = 29;
1969
+ * @return {!Array<!proto.GoodReceipt>}
1970
+ */
1971
+ proto.Invoice.prototype.getGoodReceiptsList = function() {
1972
+ return /** @type{!Array<!proto.GoodReceipt>} */ (
1973
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_good_receipt_good_receipt_pb.GoodReceipt, 29));
1974
+ };
1975
+
1976
+
1977
+ /**
1978
+ * @param {!Array<!proto.GoodReceipt>} value
1979
+ * @return {!proto.Invoice} returns this
1980
+ */
1981
+ proto.Invoice.prototype.setGoodReceiptsList = function(value) {
1982
+ return jspb.Message.setRepeatedWrapperField(this, 29, value);
1983
+ };
1984
+
1985
+
1986
+ /**
1987
+ * @param {!proto.GoodReceipt=} opt_value
1988
+ * @param {number=} opt_index
1989
+ * @return {!proto.GoodReceipt}
1990
+ */
1991
+ proto.Invoice.prototype.addGoodReceipts = function(opt_value, opt_index) {
1992
+ return jspb.Message.addToRepeatedWrapperField(this, 29, opt_value, proto.GoodReceipt, opt_index);
1993
+ };
1994
+
1995
+
1996
+ /**
1997
+ * Clears the list making it empty but non-null.
1998
+ * @return {!proto.Invoice} returns this
1999
+ */
2000
+ proto.Invoice.prototype.clearGoodReceiptsList = function() {
2001
+ return this.setGoodReceiptsList([]);
2002
+ };
2003
+
2004
+
2005
+ /**
2006
+ * optional Vendor vendor = 30;
2007
+ * @return {?proto.Vendor}
2008
+ */
2009
+ proto.Invoice.prototype.getVendor = function() {
2010
+ return /** @type{?proto.Vendor} */ (
2011
+ jspb.Message.getWrapperField(this, prisca_v1_vendor_domain_vendor_domain_pb.Vendor, 30));
2012
+ };
2013
+
2014
+
2015
+ /**
2016
+ * @param {?proto.Vendor|undefined} value
2017
+ * @return {!proto.Invoice} returns this
2018
+ */
2019
+ proto.Invoice.prototype.setVendor = function(value) {
2020
+ return jspb.Message.setWrapperField(this, 30, value);
2021
+ };
2022
+
2023
+
2024
+ /**
2025
+ * Clears the message field making it undefined.
2026
+ * @return {!proto.Invoice} returns this
2027
+ */
2028
+ proto.Invoice.prototype.clearVendor = function() {
2029
+ return this.setVendor(undefined);
2030
+ };
2031
+
2032
+
2033
+ /**
2034
+ * Returns whether this field is set.
2035
+ * @return {boolean}
2036
+ */
2037
+ proto.Invoice.prototype.hasVendor = function() {
2038
+ return jspb.Message.getField(this, 30) != null;
2039
+ };
2040
+
2041
+
2042
+ /**
2043
+ * repeated ItemTransaction item_transactions = 31;
2044
+ * @return {!Array<!proto.ItemTransaction>}
2045
+ */
2046
+ proto.Invoice.prototype.getItemTransactionsList = function() {
2047
+ return /** @type{!Array<!proto.ItemTransaction>} */ (
2048
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 31));
2049
+ };
2050
+
2051
+
2052
+ /**
2053
+ * @param {!Array<!proto.ItemTransaction>} value
2054
+ * @return {!proto.Invoice} returns this
2055
+ */
2056
+ proto.Invoice.prototype.setItemTransactionsList = function(value) {
2057
+ return jspb.Message.setRepeatedWrapperField(this, 31, value);
2058
+ };
2059
+
2060
+
2061
+ /**
2062
+ * @param {!proto.ItemTransaction=} opt_value
2063
+ * @param {number=} opt_index
2064
+ * @return {!proto.ItemTransaction}
2065
+ */
2066
+ proto.Invoice.prototype.addItemTransactions = function(opt_value, opt_index) {
2067
+ return jspb.Message.addToRepeatedWrapperField(this, 31, opt_value, proto.ItemTransaction, opt_index);
2068
+ };
2069
+
2070
+
2071
+ /**
2072
+ * Clears the list making it empty but non-null.
2073
+ * @return {!proto.Invoice} returns this
2074
+ */
2075
+ proto.Invoice.prototype.clearItemTransactionsList = function() {
2076
+ return this.setItemTransactionsList([]);
2077
+ };
2078
+
2079
+
2080
+ /**
2081
+ * optional Employee created_by_employee = 32;
2082
+ * @return {?proto.Employee}
2083
+ */
2084
+ proto.Invoice.prototype.getCreatedByEmployee = function() {
2085
+ return /** @type{?proto.Employee} */ (
2086
+ jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 32));
2087
+ };
2088
+
2089
+
2090
+ /**
2091
+ * @param {?proto.Employee|undefined} value
2092
+ * @return {!proto.Invoice} returns this
2093
+ */
2094
+ proto.Invoice.prototype.setCreatedByEmployee = function(value) {
2095
+ return jspb.Message.setWrapperField(this, 32, value);
2096
+ };
2097
+
2098
+
2099
+ /**
2100
+ * Clears the message field making it undefined.
2101
+ * @return {!proto.Invoice} returns this
2102
+ */
2103
+ proto.Invoice.prototype.clearCreatedByEmployee = function() {
2104
+ return this.setCreatedByEmployee(undefined);
2105
+ };
2106
+
2107
+
2108
+ /**
2109
+ * Returns whether this field is set.
2110
+ * @return {boolean}
2111
+ */
2112
+ proto.Invoice.prototype.hasCreatedByEmployee = function() {
2113
+ return jspb.Message.getField(this, 32) != null;
2114
+ };
2115
+
2116
+
2117
+ /**
2118
+ * optional Employee updated_by_employee = 33;
2119
+ * @return {?proto.Employee}
2120
+ */
2121
+ proto.Invoice.prototype.getUpdatedByEmployee = function() {
2122
+ return /** @type{?proto.Employee} */ (
2123
+ jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 33));
2124
+ };
2125
+
2126
+
2127
+ /**
2128
+ * @param {?proto.Employee|undefined} value
2129
+ * @return {!proto.Invoice} returns this
2130
+ */
2131
+ proto.Invoice.prototype.setUpdatedByEmployee = function(value) {
2132
+ return jspb.Message.setWrapperField(this, 33, value);
2133
+ };
2134
+
2135
+
2136
+ /**
2137
+ * Clears the message field making it undefined.
2138
+ * @return {!proto.Invoice} returns this
2139
+ */
2140
+ proto.Invoice.prototype.clearUpdatedByEmployee = function() {
2141
+ return this.setUpdatedByEmployee(undefined);
2142
+ };
2143
+
2144
+
2145
+ /**
2146
+ * Returns whether this field is set.
2147
+ * @return {boolean}
2148
+ */
2149
+ proto.Invoice.prototype.hasUpdatedByEmployee = function() {
2150
+ return jspb.Message.getField(this, 33) != null;
2151
+ };
2152
+
2153
+
2154
+ /**
2155
+ * optional string vendor_name = 34;
2156
+ * @return {string}
2157
+ */
2158
+ proto.Invoice.prototype.getVendorName = function() {
2159
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 34, ""));
2160
+ };
2161
+
2162
+
2163
+ /**
2164
+ * @param {string} value
2165
+ * @return {!proto.Invoice} returns this
2166
+ */
2167
+ proto.Invoice.prototype.setVendorName = function(value) {
2168
+ return jspb.Message.setProto3StringField(this, 34, value);
2169
+ };
2170
+
2171
+
2172
+
2173
+
2174
+
2175
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2176
+ /**
2177
+ * Creates an object representation of this proto.
2178
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2179
+ * Optional fields that are not set will be set to undefined.
2180
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2181
+ * For the list of reserved names please see:
2182
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2183
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2184
+ * JSPB instance for transitional soy proto support:
2185
+ * http://goto/soy-param-migration
2186
+ * @return {!Object}
2187
+ */
2188
+ proto.CreateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
2189
+ return proto.CreateInvoiceReq.toObject(opt_includeInstance, this);
2190
+ };
2191
+
2192
+
2193
+ /**
2194
+ * Static version of the {@see toObject} method.
2195
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2196
+ * the JSPB instance for transitional soy proto support:
2197
+ * http://goto/soy-param-migration
2198
+ * @param {!proto.CreateInvoiceReq} msg The msg instance to transform.
2199
+ * @return {!Object}
2200
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2201
+ */
2202
+ proto.CreateInvoiceReq.toObject = function(includeInstance, msg) {
2203
+ var f, obj = {
2204
+ baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeInstance, f)
2205
+ };
2206
+
2207
+ if (includeInstance) {
2208
+ obj.$jspbMessageInstance = msg;
2209
+ }
2210
+ return obj;
2211
+ };
2212
+ }
2213
+
2214
+
2215
+ /**
2216
+ * Deserializes binary data (in protobuf wire format).
2217
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2218
+ * @return {!proto.CreateInvoiceReq}
2219
+ */
2220
+ proto.CreateInvoiceReq.deserializeBinary = function(bytes) {
2221
+ var reader = new jspb.BinaryReader(bytes);
2222
+ var msg = new proto.CreateInvoiceReq;
2223
+ return proto.CreateInvoiceReq.deserializeBinaryFromReader(msg, reader);
2224
+ };
2225
+
2226
+
2227
+ /**
2228
+ * Deserializes binary data (in protobuf wire format) from the
2229
+ * given reader into the given message object.
2230
+ * @param {!proto.CreateInvoiceReq} msg The message object to deserialize into.
2231
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2232
+ * @return {!proto.CreateInvoiceReq}
2233
+ */
2234
+ proto.CreateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
2235
+ while (reader.nextField()) {
2236
+ if (reader.isEndGroup()) {
2237
+ break;
2238
+ }
2239
+ var field = reader.getFieldNumber();
2240
+ switch (field) {
2241
+ case 1:
2242
+ var value = new proto.BaseInvoice;
2243
+ reader.readMessage(value,proto.BaseInvoice.deserializeBinaryFromReader);
2244
+ msg.setBaseInvoice(value);
2245
+ break;
2246
+ default:
2247
+ reader.skipField();
2248
+ break;
2249
+ }
2250
+ }
2251
+ return msg;
2252
+ };
2253
+
2254
+
2255
+ /**
2256
+ * Serializes the message to binary data (in protobuf wire format).
2257
+ * @return {!Uint8Array}
2258
+ */
2259
+ proto.CreateInvoiceReq.prototype.serializeBinary = function() {
2260
+ var writer = new jspb.BinaryWriter();
2261
+ proto.CreateInvoiceReq.serializeBinaryToWriter(this, writer);
2262
+ return writer.getResultBuffer();
2263
+ };
2264
+
2265
+
2266
+ /**
2267
+ * Serializes the given message to binary data (in protobuf wire
2268
+ * format), writing to the given BinaryWriter.
2269
+ * @param {!proto.CreateInvoiceReq} message
2270
+ * @param {!jspb.BinaryWriter} writer
2271
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2272
+ */
2273
+ proto.CreateInvoiceReq.serializeBinaryToWriter = function(message, writer) {
2274
+ var f = undefined;
2275
+ f = message.getBaseInvoice();
2276
+ if (f != null) {
2277
+ writer.writeMessage(
2278
+ 1,
2279
+ f,
2280
+ proto.BaseInvoice.serializeBinaryToWriter
2281
+ );
2282
+ }
2283
+ };
2284
+
2285
+
2286
+ /**
2287
+ * optional BaseInvoice base_invoice = 1;
2288
+ * @return {?proto.BaseInvoice}
2289
+ */
2290
+ proto.CreateInvoiceReq.prototype.getBaseInvoice = function() {
2291
+ return /** @type{?proto.BaseInvoice} */ (
2292
+ jspb.Message.getWrapperField(this, proto.BaseInvoice, 1));
2293
+ };
2294
+
2295
+
2296
+ /**
2297
+ * @param {?proto.BaseInvoice|undefined} value
2298
+ * @return {!proto.CreateInvoiceReq} returns this
2299
+ */
2300
+ proto.CreateInvoiceReq.prototype.setBaseInvoice = function(value) {
2301
+ return jspb.Message.setWrapperField(this, 1, value);
2302
+ };
2303
+
2304
+
2305
+ /**
2306
+ * Clears the message field making it undefined.
2307
+ * @return {!proto.CreateInvoiceReq} returns this
2308
+ */
2309
+ proto.CreateInvoiceReq.prototype.clearBaseInvoice = function() {
2310
+ return this.setBaseInvoice(undefined);
2311
+ };
2312
+
2313
+
2314
+ /**
2315
+ * Returns whether this field is set.
2316
+ * @return {boolean}
2317
+ */
2318
+ proto.CreateInvoiceReq.prototype.hasBaseInvoice = function() {
2319
+ return jspb.Message.getField(this, 1) != null;
2320
+ };
2321
+
2322
+
2323
+
2324
+
2325
+
2326
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2327
+ /**
2328
+ * Creates an object representation of this proto.
2329
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2330
+ * Optional fields that are not set will be set to undefined.
2331
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2332
+ * For the list of reserved names please see:
2333
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2334
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2335
+ * JSPB instance for transitional soy proto support:
2336
+ * http://goto/soy-param-migration
2337
+ * @return {!Object}
2338
+ */
2339
+ proto.CreateInvoiceRes.prototype.toObject = function(opt_includeInstance) {
2340
+ return proto.CreateInvoiceRes.toObject(opt_includeInstance, this);
2341
+ };
2342
+
2343
+
2344
+ /**
2345
+ * Static version of the {@see toObject} method.
2346
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2347
+ * the JSPB instance for transitional soy proto support:
2348
+ * http://goto/soy-param-migration
2349
+ * @param {!proto.CreateInvoiceRes} msg The msg instance to transform.
2350
+ * @return {!Object}
2351
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2352
+ */
2353
+ proto.CreateInvoiceRes.toObject = function(includeInstance, msg) {
2354
+ var f, obj = {
2355
+ invoice: (f = msg.getInvoice()) && proto.Invoice.toObject(includeInstance, f),
2356
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2357
+ };
2358
+
2359
+ if (includeInstance) {
2360
+ obj.$jspbMessageInstance = msg;
2361
+ }
2362
+ return obj;
2363
+ };
2364
+ }
2365
+
2366
+
2367
+ /**
2368
+ * Deserializes binary data (in protobuf wire format).
2369
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2370
+ * @return {!proto.CreateInvoiceRes}
2371
+ */
2372
+ proto.CreateInvoiceRes.deserializeBinary = function(bytes) {
2373
+ var reader = new jspb.BinaryReader(bytes);
2374
+ var msg = new proto.CreateInvoiceRes;
2375
+ return proto.CreateInvoiceRes.deserializeBinaryFromReader(msg, reader);
2376
+ };
2377
+
2378
+
2379
+ /**
2380
+ * Deserializes binary data (in protobuf wire format) from the
2381
+ * given reader into the given message object.
2382
+ * @param {!proto.CreateInvoiceRes} msg The message object to deserialize into.
2383
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2384
+ * @return {!proto.CreateInvoiceRes}
2385
+ */
2386
+ proto.CreateInvoiceRes.deserializeBinaryFromReader = function(msg, reader) {
2387
+ while (reader.nextField()) {
2388
+ if (reader.isEndGroup()) {
2389
+ break;
2390
+ }
2391
+ var field = reader.getFieldNumber();
2392
+ switch (field) {
2393
+ case 1:
2394
+ var value = new proto.Invoice;
2395
+ reader.readMessage(value,proto.Invoice.deserializeBinaryFromReader);
2396
+ msg.setInvoice(value);
2397
+ break;
2398
+ case 2:
2399
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2400
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2401
+ msg.setMeta(value);
2402
+ break;
2403
+ default:
2404
+ reader.skipField();
2405
+ break;
2406
+ }
2407
+ }
2408
+ return msg;
2409
+ };
2410
+
2411
+
2412
+ /**
2413
+ * Serializes the message to binary data (in protobuf wire format).
2414
+ * @return {!Uint8Array}
2415
+ */
2416
+ proto.CreateInvoiceRes.prototype.serializeBinary = function() {
2417
+ var writer = new jspb.BinaryWriter();
2418
+ proto.CreateInvoiceRes.serializeBinaryToWriter(this, writer);
2419
+ return writer.getResultBuffer();
2420
+ };
2421
+
2422
+
2423
+ /**
2424
+ * Serializes the given message to binary data (in protobuf wire
2425
+ * format), writing to the given BinaryWriter.
2426
+ * @param {!proto.CreateInvoiceRes} message
2427
+ * @param {!jspb.BinaryWriter} writer
2428
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2429
+ */
2430
+ proto.CreateInvoiceRes.serializeBinaryToWriter = function(message, writer) {
2431
+ var f = undefined;
2432
+ f = message.getInvoice();
2433
+ if (f != null) {
2434
+ writer.writeMessage(
2435
+ 1,
2436
+ f,
2437
+ proto.Invoice.serializeBinaryToWriter
2438
+ );
2439
+ }
2440
+ f = message.getMeta();
2441
+ if (f != null) {
2442
+ writer.writeMessage(
2443
+ 2,
2444
+ f,
2445
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2446
+ );
2447
+ }
2448
+ };
2449
+
2450
+
2451
+ /**
2452
+ * optional Invoice invoice = 1;
2453
+ * @return {?proto.Invoice}
2454
+ */
2455
+ proto.CreateInvoiceRes.prototype.getInvoice = function() {
2456
+ return /** @type{?proto.Invoice} */ (
2457
+ jspb.Message.getWrapperField(this, proto.Invoice, 1));
2458
+ };
2459
+
2460
+
2461
+ /**
2462
+ * @param {?proto.Invoice|undefined} value
2463
+ * @return {!proto.CreateInvoiceRes} returns this
2464
+ */
2465
+ proto.CreateInvoiceRes.prototype.setInvoice = function(value) {
2466
+ return jspb.Message.setWrapperField(this, 1, value);
2467
+ };
2468
+
2469
+
2470
+ /**
2471
+ * Clears the message field making it undefined.
2472
+ * @return {!proto.CreateInvoiceRes} returns this
2473
+ */
2474
+ proto.CreateInvoiceRes.prototype.clearInvoice = function() {
2475
+ return this.setInvoice(undefined);
2476
+ };
2477
+
2478
+
2479
+ /**
2480
+ * Returns whether this field is set.
2481
+ * @return {boolean}
2482
+ */
2483
+ proto.CreateInvoiceRes.prototype.hasInvoice = function() {
2484
+ return jspb.Message.getField(this, 1) != null;
2485
+ };
2486
+
2487
+
2488
+ /**
2489
+ * optional prisca.v1.global.meta.Meta meta = 2;
2490
+ * @return {?proto.prisca.v1.global.meta.Meta}
2491
+ */
2492
+ proto.CreateInvoiceRes.prototype.getMeta = function() {
2493
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2494
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2495
+ };
2496
+
2497
+
2498
+ /**
2499
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2500
+ * @return {!proto.CreateInvoiceRes} returns this
2501
+ */
2502
+ proto.CreateInvoiceRes.prototype.setMeta = function(value) {
2503
+ return jspb.Message.setWrapperField(this, 2, value);
2504
+ };
2505
+
2506
+
2507
+ /**
2508
+ * Clears the message field making it undefined.
2509
+ * @return {!proto.CreateInvoiceRes} returns this
2510
+ */
2511
+ proto.CreateInvoiceRes.prototype.clearMeta = function() {
2512
+ return this.setMeta(undefined);
2513
+ };
2514
+
2515
+
2516
+ /**
2517
+ * Returns whether this field is set.
2518
+ * @return {boolean}
2519
+ */
2520
+ proto.CreateInvoiceRes.prototype.hasMeta = function() {
2521
+ return jspb.Message.getField(this, 2) != null;
2522
+ };
2523
+
2524
+
2525
+
2526
+
2527
+
2528
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2529
+ /**
2530
+ * Creates an object representation of this proto.
2531
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2532
+ * Optional fields that are not set will be set to undefined.
2533
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2534
+ * For the list of reserved names please see:
2535
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2536
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2537
+ * JSPB instance for transitional soy proto support:
2538
+ * http://goto/soy-param-migration
2539
+ * @return {!Object}
2540
+ */
2541
+ proto.UpdateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
2542
+ return proto.UpdateInvoiceReq.toObject(opt_includeInstance, this);
2543
+ };
2544
+
2545
+
2546
+ /**
2547
+ * Static version of the {@see toObject} method.
2548
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2549
+ * the JSPB instance for transitional soy proto support:
2550
+ * http://goto/soy-param-migration
2551
+ * @param {!proto.UpdateInvoiceReq} msg The msg instance to transform.
2552
+ * @return {!Object}
2553
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2554
+ */
2555
+ proto.UpdateInvoiceReq.toObject = function(includeInstance, msg) {
2556
+ var f, obj = {
2557
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2558
+ baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeInstance, f)
2559
+ };
2560
+
2561
+ if (includeInstance) {
2562
+ obj.$jspbMessageInstance = msg;
2563
+ }
2564
+ return obj;
2565
+ };
2566
+ }
2567
+
2568
+
2569
+ /**
2570
+ * Deserializes binary data (in protobuf wire format).
2571
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2572
+ * @return {!proto.UpdateInvoiceReq}
2573
+ */
2574
+ proto.UpdateInvoiceReq.deserializeBinary = function(bytes) {
2575
+ var reader = new jspb.BinaryReader(bytes);
2576
+ var msg = new proto.UpdateInvoiceReq;
2577
+ return proto.UpdateInvoiceReq.deserializeBinaryFromReader(msg, reader);
2578
+ };
2579
+
2580
+
2581
+ /**
2582
+ * Deserializes binary data (in protobuf wire format) from the
2583
+ * given reader into the given message object.
2584
+ * @param {!proto.UpdateInvoiceReq} msg The message object to deserialize into.
2585
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2586
+ * @return {!proto.UpdateInvoiceReq}
2587
+ */
2588
+ proto.UpdateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
2589
+ while (reader.nextField()) {
2590
+ if (reader.isEndGroup()) {
2591
+ break;
2592
+ }
2593
+ var field = reader.getFieldNumber();
2594
+ switch (field) {
2595
+ case 1:
2596
+ var value = /** @type {string} */ (reader.readString());
2597
+ msg.setReferencesId(value);
2598
+ break;
2599
+ case 2:
2600
+ var value = new proto.BaseInvoice;
2601
+ reader.readMessage(value,proto.BaseInvoice.deserializeBinaryFromReader);
2602
+ msg.setBaseInvoice(value);
2603
+ break;
2604
+ default:
2605
+ reader.skipField();
2606
+ break;
2607
+ }
2608
+ }
2609
+ return msg;
2610
+ };
2611
+
2612
+
2613
+ /**
2614
+ * Serializes the message to binary data (in protobuf wire format).
2615
+ * @return {!Uint8Array}
2616
+ */
2617
+ proto.UpdateInvoiceReq.prototype.serializeBinary = function() {
2618
+ var writer = new jspb.BinaryWriter();
2619
+ proto.UpdateInvoiceReq.serializeBinaryToWriter(this, writer);
2620
+ return writer.getResultBuffer();
2621
+ };
2622
+
2623
+
2624
+ /**
2625
+ * Serializes the given message to binary data (in protobuf wire
2626
+ * format), writing to the given BinaryWriter.
2627
+ * @param {!proto.UpdateInvoiceReq} message
2628
+ * @param {!jspb.BinaryWriter} writer
2629
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2630
+ */
2631
+ proto.UpdateInvoiceReq.serializeBinaryToWriter = function(message, writer) {
2632
+ var f = undefined;
2633
+ f = message.getReferencesId();
2634
+ if (f.length > 0) {
2635
+ writer.writeString(
2636
+ 1,
2637
+ f
2638
+ );
2639
+ }
2640
+ f = message.getBaseInvoice();
2641
+ if (f != null) {
2642
+ writer.writeMessage(
2643
+ 2,
2644
+ f,
2645
+ proto.BaseInvoice.serializeBinaryToWriter
2646
+ );
2647
+ }
2648
+ };
2649
+
2650
+
2651
+ /**
2652
+ * optional string references_id = 1;
2653
+ * @return {string}
2654
+ */
2655
+ proto.UpdateInvoiceReq.prototype.getReferencesId = function() {
2656
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2657
+ };
2658
+
2659
+
2660
+ /**
2661
+ * @param {string} value
2662
+ * @return {!proto.UpdateInvoiceReq} returns this
2663
+ */
2664
+ proto.UpdateInvoiceReq.prototype.setReferencesId = function(value) {
2665
+ return jspb.Message.setProto3StringField(this, 1, value);
2666
+ };
2667
+
2668
+
2669
+ /**
2670
+ * optional BaseInvoice base_invoice = 2;
2671
+ * @return {?proto.BaseInvoice}
2672
+ */
2673
+ proto.UpdateInvoiceReq.prototype.getBaseInvoice = function() {
2674
+ return /** @type{?proto.BaseInvoice} */ (
2675
+ jspb.Message.getWrapperField(this, proto.BaseInvoice, 2));
2676
+ };
2677
+
2678
+
2679
+ /**
2680
+ * @param {?proto.BaseInvoice|undefined} value
2681
+ * @return {!proto.UpdateInvoiceReq} returns this
2682
+ */
2683
+ proto.UpdateInvoiceReq.prototype.setBaseInvoice = function(value) {
2684
+ return jspb.Message.setWrapperField(this, 2, value);
2685
+ };
2686
+
2687
+
2688
+ /**
2689
+ * Clears the message field making it undefined.
2690
+ * @return {!proto.UpdateInvoiceReq} returns this
2691
+ */
2692
+ proto.UpdateInvoiceReq.prototype.clearBaseInvoice = function() {
2693
+ return this.setBaseInvoice(undefined);
2694
+ };
2695
+
2696
+
2697
+ /**
2698
+ * Returns whether this field is set.
2699
+ * @return {boolean}
2700
+ */
2701
+ proto.UpdateInvoiceReq.prototype.hasBaseInvoice = function() {
2702
+ return jspb.Message.getField(this, 2) != null;
2703
+ };
2704
+
2705
+
2706
+
2707
+
2708
+
2709
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2710
+ /**
2711
+ * Creates an object representation of this proto.
2712
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2713
+ * Optional fields that are not set will be set to undefined.
2714
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2715
+ * For the list of reserved names please see:
2716
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2717
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2718
+ * JSPB instance for transitional soy proto support:
2719
+ * http://goto/soy-param-migration
2720
+ * @return {!Object}
2721
+ */
2722
+ proto.UpdateInvoiceRes.prototype.toObject = function(opt_includeInstance) {
2723
+ return proto.UpdateInvoiceRes.toObject(opt_includeInstance, this);
2724
+ };
2725
+
2726
+
2727
+ /**
2728
+ * Static version of the {@see toObject} method.
2729
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2730
+ * the JSPB instance for transitional soy proto support:
2731
+ * http://goto/soy-param-migration
2732
+ * @param {!proto.UpdateInvoiceRes} msg The msg instance to transform.
2733
+ * @return {!Object}
2734
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2735
+ */
2736
+ proto.UpdateInvoiceRes.toObject = function(includeInstance, msg) {
2737
+ var f, obj = {
2738
+ invoice: (f = msg.getInvoice()) && proto.Invoice.toObject(includeInstance, f),
2739
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2740
+ };
2741
+
2742
+ if (includeInstance) {
2743
+ obj.$jspbMessageInstance = msg;
2744
+ }
2745
+ return obj;
2746
+ };
2747
+ }
2748
+
2749
+
2750
+ /**
2751
+ * Deserializes binary data (in protobuf wire format).
2752
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2753
+ * @return {!proto.UpdateInvoiceRes}
2754
+ */
2755
+ proto.UpdateInvoiceRes.deserializeBinary = function(bytes) {
2756
+ var reader = new jspb.BinaryReader(bytes);
2757
+ var msg = new proto.UpdateInvoiceRes;
2758
+ return proto.UpdateInvoiceRes.deserializeBinaryFromReader(msg, reader);
2759
+ };
2760
+
2761
+
2762
+ /**
2763
+ * Deserializes binary data (in protobuf wire format) from the
2764
+ * given reader into the given message object.
2765
+ * @param {!proto.UpdateInvoiceRes} msg The message object to deserialize into.
2766
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2767
+ * @return {!proto.UpdateInvoiceRes}
2768
+ */
2769
+ proto.UpdateInvoiceRes.deserializeBinaryFromReader = function(msg, reader) {
2770
+ while (reader.nextField()) {
2771
+ if (reader.isEndGroup()) {
2772
+ break;
2773
+ }
2774
+ var field = reader.getFieldNumber();
2775
+ switch (field) {
2776
+ case 1:
2777
+ var value = new proto.Invoice;
2778
+ reader.readMessage(value,proto.Invoice.deserializeBinaryFromReader);
2779
+ msg.setInvoice(value);
2780
+ break;
2781
+ case 2:
2782
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2783
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2784
+ msg.setMeta(value);
2785
+ break;
2786
+ default:
2787
+ reader.skipField();
2788
+ break;
2789
+ }
2790
+ }
2791
+ return msg;
2792
+ };
2793
+
2794
+
2795
+ /**
2796
+ * Serializes the message to binary data (in protobuf wire format).
2797
+ * @return {!Uint8Array}
2798
+ */
2799
+ proto.UpdateInvoiceRes.prototype.serializeBinary = function() {
2800
+ var writer = new jspb.BinaryWriter();
2801
+ proto.UpdateInvoiceRes.serializeBinaryToWriter(this, writer);
2802
+ return writer.getResultBuffer();
2803
+ };
2804
+
2805
+
2806
+ /**
2807
+ * Serializes the given message to binary data (in protobuf wire
2808
+ * format), writing to the given BinaryWriter.
2809
+ * @param {!proto.UpdateInvoiceRes} message
2810
+ * @param {!jspb.BinaryWriter} writer
2811
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2812
+ */
2813
+ proto.UpdateInvoiceRes.serializeBinaryToWriter = function(message, writer) {
2814
+ var f = undefined;
2815
+ f = message.getInvoice();
2816
+ if (f != null) {
2817
+ writer.writeMessage(
2818
+ 1,
2819
+ f,
2820
+ proto.Invoice.serializeBinaryToWriter
2821
+ );
2822
+ }
2823
+ f = message.getMeta();
2824
+ if (f != null) {
2825
+ writer.writeMessage(
2826
+ 2,
2827
+ f,
2828
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2829
+ );
2830
+ }
2831
+ };
2832
+
2833
+
2834
+ /**
2835
+ * optional Invoice invoice = 1;
2836
+ * @return {?proto.Invoice}
2837
+ */
2838
+ proto.UpdateInvoiceRes.prototype.getInvoice = function() {
2839
+ return /** @type{?proto.Invoice} */ (
2840
+ jspb.Message.getWrapperField(this, proto.Invoice, 1));
2841
+ };
2842
+
2843
+
2844
+ /**
2845
+ * @param {?proto.Invoice|undefined} value
2846
+ * @return {!proto.UpdateInvoiceRes} returns this
2847
+ */
2848
+ proto.UpdateInvoiceRes.prototype.setInvoice = function(value) {
2849
+ return jspb.Message.setWrapperField(this, 1, value);
2850
+ };
2851
+
2852
+
2853
+ /**
2854
+ * Clears the message field making it undefined.
2855
+ * @return {!proto.UpdateInvoiceRes} returns this
2856
+ */
2857
+ proto.UpdateInvoiceRes.prototype.clearInvoice = function() {
2858
+ return this.setInvoice(undefined);
2859
+ };
2860
+
2861
+
2862
+ /**
2863
+ * Returns whether this field is set.
2864
+ * @return {boolean}
2865
+ */
2866
+ proto.UpdateInvoiceRes.prototype.hasInvoice = function() {
2867
+ return jspb.Message.getField(this, 1) != null;
2868
+ };
2869
+
2870
+
2871
+ /**
2872
+ * optional prisca.v1.global.meta.Meta meta = 2;
2873
+ * @return {?proto.prisca.v1.global.meta.Meta}
2874
+ */
2875
+ proto.UpdateInvoiceRes.prototype.getMeta = function() {
2876
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2877
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2878
+ };
2879
+
2880
+
2881
+ /**
2882
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2883
+ * @return {!proto.UpdateInvoiceRes} returns this
2884
+ */
2885
+ proto.UpdateInvoiceRes.prototype.setMeta = function(value) {
2886
+ return jspb.Message.setWrapperField(this, 2, value);
2887
+ };
2888
+
2889
+
2890
+ /**
2891
+ * Clears the message field making it undefined.
2892
+ * @return {!proto.UpdateInvoiceRes} returns this
2893
+ */
2894
+ proto.UpdateInvoiceRes.prototype.clearMeta = function() {
2895
+ return this.setMeta(undefined);
2896
+ };
2897
+
2898
+
2899
+ /**
2900
+ * Returns whether this field is set.
2901
+ * @return {boolean}
2902
+ */
2903
+ proto.UpdateInvoiceRes.prototype.hasMeta = function() {
2904
+ return jspb.Message.getField(this, 2) != null;
2905
+ };
2906
+
2907
+
2908
+
2909
+
2910
+
2911
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2912
+ /**
2913
+ * Creates an object representation of this proto.
2914
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2915
+ * Optional fields that are not set will be set to undefined.
2916
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2917
+ * For the list of reserved names please see:
2918
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2919
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2920
+ * JSPB instance for transitional soy proto support:
2921
+ * http://goto/soy-param-migration
2922
+ * @return {!Object}
2923
+ */
2924
+ proto.GetInvoiceByIdReq.prototype.toObject = function(opt_includeInstance) {
2925
+ return proto.GetInvoiceByIdReq.toObject(opt_includeInstance, this);
2926
+ };
2927
+
2928
+
2929
+ /**
2930
+ * Static version of the {@see toObject} method.
2931
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2932
+ * the JSPB instance for transitional soy proto support:
2933
+ * http://goto/soy-param-migration
2934
+ * @param {!proto.GetInvoiceByIdReq} msg The msg instance to transform.
2935
+ * @return {!Object}
2936
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2937
+ */
2938
+ proto.GetInvoiceByIdReq.toObject = function(includeInstance, msg) {
2939
+ var f, obj = {
2940
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2941
+ };
2942
+
2943
+ if (includeInstance) {
2944
+ obj.$jspbMessageInstance = msg;
2945
+ }
2946
+ return obj;
2947
+ };
2948
+ }
2949
+
2950
+
2951
+ /**
2952
+ * Deserializes binary data (in protobuf wire format).
2953
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2954
+ * @return {!proto.GetInvoiceByIdReq}
2955
+ */
2956
+ proto.GetInvoiceByIdReq.deserializeBinary = function(bytes) {
2957
+ var reader = new jspb.BinaryReader(bytes);
2958
+ var msg = new proto.GetInvoiceByIdReq;
2959
+ return proto.GetInvoiceByIdReq.deserializeBinaryFromReader(msg, reader);
2960
+ };
2961
+
2962
+
2963
+ /**
2964
+ * Deserializes binary data (in protobuf wire format) from the
2965
+ * given reader into the given message object.
2966
+ * @param {!proto.GetInvoiceByIdReq} msg The message object to deserialize into.
2967
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2968
+ * @return {!proto.GetInvoiceByIdReq}
2969
+ */
2970
+ proto.GetInvoiceByIdReq.deserializeBinaryFromReader = function(msg, reader) {
2971
+ while (reader.nextField()) {
2972
+ if (reader.isEndGroup()) {
2973
+ break;
2974
+ }
2975
+ var field = reader.getFieldNumber();
2976
+ switch (field) {
2977
+ case 1:
2978
+ var value = /** @type {string} */ (reader.readString());
2979
+ msg.setReferencesId(value);
2980
+ break;
2981
+ default:
2982
+ reader.skipField();
2983
+ break;
2984
+ }
2985
+ }
2986
+ return msg;
2987
+ };
2988
+
2989
+
2990
+ /**
2991
+ * Serializes the message to binary data (in protobuf wire format).
2992
+ * @return {!Uint8Array}
2993
+ */
2994
+ proto.GetInvoiceByIdReq.prototype.serializeBinary = function() {
2995
+ var writer = new jspb.BinaryWriter();
2996
+ proto.GetInvoiceByIdReq.serializeBinaryToWriter(this, writer);
2997
+ return writer.getResultBuffer();
2998
+ };
2999
+
3000
+
3001
+ /**
3002
+ * Serializes the given message to binary data (in protobuf wire
3003
+ * format), writing to the given BinaryWriter.
3004
+ * @param {!proto.GetInvoiceByIdReq} message
3005
+ * @param {!jspb.BinaryWriter} writer
3006
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3007
+ */
3008
+ proto.GetInvoiceByIdReq.serializeBinaryToWriter = function(message, writer) {
3009
+ var f = undefined;
3010
+ f = message.getReferencesId();
3011
+ if (f.length > 0) {
3012
+ writer.writeString(
3013
+ 1,
3014
+ f
3015
+ );
3016
+ }
3017
+ };
3018
+
3019
+
3020
+ /**
3021
+ * optional string references_id = 1;
3022
+ * @return {string}
3023
+ */
3024
+ proto.GetInvoiceByIdReq.prototype.getReferencesId = function() {
3025
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3026
+ };
3027
+
3028
+
3029
+ /**
3030
+ * @param {string} value
3031
+ * @return {!proto.GetInvoiceByIdReq} returns this
3032
+ */
3033
+ proto.GetInvoiceByIdReq.prototype.setReferencesId = function(value) {
3034
+ return jspb.Message.setProto3StringField(this, 1, value);
3035
+ };
3036
+
3037
+
3038
+
3039
+
3040
+
3041
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3042
+ /**
3043
+ * Creates an object representation of this proto.
3044
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3045
+ * Optional fields that are not set will be set to undefined.
3046
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3047
+ * For the list of reserved names please see:
3048
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3049
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3050
+ * JSPB instance for transitional soy proto support:
3051
+ * http://goto/soy-param-migration
3052
+ * @return {!Object}
3053
+ */
3054
+ proto.GetInvoiceByIdRes.prototype.toObject = function(opt_includeInstance) {
3055
+ return proto.GetInvoiceByIdRes.toObject(opt_includeInstance, this);
3056
+ };
3057
+
3058
+
3059
+ /**
3060
+ * Static version of the {@see toObject} method.
3061
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3062
+ * the JSPB instance for transitional soy proto support:
3063
+ * http://goto/soy-param-migration
3064
+ * @param {!proto.GetInvoiceByIdRes} msg The msg instance to transform.
3065
+ * @return {!Object}
3066
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3067
+ */
3068
+ proto.GetInvoiceByIdRes.toObject = function(includeInstance, msg) {
3069
+ var f, obj = {
3070
+ invoice: (f = msg.getInvoice()) && proto.Invoice.toObject(includeInstance, f),
3071
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3072
+ };
3073
+
3074
+ if (includeInstance) {
3075
+ obj.$jspbMessageInstance = msg;
3076
+ }
3077
+ return obj;
3078
+ };
3079
+ }
3080
+
3081
+
3082
+ /**
3083
+ * Deserializes binary data (in protobuf wire format).
3084
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3085
+ * @return {!proto.GetInvoiceByIdRes}
3086
+ */
3087
+ proto.GetInvoiceByIdRes.deserializeBinary = function(bytes) {
3088
+ var reader = new jspb.BinaryReader(bytes);
3089
+ var msg = new proto.GetInvoiceByIdRes;
3090
+ return proto.GetInvoiceByIdRes.deserializeBinaryFromReader(msg, reader);
3091
+ };
3092
+
3093
+
3094
+ /**
3095
+ * Deserializes binary data (in protobuf wire format) from the
3096
+ * given reader into the given message object.
3097
+ * @param {!proto.GetInvoiceByIdRes} msg The message object to deserialize into.
3098
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3099
+ * @return {!proto.GetInvoiceByIdRes}
3100
+ */
3101
+ proto.GetInvoiceByIdRes.deserializeBinaryFromReader = function(msg, reader) {
3102
+ while (reader.nextField()) {
3103
+ if (reader.isEndGroup()) {
3104
+ break;
3105
+ }
3106
+ var field = reader.getFieldNumber();
3107
+ switch (field) {
3108
+ case 1:
3109
+ var value = new proto.Invoice;
3110
+ reader.readMessage(value,proto.Invoice.deserializeBinaryFromReader);
3111
+ msg.setInvoice(value);
3112
+ break;
3113
+ case 2:
3114
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3115
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3116
+ msg.setMeta(value);
3117
+ break;
3118
+ default:
3119
+ reader.skipField();
3120
+ break;
3121
+ }
3122
+ }
3123
+ return msg;
3124
+ };
3125
+
3126
+
3127
+ /**
3128
+ * Serializes the message to binary data (in protobuf wire format).
3129
+ * @return {!Uint8Array}
3130
+ */
3131
+ proto.GetInvoiceByIdRes.prototype.serializeBinary = function() {
3132
+ var writer = new jspb.BinaryWriter();
3133
+ proto.GetInvoiceByIdRes.serializeBinaryToWriter(this, writer);
3134
+ return writer.getResultBuffer();
3135
+ };
3136
+
3137
+
3138
+ /**
3139
+ * Serializes the given message to binary data (in protobuf wire
3140
+ * format), writing to the given BinaryWriter.
3141
+ * @param {!proto.GetInvoiceByIdRes} message
3142
+ * @param {!jspb.BinaryWriter} writer
3143
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3144
+ */
3145
+ proto.GetInvoiceByIdRes.serializeBinaryToWriter = function(message, writer) {
3146
+ var f = undefined;
3147
+ f = message.getInvoice();
3148
+ if (f != null) {
3149
+ writer.writeMessage(
3150
+ 1,
3151
+ f,
3152
+ proto.Invoice.serializeBinaryToWriter
3153
+ );
3154
+ }
3155
+ f = message.getMeta();
3156
+ if (f != null) {
3157
+ writer.writeMessage(
3158
+ 2,
3159
+ f,
3160
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3161
+ );
3162
+ }
3163
+ };
3164
+
3165
+
3166
+ /**
3167
+ * optional Invoice invoice = 1;
3168
+ * @return {?proto.Invoice}
3169
+ */
3170
+ proto.GetInvoiceByIdRes.prototype.getInvoice = function() {
3171
+ return /** @type{?proto.Invoice} */ (
3172
+ jspb.Message.getWrapperField(this, proto.Invoice, 1));
3173
+ };
3174
+
3175
+
3176
+ /**
3177
+ * @param {?proto.Invoice|undefined} value
3178
+ * @return {!proto.GetInvoiceByIdRes} returns this
3179
+ */
3180
+ proto.GetInvoiceByIdRes.prototype.setInvoice = function(value) {
3181
+ return jspb.Message.setWrapperField(this, 1, value);
3182
+ };
3183
+
3184
+
3185
+ /**
3186
+ * Clears the message field making it undefined.
3187
+ * @return {!proto.GetInvoiceByIdRes} returns this
3188
+ */
3189
+ proto.GetInvoiceByIdRes.prototype.clearInvoice = function() {
3190
+ return this.setInvoice(undefined);
3191
+ };
3192
+
3193
+
3194
+ /**
3195
+ * Returns whether this field is set.
3196
+ * @return {boolean}
3197
+ */
3198
+ proto.GetInvoiceByIdRes.prototype.hasInvoice = function() {
3199
+ return jspb.Message.getField(this, 1) != null;
3200
+ };
3201
+
3202
+
3203
+ /**
3204
+ * optional prisca.v1.global.meta.Meta meta = 2;
3205
+ * @return {?proto.prisca.v1.global.meta.Meta}
3206
+ */
3207
+ proto.GetInvoiceByIdRes.prototype.getMeta = function() {
3208
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3209
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3210
+ };
3211
+
3212
+
3213
+ /**
3214
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3215
+ * @return {!proto.GetInvoiceByIdRes} returns this
3216
+ */
3217
+ proto.GetInvoiceByIdRes.prototype.setMeta = function(value) {
3218
+ return jspb.Message.setWrapperField(this, 2, value);
3219
+ };
3220
+
3221
+
3222
+ /**
3223
+ * Clears the message field making it undefined.
3224
+ * @return {!proto.GetInvoiceByIdRes} returns this
3225
+ */
3226
+ proto.GetInvoiceByIdRes.prototype.clearMeta = function() {
3227
+ return this.setMeta(undefined);
3228
+ };
3229
+
3230
+
3231
+ /**
3232
+ * Returns whether this field is set.
3233
+ * @return {boolean}
3234
+ */
3235
+ proto.GetInvoiceByIdRes.prototype.hasMeta = function() {
3236
+ return jspb.Message.getField(this, 2) != null;
3237
+ };
3238
+
3239
+
3240
+
3241
+ /**
3242
+ * List of repeated fields within this message type.
3243
+ * @private {!Array<number>}
3244
+ * @const
3245
+ */
3246
+ proto.GetInvoiceDetailRes.repeatedFields_ = [1,2,3,4,5];
3247
+
3248
+
3249
+
3250
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3251
+ /**
3252
+ * Creates an object representation of this proto.
3253
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3254
+ * Optional fields that are not set will be set to undefined.
3255
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3256
+ * For the list of reserved names please see:
3257
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3258
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3259
+ * JSPB instance for transitional soy proto support:
3260
+ * http://goto/soy-param-migration
3261
+ * @return {!Object}
3262
+ */
3263
+ proto.GetInvoiceDetailRes.prototype.toObject = function(opt_includeInstance) {
3264
+ return proto.GetInvoiceDetailRes.toObject(opt_includeInstance, this);
3265
+ };
3266
+
3267
+
3268
+ /**
3269
+ * Static version of the {@see toObject} method.
3270
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3271
+ * the JSPB instance for transitional soy proto support:
3272
+ * http://goto/soy-param-migration
3273
+ * @param {!proto.GetInvoiceDetailRes} msg The msg instance to transform.
3274
+ * @return {!Object}
3275
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3276
+ */
3277
+ proto.GetInvoiceDetailRes.toObject = function(includeInstance, msg) {
3278
+ var f, obj = {
3279
+ transactionBuilderList: jspb.Message.toObjectList(msg.getTransactionBuilderList(),
3280
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
3281
+ transactionBuilderItemsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemsList(),
3282
+ proto.GetInvoiceItemPreload.toObject, includeInstance),
3283
+ invoiceReferencesList: jspb.Message.toObjectList(msg.getInvoiceReferencesList(),
3284
+ proto.Invoice.toObject, includeInstance),
3285
+ transactionBuilderGoodsReceiptItemsList: jspb.Message.toObjectList(msg.getTransactionBuilderGoodsReceiptItemsList(),
3286
+ proto.GetInvoiceItemPreload.toObject, includeInstance),
3287
+ transactionBuilderPurchaseOrderItemsList: jspb.Message.toObjectList(msg.getTransactionBuilderPurchaseOrderItemsList(),
3288
+ proto.GetInvoiceItemPreload.toObject, includeInstance)
3289
+ };
3290
+
3291
+ if (includeInstance) {
3292
+ obj.$jspbMessageInstance = msg;
3293
+ }
3294
+ return obj;
3295
+ };
3296
+ }
3297
+
3298
+
3299
+ /**
3300
+ * Deserializes binary data (in protobuf wire format).
3301
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3302
+ * @return {!proto.GetInvoiceDetailRes}
3303
+ */
3304
+ proto.GetInvoiceDetailRes.deserializeBinary = function(bytes) {
3305
+ var reader = new jspb.BinaryReader(bytes);
3306
+ var msg = new proto.GetInvoiceDetailRes;
3307
+ return proto.GetInvoiceDetailRes.deserializeBinaryFromReader(msg, reader);
3308
+ };
3309
+
3310
+
3311
+ /**
3312
+ * Deserializes binary data (in protobuf wire format) from the
3313
+ * given reader into the given message object.
3314
+ * @param {!proto.GetInvoiceDetailRes} msg The message object to deserialize into.
3315
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3316
+ * @return {!proto.GetInvoiceDetailRes}
3317
+ */
3318
+ proto.GetInvoiceDetailRes.deserializeBinaryFromReader = function(msg, reader) {
3319
+ while (reader.nextField()) {
3320
+ if (reader.isEndGroup()) {
3321
+ break;
3322
+ }
3323
+ var field = reader.getFieldNumber();
3324
+ switch (field) {
3325
+ case 1:
3326
+ var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
3327
+ reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
3328
+ msg.addTransactionBuilder(value);
3329
+ break;
3330
+ case 2:
3331
+ var value = new proto.GetInvoiceItemPreload;
3332
+ reader.readMessage(value,proto.GetInvoiceItemPreload.deserializeBinaryFromReader);
3333
+ msg.addTransactionBuilderItems(value);
3334
+ break;
3335
+ case 3:
3336
+ var value = new proto.Invoice;
3337
+ reader.readMessage(value,proto.Invoice.deserializeBinaryFromReader);
3338
+ msg.addInvoiceReferences(value);
3339
+ break;
3340
+ case 4:
3341
+ var value = new proto.GetInvoiceItemPreload;
3342
+ reader.readMessage(value,proto.GetInvoiceItemPreload.deserializeBinaryFromReader);
3343
+ msg.addTransactionBuilderGoodsReceiptItems(value);
3344
+ break;
3345
+ case 5:
3346
+ var value = new proto.GetInvoiceItemPreload;
3347
+ reader.readMessage(value,proto.GetInvoiceItemPreload.deserializeBinaryFromReader);
3348
+ msg.addTransactionBuilderPurchaseOrderItems(value);
3349
+ break;
3350
+ default:
3351
+ reader.skipField();
3352
+ break;
3353
+ }
3354
+ }
3355
+ return msg;
3356
+ };
3357
+
3358
+
3359
+ /**
3360
+ * Serializes the message to binary data (in protobuf wire format).
3361
+ * @return {!Uint8Array}
3362
+ */
3363
+ proto.GetInvoiceDetailRes.prototype.serializeBinary = function() {
3364
+ var writer = new jspb.BinaryWriter();
3365
+ proto.GetInvoiceDetailRes.serializeBinaryToWriter(this, writer);
3366
+ return writer.getResultBuffer();
3367
+ };
3368
+
3369
+
3370
+ /**
3371
+ * Serializes the given message to binary data (in protobuf wire
3372
+ * format), writing to the given BinaryWriter.
3373
+ * @param {!proto.GetInvoiceDetailRes} message
3374
+ * @param {!jspb.BinaryWriter} writer
3375
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3376
+ */
3377
+ proto.GetInvoiceDetailRes.serializeBinaryToWriter = function(message, writer) {
3378
+ var f = undefined;
3379
+ f = message.getTransactionBuilderList();
3380
+ if (f.length > 0) {
3381
+ writer.writeRepeatedMessage(
3382
+ 1,
3383
+ f,
3384
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
3385
+ );
3386
+ }
3387
+ f = message.getTransactionBuilderItemsList();
3388
+ if (f.length > 0) {
3389
+ writer.writeRepeatedMessage(
3390
+ 2,
3391
+ f,
3392
+ proto.GetInvoiceItemPreload.serializeBinaryToWriter
3393
+ );
3394
+ }
3395
+ f = message.getInvoiceReferencesList();
3396
+ if (f.length > 0) {
3397
+ writer.writeRepeatedMessage(
3398
+ 3,
3399
+ f,
3400
+ proto.Invoice.serializeBinaryToWriter
3401
+ );
3402
+ }
3403
+ f = message.getTransactionBuilderGoodsReceiptItemsList();
3404
+ if (f.length > 0) {
3405
+ writer.writeRepeatedMessage(
3406
+ 4,
3407
+ f,
3408
+ proto.GetInvoiceItemPreload.serializeBinaryToWriter
3409
+ );
3410
+ }
3411
+ f = message.getTransactionBuilderPurchaseOrderItemsList();
3412
+ if (f.length > 0) {
3413
+ writer.writeRepeatedMessage(
3414
+ 5,
3415
+ f,
3416
+ proto.GetInvoiceItemPreload.serializeBinaryToWriter
3417
+ );
3418
+ }
3419
+ };
3420
+
3421
+
3422
+ /**
3423
+ * repeated TransactionBuilderFieldsDetail transaction_builder = 1;
3424
+ * @return {!Array<!proto.TransactionBuilderFieldsDetail>}
3425
+ */
3426
+ proto.GetInvoiceDetailRes.prototype.getTransactionBuilderList = function() {
3427
+ return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
3428
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
3429
+ };
3430
+
3431
+
3432
+ /**
3433
+ * @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
3434
+ * @return {!proto.GetInvoiceDetailRes} returns this
3435
+ */
3436
+ proto.GetInvoiceDetailRes.prototype.setTransactionBuilderList = function(value) {
3437
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3438
+ };
3439
+
3440
+
3441
+ /**
3442
+ * @param {!proto.TransactionBuilderFieldsDetail=} opt_value
3443
+ * @param {number=} opt_index
3444
+ * @return {!proto.TransactionBuilderFieldsDetail}
3445
+ */
3446
+ proto.GetInvoiceDetailRes.prototype.addTransactionBuilder = function(opt_value, opt_index) {
3447
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
3448
+ };
3449
+
3450
+
3451
+ /**
3452
+ * Clears the list making it empty but non-null.
3453
+ * @return {!proto.GetInvoiceDetailRes} returns this
3454
+ */
3455
+ proto.GetInvoiceDetailRes.prototype.clearTransactionBuilderList = function() {
3456
+ return this.setTransactionBuilderList([]);
3457
+ };
3458
+
3459
+
3460
+ /**
3461
+ * repeated GetInvoiceItemPreload transaction_builder_items = 2;
3462
+ * @return {!Array<!proto.GetInvoiceItemPreload>}
3463
+ */
3464
+ proto.GetInvoiceDetailRes.prototype.getTransactionBuilderItemsList = function() {
3465
+ return /** @type{!Array<!proto.GetInvoiceItemPreload>} */ (
3466
+ jspb.Message.getRepeatedWrapperField(this, proto.GetInvoiceItemPreload, 2));
3467
+ };
3468
+
3469
+
3470
+ /**
3471
+ * @param {!Array<!proto.GetInvoiceItemPreload>} value
3472
+ * @return {!proto.GetInvoiceDetailRes} returns this
3473
+ */
3474
+ proto.GetInvoiceDetailRes.prototype.setTransactionBuilderItemsList = function(value) {
3475
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
3476
+ };
3477
+
3478
+
3479
+ /**
3480
+ * @param {!proto.GetInvoiceItemPreload=} opt_value
3481
+ * @param {number=} opt_index
3482
+ * @return {!proto.GetInvoiceItemPreload}
3483
+ */
3484
+ proto.GetInvoiceDetailRes.prototype.addTransactionBuilderItems = function(opt_value, opt_index) {
3485
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetInvoiceItemPreload, opt_index);
3486
+ };
3487
+
3488
+
3489
+ /**
3490
+ * Clears the list making it empty but non-null.
3491
+ * @return {!proto.GetInvoiceDetailRes} returns this
3492
+ */
3493
+ proto.GetInvoiceDetailRes.prototype.clearTransactionBuilderItemsList = function() {
3494
+ return this.setTransactionBuilderItemsList([]);
3495
+ };
3496
+
3497
+
3498
+ /**
3499
+ * repeated Invoice invoice_references = 3;
3500
+ * @return {!Array<!proto.Invoice>}
3501
+ */
3502
+ proto.GetInvoiceDetailRes.prototype.getInvoiceReferencesList = function() {
3503
+ return /** @type{!Array<!proto.Invoice>} */ (
3504
+ jspb.Message.getRepeatedWrapperField(this, proto.Invoice, 3));
3505
+ };
3506
+
3507
+
3508
+ /**
3509
+ * @param {!Array<!proto.Invoice>} value
3510
+ * @return {!proto.GetInvoiceDetailRes} returns this
3511
+ */
3512
+ proto.GetInvoiceDetailRes.prototype.setInvoiceReferencesList = function(value) {
3513
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
3514
+ };
3515
+
3516
+
3517
+ /**
3518
+ * @param {!proto.Invoice=} opt_value
3519
+ * @param {number=} opt_index
3520
+ * @return {!proto.Invoice}
3521
+ */
3522
+ proto.GetInvoiceDetailRes.prototype.addInvoiceReferences = function(opt_value, opt_index) {
3523
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Invoice, opt_index);
3524
+ };
3525
+
3526
+
3527
+ /**
3528
+ * Clears the list making it empty but non-null.
3529
+ * @return {!proto.GetInvoiceDetailRes} returns this
3530
+ */
3531
+ proto.GetInvoiceDetailRes.prototype.clearInvoiceReferencesList = function() {
3532
+ return this.setInvoiceReferencesList([]);
3533
+ };
3534
+
3535
+
3536
+ /**
3537
+ * repeated GetInvoiceItemPreload transaction_builder_goods_receipt_items = 4;
3538
+ * @return {!Array<!proto.GetInvoiceItemPreload>}
3539
+ */
3540
+ proto.GetInvoiceDetailRes.prototype.getTransactionBuilderGoodsReceiptItemsList = function() {
3541
+ return /** @type{!Array<!proto.GetInvoiceItemPreload>} */ (
3542
+ jspb.Message.getRepeatedWrapperField(this, proto.GetInvoiceItemPreload, 4));
3543
+ };
3544
+
3545
+
3546
+ /**
3547
+ * @param {!Array<!proto.GetInvoiceItemPreload>} value
3548
+ * @return {!proto.GetInvoiceDetailRes} returns this
3549
+ */
3550
+ proto.GetInvoiceDetailRes.prototype.setTransactionBuilderGoodsReceiptItemsList = function(value) {
3551
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
3552
+ };
3553
+
3554
+
3555
+ /**
3556
+ * @param {!proto.GetInvoiceItemPreload=} opt_value
3557
+ * @param {number=} opt_index
3558
+ * @return {!proto.GetInvoiceItemPreload}
3559
+ */
3560
+ proto.GetInvoiceDetailRes.prototype.addTransactionBuilderGoodsReceiptItems = function(opt_value, opt_index) {
3561
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.GetInvoiceItemPreload, opt_index);
3562
+ };
3563
+
3564
+
3565
+ /**
3566
+ * Clears the list making it empty but non-null.
3567
+ * @return {!proto.GetInvoiceDetailRes} returns this
3568
+ */
3569
+ proto.GetInvoiceDetailRes.prototype.clearTransactionBuilderGoodsReceiptItemsList = function() {
3570
+ return this.setTransactionBuilderGoodsReceiptItemsList([]);
3571
+ };
3572
+
3573
+
3574
+ /**
3575
+ * repeated GetInvoiceItemPreload transaction_builder_purchase_order_items = 5;
3576
+ * @return {!Array<!proto.GetInvoiceItemPreload>}
3577
+ */
3578
+ proto.GetInvoiceDetailRes.prototype.getTransactionBuilderPurchaseOrderItemsList = function() {
3579
+ return /** @type{!Array<!proto.GetInvoiceItemPreload>} */ (
3580
+ jspb.Message.getRepeatedWrapperField(this, proto.GetInvoiceItemPreload, 5));
3581
+ };
3582
+
3583
+
3584
+ /**
3585
+ * @param {!Array<!proto.GetInvoiceItemPreload>} value
3586
+ * @return {!proto.GetInvoiceDetailRes} returns this
3587
+ */
3588
+ proto.GetInvoiceDetailRes.prototype.setTransactionBuilderPurchaseOrderItemsList = function(value) {
3589
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
3590
+ };
3591
+
3592
+
3593
+ /**
3594
+ * @param {!proto.GetInvoiceItemPreload=} opt_value
3595
+ * @param {number=} opt_index
3596
+ * @return {!proto.GetInvoiceItemPreload}
3597
+ */
3598
+ proto.GetInvoiceDetailRes.prototype.addTransactionBuilderPurchaseOrderItems = function(opt_value, opt_index) {
3599
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.GetInvoiceItemPreload, opt_index);
3600
+ };
3601
+
3602
+
3603
+ /**
3604
+ * Clears the list making it empty but non-null.
3605
+ * @return {!proto.GetInvoiceDetailRes} returns this
3606
+ */
3607
+ proto.GetInvoiceDetailRes.prototype.clearTransactionBuilderPurchaseOrderItemsList = function() {
3608
+ return this.setTransactionBuilderPurchaseOrderItemsList([]);
3609
+ };
3610
+
3611
+
3612
+
3613
+ /**
3614
+ * List of repeated fields within this message type.
3615
+ * @private {!Array<number>}
3616
+ * @const
3617
+ */
3618
+ proto.GetInvoiceItemPreload.repeatedFields_ = [1,2];
3619
+
3620
+
3621
+
3622
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3623
+ /**
3624
+ * Creates an object representation of this proto.
3625
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3626
+ * Optional fields that are not set will be set to undefined.
3627
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3628
+ * For the list of reserved names please see:
3629
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3630
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3631
+ * JSPB instance for transitional soy proto support:
3632
+ * http://goto/soy-param-migration
3633
+ * @return {!Object}
3634
+ */
3635
+ proto.GetInvoiceItemPreload.prototype.toObject = function(opt_includeInstance) {
3636
+ return proto.GetInvoiceItemPreload.toObject(opt_includeInstance, this);
3637
+ };
3638
+
3639
+
3640
+ /**
3641
+ * Static version of the {@see toObject} method.
3642
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3643
+ * the JSPB instance for transitional soy proto support:
3644
+ * http://goto/soy-param-migration
3645
+ * @param {!proto.GetInvoiceItemPreload} msg The msg instance to transform.
3646
+ * @return {!Object}
3647
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3648
+ */
3649
+ proto.GetInvoiceItemPreload.toObject = function(includeInstance, msg) {
3650
+ var f, obj = {
3651
+ transactionBuilderItemList: jspb.Message.toObjectList(msg.getTransactionBuilderItemList(),
3652
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
3653
+ transactionBuilderItemDetailsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemDetailsList(),
3654
+ proto.GetInvoiceItemDetailPreload.toObject, includeInstance)
3655
+ };
3656
+
3657
+ if (includeInstance) {
3658
+ obj.$jspbMessageInstance = msg;
3659
+ }
3660
+ return obj;
3661
+ };
3662
+ }
3663
+
3664
+
3665
+ /**
3666
+ * Deserializes binary data (in protobuf wire format).
3667
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3668
+ * @return {!proto.GetInvoiceItemPreload}
3669
+ */
3670
+ proto.GetInvoiceItemPreload.deserializeBinary = function(bytes) {
3671
+ var reader = new jspb.BinaryReader(bytes);
3672
+ var msg = new proto.GetInvoiceItemPreload;
3673
+ return proto.GetInvoiceItemPreload.deserializeBinaryFromReader(msg, reader);
3674
+ };
3675
+
3676
+
3677
+ /**
3678
+ * Deserializes binary data (in protobuf wire format) from the
3679
+ * given reader into the given message object.
3680
+ * @param {!proto.GetInvoiceItemPreload} msg The message object to deserialize into.
3681
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3682
+ * @return {!proto.GetInvoiceItemPreload}
3683
+ */
3684
+ proto.GetInvoiceItemPreload.deserializeBinaryFromReader = function(msg, reader) {
3685
+ while (reader.nextField()) {
3686
+ if (reader.isEndGroup()) {
3687
+ break;
3688
+ }
3689
+ var field = reader.getFieldNumber();
3690
+ switch (field) {
3691
+ case 1:
3692
+ var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
3693
+ reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
3694
+ msg.addTransactionBuilderItem(value);
3695
+ break;
3696
+ case 2:
3697
+ var value = new proto.GetInvoiceItemDetailPreload;
3698
+ reader.readMessage(value,proto.GetInvoiceItemDetailPreload.deserializeBinaryFromReader);
3699
+ msg.addTransactionBuilderItemDetails(value);
3700
+ break;
3701
+ default:
3702
+ reader.skipField();
3703
+ break;
3704
+ }
3705
+ }
3706
+ return msg;
3707
+ };
3708
+
3709
+
3710
+ /**
3711
+ * Serializes the message to binary data (in protobuf wire format).
3712
+ * @return {!Uint8Array}
3713
+ */
3714
+ proto.GetInvoiceItemPreload.prototype.serializeBinary = function() {
3715
+ var writer = new jspb.BinaryWriter();
3716
+ proto.GetInvoiceItemPreload.serializeBinaryToWriter(this, writer);
3717
+ return writer.getResultBuffer();
3718
+ };
3719
+
3720
+
3721
+ /**
3722
+ * Serializes the given message to binary data (in protobuf wire
3723
+ * format), writing to the given BinaryWriter.
3724
+ * @param {!proto.GetInvoiceItemPreload} message
3725
+ * @param {!jspb.BinaryWriter} writer
3726
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3727
+ */
3728
+ proto.GetInvoiceItemPreload.serializeBinaryToWriter = function(message, writer) {
3729
+ var f = undefined;
3730
+ f = message.getTransactionBuilderItemList();
3731
+ if (f.length > 0) {
3732
+ writer.writeRepeatedMessage(
3733
+ 1,
3734
+ f,
3735
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
3736
+ );
3737
+ }
3738
+ f = message.getTransactionBuilderItemDetailsList();
3739
+ if (f.length > 0) {
3740
+ writer.writeRepeatedMessage(
3741
+ 2,
3742
+ f,
3743
+ proto.GetInvoiceItemDetailPreload.serializeBinaryToWriter
3744
+ );
3745
+ }
3746
+ };
3747
+
3748
+
3749
+ /**
3750
+ * repeated TransactionBuilderFieldsDetail transaction_builder_item = 1;
3751
+ * @return {!Array<!proto.TransactionBuilderFieldsDetail>}
3752
+ */
3753
+ proto.GetInvoiceItemPreload.prototype.getTransactionBuilderItemList = function() {
3754
+ return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
3755
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
3756
+ };
3757
+
3758
+
3759
+ /**
3760
+ * @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
3761
+ * @return {!proto.GetInvoiceItemPreload} returns this
3762
+ */
3763
+ proto.GetInvoiceItemPreload.prototype.setTransactionBuilderItemList = function(value) {
3764
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3765
+ };
3766
+
3767
+
3768
+ /**
3769
+ * @param {!proto.TransactionBuilderFieldsDetail=} opt_value
3770
+ * @param {number=} opt_index
3771
+ * @return {!proto.TransactionBuilderFieldsDetail}
3772
+ */
3773
+ proto.GetInvoiceItemPreload.prototype.addTransactionBuilderItem = function(opt_value, opt_index) {
3774
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
3775
+ };
3776
+
3777
+
3778
+ /**
3779
+ * Clears the list making it empty but non-null.
3780
+ * @return {!proto.GetInvoiceItemPreload} returns this
3781
+ */
3782
+ proto.GetInvoiceItemPreload.prototype.clearTransactionBuilderItemList = function() {
3783
+ return this.setTransactionBuilderItemList([]);
3784
+ };
3785
+
3786
+
3787
+ /**
3788
+ * repeated GetInvoiceItemDetailPreload transaction_builder_item_details = 2;
3789
+ * @return {!Array<!proto.GetInvoiceItemDetailPreload>}
3790
+ */
3791
+ proto.GetInvoiceItemPreload.prototype.getTransactionBuilderItemDetailsList = function() {
3792
+ return /** @type{!Array<!proto.GetInvoiceItemDetailPreload>} */ (
3793
+ jspb.Message.getRepeatedWrapperField(this, proto.GetInvoiceItemDetailPreload, 2));
3794
+ };
3795
+
3796
+
3797
+ /**
3798
+ * @param {!Array<!proto.GetInvoiceItemDetailPreload>} value
3799
+ * @return {!proto.GetInvoiceItemPreload} returns this
3800
+ */
3801
+ proto.GetInvoiceItemPreload.prototype.setTransactionBuilderItemDetailsList = function(value) {
3802
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
3803
+ };
3804
+
3805
+
3806
+ /**
3807
+ * @param {!proto.GetInvoiceItemDetailPreload=} opt_value
3808
+ * @param {number=} opt_index
3809
+ * @return {!proto.GetInvoiceItemDetailPreload}
3810
+ */
3811
+ proto.GetInvoiceItemPreload.prototype.addTransactionBuilderItemDetails = function(opt_value, opt_index) {
3812
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetInvoiceItemDetailPreload, opt_index);
3813
+ };
3814
+
3815
+
3816
+ /**
3817
+ * Clears the list making it empty but non-null.
3818
+ * @return {!proto.GetInvoiceItemPreload} returns this
3819
+ */
3820
+ proto.GetInvoiceItemPreload.prototype.clearTransactionBuilderItemDetailsList = function() {
3821
+ return this.setTransactionBuilderItemDetailsList([]);
3822
+ };
3823
+
3824
+
3825
+
3826
+ /**
3827
+ * List of repeated fields within this message type.
3828
+ * @private {!Array<number>}
3829
+ * @const
3830
+ */
3831
+ proto.GetInvoiceItemDetailPreload.repeatedFields_ = [1];
3832
+
3833
+
3834
+
3835
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3836
+ /**
3837
+ * Creates an object representation of this proto.
3838
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3839
+ * Optional fields that are not set will be set to undefined.
3840
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3841
+ * For the list of reserved names please see:
3842
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3843
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3844
+ * JSPB instance for transitional soy proto support:
3845
+ * http://goto/soy-param-migration
3846
+ * @return {!Object}
3847
+ */
3848
+ proto.GetInvoiceItemDetailPreload.prototype.toObject = function(opt_includeInstance) {
3849
+ return proto.GetInvoiceItemDetailPreload.toObject(opt_includeInstance, this);
3850
+ };
3851
+
3852
+
3853
+ /**
3854
+ * Static version of the {@see toObject} method.
3855
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3856
+ * the JSPB instance for transitional soy proto support:
3857
+ * http://goto/soy-param-migration
3858
+ * @param {!proto.GetInvoiceItemDetailPreload} msg The msg instance to transform.
3859
+ * @return {!Object}
3860
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3861
+ */
3862
+ proto.GetInvoiceItemDetailPreload.toObject = function(includeInstance, msg) {
3863
+ var f, obj = {
3864
+ transactionBuilderItemDetailList: jspb.Message.toObjectList(msg.getTransactionBuilderItemDetailList(),
3865
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance)
3866
+ };
3867
+
3868
+ if (includeInstance) {
3869
+ obj.$jspbMessageInstance = msg;
3870
+ }
3871
+ return obj;
3872
+ };
3873
+ }
3874
+
3875
+
3876
+ /**
3877
+ * Deserializes binary data (in protobuf wire format).
3878
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3879
+ * @return {!proto.GetInvoiceItemDetailPreload}
3880
+ */
3881
+ proto.GetInvoiceItemDetailPreload.deserializeBinary = function(bytes) {
3882
+ var reader = new jspb.BinaryReader(bytes);
3883
+ var msg = new proto.GetInvoiceItemDetailPreload;
3884
+ return proto.GetInvoiceItemDetailPreload.deserializeBinaryFromReader(msg, reader);
3885
+ };
3886
+
3887
+
3888
+ /**
3889
+ * Deserializes binary data (in protobuf wire format) from the
3890
+ * given reader into the given message object.
3891
+ * @param {!proto.GetInvoiceItemDetailPreload} msg The message object to deserialize into.
3892
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3893
+ * @return {!proto.GetInvoiceItemDetailPreload}
3894
+ */
3895
+ proto.GetInvoiceItemDetailPreload.deserializeBinaryFromReader = function(msg, reader) {
3896
+ while (reader.nextField()) {
3897
+ if (reader.isEndGroup()) {
3898
+ break;
3899
+ }
3900
+ var field = reader.getFieldNumber();
3901
+ switch (field) {
3902
+ case 1:
3903
+ var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
3904
+ reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
3905
+ msg.addTransactionBuilderItemDetail(value);
3906
+ break;
3907
+ default:
3908
+ reader.skipField();
3909
+ break;
3910
+ }
3911
+ }
3912
+ return msg;
3913
+ };
3914
+
3915
+
3916
+ /**
3917
+ * Serializes the message to binary data (in protobuf wire format).
3918
+ * @return {!Uint8Array}
3919
+ */
3920
+ proto.GetInvoiceItemDetailPreload.prototype.serializeBinary = function() {
3921
+ var writer = new jspb.BinaryWriter();
3922
+ proto.GetInvoiceItemDetailPreload.serializeBinaryToWriter(this, writer);
3923
+ return writer.getResultBuffer();
3924
+ };
3925
+
3926
+
3927
+ /**
3928
+ * Serializes the given message to binary data (in protobuf wire
3929
+ * format), writing to the given BinaryWriter.
3930
+ * @param {!proto.GetInvoiceItemDetailPreload} message
3931
+ * @param {!jspb.BinaryWriter} writer
3932
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3933
+ */
3934
+ proto.GetInvoiceItemDetailPreload.serializeBinaryToWriter = function(message, writer) {
3935
+ var f = undefined;
3936
+ f = message.getTransactionBuilderItemDetailList();
3937
+ if (f.length > 0) {
3938
+ writer.writeRepeatedMessage(
3939
+ 1,
3940
+ f,
3941
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
3942
+ );
3943
+ }
3944
+ };
3945
+
3946
+
3947
+ /**
3948
+ * repeated TransactionBuilderFieldsDetail transaction_builder_item_detail = 1;
3949
+ * @return {!Array<!proto.TransactionBuilderFieldsDetail>}
3950
+ */
3951
+ proto.GetInvoiceItemDetailPreload.prototype.getTransactionBuilderItemDetailList = function() {
3952
+ return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
3953
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
3954
+ };
3955
+
3956
+
3957
+ /**
3958
+ * @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
3959
+ * @return {!proto.GetInvoiceItemDetailPreload} returns this
3960
+ */
3961
+ proto.GetInvoiceItemDetailPreload.prototype.setTransactionBuilderItemDetailList = function(value) {
3962
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3963
+ };
3964
+
3965
+
3966
+ /**
3967
+ * @param {!proto.TransactionBuilderFieldsDetail=} opt_value
3968
+ * @param {number=} opt_index
3969
+ * @return {!proto.TransactionBuilderFieldsDetail}
3970
+ */
3971
+ proto.GetInvoiceItemDetailPreload.prototype.addTransactionBuilderItemDetail = function(opt_value, opt_index) {
3972
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
3973
+ };
3974
+
3975
+
3976
+ /**
3977
+ * Clears the list making it empty but non-null.
3978
+ * @return {!proto.GetInvoiceItemDetailPreload} returns this
3979
+ */
3980
+ proto.GetInvoiceItemDetailPreload.prototype.clearTransactionBuilderItemDetailList = function() {
3981
+ return this.setTransactionBuilderItemDetailList([]);
3982
+ };
3983
+
3984
+
3985
+
3986
+
3987
+
3988
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3989
+ /**
3990
+ * Creates an object representation of this proto.
3991
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3992
+ * Optional fields that are not set will be set to undefined.
3993
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3994
+ * For the list of reserved names please see:
3995
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3996
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3997
+ * JSPB instance for transitional soy proto support:
3998
+ * http://goto/soy-param-migration
3999
+ * @return {!Object}
4000
+ */
4001
+ proto.GetListInvoiceReq.prototype.toObject = function(opt_includeInstance) {
4002
+ return proto.GetListInvoiceReq.toObject(opt_includeInstance, this);
4003
+ };
4004
+
4005
+
4006
+ /**
4007
+ * Static version of the {@see toObject} method.
4008
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4009
+ * the JSPB instance for transitional soy proto support:
4010
+ * http://goto/soy-param-migration
4011
+ * @param {!proto.GetListInvoiceReq} msg The msg instance to transform.
4012
+ * @return {!Object}
4013
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4014
+ */
4015
+ proto.GetListInvoiceReq.toObject = function(includeInstance, msg) {
4016
+ var f, obj = {
4017
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
4018
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
4019
+ };
4020
+
4021
+ if (includeInstance) {
4022
+ obj.$jspbMessageInstance = msg;
4023
+ }
4024
+ return obj;
4025
+ };
4026
+ }
4027
+
4028
+
4029
+ /**
4030
+ * Deserializes binary data (in protobuf wire format).
4031
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4032
+ * @return {!proto.GetListInvoiceReq}
4033
+ */
4034
+ proto.GetListInvoiceReq.deserializeBinary = function(bytes) {
4035
+ var reader = new jspb.BinaryReader(bytes);
4036
+ var msg = new proto.GetListInvoiceReq;
4037
+ return proto.GetListInvoiceReq.deserializeBinaryFromReader(msg, reader);
4038
+ };
4039
+
4040
+
4041
+ /**
4042
+ * Deserializes binary data (in protobuf wire format) from the
4043
+ * given reader into the given message object.
4044
+ * @param {!proto.GetListInvoiceReq} msg The message object to deserialize into.
4045
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4046
+ * @return {!proto.GetListInvoiceReq}
4047
+ */
4048
+ proto.GetListInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
4049
+ while (reader.nextField()) {
4050
+ if (reader.isEndGroup()) {
4051
+ break;
4052
+ }
4053
+ var field = reader.getFieldNumber();
4054
+ switch (field) {
4055
+ case 1:
4056
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
4057
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
4058
+ msg.setPagination(value);
4059
+ break;
4060
+ case 2:
4061
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
4062
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
4063
+ msg.setQuery(value);
4064
+ break;
4065
+ default:
4066
+ reader.skipField();
4067
+ break;
4068
+ }
4069
+ }
4070
+ return msg;
4071
+ };
4072
+
4073
+
4074
+ /**
4075
+ * Serializes the message to binary data (in protobuf wire format).
4076
+ * @return {!Uint8Array}
4077
+ */
4078
+ proto.GetListInvoiceReq.prototype.serializeBinary = function() {
4079
+ var writer = new jspb.BinaryWriter();
4080
+ proto.GetListInvoiceReq.serializeBinaryToWriter(this, writer);
4081
+ return writer.getResultBuffer();
4082
+ };
4083
+
4084
+
4085
+ /**
4086
+ * Serializes the given message to binary data (in protobuf wire
4087
+ * format), writing to the given BinaryWriter.
4088
+ * @param {!proto.GetListInvoiceReq} message
4089
+ * @param {!jspb.BinaryWriter} writer
4090
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4091
+ */
4092
+ proto.GetListInvoiceReq.serializeBinaryToWriter = function(message, writer) {
4093
+ var f = undefined;
4094
+ f = message.getPagination();
4095
+ if (f != null) {
4096
+ writer.writeMessage(
4097
+ 1,
4098
+ f,
4099
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
4100
+ );
4101
+ }
4102
+ f = message.getQuery();
4103
+ if (f != null) {
4104
+ writer.writeMessage(
4105
+ 2,
4106
+ f,
4107
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
4108
+ );
4109
+ }
4110
+ };
4111
+
4112
+
4113
+ /**
4114
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
4115
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
4116
+ */
4117
+ proto.GetListInvoiceReq.prototype.getPagination = function() {
4118
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
4119
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
4120
+ };
4121
+
4122
+
4123
+ /**
4124
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
4125
+ * @return {!proto.GetListInvoiceReq} returns this
4126
+ */
4127
+ proto.GetListInvoiceReq.prototype.setPagination = function(value) {
4128
+ return jspb.Message.setWrapperField(this, 1, value);
4129
+ };
4130
+
4131
+
4132
+ /**
4133
+ * Clears the message field making it undefined.
4134
+ * @return {!proto.GetListInvoiceReq} returns this
4135
+ */
4136
+ proto.GetListInvoiceReq.prototype.clearPagination = function() {
4137
+ return this.setPagination(undefined);
4138
+ };
4139
+
4140
+
4141
+ /**
4142
+ * Returns whether this field is set.
4143
+ * @return {boolean}
4144
+ */
4145
+ proto.GetListInvoiceReq.prototype.hasPagination = function() {
4146
+ return jspb.Message.getField(this, 1) != null;
4147
+ };
4148
+
4149
+
4150
+ /**
4151
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
4152
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
4153
+ */
4154
+ proto.GetListInvoiceReq.prototype.getQuery = function() {
4155
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
4156
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
4157
+ };
4158
+
4159
+
4160
+ /**
4161
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
4162
+ * @return {!proto.GetListInvoiceReq} returns this
4163
+ */
4164
+ proto.GetListInvoiceReq.prototype.setQuery = function(value) {
4165
+ return jspb.Message.setWrapperField(this, 2, value);
4166
+ };
4167
+
4168
+
4169
+ /**
4170
+ * Clears the message field making it undefined.
4171
+ * @return {!proto.GetListInvoiceReq} returns this
4172
+ */
4173
+ proto.GetListInvoiceReq.prototype.clearQuery = function() {
4174
+ return this.setQuery(undefined);
4175
+ };
4176
+
4177
+
4178
+ /**
4179
+ * Returns whether this field is set.
4180
+ * @return {boolean}
4181
+ */
4182
+ proto.GetListInvoiceReq.prototype.hasQuery = function() {
4183
+ return jspb.Message.getField(this, 2) != null;
4184
+ };
4185
+
4186
+
4187
+
4188
+ /**
4189
+ * List of repeated fields within this message type.
4190
+ * @private {!Array<number>}
4191
+ * @const
4192
+ */
4193
+ proto.GetListInvoiceRes.repeatedFields_ = [1];
4194
+
4195
+
4196
+
4197
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4198
+ /**
4199
+ * Creates an object representation of this proto.
4200
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4201
+ * Optional fields that are not set will be set to undefined.
4202
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4203
+ * For the list of reserved names please see:
4204
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4205
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4206
+ * JSPB instance for transitional soy proto support:
4207
+ * http://goto/soy-param-migration
4208
+ * @return {!Object}
4209
+ */
4210
+ proto.GetListInvoiceRes.prototype.toObject = function(opt_includeInstance) {
4211
+ return proto.GetListInvoiceRes.toObject(opt_includeInstance, this);
4212
+ };
4213
+
4214
+
4215
+ /**
4216
+ * Static version of the {@see toObject} method.
4217
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4218
+ * the JSPB instance for transitional soy proto support:
4219
+ * http://goto/soy-param-migration
4220
+ * @param {!proto.GetListInvoiceRes} msg The msg instance to transform.
4221
+ * @return {!Object}
4222
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4223
+ */
4224
+ proto.GetListInvoiceRes.toObject = function(includeInstance, msg) {
4225
+ var f, obj = {
4226
+ invoicesList: jspb.Message.toObjectList(msg.getInvoicesList(),
4227
+ proto.Invoice.toObject, includeInstance),
4228
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
4229
+ };
4230
+
4231
+ if (includeInstance) {
4232
+ obj.$jspbMessageInstance = msg;
4233
+ }
4234
+ return obj;
4235
+ };
4236
+ }
4237
+
4238
+
4239
+ /**
4240
+ * Deserializes binary data (in protobuf wire format).
4241
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4242
+ * @return {!proto.GetListInvoiceRes}
4243
+ */
4244
+ proto.GetListInvoiceRes.deserializeBinary = function(bytes) {
4245
+ var reader = new jspb.BinaryReader(bytes);
4246
+ var msg = new proto.GetListInvoiceRes;
4247
+ return proto.GetListInvoiceRes.deserializeBinaryFromReader(msg, reader);
4248
+ };
4249
+
4250
+
4251
+ /**
4252
+ * Deserializes binary data (in protobuf wire format) from the
4253
+ * given reader into the given message object.
4254
+ * @param {!proto.GetListInvoiceRes} msg The message object to deserialize into.
4255
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4256
+ * @return {!proto.GetListInvoiceRes}
4257
+ */
4258
+ proto.GetListInvoiceRes.deserializeBinaryFromReader = function(msg, reader) {
4259
+ while (reader.nextField()) {
4260
+ if (reader.isEndGroup()) {
4261
+ break;
4262
+ }
4263
+ var field = reader.getFieldNumber();
4264
+ switch (field) {
4265
+ case 1:
4266
+ var value = new proto.Invoice;
4267
+ reader.readMessage(value,proto.Invoice.deserializeBinaryFromReader);
4268
+ msg.addInvoices(value);
4269
+ break;
4270
+ case 2:
4271
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
4272
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
4273
+ msg.setMeta(value);
4274
+ break;
4275
+ default:
4276
+ reader.skipField();
4277
+ break;
4278
+ }
4279
+ }
4280
+ return msg;
4281
+ };
4282
+
4283
+
4284
+ /**
4285
+ * Serializes the message to binary data (in protobuf wire format).
4286
+ * @return {!Uint8Array}
4287
+ */
4288
+ proto.GetListInvoiceRes.prototype.serializeBinary = function() {
4289
+ var writer = new jspb.BinaryWriter();
4290
+ proto.GetListInvoiceRes.serializeBinaryToWriter(this, writer);
4291
+ return writer.getResultBuffer();
4292
+ };
4293
+
4294
+
4295
+ /**
4296
+ * Serializes the given message to binary data (in protobuf wire
4297
+ * format), writing to the given BinaryWriter.
4298
+ * @param {!proto.GetListInvoiceRes} message
4299
+ * @param {!jspb.BinaryWriter} writer
4300
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4301
+ */
4302
+ proto.GetListInvoiceRes.serializeBinaryToWriter = function(message, writer) {
4303
+ var f = undefined;
4304
+ f = message.getInvoicesList();
4305
+ if (f.length > 0) {
4306
+ writer.writeRepeatedMessage(
4307
+ 1,
4308
+ f,
4309
+ proto.Invoice.serializeBinaryToWriter
4310
+ );
4311
+ }
4312
+ f = message.getMeta();
4313
+ if (f != null) {
4314
+ writer.writeMessage(
4315
+ 2,
4316
+ f,
4317
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
4318
+ );
4319
+ }
4320
+ };
4321
+
4322
+
4323
+ /**
4324
+ * repeated Invoice invoices = 1;
4325
+ * @return {!Array<!proto.Invoice>}
4326
+ */
4327
+ proto.GetListInvoiceRes.prototype.getInvoicesList = function() {
4328
+ return /** @type{!Array<!proto.Invoice>} */ (
4329
+ jspb.Message.getRepeatedWrapperField(this, proto.Invoice, 1));
4330
+ };
4331
+
4332
+
4333
+ /**
4334
+ * @param {!Array<!proto.Invoice>} value
4335
+ * @return {!proto.GetListInvoiceRes} returns this
4336
+ */
4337
+ proto.GetListInvoiceRes.prototype.setInvoicesList = function(value) {
4338
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
4339
+ };
4340
+
4341
+
4342
+ /**
4343
+ * @param {!proto.Invoice=} opt_value
4344
+ * @param {number=} opt_index
4345
+ * @return {!proto.Invoice}
4346
+ */
4347
+ proto.GetListInvoiceRes.prototype.addInvoices = function(opt_value, opt_index) {
4348
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Invoice, opt_index);
4349
+ };
4350
+
4351
+
4352
+ /**
4353
+ * Clears the list making it empty but non-null.
4354
+ * @return {!proto.GetListInvoiceRes} returns this
4355
+ */
4356
+ proto.GetListInvoiceRes.prototype.clearInvoicesList = function() {
4357
+ return this.setInvoicesList([]);
4358
+ };
4359
+
4360
+
4361
+ /**
4362
+ * optional prisca.v1.global.meta.Meta meta = 2;
4363
+ * @return {?proto.prisca.v1.global.meta.Meta}
4364
+ */
4365
+ proto.GetListInvoiceRes.prototype.getMeta = function() {
4366
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
4367
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
4368
+ };
4369
+
4370
+
4371
+ /**
4372
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
4373
+ * @return {!proto.GetListInvoiceRes} returns this
4374
+ */
4375
+ proto.GetListInvoiceRes.prototype.setMeta = function(value) {
4376
+ return jspb.Message.setWrapperField(this, 2, value);
4377
+ };
4378
+
4379
+
4380
+ /**
4381
+ * Clears the message field making it undefined.
4382
+ * @return {!proto.GetListInvoiceRes} returns this
4383
+ */
4384
+ proto.GetListInvoiceRes.prototype.clearMeta = function() {
4385
+ return this.setMeta(undefined);
4386
+ };
4387
+
4388
+
4389
+ /**
4390
+ * Returns whether this field is set.
4391
+ * @return {boolean}
4392
+ */
4393
+ proto.GetListInvoiceRes.prototype.hasMeta = function() {
4394
+ return jspb.Message.getField(this, 2) != null;
4395
+ };
4396
+
4397
+
4398
+ goog.object.extend(exports, proto);