@marleena/trb-proto 0.1.1 → 0.1.2

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