@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,3152 @@
1
+ // source: prisca/v1/bidding/bidding.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
+ var prisca_v1_quotation_quotation_pb = require('../../../prisca/v1/quotation/quotation_pb.js');
41
+ goog.object.extend(proto, prisca_v1_quotation_quotation_pb);
42
+ goog.exportSymbol('proto.Bidding', null, global);
43
+ goog.exportSymbol('proto.GetBiddingDetailResponse', null, global);
44
+ goog.exportSymbol('proto.GetDetailBiddingByReferences', null, global);
45
+ goog.exportSymbol('proto.GetQuotationDetailPreload', null, global);
46
+ goog.exportSymbol('proto.RequestBidding', null, global);
47
+ goog.exportSymbol('proto.RequestBiddingBase', null, global);
48
+ goog.exportSymbol('proto.RequestGetListBidding', null, global);
49
+ goog.exportSymbol('proto.ResponseBidding', null, global);
50
+ goog.exportSymbol('proto.ResponseDetailBiddingByReferences', null, global);
51
+ goog.exportSymbol('proto.ResponseGetListBidding', 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.Bidding = function(opt_data) {
63
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Bidding.repeatedFields_, null);
64
+ };
65
+ goog.inherits(proto.Bidding, jspb.Message);
66
+ if (goog.DEBUG && !COMPILED) {
67
+ /**
68
+ * @public
69
+ * @override
70
+ */
71
+ proto.Bidding.displayName = 'proto.Bidding';
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.RequestBiddingBase = function(opt_data) {
84
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.RequestBiddingBase.repeatedFields_, null);
85
+ };
86
+ goog.inherits(proto.RequestBiddingBase, jspb.Message);
87
+ if (goog.DEBUG && !COMPILED) {
88
+ /**
89
+ * @public
90
+ * @override
91
+ */
92
+ proto.RequestBiddingBase.displayName = 'proto.RequestBiddingBase';
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.RequestBidding = function(opt_data) {
105
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
106
+ };
107
+ goog.inherits(proto.RequestBidding, jspb.Message);
108
+ if (goog.DEBUG && !COMPILED) {
109
+ /**
110
+ * @public
111
+ * @override
112
+ */
113
+ proto.RequestBidding.displayName = 'proto.RequestBidding';
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.GetDetailBiddingByReferences = function(opt_data) {
126
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
127
+ };
128
+ goog.inherits(proto.GetDetailBiddingByReferences, jspb.Message);
129
+ if (goog.DEBUG && !COMPILED) {
130
+ /**
131
+ * @public
132
+ * @override
133
+ */
134
+ proto.GetDetailBiddingByReferences.displayName = 'proto.GetDetailBiddingByReferences';
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.RequestGetListBidding = function(opt_data) {
147
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
148
+ };
149
+ goog.inherits(proto.RequestGetListBidding, jspb.Message);
150
+ if (goog.DEBUG && !COMPILED) {
151
+ /**
152
+ * @public
153
+ * @override
154
+ */
155
+ proto.RequestGetListBidding.displayName = 'proto.RequestGetListBidding';
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.ResponseBidding = function(opt_data) {
168
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
169
+ };
170
+ goog.inherits(proto.ResponseBidding, jspb.Message);
171
+ if (goog.DEBUG && !COMPILED) {
172
+ /**
173
+ * @public
174
+ * @override
175
+ */
176
+ proto.ResponseBidding.displayName = 'proto.ResponseBidding';
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.ResponseDetailBiddingByReferences = function(opt_data) {
189
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
190
+ };
191
+ goog.inherits(proto.ResponseDetailBiddingByReferences, jspb.Message);
192
+ if (goog.DEBUG && !COMPILED) {
193
+ /**
194
+ * @public
195
+ * @override
196
+ */
197
+ proto.ResponseDetailBiddingByReferences.displayName = 'proto.ResponseDetailBiddingByReferences';
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.ResponseGetListBidding = function(opt_data) {
210
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ResponseGetListBidding.repeatedFields_, null);
211
+ };
212
+ goog.inherits(proto.ResponseGetListBidding, jspb.Message);
213
+ if (goog.DEBUG && !COMPILED) {
214
+ /**
215
+ * @public
216
+ * @override
217
+ */
218
+ proto.ResponseGetListBidding.displayName = 'proto.ResponseGetListBidding';
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.GetBiddingDetailResponse = function(opt_data) {
231
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetBiddingDetailResponse.repeatedFields_, null);
232
+ };
233
+ goog.inherits(proto.GetBiddingDetailResponse, jspb.Message);
234
+ if (goog.DEBUG && !COMPILED) {
235
+ /**
236
+ * @public
237
+ * @override
238
+ */
239
+ proto.GetBiddingDetailResponse.displayName = 'proto.GetBiddingDetailResponse';
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.GetQuotationDetailPreload = function(opt_data) {
252
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetQuotationDetailPreload.repeatedFields_, null);
253
+ };
254
+ goog.inherits(proto.GetQuotationDetailPreload, jspb.Message);
255
+ if (goog.DEBUG && !COMPILED) {
256
+ /**
257
+ * @public
258
+ * @override
259
+ */
260
+ proto.GetQuotationDetailPreload.displayName = 'proto.GetQuotationDetailPreload';
261
+ }
262
+
263
+ /**
264
+ * List of repeated fields within this message type.
265
+ * @private {!Array<number>}
266
+ * @const
267
+ */
268
+ proto.Bidding.repeatedFields_ = [12];
269
+
270
+
271
+
272
+ if (jspb.Message.GENERATE_TO_OBJECT) {
273
+ /**
274
+ * Creates an object representation of this proto.
275
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
276
+ * Optional fields that are not set will be set to undefined.
277
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
278
+ * For the list of reserved names please see:
279
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
280
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
281
+ * JSPB instance for transitional soy proto support:
282
+ * http://goto/soy-param-migration
283
+ * @return {!Object}
284
+ */
285
+ proto.Bidding.prototype.toObject = function(opt_includeInstance) {
286
+ return proto.Bidding.toObject(opt_includeInstance, this);
287
+ };
288
+
289
+
290
+ /**
291
+ * Static version of the {@see toObject} method.
292
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
293
+ * the JSPB instance for transitional soy proto support:
294
+ * http://goto/soy-param-migration
295
+ * @param {!proto.Bidding} msg The msg instance to transform.
296
+ * @return {!Object}
297
+ * @suppress {unusedLocalVariables} f is only used for nested messages
298
+ */
299
+ proto.Bidding.toObject = function(includeInstance, msg) {
300
+ var f, obj = {
301
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
302
+ biddingNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
303
+ requestForQuotationReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
304
+ requestForQuotationNumber: jspb.Message.getFieldWithDefault(msg, 4, ""),
305
+ department: jspb.Message.getFieldWithDefault(msg, 5, ""),
306
+ biddingStartDate: jspb.Message.getFieldWithDefault(msg, 6, ""),
307
+ biddingEndDate: jspb.Message.getFieldWithDefault(msg, 7, ""),
308
+ title: jspb.Message.getFieldWithDefault(msg, 8, ""),
309
+ remarks: jspb.Message.getFieldWithDefault(msg, 9, ""),
310
+ maxSubmissionDate: jspb.Message.getFieldWithDefault(msg, 10, ""),
311
+ referencesId: jspb.Message.getFieldWithDefault(msg, 11, ""),
312
+ quotationList: jspb.Message.toObjectList(msg.getQuotationList(),
313
+ prisca_v1_quotation_quotation_pb.Quotation.toObject, includeInstance),
314
+ fileids: jspb.Message.getFieldWithDefault(msg, 13, ""),
315
+ createdBy: jspb.Message.getFieldWithDefault(msg, 14, ""),
316
+ updatedBy: jspb.Message.getFieldWithDefault(msg, 15, ""),
317
+ createdAt: jspb.Message.getFieldWithDefault(msg, 16, ""),
318
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 17, ""),
319
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 18, ""),
320
+ createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
321
+ updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f)
322
+ };
323
+
324
+ if (includeInstance) {
325
+ obj.$jspbMessageInstance = msg;
326
+ }
327
+ return obj;
328
+ };
329
+ }
330
+
331
+
332
+ /**
333
+ * Deserializes binary data (in protobuf wire format).
334
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
335
+ * @return {!proto.Bidding}
336
+ */
337
+ proto.Bidding.deserializeBinary = function(bytes) {
338
+ var reader = new jspb.BinaryReader(bytes);
339
+ var msg = new proto.Bidding;
340
+ return proto.Bidding.deserializeBinaryFromReader(msg, reader);
341
+ };
342
+
343
+
344
+ /**
345
+ * Deserializes binary data (in protobuf wire format) from the
346
+ * given reader into the given message object.
347
+ * @param {!proto.Bidding} msg The message object to deserialize into.
348
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
349
+ * @return {!proto.Bidding}
350
+ */
351
+ proto.Bidding.deserializeBinaryFromReader = function(msg, reader) {
352
+ while (reader.nextField()) {
353
+ if (reader.isEndGroup()) {
354
+ break;
355
+ }
356
+ var field = reader.getFieldNumber();
357
+ switch (field) {
358
+ case 1:
359
+ var value = /** @type {number} */ (reader.readInt64());
360
+ msg.setId(value);
361
+ break;
362
+ case 2:
363
+ var value = /** @type {string} */ (reader.readString());
364
+ msg.setBiddingNumber(value);
365
+ break;
366
+ case 3:
367
+ var value = /** @type {string} */ (reader.readString());
368
+ msg.setRequestForQuotationReferencesId(value);
369
+ break;
370
+ case 4:
371
+ var value = /** @type {string} */ (reader.readString());
372
+ msg.setRequestForQuotationNumber(value);
373
+ break;
374
+ case 5:
375
+ var value = /** @type {string} */ (reader.readString());
376
+ msg.setDepartment(value);
377
+ break;
378
+ case 6:
379
+ var value = /** @type {string} */ (reader.readString());
380
+ msg.setBiddingStartDate(value);
381
+ break;
382
+ case 7:
383
+ var value = /** @type {string} */ (reader.readString());
384
+ msg.setBiddingEndDate(value);
385
+ break;
386
+ case 8:
387
+ var value = /** @type {string} */ (reader.readString());
388
+ msg.setTitle(value);
389
+ break;
390
+ case 9:
391
+ var value = /** @type {string} */ (reader.readString());
392
+ msg.setRemarks(value);
393
+ break;
394
+ case 10:
395
+ var value = /** @type {string} */ (reader.readString());
396
+ msg.setMaxSubmissionDate(value);
397
+ break;
398
+ case 11:
399
+ var value = /** @type {string} */ (reader.readString());
400
+ msg.setReferencesId(value);
401
+ break;
402
+ case 12:
403
+ var value = new prisca_v1_quotation_quotation_pb.Quotation;
404
+ reader.readMessage(value,prisca_v1_quotation_quotation_pb.Quotation.deserializeBinaryFromReader);
405
+ msg.addQuotation(value);
406
+ break;
407
+ case 13:
408
+ var value = /** @type {string} */ (reader.readString());
409
+ msg.setFileids(value);
410
+ break;
411
+ case 14:
412
+ var value = /** @type {string} */ (reader.readString());
413
+ msg.setCreatedBy(value);
414
+ break;
415
+ case 15:
416
+ var value = /** @type {string} */ (reader.readString());
417
+ msg.setUpdatedBy(value);
418
+ break;
419
+ case 16:
420
+ var value = /** @type {string} */ (reader.readString());
421
+ msg.setCreatedAt(value);
422
+ break;
423
+ case 17:
424
+ var value = /** @type {string} */ (reader.readString());
425
+ msg.setUpdatedAt(value);
426
+ break;
427
+ case 18:
428
+ var value = /** @type {string} */ (reader.readString());
429
+ msg.setCustomTransaction(value);
430
+ break;
431
+ case 19:
432
+ var value = new prisca_v1_core_employee_employee_pb.Employee;
433
+ reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
434
+ msg.setCreatedByEmployee(value);
435
+ break;
436
+ case 20:
437
+ var value = new prisca_v1_core_employee_employee_pb.Employee;
438
+ reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
439
+ msg.setUpdatedByEmployee(value);
440
+ break;
441
+ default:
442
+ reader.skipField();
443
+ break;
444
+ }
445
+ }
446
+ return msg;
447
+ };
448
+
449
+
450
+ /**
451
+ * Serializes the message to binary data (in protobuf wire format).
452
+ * @return {!Uint8Array}
453
+ */
454
+ proto.Bidding.prototype.serializeBinary = function() {
455
+ var writer = new jspb.BinaryWriter();
456
+ proto.Bidding.serializeBinaryToWriter(this, writer);
457
+ return writer.getResultBuffer();
458
+ };
459
+
460
+
461
+ /**
462
+ * Serializes the given message to binary data (in protobuf wire
463
+ * format), writing to the given BinaryWriter.
464
+ * @param {!proto.Bidding} message
465
+ * @param {!jspb.BinaryWriter} writer
466
+ * @suppress {unusedLocalVariables} f is only used for nested messages
467
+ */
468
+ proto.Bidding.serializeBinaryToWriter = function(message, writer) {
469
+ var f = undefined;
470
+ f = message.getId();
471
+ if (f !== 0) {
472
+ writer.writeInt64(
473
+ 1,
474
+ f
475
+ );
476
+ }
477
+ f = message.getBiddingNumber();
478
+ if (f.length > 0) {
479
+ writer.writeString(
480
+ 2,
481
+ f
482
+ );
483
+ }
484
+ f = message.getRequestForQuotationReferencesId();
485
+ if (f.length > 0) {
486
+ writer.writeString(
487
+ 3,
488
+ f
489
+ );
490
+ }
491
+ f = message.getRequestForQuotationNumber();
492
+ if (f.length > 0) {
493
+ writer.writeString(
494
+ 4,
495
+ f
496
+ );
497
+ }
498
+ f = message.getDepartment();
499
+ if (f.length > 0) {
500
+ writer.writeString(
501
+ 5,
502
+ f
503
+ );
504
+ }
505
+ f = message.getBiddingStartDate();
506
+ if (f.length > 0) {
507
+ writer.writeString(
508
+ 6,
509
+ f
510
+ );
511
+ }
512
+ f = message.getBiddingEndDate();
513
+ if (f.length > 0) {
514
+ writer.writeString(
515
+ 7,
516
+ f
517
+ );
518
+ }
519
+ f = message.getTitle();
520
+ if (f.length > 0) {
521
+ writer.writeString(
522
+ 8,
523
+ f
524
+ );
525
+ }
526
+ f = message.getRemarks();
527
+ if (f.length > 0) {
528
+ writer.writeString(
529
+ 9,
530
+ f
531
+ );
532
+ }
533
+ f = message.getMaxSubmissionDate();
534
+ if (f.length > 0) {
535
+ writer.writeString(
536
+ 10,
537
+ f
538
+ );
539
+ }
540
+ f = message.getReferencesId();
541
+ if (f.length > 0) {
542
+ writer.writeString(
543
+ 11,
544
+ f
545
+ );
546
+ }
547
+ f = message.getQuotationList();
548
+ if (f.length > 0) {
549
+ writer.writeRepeatedMessage(
550
+ 12,
551
+ f,
552
+ prisca_v1_quotation_quotation_pb.Quotation.serializeBinaryToWriter
553
+ );
554
+ }
555
+ f = message.getFileids();
556
+ if (f.length > 0) {
557
+ writer.writeString(
558
+ 13,
559
+ f
560
+ );
561
+ }
562
+ f = message.getCreatedBy();
563
+ if (f.length > 0) {
564
+ writer.writeString(
565
+ 14,
566
+ f
567
+ );
568
+ }
569
+ f = message.getUpdatedBy();
570
+ if (f.length > 0) {
571
+ writer.writeString(
572
+ 15,
573
+ f
574
+ );
575
+ }
576
+ f = message.getCreatedAt();
577
+ if (f.length > 0) {
578
+ writer.writeString(
579
+ 16,
580
+ f
581
+ );
582
+ }
583
+ f = message.getUpdatedAt();
584
+ if (f.length > 0) {
585
+ writer.writeString(
586
+ 17,
587
+ f
588
+ );
589
+ }
590
+ f = message.getCustomTransaction();
591
+ if (f.length > 0) {
592
+ writer.writeString(
593
+ 18,
594
+ f
595
+ );
596
+ }
597
+ f = message.getCreatedByEmployee();
598
+ if (f != null) {
599
+ writer.writeMessage(
600
+ 19,
601
+ f,
602
+ prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
603
+ );
604
+ }
605
+ f = message.getUpdatedByEmployee();
606
+ if (f != null) {
607
+ writer.writeMessage(
608
+ 20,
609
+ f,
610
+ prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
611
+ );
612
+ }
613
+ };
614
+
615
+
616
+ /**
617
+ * optional int64 id = 1;
618
+ * @return {number}
619
+ */
620
+ proto.Bidding.prototype.getId = function() {
621
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
622
+ };
623
+
624
+
625
+ /**
626
+ * @param {number} value
627
+ * @return {!proto.Bidding} returns this
628
+ */
629
+ proto.Bidding.prototype.setId = function(value) {
630
+ return jspb.Message.setProto3IntField(this, 1, value);
631
+ };
632
+
633
+
634
+ /**
635
+ * optional string bidding_number = 2;
636
+ * @return {string}
637
+ */
638
+ proto.Bidding.prototype.getBiddingNumber = function() {
639
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
640
+ };
641
+
642
+
643
+ /**
644
+ * @param {string} value
645
+ * @return {!proto.Bidding} returns this
646
+ */
647
+ proto.Bidding.prototype.setBiddingNumber = function(value) {
648
+ return jspb.Message.setProto3StringField(this, 2, value);
649
+ };
650
+
651
+
652
+ /**
653
+ * optional string request_for_quotation_references_id = 3;
654
+ * @return {string}
655
+ */
656
+ proto.Bidding.prototype.getRequestForQuotationReferencesId = function() {
657
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
658
+ };
659
+
660
+
661
+ /**
662
+ * @param {string} value
663
+ * @return {!proto.Bidding} returns this
664
+ */
665
+ proto.Bidding.prototype.setRequestForQuotationReferencesId = function(value) {
666
+ return jspb.Message.setProto3StringField(this, 3, value);
667
+ };
668
+
669
+
670
+ /**
671
+ * optional string request_for_quotation_number = 4;
672
+ * @return {string}
673
+ */
674
+ proto.Bidding.prototype.getRequestForQuotationNumber = function() {
675
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
676
+ };
677
+
678
+
679
+ /**
680
+ * @param {string} value
681
+ * @return {!proto.Bidding} returns this
682
+ */
683
+ proto.Bidding.prototype.setRequestForQuotationNumber = function(value) {
684
+ return jspb.Message.setProto3StringField(this, 4, value);
685
+ };
686
+
687
+
688
+ /**
689
+ * optional string department = 5;
690
+ * @return {string}
691
+ */
692
+ proto.Bidding.prototype.getDepartment = function() {
693
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
694
+ };
695
+
696
+
697
+ /**
698
+ * @param {string} value
699
+ * @return {!proto.Bidding} returns this
700
+ */
701
+ proto.Bidding.prototype.setDepartment = function(value) {
702
+ return jspb.Message.setProto3StringField(this, 5, value);
703
+ };
704
+
705
+
706
+ /**
707
+ * optional string bidding_start_date = 6;
708
+ * @return {string}
709
+ */
710
+ proto.Bidding.prototype.getBiddingStartDate = function() {
711
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
712
+ };
713
+
714
+
715
+ /**
716
+ * @param {string} value
717
+ * @return {!proto.Bidding} returns this
718
+ */
719
+ proto.Bidding.prototype.setBiddingStartDate = function(value) {
720
+ return jspb.Message.setProto3StringField(this, 6, value);
721
+ };
722
+
723
+
724
+ /**
725
+ * optional string bidding_end_date = 7;
726
+ * @return {string}
727
+ */
728
+ proto.Bidding.prototype.getBiddingEndDate = function() {
729
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
730
+ };
731
+
732
+
733
+ /**
734
+ * @param {string} value
735
+ * @return {!proto.Bidding} returns this
736
+ */
737
+ proto.Bidding.prototype.setBiddingEndDate = function(value) {
738
+ return jspb.Message.setProto3StringField(this, 7, value);
739
+ };
740
+
741
+
742
+ /**
743
+ * optional string title = 8;
744
+ * @return {string}
745
+ */
746
+ proto.Bidding.prototype.getTitle = function() {
747
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
748
+ };
749
+
750
+
751
+ /**
752
+ * @param {string} value
753
+ * @return {!proto.Bidding} returns this
754
+ */
755
+ proto.Bidding.prototype.setTitle = function(value) {
756
+ return jspb.Message.setProto3StringField(this, 8, value);
757
+ };
758
+
759
+
760
+ /**
761
+ * optional string remarks = 9;
762
+ * @return {string}
763
+ */
764
+ proto.Bidding.prototype.getRemarks = function() {
765
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
766
+ };
767
+
768
+
769
+ /**
770
+ * @param {string} value
771
+ * @return {!proto.Bidding} returns this
772
+ */
773
+ proto.Bidding.prototype.setRemarks = function(value) {
774
+ return jspb.Message.setProto3StringField(this, 9, value);
775
+ };
776
+
777
+
778
+ /**
779
+ * optional string max_submission_date = 10;
780
+ * @return {string}
781
+ */
782
+ proto.Bidding.prototype.getMaxSubmissionDate = function() {
783
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
784
+ };
785
+
786
+
787
+ /**
788
+ * @param {string} value
789
+ * @return {!proto.Bidding} returns this
790
+ */
791
+ proto.Bidding.prototype.setMaxSubmissionDate = function(value) {
792
+ return jspb.Message.setProto3StringField(this, 10, value);
793
+ };
794
+
795
+
796
+ /**
797
+ * optional string references_id = 11;
798
+ * @return {string}
799
+ */
800
+ proto.Bidding.prototype.getReferencesId = function() {
801
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
802
+ };
803
+
804
+
805
+ /**
806
+ * @param {string} value
807
+ * @return {!proto.Bidding} returns this
808
+ */
809
+ proto.Bidding.prototype.setReferencesId = function(value) {
810
+ return jspb.Message.setProto3StringField(this, 11, value);
811
+ };
812
+
813
+
814
+ /**
815
+ * repeated Quotation quotation = 12;
816
+ * @return {!Array<!proto.Quotation>}
817
+ */
818
+ proto.Bidding.prototype.getQuotationList = function() {
819
+ return /** @type{!Array<!proto.Quotation>} */ (
820
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_quotation_quotation_pb.Quotation, 12));
821
+ };
822
+
823
+
824
+ /**
825
+ * @param {!Array<!proto.Quotation>} value
826
+ * @return {!proto.Bidding} returns this
827
+ */
828
+ proto.Bidding.prototype.setQuotationList = function(value) {
829
+ return jspb.Message.setRepeatedWrapperField(this, 12, value);
830
+ };
831
+
832
+
833
+ /**
834
+ * @param {!proto.Quotation=} opt_value
835
+ * @param {number=} opt_index
836
+ * @return {!proto.Quotation}
837
+ */
838
+ proto.Bidding.prototype.addQuotation = function(opt_value, opt_index) {
839
+ return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.Quotation, opt_index);
840
+ };
841
+
842
+
843
+ /**
844
+ * Clears the list making it empty but non-null.
845
+ * @return {!proto.Bidding} returns this
846
+ */
847
+ proto.Bidding.prototype.clearQuotationList = function() {
848
+ return this.setQuotationList([]);
849
+ };
850
+
851
+
852
+ /**
853
+ * optional string fileIds = 13;
854
+ * @return {string}
855
+ */
856
+ proto.Bidding.prototype.getFileids = function() {
857
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
858
+ };
859
+
860
+
861
+ /**
862
+ * @param {string} value
863
+ * @return {!proto.Bidding} returns this
864
+ */
865
+ proto.Bidding.prototype.setFileids = function(value) {
866
+ return jspb.Message.setProto3StringField(this, 13, value);
867
+ };
868
+
869
+
870
+ /**
871
+ * optional string created_by = 14;
872
+ * @return {string}
873
+ */
874
+ proto.Bidding.prototype.getCreatedBy = function() {
875
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
876
+ };
877
+
878
+
879
+ /**
880
+ * @param {string} value
881
+ * @return {!proto.Bidding} returns this
882
+ */
883
+ proto.Bidding.prototype.setCreatedBy = function(value) {
884
+ return jspb.Message.setProto3StringField(this, 14, value);
885
+ };
886
+
887
+
888
+ /**
889
+ * optional string updated_by = 15;
890
+ * @return {string}
891
+ */
892
+ proto.Bidding.prototype.getUpdatedBy = function() {
893
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
894
+ };
895
+
896
+
897
+ /**
898
+ * @param {string} value
899
+ * @return {!proto.Bidding} returns this
900
+ */
901
+ proto.Bidding.prototype.setUpdatedBy = function(value) {
902
+ return jspb.Message.setProto3StringField(this, 15, value);
903
+ };
904
+
905
+
906
+ /**
907
+ * optional string created_at = 16;
908
+ * @return {string}
909
+ */
910
+ proto.Bidding.prototype.getCreatedAt = function() {
911
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
912
+ };
913
+
914
+
915
+ /**
916
+ * @param {string} value
917
+ * @return {!proto.Bidding} returns this
918
+ */
919
+ proto.Bidding.prototype.setCreatedAt = function(value) {
920
+ return jspb.Message.setProto3StringField(this, 16, value);
921
+ };
922
+
923
+
924
+ /**
925
+ * optional string updated_at = 17;
926
+ * @return {string}
927
+ */
928
+ proto.Bidding.prototype.getUpdatedAt = function() {
929
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
930
+ };
931
+
932
+
933
+ /**
934
+ * @param {string} value
935
+ * @return {!proto.Bidding} returns this
936
+ */
937
+ proto.Bidding.prototype.setUpdatedAt = function(value) {
938
+ return jspb.Message.setProto3StringField(this, 17, value);
939
+ };
940
+
941
+
942
+ /**
943
+ * optional string custom_transaction = 18;
944
+ * @return {string}
945
+ */
946
+ proto.Bidding.prototype.getCustomTransaction = function() {
947
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
948
+ };
949
+
950
+
951
+ /**
952
+ * @param {string} value
953
+ * @return {!proto.Bidding} returns this
954
+ */
955
+ proto.Bidding.prototype.setCustomTransaction = function(value) {
956
+ return jspb.Message.setProto3StringField(this, 18, value);
957
+ };
958
+
959
+
960
+ /**
961
+ * optional Employee created_by_employee = 19;
962
+ * @return {?proto.Employee}
963
+ */
964
+ proto.Bidding.prototype.getCreatedByEmployee = function() {
965
+ return /** @type{?proto.Employee} */ (
966
+ jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 19));
967
+ };
968
+
969
+
970
+ /**
971
+ * @param {?proto.Employee|undefined} value
972
+ * @return {!proto.Bidding} returns this
973
+ */
974
+ proto.Bidding.prototype.setCreatedByEmployee = function(value) {
975
+ return jspb.Message.setWrapperField(this, 19, value);
976
+ };
977
+
978
+
979
+ /**
980
+ * Clears the message field making it undefined.
981
+ * @return {!proto.Bidding} returns this
982
+ */
983
+ proto.Bidding.prototype.clearCreatedByEmployee = function() {
984
+ return this.setCreatedByEmployee(undefined);
985
+ };
986
+
987
+
988
+ /**
989
+ * Returns whether this field is set.
990
+ * @return {boolean}
991
+ */
992
+ proto.Bidding.prototype.hasCreatedByEmployee = function() {
993
+ return jspb.Message.getField(this, 19) != null;
994
+ };
995
+
996
+
997
+ /**
998
+ * optional Employee updated_by_employee = 20;
999
+ * @return {?proto.Employee}
1000
+ */
1001
+ proto.Bidding.prototype.getUpdatedByEmployee = function() {
1002
+ return /** @type{?proto.Employee} */ (
1003
+ jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 20));
1004
+ };
1005
+
1006
+
1007
+ /**
1008
+ * @param {?proto.Employee|undefined} value
1009
+ * @return {!proto.Bidding} returns this
1010
+ */
1011
+ proto.Bidding.prototype.setUpdatedByEmployee = function(value) {
1012
+ return jspb.Message.setWrapperField(this, 20, value);
1013
+ };
1014
+
1015
+
1016
+ /**
1017
+ * Clears the message field making it undefined.
1018
+ * @return {!proto.Bidding} returns this
1019
+ */
1020
+ proto.Bidding.prototype.clearUpdatedByEmployee = function() {
1021
+ return this.setUpdatedByEmployee(undefined);
1022
+ };
1023
+
1024
+
1025
+ /**
1026
+ * Returns whether this field is set.
1027
+ * @return {boolean}
1028
+ */
1029
+ proto.Bidding.prototype.hasUpdatedByEmployee = function() {
1030
+ return jspb.Message.getField(this, 20) != null;
1031
+ };
1032
+
1033
+
1034
+
1035
+ /**
1036
+ * List of repeated fields within this message type.
1037
+ * @private {!Array<number>}
1038
+ * @const
1039
+ */
1040
+ proto.RequestBiddingBase.repeatedFields_ = [13];
1041
+
1042
+
1043
+
1044
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1045
+ /**
1046
+ * Creates an object representation of this proto.
1047
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1048
+ * Optional fields that are not set will be set to undefined.
1049
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1050
+ * For the list of reserved names please see:
1051
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1052
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1053
+ * JSPB instance for transitional soy proto support:
1054
+ * http://goto/soy-param-migration
1055
+ * @return {!Object}
1056
+ */
1057
+ proto.RequestBiddingBase.prototype.toObject = function(opt_includeInstance) {
1058
+ return proto.RequestBiddingBase.toObject(opt_includeInstance, this);
1059
+ };
1060
+
1061
+
1062
+ /**
1063
+ * Static version of the {@see toObject} method.
1064
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1065
+ * the JSPB instance for transitional soy proto support:
1066
+ * http://goto/soy-param-migration
1067
+ * @param {!proto.RequestBiddingBase} msg The msg instance to transform.
1068
+ * @return {!Object}
1069
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1070
+ */
1071
+ proto.RequestBiddingBase.toObject = function(includeInstance, msg) {
1072
+ var f, obj = {
1073
+ biddingNumber: jspb.Message.getFieldWithDefault(msg, 1, ""),
1074
+ requestForQuotationReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1075
+ requestForQuotationNumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
1076
+ department: jspb.Message.getFieldWithDefault(msg, 4, ""),
1077
+ biddingStartDate: jspb.Message.getFieldWithDefault(msg, 5, ""),
1078
+ biddingEndDate: jspb.Message.getFieldWithDefault(msg, 6, ""),
1079
+ title: jspb.Message.getFieldWithDefault(msg, 7, ""),
1080
+ termOfPayment: jspb.Message.getFieldWithDefault(msg, 8, ""),
1081
+ maxSubmissionDate: jspb.Message.getFieldWithDefault(msg, 9, ""),
1082
+ remarks: jspb.Message.getFieldWithDefault(msg, 10, ""),
1083
+ fileIds: jspb.Message.getFieldWithDefault(msg, 11, ""),
1084
+ files: (f = msg.getFiles()) && prisca_v1_core_file_upload_file_upload_pb.FileUploadReq.toObject(includeInstance, f),
1085
+ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
1086
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance)
1087
+ };
1088
+
1089
+ if (includeInstance) {
1090
+ obj.$jspbMessageInstance = msg;
1091
+ }
1092
+ return obj;
1093
+ };
1094
+ }
1095
+
1096
+
1097
+ /**
1098
+ * Deserializes binary data (in protobuf wire format).
1099
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1100
+ * @return {!proto.RequestBiddingBase}
1101
+ */
1102
+ proto.RequestBiddingBase.deserializeBinary = function(bytes) {
1103
+ var reader = new jspb.BinaryReader(bytes);
1104
+ var msg = new proto.RequestBiddingBase;
1105
+ return proto.RequestBiddingBase.deserializeBinaryFromReader(msg, reader);
1106
+ };
1107
+
1108
+
1109
+ /**
1110
+ * Deserializes binary data (in protobuf wire format) from the
1111
+ * given reader into the given message object.
1112
+ * @param {!proto.RequestBiddingBase} msg The message object to deserialize into.
1113
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1114
+ * @return {!proto.RequestBiddingBase}
1115
+ */
1116
+ proto.RequestBiddingBase.deserializeBinaryFromReader = function(msg, reader) {
1117
+ while (reader.nextField()) {
1118
+ if (reader.isEndGroup()) {
1119
+ break;
1120
+ }
1121
+ var field = reader.getFieldNumber();
1122
+ switch (field) {
1123
+ case 1:
1124
+ var value = /** @type {string} */ (reader.readString());
1125
+ msg.setBiddingNumber(value);
1126
+ break;
1127
+ case 2:
1128
+ var value = /** @type {string} */ (reader.readString());
1129
+ msg.setRequestForQuotationReferencesId(value);
1130
+ break;
1131
+ case 3:
1132
+ var value = /** @type {string} */ (reader.readString());
1133
+ msg.setRequestForQuotationNumber(value);
1134
+ break;
1135
+ case 4:
1136
+ var value = /** @type {string} */ (reader.readString());
1137
+ msg.setDepartment(value);
1138
+ break;
1139
+ case 5:
1140
+ var value = /** @type {string} */ (reader.readString());
1141
+ msg.setBiddingStartDate(value);
1142
+ break;
1143
+ case 6:
1144
+ var value = /** @type {string} */ (reader.readString());
1145
+ msg.setBiddingEndDate(value);
1146
+ break;
1147
+ case 7:
1148
+ var value = /** @type {string} */ (reader.readString());
1149
+ msg.setTitle(value);
1150
+ break;
1151
+ case 8:
1152
+ var value = /** @type {string} */ (reader.readString());
1153
+ msg.setTermOfPayment(value);
1154
+ break;
1155
+ case 9:
1156
+ var value = /** @type {string} */ (reader.readString());
1157
+ msg.setMaxSubmissionDate(value);
1158
+ break;
1159
+ case 10:
1160
+ var value = /** @type {string} */ (reader.readString());
1161
+ msg.setRemarks(value);
1162
+ break;
1163
+ case 11:
1164
+ var value = /** @type {string} */ (reader.readString());
1165
+ msg.setFileIds(value);
1166
+ break;
1167
+ case 12:
1168
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReq;
1169
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReq.deserializeBinaryFromReader);
1170
+ msg.setFiles(value);
1171
+ break;
1172
+ case 13:
1173
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
1174
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
1175
+ msg.addItemTransactions(value);
1176
+ break;
1177
+ default:
1178
+ reader.skipField();
1179
+ break;
1180
+ }
1181
+ }
1182
+ return msg;
1183
+ };
1184
+
1185
+
1186
+ /**
1187
+ * Serializes the message to binary data (in protobuf wire format).
1188
+ * @return {!Uint8Array}
1189
+ */
1190
+ proto.RequestBiddingBase.prototype.serializeBinary = function() {
1191
+ var writer = new jspb.BinaryWriter();
1192
+ proto.RequestBiddingBase.serializeBinaryToWriter(this, writer);
1193
+ return writer.getResultBuffer();
1194
+ };
1195
+
1196
+
1197
+ /**
1198
+ * Serializes the given message to binary data (in protobuf wire
1199
+ * format), writing to the given BinaryWriter.
1200
+ * @param {!proto.RequestBiddingBase} message
1201
+ * @param {!jspb.BinaryWriter} writer
1202
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1203
+ */
1204
+ proto.RequestBiddingBase.serializeBinaryToWriter = function(message, writer) {
1205
+ var f = undefined;
1206
+ f = message.getBiddingNumber();
1207
+ if (f.length > 0) {
1208
+ writer.writeString(
1209
+ 1,
1210
+ f
1211
+ );
1212
+ }
1213
+ f = message.getRequestForQuotationReferencesId();
1214
+ if (f.length > 0) {
1215
+ writer.writeString(
1216
+ 2,
1217
+ f
1218
+ );
1219
+ }
1220
+ f = message.getRequestForQuotationNumber();
1221
+ if (f.length > 0) {
1222
+ writer.writeString(
1223
+ 3,
1224
+ f
1225
+ );
1226
+ }
1227
+ f = message.getDepartment();
1228
+ if (f.length > 0) {
1229
+ writer.writeString(
1230
+ 4,
1231
+ f
1232
+ );
1233
+ }
1234
+ f = message.getBiddingStartDate();
1235
+ if (f.length > 0) {
1236
+ writer.writeString(
1237
+ 5,
1238
+ f
1239
+ );
1240
+ }
1241
+ f = message.getBiddingEndDate();
1242
+ if (f.length > 0) {
1243
+ writer.writeString(
1244
+ 6,
1245
+ f
1246
+ );
1247
+ }
1248
+ f = message.getTitle();
1249
+ if (f.length > 0) {
1250
+ writer.writeString(
1251
+ 7,
1252
+ f
1253
+ );
1254
+ }
1255
+ f = message.getTermOfPayment();
1256
+ if (f.length > 0) {
1257
+ writer.writeString(
1258
+ 8,
1259
+ f
1260
+ );
1261
+ }
1262
+ f = message.getMaxSubmissionDate();
1263
+ if (f.length > 0) {
1264
+ writer.writeString(
1265
+ 9,
1266
+ f
1267
+ );
1268
+ }
1269
+ f = message.getRemarks();
1270
+ if (f.length > 0) {
1271
+ writer.writeString(
1272
+ 10,
1273
+ f
1274
+ );
1275
+ }
1276
+ f = message.getFileIds();
1277
+ if (f.length > 0) {
1278
+ writer.writeString(
1279
+ 11,
1280
+ f
1281
+ );
1282
+ }
1283
+ f = message.getFiles();
1284
+ if (f != null) {
1285
+ writer.writeMessage(
1286
+ 12,
1287
+ f,
1288
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReq.serializeBinaryToWriter
1289
+ );
1290
+ }
1291
+ f = message.getItemTransactionsList();
1292
+ if (f.length > 0) {
1293
+ writer.writeRepeatedMessage(
1294
+ 13,
1295
+ f,
1296
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
1297
+ );
1298
+ }
1299
+ };
1300
+
1301
+
1302
+ /**
1303
+ * optional string bidding_number = 1;
1304
+ * @return {string}
1305
+ */
1306
+ proto.RequestBiddingBase.prototype.getBiddingNumber = function() {
1307
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1308
+ };
1309
+
1310
+
1311
+ /**
1312
+ * @param {string} value
1313
+ * @return {!proto.RequestBiddingBase} returns this
1314
+ */
1315
+ proto.RequestBiddingBase.prototype.setBiddingNumber = function(value) {
1316
+ return jspb.Message.setProto3StringField(this, 1, value);
1317
+ };
1318
+
1319
+
1320
+ /**
1321
+ * optional string request_for_quotation_references_id = 2;
1322
+ * @return {string}
1323
+ */
1324
+ proto.RequestBiddingBase.prototype.getRequestForQuotationReferencesId = function() {
1325
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1326
+ };
1327
+
1328
+
1329
+ /**
1330
+ * @param {string} value
1331
+ * @return {!proto.RequestBiddingBase} returns this
1332
+ */
1333
+ proto.RequestBiddingBase.prototype.setRequestForQuotationReferencesId = function(value) {
1334
+ return jspb.Message.setProto3StringField(this, 2, value);
1335
+ };
1336
+
1337
+
1338
+ /**
1339
+ * optional string request_for_quotation_number = 3;
1340
+ * @return {string}
1341
+ */
1342
+ proto.RequestBiddingBase.prototype.getRequestForQuotationNumber = function() {
1343
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1344
+ };
1345
+
1346
+
1347
+ /**
1348
+ * @param {string} value
1349
+ * @return {!proto.RequestBiddingBase} returns this
1350
+ */
1351
+ proto.RequestBiddingBase.prototype.setRequestForQuotationNumber = function(value) {
1352
+ return jspb.Message.setProto3StringField(this, 3, value);
1353
+ };
1354
+
1355
+
1356
+ /**
1357
+ * optional string department = 4;
1358
+ * @return {string}
1359
+ */
1360
+ proto.RequestBiddingBase.prototype.getDepartment = function() {
1361
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1362
+ };
1363
+
1364
+
1365
+ /**
1366
+ * @param {string} value
1367
+ * @return {!proto.RequestBiddingBase} returns this
1368
+ */
1369
+ proto.RequestBiddingBase.prototype.setDepartment = function(value) {
1370
+ return jspb.Message.setProto3StringField(this, 4, value);
1371
+ };
1372
+
1373
+
1374
+ /**
1375
+ * optional string bidding_start_date = 5;
1376
+ * @return {string}
1377
+ */
1378
+ proto.RequestBiddingBase.prototype.getBiddingStartDate = function() {
1379
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1380
+ };
1381
+
1382
+
1383
+ /**
1384
+ * @param {string} value
1385
+ * @return {!proto.RequestBiddingBase} returns this
1386
+ */
1387
+ proto.RequestBiddingBase.prototype.setBiddingStartDate = function(value) {
1388
+ return jspb.Message.setProto3StringField(this, 5, value);
1389
+ };
1390
+
1391
+
1392
+ /**
1393
+ * optional string bidding_end_date = 6;
1394
+ * @return {string}
1395
+ */
1396
+ proto.RequestBiddingBase.prototype.getBiddingEndDate = function() {
1397
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1398
+ };
1399
+
1400
+
1401
+ /**
1402
+ * @param {string} value
1403
+ * @return {!proto.RequestBiddingBase} returns this
1404
+ */
1405
+ proto.RequestBiddingBase.prototype.setBiddingEndDate = function(value) {
1406
+ return jspb.Message.setProto3StringField(this, 6, value);
1407
+ };
1408
+
1409
+
1410
+ /**
1411
+ * optional string title = 7;
1412
+ * @return {string}
1413
+ */
1414
+ proto.RequestBiddingBase.prototype.getTitle = function() {
1415
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1416
+ };
1417
+
1418
+
1419
+ /**
1420
+ * @param {string} value
1421
+ * @return {!proto.RequestBiddingBase} returns this
1422
+ */
1423
+ proto.RequestBiddingBase.prototype.setTitle = function(value) {
1424
+ return jspb.Message.setProto3StringField(this, 7, value);
1425
+ };
1426
+
1427
+
1428
+ /**
1429
+ * optional string term_of_payment = 8;
1430
+ * @return {string}
1431
+ */
1432
+ proto.RequestBiddingBase.prototype.getTermOfPayment = function() {
1433
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1434
+ };
1435
+
1436
+
1437
+ /**
1438
+ * @param {string} value
1439
+ * @return {!proto.RequestBiddingBase} returns this
1440
+ */
1441
+ proto.RequestBiddingBase.prototype.setTermOfPayment = function(value) {
1442
+ return jspb.Message.setProto3StringField(this, 8, value);
1443
+ };
1444
+
1445
+
1446
+ /**
1447
+ * optional string max_submission_date = 9;
1448
+ * @return {string}
1449
+ */
1450
+ proto.RequestBiddingBase.prototype.getMaxSubmissionDate = function() {
1451
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1452
+ };
1453
+
1454
+
1455
+ /**
1456
+ * @param {string} value
1457
+ * @return {!proto.RequestBiddingBase} returns this
1458
+ */
1459
+ proto.RequestBiddingBase.prototype.setMaxSubmissionDate = function(value) {
1460
+ return jspb.Message.setProto3StringField(this, 9, value);
1461
+ };
1462
+
1463
+
1464
+ /**
1465
+ * optional string remarks = 10;
1466
+ * @return {string}
1467
+ */
1468
+ proto.RequestBiddingBase.prototype.getRemarks = function() {
1469
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1470
+ };
1471
+
1472
+
1473
+ /**
1474
+ * @param {string} value
1475
+ * @return {!proto.RequestBiddingBase} returns this
1476
+ */
1477
+ proto.RequestBiddingBase.prototype.setRemarks = function(value) {
1478
+ return jspb.Message.setProto3StringField(this, 10, value);
1479
+ };
1480
+
1481
+
1482
+ /**
1483
+ * optional string file_ids = 11;
1484
+ * @return {string}
1485
+ */
1486
+ proto.RequestBiddingBase.prototype.getFileIds = function() {
1487
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1488
+ };
1489
+
1490
+
1491
+ /**
1492
+ * @param {string} value
1493
+ * @return {!proto.RequestBiddingBase} returns this
1494
+ */
1495
+ proto.RequestBiddingBase.prototype.setFileIds = function(value) {
1496
+ return jspb.Message.setProto3StringField(this, 11, value);
1497
+ };
1498
+
1499
+
1500
+ /**
1501
+ * optional FileUploadReq files = 12;
1502
+ * @return {?proto.FileUploadReq}
1503
+ */
1504
+ proto.RequestBiddingBase.prototype.getFiles = function() {
1505
+ return /** @type{?proto.FileUploadReq} */ (
1506
+ jspb.Message.getWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReq, 12));
1507
+ };
1508
+
1509
+
1510
+ /**
1511
+ * @param {?proto.FileUploadReq|undefined} value
1512
+ * @return {!proto.RequestBiddingBase} returns this
1513
+ */
1514
+ proto.RequestBiddingBase.prototype.setFiles = function(value) {
1515
+ return jspb.Message.setWrapperField(this, 12, value);
1516
+ };
1517
+
1518
+
1519
+ /**
1520
+ * Clears the message field making it undefined.
1521
+ * @return {!proto.RequestBiddingBase} returns this
1522
+ */
1523
+ proto.RequestBiddingBase.prototype.clearFiles = function() {
1524
+ return this.setFiles(undefined);
1525
+ };
1526
+
1527
+
1528
+ /**
1529
+ * Returns whether this field is set.
1530
+ * @return {boolean}
1531
+ */
1532
+ proto.RequestBiddingBase.prototype.hasFiles = function() {
1533
+ return jspb.Message.getField(this, 12) != null;
1534
+ };
1535
+
1536
+
1537
+ /**
1538
+ * repeated ItemTransaction item_transactions = 13;
1539
+ * @return {!Array<!proto.ItemTransaction>}
1540
+ */
1541
+ proto.RequestBiddingBase.prototype.getItemTransactionsList = function() {
1542
+ return /** @type{!Array<!proto.ItemTransaction>} */ (
1543
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 13));
1544
+ };
1545
+
1546
+
1547
+ /**
1548
+ * @param {!Array<!proto.ItemTransaction>} value
1549
+ * @return {!proto.RequestBiddingBase} returns this
1550
+ */
1551
+ proto.RequestBiddingBase.prototype.setItemTransactionsList = function(value) {
1552
+ return jspb.Message.setRepeatedWrapperField(this, 13, value);
1553
+ };
1554
+
1555
+
1556
+ /**
1557
+ * @param {!proto.ItemTransaction=} opt_value
1558
+ * @param {number=} opt_index
1559
+ * @return {!proto.ItemTransaction}
1560
+ */
1561
+ proto.RequestBiddingBase.prototype.addItemTransactions = function(opt_value, opt_index) {
1562
+ return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.ItemTransaction, opt_index);
1563
+ };
1564
+
1565
+
1566
+ /**
1567
+ * Clears the list making it empty but non-null.
1568
+ * @return {!proto.RequestBiddingBase} returns this
1569
+ */
1570
+ proto.RequestBiddingBase.prototype.clearItemTransactionsList = function() {
1571
+ return this.setItemTransactionsList([]);
1572
+ };
1573
+
1574
+
1575
+
1576
+
1577
+
1578
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1579
+ /**
1580
+ * Creates an object representation of this proto.
1581
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1582
+ * Optional fields that are not set will be set to undefined.
1583
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1584
+ * For the list of reserved names please see:
1585
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1586
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1587
+ * JSPB instance for transitional soy proto support:
1588
+ * http://goto/soy-param-migration
1589
+ * @return {!Object}
1590
+ */
1591
+ proto.RequestBidding.prototype.toObject = function(opt_includeInstance) {
1592
+ return proto.RequestBidding.toObject(opt_includeInstance, this);
1593
+ };
1594
+
1595
+
1596
+ /**
1597
+ * Static version of the {@see toObject} method.
1598
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1599
+ * the JSPB instance for transitional soy proto support:
1600
+ * http://goto/soy-param-migration
1601
+ * @param {!proto.RequestBidding} msg The msg instance to transform.
1602
+ * @return {!Object}
1603
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1604
+ */
1605
+ proto.RequestBidding.toObject = function(includeInstance, msg) {
1606
+ var f, obj = {
1607
+ requestBidding: (f = msg.getRequestBidding()) && proto.RequestBiddingBase.toObject(includeInstance, f)
1608
+ };
1609
+
1610
+ if (includeInstance) {
1611
+ obj.$jspbMessageInstance = msg;
1612
+ }
1613
+ return obj;
1614
+ };
1615
+ }
1616
+
1617
+
1618
+ /**
1619
+ * Deserializes binary data (in protobuf wire format).
1620
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1621
+ * @return {!proto.RequestBidding}
1622
+ */
1623
+ proto.RequestBidding.deserializeBinary = function(bytes) {
1624
+ var reader = new jspb.BinaryReader(bytes);
1625
+ var msg = new proto.RequestBidding;
1626
+ return proto.RequestBidding.deserializeBinaryFromReader(msg, reader);
1627
+ };
1628
+
1629
+
1630
+ /**
1631
+ * Deserializes binary data (in protobuf wire format) from the
1632
+ * given reader into the given message object.
1633
+ * @param {!proto.RequestBidding} msg The message object to deserialize into.
1634
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1635
+ * @return {!proto.RequestBidding}
1636
+ */
1637
+ proto.RequestBidding.deserializeBinaryFromReader = function(msg, reader) {
1638
+ while (reader.nextField()) {
1639
+ if (reader.isEndGroup()) {
1640
+ break;
1641
+ }
1642
+ var field = reader.getFieldNumber();
1643
+ switch (field) {
1644
+ case 1:
1645
+ var value = new proto.RequestBiddingBase;
1646
+ reader.readMessage(value,proto.RequestBiddingBase.deserializeBinaryFromReader);
1647
+ msg.setRequestBidding(value);
1648
+ break;
1649
+ default:
1650
+ reader.skipField();
1651
+ break;
1652
+ }
1653
+ }
1654
+ return msg;
1655
+ };
1656
+
1657
+
1658
+ /**
1659
+ * Serializes the message to binary data (in protobuf wire format).
1660
+ * @return {!Uint8Array}
1661
+ */
1662
+ proto.RequestBidding.prototype.serializeBinary = function() {
1663
+ var writer = new jspb.BinaryWriter();
1664
+ proto.RequestBidding.serializeBinaryToWriter(this, writer);
1665
+ return writer.getResultBuffer();
1666
+ };
1667
+
1668
+
1669
+ /**
1670
+ * Serializes the given message to binary data (in protobuf wire
1671
+ * format), writing to the given BinaryWriter.
1672
+ * @param {!proto.RequestBidding} message
1673
+ * @param {!jspb.BinaryWriter} writer
1674
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1675
+ */
1676
+ proto.RequestBidding.serializeBinaryToWriter = function(message, writer) {
1677
+ var f = undefined;
1678
+ f = message.getRequestBidding();
1679
+ if (f != null) {
1680
+ writer.writeMessage(
1681
+ 1,
1682
+ f,
1683
+ proto.RequestBiddingBase.serializeBinaryToWriter
1684
+ );
1685
+ }
1686
+ };
1687
+
1688
+
1689
+ /**
1690
+ * optional RequestBiddingBase request_bidding = 1;
1691
+ * @return {?proto.RequestBiddingBase}
1692
+ */
1693
+ proto.RequestBidding.prototype.getRequestBidding = function() {
1694
+ return /** @type{?proto.RequestBiddingBase} */ (
1695
+ jspb.Message.getWrapperField(this, proto.RequestBiddingBase, 1));
1696
+ };
1697
+
1698
+
1699
+ /**
1700
+ * @param {?proto.RequestBiddingBase|undefined} value
1701
+ * @return {!proto.RequestBidding} returns this
1702
+ */
1703
+ proto.RequestBidding.prototype.setRequestBidding = function(value) {
1704
+ return jspb.Message.setWrapperField(this, 1, value);
1705
+ };
1706
+
1707
+
1708
+ /**
1709
+ * Clears the message field making it undefined.
1710
+ * @return {!proto.RequestBidding} returns this
1711
+ */
1712
+ proto.RequestBidding.prototype.clearRequestBidding = function() {
1713
+ return this.setRequestBidding(undefined);
1714
+ };
1715
+
1716
+
1717
+ /**
1718
+ * Returns whether this field is set.
1719
+ * @return {boolean}
1720
+ */
1721
+ proto.RequestBidding.prototype.hasRequestBidding = function() {
1722
+ return jspb.Message.getField(this, 1) != null;
1723
+ };
1724
+
1725
+
1726
+
1727
+
1728
+
1729
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1730
+ /**
1731
+ * Creates an object representation of this proto.
1732
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1733
+ * Optional fields that are not set will be set to undefined.
1734
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1735
+ * For the list of reserved names please see:
1736
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1737
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1738
+ * JSPB instance for transitional soy proto support:
1739
+ * http://goto/soy-param-migration
1740
+ * @return {!Object}
1741
+ */
1742
+ proto.GetDetailBiddingByReferences.prototype.toObject = function(opt_includeInstance) {
1743
+ return proto.GetDetailBiddingByReferences.toObject(opt_includeInstance, this);
1744
+ };
1745
+
1746
+
1747
+ /**
1748
+ * Static version of the {@see toObject} method.
1749
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1750
+ * the JSPB instance for transitional soy proto support:
1751
+ * http://goto/soy-param-migration
1752
+ * @param {!proto.GetDetailBiddingByReferences} msg The msg instance to transform.
1753
+ * @return {!Object}
1754
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1755
+ */
1756
+ proto.GetDetailBiddingByReferences.toObject = function(includeInstance, msg) {
1757
+ var f, obj = {
1758
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1759
+ };
1760
+
1761
+ if (includeInstance) {
1762
+ obj.$jspbMessageInstance = msg;
1763
+ }
1764
+ return obj;
1765
+ };
1766
+ }
1767
+
1768
+
1769
+ /**
1770
+ * Deserializes binary data (in protobuf wire format).
1771
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1772
+ * @return {!proto.GetDetailBiddingByReferences}
1773
+ */
1774
+ proto.GetDetailBiddingByReferences.deserializeBinary = function(bytes) {
1775
+ var reader = new jspb.BinaryReader(bytes);
1776
+ var msg = new proto.GetDetailBiddingByReferences;
1777
+ return proto.GetDetailBiddingByReferences.deserializeBinaryFromReader(msg, reader);
1778
+ };
1779
+
1780
+
1781
+ /**
1782
+ * Deserializes binary data (in protobuf wire format) from the
1783
+ * given reader into the given message object.
1784
+ * @param {!proto.GetDetailBiddingByReferences} msg The message object to deserialize into.
1785
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1786
+ * @return {!proto.GetDetailBiddingByReferences}
1787
+ */
1788
+ proto.GetDetailBiddingByReferences.deserializeBinaryFromReader = function(msg, reader) {
1789
+ while (reader.nextField()) {
1790
+ if (reader.isEndGroup()) {
1791
+ break;
1792
+ }
1793
+ var field = reader.getFieldNumber();
1794
+ switch (field) {
1795
+ case 1:
1796
+ var value = /** @type {string} */ (reader.readString());
1797
+ msg.setReferencesId(value);
1798
+ break;
1799
+ default:
1800
+ reader.skipField();
1801
+ break;
1802
+ }
1803
+ }
1804
+ return msg;
1805
+ };
1806
+
1807
+
1808
+ /**
1809
+ * Serializes the message to binary data (in protobuf wire format).
1810
+ * @return {!Uint8Array}
1811
+ */
1812
+ proto.GetDetailBiddingByReferences.prototype.serializeBinary = function() {
1813
+ var writer = new jspb.BinaryWriter();
1814
+ proto.GetDetailBiddingByReferences.serializeBinaryToWriter(this, writer);
1815
+ return writer.getResultBuffer();
1816
+ };
1817
+
1818
+
1819
+ /**
1820
+ * Serializes the given message to binary data (in protobuf wire
1821
+ * format), writing to the given BinaryWriter.
1822
+ * @param {!proto.GetDetailBiddingByReferences} message
1823
+ * @param {!jspb.BinaryWriter} writer
1824
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1825
+ */
1826
+ proto.GetDetailBiddingByReferences.serializeBinaryToWriter = function(message, writer) {
1827
+ var f = undefined;
1828
+ f = message.getReferencesId();
1829
+ if (f.length > 0) {
1830
+ writer.writeString(
1831
+ 1,
1832
+ f
1833
+ );
1834
+ }
1835
+ };
1836
+
1837
+
1838
+ /**
1839
+ * optional string references_id = 1;
1840
+ * @return {string}
1841
+ */
1842
+ proto.GetDetailBiddingByReferences.prototype.getReferencesId = function() {
1843
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1844
+ };
1845
+
1846
+
1847
+ /**
1848
+ * @param {string} value
1849
+ * @return {!proto.GetDetailBiddingByReferences} returns this
1850
+ */
1851
+ proto.GetDetailBiddingByReferences.prototype.setReferencesId = function(value) {
1852
+ return jspb.Message.setProto3StringField(this, 1, value);
1853
+ };
1854
+
1855
+
1856
+
1857
+
1858
+
1859
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1860
+ /**
1861
+ * Creates an object representation of this proto.
1862
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1863
+ * Optional fields that are not set will be set to undefined.
1864
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1865
+ * For the list of reserved names please see:
1866
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1867
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1868
+ * JSPB instance for transitional soy proto support:
1869
+ * http://goto/soy-param-migration
1870
+ * @return {!Object}
1871
+ */
1872
+ proto.RequestGetListBidding.prototype.toObject = function(opt_includeInstance) {
1873
+ return proto.RequestGetListBidding.toObject(opt_includeInstance, this);
1874
+ };
1875
+
1876
+
1877
+ /**
1878
+ * Static version of the {@see toObject} method.
1879
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1880
+ * the JSPB instance for transitional soy proto support:
1881
+ * http://goto/soy-param-migration
1882
+ * @param {!proto.RequestGetListBidding} msg The msg instance to transform.
1883
+ * @return {!Object}
1884
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1885
+ */
1886
+ proto.RequestGetListBidding.toObject = function(includeInstance, msg) {
1887
+ var f, obj = {
1888
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1889
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1890
+ };
1891
+
1892
+ if (includeInstance) {
1893
+ obj.$jspbMessageInstance = msg;
1894
+ }
1895
+ return obj;
1896
+ };
1897
+ }
1898
+
1899
+
1900
+ /**
1901
+ * Deserializes binary data (in protobuf wire format).
1902
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1903
+ * @return {!proto.RequestGetListBidding}
1904
+ */
1905
+ proto.RequestGetListBidding.deserializeBinary = function(bytes) {
1906
+ var reader = new jspb.BinaryReader(bytes);
1907
+ var msg = new proto.RequestGetListBidding;
1908
+ return proto.RequestGetListBidding.deserializeBinaryFromReader(msg, reader);
1909
+ };
1910
+
1911
+
1912
+ /**
1913
+ * Deserializes binary data (in protobuf wire format) from the
1914
+ * given reader into the given message object.
1915
+ * @param {!proto.RequestGetListBidding} msg The message object to deserialize into.
1916
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1917
+ * @return {!proto.RequestGetListBidding}
1918
+ */
1919
+ proto.RequestGetListBidding.deserializeBinaryFromReader = function(msg, reader) {
1920
+ while (reader.nextField()) {
1921
+ if (reader.isEndGroup()) {
1922
+ break;
1923
+ }
1924
+ var field = reader.getFieldNumber();
1925
+ switch (field) {
1926
+ case 1:
1927
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1928
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1929
+ msg.setPagination(value);
1930
+ break;
1931
+ case 2:
1932
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1933
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1934
+ msg.setQuery(value);
1935
+ break;
1936
+ default:
1937
+ reader.skipField();
1938
+ break;
1939
+ }
1940
+ }
1941
+ return msg;
1942
+ };
1943
+
1944
+
1945
+ /**
1946
+ * Serializes the message to binary data (in protobuf wire format).
1947
+ * @return {!Uint8Array}
1948
+ */
1949
+ proto.RequestGetListBidding.prototype.serializeBinary = function() {
1950
+ var writer = new jspb.BinaryWriter();
1951
+ proto.RequestGetListBidding.serializeBinaryToWriter(this, writer);
1952
+ return writer.getResultBuffer();
1953
+ };
1954
+
1955
+
1956
+ /**
1957
+ * Serializes the given message to binary data (in protobuf wire
1958
+ * format), writing to the given BinaryWriter.
1959
+ * @param {!proto.RequestGetListBidding} message
1960
+ * @param {!jspb.BinaryWriter} writer
1961
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1962
+ */
1963
+ proto.RequestGetListBidding.serializeBinaryToWriter = function(message, writer) {
1964
+ var f = undefined;
1965
+ f = message.getPagination();
1966
+ if (f != null) {
1967
+ writer.writeMessage(
1968
+ 1,
1969
+ f,
1970
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1971
+ );
1972
+ }
1973
+ f = message.getQuery();
1974
+ if (f != null) {
1975
+ writer.writeMessage(
1976
+ 2,
1977
+ f,
1978
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1979
+ );
1980
+ }
1981
+ };
1982
+
1983
+
1984
+ /**
1985
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1986
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1987
+ */
1988
+ proto.RequestGetListBidding.prototype.getPagination = function() {
1989
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1990
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1991
+ };
1992
+
1993
+
1994
+ /**
1995
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1996
+ * @return {!proto.RequestGetListBidding} returns this
1997
+ */
1998
+ proto.RequestGetListBidding.prototype.setPagination = function(value) {
1999
+ return jspb.Message.setWrapperField(this, 1, value);
2000
+ };
2001
+
2002
+
2003
+ /**
2004
+ * Clears the message field making it undefined.
2005
+ * @return {!proto.RequestGetListBidding} returns this
2006
+ */
2007
+ proto.RequestGetListBidding.prototype.clearPagination = function() {
2008
+ return this.setPagination(undefined);
2009
+ };
2010
+
2011
+
2012
+ /**
2013
+ * Returns whether this field is set.
2014
+ * @return {boolean}
2015
+ */
2016
+ proto.RequestGetListBidding.prototype.hasPagination = function() {
2017
+ return jspb.Message.getField(this, 1) != null;
2018
+ };
2019
+
2020
+
2021
+ /**
2022
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
2023
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
2024
+ */
2025
+ proto.RequestGetListBidding.prototype.getQuery = function() {
2026
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
2027
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
2028
+ };
2029
+
2030
+
2031
+ /**
2032
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
2033
+ * @return {!proto.RequestGetListBidding} returns this
2034
+ */
2035
+ proto.RequestGetListBidding.prototype.setQuery = function(value) {
2036
+ return jspb.Message.setWrapperField(this, 2, value);
2037
+ };
2038
+
2039
+
2040
+ /**
2041
+ * Clears the message field making it undefined.
2042
+ * @return {!proto.RequestGetListBidding} returns this
2043
+ */
2044
+ proto.RequestGetListBidding.prototype.clearQuery = function() {
2045
+ return this.setQuery(undefined);
2046
+ };
2047
+
2048
+
2049
+ /**
2050
+ * Returns whether this field is set.
2051
+ * @return {boolean}
2052
+ */
2053
+ proto.RequestGetListBidding.prototype.hasQuery = function() {
2054
+ return jspb.Message.getField(this, 2) != null;
2055
+ };
2056
+
2057
+
2058
+
2059
+
2060
+
2061
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2062
+ /**
2063
+ * Creates an object representation of this proto.
2064
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2065
+ * Optional fields that are not set will be set to undefined.
2066
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2067
+ * For the list of reserved names please see:
2068
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2069
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2070
+ * JSPB instance for transitional soy proto support:
2071
+ * http://goto/soy-param-migration
2072
+ * @return {!Object}
2073
+ */
2074
+ proto.ResponseBidding.prototype.toObject = function(opt_includeInstance) {
2075
+ return proto.ResponseBidding.toObject(opt_includeInstance, this);
2076
+ };
2077
+
2078
+
2079
+ /**
2080
+ * Static version of the {@see toObject} method.
2081
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2082
+ * the JSPB instance for transitional soy proto support:
2083
+ * http://goto/soy-param-migration
2084
+ * @param {!proto.ResponseBidding} msg The msg instance to transform.
2085
+ * @return {!Object}
2086
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2087
+ */
2088
+ proto.ResponseBidding.toObject = function(includeInstance, msg) {
2089
+ var f, obj = {
2090
+ bidding: (f = msg.getBidding()) && proto.Bidding.toObject(includeInstance, f),
2091
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2092
+ };
2093
+
2094
+ if (includeInstance) {
2095
+ obj.$jspbMessageInstance = msg;
2096
+ }
2097
+ return obj;
2098
+ };
2099
+ }
2100
+
2101
+
2102
+ /**
2103
+ * Deserializes binary data (in protobuf wire format).
2104
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2105
+ * @return {!proto.ResponseBidding}
2106
+ */
2107
+ proto.ResponseBidding.deserializeBinary = function(bytes) {
2108
+ var reader = new jspb.BinaryReader(bytes);
2109
+ var msg = new proto.ResponseBidding;
2110
+ return proto.ResponseBidding.deserializeBinaryFromReader(msg, reader);
2111
+ };
2112
+
2113
+
2114
+ /**
2115
+ * Deserializes binary data (in protobuf wire format) from the
2116
+ * given reader into the given message object.
2117
+ * @param {!proto.ResponseBidding} msg The message object to deserialize into.
2118
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2119
+ * @return {!proto.ResponseBidding}
2120
+ */
2121
+ proto.ResponseBidding.deserializeBinaryFromReader = function(msg, reader) {
2122
+ while (reader.nextField()) {
2123
+ if (reader.isEndGroup()) {
2124
+ break;
2125
+ }
2126
+ var field = reader.getFieldNumber();
2127
+ switch (field) {
2128
+ case 1:
2129
+ var value = new proto.Bidding;
2130
+ reader.readMessage(value,proto.Bidding.deserializeBinaryFromReader);
2131
+ msg.setBidding(value);
2132
+ break;
2133
+ case 2:
2134
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2135
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2136
+ msg.setMeta(value);
2137
+ break;
2138
+ default:
2139
+ reader.skipField();
2140
+ break;
2141
+ }
2142
+ }
2143
+ return msg;
2144
+ };
2145
+
2146
+
2147
+ /**
2148
+ * Serializes the message to binary data (in protobuf wire format).
2149
+ * @return {!Uint8Array}
2150
+ */
2151
+ proto.ResponseBidding.prototype.serializeBinary = function() {
2152
+ var writer = new jspb.BinaryWriter();
2153
+ proto.ResponseBidding.serializeBinaryToWriter(this, writer);
2154
+ return writer.getResultBuffer();
2155
+ };
2156
+
2157
+
2158
+ /**
2159
+ * Serializes the given message to binary data (in protobuf wire
2160
+ * format), writing to the given BinaryWriter.
2161
+ * @param {!proto.ResponseBidding} message
2162
+ * @param {!jspb.BinaryWriter} writer
2163
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2164
+ */
2165
+ proto.ResponseBidding.serializeBinaryToWriter = function(message, writer) {
2166
+ var f = undefined;
2167
+ f = message.getBidding();
2168
+ if (f != null) {
2169
+ writer.writeMessage(
2170
+ 1,
2171
+ f,
2172
+ proto.Bidding.serializeBinaryToWriter
2173
+ );
2174
+ }
2175
+ f = message.getMeta();
2176
+ if (f != null) {
2177
+ writer.writeMessage(
2178
+ 2,
2179
+ f,
2180
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2181
+ );
2182
+ }
2183
+ };
2184
+
2185
+
2186
+ /**
2187
+ * optional Bidding bidding = 1;
2188
+ * @return {?proto.Bidding}
2189
+ */
2190
+ proto.ResponseBidding.prototype.getBidding = function() {
2191
+ return /** @type{?proto.Bidding} */ (
2192
+ jspb.Message.getWrapperField(this, proto.Bidding, 1));
2193
+ };
2194
+
2195
+
2196
+ /**
2197
+ * @param {?proto.Bidding|undefined} value
2198
+ * @return {!proto.ResponseBidding} returns this
2199
+ */
2200
+ proto.ResponseBidding.prototype.setBidding = function(value) {
2201
+ return jspb.Message.setWrapperField(this, 1, value);
2202
+ };
2203
+
2204
+
2205
+ /**
2206
+ * Clears the message field making it undefined.
2207
+ * @return {!proto.ResponseBidding} returns this
2208
+ */
2209
+ proto.ResponseBidding.prototype.clearBidding = function() {
2210
+ return this.setBidding(undefined);
2211
+ };
2212
+
2213
+
2214
+ /**
2215
+ * Returns whether this field is set.
2216
+ * @return {boolean}
2217
+ */
2218
+ proto.ResponseBidding.prototype.hasBidding = function() {
2219
+ return jspb.Message.getField(this, 1) != null;
2220
+ };
2221
+
2222
+
2223
+ /**
2224
+ * optional prisca.v1.global.meta.Meta meta = 2;
2225
+ * @return {?proto.prisca.v1.global.meta.Meta}
2226
+ */
2227
+ proto.ResponseBidding.prototype.getMeta = function() {
2228
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2229
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2230
+ };
2231
+
2232
+
2233
+ /**
2234
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2235
+ * @return {!proto.ResponseBidding} returns this
2236
+ */
2237
+ proto.ResponseBidding.prototype.setMeta = function(value) {
2238
+ return jspb.Message.setWrapperField(this, 2, value);
2239
+ };
2240
+
2241
+
2242
+ /**
2243
+ * Clears the message field making it undefined.
2244
+ * @return {!proto.ResponseBidding} returns this
2245
+ */
2246
+ proto.ResponseBidding.prototype.clearMeta = function() {
2247
+ return this.setMeta(undefined);
2248
+ };
2249
+
2250
+
2251
+ /**
2252
+ * Returns whether this field is set.
2253
+ * @return {boolean}
2254
+ */
2255
+ proto.ResponseBidding.prototype.hasMeta = function() {
2256
+ return jspb.Message.getField(this, 2) != null;
2257
+ };
2258
+
2259
+
2260
+
2261
+
2262
+
2263
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2264
+ /**
2265
+ * Creates an object representation of this proto.
2266
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2267
+ * Optional fields that are not set will be set to undefined.
2268
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2269
+ * For the list of reserved names please see:
2270
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2271
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2272
+ * JSPB instance for transitional soy proto support:
2273
+ * http://goto/soy-param-migration
2274
+ * @return {!Object}
2275
+ */
2276
+ proto.ResponseDetailBiddingByReferences.prototype.toObject = function(opt_includeInstance) {
2277
+ return proto.ResponseDetailBiddingByReferences.toObject(opt_includeInstance, this);
2278
+ };
2279
+
2280
+
2281
+ /**
2282
+ * Static version of the {@see toObject} method.
2283
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2284
+ * the JSPB instance for transitional soy proto support:
2285
+ * http://goto/soy-param-migration
2286
+ * @param {!proto.ResponseDetailBiddingByReferences} msg The msg instance to transform.
2287
+ * @return {!Object}
2288
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2289
+ */
2290
+ proto.ResponseDetailBiddingByReferences.toObject = function(includeInstance, msg) {
2291
+ var f, obj = {
2292
+ bidding: (f = msg.getBidding()) && proto.Bidding.toObject(includeInstance, f),
2293
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2294
+ };
2295
+
2296
+ if (includeInstance) {
2297
+ obj.$jspbMessageInstance = msg;
2298
+ }
2299
+ return obj;
2300
+ };
2301
+ }
2302
+
2303
+
2304
+ /**
2305
+ * Deserializes binary data (in protobuf wire format).
2306
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2307
+ * @return {!proto.ResponseDetailBiddingByReferences}
2308
+ */
2309
+ proto.ResponseDetailBiddingByReferences.deserializeBinary = function(bytes) {
2310
+ var reader = new jspb.BinaryReader(bytes);
2311
+ var msg = new proto.ResponseDetailBiddingByReferences;
2312
+ return proto.ResponseDetailBiddingByReferences.deserializeBinaryFromReader(msg, reader);
2313
+ };
2314
+
2315
+
2316
+ /**
2317
+ * Deserializes binary data (in protobuf wire format) from the
2318
+ * given reader into the given message object.
2319
+ * @param {!proto.ResponseDetailBiddingByReferences} msg The message object to deserialize into.
2320
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2321
+ * @return {!proto.ResponseDetailBiddingByReferences}
2322
+ */
2323
+ proto.ResponseDetailBiddingByReferences.deserializeBinaryFromReader = function(msg, reader) {
2324
+ while (reader.nextField()) {
2325
+ if (reader.isEndGroup()) {
2326
+ break;
2327
+ }
2328
+ var field = reader.getFieldNumber();
2329
+ switch (field) {
2330
+ case 1:
2331
+ var value = new proto.Bidding;
2332
+ reader.readMessage(value,proto.Bidding.deserializeBinaryFromReader);
2333
+ msg.setBidding(value);
2334
+ break;
2335
+ case 2:
2336
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2337
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2338
+ msg.setMeta(value);
2339
+ break;
2340
+ default:
2341
+ reader.skipField();
2342
+ break;
2343
+ }
2344
+ }
2345
+ return msg;
2346
+ };
2347
+
2348
+
2349
+ /**
2350
+ * Serializes the message to binary data (in protobuf wire format).
2351
+ * @return {!Uint8Array}
2352
+ */
2353
+ proto.ResponseDetailBiddingByReferences.prototype.serializeBinary = function() {
2354
+ var writer = new jspb.BinaryWriter();
2355
+ proto.ResponseDetailBiddingByReferences.serializeBinaryToWriter(this, writer);
2356
+ return writer.getResultBuffer();
2357
+ };
2358
+
2359
+
2360
+ /**
2361
+ * Serializes the given message to binary data (in protobuf wire
2362
+ * format), writing to the given BinaryWriter.
2363
+ * @param {!proto.ResponseDetailBiddingByReferences} message
2364
+ * @param {!jspb.BinaryWriter} writer
2365
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2366
+ */
2367
+ proto.ResponseDetailBiddingByReferences.serializeBinaryToWriter = function(message, writer) {
2368
+ var f = undefined;
2369
+ f = message.getBidding();
2370
+ if (f != null) {
2371
+ writer.writeMessage(
2372
+ 1,
2373
+ f,
2374
+ proto.Bidding.serializeBinaryToWriter
2375
+ );
2376
+ }
2377
+ f = message.getMeta();
2378
+ if (f != null) {
2379
+ writer.writeMessage(
2380
+ 2,
2381
+ f,
2382
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2383
+ );
2384
+ }
2385
+ };
2386
+
2387
+
2388
+ /**
2389
+ * optional Bidding bidding = 1;
2390
+ * @return {?proto.Bidding}
2391
+ */
2392
+ proto.ResponseDetailBiddingByReferences.prototype.getBidding = function() {
2393
+ return /** @type{?proto.Bidding} */ (
2394
+ jspb.Message.getWrapperField(this, proto.Bidding, 1));
2395
+ };
2396
+
2397
+
2398
+ /**
2399
+ * @param {?proto.Bidding|undefined} value
2400
+ * @return {!proto.ResponseDetailBiddingByReferences} returns this
2401
+ */
2402
+ proto.ResponseDetailBiddingByReferences.prototype.setBidding = function(value) {
2403
+ return jspb.Message.setWrapperField(this, 1, value);
2404
+ };
2405
+
2406
+
2407
+ /**
2408
+ * Clears the message field making it undefined.
2409
+ * @return {!proto.ResponseDetailBiddingByReferences} returns this
2410
+ */
2411
+ proto.ResponseDetailBiddingByReferences.prototype.clearBidding = function() {
2412
+ return this.setBidding(undefined);
2413
+ };
2414
+
2415
+
2416
+ /**
2417
+ * Returns whether this field is set.
2418
+ * @return {boolean}
2419
+ */
2420
+ proto.ResponseDetailBiddingByReferences.prototype.hasBidding = function() {
2421
+ return jspb.Message.getField(this, 1) != null;
2422
+ };
2423
+
2424
+
2425
+ /**
2426
+ * optional prisca.v1.global.meta.Meta meta = 2;
2427
+ * @return {?proto.prisca.v1.global.meta.Meta}
2428
+ */
2429
+ proto.ResponseDetailBiddingByReferences.prototype.getMeta = function() {
2430
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2431
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2432
+ };
2433
+
2434
+
2435
+ /**
2436
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2437
+ * @return {!proto.ResponseDetailBiddingByReferences} returns this
2438
+ */
2439
+ proto.ResponseDetailBiddingByReferences.prototype.setMeta = function(value) {
2440
+ return jspb.Message.setWrapperField(this, 2, value);
2441
+ };
2442
+
2443
+
2444
+ /**
2445
+ * Clears the message field making it undefined.
2446
+ * @return {!proto.ResponseDetailBiddingByReferences} returns this
2447
+ */
2448
+ proto.ResponseDetailBiddingByReferences.prototype.clearMeta = function() {
2449
+ return this.setMeta(undefined);
2450
+ };
2451
+
2452
+
2453
+ /**
2454
+ * Returns whether this field is set.
2455
+ * @return {boolean}
2456
+ */
2457
+ proto.ResponseDetailBiddingByReferences.prototype.hasMeta = function() {
2458
+ return jspb.Message.getField(this, 2) != null;
2459
+ };
2460
+
2461
+
2462
+
2463
+ /**
2464
+ * List of repeated fields within this message type.
2465
+ * @private {!Array<number>}
2466
+ * @const
2467
+ */
2468
+ proto.ResponseGetListBidding.repeatedFields_ = [1];
2469
+
2470
+
2471
+
2472
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2473
+ /**
2474
+ * Creates an object representation of this proto.
2475
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2476
+ * Optional fields that are not set will be set to undefined.
2477
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2478
+ * For the list of reserved names please see:
2479
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2480
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2481
+ * JSPB instance for transitional soy proto support:
2482
+ * http://goto/soy-param-migration
2483
+ * @return {!Object}
2484
+ */
2485
+ proto.ResponseGetListBidding.prototype.toObject = function(opt_includeInstance) {
2486
+ return proto.ResponseGetListBidding.toObject(opt_includeInstance, this);
2487
+ };
2488
+
2489
+
2490
+ /**
2491
+ * Static version of the {@see toObject} method.
2492
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2493
+ * the JSPB instance for transitional soy proto support:
2494
+ * http://goto/soy-param-migration
2495
+ * @param {!proto.ResponseGetListBidding} msg The msg instance to transform.
2496
+ * @return {!Object}
2497
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2498
+ */
2499
+ proto.ResponseGetListBidding.toObject = function(includeInstance, msg) {
2500
+ var f, obj = {
2501
+ biddingList: jspb.Message.toObjectList(msg.getBiddingList(),
2502
+ proto.Bidding.toObject, includeInstance),
2503
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2504
+ };
2505
+
2506
+ if (includeInstance) {
2507
+ obj.$jspbMessageInstance = msg;
2508
+ }
2509
+ return obj;
2510
+ };
2511
+ }
2512
+
2513
+
2514
+ /**
2515
+ * Deserializes binary data (in protobuf wire format).
2516
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2517
+ * @return {!proto.ResponseGetListBidding}
2518
+ */
2519
+ proto.ResponseGetListBidding.deserializeBinary = function(bytes) {
2520
+ var reader = new jspb.BinaryReader(bytes);
2521
+ var msg = new proto.ResponseGetListBidding;
2522
+ return proto.ResponseGetListBidding.deserializeBinaryFromReader(msg, reader);
2523
+ };
2524
+
2525
+
2526
+ /**
2527
+ * Deserializes binary data (in protobuf wire format) from the
2528
+ * given reader into the given message object.
2529
+ * @param {!proto.ResponseGetListBidding} msg The message object to deserialize into.
2530
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2531
+ * @return {!proto.ResponseGetListBidding}
2532
+ */
2533
+ proto.ResponseGetListBidding.deserializeBinaryFromReader = function(msg, reader) {
2534
+ while (reader.nextField()) {
2535
+ if (reader.isEndGroup()) {
2536
+ break;
2537
+ }
2538
+ var field = reader.getFieldNumber();
2539
+ switch (field) {
2540
+ case 1:
2541
+ var value = new proto.Bidding;
2542
+ reader.readMessage(value,proto.Bidding.deserializeBinaryFromReader);
2543
+ msg.addBidding(value);
2544
+ break;
2545
+ case 2:
2546
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2547
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2548
+ msg.setMeta(value);
2549
+ break;
2550
+ default:
2551
+ reader.skipField();
2552
+ break;
2553
+ }
2554
+ }
2555
+ return msg;
2556
+ };
2557
+
2558
+
2559
+ /**
2560
+ * Serializes the message to binary data (in protobuf wire format).
2561
+ * @return {!Uint8Array}
2562
+ */
2563
+ proto.ResponseGetListBidding.prototype.serializeBinary = function() {
2564
+ var writer = new jspb.BinaryWriter();
2565
+ proto.ResponseGetListBidding.serializeBinaryToWriter(this, writer);
2566
+ return writer.getResultBuffer();
2567
+ };
2568
+
2569
+
2570
+ /**
2571
+ * Serializes the given message to binary data (in protobuf wire
2572
+ * format), writing to the given BinaryWriter.
2573
+ * @param {!proto.ResponseGetListBidding} message
2574
+ * @param {!jspb.BinaryWriter} writer
2575
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2576
+ */
2577
+ proto.ResponseGetListBidding.serializeBinaryToWriter = function(message, writer) {
2578
+ var f = undefined;
2579
+ f = message.getBiddingList();
2580
+ if (f.length > 0) {
2581
+ writer.writeRepeatedMessage(
2582
+ 1,
2583
+ f,
2584
+ proto.Bidding.serializeBinaryToWriter
2585
+ );
2586
+ }
2587
+ f = message.getMeta();
2588
+ if (f != null) {
2589
+ writer.writeMessage(
2590
+ 2,
2591
+ f,
2592
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2593
+ );
2594
+ }
2595
+ };
2596
+
2597
+
2598
+ /**
2599
+ * repeated Bidding bidding = 1;
2600
+ * @return {!Array<!proto.Bidding>}
2601
+ */
2602
+ proto.ResponseGetListBidding.prototype.getBiddingList = function() {
2603
+ return /** @type{!Array<!proto.Bidding>} */ (
2604
+ jspb.Message.getRepeatedWrapperField(this, proto.Bidding, 1));
2605
+ };
2606
+
2607
+
2608
+ /**
2609
+ * @param {!Array<!proto.Bidding>} value
2610
+ * @return {!proto.ResponseGetListBidding} returns this
2611
+ */
2612
+ proto.ResponseGetListBidding.prototype.setBiddingList = function(value) {
2613
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2614
+ };
2615
+
2616
+
2617
+ /**
2618
+ * @param {!proto.Bidding=} opt_value
2619
+ * @param {number=} opt_index
2620
+ * @return {!proto.Bidding}
2621
+ */
2622
+ proto.ResponseGetListBidding.prototype.addBidding = function(opt_value, opt_index) {
2623
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Bidding, opt_index);
2624
+ };
2625
+
2626
+
2627
+ /**
2628
+ * Clears the list making it empty but non-null.
2629
+ * @return {!proto.ResponseGetListBidding} returns this
2630
+ */
2631
+ proto.ResponseGetListBidding.prototype.clearBiddingList = function() {
2632
+ return this.setBiddingList([]);
2633
+ };
2634
+
2635
+
2636
+ /**
2637
+ * optional prisca.v1.global.meta.Meta meta = 2;
2638
+ * @return {?proto.prisca.v1.global.meta.Meta}
2639
+ */
2640
+ proto.ResponseGetListBidding.prototype.getMeta = function() {
2641
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2642
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2643
+ };
2644
+
2645
+
2646
+ /**
2647
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2648
+ * @return {!proto.ResponseGetListBidding} returns this
2649
+ */
2650
+ proto.ResponseGetListBidding.prototype.setMeta = function(value) {
2651
+ return jspb.Message.setWrapperField(this, 2, value);
2652
+ };
2653
+
2654
+
2655
+ /**
2656
+ * Clears the message field making it undefined.
2657
+ * @return {!proto.ResponseGetListBidding} returns this
2658
+ */
2659
+ proto.ResponseGetListBidding.prototype.clearMeta = function() {
2660
+ return this.setMeta(undefined);
2661
+ };
2662
+
2663
+
2664
+ /**
2665
+ * Returns whether this field is set.
2666
+ * @return {boolean}
2667
+ */
2668
+ proto.ResponseGetListBidding.prototype.hasMeta = function() {
2669
+ return jspb.Message.getField(this, 2) != null;
2670
+ };
2671
+
2672
+
2673
+
2674
+ /**
2675
+ * List of repeated fields within this message type.
2676
+ * @private {!Array<number>}
2677
+ * @const
2678
+ */
2679
+ proto.GetBiddingDetailResponse.repeatedFields_ = [1,2];
2680
+
2681
+
2682
+
2683
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2684
+ /**
2685
+ * Creates an object representation of this proto.
2686
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2687
+ * Optional fields that are not set will be set to undefined.
2688
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2689
+ * For the list of reserved names please see:
2690
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2691
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2692
+ * JSPB instance for transitional soy proto support:
2693
+ * http://goto/soy-param-migration
2694
+ * @return {!Object}
2695
+ */
2696
+ proto.GetBiddingDetailResponse.prototype.toObject = function(opt_includeInstance) {
2697
+ return proto.GetBiddingDetailResponse.toObject(opt_includeInstance, this);
2698
+ };
2699
+
2700
+
2701
+ /**
2702
+ * Static version of the {@see toObject} method.
2703
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2704
+ * the JSPB instance for transitional soy proto support:
2705
+ * http://goto/soy-param-migration
2706
+ * @param {!proto.GetBiddingDetailResponse} msg The msg instance to transform.
2707
+ * @return {!Object}
2708
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2709
+ */
2710
+ proto.GetBiddingDetailResponse.toObject = function(includeInstance, msg) {
2711
+ var f, obj = {
2712
+ transactionBuilderList: jspb.Message.toObjectList(msg.getTransactionBuilderList(),
2713
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
2714
+ transactionBuilderQuotationList: jspb.Message.toObjectList(msg.getTransactionBuilderQuotationList(),
2715
+ proto.GetQuotationDetailPreload.toObject, includeInstance)
2716
+ };
2717
+
2718
+ if (includeInstance) {
2719
+ obj.$jspbMessageInstance = msg;
2720
+ }
2721
+ return obj;
2722
+ };
2723
+ }
2724
+
2725
+
2726
+ /**
2727
+ * Deserializes binary data (in protobuf wire format).
2728
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2729
+ * @return {!proto.GetBiddingDetailResponse}
2730
+ */
2731
+ proto.GetBiddingDetailResponse.deserializeBinary = function(bytes) {
2732
+ var reader = new jspb.BinaryReader(bytes);
2733
+ var msg = new proto.GetBiddingDetailResponse;
2734
+ return proto.GetBiddingDetailResponse.deserializeBinaryFromReader(msg, reader);
2735
+ };
2736
+
2737
+
2738
+ /**
2739
+ * Deserializes binary data (in protobuf wire format) from the
2740
+ * given reader into the given message object.
2741
+ * @param {!proto.GetBiddingDetailResponse} msg The message object to deserialize into.
2742
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2743
+ * @return {!proto.GetBiddingDetailResponse}
2744
+ */
2745
+ proto.GetBiddingDetailResponse.deserializeBinaryFromReader = function(msg, reader) {
2746
+ while (reader.nextField()) {
2747
+ if (reader.isEndGroup()) {
2748
+ break;
2749
+ }
2750
+ var field = reader.getFieldNumber();
2751
+ switch (field) {
2752
+ case 1:
2753
+ var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
2754
+ reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
2755
+ msg.addTransactionBuilder(value);
2756
+ break;
2757
+ case 2:
2758
+ var value = new proto.GetQuotationDetailPreload;
2759
+ reader.readMessage(value,proto.GetQuotationDetailPreload.deserializeBinaryFromReader);
2760
+ msg.addTransactionBuilderQuotation(value);
2761
+ break;
2762
+ default:
2763
+ reader.skipField();
2764
+ break;
2765
+ }
2766
+ }
2767
+ return msg;
2768
+ };
2769
+
2770
+
2771
+ /**
2772
+ * Serializes the message to binary data (in protobuf wire format).
2773
+ * @return {!Uint8Array}
2774
+ */
2775
+ proto.GetBiddingDetailResponse.prototype.serializeBinary = function() {
2776
+ var writer = new jspb.BinaryWriter();
2777
+ proto.GetBiddingDetailResponse.serializeBinaryToWriter(this, writer);
2778
+ return writer.getResultBuffer();
2779
+ };
2780
+
2781
+
2782
+ /**
2783
+ * Serializes the given message to binary data (in protobuf wire
2784
+ * format), writing to the given BinaryWriter.
2785
+ * @param {!proto.GetBiddingDetailResponse} message
2786
+ * @param {!jspb.BinaryWriter} writer
2787
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2788
+ */
2789
+ proto.GetBiddingDetailResponse.serializeBinaryToWriter = function(message, writer) {
2790
+ var f = undefined;
2791
+ f = message.getTransactionBuilderList();
2792
+ if (f.length > 0) {
2793
+ writer.writeRepeatedMessage(
2794
+ 1,
2795
+ f,
2796
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
2797
+ );
2798
+ }
2799
+ f = message.getTransactionBuilderQuotationList();
2800
+ if (f.length > 0) {
2801
+ writer.writeRepeatedMessage(
2802
+ 2,
2803
+ f,
2804
+ proto.GetQuotationDetailPreload.serializeBinaryToWriter
2805
+ );
2806
+ }
2807
+ };
2808
+
2809
+
2810
+ /**
2811
+ * repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder = 1;
2812
+ * @return {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>}
2813
+ */
2814
+ proto.GetBiddingDetailResponse.prototype.getTransactionBuilderList = function() {
2815
+ return /** @type{!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} */ (
2816
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
2817
+ };
2818
+
2819
+
2820
+ /**
2821
+ * @param {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} value
2822
+ * @return {!proto.GetBiddingDetailResponse} returns this
2823
+ */
2824
+ proto.GetBiddingDetailResponse.prototype.setTransactionBuilderList = function(value) {
2825
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2826
+ };
2827
+
2828
+
2829
+ /**
2830
+ * @param {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail=} opt_value
2831
+ * @param {number=} opt_index
2832
+ * @return {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail}
2833
+ */
2834
+ proto.GetBiddingDetailResponse.prototype.addTransactionBuilder = function(opt_value, opt_index) {
2835
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail, opt_index);
2836
+ };
2837
+
2838
+
2839
+ /**
2840
+ * Clears the list making it empty but non-null.
2841
+ * @return {!proto.GetBiddingDetailResponse} returns this
2842
+ */
2843
+ proto.GetBiddingDetailResponse.prototype.clearTransactionBuilderList = function() {
2844
+ return this.setTransactionBuilderList([]);
2845
+ };
2846
+
2847
+
2848
+ /**
2849
+ * repeated GetQuotationDetailPreload transaction_builder_quotation = 2;
2850
+ * @return {!Array<!proto.GetQuotationDetailPreload>}
2851
+ */
2852
+ proto.GetBiddingDetailResponse.prototype.getTransactionBuilderQuotationList = function() {
2853
+ return /** @type{!Array<!proto.GetQuotationDetailPreload>} */ (
2854
+ jspb.Message.getRepeatedWrapperField(this, proto.GetQuotationDetailPreload, 2));
2855
+ };
2856
+
2857
+
2858
+ /**
2859
+ * @param {!Array<!proto.GetQuotationDetailPreload>} value
2860
+ * @return {!proto.GetBiddingDetailResponse} returns this
2861
+ */
2862
+ proto.GetBiddingDetailResponse.prototype.setTransactionBuilderQuotationList = function(value) {
2863
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
2864
+ };
2865
+
2866
+
2867
+ /**
2868
+ * @param {!proto.GetQuotationDetailPreload=} opt_value
2869
+ * @param {number=} opt_index
2870
+ * @return {!proto.GetQuotationDetailPreload}
2871
+ */
2872
+ proto.GetBiddingDetailResponse.prototype.addTransactionBuilderQuotation = function(opt_value, opt_index) {
2873
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetQuotationDetailPreload, opt_index);
2874
+ };
2875
+
2876
+
2877
+ /**
2878
+ * Clears the list making it empty but non-null.
2879
+ * @return {!proto.GetBiddingDetailResponse} returns this
2880
+ */
2881
+ proto.GetBiddingDetailResponse.prototype.clearTransactionBuilderQuotationList = function() {
2882
+ return this.setTransactionBuilderQuotationList([]);
2883
+ };
2884
+
2885
+
2886
+
2887
+ /**
2888
+ * List of repeated fields within this message type.
2889
+ * @private {!Array<number>}
2890
+ * @const
2891
+ */
2892
+ proto.GetQuotationDetailPreload.repeatedFields_ = [1,2,3];
2893
+
2894
+
2895
+
2896
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2897
+ /**
2898
+ * Creates an object representation of this proto.
2899
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2900
+ * Optional fields that are not set will be set to undefined.
2901
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2902
+ * For the list of reserved names please see:
2903
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2904
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2905
+ * JSPB instance for transitional soy proto support:
2906
+ * http://goto/soy-param-migration
2907
+ * @return {!Object}
2908
+ */
2909
+ proto.GetQuotationDetailPreload.prototype.toObject = function(opt_includeInstance) {
2910
+ return proto.GetQuotationDetailPreload.toObject(opt_includeInstance, this);
2911
+ };
2912
+
2913
+
2914
+ /**
2915
+ * Static version of the {@see toObject} method.
2916
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2917
+ * the JSPB instance for transitional soy proto support:
2918
+ * http://goto/soy-param-migration
2919
+ * @param {!proto.GetQuotationDetailPreload} msg The msg instance to transform.
2920
+ * @return {!Object}
2921
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2922
+ */
2923
+ proto.GetQuotationDetailPreload.toObject = function(includeInstance, msg) {
2924
+ var f, obj = {
2925
+ transactionBuilderList: jspb.Message.toObjectList(msg.getTransactionBuilderList(),
2926
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
2927
+ transactionBuilderItemsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemsList(),
2928
+ prisca_v1_quotation_quotation_pb.GetQuotationItemPreload.toObject, includeInstance),
2929
+ transactionBuilderVendorsList: jspb.Message.toObjectList(msg.getTransactionBuilderVendorsList(),
2930
+ prisca_v1_quotation_quotation_pb.GetQuotationVendorPreload.toObject, includeInstance)
2931
+ };
2932
+
2933
+ if (includeInstance) {
2934
+ obj.$jspbMessageInstance = msg;
2935
+ }
2936
+ return obj;
2937
+ };
2938
+ }
2939
+
2940
+
2941
+ /**
2942
+ * Deserializes binary data (in protobuf wire format).
2943
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2944
+ * @return {!proto.GetQuotationDetailPreload}
2945
+ */
2946
+ proto.GetQuotationDetailPreload.deserializeBinary = function(bytes) {
2947
+ var reader = new jspb.BinaryReader(bytes);
2948
+ var msg = new proto.GetQuotationDetailPreload;
2949
+ return proto.GetQuotationDetailPreload.deserializeBinaryFromReader(msg, reader);
2950
+ };
2951
+
2952
+
2953
+ /**
2954
+ * Deserializes binary data (in protobuf wire format) from the
2955
+ * given reader into the given message object.
2956
+ * @param {!proto.GetQuotationDetailPreload} msg The message object to deserialize into.
2957
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2958
+ * @return {!proto.GetQuotationDetailPreload}
2959
+ */
2960
+ proto.GetQuotationDetailPreload.deserializeBinaryFromReader = function(msg, reader) {
2961
+ while (reader.nextField()) {
2962
+ if (reader.isEndGroup()) {
2963
+ break;
2964
+ }
2965
+ var field = reader.getFieldNumber();
2966
+ switch (field) {
2967
+ case 1:
2968
+ var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
2969
+ reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
2970
+ msg.addTransactionBuilder(value);
2971
+ break;
2972
+ case 2:
2973
+ var value = new prisca_v1_quotation_quotation_pb.GetQuotationItemPreload;
2974
+ reader.readMessage(value,prisca_v1_quotation_quotation_pb.GetQuotationItemPreload.deserializeBinaryFromReader);
2975
+ msg.addTransactionBuilderItems(value);
2976
+ break;
2977
+ case 3:
2978
+ var value = new prisca_v1_quotation_quotation_pb.GetQuotationVendorPreload;
2979
+ reader.readMessage(value,prisca_v1_quotation_quotation_pb.GetQuotationVendorPreload.deserializeBinaryFromReader);
2980
+ msg.addTransactionBuilderVendors(value);
2981
+ break;
2982
+ default:
2983
+ reader.skipField();
2984
+ break;
2985
+ }
2986
+ }
2987
+ return msg;
2988
+ };
2989
+
2990
+
2991
+ /**
2992
+ * Serializes the message to binary data (in protobuf wire format).
2993
+ * @return {!Uint8Array}
2994
+ */
2995
+ proto.GetQuotationDetailPreload.prototype.serializeBinary = function() {
2996
+ var writer = new jspb.BinaryWriter();
2997
+ proto.GetQuotationDetailPreload.serializeBinaryToWriter(this, writer);
2998
+ return writer.getResultBuffer();
2999
+ };
3000
+
3001
+
3002
+ /**
3003
+ * Serializes the given message to binary data (in protobuf wire
3004
+ * format), writing to the given BinaryWriter.
3005
+ * @param {!proto.GetQuotationDetailPreload} message
3006
+ * @param {!jspb.BinaryWriter} writer
3007
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3008
+ */
3009
+ proto.GetQuotationDetailPreload.serializeBinaryToWriter = function(message, writer) {
3010
+ var f = undefined;
3011
+ f = message.getTransactionBuilderList();
3012
+ if (f.length > 0) {
3013
+ writer.writeRepeatedMessage(
3014
+ 1,
3015
+ f,
3016
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
3017
+ );
3018
+ }
3019
+ f = message.getTransactionBuilderItemsList();
3020
+ if (f.length > 0) {
3021
+ writer.writeRepeatedMessage(
3022
+ 2,
3023
+ f,
3024
+ prisca_v1_quotation_quotation_pb.GetQuotationItemPreload.serializeBinaryToWriter
3025
+ );
3026
+ }
3027
+ f = message.getTransactionBuilderVendorsList();
3028
+ if (f.length > 0) {
3029
+ writer.writeRepeatedMessage(
3030
+ 3,
3031
+ f,
3032
+ prisca_v1_quotation_quotation_pb.GetQuotationVendorPreload.serializeBinaryToWriter
3033
+ );
3034
+ }
3035
+ };
3036
+
3037
+
3038
+ /**
3039
+ * repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder = 1;
3040
+ * @return {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>}
3041
+ */
3042
+ proto.GetQuotationDetailPreload.prototype.getTransactionBuilderList = function() {
3043
+ return /** @type{!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} */ (
3044
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
3045
+ };
3046
+
3047
+
3048
+ /**
3049
+ * @param {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail>} value
3050
+ * @return {!proto.GetQuotationDetailPreload} returns this
3051
+ */
3052
+ proto.GetQuotationDetailPreload.prototype.setTransactionBuilderList = function(value) {
3053
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3054
+ };
3055
+
3056
+
3057
+ /**
3058
+ * @param {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail=} opt_value
3059
+ * @param {number=} opt_index
3060
+ * @return {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail}
3061
+ */
3062
+ proto.GetQuotationDetailPreload.prototype.addTransactionBuilder = function(opt_value, opt_index) {
3063
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail, opt_index);
3064
+ };
3065
+
3066
+
3067
+ /**
3068
+ * Clears the list making it empty but non-null.
3069
+ * @return {!proto.GetQuotationDetailPreload} returns this
3070
+ */
3071
+ proto.GetQuotationDetailPreload.prototype.clearTransactionBuilderList = function() {
3072
+ return this.setTransactionBuilderList([]);
3073
+ };
3074
+
3075
+
3076
+ /**
3077
+ * repeated GetQuotationItemPreload transaction_builder_items = 2;
3078
+ * @return {!Array<!proto.GetQuotationItemPreload>}
3079
+ */
3080
+ proto.GetQuotationDetailPreload.prototype.getTransactionBuilderItemsList = function() {
3081
+ return /** @type{!Array<!proto.GetQuotationItemPreload>} */ (
3082
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_quotation_quotation_pb.GetQuotationItemPreload, 2));
3083
+ };
3084
+
3085
+
3086
+ /**
3087
+ * @param {!Array<!proto.GetQuotationItemPreload>} value
3088
+ * @return {!proto.GetQuotationDetailPreload} returns this
3089
+ */
3090
+ proto.GetQuotationDetailPreload.prototype.setTransactionBuilderItemsList = function(value) {
3091
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
3092
+ };
3093
+
3094
+
3095
+ /**
3096
+ * @param {!proto.GetQuotationItemPreload=} opt_value
3097
+ * @param {number=} opt_index
3098
+ * @return {!proto.GetQuotationItemPreload}
3099
+ */
3100
+ proto.GetQuotationDetailPreload.prototype.addTransactionBuilderItems = function(opt_value, opt_index) {
3101
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetQuotationItemPreload, opt_index);
3102
+ };
3103
+
3104
+
3105
+ /**
3106
+ * Clears the list making it empty but non-null.
3107
+ * @return {!proto.GetQuotationDetailPreload} returns this
3108
+ */
3109
+ proto.GetQuotationDetailPreload.prototype.clearTransactionBuilderItemsList = function() {
3110
+ return this.setTransactionBuilderItemsList([]);
3111
+ };
3112
+
3113
+
3114
+ /**
3115
+ * repeated GetQuotationVendorPreload transaction_builder_vendors = 3;
3116
+ * @return {!Array<!proto.GetQuotationVendorPreload>}
3117
+ */
3118
+ proto.GetQuotationDetailPreload.prototype.getTransactionBuilderVendorsList = function() {
3119
+ return /** @type{!Array<!proto.GetQuotationVendorPreload>} */ (
3120
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_quotation_quotation_pb.GetQuotationVendorPreload, 3));
3121
+ };
3122
+
3123
+
3124
+ /**
3125
+ * @param {!Array<!proto.GetQuotationVendorPreload>} value
3126
+ * @return {!proto.GetQuotationDetailPreload} returns this
3127
+ */
3128
+ proto.GetQuotationDetailPreload.prototype.setTransactionBuilderVendorsList = function(value) {
3129
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
3130
+ };
3131
+
3132
+
3133
+ /**
3134
+ * @param {!proto.GetQuotationVendorPreload=} opt_value
3135
+ * @param {number=} opt_index
3136
+ * @return {!proto.GetQuotationVendorPreload}
3137
+ */
3138
+ proto.GetQuotationDetailPreload.prototype.addTransactionBuilderVendors = function(opt_value, opt_index) {
3139
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.GetQuotationVendorPreload, opt_index);
3140
+ };
3141
+
3142
+
3143
+ /**
3144
+ * Clears the list making it empty but non-null.
3145
+ * @return {!proto.GetQuotationDetailPreload} returns this
3146
+ */
3147
+ proto.GetQuotationDetailPreload.prototype.clearTransactionBuilderVendorsList = function() {
3148
+ return this.setTransactionBuilderVendorsList([]);
3149
+ };
3150
+
3151
+
3152
+ goog.object.extend(exports, proto);