@aldiokta/protocgen 1.1.26 → 1.1.28

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