@aldiokta/protocgen 1.1.22 → 1.1.24

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.
@@ -46,6 +46,9 @@ goog.exportSymbol('proto.GetListQuotationResponse', null, global);
46
46
  goog.exportSymbol('proto.GetQuotationByIdRequest', null, global);
47
47
  goog.exportSymbol('proto.GetQuotationByIdResponse', null, global);
48
48
  goog.exportSymbol('proto.GetQuotationDetailResponse', null, global);
49
+ goog.exportSymbol('proto.SetItemQuotation', null, global);
50
+ goog.exportSymbol('proto.SetQuotationRequest', null, global);
51
+ goog.exportSymbol('proto.UnSetWinnerRequest', null, global);
49
52
  goog.exportSymbol('proto.UpdateQuotationRequest', null, global);
50
53
  goog.exportSymbol('proto.UpdateQuotationResponse', null, global);
51
54
  goog.exportSymbol('proto.UpdateSetWinner', null, global);
@@ -133,6 +136,27 @@ if (goog.DEBUG && !COMPILED) {
133
136
  */
134
137
  proto.GetQuotationByIdRequest.displayName = 'proto.GetQuotationByIdRequest';
135
138
  }
139
+ /**
140
+ * Generated by JsPbCodeGenerator.
141
+ * @param {Array=} opt_data Optional initial data array, typically from a
142
+ * server response, or constructed directly in Javascript. The array is used
143
+ * in place and becomes part of the constructed object. It is not cloned.
144
+ * If no data is provided, the constructed object will be empty, but still
145
+ * valid.
146
+ * @extends {jspb.Message}
147
+ * @constructor
148
+ */
149
+ proto.UnSetWinnerRequest = function(opt_data) {
150
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
151
+ };
152
+ goog.inherits(proto.UnSetWinnerRequest, jspb.Message);
153
+ if (goog.DEBUG && !COMPILED) {
154
+ /**
155
+ * @public
156
+ * @override
157
+ */
158
+ proto.UnSetWinnerRequest.displayName = 'proto.UnSetWinnerRequest';
159
+ }
136
160
  /**
137
161
  * Generated by JsPbCodeGenerator.
138
162
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -175,6 +199,48 @@ if (goog.DEBUG && !COMPILED) {
175
199
  */
176
200
  proto.GetListQuotationRequest.displayName = 'proto.GetListQuotationRequest';
177
201
  }
202
+ /**
203
+ * Generated by JsPbCodeGenerator.
204
+ * @param {Array=} opt_data Optional initial data array, typically from a
205
+ * server response, or constructed directly in Javascript. The array is used
206
+ * in place and becomes part of the constructed object. It is not cloned.
207
+ * If no data is provided, the constructed object will be empty, but still
208
+ * valid.
209
+ * @extends {jspb.Message}
210
+ * @constructor
211
+ */
212
+ proto.SetItemQuotation = function(opt_data) {
213
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.SetItemQuotation.repeatedFields_, null);
214
+ };
215
+ goog.inherits(proto.SetItemQuotation, jspb.Message);
216
+ if (goog.DEBUG && !COMPILED) {
217
+ /**
218
+ * @public
219
+ * @override
220
+ */
221
+ proto.SetItemQuotation.displayName = 'proto.SetItemQuotation';
222
+ }
223
+ /**
224
+ * Generated by JsPbCodeGenerator.
225
+ * @param {Array=} opt_data Optional initial data array, typically from a
226
+ * server response, or constructed directly in Javascript. The array is used
227
+ * in place and becomes part of the constructed object. It is not cloned.
228
+ * If no data is provided, the constructed object will be empty, but still
229
+ * valid.
230
+ * @extends {jspb.Message}
231
+ * @constructor
232
+ */
233
+ proto.SetQuotationRequest = function(opt_data) {
234
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.SetQuotationRequest.repeatedFields_, null);
235
+ };
236
+ goog.inherits(proto.SetQuotationRequest, jspb.Message);
237
+ if (goog.DEBUG && !COMPILED) {
238
+ /**
239
+ * @public
240
+ * @override
241
+ */
242
+ proto.SetQuotationRequest.displayName = 'proto.SetQuotationRequest';
243
+ }
178
244
  /**
179
245
  * Generated by JsPbCodeGenerator.
180
246
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -425,7 +491,7 @@ proto.BaseEditQuantityQuotationItem.prototype.setQuantity = function(value) {
425
491
  * @private {!Array<number>}
426
492
  * @const
427
493
  */
428
- proto.UpdateSetWinner.repeatedFields_ = [3];
494
+ proto.UpdateSetWinner.repeatedFields_ = [4];
429
495
 
430
496
 
431
497
 
@@ -459,8 +525,9 @@ proto.UpdateSetWinner.prototype.toObject = function(opt_includeInstance) {
459
525
  proto.UpdateSetWinner.toObject = function(includeInstance, msg) {
460
526
  var f, obj = {
461
527
  referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
462
- justification: jspb.Message.getFieldWithDefault(msg, 2, ""),
463
- itemTransactionList: jspb.Message.toObjectList(msg.getItemTransactionList(),
528
+ termAndCondition: jspb.Message.getFieldWithDefault(msg, 2, ""),
529
+ justification: jspb.Message.getFieldWithDefault(msg, 3, ""),
530
+ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
464
531
  proto.BaseEditQuantityQuotationItem.toObject, includeInstance)
465
532
  };
466
533
 
@@ -504,12 +571,16 @@ proto.UpdateSetWinner.deserializeBinaryFromReader = function(msg, reader) {
504
571
  break;
505
572
  case 2:
506
573
  var value = /** @type {string} */ (reader.readString());
507
- msg.setJustification(value);
574
+ msg.setTermAndCondition(value);
508
575
  break;
509
576
  case 3:
577
+ var value = /** @type {string} */ (reader.readString());
578
+ msg.setJustification(value);
579
+ break;
580
+ case 4:
510
581
  var value = new proto.BaseEditQuantityQuotationItem;
511
582
  reader.readMessage(value,proto.BaseEditQuantityQuotationItem.deserializeBinaryFromReader);
512
- msg.addItemTransaction(value);
583
+ msg.addItemTransactions(value);
513
584
  break;
514
585
  default:
515
586
  reader.skipField();
@@ -547,17 +618,24 @@ proto.UpdateSetWinner.serializeBinaryToWriter = function(message, writer) {
547
618
  f
548
619
  );
549
620
  }
550
- f = message.getJustification();
621
+ f = message.getTermAndCondition();
551
622
  if (f.length > 0) {
552
623
  writer.writeString(
553
624
  2,
554
625
  f
555
626
  );
556
627
  }
557
- f = message.getItemTransactionList();
628
+ f = message.getJustification();
558
629
  if (f.length > 0) {
559
- writer.writeRepeatedMessage(
630
+ writer.writeString(
560
631
  3,
632
+ f
633
+ );
634
+ }
635
+ f = message.getItemTransactionsList();
636
+ if (f.length > 0) {
637
+ writer.writeRepeatedMessage(
638
+ 4,
561
639
  f,
562
640
  proto.BaseEditQuantityQuotationItem.serializeBinaryToWriter
563
641
  );
@@ -584,10 +662,10 @@ proto.UpdateSetWinner.prototype.setReferencesId = function(value) {
584
662
 
585
663
 
586
664
  /**
587
- * optional string justification = 2;
665
+ * optional string term_and_condition = 2;
588
666
  * @return {string}
589
667
  */
590
- proto.UpdateSetWinner.prototype.getJustification = function() {
668
+ proto.UpdateSetWinner.prototype.getTermAndCondition = function() {
591
669
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
592
670
  };
593
671
 
@@ -596,18 +674,36 @@ proto.UpdateSetWinner.prototype.getJustification = function() {
596
674
  * @param {string} value
597
675
  * @return {!proto.UpdateSetWinner} returns this
598
676
  */
599
- proto.UpdateSetWinner.prototype.setJustification = function(value) {
677
+ proto.UpdateSetWinner.prototype.setTermAndCondition = function(value) {
600
678
  return jspb.Message.setProto3StringField(this, 2, value);
601
679
  };
602
680
 
603
681
 
604
682
  /**
605
- * repeated BaseEditQuantityQuotationItem item_transaction = 3;
683
+ * optional string justification = 3;
684
+ * @return {string}
685
+ */
686
+ proto.UpdateSetWinner.prototype.getJustification = function() {
687
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
688
+ };
689
+
690
+
691
+ /**
692
+ * @param {string} value
693
+ * @return {!proto.UpdateSetWinner} returns this
694
+ */
695
+ proto.UpdateSetWinner.prototype.setJustification = function(value) {
696
+ return jspb.Message.setProto3StringField(this, 3, value);
697
+ };
698
+
699
+
700
+ /**
701
+ * repeated BaseEditQuantityQuotationItem item_transactions = 4;
606
702
  * @return {!Array<!proto.BaseEditQuantityQuotationItem>}
607
703
  */
608
- proto.UpdateSetWinner.prototype.getItemTransactionList = function() {
704
+ proto.UpdateSetWinner.prototype.getItemTransactionsList = function() {
609
705
  return /** @type{!Array<!proto.BaseEditQuantityQuotationItem>} */ (
610
- jspb.Message.getRepeatedWrapperField(this, proto.BaseEditQuantityQuotationItem, 3));
706
+ jspb.Message.getRepeatedWrapperField(this, proto.BaseEditQuantityQuotationItem, 4));
611
707
  };
612
708
 
613
709
 
@@ -615,8 +711,8 @@ proto.UpdateSetWinner.prototype.getItemTransactionList = function() {
615
711
  * @param {!Array<!proto.BaseEditQuantityQuotationItem>} value
616
712
  * @return {!proto.UpdateSetWinner} returns this
617
713
  */
618
- proto.UpdateSetWinner.prototype.setItemTransactionList = function(value) {
619
- return jspb.Message.setRepeatedWrapperField(this, 3, value);
714
+ proto.UpdateSetWinner.prototype.setItemTransactionsList = function(value) {
715
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
620
716
  };
621
717
 
622
718
 
@@ -625,8 +721,8 @@ proto.UpdateSetWinner.prototype.setItemTransactionList = function(value) {
625
721
  * @param {number=} opt_index
626
722
  * @return {!proto.BaseEditQuantityQuotationItem}
627
723
  */
628
- proto.UpdateSetWinner.prototype.addItemTransaction = function(opt_value, opt_index) {
629
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.BaseEditQuantityQuotationItem, opt_index);
724
+ proto.UpdateSetWinner.prototype.addItemTransactions = function(opt_value, opt_index) {
725
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.BaseEditQuantityQuotationItem, opt_index);
630
726
  };
631
727
 
632
728
 
@@ -634,8 +730,8 @@ proto.UpdateSetWinner.prototype.addItemTransaction = function(opt_value, opt_ind
634
730
  * Clears the list making it empty but non-null.
635
731
  * @return {!proto.UpdateSetWinner} returns this
636
732
  */
637
- proto.UpdateSetWinner.prototype.clearItemTransactionList = function() {
638
- return this.setItemTransactionList([]);
733
+ proto.UpdateSetWinner.prototype.clearItemTransactionsList = function() {
734
+ return this.setItemTransactionsList([]);
639
735
  };
640
736
 
641
737
 
@@ -1585,6 +1681,136 @@ proto.GetQuotationByIdRequest.prototype.setReferencesId = function(value) {
1585
1681
 
1586
1682
 
1587
1683
 
1684
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1685
+ /**
1686
+ * Creates an object representation of this proto.
1687
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1688
+ * Optional fields that are not set will be set to undefined.
1689
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1690
+ * For the list of reserved names please see:
1691
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1692
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1693
+ * JSPB instance for transitional soy proto support:
1694
+ * http://goto/soy-param-migration
1695
+ * @return {!Object}
1696
+ */
1697
+ proto.UnSetWinnerRequest.prototype.toObject = function(opt_includeInstance) {
1698
+ return proto.UnSetWinnerRequest.toObject(opt_includeInstance, this);
1699
+ };
1700
+
1701
+
1702
+ /**
1703
+ * Static version of the {@see toObject} method.
1704
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1705
+ * the JSPB instance for transitional soy proto support:
1706
+ * http://goto/soy-param-migration
1707
+ * @param {!proto.UnSetWinnerRequest} msg The msg instance to transform.
1708
+ * @return {!Object}
1709
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1710
+ */
1711
+ proto.UnSetWinnerRequest.toObject = function(includeInstance, msg) {
1712
+ var f, obj = {
1713
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1714
+ };
1715
+
1716
+ if (includeInstance) {
1717
+ obj.$jspbMessageInstance = msg;
1718
+ }
1719
+ return obj;
1720
+ };
1721
+ }
1722
+
1723
+
1724
+ /**
1725
+ * Deserializes binary data (in protobuf wire format).
1726
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1727
+ * @return {!proto.UnSetWinnerRequest}
1728
+ */
1729
+ proto.UnSetWinnerRequest.deserializeBinary = function(bytes) {
1730
+ var reader = new jspb.BinaryReader(bytes);
1731
+ var msg = new proto.UnSetWinnerRequest;
1732
+ return proto.UnSetWinnerRequest.deserializeBinaryFromReader(msg, reader);
1733
+ };
1734
+
1735
+
1736
+ /**
1737
+ * Deserializes binary data (in protobuf wire format) from the
1738
+ * given reader into the given message object.
1739
+ * @param {!proto.UnSetWinnerRequest} msg The message object to deserialize into.
1740
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1741
+ * @return {!proto.UnSetWinnerRequest}
1742
+ */
1743
+ proto.UnSetWinnerRequest.deserializeBinaryFromReader = function(msg, reader) {
1744
+ while (reader.nextField()) {
1745
+ if (reader.isEndGroup()) {
1746
+ break;
1747
+ }
1748
+ var field = reader.getFieldNumber();
1749
+ switch (field) {
1750
+ case 1:
1751
+ var value = /** @type {string} */ (reader.readString());
1752
+ msg.setReferencesId(value);
1753
+ break;
1754
+ default:
1755
+ reader.skipField();
1756
+ break;
1757
+ }
1758
+ }
1759
+ return msg;
1760
+ };
1761
+
1762
+
1763
+ /**
1764
+ * Serializes the message to binary data (in protobuf wire format).
1765
+ * @return {!Uint8Array}
1766
+ */
1767
+ proto.UnSetWinnerRequest.prototype.serializeBinary = function() {
1768
+ var writer = new jspb.BinaryWriter();
1769
+ proto.UnSetWinnerRequest.serializeBinaryToWriter(this, writer);
1770
+ return writer.getResultBuffer();
1771
+ };
1772
+
1773
+
1774
+ /**
1775
+ * Serializes the given message to binary data (in protobuf wire
1776
+ * format), writing to the given BinaryWriter.
1777
+ * @param {!proto.UnSetWinnerRequest} message
1778
+ * @param {!jspb.BinaryWriter} writer
1779
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1780
+ */
1781
+ proto.UnSetWinnerRequest.serializeBinaryToWriter = function(message, writer) {
1782
+ var f = undefined;
1783
+ f = message.getReferencesId();
1784
+ if (f.length > 0) {
1785
+ writer.writeString(
1786
+ 1,
1787
+ f
1788
+ );
1789
+ }
1790
+ };
1791
+
1792
+
1793
+ /**
1794
+ * optional string references_id = 1;
1795
+ * @return {string}
1796
+ */
1797
+ proto.UnSetWinnerRequest.prototype.getReferencesId = function() {
1798
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1799
+ };
1800
+
1801
+
1802
+ /**
1803
+ * @param {string} value
1804
+ * @return {!proto.UnSetWinnerRequest} returns this
1805
+ */
1806
+ proto.UnSetWinnerRequest.prototype.setReferencesId = function(value) {
1807
+ return jspb.Message.setProto3StringField(this, 1, value);
1808
+ };
1809
+
1810
+
1811
+
1812
+
1813
+
1588
1814
  if (jspb.Message.GENERATE_TO_OBJECT) {
1589
1815
  /**
1590
1816
  * Creates an object representation of this proto.
@@ -1966,6 +2192,566 @@ proto.GetListQuotationRequest.prototype.hasQuery = function() {
1966
2192
 
1967
2193
 
1968
2194
 
2195
+ /**
2196
+ * List of repeated fields within this message type.
2197
+ * @private {!Array<number>}
2198
+ * @const
2199
+ */
2200
+ proto.SetItemQuotation.repeatedFields_ = [6];
2201
+
2202
+
2203
+
2204
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2205
+ /**
2206
+ * Creates an object representation of this proto.
2207
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2208
+ * Optional fields that are not set will be set to undefined.
2209
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2210
+ * For the list of reserved names please see:
2211
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2212
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2213
+ * JSPB instance for transitional soy proto support:
2214
+ * http://goto/soy-param-migration
2215
+ * @return {!Object}
2216
+ */
2217
+ proto.SetItemQuotation.prototype.toObject = function(opt_includeInstance) {
2218
+ return proto.SetItemQuotation.toObject(opt_includeInstance, this);
2219
+ };
2220
+
2221
+
2222
+ /**
2223
+ * Static version of the {@see toObject} method.
2224
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2225
+ * the JSPB instance for transitional soy proto support:
2226
+ * http://goto/soy-param-migration
2227
+ * @param {!proto.SetItemQuotation} msg The msg instance to transform.
2228
+ * @return {!Object}
2229
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2230
+ */
2231
+ proto.SetItemQuotation.toObject = function(includeInstance, msg) {
2232
+ var f, obj = {
2233
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2234
+ detailDescription: jspb.Message.getFieldWithDefault(msg, 2, ""),
2235
+ replacement: jspb.Message.getFieldWithDefault(msg, 3, ""),
2236
+ quantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
2237
+ deliveryDate: jspb.Message.getFieldWithDefault(msg, 5, ""),
2238
+ itemTransactionPriceConditionList: jspb.Message.toObjectList(msg.getItemTransactionPriceConditionList(),
2239
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.toObject, includeInstance)
2240
+ };
2241
+
2242
+ if (includeInstance) {
2243
+ obj.$jspbMessageInstance = msg;
2244
+ }
2245
+ return obj;
2246
+ };
2247
+ }
2248
+
2249
+
2250
+ /**
2251
+ * Deserializes binary data (in protobuf wire format).
2252
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2253
+ * @return {!proto.SetItemQuotation}
2254
+ */
2255
+ proto.SetItemQuotation.deserializeBinary = function(bytes) {
2256
+ var reader = new jspb.BinaryReader(bytes);
2257
+ var msg = new proto.SetItemQuotation;
2258
+ return proto.SetItemQuotation.deserializeBinaryFromReader(msg, reader);
2259
+ };
2260
+
2261
+
2262
+ /**
2263
+ * Deserializes binary data (in protobuf wire format) from the
2264
+ * given reader into the given message object.
2265
+ * @param {!proto.SetItemQuotation} msg The message object to deserialize into.
2266
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2267
+ * @return {!proto.SetItemQuotation}
2268
+ */
2269
+ proto.SetItemQuotation.deserializeBinaryFromReader = function(msg, reader) {
2270
+ while (reader.nextField()) {
2271
+ if (reader.isEndGroup()) {
2272
+ break;
2273
+ }
2274
+ var field = reader.getFieldNumber();
2275
+ switch (field) {
2276
+ case 1:
2277
+ var value = /** @type {string} */ (reader.readString());
2278
+ msg.setReferencesId(value);
2279
+ break;
2280
+ case 2:
2281
+ var value = /** @type {string} */ (reader.readString());
2282
+ msg.setDetailDescription(value);
2283
+ break;
2284
+ case 3:
2285
+ var value = /** @type {string} */ (reader.readString());
2286
+ msg.setReplacement(value);
2287
+ break;
2288
+ case 4:
2289
+ var value = /** @type {number} */ (reader.readFloat());
2290
+ msg.setQuantity(value);
2291
+ break;
2292
+ case 5:
2293
+ var value = /** @type {string} */ (reader.readString());
2294
+ msg.setDeliveryDate(value);
2295
+ break;
2296
+ case 6:
2297
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition;
2298
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.deserializeBinaryFromReader);
2299
+ msg.addItemTransactionPriceCondition(value);
2300
+ break;
2301
+ default:
2302
+ reader.skipField();
2303
+ break;
2304
+ }
2305
+ }
2306
+ return msg;
2307
+ };
2308
+
2309
+
2310
+ /**
2311
+ * Serializes the message to binary data (in protobuf wire format).
2312
+ * @return {!Uint8Array}
2313
+ */
2314
+ proto.SetItemQuotation.prototype.serializeBinary = function() {
2315
+ var writer = new jspb.BinaryWriter();
2316
+ proto.SetItemQuotation.serializeBinaryToWriter(this, writer);
2317
+ return writer.getResultBuffer();
2318
+ };
2319
+
2320
+
2321
+ /**
2322
+ * Serializes the given message to binary data (in protobuf wire
2323
+ * format), writing to the given BinaryWriter.
2324
+ * @param {!proto.SetItemQuotation} message
2325
+ * @param {!jspb.BinaryWriter} writer
2326
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2327
+ */
2328
+ proto.SetItemQuotation.serializeBinaryToWriter = function(message, writer) {
2329
+ var f = undefined;
2330
+ f = message.getReferencesId();
2331
+ if (f.length > 0) {
2332
+ writer.writeString(
2333
+ 1,
2334
+ f
2335
+ );
2336
+ }
2337
+ f = message.getDetailDescription();
2338
+ if (f.length > 0) {
2339
+ writer.writeString(
2340
+ 2,
2341
+ f
2342
+ );
2343
+ }
2344
+ f = message.getReplacement();
2345
+ if (f.length > 0) {
2346
+ writer.writeString(
2347
+ 3,
2348
+ f
2349
+ );
2350
+ }
2351
+ f = message.getQuantity();
2352
+ if (f !== 0.0) {
2353
+ writer.writeFloat(
2354
+ 4,
2355
+ f
2356
+ );
2357
+ }
2358
+ f = message.getDeliveryDate();
2359
+ if (f.length > 0) {
2360
+ writer.writeString(
2361
+ 5,
2362
+ f
2363
+ );
2364
+ }
2365
+ f = message.getItemTransactionPriceConditionList();
2366
+ if (f.length > 0) {
2367
+ writer.writeRepeatedMessage(
2368
+ 6,
2369
+ f,
2370
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.serializeBinaryToWriter
2371
+ );
2372
+ }
2373
+ };
2374
+
2375
+
2376
+ /**
2377
+ * optional string references_id = 1;
2378
+ * @return {string}
2379
+ */
2380
+ proto.SetItemQuotation.prototype.getReferencesId = function() {
2381
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2382
+ };
2383
+
2384
+
2385
+ /**
2386
+ * @param {string} value
2387
+ * @return {!proto.SetItemQuotation} returns this
2388
+ */
2389
+ proto.SetItemQuotation.prototype.setReferencesId = function(value) {
2390
+ return jspb.Message.setProto3StringField(this, 1, value);
2391
+ };
2392
+
2393
+
2394
+ /**
2395
+ * optional string detail_description = 2;
2396
+ * @return {string}
2397
+ */
2398
+ proto.SetItemQuotation.prototype.getDetailDescription = function() {
2399
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2400
+ };
2401
+
2402
+
2403
+ /**
2404
+ * @param {string} value
2405
+ * @return {!proto.SetItemQuotation} returns this
2406
+ */
2407
+ proto.SetItemQuotation.prototype.setDetailDescription = function(value) {
2408
+ return jspb.Message.setProto3StringField(this, 2, value);
2409
+ };
2410
+
2411
+
2412
+ /**
2413
+ * optional string replacement = 3;
2414
+ * @return {string}
2415
+ */
2416
+ proto.SetItemQuotation.prototype.getReplacement = function() {
2417
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2418
+ };
2419
+
2420
+
2421
+ /**
2422
+ * @param {string} value
2423
+ * @return {!proto.SetItemQuotation} returns this
2424
+ */
2425
+ proto.SetItemQuotation.prototype.setReplacement = function(value) {
2426
+ return jspb.Message.setProto3StringField(this, 3, value);
2427
+ };
2428
+
2429
+
2430
+ /**
2431
+ * optional float quantity = 4;
2432
+ * @return {number}
2433
+ */
2434
+ proto.SetItemQuotation.prototype.getQuantity = function() {
2435
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
2436
+ };
2437
+
2438
+
2439
+ /**
2440
+ * @param {number} value
2441
+ * @return {!proto.SetItemQuotation} returns this
2442
+ */
2443
+ proto.SetItemQuotation.prototype.setQuantity = function(value) {
2444
+ return jspb.Message.setProto3FloatField(this, 4, value);
2445
+ };
2446
+
2447
+
2448
+ /**
2449
+ * optional string delivery_date = 5;
2450
+ * @return {string}
2451
+ */
2452
+ proto.SetItemQuotation.prototype.getDeliveryDate = function() {
2453
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2454
+ };
2455
+
2456
+
2457
+ /**
2458
+ * @param {string} value
2459
+ * @return {!proto.SetItemQuotation} returns this
2460
+ */
2461
+ proto.SetItemQuotation.prototype.setDeliveryDate = function(value) {
2462
+ return jspb.Message.setProto3StringField(this, 5, value);
2463
+ };
2464
+
2465
+
2466
+ /**
2467
+ * repeated ItemTransactionPriceCondition item_transaction_price_condition = 6;
2468
+ * @return {!Array<!proto.ItemTransactionPriceCondition>}
2469
+ */
2470
+ proto.SetItemQuotation.prototype.getItemTransactionPriceConditionList = function() {
2471
+ return /** @type{!Array<!proto.ItemTransactionPriceCondition>} */ (
2472
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition, 6));
2473
+ };
2474
+
2475
+
2476
+ /**
2477
+ * @param {!Array<!proto.ItemTransactionPriceCondition>} value
2478
+ * @return {!proto.SetItemQuotation} returns this
2479
+ */
2480
+ proto.SetItemQuotation.prototype.setItemTransactionPriceConditionList = function(value) {
2481
+ return jspb.Message.setRepeatedWrapperField(this, 6, value);
2482
+ };
2483
+
2484
+
2485
+ /**
2486
+ * @param {!proto.ItemTransactionPriceCondition=} opt_value
2487
+ * @param {number=} opt_index
2488
+ * @return {!proto.ItemTransactionPriceCondition}
2489
+ */
2490
+ proto.SetItemQuotation.prototype.addItemTransactionPriceCondition = function(opt_value, opt_index) {
2491
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.ItemTransactionPriceCondition, opt_index);
2492
+ };
2493
+
2494
+
2495
+ /**
2496
+ * Clears the list making it empty but non-null.
2497
+ * @return {!proto.SetItemQuotation} returns this
2498
+ */
2499
+ proto.SetItemQuotation.prototype.clearItemTransactionPriceConditionList = function() {
2500
+ return this.setItemTransactionPriceConditionList([]);
2501
+ };
2502
+
2503
+
2504
+
2505
+ /**
2506
+ * List of repeated fields within this message type.
2507
+ * @private {!Array<number>}
2508
+ * @const
2509
+ */
2510
+ proto.SetQuotationRequest.repeatedFields_ = [4];
2511
+
2512
+
2513
+
2514
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2515
+ /**
2516
+ * Creates an object representation of this proto.
2517
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2518
+ * Optional fields that are not set will be set to undefined.
2519
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2520
+ * For the list of reserved names please see:
2521
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2522
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2523
+ * JSPB instance for transitional soy proto support:
2524
+ * http://goto/soy-param-migration
2525
+ * @return {!Object}
2526
+ */
2527
+ proto.SetQuotationRequest.prototype.toObject = function(opt_includeInstance) {
2528
+ return proto.SetQuotationRequest.toObject(opt_includeInstance, this);
2529
+ };
2530
+
2531
+
2532
+ /**
2533
+ * Static version of the {@see toObject} method.
2534
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2535
+ * the JSPB instance for transitional soy proto support:
2536
+ * http://goto/soy-param-migration
2537
+ * @param {!proto.SetQuotationRequest} msg The msg instance to transform.
2538
+ * @return {!Object}
2539
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2540
+ */
2541
+ proto.SetQuotationRequest.toObject = function(includeInstance, msg) {
2542
+ var f, obj = {
2543
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2544
+ termOfPayment: jspb.Message.getFieldWithDefault(msg, 2, ""),
2545
+ termOfCondition: jspb.Message.getFieldWithDefault(msg, 3, ""),
2546
+ setItemQuotationsList: jspb.Message.toObjectList(msg.getSetItemQuotationsList(),
2547
+ proto.SetItemQuotation.toObject, includeInstance)
2548
+ };
2549
+
2550
+ if (includeInstance) {
2551
+ obj.$jspbMessageInstance = msg;
2552
+ }
2553
+ return obj;
2554
+ };
2555
+ }
2556
+
2557
+
2558
+ /**
2559
+ * Deserializes binary data (in protobuf wire format).
2560
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2561
+ * @return {!proto.SetQuotationRequest}
2562
+ */
2563
+ proto.SetQuotationRequest.deserializeBinary = function(bytes) {
2564
+ var reader = new jspb.BinaryReader(bytes);
2565
+ var msg = new proto.SetQuotationRequest;
2566
+ return proto.SetQuotationRequest.deserializeBinaryFromReader(msg, reader);
2567
+ };
2568
+
2569
+
2570
+ /**
2571
+ * Deserializes binary data (in protobuf wire format) from the
2572
+ * given reader into the given message object.
2573
+ * @param {!proto.SetQuotationRequest} msg The message object to deserialize into.
2574
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2575
+ * @return {!proto.SetQuotationRequest}
2576
+ */
2577
+ proto.SetQuotationRequest.deserializeBinaryFromReader = function(msg, reader) {
2578
+ while (reader.nextField()) {
2579
+ if (reader.isEndGroup()) {
2580
+ break;
2581
+ }
2582
+ var field = reader.getFieldNumber();
2583
+ switch (field) {
2584
+ case 1:
2585
+ var value = /** @type {string} */ (reader.readString());
2586
+ msg.setReferencesId(value);
2587
+ break;
2588
+ case 2:
2589
+ var value = /** @type {string} */ (reader.readString());
2590
+ msg.setTermOfPayment(value);
2591
+ break;
2592
+ case 3:
2593
+ var value = /** @type {string} */ (reader.readString());
2594
+ msg.setTermOfCondition(value);
2595
+ break;
2596
+ case 4:
2597
+ var value = new proto.SetItemQuotation;
2598
+ reader.readMessage(value,proto.SetItemQuotation.deserializeBinaryFromReader);
2599
+ msg.addSetItemQuotations(value);
2600
+ break;
2601
+ default:
2602
+ reader.skipField();
2603
+ break;
2604
+ }
2605
+ }
2606
+ return msg;
2607
+ };
2608
+
2609
+
2610
+ /**
2611
+ * Serializes the message to binary data (in protobuf wire format).
2612
+ * @return {!Uint8Array}
2613
+ */
2614
+ proto.SetQuotationRequest.prototype.serializeBinary = function() {
2615
+ var writer = new jspb.BinaryWriter();
2616
+ proto.SetQuotationRequest.serializeBinaryToWriter(this, writer);
2617
+ return writer.getResultBuffer();
2618
+ };
2619
+
2620
+
2621
+ /**
2622
+ * Serializes the given message to binary data (in protobuf wire
2623
+ * format), writing to the given BinaryWriter.
2624
+ * @param {!proto.SetQuotationRequest} message
2625
+ * @param {!jspb.BinaryWriter} writer
2626
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2627
+ */
2628
+ proto.SetQuotationRequest.serializeBinaryToWriter = function(message, writer) {
2629
+ var f = undefined;
2630
+ f = message.getReferencesId();
2631
+ if (f.length > 0) {
2632
+ writer.writeString(
2633
+ 1,
2634
+ f
2635
+ );
2636
+ }
2637
+ f = message.getTermOfPayment();
2638
+ if (f.length > 0) {
2639
+ writer.writeString(
2640
+ 2,
2641
+ f
2642
+ );
2643
+ }
2644
+ f = message.getTermOfCondition();
2645
+ if (f.length > 0) {
2646
+ writer.writeString(
2647
+ 3,
2648
+ f
2649
+ );
2650
+ }
2651
+ f = message.getSetItemQuotationsList();
2652
+ if (f.length > 0) {
2653
+ writer.writeRepeatedMessage(
2654
+ 4,
2655
+ f,
2656
+ proto.SetItemQuotation.serializeBinaryToWriter
2657
+ );
2658
+ }
2659
+ };
2660
+
2661
+
2662
+ /**
2663
+ * optional string references_id = 1;
2664
+ * @return {string}
2665
+ */
2666
+ proto.SetQuotationRequest.prototype.getReferencesId = function() {
2667
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2668
+ };
2669
+
2670
+
2671
+ /**
2672
+ * @param {string} value
2673
+ * @return {!proto.SetQuotationRequest} returns this
2674
+ */
2675
+ proto.SetQuotationRequest.prototype.setReferencesId = function(value) {
2676
+ return jspb.Message.setProto3StringField(this, 1, value);
2677
+ };
2678
+
2679
+
2680
+ /**
2681
+ * optional string term_of_payment = 2;
2682
+ * @return {string}
2683
+ */
2684
+ proto.SetQuotationRequest.prototype.getTermOfPayment = function() {
2685
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2686
+ };
2687
+
2688
+
2689
+ /**
2690
+ * @param {string} value
2691
+ * @return {!proto.SetQuotationRequest} returns this
2692
+ */
2693
+ proto.SetQuotationRequest.prototype.setTermOfPayment = function(value) {
2694
+ return jspb.Message.setProto3StringField(this, 2, value);
2695
+ };
2696
+
2697
+
2698
+ /**
2699
+ * optional string term_of_condition = 3;
2700
+ * @return {string}
2701
+ */
2702
+ proto.SetQuotationRequest.prototype.getTermOfCondition = function() {
2703
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2704
+ };
2705
+
2706
+
2707
+ /**
2708
+ * @param {string} value
2709
+ * @return {!proto.SetQuotationRequest} returns this
2710
+ */
2711
+ proto.SetQuotationRequest.prototype.setTermOfCondition = function(value) {
2712
+ return jspb.Message.setProto3StringField(this, 3, value);
2713
+ };
2714
+
2715
+
2716
+ /**
2717
+ * repeated SetItemQuotation set_item_quotations = 4;
2718
+ * @return {!Array<!proto.SetItemQuotation>}
2719
+ */
2720
+ proto.SetQuotationRequest.prototype.getSetItemQuotationsList = function() {
2721
+ return /** @type{!Array<!proto.SetItemQuotation>} */ (
2722
+ jspb.Message.getRepeatedWrapperField(this, proto.SetItemQuotation, 4));
2723
+ };
2724
+
2725
+
2726
+ /**
2727
+ * @param {!Array<!proto.SetItemQuotation>} value
2728
+ * @return {!proto.SetQuotationRequest} returns this
2729
+ */
2730
+ proto.SetQuotationRequest.prototype.setSetItemQuotationsList = function(value) {
2731
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
2732
+ };
2733
+
2734
+
2735
+ /**
2736
+ * @param {!proto.SetItemQuotation=} opt_value
2737
+ * @param {number=} opt_index
2738
+ * @return {!proto.SetItemQuotation}
2739
+ */
2740
+ proto.SetQuotationRequest.prototype.addSetItemQuotations = function(opt_value, opt_index) {
2741
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.SetItemQuotation, opt_index);
2742
+ };
2743
+
2744
+
2745
+ /**
2746
+ * Clears the list making it empty but non-null.
2747
+ * @return {!proto.SetQuotationRequest} returns this
2748
+ */
2749
+ proto.SetQuotationRequest.prototype.clearSetItemQuotationsList = function() {
2750
+ return this.setSetItemQuotationsList([]);
2751
+ };
2752
+
2753
+
2754
+
1969
2755
 
1970
2756
 
1971
2757
  if (jspb.Message.GENERATE_TO_OBJECT) {