@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,1311 @@
1
+ // source: postgresql/postgresql.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_api_annotations_pb = require('../google/api/annotations_pb.js');
25
+ goog.object.extend(proto, google_api_annotations_pb);
26
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
27
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
28
+ goog.exportSymbol('proto.trb.postgresql.v1.ListSchedulerTargetsRequest', null, global);
29
+ goog.exportSymbol('proto.trb.postgresql.v1.ListSchedulerTargetsResponse', null, global);
30
+ goog.exportSymbol('proto.trb.postgresql.v1.SchedulerTarget', null, global);
31
+ goog.exportSymbol('proto.trb.postgresql.v1.SchedulerTargetInstrument', null, global);
32
+ goog.exportSymbol('proto.trb.postgresql.v1.SyncSchedulerTargetsRequest', null, global);
33
+ goog.exportSymbol('proto.trb.postgresql.v1.SyncSchedulerTargetsResponse', null, global);
34
+ /**
35
+ * Generated by JsPbCodeGenerator.
36
+ * @param {Array=} opt_data Optional initial data array, typically from a
37
+ * server response, or constructed directly in Javascript. The array is used
38
+ * in place and becomes part of the constructed object. It is not cloned.
39
+ * If no data is provided, the constructed object will be empty, but still
40
+ * valid.
41
+ * @extends {jspb.Message}
42
+ * @constructor
43
+ */
44
+ proto.trb.postgresql.v1.ListSchedulerTargetsRequest = function(opt_data) {
45
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
46
+ };
47
+ goog.inherits(proto.trb.postgresql.v1.ListSchedulerTargetsRequest, jspb.Message);
48
+ if (goog.DEBUG && !COMPILED) {
49
+ /**
50
+ * @public
51
+ * @override
52
+ */
53
+ proto.trb.postgresql.v1.ListSchedulerTargetsRequest.displayName = 'proto.trb.postgresql.v1.ListSchedulerTargetsRequest';
54
+ }
55
+ /**
56
+ * Generated by JsPbCodeGenerator.
57
+ * @param {Array=} opt_data Optional initial data array, typically from a
58
+ * server response, or constructed directly in Javascript. The array is used
59
+ * in place and becomes part of the constructed object. It is not cloned.
60
+ * If no data is provided, the constructed object will be empty, but still
61
+ * valid.
62
+ * @extends {jspb.Message}
63
+ * @constructor
64
+ */
65
+ proto.trb.postgresql.v1.ListSchedulerTargetsResponse = function(opt_data) {
66
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.postgresql.v1.ListSchedulerTargetsResponse.repeatedFields_, null);
67
+ };
68
+ goog.inherits(proto.trb.postgresql.v1.ListSchedulerTargetsResponse, jspb.Message);
69
+ if (goog.DEBUG && !COMPILED) {
70
+ /**
71
+ * @public
72
+ * @override
73
+ */
74
+ proto.trb.postgresql.v1.ListSchedulerTargetsResponse.displayName = 'proto.trb.postgresql.v1.ListSchedulerTargetsResponse';
75
+ }
76
+ /**
77
+ * Generated by JsPbCodeGenerator.
78
+ * @param {Array=} opt_data Optional initial data array, typically from a
79
+ * server response, or constructed directly in Javascript. The array is used
80
+ * in place and becomes part of the constructed object. It is not cloned.
81
+ * If no data is provided, the constructed object will be empty, but still
82
+ * valid.
83
+ * @extends {jspb.Message}
84
+ * @constructor
85
+ */
86
+ proto.trb.postgresql.v1.SchedulerTarget = function(opt_data) {
87
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
88
+ };
89
+ goog.inherits(proto.trb.postgresql.v1.SchedulerTarget, jspb.Message);
90
+ if (goog.DEBUG && !COMPILED) {
91
+ /**
92
+ * @public
93
+ * @override
94
+ */
95
+ proto.trb.postgresql.v1.SchedulerTarget.displayName = 'proto.trb.postgresql.v1.SchedulerTarget';
96
+ }
97
+ /**
98
+ * Generated by JsPbCodeGenerator.
99
+ * @param {Array=} opt_data Optional initial data array, typically from a
100
+ * server response, or constructed directly in Javascript. The array is used
101
+ * in place and becomes part of the constructed object. It is not cloned.
102
+ * If no data is provided, the constructed object will be empty, but still
103
+ * valid.
104
+ * @extends {jspb.Message}
105
+ * @constructor
106
+ */
107
+ proto.trb.postgresql.v1.SyncSchedulerTargetsRequest = function(opt_data) {
108
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.repeatedFields_, null);
109
+ };
110
+ goog.inherits(proto.trb.postgresql.v1.SyncSchedulerTargetsRequest, jspb.Message);
111
+ if (goog.DEBUG && !COMPILED) {
112
+ /**
113
+ * @public
114
+ * @override
115
+ */
116
+ proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.displayName = 'proto.trb.postgresql.v1.SyncSchedulerTargetsRequest';
117
+ }
118
+ /**
119
+ * Generated by JsPbCodeGenerator.
120
+ * @param {Array=} opt_data Optional initial data array, typically from a
121
+ * server response, or constructed directly in Javascript. The array is used
122
+ * in place and becomes part of the constructed object. It is not cloned.
123
+ * If no data is provided, the constructed object will be empty, but still
124
+ * valid.
125
+ * @extends {jspb.Message}
126
+ * @constructor
127
+ */
128
+ proto.trb.postgresql.v1.SchedulerTargetInstrument = function(opt_data) {
129
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.postgresql.v1.SchedulerTargetInstrument.repeatedFields_, null);
130
+ };
131
+ goog.inherits(proto.trb.postgresql.v1.SchedulerTargetInstrument, jspb.Message);
132
+ if (goog.DEBUG && !COMPILED) {
133
+ /**
134
+ * @public
135
+ * @override
136
+ */
137
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.displayName = 'proto.trb.postgresql.v1.SchedulerTargetInstrument';
138
+ }
139
+ /**
140
+ * Generated by JsPbCodeGenerator.
141
+ * @param {Array=} opt_data Optional initial data array, typically from a
142
+ * server response, or constructed directly in Javascript. The array is used
143
+ * in place and becomes part of the constructed object. It is not cloned.
144
+ * If no data is provided, the constructed object will be empty, but still
145
+ * valid.
146
+ * @extends {jspb.Message}
147
+ * @constructor
148
+ */
149
+ proto.trb.postgresql.v1.SyncSchedulerTargetsResponse = function(opt_data) {
150
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
151
+ };
152
+ goog.inherits(proto.trb.postgresql.v1.SyncSchedulerTargetsResponse, jspb.Message);
153
+ if (goog.DEBUG && !COMPILED) {
154
+ /**
155
+ * @public
156
+ * @override
157
+ */
158
+ proto.trb.postgresql.v1.SyncSchedulerTargetsResponse.displayName = 'proto.trb.postgresql.v1.SyncSchedulerTargetsResponse';
159
+ }
160
+
161
+
162
+
163
+ if (jspb.Message.GENERATE_TO_OBJECT) {
164
+ /**
165
+ * Creates an object representation of this proto.
166
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
167
+ * Optional fields that are not set will be set to undefined.
168
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
169
+ * For the list of reserved names please see:
170
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
171
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
172
+ * JSPB instance for transitional soy proto support:
173
+ * http://goto/soy-param-migration
174
+ * @return {!Object}
175
+ */
176
+ proto.trb.postgresql.v1.ListSchedulerTargetsRequest.prototype.toObject = function(opt_includeInstance) {
177
+ return proto.trb.postgresql.v1.ListSchedulerTargetsRequest.toObject(opt_includeInstance, this);
178
+ };
179
+
180
+
181
+ /**
182
+ * Static version of the {@see toObject} method.
183
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
184
+ * the JSPB instance for transitional soy proto support:
185
+ * http://goto/soy-param-migration
186
+ * @param {!proto.trb.postgresql.v1.ListSchedulerTargetsRequest} msg The msg instance to transform.
187
+ * @return {!Object}
188
+ * @suppress {unusedLocalVariables} f is only used for nested messages
189
+ */
190
+ proto.trb.postgresql.v1.ListSchedulerTargetsRequest.toObject = function(includeInstance, msg) {
191
+ var f, obj = {
192
+
193
+ };
194
+
195
+ if (includeInstance) {
196
+ obj.$jspbMessageInstance = msg;
197
+ }
198
+ return obj;
199
+ };
200
+ }
201
+
202
+
203
+ /**
204
+ * Deserializes binary data (in protobuf wire format).
205
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
206
+ * @return {!proto.trb.postgresql.v1.ListSchedulerTargetsRequest}
207
+ */
208
+ proto.trb.postgresql.v1.ListSchedulerTargetsRequest.deserializeBinary = function(bytes) {
209
+ var reader = new jspb.BinaryReader(bytes);
210
+ var msg = new proto.trb.postgresql.v1.ListSchedulerTargetsRequest;
211
+ return proto.trb.postgresql.v1.ListSchedulerTargetsRequest.deserializeBinaryFromReader(msg, reader);
212
+ };
213
+
214
+
215
+ /**
216
+ * Deserializes binary data (in protobuf wire format) from the
217
+ * given reader into the given message object.
218
+ * @param {!proto.trb.postgresql.v1.ListSchedulerTargetsRequest} msg The message object to deserialize into.
219
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
220
+ * @return {!proto.trb.postgresql.v1.ListSchedulerTargetsRequest}
221
+ */
222
+ proto.trb.postgresql.v1.ListSchedulerTargetsRequest.deserializeBinaryFromReader = function(msg, reader) {
223
+ while (reader.nextField()) {
224
+ if (reader.isEndGroup()) {
225
+ break;
226
+ }
227
+ var field = reader.getFieldNumber();
228
+ switch (field) {
229
+ default:
230
+ reader.skipField();
231
+ break;
232
+ }
233
+ }
234
+ return msg;
235
+ };
236
+
237
+
238
+ /**
239
+ * Serializes the message to binary data (in protobuf wire format).
240
+ * @return {!Uint8Array}
241
+ */
242
+ proto.trb.postgresql.v1.ListSchedulerTargetsRequest.prototype.serializeBinary = function() {
243
+ var writer = new jspb.BinaryWriter();
244
+ proto.trb.postgresql.v1.ListSchedulerTargetsRequest.serializeBinaryToWriter(this, writer);
245
+ return writer.getResultBuffer();
246
+ };
247
+
248
+
249
+ /**
250
+ * Serializes the given message to binary data (in protobuf wire
251
+ * format), writing to the given BinaryWriter.
252
+ * @param {!proto.trb.postgresql.v1.ListSchedulerTargetsRequest} message
253
+ * @param {!jspb.BinaryWriter} writer
254
+ * @suppress {unusedLocalVariables} f is only used for nested messages
255
+ */
256
+ proto.trb.postgresql.v1.ListSchedulerTargetsRequest.serializeBinaryToWriter = function(message, writer) {
257
+ var f = undefined;
258
+ };
259
+
260
+
261
+
262
+ /**
263
+ * List of repeated fields within this message type.
264
+ * @private {!Array<number>}
265
+ * @const
266
+ */
267
+ proto.trb.postgresql.v1.ListSchedulerTargetsResponse.repeatedFields_ = [1];
268
+
269
+
270
+
271
+ if (jspb.Message.GENERATE_TO_OBJECT) {
272
+ /**
273
+ * Creates an object representation of this proto.
274
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
275
+ * Optional fields that are not set will be set to undefined.
276
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
277
+ * For the list of reserved names please see:
278
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
279
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
280
+ * JSPB instance for transitional soy proto support:
281
+ * http://goto/soy-param-migration
282
+ * @return {!Object}
283
+ */
284
+ proto.trb.postgresql.v1.ListSchedulerTargetsResponse.prototype.toObject = function(opt_includeInstance) {
285
+ return proto.trb.postgresql.v1.ListSchedulerTargetsResponse.toObject(opt_includeInstance, this);
286
+ };
287
+
288
+
289
+ /**
290
+ * Static version of the {@see toObject} method.
291
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
292
+ * the JSPB instance for transitional soy proto support:
293
+ * http://goto/soy-param-migration
294
+ * @param {!proto.trb.postgresql.v1.ListSchedulerTargetsResponse} msg The msg instance to transform.
295
+ * @return {!Object}
296
+ * @suppress {unusedLocalVariables} f is only used for nested messages
297
+ */
298
+ proto.trb.postgresql.v1.ListSchedulerTargetsResponse.toObject = function(includeInstance, msg) {
299
+ var f, obj = {
300
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
301
+ proto.trb.postgresql.v1.SchedulerTarget.toObject, includeInstance)
302
+ };
303
+
304
+ if (includeInstance) {
305
+ obj.$jspbMessageInstance = msg;
306
+ }
307
+ return obj;
308
+ };
309
+ }
310
+
311
+
312
+ /**
313
+ * Deserializes binary data (in protobuf wire format).
314
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
315
+ * @return {!proto.trb.postgresql.v1.ListSchedulerTargetsResponse}
316
+ */
317
+ proto.trb.postgresql.v1.ListSchedulerTargetsResponse.deserializeBinary = function(bytes) {
318
+ var reader = new jspb.BinaryReader(bytes);
319
+ var msg = new proto.trb.postgresql.v1.ListSchedulerTargetsResponse;
320
+ return proto.trb.postgresql.v1.ListSchedulerTargetsResponse.deserializeBinaryFromReader(msg, reader);
321
+ };
322
+
323
+
324
+ /**
325
+ * Deserializes binary data (in protobuf wire format) from the
326
+ * given reader into the given message object.
327
+ * @param {!proto.trb.postgresql.v1.ListSchedulerTargetsResponse} msg The message object to deserialize into.
328
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
329
+ * @return {!proto.trb.postgresql.v1.ListSchedulerTargetsResponse}
330
+ */
331
+ proto.trb.postgresql.v1.ListSchedulerTargetsResponse.deserializeBinaryFromReader = function(msg, reader) {
332
+ while (reader.nextField()) {
333
+ if (reader.isEndGroup()) {
334
+ break;
335
+ }
336
+ var field = reader.getFieldNumber();
337
+ switch (field) {
338
+ case 1:
339
+ var value = new proto.trb.postgresql.v1.SchedulerTarget;
340
+ reader.readMessage(value,proto.trb.postgresql.v1.SchedulerTarget.deserializeBinaryFromReader);
341
+ msg.addItems(value);
342
+ break;
343
+ default:
344
+ reader.skipField();
345
+ break;
346
+ }
347
+ }
348
+ return msg;
349
+ };
350
+
351
+
352
+ /**
353
+ * Serializes the message to binary data (in protobuf wire format).
354
+ * @return {!Uint8Array}
355
+ */
356
+ proto.trb.postgresql.v1.ListSchedulerTargetsResponse.prototype.serializeBinary = function() {
357
+ var writer = new jspb.BinaryWriter();
358
+ proto.trb.postgresql.v1.ListSchedulerTargetsResponse.serializeBinaryToWriter(this, writer);
359
+ return writer.getResultBuffer();
360
+ };
361
+
362
+
363
+ /**
364
+ * Serializes the given message to binary data (in protobuf wire
365
+ * format), writing to the given BinaryWriter.
366
+ * @param {!proto.trb.postgresql.v1.ListSchedulerTargetsResponse} message
367
+ * @param {!jspb.BinaryWriter} writer
368
+ * @suppress {unusedLocalVariables} f is only used for nested messages
369
+ */
370
+ proto.trb.postgresql.v1.ListSchedulerTargetsResponse.serializeBinaryToWriter = function(message, writer) {
371
+ var f = undefined;
372
+ f = message.getItemsList();
373
+ if (f.length > 0) {
374
+ writer.writeRepeatedMessage(
375
+ 1,
376
+ f,
377
+ proto.trb.postgresql.v1.SchedulerTarget.serializeBinaryToWriter
378
+ );
379
+ }
380
+ };
381
+
382
+
383
+ /**
384
+ * repeated SchedulerTarget items = 1;
385
+ * @return {!Array<!proto.trb.postgresql.v1.SchedulerTarget>}
386
+ */
387
+ proto.trb.postgresql.v1.ListSchedulerTargetsResponse.prototype.getItemsList = function() {
388
+ return /** @type{!Array<!proto.trb.postgresql.v1.SchedulerTarget>} */ (
389
+ jspb.Message.getRepeatedWrapperField(this, proto.trb.postgresql.v1.SchedulerTarget, 1));
390
+ };
391
+
392
+
393
+ /**
394
+ * @param {!Array<!proto.trb.postgresql.v1.SchedulerTarget>} value
395
+ * @return {!proto.trb.postgresql.v1.ListSchedulerTargetsResponse} returns this
396
+ */
397
+ proto.trb.postgresql.v1.ListSchedulerTargetsResponse.prototype.setItemsList = function(value) {
398
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
399
+ };
400
+
401
+
402
+ /**
403
+ * @param {!proto.trb.postgresql.v1.SchedulerTarget=} opt_value
404
+ * @param {number=} opt_index
405
+ * @return {!proto.trb.postgresql.v1.SchedulerTarget}
406
+ */
407
+ proto.trb.postgresql.v1.ListSchedulerTargetsResponse.prototype.addItems = function(opt_value, opt_index) {
408
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.postgresql.v1.SchedulerTarget, opt_index);
409
+ };
410
+
411
+
412
+ /**
413
+ * Clears the list making it empty but non-null.
414
+ * @return {!proto.trb.postgresql.v1.ListSchedulerTargetsResponse} returns this
415
+ */
416
+ proto.trb.postgresql.v1.ListSchedulerTargetsResponse.prototype.clearItemsList = function() {
417
+ return this.setItemsList([]);
418
+ };
419
+
420
+
421
+
422
+
423
+
424
+ if (jspb.Message.GENERATE_TO_OBJECT) {
425
+ /**
426
+ * Creates an object representation of this proto.
427
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
428
+ * Optional fields that are not set will be set to undefined.
429
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
430
+ * For the list of reserved names please see:
431
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
432
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
433
+ * JSPB instance for transitional soy proto support:
434
+ * http://goto/soy-param-migration
435
+ * @return {!Object}
436
+ */
437
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.toObject = function(opt_includeInstance) {
438
+ return proto.trb.postgresql.v1.SchedulerTarget.toObject(opt_includeInstance, this);
439
+ };
440
+
441
+
442
+ /**
443
+ * Static version of the {@see toObject} method.
444
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
445
+ * the JSPB instance for transitional soy proto support:
446
+ * http://goto/soy-param-migration
447
+ * @param {!proto.trb.postgresql.v1.SchedulerTarget} msg The msg instance to transform.
448
+ * @return {!Object}
449
+ * @suppress {unusedLocalVariables} f is only used for nested messages
450
+ */
451
+ proto.trb.postgresql.v1.SchedulerTarget.toObject = function(includeInstance, msg) {
452
+ var f, obj = {
453
+ uid: jspb.Message.getFieldWithDefault(msg, 1, ""),
454
+ interval: jspb.Message.getFieldWithDefault(msg, 2, 0),
455
+ enabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
456
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
457
+ updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
458
+ ticker: jspb.Message.getFieldWithDefault(msg, 6, ""),
459
+ name: jspb.Message.getFieldWithDefault(msg, 7, ""),
460
+ figi: jspb.Message.getFieldWithDefault(msg, 8, "")
461
+ };
462
+
463
+ if (includeInstance) {
464
+ obj.$jspbMessageInstance = msg;
465
+ }
466
+ return obj;
467
+ };
468
+ }
469
+
470
+
471
+ /**
472
+ * Deserializes binary data (in protobuf wire format).
473
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
474
+ * @return {!proto.trb.postgresql.v1.SchedulerTarget}
475
+ */
476
+ proto.trb.postgresql.v1.SchedulerTarget.deserializeBinary = function(bytes) {
477
+ var reader = new jspb.BinaryReader(bytes);
478
+ var msg = new proto.trb.postgresql.v1.SchedulerTarget;
479
+ return proto.trb.postgresql.v1.SchedulerTarget.deserializeBinaryFromReader(msg, reader);
480
+ };
481
+
482
+
483
+ /**
484
+ * Deserializes binary data (in protobuf wire format) from the
485
+ * given reader into the given message object.
486
+ * @param {!proto.trb.postgresql.v1.SchedulerTarget} msg The message object to deserialize into.
487
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
488
+ * @return {!proto.trb.postgresql.v1.SchedulerTarget}
489
+ */
490
+ proto.trb.postgresql.v1.SchedulerTarget.deserializeBinaryFromReader = function(msg, reader) {
491
+ while (reader.nextField()) {
492
+ if (reader.isEndGroup()) {
493
+ break;
494
+ }
495
+ var field = reader.getFieldNumber();
496
+ switch (field) {
497
+ case 1:
498
+ var value = /** @type {string} */ (reader.readString());
499
+ msg.setUid(value);
500
+ break;
501
+ case 2:
502
+ var value = /** @type {number} */ (reader.readInt32());
503
+ msg.setInterval(value);
504
+ break;
505
+ case 3:
506
+ var value = /** @type {boolean} */ (reader.readBool());
507
+ msg.setEnabled(value);
508
+ break;
509
+ case 4:
510
+ var value = new google_protobuf_timestamp_pb.Timestamp;
511
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
512
+ msg.setCreatedAt(value);
513
+ break;
514
+ case 5:
515
+ var value = new google_protobuf_timestamp_pb.Timestamp;
516
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
517
+ msg.setUpdatedAt(value);
518
+ break;
519
+ case 6:
520
+ var value = /** @type {string} */ (reader.readString());
521
+ msg.setTicker(value);
522
+ break;
523
+ case 7:
524
+ var value = /** @type {string} */ (reader.readString());
525
+ msg.setName(value);
526
+ break;
527
+ case 8:
528
+ var value = /** @type {string} */ (reader.readString());
529
+ msg.setFigi(value);
530
+ break;
531
+ default:
532
+ reader.skipField();
533
+ break;
534
+ }
535
+ }
536
+ return msg;
537
+ };
538
+
539
+
540
+ /**
541
+ * Serializes the message to binary data (in protobuf wire format).
542
+ * @return {!Uint8Array}
543
+ */
544
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.serializeBinary = function() {
545
+ var writer = new jspb.BinaryWriter();
546
+ proto.trb.postgresql.v1.SchedulerTarget.serializeBinaryToWriter(this, writer);
547
+ return writer.getResultBuffer();
548
+ };
549
+
550
+
551
+ /**
552
+ * Serializes the given message to binary data (in protobuf wire
553
+ * format), writing to the given BinaryWriter.
554
+ * @param {!proto.trb.postgresql.v1.SchedulerTarget} message
555
+ * @param {!jspb.BinaryWriter} writer
556
+ * @suppress {unusedLocalVariables} f is only used for nested messages
557
+ */
558
+ proto.trb.postgresql.v1.SchedulerTarget.serializeBinaryToWriter = function(message, writer) {
559
+ var f = undefined;
560
+ f = message.getUid();
561
+ if (f.length > 0) {
562
+ writer.writeString(
563
+ 1,
564
+ f
565
+ );
566
+ }
567
+ f = message.getInterval();
568
+ if (f !== 0) {
569
+ writer.writeInt32(
570
+ 2,
571
+ f
572
+ );
573
+ }
574
+ f = message.getEnabled();
575
+ if (f) {
576
+ writer.writeBool(
577
+ 3,
578
+ f
579
+ );
580
+ }
581
+ f = message.getCreatedAt();
582
+ if (f != null) {
583
+ writer.writeMessage(
584
+ 4,
585
+ f,
586
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
587
+ );
588
+ }
589
+ f = message.getUpdatedAt();
590
+ if (f != null) {
591
+ writer.writeMessage(
592
+ 5,
593
+ f,
594
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
595
+ );
596
+ }
597
+ f = message.getTicker();
598
+ if (f.length > 0) {
599
+ writer.writeString(
600
+ 6,
601
+ f
602
+ );
603
+ }
604
+ f = message.getName();
605
+ if (f.length > 0) {
606
+ writer.writeString(
607
+ 7,
608
+ f
609
+ );
610
+ }
611
+ f = message.getFigi();
612
+ if (f.length > 0) {
613
+ writer.writeString(
614
+ 8,
615
+ f
616
+ );
617
+ }
618
+ };
619
+
620
+
621
+ /**
622
+ * optional string uid = 1;
623
+ * @return {string}
624
+ */
625
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.getUid = function() {
626
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
627
+ };
628
+
629
+
630
+ /**
631
+ * @param {string} value
632
+ * @return {!proto.trb.postgresql.v1.SchedulerTarget} returns this
633
+ */
634
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.setUid = function(value) {
635
+ return jspb.Message.setProto3StringField(this, 1, value);
636
+ };
637
+
638
+
639
+ /**
640
+ * optional int32 interval = 2;
641
+ * @return {number}
642
+ */
643
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.getInterval = function() {
644
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
645
+ };
646
+
647
+
648
+ /**
649
+ * @param {number} value
650
+ * @return {!proto.trb.postgresql.v1.SchedulerTarget} returns this
651
+ */
652
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.setInterval = function(value) {
653
+ return jspb.Message.setProto3IntField(this, 2, value);
654
+ };
655
+
656
+
657
+ /**
658
+ * optional bool enabled = 3;
659
+ * @return {boolean}
660
+ */
661
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.getEnabled = function() {
662
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
663
+ };
664
+
665
+
666
+ /**
667
+ * @param {boolean} value
668
+ * @return {!proto.trb.postgresql.v1.SchedulerTarget} returns this
669
+ */
670
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.setEnabled = function(value) {
671
+ return jspb.Message.setProto3BooleanField(this, 3, value);
672
+ };
673
+
674
+
675
+ /**
676
+ * optional google.protobuf.Timestamp created_at = 4;
677
+ * @return {?proto.google.protobuf.Timestamp}
678
+ */
679
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.getCreatedAt = function() {
680
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
681
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
682
+ };
683
+
684
+
685
+ /**
686
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
687
+ * @return {!proto.trb.postgresql.v1.SchedulerTarget} returns this
688
+ */
689
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.setCreatedAt = function(value) {
690
+ return jspb.Message.setWrapperField(this, 4, value);
691
+ };
692
+
693
+
694
+ /**
695
+ * Clears the message field making it undefined.
696
+ * @return {!proto.trb.postgresql.v1.SchedulerTarget} returns this
697
+ */
698
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.clearCreatedAt = function() {
699
+ return this.setCreatedAt(undefined);
700
+ };
701
+
702
+
703
+ /**
704
+ * Returns whether this field is set.
705
+ * @return {boolean}
706
+ */
707
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.hasCreatedAt = function() {
708
+ return jspb.Message.getField(this, 4) != null;
709
+ };
710
+
711
+
712
+ /**
713
+ * optional google.protobuf.Timestamp updated_at = 5;
714
+ * @return {?proto.google.protobuf.Timestamp}
715
+ */
716
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.getUpdatedAt = function() {
717
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
718
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
719
+ };
720
+
721
+
722
+ /**
723
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
724
+ * @return {!proto.trb.postgresql.v1.SchedulerTarget} returns this
725
+ */
726
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.setUpdatedAt = function(value) {
727
+ return jspb.Message.setWrapperField(this, 5, value);
728
+ };
729
+
730
+
731
+ /**
732
+ * Clears the message field making it undefined.
733
+ * @return {!proto.trb.postgresql.v1.SchedulerTarget} returns this
734
+ */
735
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.clearUpdatedAt = function() {
736
+ return this.setUpdatedAt(undefined);
737
+ };
738
+
739
+
740
+ /**
741
+ * Returns whether this field is set.
742
+ * @return {boolean}
743
+ */
744
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.hasUpdatedAt = function() {
745
+ return jspb.Message.getField(this, 5) != null;
746
+ };
747
+
748
+
749
+ /**
750
+ * optional string ticker = 6;
751
+ * @return {string}
752
+ */
753
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.getTicker = function() {
754
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
755
+ };
756
+
757
+
758
+ /**
759
+ * @param {string} value
760
+ * @return {!proto.trb.postgresql.v1.SchedulerTarget} returns this
761
+ */
762
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.setTicker = function(value) {
763
+ return jspb.Message.setProto3StringField(this, 6, value);
764
+ };
765
+
766
+
767
+ /**
768
+ * optional string name = 7;
769
+ * @return {string}
770
+ */
771
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.getName = function() {
772
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
773
+ };
774
+
775
+
776
+ /**
777
+ * @param {string} value
778
+ * @return {!proto.trb.postgresql.v1.SchedulerTarget} returns this
779
+ */
780
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.setName = function(value) {
781
+ return jspb.Message.setProto3StringField(this, 7, value);
782
+ };
783
+
784
+
785
+ /**
786
+ * optional string figi = 8;
787
+ * @return {string}
788
+ */
789
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.getFigi = function() {
790
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
791
+ };
792
+
793
+
794
+ /**
795
+ * @param {string} value
796
+ * @return {!proto.trb.postgresql.v1.SchedulerTarget} returns this
797
+ */
798
+ proto.trb.postgresql.v1.SchedulerTarget.prototype.setFigi = function(value) {
799
+ return jspb.Message.setProto3StringField(this, 8, value);
800
+ };
801
+
802
+
803
+
804
+ /**
805
+ * List of repeated fields within this message type.
806
+ * @private {!Array<number>}
807
+ * @const
808
+ */
809
+ proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.repeatedFields_ = [1];
810
+
811
+
812
+
813
+ if (jspb.Message.GENERATE_TO_OBJECT) {
814
+ /**
815
+ * Creates an object representation of this proto.
816
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
817
+ * Optional fields that are not set will be set to undefined.
818
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
819
+ * For the list of reserved names please see:
820
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
821
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
822
+ * JSPB instance for transitional soy proto support:
823
+ * http://goto/soy-param-migration
824
+ * @return {!Object}
825
+ */
826
+ proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.prototype.toObject = function(opt_includeInstance) {
827
+ return proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.toObject(opt_includeInstance, this);
828
+ };
829
+
830
+
831
+ /**
832
+ * Static version of the {@see toObject} method.
833
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
834
+ * the JSPB instance for transitional soy proto support:
835
+ * http://goto/soy-param-migration
836
+ * @param {!proto.trb.postgresql.v1.SyncSchedulerTargetsRequest} msg The msg instance to transform.
837
+ * @return {!Object}
838
+ * @suppress {unusedLocalVariables} f is only used for nested messages
839
+ */
840
+ proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.toObject = function(includeInstance, msg) {
841
+ var f, obj = {
842
+ instrumentsList: jspb.Message.toObjectList(msg.getInstrumentsList(),
843
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.toObject, includeInstance),
844
+ allowEmpty: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
845
+ };
846
+
847
+ if (includeInstance) {
848
+ obj.$jspbMessageInstance = msg;
849
+ }
850
+ return obj;
851
+ };
852
+ }
853
+
854
+
855
+ /**
856
+ * Deserializes binary data (in protobuf wire format).
857
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
858
+ * @return {!proto.trb.postgresql.v1.SyncSchedulerTargetsRequest}
859
+ */
860
+ proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.deserializeBinary = function(bytes) {
861
+ var reader = new jspb.BinaryReader(bytes);
862
+ var msg = new proto.trb.postgresql.v1.SyncSchedulerTargetsRequest;
863
+ return proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.deserializeBinaryFromReader(msg, reader);
864
+ };
865
+
866
+
867
+ /**
868
+ * Deserializes binary data (in protobuf wire format) from the
869
+ * given reader into the given message object.
870
+ * @param {!proto.trb.postgresql.v1.SyncSchedulerTargetsRequest} msg The message object to deserialize into.
871
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
872
+ * @return {!proto.trb.postgresql.v1.SyncSchedulerTargetsRequest}
873
+ */
874
+ proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.deserializeBinaryFromReader = function(msg, reader) {
875
+ while (reader.nextField()) {
876
+ if (reader.isEndGroup()) {
877
+ break;
878
+ }
879
+ var field = reader.getFieldNumber();
880
+ switch (field) {
881
+ case 1:
882
+ var value = new proto.trb.postgresql.v1.SchedulerTargetInstrument;
883
+ reader.readMessage(value,proto.trb.postgresql.v1.SchedulerTargetInstrument.deserializeBinaryFromReader);
884
+ msg.addInstruments(value);
885
+ break;
886
+ case 2:
887
+ var value = /** @type {boolean} */ (reader.readBool());
888
+ msg.setAllowEmpty(value);
889
+ break;
890
+ default:
891
+ reader.skipField();
892
+ break;
893
+ }
894
+ }
895
+ return msg;
896
+ };
897
+
898
+
899
+ /**
900
+ * Serializes the message to binary data (in protobuf wire format).
901
+ * @return {!Uint8Array}
902
+ */
903
+ proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.prototype.serializeBinary = function() {
904
+ var writer = new jspb.BinaryWriter();
905
+ proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.serializeBinaryToWriter(this, writer);
906
+ return writer.getResultBuffer();
907
+ };
908
+
909
+
910
+ /**
911
+ * Serializes the given message to binary data (in protobuf wire
912
+ * format), writing to the given BinaryWriter.
913
+ * @param {!proto.trb.postgresql.v1.SyncSchedulerTargetsRequest} message
914
+ * @param {!jspb.BinaryWriter} writer
915
+ * @suppress {unusedLocalVariables} f is only used for nested messages
916
+ */
917
+ proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.serializeBinaryToWriter = function(message, writer) {
918
+ var f = undefined;
919
+ f = message.getInstrumentsList();
920
+ if (f.length > 0) {
921
+ writer.writeRepeatedMessage(
922
+ 1,
923
+ f,
924
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.serializeBinaryToWriter
925
+ );
926
+ }
927
+ f = message.getAllowEmpty();
928
+ if (f) {
929
+ writer.writeBool(
930
+ 2,
931
+ f
932
+ );
933
+ }
934
+ };
935
+
936
+
937
+ /**
938
+ * repeated SchedulerTargetInstrument instruments = 1;
939
+ * @return {!Array<!proto.trb.postgresql.v1.SchedulerTargetInstrument>}
940
+ */
941
+ proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.prototype.getInstrumentsList = function() {
942
+ return /** @type{!Array<!proto.trb.postgresql.v1.SchedulerTargetInstrument>} */ (
943
+ jspb.Message.getRepeatedWrapperField(this, proto.trb.postgresql.v1.SchedulerTargetInstrument, 1));
944
+ };
945
+
946
+
947
+ /**
948
+ * @param {!Array<!proto.trb.postgresql.v1.SchedulerTargetInstrument>} value
949
+ * @return {!proto.trb.postgresql.v1.SyncSchedulerTargetsRequest} returns this
950
+ */
951
+ proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.prototype.setInstrumentsList = function(value) {
952
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
953
+ };
954
+
955
+
956
+ /**
957
+ * @param {!proto.trb.postgresql.v1.SchedulerTargetInstrument=} opt_value
958
+ * @param {number=} opt_index
959
+ * @return {!proto.trb.postgresql.v1.SchedulerTargetInstrument}
960
+ */
961
+ proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.prototype.addInstruments = function(opt_value, opt_index) {
962
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.postgresql.v1.SchedulerTargetInstrument, opt_index);
963
+ };
964
+
965
+
966
+ /**
967
+ * Clears the list making it empty but non-null.
968
+ * @return {!proto.trb.postgresql.v1.SyncSchedulerTargetsRequest} returns this
969
+ */
970
+ proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.prototype.clearInstrumentsList = function() {
971
+ return this.setInstrumentsList([]);
972
+ };
973
+
974
+
975
+ /**
976
+ * optional bool allow_empty = 2;
977
+ * @return {boolean}
978
+ */
979
+ proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.prototype.getAllowEmpty = function() {
980
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
981
+ };
982
+
983
+
984
+ /**
985
+ * @param {boolean} value
986
+ * @return {!proto.trb.postgresql.v1.SyncSchedulerTargetsRequest} returns this
987
+ */
988
+ proto.trb.postgresql.v1.SyncSchedulerTargetsRequest.prototype.setAllowEmpty = function(value) {
989
+ return jspb.Message.setProto3BooleanField(this, 2, value);
990
+ };
991
+
992
+
993
+
994
+ /**
995
+ * List of repeated fields within this message type.
996
+ * @private {!Array<number>}
997
+ * @const
998
+ */
999
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.repeatedFields_ = [2];
1000
+
1001
+
1002
+
1003
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1004
+ /**
1005
+ * Creates an object representation of this proto.
1006
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1007
+ * Optional fields that are not set will be set to undefined.
1008
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1009
+ * For the list of reserved names please see:
1010
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1011
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1012
+ * JSPB instance for transitional soy proto support:
1013
+ * http://goto/soy-param-migration
1014
+ * @return {!Object}
1015
+ */
1016
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.prototype.toObject = function(opt_includeInstance) {
1017
+ return proto.trb.postgresql.v1.SchedulerTargetInstrument.toObject(opt_includeInstance, this);
1018
+ };
1019
+
1020
+
1021
+ /**
1022
+ * Static version of the {@see toObject} method.
1023
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1024
+ * the JSPB instance for transitional soy proto support:
1025
+ * http://goto/soy-param-migration
1026
+ * @param {!proto.trb.postgresql.v1.SchedulerTargetInstrument} msg The msg instance to transform.
1027
+ * @return {!Object}
1028
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1029
+ */
1030
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.toObject = function(includeInstance, msg) {
1031
+ var f, obj = {
1032
+ uid: jspb.Message.getFieldWithDefault(msg, 1, ""),
1033
+ intervalsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
1034
+ };
1035
+
1036
+ if (includeInstance) {
1037
+ obj.$jspbMessageInstance = msg;
1038
+ }
1039
+ return obj;
1040
+ };
1041
+ }
1042
+
1043
+
1044
+ /**
1045
+ * Deserializes binary data (in protobuf wire format).
1046
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1047
+ * @return {!proto.trb.postgresql.v1.SchedulerTargetInstrument}
1048
+ */
1049
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.deserializeBinary = function(bytes) {
1050
+ var reader = new jspb.BinaryReader(bytes);
1051
+ var msg = new proto.trb.postgresql.v1.SchedulerTargetInstrument;
1052
+ return proto.trb.postgresql.v1.SchedulerTargetInstrument.deserializeBinaryFromReader(msg, reader);
1053
+ };
1054
+
1055
+
1056
+ /**
1057
+ * Deserializes binary data (in protobuf wire format) from the
1058
+ * given reader into the given message object.
1059
+ * @param {!proto.trb.postgresql.v1.SchedulerTargetInstrument} msg The message object to deserialize into.
1060
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1061
+ * @return {!proto.trb.postgresql.v1.SchedulerTargetInstrument}
1062
+ */
1063
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.deserializeBinaryFromReader = function(msg, reader) {
1064
+ while (reader.nextField()) {
1065
+ if (reader.isEndGroup()) {
1066
+ break;
1067
+ }
1068
+ var field = reader.getFieldNumber();
1069
+ switch (field) {
1070
+ case 1:
1071
+ var value = /** @type {string} */ (reader.readString());
1072
+ msg.setUid(value);
1073
+ break;
1074
+ case 2:
1075
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
1076
+ for (var i = 0; i < values.length; i++) {
1077
+ msg.addIntervals(values[i]);
1078
+ }
1079
+ break;
1080
+ default:
1081
+ reader.skipField();
1082
+ break;
1083
+ }
1084
+ }
1085
+ return msg;
1086
+ };
1087
+
1088
+
1089
+ /**
1090
+ * Serializes the message to binary data (in protobuf wire format).
1091
+ * @return {!Uint8Array}
1092
+ */
1093
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.prototype.serializeBinary = function() {
1094
+ var writer = new jspb.BinaryWriter();
1095
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.serializeBinaryToWriter(this, writer);
1096
+ return writer.getResultBuffer();
1097
+ };
1098
+
1099
+
1100
+ /**
1101
+ * Serializes the given message to binary data (in protobuf wire
1102
+ * format), writing to the given BinaryWriter.
1103
+ * @param {!proto.trb.postgresql.v1.SchedulerTargetInstrument} message
1104
+ * @param {!jspb.BinaryWriter} writer
1105
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1106
+ */
1107
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.serializeBinaryToWriter = function(message, writer) {
1108
+ var f = undefined;
1109
+ f = message.getUid();
1110
+ if (f.length > 0) {
1111
+ writer.writeString(
1112
+ 1,
1113
+ f
1114
+ );
1115
+ }
1116
+ f = message.getIntervalsList();
1117
+ if (f.length > 0) {
1118
+ writer.writePackedInt32(
1119
+ 2,
1120
+ f
1121
+ );
1122
+ }
1123
+ };
1124
+
1125
+
1126
+ /**
1127
+ * optional string uid = 1;
1128
+ * @return {string}
1129
+ */
1130
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.prototype.getUid = function() {
1131
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1132
+ };
1133
+
1134
+
1135
+ /**
1136
+ * @param {string} value
1137
+ * @return {!proto.trb.postgresql.v1.SchedulerTargetInstrument} returns this
1138
+ */
1139
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.prototype.setUid = function(value) {
1140
+ return jspb.Message.setProto3StringField(this, 1, value);
1141
+ };
1142
+
1143
+
1144
+ /**
1145
+ * repeated int32 intervals = 2;
1146
+ * @return {!Array<number>}
1147
+ */
1148
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.prototype.getIntervalsList = function() {
1149
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
1150
+ };
1151
+
1152
+
1153
+ /**
1154
+ * @param {!Array<number>} value
1155
+ * @return {!proto.trb.postgresql.v1.SchedulerTargetInstrument} returns this
1156
+ */
1157
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.prototype.setIntervalsList = function(value) {
1158
+ return jspb.Message.setField(this, 2, value || []);
1159
+ };
1160
+
1161
+
1162
+ /**
1163
+ * @param {number} value
1164
+ * @param {number=} opt_index
1165
+ * @return {!proto.trb.postgresql.v1.SchedulerTargetInstrument} returns this
1166
+ */
1167
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.prototype.addIntervals = function(value, opt_index) {
1168
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1169
+ };
1170
+
1171
+
1172
+ /**
1173
+ * Clears the list making it empty but non-null.
1174
+ * @return {!proto.trb.postgresql.v1.SchedulerTargetInstrument} returns this
1175
+ */
1176
+ proto.trb.postgresql.v1.SchedulerTargetInstrument.prototype.clearIntervalsList = function() {
1177
+ return this.setIntervalsList([]);
1178
+ };
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1185
+ /**
1186
+ * Creates an object representation of this proto.
1187
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1188
+ * Optional fields that are not set will be set to undefined.
1189
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1190
+ * For the list of reserved names please see:
1191
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1192
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1193
+ * JSPB instance for transitional soy proto support:
1194
+ * http://goto/soy-param-migration
1195
+ * @return {!Object}
1196
+ */
1197
+ proto.trb.postgresql.v1.SyncSchedulerTargetsResponse.prototype.toObject = function(opt_includeInstance) {
1198
+ return proto.trb.postgresql.v1.SyncSchedulerTargetsResponse.toObject(opt_includeInstance, this);
1199
+ };
1200
+
1201
+
1202
+ /**
1203
+ * Static version of the {@see toObject} method.
1204
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1205
+ * the JSPB instance for transitional soy proto support:
1206
+ * http://goto/soy-param-migration
1207
+ * @param {!proto.trb.postgresql.v1.SyncSchedulerTargetsResponse} msg The msg instance to transform.
1208
+ * @return {!Object}
1209
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1210
+ */
1211
+ proto.trb.postgresql.v1.SyncSchedulerTargetsResponse.toObject = function(includeInstance, msg) {
1212
+ var f, obj = {
1213
+ count: jspb.Message.getFieldWithDefault(msg, 1, 0)
1214
+ };
1215
+
1216
+ if (includeInstance) {
1217
+ obj.$jspbMessageInstance = msg;
1218
+ }
1219
+ return obj;
1220
+ };
1221
+ }
1222
+
1223
+
1224
+ /**
1225
+ * Deserializes binary data (in protobuf wire format).
1226
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1227
+ * @return {!proto.trb.postgresql.v1.SyncSchedulerTargetsResponse}
1228
+ */
1229
+ proto.trb.postgresql.v1.SyncSchedulerTargetsResponse.deserializeBinary = function(bytes) {
1230
+ var reader = new jspb.BinaryReader(bytes);
1231
+ var msg = new proto.trb.postgresql.v1.SyncSchedulerTargetsResponse;
1232
+ return proto.trb.postgresql.v1.SyncSchedulerTargetsResponse.deserializeBinaryFromReader(msg, reader);
1233
+ };
1234
+
1235
+
1236
+ /**
1237
+ * Deserializes binary data (in protobuf wire format) from the
1238
+ * given reader into the given message object.
1239
+ * @param {!proto.trb.postgresql.v1.SyncSchedulerTargetsResponse} msg The message object to deserialize into.
1240
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1241
+ * @return {!proto.trb.postgresql.v1.SyncSchedulerTargetsResponse}
1242
+ */
1243
+ proto.trb.postgresql.v1.SyncSchedulerTargetsResponse.deserializeBinaryFromReader = function(msg, reader) {
1244
+ while (reader.nextField()) {
1245
+ if (reader.isEndGroup()) {
1246
+ break;
1247
+ }
1248
+ var field = reader.getFieldNumber();
1249
+ switch (field) {
1250
+ case 1:
1251
+ var value = /** @type {number} */ (reader.readInt32());
1252
+ msg.setCount(value);
1253
+ break;
1254
+ default:
1255
+ reader.skipField();
1256
+ break;
1257
+ }
1258
+ }
1259
+ return msg;
1260
+ };
1261
+
1262
+
1263
+ /**
1264
+ * Serializes the message to binary data (in protobuf wire format).
1265
+ * @return {!Uint8Array}
1266
+ */
1267
+ proto.trb.postgresql.v1.SyncSchedulerTargetsResponse.prototype.serializeBinary = function() {
1268
+ var writer = new jspb.BinaryWriter();
1269
+ proto.trb.postgresql.v1.SyncSchedulerTargetsResponse.serializeBinaryToWriter(this, writer);
1270
+ return writer.getResultBuffer();
1271
+ };
1272
+
1273
+
1274
+ /**
1275
+ * Serializes the given message to binary data (in protobuf wire
1276
+ * format), writing to the given BinaryWriter.
1277
+ * @param {!proto.trb.postgresql.v1.SyncSchedulerTargetsResponse} message
1278
+ * @param {!jspb.BinaryWriter} writer
1279
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1280
+ */
1281
+ proto.trb.postgresql.v1.SyncSchedulerTargetsResponse.serializeBinaryToWriter = function(message, writer) {
1282
+ var f = undefined;
1283
+ f = message.getCount();
1284
+ if (f !== 0) {
1285
+ writer.writeInt32(
1286
+ 1,
1287
+ f
1288
+ );
1289
+ }
1290
+ };
1291
+
1292
+
1293
+ /**
1294
+ * optional int32 count = 1;
1295
+ * @return {number}
1296
+ */
1297
+ proto.trb.postgresql.v1.SyncSchedulerTargetsResponse.prototype.getCount = function() {
1298
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1299
+ };
1300
+
1301
+
1302
+ /**
1303
+ * @param {number} value
1304
+ * @return {!proto.trb.postgresql.v1.SyncSchedulerTargetsResponse} returns this
1305
+ */
1306
+ proto.trb.postgresql.v1.SyncSchedulerTargetsResponse.prototype.setCount = function(value) {
1307
+ return jspb.Message.setProto3IntField(this, 1, value);
1308
+ };
1309
+
1310
+
1311
+ goog.object.extend(exports, proto.trb.postgresql.v1);