@marleena/trb-proto 1.0.28 → 1.0.29

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