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