@marleena/trb-proto 1.0.40 → 1.0.41

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.
@@ -168,5 +168,91 @@ export class IndicatorsClient {
168
168
  this.methodDescriptorComputeForInstrument);
169
169
  }
170
170
 
171
+ methodDescriptorListSchedulerTargets = new grpcWeb.MethodDescriptor(
172
+ '/trb.indicators.v1.Indicators/ListSchedulerTargets',
173
+ grpcWeb.MethodType.UNARY,
174
+ indicators_indicators_pb.ListSchedulerTargetsRequest,
175
+ indicators_indicators_pb.ListSchedulerTargetsResponse,
176
+ (request: indicators_indicators_pb.ListSchedulerTargetsRequest) => {
177
+ return request.serializeBinary();
178
+ },
179
+ indicators_indicators_pb.ListSchedulerTargetsResponse.deserializeBinary
180
+ );
181
+
182
+ listSchedulerTargets(
183
+ request: indicators_indicators_pb.ListSchedulerTargetsRequest,
184
+ metadata?: grpcWeb.Metadata | null): Promise<indicators_indicators_pb.ListSchedulerTargetsResponse>;
185
+
186
+ listSchedulerTargets(
187
+ request: indicators_indicators_pb.ListSchedulerTargetsRequest,
188
+ metadata: grpcWeb.Metadata | null,
189
+ callback: (err: grpcWeb.RpcError,
190
+ response: indicators_indicators_pb.ListSchedulerTargetsResponse) => void): grpcWeb.ClientReadableStream<indicators_indicators_pb.ListSchedulerTargetsResponse>;
191
+
192
+ listSchedulerTargets(
193
+ request: indicators_indicators_pb.ListSchedulerTargetsRequest,
194
+ metadata?: grpcWeb.Metadata | null,
195
+ callback?: (err: grpcWeb.RpcError,
196
+ response: indicators_indicators_pb.ListSchedulerTargetsResponse) => void) {
197
+ if (callback !== undefined) {
198
+ return this.client_.rpcCall(
199
+ this.hostname_ +
200
+ '/trb.indicators.v1.Indicators/ListSchedulerTargets',
201
+ request,
202
+ metadata || {},
203
+ this.methodDescriptorListSchedulerTargets,
204
+ callback);
205
+ }
206
+ return this.client_.unaryCall(
207
+ this.hostname_ +
208
+ '/trb.indicators.v1.Indicators/ListSchedulerTargets',
209
+ request,
210
+ metadata || {},
211
+ this.methodDescriptorListSchedulerTargets);
212
+ }
213
+
214
+ methodDescriptorSyncSchedulerTargets = new grpcWeb.MethodDescriptor(
215
+ '/trb.indicators.v1.Indicators/SyncSchedulerTargets',
216
+ grpcWeb.MethodType.UNARY,
217
+ indicators_indicators_pb.SyncSchedulerTargetsRequest,
218
+ indicators_indicators_pb.SyncSchedulerTargetsResponse,
219
+ (request: indicators_indicators_pb.SyncSchedulerTargetsRequest) => {
220
+ return request.serializeBinary();
221
+ },
222
+ indicators_indicators_pb.SyncSchedulerTargetsResponse.deserializeBinary
223
+ );
224
+
225
+ syncSchedulerTargets(
226
+ request: indicators_indicators_pb.SyncSchedulerTargetsRequest,
227
+ metadata?: grpcWeb.Metadata | null): Promise<indicators_indicators_pb.SyncSchedulerTargetsResponse>;
228
+
229
+ syncSchedulerTargets(
230
+ request: indicators_indicators_pb.SyncSchedulerTargetsRequest,
231
+ metadata: grpcWeb.Metadata | null,
232
+ callback: (err: grpcWeb.RpcError,
233
+ response: indicators_indicators_pb.SyncSchedulerTargetsResponse) => void): grpcWeb.ClientReadableStream<indicators_indicators_pb.SyncSchedulerTargetsResponse>;
234
+
235
+ syncSchedulerTargets(
236
+ request: indicators_indicators_pb.SyncSchedulerTargetsRequest,
237
+ metadata?: grpcWeb.Metadata | null,
238
+ callback?: (err: grpcWeb.RpcError,
239
+ response: indicators_indicators_pb.SyncSchedulerTargetsResponse) => void) {
240
+ if (callback !== undefined) {
241
+ return this.client_.rpcCall(
242
+ this.hostname_ +
243
+ '/trb.indicators.v1.Indicators/SyncSchedulerTargets',
244
+ request,
245
+ metadata || {},
246
+ this.methodDescriptorSyncSchedulerTargets,
247
+ callback);
248
+ }
249
+ return this.client_.unaryCall(
250
+ this.hostname_ +
251
+ '/trb.indicators.v1.Indicators/SyncSchedulerTargets',
252
+ request,
253
+ metadata || {},
254
+ this.methodDescriptorSyncSchedulerTargets);
255
+ }
256
+
171
257
  }
172
258
 
@@ -234,6 +234,116 @@ export namespace ListSupportedResponse {
234
234
  }
235
235
  }
236
236
 
237
+ export class SchedulerTarget extends jspb.Message {
238
+ getUid(): string;
239
+ setUid(value: string): SchedulerTarget;
240
+
241
+ getInterval(): number;
242
+ setInterval(value: number): SchedulerTarget;
243
+
244
+ getIndicator(): string;
245
+ setIndicator(value: string): SchedulerTarget;
246
+
247
+ getParamsMap(): jspb.Map<string, number>;
248
+ clearParamsMap(): SchedulerTarget;
249
+
250
+ getEnabled(): boolean;
251
+ setEnabled(value: boolean): SchedulerTarget;
252
+
253
+ serializeBinary(): Uint8Array;
254
+ toObject(includeInstance?: boolean): SchedulerTarget.AsObject;
255
+ static toObject(includeInstance: boolean, msg: SchedulerTarget): SchedulerTarget.AsObject;
256
+ static serializeBinaryToWriter(message: SchedulerTarget, writer: jspb.BinaryWriter): void;
257
+ static deserializeBinary(bytes: Uint8Array): SchedulerTarget;
258
+ static deserializeBinaryFromReader(message: SchedulerTarget, reader: jspb.BinaryReader): SchedulerTarget;
259
+ }
260
+
261
+ export namespace SchedulerTarget {
262
+ export type AsObject = {
263
+ uid: string,
264
+ interval: number,
265
+ indicator: string,
266
+ paramsMap: Array<[string, number]>,
267
+ enabled: boolean,
268
+ }
269
+ }
270
+
271
+ export class ListSchedulerTargetsRequest extends jspb.Message {
272
+ serializeBinary(): Uint8Array;
273
+ toObject(includeInstance?: boolean): ListSchedulerTargetsRequest.AsObject;
274
+ static toObject(includeInstance: boolean, msg: ListSchedulerTargetsRequest): ListSchedulerTargetsRequest.AsObject;
275
+ static serializeBinaryToWriter(message: ListSchedulerTargetsRequest, writer: jspb.BinaryWriter): void;
276
+ static deserializeBinary(bytes: Uint8Array): ListSchedulerTargetsRequest;
277
+ static deserializeBinaryFromReader(message: ListSchedulerTargetsRequest, reader: jspb.BinaryReader): ListSchedulerTargetsRequest;
278
+ }
279
+
280
+ export namespace ListSchedulerTargetsRequest {
281
+ export type AsObject = {
282
+ }
283
+ }
284
+
285
+ export class ListSchedulerTargetsResponse extends jspb.Message {
286
+ getItemsList(): Array<SchedulerTarget>;
287
+ setItemsList(value: Array<SchedulerTarget>): ListSchedulerTargetsResponse;
288
+ clearItemsList(): ListSchedulerTargetsResponse;
289
+ addItems(value?: SchedulerTarget, index?: number): SchedulerTarget;
290
+
291
+ serializeBinary(): Uint8Array;
292
+ toObject(includeInstance?: boolean): ListSchedulerTargetsResponse.AsObject;
293
+ static toObject(includeInstance: boolean, msg: ListSchedulerTargetsResponse): ListSchedulerTargetsResponse.AsObject;
294
+ static serializeBinaryToWriter(message: ListSchedulerTargetsResponse, writer: jspb.BinaryWriter): void;
295
+ static deserializeBinary(bytes: Uint8Array): ListSchedulerTargetsResponse;
296
+ static deserializeBinaryFromReader(message: ListSchedulerTargetsResponse, reader: jspb.BinaryReader): ListSchedulerTargetsResponse;
297
+ }
298
+
299
+ export namespace ListSchedulerTargetsResponse {
300
+ export type AsObject = {
301
+ itemsList: Array<SchedulerTarget.AsObject>,
302
+ }
303
+ }
304
+
305
+ export class SyncSchedulerTargetsRequest extends jspb.Message {
306
+ getItemsList(): Array<SchedulerTarget>;
307
+ setItemsList(value: Array<SchedulerTarget>): SyncSchedulerTargetsRequest;
308
+ clearItemsList(): SyncSchedulerTargetsRequest;
309
+ addItems(value?: SchedulerTarget, index?: number): SchedulerTarget;
310
+
311
+ getAllowEmpty(): boolean;
312
+ setAllowEmpty(value: boolean): SyncSchedulerTargetsRequest;
313
+
314
+ serializeBinary(): Uint8Array;
315
+ toObject(includeInstance?: boolean): SyncSchedulerTargetsRequest.AsObject;
316
+ static toObject(includeInstance: boolean, msg: SyncSchedulerTargetsRequest): SyncSchedulerTargetsRequest.AsObject;
317
+ static serializeBinaryToWriter(message: SyncSchedulerTargetsRequest, writer: jspb.BinaryWriter): void;
318
+ static deserializeBinary(bytes: Uint8Array): SyncSchedulerTargetsRequest;
319
+ static deserializeBinaryFromReader(message: SyncSchedulerTargetsRequest, reader: jspb.BinaryReader): SyncSchedulerTargetsRequest;
320
+ }
321
+
322
+ export namespace SyncSchedulerTargetsRequest {
323
+ export type AsObject = {
324
+ itemsList: Array<SchedulerTarget.AsObject>,
325
+ allowEmpty: boolean,
326
+ }
327
+ }
328
+
329
+ export class SyncSchedulerTargetsResponse extends jspb.Message {
330
+ getCount(): number;
331
+ setCount(value: number): SyncSchedulerTargetsResponse;
332
+
333
+ serializeBinary(): Uint8Array;
334
+ toObject(includeInstance?: boolean): SyncSchedulerTargetsResponse.AsObject;
335
+ static toObject(includeInstance: boolean, msg: SyncSchedulerTargetsResponse): SyncSchedulerTargetsResponse.AsObject;
336
+ static serializeBinaryToWriter(message: SyncSchedulerTargetsResponse, writer: jspb.BinaryWriter): void;
337
+ static deserializeBinary(bytes: Uint8Array): SyncSchedulerTargetsResponse;
338
+ static deserializeBinaryFromReader(message: SyncSchedulerTargetsResponse, reader: jspb.BinaryReader): SyncSchedulerTargetsResponse;
339
+ }
340
+
341
+ export namespace SyncSchedulerTargetsResponse {
342
+ export type AsObject = {
343
+ count: number,
344
+ }
345
+ }
346
+
237
347
  export enum IndicatorType {
238
348
  INDICATOR_TYPE_UNSPECIFIED = 0,
239
349
  INDICATOR_TYPE_RSI = 1,
@@ -32,8 +32,13 @@ goog.exportSymbol('proto.trb.indicators.v1.ComputeResponse', null, global);
32
32
  goog.exportSymbol('proto.trb.indicators.v1.IndicatorInfo', null, global);
33
33
  goog.exportSymbol('proto.trb.indicators.v1.IndicatorPoint', null, global);
34
34
  goog.exportSymbol('proto.trb.indicators.v1.IndicatorType', null, global);
35
+ goog.exportSymbol('proto.trb.indicators.v1.ListSchedulerTargetsRequest', null, global);
36
+ goog.exportSymbol('proto.trb.indicators.v1.ListSchedulerTargetsResponse', null, global);
35
37
  goog.exportSymbol('proto.trb.indicators.v1.ListSupportedRequest', null, global);
36
38
  goog.exportSymbol('proto.trb.indicators.v1.ListSupportedResponse', null, global);
39
+ goog.exportSymbol('proto.trb.indicators.v1.SchedulerTarget', null, global);
40
+ goog.exportSymbol('proto.trb.indicators.v1.SyncSchedulerTargetsRequest', null, global);
41
+ goog.exportSymbol('proto.trb.indicators.v1.SyncSchedulerTargetsResponse', null, global);
37
42
  /**
38
43
  * Generated by JsPbCodeGenerator.
39
44
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -202,6 +207,111 @@ if (goog.DEBUG && !COMPILED) {
202
207
  */
203
208
  proto.trb.indicators.v1.ListSupportedResponse.displayName = 'proto.trb.indicators.v1.ListSupportedResponse';
204
209
  }
210
+ /**
211
+ * Generated by JsPbCodeGenerator.
212
+ * @param {Array=} opt_data Optional initial data array, typically from a
213
+ * server response, or constructed directly in Javascript. The array is used
214
+ * in place and becomes part of the constructed object. It is not cloned.
215
+ * If no data is provided, the constructed object will be empty, but still
216
+ * valid.
217
+ * @extends {jspb.Message}
218
+ * @constructor
219
+ */
220
+ proto.trb.indicators.v1.SchedulerTarget = function(opt_data) {
221
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
222
+ };
223
+ goog.inherits(proto.trb.indicators.v1.SchedulerTarget, jspb.Message);
224
+ if (goog.DEBUG && !COMPILED) {
225
+ /**
226
+ * @public
227
+ * @override
228
+ */
229
+ proto.trb.indicators.v1.SchedulerTarget.displayName = 'proto.trb.indicators.v1.SchedulerTarget';
230
+ }
231
+ /**
232
+ * Generated by JsPbCodeGenerator.
233
+ * @param {Array=} opt_data Optional initial data array, typically from a
234
+ * server response, or constructed directly in Javascript. The array is used
235
+ * in place and becomes part of the constructed object. It is not cloned.
236
+ * If no data is provided, the constructed object will be empty, but still
237
+ * valid.
238
+ * @extends {jspb.Message}
239
+ * @constructor
240
+ */
241
+ proto.trb.indicators.v1.ListSchedulerTargetsRequest = function(opt_data) {
242
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
243
+ };
244
+ goog.inherits(proto.trb.indicators.v1.ListSchedulerTargetsRequest, jspb.Message);
245
+ if (goog.DEBUG && !COMPILED) {
246
+ /**
247
+ * @public
248
+ * @override
249
+ */
250
+ proto.trb.indicators.v1.ListSchedulerTargetsRequest.displayName = 'proto.trb.indicators.v1.ListSchedulerTargetsRequest';
251
+ }
252
+ /**
253
+ * Generated by JsPbCodeGenerator.
254
+ * @param {Array=} opt_data Optional initial data array, typically from a
255
+ * server response, or constructed directly in Javascript. The array is used
256
+ * in place and becomes part of the constructed object. It is not cloned.
257
+ * If no data is provided, the constructed object will be empty, but still
258
+ * valid.
259
+ * @extends {jspb.Message}
260
+ * @constructor
261
+ */
262
+ proto.trb.indicators.v1.ListSchedulerTargetsResponse = function(opt_data) {
263
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.indicators.v1.ListSchedulerTargetsResponse.repeatedFields_, null);
264
+ };
265
+ goog.inherits(proto.trb.indicators.v1.ListSchedulerTargetsResponse, jspb.Message);
266
+ if (goog.DEBUG && !COMPILED) {
267
+ /**
268
+ * @public
269
+ * @override
270
+ */
271
+ proto.trb.indicators.v1.ListSchedulerTargetsResponse.displayName = 'proto.trb.indicators.v1.ListSchedulerTargetsResponse';
272
+ }
273
+ /**
274
+ * Generated by JsPbCodeGenerator.
275
+ * @param {Array=} opt_data Optional initial data array, typically from a
276
+ * server response, or constructed directly in Javascript. The array is used
277
+ * in place and becomes part of the constructed object. It is not cloned.
278
+ * If no data is provided, the constructed object will be empty, but still
279
+ * valid.
280
+ * @extends {jspb.Message}
281
+ * @constructor
282
+ */
283
+ proto.trb.indicators.v1.SyncSchedulerTargetsRequest = function(opt_data) {
284
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.indicators.v1.SyncSchedulerTargetsRequest.repeatedFields_, null);
285
+ };
286
+ goog.inherits(proto.trb.indicators.v1.SyncSchedulerTargetsRequest, jspb.Message);
287
+ if (goog.DEBUG && !COMPILED) {
288
+ /**
289
+ * @public
290
+ * @override
291
+ */
292
+ proto.trb.indicators.v1.SyncSchedulerTargetsRequest.displayName = 'proto.trb.indicators.v1.SyncSchedulerTargetsRequest';
293
+ }
294
+ /**
295
+ * Generated by JsPbCodeGenerator.
296
+ * @param {Array=} opt_data Optional initial data array, typically from a
297
+ * server response, or constructed directly in Javascript. The array is used
298
+ * in place and becomes part of the constructed object. It is not cloned.
299
+ * If no data is provided, the constructed object will be empty, but still
300
+ * valid.
301
+ * @extends {jspb.Message}
302
+ * @constructor
303
+ */
304
+ proto.trb.indicators.v1.SyncSchedulerTargetsResponse = function(opt_data) {
305
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
306
+ };
307
+ goog.inherits(proto.trb.indicators.v1.SyncSchedulerTargetsResponse, jspb.Message);
308
+ if (goog.DEBUG && !COMPILED) {
309
+ /**
310
+ * @public
311
+ * @override
312
+ */
313
+ proto.trb.indicators.v1.SyncSchedulerTargetsResponse.displayName = 'proto.trb.indicators.v1.SyncSchedulerTargetsResponse';
314
+ }
205
315
 
206
316
 
207
317
 
@@ -1977,6 +2087,841 @@ proto.trb.indicators.v1.ListSupportedResponse.prototype.clearIndicatorsList = fu
1977
2087
  };
1978
2088
 
1979
2089
 
2090
+
2091
+
2092
+
2093
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2094
+ /**
2095
+ * Creates an object representation of this proto.
2096
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2097
+ * Optional fields that are not set will be set to undefined.
2098
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2099
+ * For the list of reserved names please see:
2100
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2101
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2102
+ * JSPB instance for transitional soy proto support:
2103
+ * http://goto/soy-param-migration
2104
+ * @return {!Object}
2105
+ */
2106
+ proto.trb.indicators.v1.SchedulerTarget.prototype.toObject = function(opt_includeInstance) {
2107
+ return proto.trb.indicators.v1.SchedulerTarget.toObject(opt_includeInstance, this);
2108
+ };
2109
+
2110
+
2111
+ /**
2112
+ * Static version of the {@see toObject} method.
2113
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2114
+ * the JSPB instance for transitional soy proto support:
2115
+ * http://goto/soy-param-migration
2116
+ * @param {!proto.trb.indicators.v1.SchedulerTarget} msg The msg instance to transform.
2117
+ * @return {!Object}
2118
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2119
+ */
2120
+ proto.trb.indicators.v1.SchedulerTarget.toObject = function(includeInstance, msg) {
2121
+ var f, obj = {
2122
+ uid: jspb.Message.getFieldWithDefault(msg, 1, ""),
2123
+ interval: jspb.Message.getFieldWithDefault(msg, 2, 0),
2124
+ indicator: jspb.Message.getFieldWithDefault(msg, 3, ""),
2125
+ paramsMap: (f = msg.getParamsMap()) ? f.toObject(includeInstance, undefined) : [],
2126
+ enabled: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
2127
+ };
2128
+
2129
+ if (includeInstance) {
2130
+ obj.$jspbMessageInstance = msg;
2131
+ }
2132
+ return obj;
2133
+ };
2134
+ }
2135
+
2136
+
2137
+ /**
2138
+ * Deserializes binary data (in protobuf wire format).
2139
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2140
+ * @return {!proto.trb.indicators.v1.SchedulerTarget}
2141
+ */
2142
+ proto.trb.indicators.v1.SchedulerTarget.deserializeBinary = function(bytes) {
2143
+ var reader = new jspb.BinaryReader(bytes);
2144
+ var msg = new proto.trb.indicators.v1.SchedulerTarget;
2145
+ return proto.trb.indicators.v1.SchedulerTarget.deserializeBinaryFromReader(msg, reader);
2146
+ };
2147
+
2148
+
2149
+ /**
2150
+ * Deserializes binary data (in protobuf wire format) from the
2151
+ * given reader into the given message object.
2152
+ * @param {!proto.trb.indicators.v1.SchedulerTarget} msg The message object to deserialize into.
2153
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2154
+ * @return {!proto.trb.indicators.v1.SchedulerTarget}
2155
+ */
2156
+ proto.trb.indicators.v1.SchedulerTarget.deserializeBinaryFromReader = function(msg, reader) {
2157
+ while (reader.nextField()) {
2158
+ if (reader.isEndGroup()) {
2159
+ break;
2160
+ }
2161
+ var field = reader.getFieldNumber();
2162
+ switch (field) {
2163
+ case 1:
2164
+ var value = /** @type {string} */ (reader.readString());
2165
+ msg.setUid(value);
2166
+ break;
2167
+ case 2:
2168
+ var value = /** @type {number} */ (reader.readInt32());
2169
+ msg.setInterval(value);
2170
+ break;
2171
+ case 3:
2172
+ var value = /** @type {string} */ (reader.readString());
2173
+ msg.setIndicator(value);
2174
+ break;
2175
+ case 4:
2176
+ var value = msg.getParamsMap();
2177
+ reader.readMessage(value, function(message, reader) {
2178
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readDouble, null, "", 0.0);
2179
+ });
2180
+ break;
2181
+ case 5:
2182
+ var value = /** @type {boolean} */ (reader.readBool());
2183
+ msg.setEnabled(value);
2184
+ break;
2185
+ default:
2186
+ reader.skipField();
2187
+ break;
2188
+ }
2189
+ }
2190
+ return msg;
2191
+ };
2192
+
2193
+
2194
+ /**
2195
+ * Serializes the message to binary data (in protobuf wire format).
2196
+ * @return {!Uint8Array}
2197
+ */
2198
+ proto.trb.indicators.v1.SchedulerTarget.prototype.serializeBinary = function() {
2199
+ var writer = new jspb.BinaryWriter();
2200
+ proto.trb.indicators.v1.SchedulerTarget.serializeBinaryToWriter(this, writer);
2201
+ return writer.getResultBuffer();
2202
+ };
2203
+
2204
+
2205
+ /**
2206
+ * Serializes the given message to binary data (in protobuf wire
2207
+ * format), writing to the given BinaryWriter.
2208
+ * @param {!proto.trb.indicators.v1.SchedulerTarget} message
2209
+ * @param {!jspb.BinaryWriter} writer
2210
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2211
+ */
2212
+ proto.trb.indicators.v1.SchedulerTarget.serializeBinaryToWriter = function(message, writer) {
2213
+ var f = undefined;
2214
+ f = message.getUid();
2215
+ if (f.length > 0) {
2216
+ writer.writeString(
2217
+ 1,
2218
+ f
2219
+ );
2220
+ }
2221
+ f = message.getInterval();
2222
+ if (f !== 0) {
2223
+ writer.writeInt32(
2224
+ 2,
2225
+ f
2226
+ );
2227
+ }
2228
+ f = message.getIndicator();
2229
+ if (f.length > 0) {
2230
+ writer.writeString(
2231
+ 3,
2232
+ f
2233
+ );
2234
+ }
2235
+ f = message.getParamsMap(true);
2236
+ if (f && f.getLength() > 0) {
2237
+ f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeDouble);
2238
+ }
2239
+ f = message.getEnabled();
2240
+ if (f) {
2241
+ writer.writeBool(
2242
+ 5,
2243
+ f
2244
+ );
2245
+ }
2246
+ };
2247
+
2248
+
2249
+ /**
2250
+ * optional string uid = 1;
2251
+ * @return {string}
2252
+ */
2253
+ proto.trb.indicators.v1.SchedulerTarget.prototype.getUid = function() {
2254
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2255
+ };
2256
+
2257
+
2258
+ /**
2259
+ * @param {string} value
2260
+ * @return {!proto.trb.indicators.v1.SchedulerTarget} returns this
2261
+ */
2262
+ proto.trb.indicators.v1.SchedulerTarget.prototype.setUid = function(value) {
2263
+ return jspb.Message.setProto3StringField(this, 1, value);
2264
+ };
2265
+
2266
+
2267
+ /**
2268
+ * optional int32 interval = 2;
2269
+ * @return {number}
2270
+ */
2271
+ proto.trb.indicators.v1.SchedulerTarget.prototype.getInterval = function() {
2272
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2273
+ };
2274
+
2275
+
2276
+ /**
2277
+ * @param {number} value
2278
+ * @return {!proto.trb.indicators.v1.SchedulerTarget} returns this
2279
+ */
2280
+ proto.trb.indicators.v1.SchedulerTarget.prototype.setInterval = function(value) {
2281
+ return jspb.Message.setProto3IntField(this, 2, value);
2282
+ };
2283
+
2284
+
2285
+ /**
2286
+ * optional string indicator = 3;
2287
+ * @return {string}
2288
+ */
2289
+ proto.trb.indicators.v1.SchedulerTarget.prototype.getIndicator = function() {
2290
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2291
+ };
2292
+
2293
+
2294
+ /**
2295
+ * @param {string} value
2296
+ * @return {!proto.trb.indicators.v1.SchedulerTarget} returns this
2297
+ */
2298
+ proto.trb.indicators.v1.SchedulerTarget.prototype.setIndicator = function(value) {
2299
+ return jspb.Message.setProto3StringField(this, 3, value);
2300
+ };
2301
+
2302
+
2303
+ /**
2304
+ * map<string, double> params = 4;
2305
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
2306
+ * empty, instead returning `undefined`
2307
+ * @return {!jspb.Map<string,number>}
2308
+ */
2309
+ proto.trb.indicators.v1.SchedulerTarget.prototype.getParamsMap = function(opt_noLazyCreate) {
2310
+ return /** @type {!jspb.Map<string,number>} */ (
2311
+ jspb.Message.getMapField(this, 4, opt_noLazyCreate,
2312
+ null));
2313
+ };
2314
+
2315
+
2316
+ /**
2317
+ * Clears values from the map. The map will be non-null.
2318
+ * @return {!proto.trb.indicators.v1.SchedulerTarget} returns this
2319
+ */
2320
+ proto.trb.indicators.v1.SchedulerTarget.prototype.clearParamsMap = function() {
2321
+ this.getParamsMap().clear();
2322
+ return this;
2323
+ };
2324
+
2325
+
2326
+ /**
2327
+ * optional bool enabled = 5;
2328
+ * @return {boolean}
2329
+ */
2330
+ proto.trb.indicators.v1.SchedulerTarget.prototype.getEnabled = function() {
2331
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
2332
+ };
2333
+
2334
+
2335
+ /**
2336
+ * @param {boolean} value
2337
+ * @return {!proto.trb.indicators.v1.SchedulerTarget} returns this
2338
+ */
2339
+ proto.trb.indicators.v1.SchedulerTarget.prototype.setEnabled = function(value) {
2340
+ return jspb.Message.setProto3BooleanField(this, 5, value);
2341
+ };
2342
+
2343
+
2344
+
2345
+
2346
+
2347
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2348
+ /**
2349
+ * Creates an object representation of this proto.
2350
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2351
+ * Optional fields that are not set will be set to undefined.
2352
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2353
+ * For the list of reserved names please see:
2354
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2355
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2356
+ * JSPB instance for transitional soy proto support:
2357
+ * http://goto/soy-param-migration
2358
+ * @return {!Object}
2359
+ */
2360
+ proto.trb.indicators.v1.ListSchedulerTargetsRequest.prototype.toObject = function(opt_includeInstance) {
2361
+ return proto.trb.indicators.v1.ListSchedulerTargetsRequest.toObject(opt_includeInstance, this);
2362
+ };
2363
+
2364
+
2365
+ /**
2366
+ * Static version of the {@see toObject} method.
2367
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2368
+ * the JSPB instance for transitional soy proto support:
2369
+ * http://goto/soy-param-migration
2370
+ * @param {!proto.trb.indicators.v1.ListSchedulerTargetsRequest} msg The msg instance to transform.
2371
+ * @return {!Object}
2372
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2373
+ */
2374
+ proto.trb.indicators.v1.ListSchedulerTargetsRequest.toObject = function(includeInstance, msg) {
2375
+ var f, obj = {
2376
+
2377
+ };
2378
+
2379
+ if (includeInstance) {
2380
+ obj.$jspbMessageInstance = msg;
2381
+ }
2382
+ return obj;
2383
+ };
2384
+ }
2385
+
2386
+
2387
+ /**
2388
+ * Deserializes binary data (in protobuf wire format).
2389
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2390
+ * @return {!proto.trb.indicators.v1.ListSchedulerTargetsRequest}
2391
+ */
2392
+ proto.trb.indicators.v1.ListSchedulerTargetsRequest.deserializeBinary = function(bytes) {
2393
+ var reader = new jspb.BinaryReader(bytes);
2394
+ var msg = new proto.trb.indicators.v1.ListSchedulerTargetsRequest;
2395
+ return proto.trb.indicators.v1.ListSchedulerTargetsRequest.deserializeBinaryFromReader(msg, reader);
2396
+ };
2397
+
2398
+
2399
+ /**
2400
+ * Deserializes binary data (in protobuf wire format) from the
2401
+ * given reader into the given message object.
2402
+ * @param {!proto.trb.indicators.v1.ListSchedulerTargetsRequest} msg The message object to deserialize into.
2403
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2404
+ * @return {!proto.trb.indicators.v1.ListSchedulerTargetsRequest}
2405
+ */
2406
+ proto.trb.indicators.v1.ListSchedulerTargetsRequest.deserializeBinaryFromReader = function(msg, reader) {
2407
+ while (reader.nextField()) {
2408
+ if (reader.isEndGroup()) {
2409
+ break;
2410
+ }
2411
+ var field = reader.getFieldNumber();
2412
+ switch (field) {
2413
+ default:
2414
+ reader.skipField();
2415
+ break;
2416
+ }
2417
+ }
2418
+ return msg;
2419
+ };
2420
+
2421
+
2422
+ /**
2423
+ * Serializes the message to binary data (in protobuf wire format).
2424
+ * @return {!Uint8Array}
2425
+ */
2426
+ proto.trb.indicators.v1.ListSchedulerTargetsRequest.prototype.serializeBinary = function() {
2427
+ var writer = new jspb.BinaryWriter();
2428
+ proto.trb.indicators.v1.ListSchedulerTargetsRequest.serializeBinaryToWriter(this, writer);
2429
+ return writer.getResultBuffer();
2430
+ };
2431
+
2432
+
2433
+ /**
2434
+ * Serializes the given message to binary data (in protobuf wire
2435
+ * format), writing to the given BinaryWriter.
2436
+ * @param {!proto.trb.indicators.v1.ListSchedulerTargetsRequest} message
2437
+ * @param {!jspb.BinaryWriter} writer
2438
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2439
+ */
2440
+ proto.trb.indicators.v1.ListSchedulerTargetsRequest.serializeBinaryToWriter = function(message, writer) {
2441
+ var f = undefined;
2442
+ };
2443
+
2444
+
2445
+
2446
+ /**
2447
+ * List of repeated fields within this message type.
2448
+ * @private {!Array<number>}
2449
+ * @const
2450
+ */
2451
+ proto.trb.indicators.v1.ListSchedulerTargetsResponse.repeatedFields_ = [1];
2452
+
2453
+
2454
+
2455
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2456
+ /**
2457
+ * Creates an object representation of this proto.
2458
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2459
+ * Optional fields that are not set will be set to undefined.
2460
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2461
+ * For the list of reserved names please see:
2462
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2463
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2464
+ * JSPB instance for transitional soy proto support:
2465
+ * http://goto/soy-param-migration
2466
+ * @return {!Object}
2467
+ */
2468
+ proto.trb.indicators.v1.ListSchedulerTargetsResponse.prototype.toObject = function(opt_includeInstance) {
2469
+ return proto.trb.indicators.v1.ListSchedulerTargetsResponse.toObject(opt_includeInstance, this);
2470
+ };
2471
+
2472
+
2473
+ /**
2474
+ * Static version of the {@see toObject} method.
2475
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2476
+ * the JSPB instance for transitional soy proto support:
2477
+ * http://goto/soy-param-migration
2478
+ * @param {!proto.trb.indicators.v1.ListSchedulerTargetsResponse} msg The msg instance to transform.
2479
+ * @return {!Object}
2480
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2481
+ */
2482
+ proto.trb.indicators.v1.ListSchedulerTargetsResponse.toObject = function(includeInstance, msg) {
2483
+ var f, obj = {
2484
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
2485
+ proto.trb.indicators.v1.SchedulerTarget.toObject, includeInstance)
2486
+ };
2487
+
2488
+ if (includeInstance) {
2489
+ obj.$jspbMessageInstance = msg;
2490
+ }
2491
+ return obj;
2492
+ };
2493
+ }
2494
+
2495
+
2496
+ /**
2497
+ * Deserializes binary data (in protobuf wire format).
2498
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2499
+ * @return {!proto.trb.indicators.v1.ListSchedulerTargetsResponse}
2500
+ */
2501
+ proto.trb.indicators.v1.ListSchedulerTargetsResponse.deserializeBinary = function(bytes) {
2502
+ var reader = new jspb.BinaryReader(bytes);
2503
+ var msg = new proto.trb.indicators.v1.ListSchedulerTargetsResponse;
2504
+ return proto.trb.indicators.v1.ListSchedulerTargetsResponse.deserializeBinaryFromReader(msg, reader);
2505
+ };
2506
+
2507
+
2508
+ /**
2509
+ * Deserializes binary data (in protobuf wire format) from the
2510
+ * given reader into the given message object.
2511
+ * @param {!proto.trb.indicators.v1.ListSchedulerTargetsResponse} msg The message object to deserialize into.
2512
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2513
+ * @return {!proto.trb.indicators.v1.ListSchedulerTargetsResponse}
2514
+ */
2515
+ proto.trb.indicators.v1.ListSchedulerTargetsResponse.deserializeBinaryFromReader = function(msg, reader) {
2516
+ while (reader.nextField()) {
2517
+ if (reader.isEndGroup()) {
2518
+ break;
2519
+ }
2520
+ var field = reader.getFieldNumber();
2521
+ switch (field) {
2522
+ case 1:
2523
+ var value = new proto.trb.indicators.v1.SchedulerTarget;
2524
+ reader.readMessage(value,proto.trb.indicators.v1.SchedulerTarget.deserializeBinaryFromReader);
2525
+ msg.addItems(value);
2526
+ break;
2527
+ default:
2528
+ reader.skipField();
2529
+ break;
2530
+ }
2531
+ }
2532
+ return msg;
2533
+ };
2534
+
2535
+
2536
+ /**
2537
+ * Serializes the message to binary data (in protobuf wire format).
2538
+ * @return {!Uint8Array}
2539
+ */
2540
+ proto.trb.indicators.v1.ListSchedulerTargetsResponse.prototype.serializeBinary = function() {
2541
+ var writer = new jspb.BinaryWriter();
2542
+ proto.trb.indicators.v1.ListSchedulerTargetsResponse.serializeBinaryToWriter(this, writer);
2543
+ return writer.getResultBuffer();
2544
+ };
2545
+
2546
+
2547
+ /**
2548
+ * Serializes the given message to binary data (in protobuf wire
2549
+ * format), writing to the given BinaryWriter.
2550
+ * @param {!proto.trb.indicators.v1.ListSchedulerTargetsResponse} message
2551
+ * @param {!jspb.BinaryWriter} writer
2552
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2553
+ */
2554
+ proto.trb.indicators.v1.ListSchedulerTargetsResponse.serializeBinaryToWriter = function(message, writer) {
2555
+ var f = undefined;
2556
+ f = message.getItemsList();
2557
+ if (f.length > 0) {
2558
+ writer.writeRepeatedMessage(
2559
+ 1,
2560
+ f,
2561
+ proto.trb.indicators.v1.SchedulerTarget.serializeBinaryToWriter
2562
+ );
2563
+ }
2564
+ };
2565
+
2566
+
2567
+ /**
2568
+ * repeated SchedulerTarget items = 1;
2569
+ * @return {!Array<!proto.trb.indicators.v1.SchedulerTarget>}
2570
+ */
2571
+ proto.trb.indicators.v1.ListSchedulerTargetsResponse.prototype.getItemsList = function() {
2572
+ return /** @type{!Array<!proto.trb.indicators.v1.SchedulerTarget>} */ (
2573
+ jspb.Message.getRepeatedWrapperField(this, proto.trb.indicators.v1.SchedulerTarget, 1));
2574
+ };
2575
+
2576
+
2577
+ /**
2578
+ * @param {!Array<!proto.trb.indicators.v1.SchedulerTarget>} value
2579
+ * @return {!proto.trb.indicators.v1.ListSchedulerTargetsResponse} returns this
2580
+ */
2581
+ proto.trb.indicators.v1.ListSchedulerTargetsResponse.prototype.setItemsList = function(value) {
2582
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2583
+ };
2584
+
2585
+
2586
+ /**
2587
+ * @param {!proto.trb.indicators.v1.SchedulerTarget=} opt_value
2588
+ * @param {number=} opt_index
2589
+ * @return {!proto.trb.indicators.v1.SchedulerTarget}
2590
+ */
2591
+ proto.trb.indicators.v1.ListSchedulerTargetsResponse.prototype.addItems = function(opt_value, opt_index) {
2592
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.indicators.v1.SchedulerTarget, opt_index);
2593
+ };
2594
+
2595
+
2596
+ /**
2597
+ * Clears the list making it empty but non-null.
2598
+ * @return {!proto.trb.indicators.v1.ListSchedulerTargetsResponse} returns this
2599
+ */
2600
+ proto.trb.indicators.v1.ListSchedulerTargetsResponse.prototype.clearItemsList = function() {
2601
+ return this.setItemsList([]);
2602
+ };
2603
+
2604
+
2605
+
2606
+ /**
2607
+ * List of repeated fields within this message type.
2608
+ * @private {!Array<number>}
2609
+ * @const
2610
+ */
2611
+ proto.trb.indicators.v1.SyncSchedulerTargetsRequest.repeatedFields_ = [1];
2612
+
2613
+
2614
+
2615
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2616
+ /**
2617
+ * Creates an object representation of this proto.
2618
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2619
+ * Optional fields that are not set will be set to undefined.
2620
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2621
+ * For the list of reserved names please see:
2622
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2623
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2624
+ * JSPB instance for transitional soy proto support:
2625
+ * http://goto/soy-param-migration
2626
+ * @return {!Object}
2627
+ */
2628
+ proto.trb.indicators.v1.SyncSchedulerTargetsRequest.prototype.toObject = function(opt_includeInstance) {
2629
+ return proto.trb.indicators.v1.SyncSchedulerTargetsRequest.toObject(opt_includeInstance, this);
2630
+ };
2631
+
2632
+
2633
+ /**
2634
+ * Static version of the {@see toObject} method.
2635
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2636
+ * the JSPB instance for transitional soy proto support:
2637
+ * http://goto/soy-param-migration
2638
+ * @param {!proto.trb.indicators.v1.SyncSchedulerTargetsRequest} msg The msg instance to transform.
2639
+ * @return {!Object}
2640
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2641
+ */
2642
+ proto.trb.indicators.v1.SyncSchedulerTargetsRequest.toObject = function(includeInstance, msg) {
2643
+ var f, obj = {
2644
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
2645
+ proto.trb.indicators.v1.SchedulerTarget.toObject, includeInstance),
2646
+ allowEmpty: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
2647
+ };
2648
+
2649
+ if (includeInstance) {
2650
+ obj.$jspbMessageInstance = msg;
2651
+ }
2652
+ return obj;
2653
+ };
2654
+ }
2655
+
2656
+
2657
+ /**
2658
+ * Deserializes binary data (in protobuf wire format).
2659
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2660
+ * @return {!proto.trb.indicators.v1.SyncSchedulerTargetsRequest}
2661
+ */
2662
+ proto.trb.indicators.v1.SyncSchedulerTargetsRequest.deserializeBinary = function(bytes) {
2663
+ var reader = new jspb.BinaryReader(bytes);
2664
+ var msg = new proto.trb.indicators.v1.SyncSchedulerTargetsRequest;
2665
+ return proto.trb.indicators.v1.SyncSchedulerTargetsRequest.deserializeBinaryFromReader(msg, reader);
2666
+ };
2667
+
2668
+
2669
+ /**
2670
+ * Deserializes binary data (in protobuf wire format) from the
2671
+ * given reader into the given message object.
2672
+ * @param {!proto.trb.indicators.v1.SyncSchedulerTargetsRequest} msg The message object to deserialize into.
2673
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2674
+ * @return {!proto.trb.indicators.v1.SyncSchedulerTargetsRequest}
2675
+ */
2676
+ proto.trb.indicators.v1.SyncSchedulerTargetsRequest.deserializeBinaryFromReader = function(msg, reader) {
2677
+ while (reader.nextField()) {
2678
+ if (reader.isEndGroup()) {
2679
+ break;
2680
+ }
2681
+ var field = reader.getFieldNumber();
2682
+ switch (field) {
2683
+ case 1:
2684
+ var value = new proto.trb.indicators.v1.SchedulerTarget;
2685
+ reader.readMessage(value,proto.trb.indicators.v1.SchedulerTarget.deserializeBinaryFromReader);
2686
+ msg.addItems(value);
2687
+ break;
2688
+ case 2:
2689
+ var value = /** @type {boolean} */ (reader.readBool());
2690
+ msg.setAllowEmpty(value);
2691
+ break;
2692
+ default:
2693
+ reader.skipField();
2694
+ break;
2695
+ }
2696
+ }
2697
+ return msg;
2698
+ };
2699
+
2700
+
2701
+ /**
2702
+ * Serializes the message to binary data (in protobuf wire format).
2703
+ * @return {!Uint8Array}
2704
+ */
2705
+ proto.trb.indicators.v1.SyncSchedulerTargetsRequest.prototype.serializeBinary = function() {
2706
+ var writer = new jspb.BinaryWriter();
2707
+ proto.trb.indicators.v1.SyncSchedulerTargetsRequest.serializeBinaryToWriter(this, writer);
2708
+ return writer.getResultBuffer();
2709
+ };
2710
+
2711
+
2712
+ /**
2713
+ * Serializes the given message to binary data (in protobuf wire
2714
+ * format), writing to the given BinaryWriter.
2715
+ * @param {!proto.trb.indicators.v1.SyncSchedulerTargetsRequest} message
2716
+ * @param {!jspb.BinaryWriter} writer
2717
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2718
+ */
2719
+ proto.trb.indicators.v1.SyncSchedulerTargetsRequest.serializeBinaryToWriter = function(message, writer) {
2720
+ var f = undefined;
2721
+ f = message.getItemsList();
2722
+ if (f.length > 0) {
2723
+ writer.writeRepeatedMessage(
2724
+ 1,
2725
+ f,
2726
+ proto.trb.indicators.v1.SchedulerTarget.serializeBinaryToWriter
2727
+ );
2728
+ }
2729
+ f = message.getAllowEmpty();
2730
+ if (f) {
2731
+ writer.writeBool(
2732
+ 2,
2733
+ f
2734
+ );
2735
+ }
2736
+ };
2737
+
2738
+
2739
+ /**
2740
+ * repeated SchedulerTarget items = 1;
2741
+ * @return {!Array<!proto.trb.indicators.v1.SchedulerTarget>}
2742
+ */
2743
+ proto.trb.indicators.v1.SyncSchedulerTargetsRequest.prototype.getItemsList = function() {
2744
+ return /** @type{!Array<!proto.trb.indicators.v1.SchedulerTarget>} */ (
2745
+ jspb.Message.getRepeatedWrapperField(this, proto.trb.indicators.v1.SchedulerTarget, 1));
2746
+ };
2747
+
2748
+
2749
+ /**
2750
+ * @param {!Array<!proto.trb.indicators.v1.SchedulerTarget>} value
2751
+ * @return {!proto.trb.indicators.v1.SyncSchedulerTargetsRequest} returns this
2752
+ */
2753
+ proto.trb.indicators.v1.SyncSchedulerTargetsRequest.prototype.setItemsList = function(value) {
2754
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2755
+ };
2756
+
2757
+
2758
+ /**
2759
+ * @param {!proto.trb.indicators.v1.SchedulerTarget=} opt_value
2760
+ * @param {number=} opt_index
2761
+ * @return {!proto.trb.indicators.v1.SchedulerTarget}
2762
+ */
2763
+ proto.trb.indicators.v1.SyncSchedulerTargetsRequest.prototype.addItems = function(opt_value, opt_index) {
2764
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.indicators.v1.SchedulerTarget, opt_index);
2765
+ };
2766
+
2767
+
2768
+ /**
2769
+ * Clears the list making it empty but non-null.
2770
+ * @return {!proto.trb.indicators.v1.SyncSchedulerTargetsRequest} returns this
2771
+ */
2772
+ proto.trb.indicators.v1.SyncSchedulerTargetsRequest.prototype.clearItemsList = function() {
2773
+ return this.setItemsList([]);
2774
+ };
2775
+
2776
+
2777
+ /**
2778
+ * optional bool allow_empty = 2;
2779
+ * @return {boolean}
2780
+ */
2781
+ proto.trb.indicators.v1.SyncSchedulerTargetsRequest.prototype.getAllowEmpty = function() {
2782
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
2783
+ };
2784
+
2785
+
2786
+ /**
2787
+ * @param {boolean} value
2788
+ * @return {!proto.trb.indicators.v1.SyncSchedulerTargetsRequest} returns this
2789
+ */
2790
+ proto.trb.indicators.v1.SyncSchedulerTargetsRequest.prototype.setAllowEmpty = function(value) {
2791
+ return jspb.Message.setProto3BooleanField(this, 2, value);
2792
+ };
2793
+
2794
+
2795
+
2796
+
2797
+
2798
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2799
+ /**
2800
+ * Creates an object representation of this proto.
2801
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2802
+ * Optional fields that are not set will be set to undefined.
2803
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2804
+ * For the list of reserved names please see:
2805
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2806
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2807
+ * JSPB instance for transitional soy proto support:
2808
+ * http://goto/soy-param-migration
2809
+ * @return {!Object}
2810
+ */
2811
+ proto.trb.indicators.v1.SyncSchedulerTargetsResponse.prototype.toObject = function(opt_includeInstance) {
2812
+ return proto.trb.indicators.v1.SyncSchedulerTargetsResponse.toObject(opt_includeInstance, this);
2813
+ };
2814
+
2815
+
2816
+ /**
2817
+ * Static version of the {@see toObject} method.
2818
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2819
+ * the JSPB instance for transitional soy proto support:
2820
+ * http://goto/soy-param-migration
2821
+ * @param {!proto.trb.indicators.v1.SyncSchedulerTargetsResponse} msg The msg instance to transform.
2822
+ * @return {!Object}
2823
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2824
+ */
2825
+ proto.trb.indicators.v1.SyncSchedulerTargetsResponse.toObject = function(includeInstance, msg) {
2826
+ var f, obj = {
2827
+ count: jspb.Message.getFieldWithDefault(msg, 1, 0)
2828
+ };
2829
+
2830
+ if (includeInstance) {
2831
+ obj.$jspbMessageInstance = msg;
2832
+ }
2833
+ return obj;
2834
+ };
2835
+ }
2836
+
2837
+
2838
+ /**
2839
+ * Deserializes binary data (in protobuf wire format).
2840
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2841
+ * @return {!proto.trb.indicators.v1.SyncSchedulerTargetsResponse}
2842
+ */
2843
+ proto.trb.indicators.v1.SyncSchedulerTargetsResponse.deserializeBinary = function(bytes) {
2844
+ var reader = new jspb.BinaryReader(bytes);
2845
+ var msg = new proto.trb.indicators.v1.SyncSchedulerTargetsResponse;
2846
+ return proto.trb.indicators.v1.SyncSchedulerTargetsResponse.deserializeBinaryFromReader(msg, reader);
2847
+ };
2848
+
2849
+
2850
+ /**
2851
+ * Deserializes binary data (in protobuf wire format) from the
2852
+ * given reader into the given message object.
2853
+ * @param {!proto.trb.indicators.v1.SyncSchedulerTargetsResponse} msg The message object to deserialize into.
2854
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2855
+ * @return {!proto.trb.indicators.v1.SyncSchedulerTargetsResponse}
2856
+ */
2857
+ proto.trb.indicators.v1.SyncSchedulerTargetsResponse.deserializeBinaryFromReader = function(msg, reader) {
2858
+ while (reader.nextField()) {
2859
+ if (reader.isEndGroup()) {
2860
+ break;
2861
+ }
2862
+ var field = reader.getFieldNumber();
2863
+ switch (field) {
2864
+ case 1:
2865
+ var value = /** @type {number} */ (reader.readInt32());
2866
+ msg.setCount(value);
2867
+ break;
2868
+ default:
2869
+ reader.skipField();
2870
+ break;
2871
+ }
2872
+ }
2873
+ return msg;
2874
+ };
2875
+
2876
+
2877
+ /**
2878
+ * Serializes the message to binary data (in protobuf wire format).
2879
+ * @return {!Uint8Array}
2880
+ */
2881
+ proto.trb.indicators.v1.SyncSchedulerTargetsResponse.prototype.serializeBinary = function() {
2882
+ var writer = new jspb.BinaryWriter();
2883
+ proto.trb.indicators.v1.SyncSchedulerTargetsResponse.serializeBinaryToWriter(this, writer);
2884
+ return writer.getResultBuffer();
2885
+ };
2886
+
2887
+
2888
+ /**
2889
+ * Serializes the given message to binary data (in protobuf wire
2890
+ * format), writing to the given BinaryWriter.
2891
+ * @param {!proto.trb.indicators.v1.SyncSchedulerTargetsResponse} message
2892
+ * @param {!jspb.BinaryWriter} writer
2893
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2894
+ */
2895
+ proto.trb.indicators.v1.SyncSchedulerTargetsResponse.serializeBinaryToWriter = function(message, writer) {
2896
+ var f = undefined;
2897
+ f = message.getCount();
2898
+ if (f !== 0) {
2899
+ writer.writeInt32(
2900
+ 1,
2901
+ f
2902
+ );
2903
+ }
2904
+ };
2905
+
2906
+
2907
+ /**
2908
+ * optional int32 count = 1;
2909
+ * @return {number}
2910
+ */
2911
+ proto.trb.indicators.v1.SyncSchedulerTargetsResponse.prototype.getCount = function() {
2912
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2913
+ };
2914
+
2915
+
2916
+ /**
2917
+ * @param {number} value
2918
+ * @return {!proto.trb.indicators.v1.SyncSchedulerTargetsResponse} returns this
2919
+ */
2920
+ proto.trb.indicators.v1.SyncSchedulerTargetsResponse.prototype.setCount = function(value) {
2921
+ return jspb.Message.setProto3IntField(this, 1, value);
2922
+ };
2923
+
2924
+
1980
2925
  /**
1981
2926
  * @enum {number}
1982
2927
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marleena/trb-proto",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "description": "Generated protobuf messages and gRPC-Web clients for TrB services",
5
5
  "license": "MIT",
6
6
  "repository": {