@aldiokta/protocgen 1.1.25 → 1.1.27

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