@marleena/trb-proto 1.0.28 → 1.0.30

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 (50) hide show
  1. package/README.md +15 -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/AdminServiceClientPb.ts +1591 -0
  37. package/gen/js-ts/postgresql/PostgresqlServiceClientPb.ts +129 -0
  38. package/gen/js-ts/postgresql/admin_pb.d.ts +1895 -0
  39. package/gen/js-ts/postgresql/admin_pb.js +15465 -0
  40. package/gen/js-ts/postgresql/postgresql_pb.d.ts +156 -0
  41. package/gen/js-ts/postgresql/postgresql_pb.js +1311 -0
  42. package/gen/js-ts/{api/test → test}/TestServiceClientPb.ts +16 -16
  43. package/gen/js-ts/{api/test → test}/test_pb.d.ts +5 -5
  44. package/gen/js-ts/{api/test → test}/test_pb.js +58 -58
  45. package/package.json +1 -1
  46. package/gen/js-ts/api/clickhouse/ManagerServiceClientPb.ts +0 -1161
  47. package/gen/js-ts/api/db_api/Db_apiServiceClientPb.ts +0 -302
  48. package/gen/js-ts/api/db_api/db_api_pb.js +0 -3723
  49. package/gen/js-ts/api/nats/ManagerServiceClientPb.ts +0 -1032
  50. /package/gen/js-ts/{tinvest → api/tinvest}/common_pb.d.ts +0 -0
@@ -0,0 +1,2440 @@
1
+ // source: clickhouse/clickhouse.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 api_tinvest_instruments_pb = require('../api/tinvest/instruments_pb.js');
29
+ goog.object.extend(proto, api_tinvest_instruments_pb);
30
+ goog.exportSymbol('proto.trb.clickhouse.v1.InstrumentListItem', null, global);
31
+ goog.exportSymbol('proto.trb.clickhouse.v1.InstrumentVersion', null, global);
32
+ goog.exportSymbol('proto.trb.clickhouse.v1.LastDownload', null, global);
33
+ goog.exportSymbol('proto.trb.clickhouse.v1.ListFilter', null, global);
34
+ goog.exportSymbol('proto.trb.clickhouse.v1.ListInstrumentVersionsRequest', null, global);
35
+ goog.exportSymbol('proto.trb.clickhouse.v1.ListInstrumentVersionsResponse', null, global);
36
+ goog.exportSymbol('proto.trb.clickhouse.v1.ListInstrumentsRequest', null, global);
37
+ goog.exportSymbol('proto.trb.clickhouse.v1.ListInstrumentsResponse', null, global);
38
+ goog.exportSymbol('proto.trb.clickhouse.v1.ListLastDownloadsRequest', null, global);
39
+ goog.exportSymbol('proto.trb.clickhouse.v1.ListLastDownloadsResponse', null, global);
40
+ goog.exportSymbol('proto.trb.clickhouse.v1.UpsertInstrumentsResponse', null, global);
41
+ /**
42
+ * Generated by JsPbCodeGenerator.
43
+ * @param {Array=} opt_data Optional initial data array, typically from a
44
+ * server response, or constructed directly in Javascript. The array is used
45
+ * in place and becomes part of the constructed object. It is not cloned.
46
+ * If no data is provided, the constructed object will be empty, but still
47
+ * valid.
48
+ * @extends {jspb.Message}
49
+ * @constructor
50
+ */
51
+ proto.trb.clickhouse.v1.ListFilter = function(opt_data) {
52
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
53
+ };
54
+ goog.inherits(proto.trb.clickhouse.v1.ListFilter, jspb.Message);
55
+ if (goog.DEBUG && !COMPILED) {
56
+ /**
57
+ * @public
58
+ * @override
59
+ */
60
+ proto.trb.clickhouse.v1.ListFilter.displayName = 'proto.trb.clickhouse.v1.ListFilter';
61
+ }
62
+ /**
63
+ * Generated by JsPbCodeGenerator.
64
+ * @param {Array=} opt_data Optional initial data array, typically from a
65
+ * server response, or constructed directly in Javascript. The array is used
66
+ * in place and becomes part of the constructed object. It is not cloned.
67
+ * If no data is provided, the constructed object will be empty, but still
68
+ * valid.
69
+ * @extends {jspb.Message}
70
+ * @constructor
71
+ */
72
+ proto.trb.clickhouse.v1.ListInstrumentsRequest = function(opt_data) {
73
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
74
+ };
75
+ goog.inherits(proto.trb.clickhouse.v1.ListInstrumentsRequest, jspb.Message);
76
+ if (goog.DEBUG && !COMPILED) {
77
+ /**
78
+ * @public
79
+ * @override
80
+ */
81
+ proto.trb.clickhouse.v1.ListInstrumentsRequest.displayName = 'proto.trb.clickhouse.v1.ListInstrumentsRequest';
82
+ }
83
+ /**
84
+ * Generated by JsPbCodeGenerator.
85
+ * @param {Array=} opt_data Optional initial data array, typically from a
86
+ * server response, or constructed directly in Javascript. The array is used
87
+ * in place and becomes part of the constructed object. It is not cloned.
88
+ * If no data is provided, the constructed object will be empty, but still
89
+ * valid.
90
+ * @extends {jspb.Message}
91
+ * @constructor
92
+ */
93
+ proto.trb.clickhouse.v1.InstrumentListItem = function(opt_data) {
94
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
95
+ };
96
+ goog.inherits(proto.trb.clickhouse.v1.InstrumentListItem, jspb.Message);
97
+ if (goog.DEBUG && !COMPILED) {
98
+ /**
99
+ * @public
100
+ * @override
101
+ */
102
+ proto.trb.clickhouse.v1.InstrumentListItem.displayName = 'proto.trb.clickhouse.v1.InstrumentListItem';
103
+ }
104
+ /**
105
+ * Generated by JsPbCodeGenerator.
106
+ * @param {Array=} opt_data Optional initial data array, typically from a
107
+ * server response, or constructed directly in Javascript. The array is used
108
+ * in place and becomes part of the constructed object. It is not cloned.
109
+ * If no data is provided, the constructed object will be empty, but still
110
+ * valid.
111
+ * @extends {jspb.Message}
112
+ * @constructor
113
+ */
114
+ proto.trb.clickhouse.v1.ListInstrumentsResponse = function(opt_data) {
115
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.clickhouse.v1.ListInstrumentsResponse.repeatedFields_, null);
116
+ };
117
+ goog.inherits(proto.trb.clickhouse.v1.ListInstrumentsResponse, jspb.Message);
118
+ if (goog.DEBUG && !COMPILED) {
119
+ /**
120
+ * @public
121
+ * @override
122
+ */
123
+ proto.trb.clickhouse.v1.ListInstrumentsResponse.displayName = 'proto.trb.clickhouse.v1.ListInstrumentsResponse';
124
+ }
125
+ /**
126
+ * Generated by JsPbCodeGenerator.
127
+ * @param {Array=} opt_data Optional initial data array, typically from a
128
+ * server response, or constructed directly in Javascript. The array is used
129
+ * in place and becomes part of the constructed object. It is not cloned.
130
+ * If no data is provided, the constructed object will be empty, but still
131
+ * valid.
132
+ * @extends {jspb.Message}
133
+ * @constructor
134
+ */
135
+ proto.trb.clickhouse.v1.ListInstrumentVersionsRequest = function(opt_data) {
136
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
137
+ };
138
+ goog.inherits(proto.trb.clickhouse.v1.ListInstrumentVersionsRequest, jspb.Message);
139
+ if (goog.DEBUG && !COMPILED) {
140
+ /**
141
+ * @public
142
+ * @override
143
+ */
144
+ proto.trb.clickhouse.v1.ListInstrumentVersionsRequest.displayName = 'proto.trb.clickhouse.v1.ListInstrumentVersionsRequest';
145
+ }
146
+ /**
147
+ * Generated by JsPbCodeGenerator.
148
+ * @param {Array=} opt_data Optional initial data array, typically from a
149
+ * server response, or constructed directly in Javascript. The array is used
150
+ * in place and becomes part of the constructed object. It is not cloned.
151
+ * If no data is provided, the constructed object will be empty, but still
152
+ * valid.
153
+ * @extends {jspb.Message}
154
+ * @constructor
155
+ */
156
+ proto.trb.clickhouse.v1.InstrumentVersion = function(opt_data) {
157
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
158
+ };
159
+ goog.inherits(proto.trb.clickhouse.v1.InstrumentVersion, jspb.Message);
160
+ if (goog.DEBUG && !COMPILED) {
161
+ /**
162
+ * @public
163
+ * @override
164
+ */
165
+ proto.trb.clickhouse.v1.InstrumentVersion.displayName = 'proto.trb.clickhouse.v1.InstrumentVersion';
166
+ }
167
+ /**
168
+ * Generated by JsPbCodeGenerator.
169
+ * @param {Array=} opt_data Optional initial data array, typically from a
170
+ * server response, or constructed directly in Javascript. The array is used
171
+ * in place and becomes part of the constructed object. It is not cloned.
172
+ * If no data is provided, the constructed object will be empty, but still
173
+ * valid.
174
+ * @extends {jspb.Message}
175
+ * @constructor
176
+ */
177
+ proto.trb.clickhouse.v1.ListInstrumentVersionsResponse = function(opt_data) {
178
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.clickhouse.v1.ListInstrumentVersionsResponse.repeatedFields_, null);
179
+ };
180
+ goog.inherits(proto.trb.clickhouse.v1.ListInstrumentVersionsResponse, jspb.Message);
181
+ if (goog.DEBUG && !COMPILED) {
182
+ /**
183
+ * @public
184
+ * @override
185
+ */
186
+ proto.trb.clickhouse.v1.ListInstrumentVersionsResponse.displayName = 'proto.trb.clickhouse.v1.ListInstrumentVersionsResponse';
187
+ }
188
+ /**
189
+ * Generated by JsPbCodeGenerator.
190
+ * @param {Array=} opt_data Optional initial data array, typically from a
191
+ * server response, or constructed directly in Javascript. The array is used
192
+ * in place and becomes part of the constructed object. It is not cloned.
193
+ * If no data is provided, the constructed object will be empty, but still
194
+ * valid.
195
+ * @extends {jspb.Message}
196
+ * @constructor
197
+ */
198
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse = function(opt_data) {
199
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
200
+ };
201
+ goog.inherits(proto.trb.clickhouse.v1.UpsertInstrumentsResponse, jspb.Message);
202
+ if (goog.DEBUG && !COMPILED) {
203
+ /**
204
+ * @public
205
+ * @override
206
+ */
207
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse.displayName = 'proto.trb.clickhouse.v1.UpsertInstrumentsResponse';
208
+ }
209
+ /**
210
+ * Generated by JsPbCodeGenerator.
211
+ * @param {Array=} opt_data Optional initial data array, typically from a
212
+ * server response, or constructed directly in Javascript. The array is used
213
+ * in place and becomes part of the constructed object. It is not cloned.
214
+ * If no data is provided, the constructed object will be empty, but still
215
+ * valid.
216
+ * @extends {jspb.Message}
217
+ * @constructor
218
+ */
219
+ proto.trb.clickhouse.v1.ListLastDownloadsRequest = function(opt_data) {
220
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
221
+ };
222
+ goog.inherits(proto.trb.clickhouse.v1.ListLastDownloadsRequest, jspb.Message);
223
+ if (goog.DEBUG && !COMPILED) {
224
+ /**
225
+ * @public
226
+ * @override
227
+ */
228
+ proto.trb.clickhouse.v1.ListLastDownloadsRequest.displayName = 'proto.trb.clickhouse.v1.ListLastDownloadsRequest';
229
+ }
230
+ /**
231
+ * Generated by JsPbCodeGenerator.
232
+ * @param {Array=} opt_data Optional initial data array, typically from a
233
+ * server response, or constructed directly in Javascript. The array is used
234
+ * in place and becomes part of the constructed object. It is not cloned.
235
+ * If no data is provided, the constructed object will be empty, but still
236
+ * valid.
237
+ * @extends {jspb.Message}
238
+ * @constructor
239
+ */
240
+ proto.trb.clickhouse.v1.ListLastDownloadsResponse = function(opt_data) {
241
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.clickhouse.v1.ListLastDownloadsResponse.repeatedFields_, null);
242
+ };
243
+ goog.inherits(proto.trb.clickhouse.v1.ListLastDownloadsResponse, jspb.Message);
244
+ if (goog.DEBUG && !COMPILED) {
245
+ /**
246
+ * @public
247
+ * @override
248
+ */
249
+ proto.trb.clickhouse.v1.ListLastDownloadsResponse.displayName = 'proto.trb.clickhouse.v1.ListLastDownloadsResponse';
250
+ }
251
+ /**
252
+ * Generated by JsPbCodeGenerator.
253
+ * @param {Array=} opt_data Optional initial data array, typically from a
254
+ * server response, or constructed directly in Javascript. The array is used
255
+ * in place and becomes part of the constructed object. It is not cloned.
256
+ * If no data is provided, the constructed object will be empty, but still
257
+ * valid.
258
+ * @extends {jspb.Message}
259
+ * @constructor
260
+ */
261
+ proto.trb.clickhouse.v1.LastDownload = function(opt_data) {
262
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
263
+ };
264
+ goog.inherits(proto.trb.clickhouse.v1.LastDownload, jspb.Message);
265
+ if (goog.DEBUG && !COMPILED) {
266
+ /**
267
+ * @public
268
+ * @override
269
+ */
270
+ proto.trb.clickhouse.v1.LastDownload.displayName = 'proto.trb.clickhouse.v1.LastDownload';
271
+ }
272
+
273
+
274
+
275
+ if (jspb.Message.GENERATE_TO_OBJECT) {
276
+ /**
277
+ * Creates an object representation of this proto.
278
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
279
+ * Optional fields that are not set will be set to undefined.
280
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
281
+ * For the list of reserved names please see:
282
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
283
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
284
+ * JSPB instance for transitional soy proto support:
285
+ * http://goto/soy-param-migration
286
+ * @return {!Object}
287
+ */
288
+ proto.trb.clickhouse.v1.ListFilter.prototype.toObject = function(opt_includeInstance) {
289
+ return proto.trb.clickhouse.v1.ListFilter.toObject(opt_includeInstance, this);
290
+ };
291
+
292
+
293
+ /**
294
+ * Static version of the {@see toObject} method.
295
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
296
+ * the JSPB instance for transitional soy proto support:
297
+ * http://goto/soy-param-migration
298
+ * @param {!proto.trb.clickhouse.v1.ListFilter} msg The msg instance to transform.
299
+ * @return {!Object}
300
+ * @suppress {unusedLocalVariables} f is only used for nested messages
301
+ */
302
+ proto.trb.clickhouse.v1.ListFilter.toObject = function(includeInstance, msg) {
303
+ var f, obj = {
304
+ q: jspb.Message.getFieldWithDefault(msg, 1, ""),
305
+ limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
306
+ offset: jspb.Message.getFieldWithDefault(msg, 3, 0)
307
+ };
308
+
309
+ if (includeInstance) {
310
+ obj.$jspbMessageInstance = msg;
311
+ }
312
+ return obj;
313
+ };
314
+ }
315
+
316
+
317
+ /**
318
+ * Deserializes binary data (in protobuf wire format).
319
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
320
+ * @return {!proto.trb.clickhouse.v1.ListFilter}
321
+ */
322
+ proto.trb.clickhouse.v1.ListFilter.deserializeBinary = function(bytes) {
323
+ var reader = new jspb.BinaryReader(bytes);
324
+ var msg = new proto.trb.clickhouse.v1.ListFilter;
325
+ return proto.trb.clickhouse.v1.ListFilter.deserializeBinaryFromReader(msg, reader);
326
+ };
327
+
328
+
329
+ /**
330
+ * Deserializes binary data (in protobuf wire format) from the
331
+ * given reader into the given message object.
332
+ * @param {!proto.trb.clickhouse.v1.ListFilter} msg The message object to deserialize into.
333
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
334
+ * @return {!proto.trb.clickhouse.v1.ListFilter}
335
+ */
336
+ proto.trb.clickhouse.v1.ListFilter.deserializeBinaryFromReader = function(msg, reader) {
337
+ while (reader.nextField()) {
338
+ if (reader.isEndGroup()) {
339
+ break;
340
+ }
341
+ var field = reader.getFieldNumber();
342
+ switch (field) {
343
+ case 1:
344
+ var value = /** @type {string} */ (reader.readString());
345
+ msg.setQ(value);
346
+ break;
347
+ case 2:
348
+ var value = /** @type {number} */ (reader.readInt32());
349
+ msg.setLimit(value);
350
+ break;
351
+ case 3:
352
+ var value = /** @type {number} */ (reader.readInt32());
353
+ msg.setOffset(value);
354
+ break;
355
+ default:
356
+ reader.skipField();
357
+ break;
358
+ }
359
+ }
360
+ return msg;
361
+ };
362
+
363
+
364
+ /**
365
+ * Serializes the message to binary data (in protobuf wire format).
366
+ * @return {!Uint8Array}
367
+ */
368
+ proto.trb.clickhouse.v1.ListFilter.prototype.serializeBinary = function() {
369
+ var writer = new jspb.BinaryWriter();
370
+ proto.trb.clickhouse.v1.ListFilter.serializeBinaryToWriter(this, writer);
371
+ return writer.getResultBuffer();
372
+ };
373
+
374
+
375
+ /**
376
+ * Serializes the given message to binary data (in protobuf wire
377
+ * format), writing to the given BinaryWriter.
378
+ * @param {!proto.trb.clickhouse.v1.ListFilter} message
379
+ * @param {!jspb.BinaryWriter} writer
380
+ * @suppress {unusedLocalVariables} f is only used for nested messages
381
+ */
382
+ proto.trb.clickhouse.v1.ListFilter.serializeBinaryToWriter = function(message, writer) {
383
+ var f = undefined;
384
+ f = message.getQ();
385
+ if (f.length > 0) {
386
+ writer.writeString(
387
+ 1,
388
+ f
389
+ );
390
+ }
391
+ f = message.getLimit();
392
+ if (f !== 0) {
393
+ writer.writeInt32(
394
+ 2,
395
+ f
396
+ );
397
+ }
398
+ f = message.getOffset();
399
+ if (f !== 0) {
400
+ writer.writeInt32(
401
+ 3,
402
+ f
403
+ );
404
+ }
405
+ };
406
+
407
+
408
+ /**
409
+ * optional string q = 1;
410
+ * @return {string}
411
+ */
412
+ proto.trb.clickhouse.v1.ListFilter.prototype.getQ = function() {
413
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
414
+ };
415
+
416
+
417
+ /**
418
+ * @param {string} value
419
+ * @return {!proto.trb.clickhouse.v1.ListFilter} returns this
420
+ */
421
+ proto.trb.clickhouse.v1.ListFilter.prototype.setQ = function(value) {
422
+ return jspb.Message.setProto3StringField(this, 1, value);
423
+ };
424
+
425
+
426
+ /**
427
+ * optional int32 limit = 2;
428
+ * @return {number}
429
+ */
430
+ proto.trb.clickhouse.v1.ListFilter.prototype.getLimit = function() {
431
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
432
+ };
433
+
434
+
435
+ /**
436
+ * @param {number} value
437
+ * @return {!proto.trb.clickhouse.v1.ListFilter} returns this
438
+ */
439
+ proto.trb.clickhouse.v1.ListFilter.prototype.setLimit = function(value) {
440
+ return jspb.Message.setProto3IntField(this, 2, value);
441
+ };
442
+
443
+
444
+ /**
445
+ * optional int32 offset = 3;
446
+ * @return {number}
447
+ */
448
+ proto.trb.clickhouse.v1.ListFilter.prototype.getOffset = function() {
449
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
450
+ };
451
+
452
+
453
+ /**
454
+ * @param {number} value
455
+ * @return {!proto.trb.clickhouse.v1.ListFilter} returns this
456
+ */
457
+ proto.trb.clickhouse.v1.ListFilter.prototype.setOffset = function(value) {
458
+ return jspb.Message.setProto3IntField(this, 3, value);
459
+ };
460
+
461
+
462
+
463
+
464
+
465
+ if (jspb.Message.GENERATE_TO_OBJECT) {
466
+ /**
467
+ * Creates an object representation of this proto.
468
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
469
+ * Optional fields that are not set will be set to undefined.
470
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
471
+ * For the list of reserved names please see:
472
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
473
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
474
+ * JSPB instance for transitional soy proto support:
475
+ * http://goto/soy-param-migration
476
+ * @return {!Object}
477
+ */
478
+ proto.trb.clickhouse.v1.ListInstrumentsRequest.prototype.toObject = function(opt_includeInstance) {
479
+ return proto.trb.clickhouse.v1.ListInstrumentsRequest.toObject(opt_includeInstance, this);
480
+ };
481
+
482
+
483
+ /**
484
+ * Static version of the {@see toObject} method.
485
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
486
+ * the JSPB instance for transitional soy proto support:
487
+ * http://goto/soy-param-migration
488
+ * @param {!proto.trb.clickhouse.v1.ListInstrumentsRequest} msg The msg instance to transform.
489
+ * @return {!Object}
490
+ * @suppress {unusedLocalVariables} f is only used for nested messages
491
+ */
492
+ proto.trb.clickhouse.v1.ListInstrumentsRequest.toObject = function(includeInstance, msg) {
493
+ var f, obj = {
494
+ filter: (f = msg.getFilter()) && proto.trb.clickhouse.v1.ListFilter.toObject(includeInstance, f),
495
+ lite: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
496
+ };
497
+
498
+ if (includeInstance) {
499
+ obj.$jspbMessageInstance = msg;
500
+ }
501
+ return obj;
502
+ };
503
+ }
504
+
505
+
506
+ /**
507
+ * Deserializes binary data (in protobuf wire format).
508
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
509
+ * @return {!proto.trb.clickhouse.v1.ListInstrumentsRequest}
510
+ */
511
+ proto.trb.clickhouse.v1.ListInstrumentsRequest.deserializeBinary = function(bytes) {
512
+ var reader = new jspb.BinaryReader(bytes);
513
+ var msg = new proto.trb.clickhouse.v1.ListInstrumentsRequest;
514
+ return proto.trb.clickhouse.v1.ListInstrumentsRequest.deserializeBinaryFromReader(msg, reader);
515
+ };
516
+
517
+
518
+ /**
519
+ * Deserializes binary data (in protobuf wire format) from the
520
+ * given reader into the given message object.
521
+ * @param {!proto.trb.clickhouse.v1.ListInstrumentsRequest} msg The message object to deserialize into.
522
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
523
+ * @return {!proto.trb.clickhouse.v1.ListInstrumentsRequest}
524
+ */
525
+ proto.trb.clickhouse.v1.ListInstrumentsRequest.deserializeBinaryFromReader = function(msg, reader) {
526
+ while (reader.nextField()) {
527
+ if (reader.isEndGroup()) {
528
+ break;
529
+ }
530
+ var field = reader.getFieldNumber();
531
+ switch (field) {
532
+ case 1:
533
+ var value = new proto.trb.clickhouse.v1.ListFilter;
534
+ reader.readMessage(value,proto.trb.clickhouse.v1.ListFilter.deserializeBinaryFromReader);
535
+ msg.setFilter(value);
536
+ break;
537
+ case 2:
538
+ var value = /** @type {boolean} */ (reader.readBool());
539
+ msg.setLite(value);
540
+ break;
541
+ default:
542
+ reader.skipField();
543
+ break;
544
+ }
545
+ }
546
+ return msg;
547
+ };
548
+
549
+
550
+ /**
551
+ * Serializes the message to binary data (in protobuf wire format).
552
+ * @return {!Uint8Array}
553
+ */
554
+ proto.trb.clickhouse.v1.ListInstrumentsRequest.prototype.serializeBinary = function() {
555
+ var writer = new jspb.BinaryWriter();
556
+ proto.trb.clickhouse.v1.ListInstrumentsRequest.serializeBinaryToWriter(this, writer);
557
+ return writer.getResultBuffer();
558
+ };
559
+
560
+
561
+ /**
562
+ * Serializes the given message to binary data (in protobuf wire
563
+ * format), writing to the given BinaryWriter.
564
+ * @param {!proto.trb.clickhouse.v1.ListInstrumentsRequest} message
565
+ * @param {!jspb.BinaryWriter} writer
566
+ * @suppress {unusedLocalVariables} f is only used for nested messages
567
+ */
568
+ proto.trb.clickhouse.v1.ListInstrumentsRequest.serializeBinaryToWriter = function(message, writer) {
569
+ var f = undefined;
570
+ f = message.getFilter();
571
+ if (f != null) {
572
+ writer.writeMessage(
573
+ 1,
574
+ f,
575
+ proto.trb.clickhouse.v1.ListFilter.serializeBinaryToWriter
576
+ );
577
+ }
578
+ f = message.getLite();
579
+ if (f) {
580
+ writer.writeBool(
581
+ 2,
582
+ f
583
+ );
584
+ }
585
+ };
586
+
587
+
588
+ /**
589
+ * optional ListFilter filter = 1;
590
+ * @return {?proto.trb.clickhouse.v1.ListFilter}
591
+ */
592
+ proto.trb.clickhouse.v1.ListInstrumentsRequest.prototype.getFilter = function() {
593
+ return /** @type{?proto.trb.clickhouse.v1.ListFilter} */ (
594
+ jspb.Message.getWrapperField(this, proto.trb.clickhouse.v1.ListFilter, 1));
595
+ };
596
+
597
+
598
+ /**
599
+ * @param {?proto.trb.clickhouse.v1.ListFilter|undefined} value
600
+ * @return {!proto.trb.clickhouse.v1.ListInstrumentsRequest} returns this
601
+ */
602
+ proto.trb.clickhouse.v1.ListInstrumentsRequest.prototype.setFilter = function(value) {
603
+ return jspb.Message.setWrapperField(this, 1, value);
604
+ };
605
+
606
+
607
+ /**
608
+ * Clears the message field making it undefined.
609
+ * @return {!proto.trb.clickhouse.v1.ListInstrumentsRequest} returns this
610
+ */
611
+ proto.trb.clickhouse.v1.ListInstrumentsRequest.prototype.clearFilter = function() {
612
+ return this.setFilter(undefined);
613
+ };
614
+
615
+
616
+ /**
617
+ * Returns whether this field is set.
618
+ * @return {boolean}
619
+ */
620
+ proto.trb.clickhouse.v1.ListInstrumentsRequest.prototype.hasFilter = function() {
621
+ return jspb.Message.getField(this, 1) != null;
622
+ };
623
+
624
+
625
+ /**
626
+ * optional bool lite = 2;
627
+ * @return {boolean}
628
+ */
629
+ proto.trb.clickhouse.v1.ListInstrumentsRequest.prototype.getLite = function() {
630
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
631
+ };
632
+
633
+
634
+ /**
635
+ * @param {boolean} value
636
+ * @return {!proto.trb.clickhouse.v1.ListInstrumentsRequest} returns this
637
+ */
638
+ proto.trb.clickhouse.v1.ListInstrumentsRequest.prototype.setLite = function(value) {
639
+ return jspb.Message.setProto3BooleanField(this, 2, value);
640
+ };
641
+
642
+
643
+
644
+
645
+
646
+ if (jspb.Message.GENERATE_TO_OBJECT) {
647
+ /**
648
+ * Creates an object representation of this proto.
649
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
650
+ * Optional fields that are not set will be set to undefined.
651
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
652
+ * For the list of reserved names please see:
653
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
654
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
655
+ * JSPB instance for transitional soy proto support:
656
+ * http://goto/soy-param-migration
657
+ * @return {!Object}
658
+ */
659
+ proto.trb.clickhouse.v1.InstrumentListItem.prototype.toObject = function(opt_includeInstance) {
660
+ return proto.trb.clickhouse.v1.InstrumentListItem.toObject(opt_includeInstance, this);
661
+ };
662
+
663
+
664
+ /**
665
+ * Static version of the {@see toObject} method.
666
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
667
+ * the JSPB instance for transitional soy proto support:
668
+ * http://goto/soy-param-migration
669
+ * @param {!proto.trb.clickhouse.v1.InstrumentListItem} msg The msg instance to transform.
670
+ * @return {!Object}
671
+ * @suppress {unusedLocalVariables} f is only used for nested messages
672
+ */
673
+ proto.trb.clickhouse.v1.InstrumentListItem.toObject = function(includeInstance, msg) {
674
+ var f, obj = {
675
+ share: (f = msg.getShare()) && api_tinvest_instruments_pb.Share.toObject(includeInstance, f),
676
+ version: (f = msg.getVersion()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
677
+ versionCount: jspb.Message.getFieldWithDefault(msg, 3, 0)
678
+ };
679
+
680
+ if (includeInstance) {
681
+ obj.$jspbMessageInstance = msg;
682
+ }
683
+ return obj;
684
+ };
685
+ }
686
+
687
+
688
+ /**
689
+ * Deserializes binary data (in protobuf wire format).
690
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
691
+ * @return {!proto.trb.clickhouse.v1.InstrumentListItem}
692
+ */
693
+ proto.trb.clickhouse.v1.InstrumentListItem.deserializeBinary = function(bytes) {
694
+ var reader = new jspb.BinaryReader(bytes);
695
+ var msg = new proto.trb.clickhouse.v1.InstrumentListItem;
696
+ return proto.trb.clickhouse.v1.InstrumentListItem.deserializeBinaryFromReader(msg, reader);
697
+ };
698
+
699
+
700
+ /**
701
+ * Deserializes binary data (in protobuf wire format) from the
702
+ * given reader into the given message object.
703
+ * @param {!proto.trb.clickhouse.v1.InstrumentListItem} msg The message object to deserialize into.
704
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
705
+ * @return {!proto.trb.clickhouse.v1.InstrumentListItem}
706
+ */
707
+ proto.trb.clickhouse.v1.InstrumentListItem.deserializeBinaryFromReader = function(msg, reader) {
708
+ while (reader.nextField()) {
709
+ if (reader.isEndGroup()) {
710
+ break;
711
+ }
712
+ var field = reader.getFieldNumber();
713
+ switch (field) {
714
+ case 1:
715
+ var value = new api_tinvest_instruments_pb.Share;
716
+ reader.readMessage(value,api_tinvest_instruments_pb.Share.deserializeBinaryFromReader);
717
+ msg.setShare(value);
718
+ break;
719
+ case 2:
720
+ var value = new google_protobuf_timestamp_pb.Timestamp;
721
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
722
+ msg.setVersion(value);
723
+ break;
724
+ case 3:
725
+ var value = /** @type {number} */ (reader.readInt32());
726
+ msg.setVersionCount(value);
727
+ break;
728
+ default:
729
+ reader.skipField();
730
+ break;
731
+ }
732
+ }
733
+ return msg;
734
+ };
735
+
736
+
737
+ /**
738
+ * Serializes the message to binary data (in protobuf wire format).
739
+ * @return {!Uint8Array}
740
+ */
741
+ proto.trb.clickhouse.v1.InstrumentListItem.prototype.serializeBinary = function() {
742
+ var writer = new jspb.BinaryWriter();
743
+ proto.trb.clickhouse.v1.InstrumentListItem.serializeBinaryToWriter(this, writer);
744
+ return writer.getResultBuffer();
745
+ };
746
+
747
+
748
+ /**
749
+ * Serializes the given message to binary data (in protobuf wire
750
+ * format), writing to the given BinaryWriter.
751
+ * @param {!proto.trb.clickhouse.v1.InstrumentListItem} message
752
+ * @param {!jspb.BinaryWriter} writer
753
+ * @suppress {unusedLocalVariables} f is only used for nested messages
754
+ */
755
+ proto.trb.clickhouse.v1.InstrumentListItem.serializeBinaryToWriter = function(message, writer) {
756
+ var f = undefined;
757
+ f = message.getShare();
758
+ if (f != null) {
759
+ writer.writeMessage(
760
+ 1,
761
+ f,
762
+ api_tinvest_instruments_pb.Share.serializeBinaryToWriter
763
+ );
764
+ }
765
+ f = message.getVersion();
766
+ if (f != null) {
767
+ writer.writeMessage(
768
+ 2,
769
+ f,
770
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
771
+ );
772
+ }
773
+ f = message.getVersionCount();
774
+ if (f !== 0) {
775
+ writer.writeInt32(
776
+ 3,
777
+ f
778
+ );
779
+ }
780
+ };
781
+
782
+
783
+ /**
784
+ * optional tinkoff.public.invest.api.contract.v1.Share share = 1;
785
+ * @return {?proto.tinkoff.public.invest.api.contract.v1.Share}
786
+ */
787
+ proto.trb.clickhouse.v1.InstrumentListItem.prototype.getShare = function() {
788
+ return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Share} */ (
789
+ jspb.Message.getWrapperField(this, api_tinvest_instruments_pb.Share, 1));
790
+ };
791
+
792
+
793
+ /**
794
+ * @param {?proto.tinkoff.public.invest.api.contract.v1.Share|undefined} value
795
+ * @return {!proto.trb.clickhouse.v1.InstrumentListItem} returns this
796
+ */
797
+ proto.trb.clickhouse.v1.InstrumentListItem.prototype.setShare = function(value) {
798
+ return jspb.Message.setWrapperField(this, 1, value);
799
+ };
800
+
801
+
802
+ /**
803
+ * Clears the message field making it undefined.
804
+ * @return {!proto.trb.clickhouse.v1.InstrumentListItem} returns this
805
+ */
806
+ proto.trb.clickhouse.v1.InstrumentListItem.prototype.clearShare = function() {
807
+ return this.setShare(undefined);
808
+ };
809
+
810
+
811
+ /**
812
+ * Returns whether this field is set.
813
+ * @return {boolean}
814
+ */
815
+ proto.trb.clickhouse.v1.InstrumentListItem.prototype.hasShare = function() {
816
+ return jspb.Message.getField(this, 1) != null;
817
+ };
818
+
819
+
820
+ /**
821
+ * optional google.protobuf.Timestamp version = 2;
822
+ * @return {?proto.google.protobuf.Timestamp}
823
+ */
824
+ proto.trb.clickhouse.v1.InstrumentListItem.prototype.getVersion = function() {
825
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
826
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
827
+ };
828
+
829
+
830
+ /**
831
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
832
+ * @return {!proto.trb.clickhouse.v1.InstrumentListItem} returns this
833
+ */
834
+ proto.trb.clickhouse.v1.InstrumentListItem.prototype.setVersion = function(value) {
835
+ return jspb.Message.setWrapperField(this, 2, value);
836
+ };
837
+
838
+
839
+ /**
840
+ * Clears the message field making it undefined.
841
+ * @return {!proto.trb.clickhouse.v1.InstrumentListItem} returns this
842
+ */
843
+ proto.trb.clickhouse.v1.InstrumentListItem.prototype.clearVersion = function() {
844
+ return this.setVersion(undefined);
845
+ };
846
+
847
+
848
+ /**
849
+ * Returns whether this field is set.
850
+ * @return {boolean}
851
+ */
852
+ proto.trb.clickhouse.v1.InstrumentListItem.prototype.hasVersion = function() {
853
+ return jspb.Message.getField(this, 2) != null;
854
+ };
855
+
856
+
857
+ /**
858
+ * optional int32 version_count = 3;
859
+ * @return {number}
860
+ */
861
+ proto.trb.clickhouse.v1.InstrumentListItem.prototype.getVersionCount = function() {
862
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
863
+ };
864
+
865
+
866
+ /**
867
+ * @param {number} value
868
+ * @return {!proto.trb.clickhouse.v1.InstrumentListItem} returns this
869
+ */
870
+ proto.trb.clickhouse.v1.InstrumentListItem.prototype.setVersionCount = function(value) {
871
+ return jspb.Message.setProto3IntField(this, 3, value);
872
+ };
873
+
874
+
875
+
876
+ /**
877
+ * List of repeated fields within this message type.
878
+ * @private {!Array<number>}
879
+ * @const
880
+ */
881
+ proto.trb.clickhouse.v1.ListInstrumentsResponse.repeatedFields_ = [1];
882
+
883
+
884
+
885
+ if (jspb.Message.GENERATE_TO_OBJECT) {
886
+ /**
887
+ * Creates an object representation of this proto.
888
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
889
+ * Optional fields that are not set will be set to undefined.
890
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
891
+ * For the list of reserved names please see:
892
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
893
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
894
+ * JSPB instance for transitional soy proto support:
895
+ * http://goto/soy-param-migration
896
+ * @return {!Object}
897
+ */
898
+ proto.trb.clickhouse.v1.ListInstrumentsResponse.prototype.toObject = function(opt_includeInstance) {
899
+ return proto.trb.clickhouse.v1.ListInstrumentsResponse.toObject(opt_includeInstance, this);
900
+ };
901
+
902
+
903
+ /**
904
+ * Static version of the {@see toObject} method.
905
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
906
+ * the JSPB instance for transitional soy proto support:
907
+ * http://goto/soy-param-migration
908
+ * @param {!proto.trb.clickhouse.v1.ListInstrumentsResponse} msg The msg instance to transform.
909
+ * @return {!Object}
910
+ * @suppress {unusedLocalVariables} f is only used for nested messages
911
+ */
912
+ proto.trb.clickhouse.v1.ListInstrumentsResponse.toObject = function(includeInstance, msg) {
913
+ var f, obj = {
914
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
915
+ proto.trb.clickhouse.v1.InstrumentListItem.toObject, includeInstance)
916
+ };
917
+
918
+ if (includeInstance) {
919
+ obj.$jspbMessageInstance = msg;
920
+ }
921
+ return obj;
922
+ };
923
+ }
924
+
925
+
926
+ /**
927
+ * Deserializes binary data (in protobuf wire format).
928
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
929
+ * @return {!proto.trb.clickhouse.v1.ListInstrumentsResponse}
930
+ */
931
+ proto.trb.clickhouse.v1.ListInstrumentsResponse.deserializeBinary = function(bytes) {
932
+ var reader = new jspb.BinaryReader(bytes);
933
+ var msg = new proto.trb.clickhouse.v1.ListInstrumentsResponse;
934
+ return proto.trb.clickhouse.v1.ListInstrumentsResponse.deserializeBinaryFromReader(msg, reader);
935
+ };
936
+
937
+
938
+ /**
939
+ * Deserializes binary data (in protobuf wire format) from the
940
+ * given reader into the given message object.
941
+ * @param {!proto.trb.clickhouse.v1.ListInstrumentsResponse} msg The message object to deserialize into.
942
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
943
+ * @return {!proto.trb.clickhouse.v1.ListInstrumentsResponse}
944
+ */
945
+ proto.trb.clickhouse.v1.ListInstrumentsResponse.deserializeBinaryFromReader = function(msg, reader) {
946
+ while (reader.nextField()) {
947
+ if (reader.isEndGroup()) {
948
+ break;
949
+ }
950
+ var field = reader.getFieldNumber();
951
+ switch (field) {
952
+ case 1:
953
+ var value = new proto.trb.clickhouse.v1.InstrumentListItem;
954
+ reader.readMessage(value,proto.trb.clickhouse.v1.InstrumentListItem.deserializeBinaryFromReader);
955
+ msg.addItems(value);
956
+ break;
957
+ default:
958
+ reader.skipField();
959
+ break;
960
+ }
961
+ }
962
+ return msg;
963
+ };
964
+
965
+
966
+ /**
967
+ * Serializes the message to binary data (in protobuf wire format).
968
+ * @return {!Uint8Array}
969
+ */
970
+ proto.trb.clickhouse.v1.ListInstrumentsResponse.prototype.serializeBinary = function() {
971
+ var writer = new jspb.BinaryWriter();
972
+ proto.trb.clickhouse.v1.ListInstrumentsResponse.serializeBinaryToWriter(this, writer);
973
+ return writer.getResultBuffer();
974
+ };
975
+
976
+
977
+ /**
978
+ * Serializes the given message to binary data (in protobuf wire
979
+ * format), writing to the given BinaryWriter.
980
+ * @param {!proto.trb.clickhouse.v1.ListInstrumentsResponse} message
981
+ * @param {!jspb.BinaryWriter} writer
982
+ * @suppress {unusedLocalVariables} f is only used for nested messages
983
+ */
984
+ proto.trb.clickhouse.v1.ListInstrumentsResponse.serializeBinaryToWriter = function(message, writer) {
985
+ var f = undefined;
986
+ f = message.getItemsList();
987
+ if (f.length > 0) {
988
+ writer.writeRepeatedMessage(
989
+ 1,
990
+ f,
991
+ proto.trb.clickhouse.v1.InstrumentListItem.serializeBinaryToWriter
992
+ );
993
+ }
994
+ };
995
+
996
+
997
+ /**
998
+ * repeated InstrumentListItem items = 1;
999
+ * @return {!Array<!proto.trb.clickhouse.v1.InstrumentListItem>}
1000
+ */
1001
+ proto.trb.clickhouse.v1.ListInstrumentsResponse.prototype.getItemsList = function() {
1002
+ return /** @type{!Array<!proto.trb.clickhouse.v1.InstrumentListItem>} */ (
1003
+ jspb.Message.getRepeatedWrapperField(this, proto.trb.clickhouse.v1.InstrumentListItem, 1));
1004
+ };
1005
+
1006
+
1007
+ /**
1008
+ * @param {!Array<!proto.trb.clickhouse.v1.InstrumentListItem>} value
1009
+ * @return {!proto.trb.clickhouse.v1.ListInstrumentsResponse} returns this
1010
+ */
1011
+ proto.trb.clickhouse.v1.ListInstrumentsResponse.prototype.setItemsList = function(value) {
1012
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1013
+ };
1014
+
1015
+
1016
+ /**
1017
+ * @param {!proto.trb.clickhouse.v1.InstrumentListItem=} opt_value
1018
+ * @param {number=} opt_index
1019
+ * @return {!proto.trb.clickhouse.v1.InstrumentListItem}
1020
+ */
1021
+ proto.trb.clickhouse.v1.ListInstrumentsResponse.prototype.addItems = function(opt_value, opt_index) {
1022
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.clickhouse.v1.InstrumentListItem, opt_index);
1023
+ };
1024
+
1025
+
1026
+ /**
1027
+ * Clears the list making it empty but non-null.
1028
+ * @return {!proto.trb.clickhouse.v1.ListInstrumentsResponse} returns this
1029
+ */
1030
+ proto.trb.clickhouse.v1.ListInstrumentsResponse.prototype.clearItemsList = function() {
1031
+ return this.setItemsList([]);
1032
+ };
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1039
+ /**
1040
+ * Creates an object representation of this proto.
1041
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1042
+ * Optional fields that are not set will be set to undefined.
1043
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1044
+ * For the list of reserved names please see:
1045
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1046
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1047
+ * JSPB instance for transitional soy proto support:
1048
+ * http://goto/soy-param-migration
1049
+ * @return {!Object}
1050
+ */
1051
+ proto.trb.clickhouse.v1.ListInstrumentVersionsRequest.prototype.toObject = function(opt_includeInstance) {
1052
+ return proto.trb.clickhouse.v1.ListInstrumentVersionsRequest.toObject(opt_includeInstance, this);
1053
+ };
1054
+
1055
+
1056
+ /**
1057
+ * Static version of the {@see toObject} method.
1058
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1059
+ * the JSPB instance for transitional soy proto support:
1060
+ * http://goto/soy-param-migration
1061
+ * @param {!proto.trb.clickhouse.v1.ListInstrumentVersionsRequest} msg The msg instance to transform.
1062
+ * @return {!Object}
1063
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1064
+ */
1065
+ proto.trb.clickhouse.v1.ListInstrumentVersionsRequest.toObject = function(includeInstance, msg) {
1066
+ var f, obj = {
1067
+ uid: jspb.Message.getFieldWithDefault(msg, 1, "")
1068
+ };
1069
+
1070
+ if (includeInstance) {
1071
+ obj.$jspbMessageInstance = msg;
1072
+ }
1073
+ return obj;
1074
+ };
1075
+ }
1076
+
1077
+
1078
+ /**
1079
+ * Deserializes binary data (in protobuf wire format).
1080
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1081
+ * @return {!proto.trb.clickhouse.v1.ListInstrumentVersionsRequest}
1082
+ */
1083
+ proto.trb.clickhouse.v1.ListInstrumentVersionsRequest.deserializeBinary = function(bytes) {
1084
+ var reader = new jspb.BinaryReader(bytes);
1085
+ var msg = new proto.trb.clickhouse.v1.ListInstrumentVersionsRequest;
1086
+ return proto.trb.clickhouse.v1.ListInstrumentVersionsRequest.deserializeBinaryFromReader(msg, reader);
1087
+ };
1088
+
1089
+
1090
+ /**
1091
+ * Deserializes binary data (in protobuf wire format) from the
1092
+ * given reader into the given message object.
1093
+ * @param {!proto.trb.clickhouse.v1.ListInstrumentVersionsRequest} msg The message object to deserialize into.
1094
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1095
+ * @return {!proto.trb.clickhouse.v1.ListInstrumentVersionsRequest}
1096
+ */
1097
+ proto.trb.clickhouse.v1.ListInstrumentVersionsRequest.deserializeBinaryFromReader = function(msg, reader) {
1098
+ while (reader.nextField()) {
1099
+ if (reader.isEndGroup()) {
1100
+ break;
1101
+ }
1102
+ var field = reader.getFieldNumber();
1103
+ switch (field) {
1104
+ case 1:
1105
+ var value = /** @type {string} */ (reader.readString());
1106
+ msg.setUid(value);
1107
+ break;
1108
+ default:
1109
+ reader.skipField();
1110
+ break;
1111
+ }
1112
+ }
1113
+ return msg;
1114
+ };
1115
+
1116
+
1117
+ /**
1118
+ * Serializes the message to binary data (in protobuf wire format).
1119
+ * @return {!Uint8Array}
1120
+ */
1121
+ proto.trb.clickhouse.v1.ListInstrumentVersionsRequest.prototype.serializeBinary = function() {
1122
+ var writer = new jspb.BinaryWriter();
1123
+ proto.trb.clickhouse.v1.ListInstrumentVersionsRequest.serializeBinaryToWriter(this, writer);
1124
+ return writer.getResultBuffer();
1125
+ };
1126
+
1127
+
1128
+ /**
1129
+ * Serializes the given message to binary data (in protobuf wire
1130
+ * format), writing to the given BinaryWriter.
1131
+ * @param {!proto.trb.clickhouse.v1.ListInstrumentVersionsRequest} message
1132
+ * @param {!jspb.BinaryWriter} writer
1133
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1134
+ */
1135
+ proto.trb.clickhouse.v1.ListInstrumentVersionsRequest.serializeBinaryToWriter = function(message, writer) {
1136
+ var f = undefined;
1137
+ f = message.getUid();
1138
+ if (f.length > 0) {
1139
+ writer.writeString(
1140
+ 1,
1141
+ f
1142
+ );
1143
+ }
1144
+ };
1145
+
1146
+
1147
+ /**
1148
+ * optional string uid = 1;
1149
+ * @return {string}
1150
+ */
1151
+ proto.trb.clickhouse.v1.ListInstrumentVersionsRequest.prototype.getUid = function() {
1152
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1153
+ };
1154
+
1155
+
1156
+ /**
1157
+ * @param {string} value
1158
+ * @return {!proto.trb.clickhouse.v1.ListInstrumentVersionsRequest} returns this
1159
+ */
1160
+ proto.trb.clickhouse.v1.ListInstrumentVersionsRequest.prototype.setUid = function(value) {
1161
+ return jspb.Message.setProto3StringField(this, 1, value);
1162
+ };
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1169
+ /**
1170
+ * Creates an object representation of this proto.
1171
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1172
+ * Optional fields that are not set will be set to undefined.
1173
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1174
+ * For the list of reserved names please see:
1175
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1176
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1177
+ * JSPB instance for transitional soy proto support:
1178
+ * http://goto/soy-param-migration
1179
+ * @return {!Object}
1180
+ */
1181
+ proto.trb.clickhouse.v1.InstrumentVersion.prototype.toObject = function(opt_includeInstance) {
1182
+ return proto.trb.clickhouse.v1.InstrumentVersion.toObject(opt_includeInstance, this);
1183
+ };
1184
+
1185
+
1186
+ /**
1187
+ * Static version of the {@see toObject} method.
1188
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1189
+ * the JSPB instance for transitional soy proto support:
1190
+ * http://goto/soy-param-migration
1191
+ * @param {!proto.trb.clickhouse.v1.InstrumentVersion} msg The msg instance to transform.
1192
+ * @return {!Object}
1193
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1194
+ */
1195
+ proto.trb.clickhouse.v1.InstrumentVersion.toObject = function(includeInstance, msg) {
1196
+ var f, obj = {
1197
+ share: (f = msg.getShare()) && api_tinvest_instruments_pb.Share.toObject(includeInstance, f),
1198
+ version: (f = msg.getVersion()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1199
+ };
1200
+
1201
+ if (includeInstance) {
1202
+ obj.$jspbMessageInstance = msg;
1203
+ }
1204
+ return obj;
1205
+ };
1206
+ }
1207
+
1208
+
1209
+ /**
1210
+ * Deserializes binary data (in protobuf wire format).
1211
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1212
+ * @return {!proto.trb.clickhouse.v1.InstrumentVersion}
1213
+ */
1214
+ proto.trb.clickhouse.v1.InstrumentVersion.deserializeBinary = function(bytes) {
1215
+ var reader = new jspb.BinaryReader(bytes);
1216
+ var msg = new proto.trb.clickhouse.v1.InstrumentVersion;
1217
+ return proto.trb.clickhouse.v1.InstrumentVersion.deserializeBinaryFromReader(msg, reader);
1218
+ };
1219
+
1220
+
1221
+ /**
1222
+ * Deserializes binary data (in protobuf wire format) from the
1223
+ * given reader into the given message object.
1224
+ * @param {!proto.trb.clickhouse.v1.InstrumentVersion} msg The message object to deserialize into.
1225
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1226
+ * @return {!proto.trb.clickhouse.v1.InstrumentVersion}
1227
+ */
1228
+ proto.trb.clickhouse.v1.InstrumentVersion.deserializeBinaryFromReader = function(msg, reader) {
1229
+ while (reader.nextField()) {
1230
+ if (reader.isEndGroup()) {
1231
+ break;
1232
+ }
1233
+ var field = reader.getFieldNumber();
1234
+ switch (field) {
1235
+ case 1:
1236
+ var value = new api_tinvest_instruments_pb.Share;
1237
+ reader.readMessage(value,api_tinvest_instruments_pb.Share.deserializeBinaryFromReader);
1238
+ msg.setShare(value);
1239
+ break;
1240
+ case 2:
1241
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1242
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1243
+ msg.setVersion(value);
1244
+ break;
1245
+ default:
1246
+ reader.skipField();
1247
+ break;
1248
+ }
1249
+ }
1250
+ return msg;
1251
+ };
1252
+
1253
+
1254
+ /**
1255
+ * Serializes the message to binary data (in protobuf wire format).
1256
+ * @return {!Uint8Array}
1257
+ */
1258
+ proto.trb.clickhouse.v1.InstrumentVersion.prototype.serializeBinary = function() {
1259
+ var writer = new jspb.BinaryWriter();
1260
+ proto.trb.clickhouse.v1.InstrumentVersion.serializeBinaryToWriter(this, writer);
1261
+ return writer.getResultBuffer();
1262
+ };
1263
+
1264
+
1265
+ /**
1266
+ * Serializes the given message to binary data (in protobuf wire
1267
+ * format), writing to the given BinaryWriter.
1268
+ * @param {!proto.trb.clickhouse.v1.InstrumentVersion} message
1269
+ * @param {!jspb.BinaryWriter} writer
1270
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1271
+ */
1272
+ proto.trb.clickhouse.v1.InstrumentVersion.serializeBinaryToWriter = function(message, writer) {
1273
+ var f = undefined;
1274
+ f = message.getShare();
1275
+ if (f != null) {
1276
+ writer.writeMessage(
1277
+ 1,
1278
+ f,
1279
+ api_tinvest_instruments_pb.Share.serializeBinaryToWriter
1280
+ );
1281
+ }
1282
+ f = message.getVersion();
1283
+ if (f != null) {
1284
+ writer.writeMessage(
1285
+ 2,
1286
+ f,
1287
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1288
+ );
1289
+ }
1290
+ };
1291
+
1292
+
1293
+ /**
1294
+ * optional tinkoff.public.invest.api.contract.v1.Share share = 1;
1295
+ * @return {?proto.tinkoff.public.invest.api.contract.v1.Share}
1296
+ */
1297
+ proto.trb.clickhouse.v1.InstrumentVersion.prototype.getShare = function() {
1298
+ return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Share} */ (
1299
+ jspb.Message.getWrapperField(this, api_tinvest_instruments_pb.Share, 1));
1300
+ };
1301
+
1302
+
1303
+ /**
1304
+ * @param {?proto.tinkoff.public.invest.api.contract.v1.Share|undefined} value
1305
+ * @return {!proto.trb.clickhouse.v1.InstrumentVersion} returns this
1306
+ */
1307
+ proto.trb.clickhouse.v1.InstrumentVersion.prototype.setShare = function(value) {
1308
+ return jspb.Message.setWrapperField(this, 1, value);
1309
+ };
1310
+
1311
+
1312
+ /**
1313
+ * Clears the message field making it undefined.
1314
+ * @return {!proto.trb.clickhouse.v1.InstrumentVersion} returns this
1315
+ */
1316
+ proto.trb.clickhouse.v1.InstrumentVersion.prototype.clearShare = function() {
1317
+ return this.setShare(undefined);
1318
+ };
1319
+
1320
+
1321
+ /**
1322
+ * Returns whether this field is set.
1323
+ * @return {boolean}
1324
+ */
1325
+ proto.trb.clickhouse.v1.InstrumentVersion.prototype.hasShare = function() {
1326
+ return jspb.Message.getField(this, 1) != null;
1327
+ };
1328
+
1329
+
1330
+ /**
1331
+ * optional google.protobuf.Timestamp version = 2;
1332
+ * @return {?proto.google.protobuf.Timestamp}
1333
+ */
1334
+ proto.trb.clickhouse.v1.InstrumentVersion.prototype.getVersion = function() {
1335
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1336
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
1337
+ };
1338
+
1339
+
1340
+ /**
1341
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1342
+ * @return {!proto.trb.clickhouse.v1.InstrumentVersion} returns this
1343
+ */
1344
+ proto.trb.clickhouse.v1.InstrumentVersion.prototype.setVersion = function(value) {
1345
+ return jspb.Message.setWrapperField(this, 2, value);
1346
+ };
1347
+
1348
+
1349
+ /**
1350
+ * Clears the message field making it undefined.
1351
+ * @return {!proto.trb.clickhouse.v1.InstrumentVersion} returns this
1352
+ */
1353
+ proto.trb.clickhouse.v1.InstrumentVersion.prototype.clearVersion = function() {
1354
+ return this.setVersion(undefined);
1355
+ };
1356
+
1357
+
1358
+ /**
1359
+ * Returns whether this field is set.
1360
+ * @return {boolean}
1361
+ */
1362
+ proto.trb.clickhouse.v1.InstrumentVersion.prototype.hasVersion = function() {
1363
+ return jspb.Message.getField(this, 2) != null;
1364
+ };
1365
+
1366
+
1367
+
1368
+ /**
1369
+ * List of repeated fields within this message type.
1370
+ * @private {!Array<number>}
1371
+ * @const
1372
+ */
1373
+ proto.trb.clickhouse.v1.ListInstrumentVersionsResponse.repeatedFields_ = [1];
1374
+
1375
+
1376
+
1377
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1378
+ /**
1379
+ * Creates an object representation of this proto.
1380
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1381
+ * Optional fields that are not set will be set to undefined.
1382
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1383
+ * For the list of reserved names please see:
1384
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1385
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1386
+ * JSPB instance for transitional soy proto support:
1387
+ * http://goto/soy-param-migration
1388
+ * @return {!Object}
1389
+ */
1390
+ proto.trb.clickhouse.v1.ListInstrumentVersionsResponse.prototype.toObject = function(opt_includeInstance) {
1391
+ return proto.trb.clickhouse.v1.ListInstrumentVersionsResponse.toObject(opt_includeInstance, this);
1392
+ };
1393
+
1394
+
1395
+ /**
1396
+ * Static version of the {@see toObject} method.
1397
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1398
+ * the JSPB instance for transitional soy proto support:
1399
+ * http://goto/soy-param-migration
1400
+ * @param {!proto.trb.clickhouse.v1.ListInstrumentVersionsResponse} msg The msg instance to transform.
1401
+ * @return {!Object}
1402
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1403
+ */
1404
+ proto.trb.clickhouse.v1.ListInstrumentVersionsResponse.toObject = function(includeInstance, msg) {
1405
+ var f, obj = {
1406
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
1407
+ proto.trb.clickhouse.v1.InstrumentVersion.toObject, includeInstance)
1408
+ };
1409
+
1410
+ if (includeInstance) {
1411
+ obj.$jspbMessageInstance = msg;
1412
+ }
1413
+ return obj;
1414
+ };
1415
+ }
1416
+
1417
+
1418
+ /**
1419
+ * Deserializes binary data (in protobuf wire format).
1420
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1421
+ * @return {!proto.trb.clickhouse.v1.ListInstrumentVersionsResponse}
1422
+ */
1423
+ proto.trb.clickhouse.v1.ListInstrumentVersionsResponse.deserializeBinary = function(bytes) {
1424
+ var reader = new jspb.BinaryReader(bytes);
1425
+ var msg = new proto.trb.clickhouse.v1.ListInstrumentVersionsResponse;
1426
+ return proto.trb.clickhouse.v1.ListInstrumentVersionsResponse.deserializeBinaryFromReader(msg, reader);
1427
+ };
1428
+
1429
+
1430
+ /**
1431
+ * Deserializes binary data (in protobuf wire format) from the
1432
+ * given reader into the given message object.
1433
+ * @param {!proto.trb.clickhouse.v1.ListInstrumentVersionsResponse} msg The message object to deserialize into.
1434
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1435
+ * @return {!proto.trb.clickhouse.v1.ListInstrumentVersionsResponse}
1436
+ */
1437
+ proto.trb.clickhouse.v1.ListInstrumentVersionsResponse.deserializeBinaryFromReader = function(msg, reader) {
1438
+ while (reader.nextField()) {
1439
+ if (reader.isEndGroup()) {
1440
+ break;
1441
+ }
1442
+ var field = reader.getFieldNumber();
1443
+ switch (field) {
1444
+ case 1:
1445
+ var value = new proto.trb.clickhouse.v1.InstrumentVersion;
1446
+ reader.readMessage(value,proto.trb.clickhouse.v1.InstrumentVersion.deserializeBinaryFromReader);
1447
+ msg.addItems(value);
1448
+ break;
1449
+ default:
1450
+ reader.skipField();
1451
+ break;
1452
+ }
1453
+ }
1454
+ return msg;
1455
+ };
1456
+
1457
+
1458
+ /**
1459
+ * Serializes the message to binary data (in protobuf wire format).
1460
+ * @return {!Uint8Array}
1461
+ */
1462
+ proto.trb.clickhouse.v1.ListInstrumentVersionsResponse.prototype.serializeBinary = function() {
1463
+ var writer = new jspb.BinaryWriter();
1464
+ proto.trb.clickhouse.v1.ListInstrumentVersionsResponse.serializeBinaryToWriter(this, writer);
1465
+ return writer.getResultBuffer();
1466
+ };
1467
+
1468
+
1469
+ /**
1470
+ * Serializes the given message to binary data (in protobuf wire
1471
+ * format), writing to the given BinaryWriter.
1472
+ * @param {!proto.trb.clickhouse.v1.ListInstrumentVersionsResponse} message
1473
+ * @param {!jspb.BinaryWriter} writer
1474
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1475
+ */
1476
+ proto.trb.clickhouse.v1.ListInstrumentVersionsResponse.serializeBinaryToWriter = function(message, writer) {
1477
+ var f = undefined;
1478
+ f = message.getItemsList();
1479
+ if (f.length > 0) {
1480
+ writer.writeRepeatedMessage(
1481
+ 1,
1482
+ f,
1483
+ proto.trb.clickhouse.v1.InstrumentVersion.serializeBinaryToWriter
1484
+ );
1485
+ }
1486
+ };
1487
+
1488
+
1489
+ /**
1490
+ * repeated InstrumentVersion items = 1;
1491
+ * @return {!Array<!proto.trb.clickhouse.v1.InstrumentVersion>}
1492
+ */
1493
+ proto.trb.clickhouse.v1.ListInstrumentVersionsResponse.prototype.getItemsList = function() {
1494
+ return /** @type{!Array<!proto.trb.clickhouse.v1.InstrumentVersion>} */ (
1495
+ jspb.Message.getRepeatedWrapperField(this, proto.trb.clickhouse.v1.InstrumentVersion, 1));
1496
+ };
1497
+
1498
+
1499
+ /**
1500
+ * @param {!Array<!proto.trb.clickhouse.v1.InstrumentVersion>} value
1501
+ * @return {!proto.trb.clickhouse.v1.ListInstrumentVersionsResponse} returns this
1502
+ */
1503
+ proto.trb.clickhouse.v1.ListInstrumentVersionsResponse.prototype.setItemsList = function(value) {
1504
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1505
+ };
1506
+
1507
+
1508
+ /**
1509
+ * @param {!proto.trb.clickhouse.v1.InstrumentVersion=} opt_value
1510
+ * @param {number=} opt_index
1511
+ * @return {!proto.trb.clickhouse.v1.InstrumentVersion}
1512
+ */
1513
+ proto.trb.clickhouse.v1.ListInstrumentVersionsResponse.prototype.addItems = function(opt_value, opt_index) {
1514
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.clickhouse.v1.InstrumentVersion, opt_index);
1515
+ };
1516
+
1517
+
1518
+ /**
1519
+ * Clears the list making it empty but non-null.
1520
+ * @return {!proto.trb.clickhouse.v1.ListInstrumentVersionsResponse} returns this
1521
+ */
1522
+ proto.trb.clickhouse.v1.ListInstrumentVersionsResponse.prototype.clearItemsList = function() {
1523
+ return this.setItemsList([]);
1524
+ };
1525
+
1526
+
1527
+
1528
+
1529
+
1530
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1531
+ /**
1532
+ * Creates an object representation of this proto.
1533
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1534
+ * Optional fields that are not set will be set to undefined.
1535
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1536
+ * For the list of reserved names please see:
1537
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1538
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1539
+ * JSPB instance for transitional soy proto support:
1540
+ * http://goto/soy-param-migration
1541
+ * @return {!Object}
1542
+ */
1543
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse.prototype.toObject = function(opt_includeInstance) {
1544
+ return proto.trb.clickhouse.v1.UpsertInstrumentsResponse.toObject(opt_includeInstance, this);
1545
+ };
1546
+
1547
+
1548
+ /**
1549
+ * Static version of the {@see toObject} method.
1550
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1551
+ * the JSPB instance for transitional soy proto support:
1552
+ * http://goto/soy-param-migration
1553
+ * @param {!proto.trb.clickhouse.v1.UpsertInstrumentsResponse} msg The msg instance to transform.
1554
+ * @return {!Object}
1555
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1556
+ */
1557
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse.toObject = function(includeInstance, msg) {
1558
+ var f, obj = {
1559
+ fetched: jspb.Message.getFieldWithDefault(msg, 1, 0),
1560
+ inserted: jspb.Message.getFieldWithDefault(msg, 2, 0),
1561
+ updated: jspb.Message.getFieldWithDefault(msg, 3, 0),
1562
+ unchanged: jspb.Message.getFieldWithDefault(msg, 4, 0)
1563
+ };
1564
+
1565
+ if (includeInstance) {
1566
+ obj.$jspbMessageInstance = msg;
1567
+ }
1568
+ return obj;
1569
+ };
1570
+ }
1571
+
1572
+
1573
+ /**
1574
+ * Deserializes binary data (in protobuf wire format).
1575
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1576
+ * @return {!proto.trb.clickhouse.v1.UpsertInstrumentsResponse}
1577
+ */
1578
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse.deserializeBinary = function(bytes) {
1579
+ var reader = new jspb.BinaryReader(bytes);
1580
+ var msg = new proto.trb.clickhouse.v1.UpsertInstrumentsResponse;
1581
+ return proto.trb.clickhouse.v1.UpsertInstrumentsResponse.deserializeBinaryFromReader(msg, reader);
1582
+ };
1583
+
1584
+
1585
+ /**
1586
+ * Deserializes binary data (in protobuf wire format) from the
1587
+ * given reader into the given message object.
1588
+ * @param {!proto.trb.clickhouse.v1.UpsertInstrumentsResponse} msg The message object to deserialize into.
1589
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1590
+ * @return {!proto.trb.clickhouse.v1.UpsertInstrumentsResponse}
1591
+ */
1592
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse.deserializeBinaryFromReader = function(msg, reader) {
1593
+ while (reader.nextField()) {
1594
+ if (reader.isEndGroup()) {
1595
+ break;
1596
+ }
1597
+ var field = reader.getFieldNumber();
1598
+ switch (field) {
1599
+ case 1:
1600
+ var value = /** @type {number} */ (reader.readInt32());
1601
+ msg.setFetched(value);
1602
+ break;
1603
+ case 2:
1604
+ var value = /** @type {number} */ (reader.readInt32());
1605
+ msg.setInserted(value);
1606
+ break;
1607
+ case 3:
1608
+ var value = /** @type {number} */ (reader.readInt32());
1609
+ msg.setUpdated(value);
1610
+ break;
1611
+ case 4:
1612
+ var value = /** @type {number} */ (reader.readInt32());
1613
+ msg.setUnchanged(value);
1614
+ break;
1615
+ default:
1616
+ reader.skipField();
1617
+ break;
1618
+ }
1619
+ }
1620
+ return msg;
1621
+ };
1622
+
1623
+
1624
+ /**
1625
+ * Serializes the message to binary data (in protobuf wire format).
1626
+ * @return {!Uint8Array}
1627
+ */
1628
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse.prototype.serializeBinary = function() {
1629
+ var writer = new jspb.BinaryWriter();
1630
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse.serializeBinaryToWriter(this, writer);
1631
+ return writer.getResultBuffer();
1632
+ };
1633
+
1634
+
1635
+ /**
1636
+ * Serializes the given message to binary data (in protobuf wire
1637
+ * format), writing to the given BinaryWriter.
1638
+ * @param {!proto.trb.clickhouse.v1.UpsertInstrumentsResponse} message
1639
+ * @param {!jspb.BinaryWriter} writer
1640
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1641
+ */
1642
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse.serializeBinaryToWriter = function(message, writer) {
1643
+ var f = undefined;
1644
+ f = message.getFetched();
1645
+ if (f !== 0) {
1646
+ writer.writeInt32(
1647
+ 1,
1648
+ f
1649
+ );
1650
+ }
1651
+ f = message.getInserted();
1652
+ if (f !== 0) {
1653
+ writer.writeInt32(
1654
+ 2,
1655
+ f
1656
+ );
1657
+ }
1658
+ f = message.getUpdated();
1659
+ if (f !== 0) {
1660
+ writer.writeInt32(
1661
+ 3,
1662
+ f
1663
+ );
1664
+ }
1665
+ f = message.getUnchanged();
1666
+ if (f !== 0) {
1667
+ writer.writeInt32(
1668
+ 4,
1669
+ f
1670
+ );
1671
+ }
1672
+ };
1673
+
1674
+
1675
+ /**
1676
+ * optional int32 fetched = 1;
1677
+ * @return {number}
1678
+ */
1679
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse.prototype.getFetched = function() {
1680
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1681
+ };
1682
+
1683
+
1684
+ /**
1685
+ * @param {number} value
1686
+ * @return {!proto.trb.clickhouse.v1.UpsertInstrumentsResponse} returns this
1687
+ */
1688
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse.prototype.setFetched = function(value) {
1689
+ return jspb.Message.setProto3IntField(this, 1, value);
1690
+ };
1691
+
1692
+
1693
+ /**
1694
+ * optional int32 inserted = 2;
1695
+ * @return {number}
1696
+ */
1697
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse.prototype.getInserted = function() {
1698
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1699
+ };
1700
+
1701
+
1702
+ /**
1703
+ * @param {number} value
1704
+ * @return {!proto.trb.clickhouse.v1.UpsertInstrumentsResponse} returns this
1705
+ */
1706
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse.prototype.setInserted = function(value) {
1707
+ return jspb.Message.setProto3IntField(this, 2, value);
1708
+ };
1709
+
1710
+
1711
+ /**
1712
+ * optional int32 updated = 3;
1713
+ * @return {number}
1714
+ */
1715
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse.prototype.getUpdated = function() {
1716
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1717
+ };
1718
+
1719
+
1720
+ /**
1721
+ * @param {number} value
1722
+ * @return {!proto.trb.clickhouse.v1.UpsertInstrumentsResponse} returns this
1723
+ */
1724
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse.prototype.setUpdated = function(value) {
1725
+ return jspb.Message.setProto3IntField(this, 3, value);
1726
+ };
1727
+
1728
+
1729
+ /**
1730
+ * optional int32 unchanged = 4;
1731
+ * @return {number}
1732
+ */
1733
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse.prototype.getUnchanged = function() {
1734
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1735
+ };
1736
+
1737
+
1738
+ /**
1739
+ * @param {number} value
1740
+ * @return {!proto.trb.clickhouse.v1.UpsertInstrumentsResponse} returns this
1741
+ */
1742
+ proto.trb.clickhouse.v1.UpsertInstrumentsResponse.prototype.setUnchanged = function(value) {
1743
+ return jspb.Message.setProto3IntField(this, 4, value);
1744
+ };
1745
+
1746
+
1747
+
1748
+
1749
+
1750
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1751
+ /**
1752
+ * Creates an object representation of this proto.
1753
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1754
+ * Optional fields that are not set will be set to undefined.
1755
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1756
+ * For the list of reserved names please see:
1757
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1758
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1759
+ * JSPB instance for transitional soy proto support:
1760
+ * http://goto/soy-param-migration
1761
+ * @return {!Object}
1762
+ */
1763
+ proto.trb.clickhouse.v1.ListLastDownloadsRequest.prototype.toObject = function(opt_includeInstance) {
1764
+ return proto.trb.clickhouse.v1.ListLastDownloadsRequest.toObject(opt_includeInstance, this);
1765
+ };
1766
+
1767
+
1768
+ /**
1769
+ * Static version of the {@see toObject} method.
1770
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1771
+ * the JSPB instance for transitional soy proto support:
1772
+ * http://goto/soy-param-migration
1773
+ * @param {!proto.trb.clickhouse.v1.ListLastDownloadsRequest} msg The msg instance to transform.
1774
+ * @return {!Object}
1775
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1776
+ */
1777
+ proto.trb.clickhouse.v1.ListLastDownloadsRequest.toObject = function(includeInstance, msg) {
1778
+ var f, obj = {
1779
+ filter: (f = msg.getFilter()) && proto.trb.clickhouse.v1.ListFilter.toObject(includeInstance, f)
1780
+ };
1781
+
1782
+ if (includeInstance) {
1783
+ obj.$jspbMessageInstance = msg;
1784
+ }
1785
+ return obj;
1786
+ };
1787
+ }
1788
+
1789
+
1790
+ /**
1791
+ * Deserializes binary data (in protobuf wire format).
1792
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1793
+ * @return {!proto.trb.clickhouse.v1.ListLastDownloadsRequest}
1794
+ */
1795
+ proto.trb.clickhouse.v1.ListLastDownloadsRequest.deserializeBinary = function(bytes) {
1796
+ var reader = new jspb.BinaryReader(bytes);
1797
+ var msg = new proto.trb.clickhouse.v1.ListLastDownloadsRequest;
1798
+ return proto.trb.clickhouse.v1.ListLastDownloadsRequest.deserializeBinaryFromReader(msg, reader);
1799
+ };
1800
+
1801
+
1802
+ /**
1803
+ * Deserializes binary data (in protobuf wire format) from the
1804
+ * given reader into the given message object.
1805
+ * @param {!proto.trb.clickhouse.v1.ListLastDownloadsRequest} msg The message object to deserialize into.
1806
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1807
+ * @return {!proto.trb.clickhouse.v1.ListLastDownloadsRequest}
1808
+ */
1809
+ proto.trb.clickhouse.v1.ListLastDownloadsRequest.deserializeBinaryFromReader = function(msg, reader) {
1810
+ while (reader.nextField()) {
1811
+ if (reader.isEndGroup()) {
1812
+ break;
1813
+ }
1814
+ var field = reader.getFieldNumber();
1815
+ switch (field) {
1816
+ case 1:
1817
+ var value = new proto.trb.clickhouse.v1.ListFilter;
1818
+ reader.readMessage(value,proto.trb.clickhouse.v1.ListFilter.deserializeBinaryFromReader);
1819
+ msg.setFilter(value);
1820
+ break;
1821
+ default:
1822
+ reader.skipField();
1823
+ break;
1824
+ }
1825
+ }
1826
+ return msg;
1827
+ };
1828
+
1829
+
1830
+ /**
1831
+ * Serializes the message to binary data (in protobuf wire format).
1832
+ * @return {!Uint8Array}
1833
+ */
1834
+ proto.trb.clickhouse.v1.ListLastDownloadsRequest.prototype.serializeBinary = function() {
1835
+ var writer = new jspb.BinaryWriter();
1836
+ proto.trb.clickhouse.v1.ListLastDownloadsRequest.serializeBinaryToWriter(this, writer);
1837
+ return writer.getResultBuffer();
1838
+ };
1839
+
1840
+
1841
+ /**
1842
+ * Serializes the given message to binary data (in protobuf wire
1843
+ * format), writing to the given BinaryWriter.
1844
+ * @param {!proto.trb.clickhouse.v1.ListLastDownloadsRequest} message
1845
+ * @param {!jspb.BinaryWriter} writer
1846
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1847
+ */
1848
+ proto.trb.clickhouse.v1.ListLastDownloadsRequest.serializeBinaryToWriter = function(message, writer) {
1849
+ var f = undefined;
1850
+ f = message.getFilter();
1851
+ if (f != null) {
1852
+ writer.writeMessage(
1853
+ 1,
1854
+ f,
1855
+ proto.trb.clickhouse.v1.ListFilter.serializeBinaryToWriter
1856
+ );
1857
+ }
1858
+ };
1859
+
1860
+
1861
+ /**
1862
+ * optional ListFilter filter = 1;
1863
+ * @return {?proto.trb.clickhouse.v1.ListFilter}
1864
+ */
1865
+ proto.trb.clickhouse.v1.ListLastDownloadsRequest.prototype.getFilter = function() {
1866
+ return /** @type{?proto.trb.clickhouse.v1.ListFilter} */ (
1867
+ jspb.Message.getWrapperField(this, proto.trb.clickhouse.v1.ListFilter, 1));
1868
+ };
1869
+
1870
+
1871
+ /**
1872
+ * @param {?proto.trb.clickhouse.v1.ListFilter|undefined} value
1873
+ * @return {!proto.trb.clickhouse.v1.ListLastDownloadsRequest} returns this
1874
+ */
1875
+ proto.trb.clickhouse.v1.ListLastDownloadsRequest.prototype.setFilter = function(value) {
1876
+ return jspb.Message.setWrapperField(this, 1, value);
1877
+ };
1878
+
1879
+
1880
+ /**
1881
+ * Clears the message field making it undefined.
1882
+ * @return {!proto.trb.clickhouse.v1.ListLastDownloadsRequest} returns this
1883
+ */
1884
+ proto.trb.clickhouse.v1.ListLastDownloadsRequest.prototype.clearFilter = function() {
1885
+ return this.setFilter(undefined);
1886
+ };
1887
+
1888
+
1889
+ /**
1890
+ * Returns whether this field is set.
1891
+ * @return {boolean}
1892
+ */
1893
+ proto.trb.clickhouse.v1.ListLastDownloadsRequest.prototype.hasFilter = function() {
1894
+ return jspb.Message.getField(this, 1) != null;
1895
+ };
1896
+
1897
+
1898
+
1899
+ /**
1900
+ * List of repeated fields within this message type.
1901
+ * @private {!Array<number>}
1902
+ * @const
1903
+ */
1904
+ proto.trb.clickhouse.v1.ListLastDownloadsResponse.repeatedFields_ = [1];
1905
+
1906
+
1907
+
1908
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1909
+ /**
1910
+ * Creates an object representation of this proto.
1911
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1912
+ * Optional fields that are not set will be set to undefined.
1913
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1914
+ * For the list of reserved names please see:
1915
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1916
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1917
+ * JSPB instance for transitional soy proto support:
1918
+ * http://goto/soy-param-migration
1919
+ * @return {!Object}
1920
+ */
1921
+ proto.trb.clickhouse.v1.ListLastDownloadsResponse.prototype.toObject = function(opt_includeInstance) {
1922
+ return proto.trb.clickhouse.v1.ListLastDownloadsResponse.toObject(opt_includeInstance, this);
1923
+ };
1924
+
1925
+
1926
+ /**
1927
+ * Static version of the {@see toObject} method.
1928
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1929
+ * the JSPB instance for transitional soy proto support:
1930
+ * http://goto/soy-param-migration
1931
+ * @param {!proto.trb.clickhouse.v1.ListLastDownloadsResponse} msg The msg instance to transform.
1932
+ * @return {!Object}
1933
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1934
+ */
1935
+ proto.trb.clickhouse.v1.ListLastDownloadsResponse.toObject = function(includeInstance, msg) {
1936
+ var f, obj = {
1937
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
1938
+ proto.trb.clickhouse.v1.LastDownload.toObject, includeInstance)
1939
+ };
1940
+
1941
+ if (includeInstance) {
1942
+ obj.$jspbMessageInstance = msg;
1943
+ }
1944
+ return obj;
1945
+ };
1946
+ }
1947
+
1948
+
1949
+ /**
1950
+ * Deserializes binary data (in protobuf wire format).
1951
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1952
+ * @return {!proto.trb.clickhouse.v1.ListLastDownloadsResponse}
1953
+ */
1954
+ proto.trb.clickhouse.v1.ListLastDownloadsResponse.deserializeBinary = function(bytes) {
1955
+ var reader = new jspb.BinaryReader(bytes);
1956
+ var msg = new proto.trb.clickhouse.v1.ListLastDownloadsResponse;
1957
+ return proto.trb.clickhouse.v1.ListLastDownloadsResponse.deserializeBinaryFromReader(msg, reader);
1958
+ };
1959
+
1960
+
1961
+ /**
1962
+ * Deserializes binary data (in protobuf wire format) from the
1963
+ * given reader into the given message object.
1964
+ * @param {!proto.trb.clickhouse.v1.ListLastDownloadsResponse} msg The message object to deserialize into.
1965
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1966
+ * @return {!proto.trb.clickhouse.v1.ListLastDownloadsResponse}
1967
+ */
1968
+ proto.trb.clickhouse.v1.ListLastDownloadsResponse.deserializeBinaryFromReader = function(msg, reader) {
1969
+ while (reader.nextField()) {
1970
+ if (reader.isEndGroup()) {
1971
+ break;
1972
+ }
1973
+ var field = reader.getFieldNumber();
1974
+ switch (field) {
1975
+ case 1:
1976
+ var value = new proto.trb.clickhouse.v1.LastDownload;
1977
+ reader.readMessage(value,proto.trb.clickhouse.v1.LastDownload.deserializeBinaryFromReader);
1978
+ msg.addItems(value);
1979
+ break;
1980
+ default:
1981
+ reader.skipField();
1982
+ break;
1983
+ }
1984
+ }
1985
+ return msg;
1986
+ };
1987
+
1988
+
1989
+ /**
1990
+ * Serializes the message to binary data (in protobuf wire format).
1991
+ * @return {!Uint8Array}
1992
+ */
1993
+ proto.trb.clickhouse.v1.ListLastDownloadsResponse.prototype.serializeBinary = function() {
1994
+ var writer = new jspb.BinaryWriter();
1995
+ proto.trb.clickhouse.v1.ListLastDownloadsResponse.serializeBinaryToWriter(this, writer);
1996
+ return writer.getResultBuffer();
1997
+ };
1998
+
1999
+
2000
+ /**
2001
+ * Serializes the given message to binary data (in protobuf wire
2002
+ * format), writing to the given BinaryWriter.
2003
+ * @param {!proto.trb.clickhouse.v1.ListLastDownloadsResponse} message
2004
+ * @param {!jspb.BinaryWriter} writer
2005
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2006
+ */
2007
+ proto.trb.clickhouse.v1.ListLastDownloadsResponse.serializeBinaryToWriter = function(message, writer) {
2008
+ var f = undefined;
2009
+ f = message.getItemsList();
2010
+ if (f.length > 0) {
2011
+ writer.writeRepeatedMessage(
2012
+ 1,
2013
+ f,
2014
+ proto.trb.clickhouse.v1.LastDownload.serializeBinaryToWriter
2015
+ );
2016
+ }
2017
+ };
2018
+
2019
+
2020
+ /**
2021
+ * repeated LastDownload items = 1;
2022
+ * @return {!Array<!proto.trb.clickhouse.v1.LastDownload>}
2023
+ */
2024
+ proto.trb.clickhouse.v1.ListLastDownloadsResponse.prototype.getItemsList = function() {
2025
+ return /** @type{!Array<!proto.trb.clickhouse.v1.LastDownload>} */ (
2026
+ jspb.Message.getRepeatedWrapperField(this, proto.trb.clickhouse.v1.LastDownload, 1));
2027
+ };
2028
+
2029
+
2030
+ /**
2031
+ * @param {!Array<!proto.trb.clickhouse.v1.LastDownload>} value
2032
+ * @return {!proto.trb.clickhouse.v1.ListLastDownloadsResponse} returns this
2033
+ */
2034
+ proto.trb.clickhouse.v1.ListLastDownloadsResponse.prototype.setItemsList = function(value) {
2035
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2036
+ };
2037
+
2038
+
2039
+ /**
2040
+ * @param {!proto.trb.clickhouse.v1.LastDownload=} opt_value
2041
+ * @param {number=} opt_index
2042
+ * @return {!proto.trb.clickhouse.v1.LastDownload}
2043
+ */
2044
+ proto.trb.clickhouse.v1.ListLastDownloadsResponse.prototype.addItems = function(opt_value, opt_index) {
2045
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.clickhouse.v1.LastDownload, opt_index);
2046
+ };
2047
+
2048
+
2049
+ /**
2050
+ * Clears the list making it empty but non-null.
2051
+ * @return {!proto.trb.clickhouse.v1.ListLastDownloadsResponse} returns this
2052
+ */
2053
+ proto.trb.clickhouse.v1.ListLastDownloadsResponse.prototype.clearItemsList = function() {
2054
+ return this.setItemsList([]);
2055
+ };
2056
+
2057
+
2058
+
2059
+
2060
+
2061
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2062
+ /**
2063
+ * Creates an object representation of this proto.
2064
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2065
+ * Optional fields that are not set will be set to undefined.
2066
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2067
+ * For the list of reserved names please see:
2068
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2069
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2070
+ * JSPB instance for transitional soy proto support:
2071
+ * http://goto/soy-param-migration
2072
+ * @return {!Object}
2073
+ */
2074
+ proto.trb.clickhouse.v1.LastDownload.prototype.toObject = function(opt_includeInstance) {
2075
+ return proto.trb.clickhouse.v1.LastDownload.toObject(opt_includeInstance, this);
2076
+ };
2077
+
2078
+
2079
+ /**
2080
+ * Static version of the {@see toObject} method.
2081
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2082
+ * the JSPB instance for transitional soy proto support:
2083
+ * http://goto/soy-param-migration
2084
+ * @param {!proto.trb.clickhouse.v1.LastDownload} msg The msg instance to transform.
2085
+ * @return {!Object}
2086
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2087
+ */
2088
+ proto.trb.clickhouse.v1.LastDownload.toObject = function(includeInstance, msg) {
2089
+ var f, obj = {
2090
+ uid: jspb.Message.getFieldWithDefault(msg, 1, ""),
2091
+ figi: jspb.Message.getFieldWithDefault(msg, 2, ""),
2092
+ ticker: jspb.Message.getFieldWithDefault(msg, 3, ""),
2093
+ name: jspb.Message.getFieldWithDefault(msg, 4, ""),
2094
+ interval: jspb.Message.getFieldWithDefault(msg, 5, 0),
2095
+ lastStart: (f = msg.getLastStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
2096
+ lastEnd: (f = msg.getLastEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
2097
+ hasDownload: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
2098
+ };
2099
+
2100
+ if (includeInstance) {
2101
+ obj.$jspbMessageInstance = msg;
2102
+ }
2103
+ return obj;
2104
+ };
2105
+ }
2106
+
2107
+
2108
+ /**
2109
+ * Deserializes binary data (in protobuf wire format).
2110
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2111
+ * @return {!proto.trb.clickhouse.v1.LastDownload}
2112
+ */
2113
+ proto.trb.clickhouse.v1.LastDownload.deserializeBinary = function(bytes) {
2114
+ var reader = new jspb.BinaryReader(bytes);
2115
+ var msg = new proto.trb.clickhouse.v1.LastDownload;
2116
+ return proto.trb.clickhouse.v1.LastDownload.deserializeBinaryFromReader(msg, reader);
2117
+ };
2118
+
2119
+
2120
+ /**
2121
+ * Deserializes binary data (in protobuf wire format) from the
2122
+ * given reader into the given message object.
2123
+ * @param {!proto.trb.clickhouse.v1.LastDownload} msg The message object to deserialize into.
2124
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2125
+ * @return {!proto.trb.clickhouse.v1.LastDownload}
2126
+ */
2127
+ proto.trb.clickhouse.v1.LastDownload.deserializeBinaryFromReader = function(msg, reader) {
2128
+ while (reader.nextField()) {
2129
+ if (reader.isEndGroup()) {
2130
+ break;
2131
+ }
2132
+ var field = reader.getFieldNumber();
2133
+ switch (field) {
2134
+ case 1:
2135
+ var value = /** @type {string} */ (reader.readString());
2136
+ msg.setUid(value);
2137
+ break;
2138
+ case 2:
2139
+ var value = /** @type {string} */ (reader.readString());
2140
+ msg.setFigi(value);
2141
+ break;
2142
+ case 3:
2143
+ var value = /** @type {string} */ (reader.readString());
2144
+ msg.setTicker(value);
2145
+ break;
2146
+ case 4:
2147
+ var value = /** @type {string} */ (reader.readString());
2148
+ msg.setName(value);
2149
+ break;
2150
+ case 5:
2151
+ var value = /** @type {number} */ (reader.readInt32());
2152
+ msg.setInterval(value);
2153
+ break;
2154
+ case 6:
2155
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2156
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2157
+ msg.setLastStart(value);
2158
+ break;
2159
+ case 7:
2160
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2161
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2162
+ msg.setLastEnd(value);
2163
+ break;
2164
+ case 8:
2165
+ var value = /** @type {boolean} */ (reader.readBool());
2166
+ msg.setHasDownload(value);
2167
+ break;
2168
+ default:
2169
+ reader.skipField();
2170
+ break;
2171
+ }
2172
+ }
2173
+ return msg;
2174
+ };
2175
+
2176
+
2177
+ /**
2178
+ * Serializes the message to binary data (in protobuf wire format).
2179
+ * @return {!Uint8Array}
2180
+ */
2181
+ proto.trb.clickhouse.v1.LastDownload.prototype.serializeBinary = function() {
2182
+ var writer = new jspb.BinaryWriter();
2183
+ proto.trb.clickhouse.v1.LastDownload.serializeBinaryToWriter(this, writer);
2184
+ return writer.getResultBuffer();
2185
+ };
2186
+
2187
+
2188
+ /**
2189
+ * Serializes the given message to binary data (in protobuf wire
2190
+ * format), writing to the given BinaryWriter.
2191
+ * @param {!proto.trb.clickhouse.v1.LastDownload} message
2192
+ * @param {!jspb.BinaryWriter} writer
2193
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2194
+ */
2195
+ proto.trb.clickhouse.v1.LastDownload.serializeBinaryToWriter = function(message, writer) {
2196
+ var f = undefined;
2197
+ f = message.getUid();
2198
+ if (f.length > 0) {
2199
+ writer.writeString(
2200
+ 1,
2201
+ f
2202
+ );
2203
+ }
2204
+ f = message.getFigi();
2205
+ if (f.length > 0) {
2206
+ writer.writeString(
2207
+ 2,
2208
+ f
2209
+ );
2210
+ }
2211
+ f = message.getTicker();
2212
+ if (f.length > 0) {
2213
+ writer.writeString(
2214
+ 3,
2215
+ f
2216
+ );
2217
+ }
2218
+ f = message.getName();
2219
+ if (f.length > 0) {
2220
+ writer.writeString(
2221
+ 4,
2222
+ f
2223
+ );
2224
+ }
2225
+ f = message.getInterval();
2226
+ if (f !== 0) {
2227
+ writer.writeInt32(
2228
+ 5,
2229
+ f
2230
+ );
2231
+ }
2232
+ f = message.getLastStart();
2233
+ if (f != null) {
2234
+ writer.writeMessage(
2235
+ 6,
2236
+ f,
2237
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2238
+ );
2239
+ }
2240
+ f = message.getLastEnd();
2241
+ if (f != null) {
2242
+ writer.writeMessage(
2243
+ 7,
2244
+ f,
2245
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2246
+ );
2247
+ }
2248
+ f = message.getHasDownload();
2249
+ if (f) {
2250
+ writer.writeBool(
2251
+ 8,
2252
+ f
2253
+ );
2254
+ }
2255
+ };
2256
+
2257
+
2258
+ /**
2259
+ * optional string uid = 1;
2260
+ * @return {string}
2261
+ */
2262
+ proto.trb.clickhouse.v1.LastDownload.prototype.getUid = function() {
2263
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2264
+ };
2265
+
2266
+
2267
+ /**
2268
+ * @param {string} value
2269
+ * @return {!proto.trb.clickhouse.v1.LastDownload} returns this
2270
+ */
2271
+ proto.trb.clickhouse.v1.LastDownload.prototype.setUid = function(value) {
2272
+ return jspb.Message.setProto3StringField(this, 1, value);
2273
+ };
2274
+
2275
+
2276
+ /**
2277
+ * optional string figi = 2;
2278
+ * @return {string}
2279
+ */
2280
+ proto.trb.clickhouse.v1.LastDownload.prototype.getFigi = function() {
2281
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2282
+ };
2283
+
2284
+
2285
+ /**
2286
+ * @param {string} value
2287
+ * @return {!proto.trb.clickhouse.v1.LastDownload} returns this
2288
+ */
2289
+ proto.trb.clickhouse.v1.LastDownload.prototype.setFigi = function(value) {
2290
+ return jspb.Message.setProto3StringField(this, 2, value);
2291
+ };
2292
+
2293
+
2294
+ /**
2295
+ * optional string ticker = 3;
2296
+ * @return {string}
2297
+ */
2298
+ proto.trb.clickhouse.v1.LastDownload.prototype.getTicker = function() {
2299
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2300
+ };
2301
+
2302
+
2303
+ /**
2304
+ * @param {string} value
2305
+ * @return {!proto.trb.clickhouse.v1.LastDownload} returns this
2306
+ */
2307
+ proto.trb.clickhouse.v1.LastDownload.prototype.setTicker = function(value) {
2308
+ return jspb.Message.setProto3StringField(this, 3, value);
2309
+ };
2310
+
2311
+
2312
+ /**
2313
+ * optional string name = 4;
2314
+ * @return {string}
2315
+ */
2316
+ proto.trb.clickhouse.v1.LastDownload.prototype.getName = function() {
2317
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2318
+ };
2319
+
2320
+
2321
+ /**
2322
+ * @param {string} value
2323
+ * @return {!proto.trb.clickhouse.v1.LastDownload} returns this
2324
+ */
2325
+ proto.trb.clickhouse.v1.LastDownload.prototype.setName = function(value) {
2326
+ return jspb.Message.setProto3StringField(this, 4, value);
2327
+ };
2328
+
2329
+
2330
+ /**
2331
+ * optional int32 interval = 5;
2332
+ * @return {number}
2333
+ */
2334
+ proto.trb.clickhouse.v1.LastDownload.prototype.getInterval = function() {
2335
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2336
+ };
2337
+
2338
+
2339
+ /**
2340
+ * @param {number} value
2341
+ * @return {!proto.trb.clickhouse.v1.LastDownload} returns this
2342
+ */
2343
+ proto.trb.clickhouse.v1.LastDownload.prototype.setInterval = function(value) {
2344
+ return jspb.Message.setProto3IntField(this, 5, value);
2345
+ };
2346
+
2347
+
2348
+ /**
2349
+ * optional google.protobuf.Timestamp last_start = 6;
2350
+ * @return {?proto.google.protobuf.Timestamp}
2351
+ */
2352
+ proto.trb.clickhouse.v1.LastDownload.prototype.getLastStart = function() {
2353
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2354
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
2355
+ };
2356
+
2357
+
2358
+ /**
2359
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2360
+ * @return {!proto.trb.clickhouse.v1.LastDownload} returns this
2361
+ */
2362
+ proto.trb.clickhouse.v1.LastDownload.prototype.setLastStart = function(value) {
2363
+ return jspb.Message.setWrapperField(this, 6, value);
2364
+ };
2365
+
2366
+
2367
+ /**
2368
+ * Clears the message field making it undefined.
2369
+ * @return {!proto.trb.clickhouse.v1.LastDownload} returns this
2370
+ */
2371
+ proto.trb.clickhouse.v1.LastDownload.prototype.clearLastStart = function() {
2372
+ return this.setLastStart(undefined);
2373
+ };
2374
+
2375
+
2376
+ /**
2377
+ * Returns whether this field is set.
2378
+ * @return {boolean}
2379
+ */
2380
+ proto.trb.clickhouse.v1.LastDownload.prototype.hasLastStart = function() {
2381
+ return jspb.Message.getField(this, 6) != null;
2382
+ };
2383
+
2384
+
2385
+ /**
2386
+ * optional google.protobuf.Timestamp last_end = 7;
2387
+ * @return {?proto.google.protobuf.Timestamp}
2388
+ */
2389
+ proto.trb.clickhouse.v1.LastDownload.prototype.getLastEnd = function() {
2390
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2391
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
2392
+ };
2393
+
2394
+
2395
+ /**
2396
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2397
+ * @return {!proto.trb.clickhouse.v1.LastDownload} returns this
2398
+ */
2399
+ proto.trb.clickhouse.v1.LastDownload.prototype.setLastEnd = function(value) {
2400
+ return jspb.Message.setWrapperField(this, 7, value);
2401
+ };
2402
+
2403
+
2404
+ /**
2405
+ * Clears the message field making it undefined.
2406
+ * @return {!proto.trb.clickhouse.v1.LastDownload} returns this
2407
+ */
2408
+ proto.trb.clickhouse.v1.LastDownload.prototype.clearLastEnd = function() {
2409
+ return this.setLastEnd(undefined);
2410
+ };
2411
+
2412
+
2413
+ /**
2414
+ * Returns whether this field is set.
2415
+ * @return {boolean}
2416
+ */
2417
+ proto.trb.clickhouse.v1.LastDownload.prototype.hasLastEnd = function() {
2418
+ return jspb.Message.getField(this, 7) != null;
2419
+ };
2420
+
2421
+
2422
+ /**
2423
+ * optional bool has_download = 8;
2424
+ * @return {boolean}
2425
+ */
2426
+ proto.trb.clickhouse.v1.LastDownload.prototype.getHasDownload = function() {
2427
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
2428
+ };
2429
+
2430
+
2431
+ /**
2432
+ * @param {boolean} value
2433
+ * @return {!proto.trb.clickhouse.v1.LastDownload} returns this
2434
+ */
2435
+ proto.trb.clickhouse.v1.LastDownload.prototype.setHasDownload = function(value) {
2436
+ return jspb.Message.setProto3BooleanField(this, 8, value);
2437
+ };
2438
+
2439
+
2440
+ goog.object.extend(exports, proto.trb.clickhouse.v1);