@aldiokta/protocgen 1.1.5 → 1.1.7

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