@miradorlabs/web-grpc 2.24.0 → 2.26.0

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.
@@ -28,8 +28,6 @@ goog.object.extend(proto, proto_gateway_common_v1_status_pb);
28
28
  var proto_gateway_web_v1_trace_gateway_pb = require('../../../../proto/gateway/web/v1/trace_gateway_pb.js');
29
29
  goog.object.extend(proto, proto_gateway_web_v1_trace_gateway_pb);
30
30
  goog.exportSymbol('proto.gateway.web.v1.AbsoluteTimeRange', null, global);
31
- goog.exportSymbol('proto.gateway.web.v1.AttributeFilter', null, global);
32
- goog.exportSymbol('proto.gateway.web.v1.AttributeFilterOp', null, global);
33
31
  goog.exportSymbol('proto.gateway.web.v1.CreateDashboardRequest', null, global);
34
32
  goog.exportSymbol('proto.gateway.web.v1.CreateDashboardResponse', null, global);
35
33
  goog.exportSymbol('proto.gateway.web.v1.Dashboard', null, global);
@@ -38,15 +36,9 @@ goog.exportSymbol('proto.gateway.web.v1.DashboardDataEnvelope.EventCase', null,
38
36
  goog.exportSymbol('proto.gateway.web.v1.DashboardSummary', null, global);
39
37
  goog.exportSymbol('proto.gateway.web.v1.DeleteDashboardRequest', null, global);
40
38
  goog.exportSymbol('proto.gateway.web.v1.DeleteDashboardResponse', null, global);
41
- goog.exportSymbol('proto.gateway.web.v1.ExponentialHistogramAggregation', null, global);
42
- goog.exportSymbol('proto.gateway.web.v1.ExponentialHistogramQuerySpec', null, global);
43
- goog.exportSymbol('proto.gateway.web.v1.GaugeAggregation', null, global);
44
- goog.exportSymbol('proto.gateway.web.v1.GaugeQuerySpec', null, global);
45
39
  goog.exportSymbol('proto.gateway.web.v1.GetDashboardRequest', null, global);
46
40
  goog.exportSymbol('proto.gateway.web.v1.GetDashboardResponse', null, global);
47
41
  goog.exportSymbol('proto.gateway.web.v1.GridPos', null, global);
48
- goog.exportSymbol('proto.gateway.web.v1.HistogramAggregation', null, global);
49
- goog.exportSymbol('proto.gateway.web.v1.HistogramQuerySpec', null, global);
50
42
  goog.exportSymbol('proto.gateway.web.v1.ListDashboardsRequest', null, global);
51
43
  goog.exportSymbol('proto.gateway.web.v1.ListDashboardsResponse', null, global);
52
44
  goog.exportSymbol('proto.gateway.web.v1.MetricAttribute', null, global);
@@ -59,8 +51,6 @@ goog.exportSymbol('proto.gateway.web.v1.MetricCatalogEnvelope.EventCase', null,
59
51
  goog.exportSymbol('proto.gateway.web.v1.MetricCatalogSnapshot', null, global);
60
52
  goog.exportSymbol('proto.gateway.web.v1.MetricInfo', null, global);
61
53
  goog.exportSymbol('proto.gateway.web.v1.MetricKind', null, global);
62
- goog.exportSymbol('proto.gateway.web.v1.MetricQuery', null, global);
63
- goog.exportSymbol('proto.gateway.web.v1.MetricQuery.KindCase', null, global);
64
54
  goog.exportSymbol('proto.gateway.web.v1.MetricSeries', null, global);
65
55
  goog.exportSymbol('proto.gateway.web.v1.QueryDataEnvelope', null, global);
66
56
  goog.exportSymbol('proto.gateway.web.v1.QueryDataEnvelope.EventCase', null, global);
@@ -70,8 +60,6 @@ goog.exportSymbol('proto.gateway.web.v1.StreamDashboardDataRequest', null, globa
70
60
  goog.exportSymbol('proto.gateway.web.v1.StreamMetricAttributesRequest', null, global);
71
61
  goog.exportSymbol('proto.gateway.web.v1.StreamMetricsRequest', null, global);
72
62
  goog.exportSymbol('proto.gateway.web.v1.StreamQueryRequest', null, global);
73
- goog.exportSymbol('proto.gateway.web.v1.SumAggregation', null, global);
74
- goog.exportSymbol('proto.gateway.web.v1.SumQuerySpec', null, global);
75
63
  goog.exportSymbol('proto.gateway.web.v1.TimeRange', null, global);
76
64
  goog.exportSymbol('proto.gateway.web.v1.TimeRange.RangeCase', null, global);
77
65
  goog.exportSymbol('proto.gateway.web.v1.TimeseriesStyle', null, global);
@@ -271,132 +259,6 @@ if (goog.DEBUG && !COMPILED) {
271
259
  */
272
260
  proto.gateway.web.v1.StreamQueryRequest.displayName = 'proto.gateway.web.v1.StreamQueryRequest';
273
261
  }
274
- /**
275
- * Generated by JsPbCodeGenerator.
276
- * @param {Array=} opt_data Optional initial data array, typically from a
277
- * server response, or constructed directly in Javascript. The array is used
278
- * in place and becomes part of the constructed object. It is not cloned.
279
- * If no data is provided, the constructed object will be empty, but still
280
- * valid.
281
- * @extends {jspb.Message}
282
- * @constructor
283
- */
284
- proto.gateway.web.v1.MetricQuery = function(opt_data) {
285
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.MetricQuery.repeatedFields_, proto.gateway.web.v1.MetricQuery.oneofGroups_);
286
- };
287
- goog.inherits(proto.gateway.web.v1.MetricQuery, jspb.Message);
288
- if (goog.DEBUG && !COMPILED) {
289
- /**
290
- * @public
291
- * @override
292
- */
293
- proto.gateway.web.v1.MetricQuery.displayName = 'proto.gateway.web.v1.MetricQuery';
294
- }
295
- /**
296
- * Generated by JsPbCodeGenerator.
297
- * @param {Array=} opt_data Optional initial data array, typically from a
298
- * server response, or constructed directly in Javascript. The array is used
299
- * in place and becomes part of the constructed object. It is not cloned.
300
- * If no data is provided, the constructed object will be empty, but still
301
- * valid.
302
- * @extends {jspb.Message}
303
- * @constructor
304
- */
305
- proto.gateway.web.v1.GaugeQuerySpec = function(opt_data) {
306
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
307
- };
308
- goog.inherits(proto.gateway.web.v1.GaugeQuerySpec, jspb.Message);
309
- if (goog.DEBUG && !COMPILED) {
310
- /**
311
- * @public
312
- * @override
313
- */
314
- proto.gateway.web.v1.GaugeQuerySpec.displayName = 'proto.gateway.web.v1.GaugeQuerySpec';
315
- }
316
- /**
317
- * Generated by JsPbCodeGenerator.
318
- * @param {Array=} opt_data Optional initial data array, typically from a
319
- * server response, or constructed directly in Javascript. The array is used
320
- * in place and becomes part of the constructed object. It is not cloned.
321
- * If no data is provided, the constructed object will be empty, but still
322
- * valid.
323
- * @extends {jspb.Message}
324
- * @constructor
325
- */
326
- proto.gateway.web.v1.SumQuerySpec = function(opt_data) {
327
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
328
- };
329
- goog.inherits(proto.gateway.web.v1.SumQuerySpec, jspb.Message);
330
- if (goog.DEBUG && !COMPILED) {
331
- /**
332
- * @public
333
- * @override
334
- */
335
- proto.gateway.web.v1.SumQuerySpec.displayName = 'proto.gateway.web.v1.SumQuerySpec';
336
- }
337
- /**
338
- * Generated by JsPbCodeGenerator.
339
- * @param {Array=} opt_data Optional initial data array, typically from a
340
- * server response, or constructed directly in Javascript. The array is used
341
- * in place and becomes part of the constructed object. It is not cloned.
342
- * If no data is provided, the constructed object will be empty, but still
343
- * valid.
344
- * @extends {jspb.Message}
345
- * @constructor
346
- */
347
- proto.gateway.web.v1.HistogramQuerySpec = function(opt_data) {
348
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
349
- };
350
- goog.inherits(proto.gateway.web.v1.HistogramQuerySpec, jspb.Message);
351
- if (goog.DEBUG && !COMPILED) {
352
- /**
353
- * @public
354
- * @override
355
- */
356
- proto.gateway.web.v1.HistogramQuerySpec.displayName = 'proto.gateway.web.v1.HistogramQuerySpec';
357
- }
358
- /**
359
- * Generated by JsPbCodeGenerator.
360
- * @param {Array=} opt_data Optional initial data array, typically from a
361
- * server response, or constructed directly in Javascript. The array is used
362
- * in place and becomes part of the constructed object. It is not cloned.
363
- * If no data is provided, the constructed object will be empty, but still
364
- * valid.
365
- * @extends {jspb.Message}
366
- * @constructor
367
- */
368
- proto.gateway.web.v1.ExponentialHistogramQuerySpec = function(opt_data) {
369
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
370
- };
371
- goog.inherits(proto.gateway.web.v1.ExponentialHistogramQuerySpec, jspb.Message);
372
- if (goog.DEBUG && !COMPILED) {
373
- /**
374
- * @public
375
- * @override
376
- */
377
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.displayName = 'proto.gateway.web.v1.ExponentialHistogramQuerySpec';
378
- }
379
- /**
380
- * Generated by JsPbCodeGenerator.
381
- * @param {Array=} opt_data Optional initial data array, typically from a
382
- * server response, or constructed directly in Javascript. The array is used
383
- * in place and becomes part of the constructed object. It is not cloned.
384
- * If no data is provided, the constructed object will be empty, but still
385
- * valid.
386
- * @extends {jspb.Message}
387
- * @constructor
388
- */
389
- proto.gateway.web.v1.AttributeFilter = function(opt_data) {
390
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.AttributeFilter.repeatedFields_, null);
391
- };
392
- goog.inherits(proto.gateway.web.v1.AttributeFilter, jspb.Message);
393
- if (goog.DEBUG && !COMPILED) {
394
- /**
395
- * @public
396
- * @override
397
- */
398
- proto.gateway.web.v1.AttributeFilter.displayName = 'proto.gateway.web.v1.AttributeFilter';
399
- }
400
262
  /**
401
263
  * Generated by JsPbCodeGenerator.
402
264
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2201,1443 +2063,51 @@ proto.gateway.web.v1.MetricAttributeSnapshot.serializeBinaryToWriter = function(
2201
2063
 
2202
2064
 
2203
2065
  /**
2204
- * repeated MetricAttribute attributes = 1;
2205
- * @return {!Array<!proto.gateway.web.v1.MetricAttribute>}
2206
- */
2207
- proto.gateway.web.v1.MetricAttributeSnapshot.prototype.getAttributesList = function() {
2208
- return /** @type{!Array<!proto.gateway.web.v1.MetricAttribute>} */ (
2209
- jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.MetricAttribute, 1));
2210
- };
2211
-
2212
-
2213
- /**
2214
- * @param {!Array<!proto.gateway.web.v1.MetricAttribute>} value
2215
- * @return {!proto.gateway.web.v1.MetricAttributeSnapshot} returns this
2216
- */
2217
- proto.gateway.web.v1.MetricAttributeSnapshot.prototype.setAttributesList = function(value) {
2218
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
2219
- };
2220
-
2221
-
2222
- /**
2223
- * @param {!proto.gateway.web.v1.MetricAttribute=} opt_value
2224
- * @param {number=} opt_index
2225
- * @return {!proto.gateway.web.v1.MetricAttribute}
2226
- */
2227
- proto.gateway.web.v1.MetricAttributeSnapshot.prototype.addAttributes = function(opt_value, opt_index) {
2228
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.MetricAttribute, opt_index);
2229
- };
2230
-
2231
-
2232
- /**
2233
- * Clears the list making it empty but non-null.
2234
- * @return {!proto.gateway.web.v1.MetricAttributeSnapshot} returns this
2235
- */
2236
- proto.gateway.web.v1.MetricAttributeSnapshot.prototype.clearAttributesList = function() {
2237
- return this.setAttributesList([]);
2238
- };
2239
-
2240
-
2241
-
2242
- /**
2243
- * List of repeated fields within this message type.
2244
- * @private {!Array<number>}
2245
- * @const
2246
- */
2247
- proto.gateway.web.v1.MetricAttribute.repeatedFields_ = [2];
2248
-
2249
-
2250
-
2251
- if (jspb.Message.GENERATE_TO_OBJECT) {
2252
- /**
2253
- * Creates an object representation of this proto.
2254
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2255
- * Optional fields that are not set will be set to undefined.
2256
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2257
- * For the list of reserved names please see:
2258
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2259
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2260
- * JSPB instance for transitional soy proto support:
2261
- * http://goto/soy-param-migration
2262
- * @return {!Object}
2263
- */
2264
- proto.gateway.web.v1.MetricAttribute.prototype.toObject = function(opt_includeInstance) {
2265
- return proto.gateway.web.v1.MetricAttribute.toObject(opt_includeInstance, this);
2266
- };
2267
-
2268
-
2269
- /**
2270
- * Static version of the {@see toObject} method.
2271
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2272
- * the JSPB instance for transitional soy proto support:
2273
- * http://goto/soy-param-migration
2274
- * @param {!proto.gateway.web.v1.MetricAttribute} msg The msg instance to transform.
2275
- * @return {!Object}
2276
- * @suppress {unusedLocalVariables} f is only used for nested messages
2277
- */
2278
- proto.gateway.web.v1.MetricAttribute.toObject = function(includeInstance, msg) {
2279
- var f, obj = {
2280
- key: jspb.Message.getFieldWithDefault(msg, 1, ""),
2281
- valuesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
2282
- };
2283
-
2284
- if (includeInstance) {
2285
- obj.$jspbMessageInstance = msg;
2286
- }
2287
- return obj;
2288
- };
2289
- }
2290
-
2291
-
2292
- /**
2293
- * Deserializes binary data (in protobuf wire format).
2294
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2295
- * @return {!proto.gateway.web.v1.MetricAttribute}
2296
- */
2297
- proto.gateway.web.v1.MetricAttribute.deserializeBinary = function(bytes) {
2298
- var reader = new jspb.BinaryReader(bytes);
2299
- var msg = new proto.gateway.web.v1.MetricAttribute;
2300
- return proto.gateway.web.v1.MetricAttribute.deserializeBinaryFromReader(msg, reader);
2301
- };
2302
-
2303
-
2304
- /**
2305
- * Deserializes binary data (in protobuf wire format) from the
2306
- * given reader into the given message object.
2307
- * @param {!proto.gateway.web.v1.MetricAttribute} msg The message object to deserialize into.
2308
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2309
- * @return {!proto.gateway.web.v1.MetricAttribute}
2310
- */
2311
- proto.gateway.web.v1.MetricAttribute.deserializeBinaryFromReader = function(msg, reader) {
2312
- while (reader.nextField()) {
2313
- if (reader.isEndGroup()) {
2314
- break;
2315
- }
2316
- var field = reader.getFieldNumber();
2317
- switch (field) {
2318
- case 1:
2319
- var value = /** @type {string} */ (reader.readString());
2320
- msg.setKey(value);
2321
- break;
2322
- case 2:
2323
- var value = /** @type {string} */ (reader.readString());
2324
- msg.addValues(value);
2325
- break;
2326
- default:
2327
- reader.skipField();
2328
- break;
2329
- }
2330
- }
2331
- return msg;
2332
- };
2333
-
2334
-
2335
- /**
2336
- * Serializes the message to binary data (in protobuf wire format).
2337
- * @return {!Uint8Array}
2338
- */
2339
- proto.gateway.web.v1.MetricAttribute.prototype.serializeBinary = function() {
2340
- var writer = new jspb.BinaryWriter();
2341
- proto.gateway.web.v1.MetricAttribute.serializeBinaryToWriter(this, writer);
2342
- return writer.getResultBuffer();
2343
- };
2344
-
2345
-
2346
- /**
2347
- * Serializes the given message to binary data (in protobuf wire
2348
- * format), writing to the given BinaryWriter.
2349
- * @param {!proto.gateway.web.v1.MetricAttribute} message
2350
- * @param {!jspb.BinaryWriter} writer
2351
- * @suppress {unusedLocalVariables} f is only used for nested messages
2352
- */
2353
- proto.gateway.web.v1.MetricAttribute.serializeBinaryToWriter = function(message, writer) {
2354
- var f = undefined;
2355
- f = message.getKey();
2356
- if (f.length > 0) {
2357
- writer.writeString(
2358
- 1,
2359
- f
2360
- );
2361
- }
2362
- f = message.getValuesList();
2363
- if (f.length > 0) {
2364
- writer.writeRepeatedString(
2365
- 2,
2366
- f
2367
- );
2368
- }
2369
- };
2370
-
2371
-
2372
- /**
2373
- * optional string key = 1;
2374
- * @return {string}
2375
- */
2376
- proto.gateway.web.v1.MetricAttribute.prototype.getKey = function() {
2377
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2378
- };
2379
-
2380
-
2381
- /**
2382
- * @param {string} value
2383
- * @return {!proto.gateway.web.v1.MetricAttribute} returns this
2384
- */
2385
- proto.gateway.web.v1.MetricAttribute.prototype.setKey = function(value) {
2386
- return jspb.Message.setProto3StringField(this, 1, value);
2387
- };
2388
-
2389
-
2390
- /**
2391
- * repeated string values = 2;
2392
- * @return {!Array<string>}
2393
- */
2394
- proto.gateway.web.v1.MetricAttribute.prototype.getValuesList = function() {
2395
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
2396
- };
2397
-
2398
-
2399
- /**
2400
- * @param {!Array<string>} value
2401
- * @return {!proto.gateway.web.v1.MetricAttribute} returns this
2402
- */
2403
- proto.gateway.web.v1.MetricAttribute.prototype.setValuesList = function(value) {
2404
- return jspb.Message.setField(this, 2, value || []);
2405
- };
2406
-
2407
-
2408
- /**
2409
- * @param {string} value
2410
- * @param {number=} opt_index
2411
- * @return {!proto.gateway.web.v1.MetricAttribute} returns this
2412
- */
2413
- proto.gateway.web.v1.MetricAttribute.prototype.addValues = function(value, opt_index) {
2414
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
2415
- };
2416
-
2417
-
2418
- /**
2419
- * Clears the list making it empty but non-null.
2420
- * @return {!proto.gateway.web.v1.MetricAttribute} returns this
2421
- */
2422
- proto.gateway.web.v1.MetricAttribute.prototype.clearValuesList = function() {
2423
- return this.setValuesList([]);
2424
- };
2425
-
2426
-
2427
-
2428
-
2429
-
2430
- if (jspb.Message.GENERATE_TO_OBJECT) {
2431
- /**
2432
- * Creates an object representation of this proto.
2433
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2434
- * Optional fields that are not set will be set to undefined.
2435
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2436
- * For the list of reserved names please see:
2437
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2438
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2439
- * JSPB instance for transitional soy proto support:
2440
- * http://goto/soy-param-migration
2441
- * @return {!Object}
2442
- */
2443
- proto.gateway.web.v1.StreamQueryRequest.prototype.toObject = function(opt_includeInstance) {
2444
- return proto.gateway.web.v1.StreamQueryRequest.toObject(opt_includeInstance, this);
2445
- };
2446
-
2447
-
2448
- /**
2449
- * Static version of the {@see toObject} method.
2450
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2451
- * the JSPB instance for transitional soy proto support:
2452
- * http://goto/soy-param-migration
2453
- * @param {!proto.gateway.web.v1.StreamQueryRequest} msg The msg instance to transform.
2454
- * @return {!Object}
2455
- * @suppress {unusedLocalVariables} f is only used for nested messages
2456
- */
2457
- proto.gateway.web.v1.StreamQueryRequest.toObject = function(includeInstance, msg) {
2458
- var f, obj = {
2459
- organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2460
- projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2461
- query: (f = msg.getQuery()) && proto.gateway.web.v1.MetricQuery.toObject(includeInstance, f),
2462
- timeRange: (f = msg.getTimeRange()) && proto.gateway.web.v1.TimeRange.toObject(includeInstance, f),
2463
- timeInterval: jspb.Message.getFieldWithDefault(msg, 5, 0)
2464
- };
2465
-
2466
- if (includeInstance) {
2467
- obj.$jspbMessageInstance = msg;
2468
- }
2469
- return obj;
2470
- };
2471
- }
2472
-
2473
-
2474
- /**
2475
- * Deserializes binary data (in protobuf wire format).
2476
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2477
- * @return {!proto.gateway.web.v1.StreamQueryRequest}
2478
- */
2479
- proto.gateway.web.v1.StreamQueryRequest.deserializeBinary = function(bytes) {
2480
- var reader = new jspb.BinaryReader(bytes);
2481
- var msg = new proto.gateway.web.v1.StreamQueryRequest;
2482
- return proto.gateway.web.v1.StreamQueryRequest.deserializeBinaryFromReader(msg, reader);
2483
- };
2484
-
2485
-
2486
- /**
2487
- * Deserializes binary data (in protobuf wire format) from the
2488
- * given reader into the given message object.
2489
- * @param {!proto.gateway.web.v1.StreamQueryRequest} msg The message object to deserialize into.
2490
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2491
- * @return {!proto.gateway.web.v1.StreamQueryRequest}
2492
- */
2493
- proto.gateway.web.v1.StreamQueryRequest.deserializeBinaryFromReader = function(msg, reader) {
2494
- while (reader.nextField()) {
2495
- if (reader.isEndGroup()) {
2496
- break;
2497
- }
2498
- var field = reader.getFieldNumber();
2499
- switch (field) {
2500
- case 1:
2501
- var value = /** @type {string} */ (reader.readString());
2502
- msg.setOrganizationId(value);
2503
- break;
2504
- case 2:
2505
- var value = /** @type {string} */ (reader.readString());
2506
- msg.setProjectId(value);
2507
- break;
2508
- case 3:
2509
- var value = new proto.gateway.web.v1.MetricQuery;
2510
- reader.readMessage(value,proto.gateway.web.v1.MetricQuery.deserializeBinaryFromReader);
2511
- msg.setQuery(value);
2512
- break;
2513
- case 4:
2514
- var value = new proto.gateway.web.v1.TimeRange;
2515
- reader.readMessage(value,proto.gateway.web.v1.TimeRange.deserializeBinaryFromReader);
2516
- msg.setTimeRange(value);
2517
- break;
2518
- case 5:
2519
- var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (reader.readEnum());
2520
- msg.setTimeInterval(value);
2521
- break;
2522
- default:
2523
- reader.skipField();
2524
- break;
2525
- }
2526
- }
2527
- return msg;
2528
- };
2529
-
2530
-
2531
- /**
2532
- * Serializes the message to binary data (in protobuf wire format).
2533
- * @return {!Uint8Array}
2534
- */
2535
- proto.gateway.web.v1.StreamQueryRequest.prototype.serializeBinary = function() {
2536
- var writer = new jspb.BinaryWriter();
2537
- proto.gateway.web.v1.StreamQueryRequest.serializeBinaryToWriter(this, writer);
2538
- return writer.getResultBuffer();
2539
- };
2540
-
2541
-
2542
- /**
2543
- * Serializes the given message to binary data (in protobuf wire
2544
- * format), writing to the given BinaryWriter.
2545
- * @param {!proto.gateway.web.v1.StreamQueryRequest} message
2546
- * @param {!jspb.BinaryWriter} writer
2547
- * @suppress {unusedLocalVariables} f is only used for nested messages
2548
- */
2549
- proto.gateway.web.v1.StreamQueryRequest.serializeBinaryToWriter = function(message, writer) {
2550
- var f = undefined;
2551
- f = message.getOrganizationId();
2552
- if (f.length > 0) {
2553
- writer.writeString(
2554
- 1,
2555
- f
2556
- );
2557
- }
2558
- f = message.getProjectId();
2559
- if (f.length > 0) {
2560
- writer.writeString(
2561
- 2,
2562
- f
2563
- );
2564
- }
2565
- f = message.getQuery();
2566
- if (f != null) {
2567
- writer.writeMessage(
2568
- 3,
2569
- f,
2570
- proto.gateway.web.v1.MetricQuery.serializeBinaryToWriter
2571
- );
2572
- }
2573
- f = message.getTimeRange();
2574
- if (f != null) {
2575
- writer.writeMessage(
2576
- 4,
2577
- f,
2578
- proto.gateway.web.v1.TimeRange.serializeBinaryToWriter
2579
- );
2580
- }
2581
- f = message.getTimeInterval();
2582
- if (f !== 0.0) {
2583
- writer.writeEnum(
2584
- 5,
2585
- f
2586
- );
2587
- }
2588
- };
2589
-
2590
-
2591
- /**
2592
- * optional string organization_id = 1;
2593
- * @return {string}
2594
- */
2595
- proto.gateway.web.v1.StreamQueryRequest.prototype.getOrganizationId = function() {
2596
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2597
- };
2598
-
2599
-
2600
- /**
2601
- * @param {string} value
2602
- * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
2603
- */
2604
- proto.gateway.web.v1.StreamQueryRequest.prototype.setOrganizationId = function(value) {
2605
- return jspb.Message.setProto3StringField(this, 1, value);
2606
- };
2607
-
2608
-
2609
- /**
2610
- * optional string project_id = 2;
2611
- * @return {string}
2612
- */
2613
- proto.gateway.web.v1.StreamQueryRequest.prototype.getProjectId = function() {
2614
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2615
- };
2616
-
2617
-
2618
- /**
2619
- * @param {string} value
2620
- * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
2621
- */
2622
- proto.gateway.web.v1.StreamQueryRequest.prototype.setProjectId = function(value) {
2623
- return jspb.Message.setProto3StringField(this, 2, value);
2624
- };
2625
-
2626
-
2627
- /**
2628
- * optional MetricQuery query = 3;
2629
- * @return {?proto.gateway.web.v1.MetricQuery}
2630
- */
2631
- proto.gateway.web.v1.StreamQueryRequest.prototype.getQuery = function() {
2632
- return /** @type{?proto.gateway.web.v1.MetricQuery} */ (
2633
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.MetricQuery, 3));
2634
- };
2635
-
2636
-
2637
- /**
2638
- * @param {?proto.gateway.web.v1.MetricQuery|undefined} value
2639
- * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
2640
- */
2641
- proto.gateway.web.v1.StreamQueryRequest.prototype.setQuery = function(value) {
2642
- return jspb.Message.setWrapperField(this, 3, value);
2643
- };
2644
-
2645
-
2646
- /**
2647
- * Clears the message field making it undefined.
2648
- * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
2649
- */
2650
- proto.gateway.web.v1.StreamQueryRequest.prototype.clearQuery = function() {
2651
- return this.setQuery(undefined);
2652
- };
2653
-
2654
-
2655
- /**
2656
- * Returns whether this field is set.
2657
- * @return {boolean}
2658
- */
2659
- proto.gateway.web.v1.StreamQueryRequest.prototype.hasQuery = function() {
2660
- return jspb.Message.getField(this, 3) != null;
2661
- };
2662
-
2663
-
2664
- /**
2665
- * optional TimeRange time_range = 4;
2666
- * @return {?proto.gateway.web.v1.TimeRange}
2667
- */
2668
- proto.gateway.web.v1.StreamQueryRequest.prototype.getTimeRange = function() {
2669
- return /** @type{?proto.gateway.web.v1.TimeRange} */ (
2670
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.TimeRange, 4));
2671
- };
2672
-
2673
-
2674
- /**
2675
- * @param {?proto.gateway.web.v1.TimeRange|undefined} value
2676
- * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
2677
- */
2678
- proto.gateway.web.v1.StreamQueryRequest.prototype.setTimeRange = function(value) {
2679
- return jspb.Message.setWrapperField(this, 4, value);
2680
- };
2681
-
2682
-
2683
- /**
2684
- * Clears the message field making it undefined.
2685
- * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
2686
- */
2687
- proto.gateway.web.v1.StreamQueryRequest.prototype.clearTimeRange = function() {
2688
- return this.setTimeRange(undefined);
2689
- };
2690
-
2691
-
2692
- /**
2693
- * Returns whether this field is set.
2694
- * @return {boolean}
2695
- */
2696
- proto.gateway.web.v1.StreamQueryRequest.prototype.hasTimeRange = function() {
2697
- return jspb.Message.getField(this, 4) != null;
2698
- };
2699
-
2700
-
2701
- /**
2702
- * optional AnalyticsTimeInterval time_interval = 5;
2703
- * @return {!proto.gateway.web.v1.AnalyticsTimeInterval}
2704
- */
2705
- proto.gateway.web.v1.StreamQueryRequest.prototype.getTimeInterval = function() {
2706
- return /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2707
- };
2708
-
2709
-
2710
- /**
2711
- * @param {!proto.gateway.web.v1.AnalyticsTimeInterval} value
2712
- * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
2713
- */
2714
- proto.gateway.web.v1.StreamQueryRequest.prototype.setTimeInterval = function(value) {
2715
- return jspb.Message.setProto3EnumField(this, 5, value);
2716
- };
2717
-
2718
-
2719
-
2720
- /**
2721
- * List of repeated fields within this message type.
2722
- * @private {!Array<number>}
2723
- * @const
2724
- */
2725
- proto.gateway.web.v1.MetricQuery.repeatedFields_ = [5,6];
2726
-
2727
- /**
2728
- * Oneof group definitions for this message. Each group defines the field
2729
- * numbers belonging to that group. When of these fields' value is set, all
2730
- * other fields in the group are cleared. During deserialization, if multiple
2731
- * fields are encountered for a group, only the last value seen will be kept.
2732
- * @private {!Array<!Array<number>>}
2733
- * @const
2734
- */
2735
- proto.gateway.web.v1.MetricQuery.oneofGroups_ = [[2,3,4,8]];
2736
-
2737
- /**
2738
- * @enum {number}
2739
- */
2740
- proto.gateway.web.v1.MetricQuery.KindCase = {
2741
- KIND_NOT_SET: 0,
2742
- GAUGE: 2,
2743
- SUM: 3,
2744
- HISTOGRAM: 4,
2745
- EXPONENTIAL_HISTOGRAM: 8
2746
- };
2747
-
2748
- /**
2749
- * @return {proto.gateway.web.v1.MetricQuery.KindCase}
2750
- */
2751
- proto.gateway.web.v1.MetricQuery.prototype.getKindCase = function() {
2752
- return /** @type {proto.gateway.web.v1.MetricQuery.KindCase} */(jspb.Message.computeOneofCase(this, proto.gateway.web.v1.MetricQuery.oneofGroups_[0]));
2753
- };
2754
-
2755
-
2756
-
2757
- if (jspb.Message.GENERATE_TO_OBJECT) {
2758
- /**
2759
- * Creates an object representation of this proto.
2760
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2761
- * Optional fields that are not set will be set to undefined.
2762
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2763
- * For the list of reserved names please see:
2764
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2765
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2766
- * JSPB instance for transitional soy proto support:
2767
- * http://goto/soy-param-migration
2768
- * @return {!Object}
2769
- */
2770
- proto.gateway.web.v1.MetricQuery.prototype.toObject = function(opt_includeInstance) {
2771
- return proto.gateway.web.v1.MetricQuery.toObject(opt_includeInstance, this);
2772
- };
2773
-
2774
-
2775
- /**
2776
- * Static version of the {@see toObject} method.
2777
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2778
- * the JSPB instance for transitional soy proto support:
2779
- * http://goto/soy-param-migration
2780
- * @param {!proto.gateway.web.v1.MetricQuery} msg The msg instance to transform.
2781
- * @return {!Object}
2782
- * @suppress {unusedLocalVariables} f is only used for nested messages
2783
- */
2784
- proto.gateway.web.v1.MetricQuery.toObject = function(includeInstance, msg) {
2785
- var f, obj = {
2786
- metricName: jspb.Message.getFieldWithDefault(msg, 1, ""),
2787
- gauge: (f = msg.getGauge()) && proto.gateway.web.v1.GaugeQuerySpec.toObject(includeInstance, f),
2788
- sum: (f = msg.getSum()) && proto.gateway.web.v1.SumQuerySpec.toObject(includeInstance, f),
2789
- histogram: (f = msg.getHistogram()) && proto.gateway.web.v1.HistogramQuerySpec.toObject(includeInstance, f),
2790
- exponentialHistogram: (f = msg.getExponentialHistogram()) && proto.gateway.web.v1.ExponentialHistogramQuerySpec.toObject(includeInstance, f),
2791
- filtersList: jspb.Message.toObjectList(msg.getFiltersList(),
2792
- proto.gateway.web.v1.AttributeFilter.toObject, includeInstance),
2793
- groupByList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
2794
- groupLimit: jspb.Message.getFieldWithDefault(msg, 7, 0)
2795
- };
2796
-
2797
- if (includeInstance) {
2798
- obj.$jspbMessageInstance = msg;
2799
- }
2800
- return obj;
2801
- };
2802
- }
2803
-
2804
-
2805
- /**
2806
- * Deserializes binary data (in protobuf wire format).
2807
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2808
- * @return {!proto.gateway.web.v1.MetricQuery}
2809
- */
2810
- proto.gateway.web.v1.MetricQuery.deserializeBinary = function(bytes) {
2811
- var reader = new jspb.BinaryReader(bytes);
2812
- var msg = new proto.gateway.web.v1.MetricQuery;
2813
- return proto.gateway.web.v1.MetricQuery.deserializeBinaryFromReader(msg, reader);
2814
- };
2815
-
2816
-
2817
- /**
2818
- * Deserializes binary data (in protobuf wire format) from the
2819
- * given reader into the given message object.
2820
- * @param {!proto.gateway.web.v1.MetricQuery} msg The message object to deserialize into.
2821
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2822
- * @return {!proto.gateway.web.v1.MetricQuery}
2823
- */
2824
- proto.gateway.web.v1.MetricQuery.deserializeBinaryFromReader = function(msg, reader) {
2825
- while (reader.nextField()) {
2826
- if (reader.isEndGroup()) {
2827
- break;
2828
- }
2829
- var field = reader.getFieldNumber();
2830
- switch (field) {
2831
- case 1:
2832
- var value = /** @type {string} */ (reader.readString());
2833
- msg.setMetricName(value);
2834
- break;
2835
- case 2:
2836
- var value = new proto.gateway.web.v1.GaugeQuerySpec;
2837
- reader.readMessage(value,proto.gateway.web.v1.GaugeQuerySpec.deserializeBinaryFromReader);
2838
- msg.setGauge(value);
2839
- break;
2840
- case 3:
2841
- var value = new proto.gateway.web.v1.SumQuerySpec;
2842
- reader.readMessage(value,proto.gateway.web.v1.SumQuerySpec.deserializeBinaryFromReader);
2843
- msg.setSum(value);
2844
- break;
2845
- case 4:
2846
- var value = new proto.gateway.web.v1.HistogramQuerySpec;
2847
- reader.readMessage(value,proto.gateway.web.v1.HistogramQuerySpec.deserializeBinaryFromReader);
2848
- msg.setHistogram(value);
2849
- break;
2850
- case 8:
2851
- var value = new proto.gateway.web.v1.ExponentialHistogramQuerySpec;
2852
- reader.readMessage(value,proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinaryFromReader);
2853
- msg.setExponentialHistogram(value);
2854
- break;
2855
- case 5:
2856
- var value = new proto.gateway.web.v1.AttributeFilter;
2857
- reader.readMessage(value,proto.gateway.web.v1.AttributeFilter.deserializeBinaryFromReader);
2858
- msg.addFilters(value);
2859
- break;
2860
- case 6:
2861
- var value = /** @type {string} */ (reader.readString());
2862
- msg.addGroupBy(value);
2863
- break;
2864
- case 7:
2865
- var value = /** @type {number} */ (reader.readInt32());
2866
- msg.setGroupLimit(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.gateway.web.v1.MetricQuery.prototype.serializeBinary = function() {
2882
- var writer = new jspb.BinaryWriter();
2883
- proto.gateway.web.v1.MetricQuery.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.gateway.web.v1.MetricQuery} message
2892
- * @param {!jspb.BinaryWriter} writer
2893
- * @suppress {unusedLocalVariables} f is only used for nested messages
2894
- */
2895
- proto.gateway.web.v1.MetricQuery.serializeBinaryToWriter = function(message, writer) {
2896
- var f = undefined;
2897
- f = message.getMetricName();
2898
- if (f.length > 0) {
2899
- writer.writeString(
2900
- 1,
2901
- f
2902
- );
2903
- }
2904
- f = message.getGauge();
2905
- if (f != null) {
2906
- writer.writeMessage(
2907
- 2,
2908
- f,
2909
- proto.gateway.web.v1.GaugeQuerySpec.serializeBinaryToWriter
2910
- );
2911
- }
2912
- f = message.getSum();
2913
- if (f != null) {
2914
- writer.writeMessage(
2915
- 3,
2916
- f,
2917
- proto.gateway.web.v1.SumQuerySpec.serializeBinaryToWriter
2918
- );
2919
- }
2920
- f = message.getHistogram();
2921
- if (f != null) {
2922
- writer.writeMessage(
2923
- 4,
2924
- f,
2925
- proto.gateway.web.v1.HistogramQuerySpec.serializeBinaryToWriter
2926
- );
2927
- }
2928
- f = message.getExponentialHistogram();
2929
- if (f != null) {
2930
- writer.writeMessage(
2931
- 8,
2932
- f,
2933
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.serializeBinaryToWriter
2934
- );
2935
- }
2936
- f = message.getFiltersList();
2937
- if (f.length > 0) {
2938
- writer.writeRepeatedMessage(
2939
- 5,
2940
- f,
2941
- proto.gateway.web.v1.AttributeFilter.serializeBinaryToWriter
2942
- );
2943
- }
2944
- f = message.getGroupByList();
2945
- if (f.length > 0) {
2946
- writer.writeRepeatedString(
2947
- 6,
2948
- f
2949
- );
2950
- }
2951
- f = message.getGroupLimit();
2952
- if (f !== 0) {
2953
- writer.writeInt32(
2954
- 7,
2955
- f
2956
- );
2957
- }
2958
- };
2959
-
2960
-
2961
- /**
2962
- * optional string metric_name = 1;
2963
- * @return {string}
2964
- */
2965
- proto.gateway.web.v1.MetricQuery.prototype.getMetricName = function() {
2966
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2967
- };
2968
-
2969
-
2970
- /**
2971
- * @param {string} value
2972
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
2973
- */
2974
- proto.gateway.web.v1.MetricQuery.prototype.setMetricName = function(value) {
2975
- return jspb.Message.setProto3StringField(this, 1, value);
2976
- };
2977
-
2978
-
2979
- /**
2980
- * optional GaugeQuerySpec gauge = 2;
2981
- * @return {?proto.gateway.web.v1.GaugeQuerySpec}
2982
- */
2983
- proto.gateway.web.v1.MetricQuery.prototype.getGauge = function() {
2984
- return /** @type{?proto.gateway.web.v1.GaugeQuerySpec} */ (
2985
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.GaugeQuerySpec, 2));
2986
- };
2987
-
2988
-
2989
- /**
2990
- * @param {?proto.gateway.web.v1.GaugeQuerySpec|undefined} value
2991
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
2992
- */
2993
- proto.gateway.web.v1.MetricQuery.prototype.setGauge = function(value) {
2994
- return jspb.Message.setOneofWrapperField(this, 2, proto.gateway.web.v1.MetricQuery.oneofGroups_[0], value);
2995
- };
2996
-
2997
-
2998
- /**
2999
- * Clears the message field making it undefined.
3000
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3001
- */
3002
- proto.gateway.web.v1.MetricQuery.prototype.clearGauge = function() {
3003
- return this.setGauge(undefined);
3004
- };
3005
-
3006
-
3007
- /**
3008
- * Returns whether this field is set.
3009
- * @return {boolean}
3010
- */
3011
- proto.gateway.web.v1.MetricQuery.prototype.hasGauge = function() {
3012
- return jspb.Message.getField(this, 2) != null;
3013
- };
3014
-
3015
-
3016
- /**
3017
- * optional SumQuerySpec sum = 3;
3018
- * @return {?proto.gateway.web.v1.SumQuerySpec}
3019
- */
3020
- proto.gateway.web.v1.MetricQuery.prototype.getSum = function() {
3021
- return /** @type{?proto.gateway.web.v1.SumQuerySpec} */ (
3022
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.SumQuerySpec, 3));
3023
- };
3024
-
3025
-
3026
- /**
3027
- * @param {?proto.gateway.web.v1.SumQuerySpec|undefined} value
3028
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3029
- */
3030
- proto.gateway.web.v1.MetricQuery.prototype.setSum = function(value) {
3031
- return jspb.Message.setOneofWrapperField(this, 3, proto.gateway.web.v1.MetricQuery.oneofGroups_[0], value);
3032
- };
3033
-
3034
-
3035
- /**
3036
- * Clears the message field making it undefined.
3037
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3038
- */
3039
- proto.gateway.web.v1.MetricQuery.prototype.clearSum = function() {
3040
- return this.setSum(undefined);
3041
- };
3042
-
3043
-
3044
- /**
3045
- * Returns whether this field is set.
3046
- * @return {boolean}
3047
- */
3048
- proto.gateway.web.v1.MetricQuery.prototype.hasSum = function() {
3049
- return jspb.Message.getField(this, 3) != null;
3050
- };
3051
-
3052
-
3053
- /**
3054
- * optional HistogramQuerySpec histogram = 4;
3055
- * @return {?proto.gateway.web.v1.HistogramQuerySpec}
3056
- */
3057
- proto.gateway.web.v1.MetricQuery.prototype.getHistogram = function() {
3058
- return /** @type{?proto.gateway.web.v1.HistogramQuerySpec} */ (
3059
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.HistogramQuerySpec, 4));
3060
- };
3061
-
3062
-
3063
- /**
3064
- * @param {?proto.gateway.web.v1.HistogramQuerySpec|undefined} value
3065
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3066
- */
3067
- proto.gateway.web.v1.MetricQuery.prototype.setHistogram = function(value) {
3068
- return jspb.Message.setOneofWrapperField(this, 4, proto.gateway.web.v1.MetricQuery.oneofGroups_[0], value);
3069
- };
3070
-
3071
-
3072
- /**
3073
- * Clears the message field making it undefined.
3074
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3075
- */
3076
- proto.gateway.web.v1.MetricQuery.prototype.clearHistogram = function() {
3077
- return this.setHistogram(undefined);
3078
- };
3079
-
3080
-
3081
- /**
3082
- * Returns whether this field is set.
3083
- * @return {boolean}
3084
- */
3085
- proto.gateway.web.v1.MetricQuery.prototype.hasHistogram = function() {
3086
- return jspb.Message.getField(this, 4) != null;
3087
- };
3088
-
3089
-
3090
- /**
3091
- * optional ExponentialHistogramQuerySpec exponential_histogram = 8;
3092
- * @return {?proto.gateway.web.v1.ExponentialHistogramQuerySpec}
3093
- */
3094
- proto.gateway.web.v1.MetricQuery.prototype.getExponentialHistogram = function() {
3095
- return /** @type{?proto.gateway.web.v1.ExponentialHistogramQuerySpec} */ (
3096
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.ExponentialHistogramQuerySpec, 8));
3097
- };
3098
-
3099
-
3100
- /**
3101
- * @param {?proto.gateway.web.v1.ExponentialHistogramQuerySpec|undefined} value
3102
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3103
- */
3104
- proto.gateway.web.v1.MetricQuery.prototype.setExponentialHistogram = function(value) {
3105
- return jspb.Message.setOneofWrapperField(this, 8, proto.gateway.web.v1.MetricQuery.oneofGroups_[0], value);
3106
- };
3107
-
3108
-
3109
- /**
3110
- * Clears the message field making it undefined.
3111
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3112
- */
3113
- proto.gateway.web.v1.MetricQuery.prototype.clearExponentialHistogram = function() {
3114
- return this.setExponentialHistogram(undefined);
3115
- };
3116
-
3117
-
3118
- /**
3119
- * Returns whether this field is set.
3120
- * @return {boolean}
3121
- */
3122
- proto.gateway.web.v1.MetricQuery.prototype.hasExponentialHistogram = function() {
3123
- return jspb.Message.getField(this, 8) != null;
3124
- };
3125
-
3126
-
3127
- /**
3128
- * repeated AttributeFilter filters = 5;
3129
- * @return {!Array<!proto.gateway.web.v1.AttributeFilter>}
3130
- */
3131
- proto.gateway.web.v1.MetricQuery.prototype.getFiltersList = function() {
3132
- return /** @type{!Array<!proto.gateway.web.v1.AttributeFilter>} */ (
3133
- jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AttributeFilter, 5));
3134
- };
3135
-
3136
-
3137
- /**
3138
- * @param {!Array<!proto.gateway.web.v1.AttributeFilter>} value
3139
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3140
- */
3141
- proto.gateway.web.v1.MetricQuery.prototype.setFiltersList = function(value) {
3142
- return jspb.Message.setRepeatedWrapperField(this, 5, value);
3143
- };
3144
-
3145
-
3146
- /**
3147
- * @param {!proto.gateway.web.v1.AttributeFilter=} opt_value
3148
- * @param {number=} opt_index
3149
- * @return {!proto.gateway.web.v1.AttributeFilter}
3150
- */
3151
- proto.gateway.web.v1.MetricQuery.prototype.addFilters = function(opt_value, opt_index) {
3152
- return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.gateway.web.v1.AttributeFilter, opt_index);
3153
- };
3154
-
3155
-
3156
- /**
3157
- * Clears the list making it empty but non-null.
3158
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3159
- */
3160
- proto.gateway.web.v1.MetricQuery.prototype.clearFiltersList = function() {
3161
- return this.setFiltersList([]);
3162
- };
3163
-
3164
-
3165
- /**
3166
- * repeated string group_by = 6;
3167
- * @return {!Array<string>}
3168
- */
3169
- proto.gateway.web.v1.MetricQuery.prototype.getGroupByList = function() {
3170
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
3171
- };
3172
-
3173
-
3174
- /**
3175
- * @param {!Array<string>} value
3176
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3177
- */
3178
- proto.gateway.web.v1.MetricQuery.prototype.setGroupByList = function(value) {
3179
- return jspb.Message.setField(this, 6, value || []);
3180
- };
3181
-
3182
-
3183
- /**
3184
- * @param {string} value
3185
- * @param {number=} opt_index
3186
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3187
- */
3188
- proto.gateway.web.v1.MetricQuery.prototype.addGroupBy = function(value, opt_index) {
3189
- return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
3190
- };
3191
-
3192
-
3193
- /**
3194
- * Clears the list making it empty but non-null.
3195
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3196
- */
3197
- proto.gateway.web.v1.MetricQuery.prototype.clearGroupByList = function() {
3198
- return this.setGroupByList([]);
3199
- };
3200
-
3201
-
3202
- /**
3203
- * optional int32 group_limit = 7;
3204
- * @return {number}
3205
- */
3206
- proto.gateway.web.v1.MetricQuery.prototype.getGroupLimit = function() {
3207
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
3208
- };
3209
-
3210
-
3211
- /**
3212
- * @param {number} value
3213
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3214
- */
3215
- proto.gateway.web.v1.MetricQuery.prototype.setGroupLimit = function(value) {
3216
- return jspb.Message.setProto3IntField(this, 7, value);
3217
- };
3218
-
3219
-
3220
-
3221
-
3222
-
3223
- if (jspb.Message.GENERATE_TO_OBJECT) {
3224
- /**
3225
- * Creates an object representation of this proto.
3226
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3227
- * Optional fields that are not set will be set to undefined.
3228
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3229
- * For the list of reserved names please see:
3230
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3231
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3232
- * JSPB instance for transitional soy proto support:
3233
- * http://goto/soy-param-migration
3234
- * @return {!Object}
3235
- */
3236
- proto.gateway.web.v1.GaugeQuerySpec.prototype.toObject = function(opt_includeInstance) {
3237
- return proto.gateway.web.v1.GaugeQuerySpec.toObject(opt_includeInstance, this);
3238
- };
3239
-
3240
-
3241
- /**
3242
- * Static version of the {@see toObject} method.
3243
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3244
- * the JSPB instance for transitional soy proto support:
3245
- * http://goto/soy-param-migration
3246
- * @param {!proto.gateway.web.v1.GaugeQuerySpec} msg The msg instance to transform.
3247
- * @return {!Object}
3248
- * @suppress {unusedLocalVariables} f is only used for nested messages
3249
- */
3250
- proto.gateway.web.v1.GaugeQuerySpec.toObject = function(includeInstance, msg) {
3251
- var f, obj = {
3252
- aggregation: jspb.Message.getFieldWithDefault(msg, 1, 0)
3253
- };
3254
-
3255
- if (includeInstance) {
3256
- obj.$jspbMessageInstance = msg;
3257
- }
3258
- return obj;
3259
- };
3260
- }
3261
-
3262
-
3263
- /**
3264
- * Deserializes binary data (in protobuf wire format).
3265
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3266
- * @return {!proto.gateway.web.v1.GaugeQuerySpec}
3267
- */
3268
- proto.gateway.web.v1.GaugeQuerySpec.deserializeBinary = function(bytes) {
3269
- var reader = new jspb.BinaryReader(bytes);
3270
- var msg = new proto.gateway.web.v1.GaugeQuerySpec;
3271
- return proto.gateway.web.v1.GaugeQuerySpec.deserializeBinaryFromReader(msg, reader);
3272
- };
3273
-
3274
-
3275
- /**
3276
- * Deserializes binary data (in protobuf wire format) from the
3277
- * given reader into the given message object.
3278
- * @param {!proto.gateway.web.v1.GaugeQuerySpec} msg The message object to deserialize into.
3279
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3280
- * @return {!proto.gateway.web.v1.GaugeQuerySpec}
3281
- */
3282
- proto.gateway.web.v1.GaugeQuerySpec.deserializeBinaryFromReader = function(msg, reader) {
3283
- while (reader.nextField()) {
3284
- if (reader.isEndGroup()) {
3285
- break;
3286
- }
3287
- var field = reader.getFieldNumber();
3288
- switch (field) {
3289
- case 1:
3290
- var value = /** @type {!proto.gateway.web.v1.GaugeAggregation} */ (reader.readEnum());
3291
- msg.setAggregation(value);
3292
- break;
3293
- default:
3294
- reader.skipField();
3295
- break;
3296
- }
3297
- }
3298
- return msg;
3299
- };
3300
-
3301
-
3302
- /**
3303
- * Serializes the message to binary data (in protobuf wire format).
3304
- * @return {!Uint8Array}
3305
- */
3306
- proto.gateway.web.v1.GaugeQuerySpec.prototype.serializeBinary = function() {
3307
- var writer = new jspb.BinaryWriter();
3308
- proto.gateway.web.v1.GaugeQuerySpec.serializeBinaryToWriter(this, writer);
3309
- return writer.getResultBuffer();
3310
- };
3311
-
3312
-
3313
- /**
3314
- * Serializes the given message to binary data (in protobuf wire
3315
- * format), writing to the given BinaryWriter.
3316
- * @param {!proto.gateway.web.v1.GaugeQuerySpec} message
3317
- * @param {!jspb.BinaryWriter} writer
3318
- * @suppress {unusedLocalVariables} f is only used for nested messages
3319
- */
3320
- proto.gateway.web.v1.GaugeQuerySpec.serializeBinaryToWriter = function(message, writer) {
3321
- var f = undefined;
3322
- f = message.getAggregation();
3323
- if (f !== 0.0) {
3324
- writer.writeEnum(
3325
- 1,
3326
- f
3327
- );
3328
- }
3329
- };
3330
-
3331
-
3332
- /**
3333
- * optional GaugeAggregation aggregation = 1;
3334
- * @return {!proto.gateway.web.v1.GaugeAggregation}
3335
- */
3336
- proto.gateway.web.v1.GaugeQuerySpec.prototype.getAggregation = function() {
3337
- return /** @type {!proto.gateway.web.v1.GaugeAggregation} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3338
- };
3339
-
3340
-
3341
- /**
3342
- * @param {!proto.gateway.web.v1.GaugeAggregation} value
3343
- * @return {!proto.gateway.web.v1.GaugeQuerySpec} returns this
3344
- */
3345
- proto.gateway.web.v1.GaugeQuerySpec.prototype.setAggregation = function(value) {
3346
- return jspb.Message.setProto3EnumField(this, 1, value);
3347
- };
3348
-
3349
-
3350
-
3351
-
3352
-
3353
- if (jspb.Message.GENERATE_TO_OBJECT) {
3354
- /**
3355
- * Creates an object representation of this proto.
3356
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3357
- * Optional fields that are not set will be set to undefined.
3358
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3359
- * For the list of reserved names please see:
3360
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3361
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3362
- * JSPB instance for transitional soy proto support:
3363
- * http://goto/soy-param-migration
3364
- * @return {!Object}
3365
- */
3366
- proto.gateway.web.v1.SumQuerySpec.prototype.toObject = function(opt_includeInstance) {
3367
- return proto.gateway.web.v1.SumQuerySpec.toObject(opt_includeInstance, this);
3368
- };
3369
-
3370
-
3371
- /**
3372
- * Static version of the {@see toObject} method.
3373
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3374
- * the JSPB instance for transitional soy proto support:
3375
- * http://goto/soy-param-migration
3376
- * @param {!proto.gateway.web.v1.SumQuerySpec} msg The msg instance to transform.
3377
- * @return {!Object}
3378
- * @suppress {unusedLocalVariables} f is only used for nested messages
3379
- */
3380
- proto.gateway.web.v1.SumQuerySpec.toObject = function(includeInstance, msg) {
3381
- var f, obj = {
3382
- aggregation: jspb.Message.getFieldWithDefault(msg, 1, 0)
3383
- };
3384
-
3385
- if (includeInstance) {
3386
- obj.$jspbMessageInstance = msg;
3387
- }
3388
- return obj;
3389
- };
3390
- }
3391
-
3392
-
3393
- /**
3394
- * Deserializes binary data (in protobuf wire format).
3395
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3396
- * @return {!proto.gateway.web.v1.SumQuerySpec}
3397
- */
3398
- proto.gateway.web.v1.SumQuerySpec.deserializeBinary = function(bytes) {
3399
- var reader = new jspb.BinaryReader(bytes);
3400
- var msg = new proto.gateway.web.v1.SumQuerySpec;
3401
- return proto.gateway.web.v1.SumQuerySpec.deserializeBinaryFromReader(msg, reader);
3402
- };
3403
-
3404
-
3405
- /**
3406
- * Deserializes binary data (in protobuf wire format) from the
3407
- * given reader into the given message object.
3408
- * @param {!proto.gateway.web.v1.SumQuerySpec} msg The message object to deserialize into.
3409
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3410
- * @return {!proto.gateway.web.v1.SumQuerySpec}
3411
- */
3412
- proto.gateway.web.v1.SumQuerySpec.deserializeBinaryFromReader = function(msg, reader) {
3413
- while (reader.nextField()) {
3414
- if (reader.isEndGroup()) {
3415
- break;
3416
- }
3417
- var field = reader.getFieldNumber();
3418
- switch (field) {
3419
- case 1:
3420
- var value = /** @type {!proto.gateway.web.v1.SumAggregation} */ (reader.readEnum());
3421
- msg.setAggregation(value);
3422
- break;
3423
- default:
3424
- reader.skipField();
3425
- break;
3426
- }
3427
- }
3428
- return msg;
3429
- };
3430
-
3431
-
3432
- /**
3433
- * Serializes the message to binary data (in protobuf wire format).
3434
- * @return {!Uint8Array}
3435
- */
3436
- proto.gateway.web.v1.SumQuerySpec.prototype.serializeBinary = function() {
3437
- var writer = new jspb.BinaryWriter();
3438
- proto.gateway.web.v1.SumQuerySpec.serializeBinaryToWriter(this, writer);
3439
- return writer.getResultBuffer();
3440
- };
3441
-
3442
-
3443
- /**
3444
- * Serializes the given message to binary data (in protobuf wire
3445
- * format), writing to the given BinaryWriter.
3446
- * @param {!proto.gateway.web.v1.SumQuerySpec} message
3447
- * @param {!jspb.BinaryWriter} writer
3448
- * @suppress {unusedLocalVariables} f is only used for nested messages
3449
- */
3450
- proto.gateway.web.v1.SumQuerySpec.serializeBinaryToWriter = function(message, writer) {
3451
- var f = undefined;
3452
- f = message.getAggregation();
3453
- if (f !== 0.0) {
3454
- writer.writeEnum(
3455
- 1,
3456
- f
3457
- );
3458
- }
3459
- };
3460
-
3461
-
3462
- /**
3463
- * optional SumAggregation aggregation = 1;
3464
- * @return {!proto.gateway.web.v1.SumAggregation}
3465
- */
3466
- proto.gateway.web.v1.SumQuerySpec.prototype.getAggregation = function() {
3467
- return /** @type {!proto.gateway.web.v1.SumAggregation} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3468
- };
3469
-
3470
-
3471
- /**
3472
- * @param {!proto.gateway.web.v1.SumAggregation} value
3473
- * @return {!proto.gateway.web.v1.SumQuerySpec} returns this
3474
- */
3475
- proto.gateway.web.v1.SumQuerySpec.prototype.setAggregation = function(value) {
3476
- return jspb.Message.setProto3EnumField(this, 1, value);
3477
- };
3478
-
3479
-
3480
-
3481
-
3482
-
3483
- if (jspb.Message.GENERATE_TO_OBJECT) {
3484
- /**
3485
- * Creates an object representation of this proto.
3486
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3487
- * Optional fields that are not set will be set to undefined.
3488
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3489
- * For the list of reserved names please see:
3490
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3491
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3492
- * JSPB instance for transitional soy proto support:
3493
- * http://goto/soy-param-migration
3494
- * @return {!Object}
3495
- */
3496
- proto.gateway.web.v1.HistogramQuerySpec.prototype.toObject = function(opt_includeInstance) {
3497
- return proto.gateway.web.v1.HistogramQuerySpec.toObject(opt_includeInstance, this);
3498
- };
3499
-
3500
-
3501
- /**
3502
- * Static version of the {@see toObject} method.
3503
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3504
- * the JSPB instance for transitional soy proto support:
3505
- * http://goto/soy-param-migration
3506
- * @param {!proto.gateway.web.v1.HistogramQuerySpec} msg The msg instance to transform.
3507
- * @return {!Object}
3508
- * @suppress {unusedLocalVariables} f is only used for nested messages
3509
- */
3510
- proto.gateway.web.v1.HistogramQuerySpec.toObject = function(includeInstance, msg) {
3511
- var f, obj = {
3512
- aggregation: jspb.Message.getFieldWithDefault(msg, 1, 0),
3513
- quantile: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
3514
- };
3515
-
3516
- if (includeInstance) {
3517
- obj.$jspbMessageInstance = msg;
3518
- }
3519
- return obj;
3520
- };
3521
- }
3522
-
3523
-
3524
- /**
3525
- * Deserializes binary data (in protobuf wire format).
3526
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3527
- * @return {!proto.gateway.web.v1.HistogramQuerySpec}
3528
- */
3529
- proto.gateway.web.v1.HistogramQuerySpec.deserializeBinary = function(bytes) {
3530
- var reader = new jspb.BinaryReader(bytes);
3531
- var msg = new proto.gateway.web.v1.HistogramQuerySpec;
3532
- return proto.gateway.web.v1.HistogramQuerySpec.deserializeBinaryFromReader(msg, reader);
3533
- };
3534
-
3535
-
3536
- /**
3537
- * Deserializes binary data (in protobuf wire format) from the
3538
- * given reader into the given message object.
3539
- * @param {!proto.gateway.web.v1.HistogramQuerySpec} msg The message object to deserialize into.
3540
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3541
- * @return {!proto.gateway.web.v1.HistogramQuerySpec}
3542
- */
3543
- proto.gateway.web.v1.HistogramQuerySpec.deserializeBinaryFromReader = function(msg, reader) {
3544
- while (reader.nextField()) {
3545
- if (reader.isEndGroup()) {
3546
- break;
3547
- }
3548
- var field = reader.getFieldNumber();
3549
- switch (field) {
3550
- case 1:
3551
- var value = /** @type {!proto.gateway.web.v1.HistogramAggregation} */ (reader.readEnum());
3552
- msg.setAggregation(value);
3553
- break;
3554
- case 2:
3555
- var value = /** @type {number} */ (reader.readDouble());
3556
- msg.setQuantile(value);
3557
- break;
3558
- default:
3559
- reader.skipField();
3560
- break;
3561
- }
3562
- }
3563
- return msg;
3564
- };
3565
-
3566
-
3567
- /**
3568
- * Serializes the message to binary data (in protobuf wire format).
3569
- * @return {!Uint8Array}
3570
- */
3571
- proto.gateway.web.v1.HistogramQuerySpec.prototype.serializeBinary = function() {
3572
- var writer = new jspb.BinaryWriter();
3573
- proto.gateway.web.v1.HistogramQuerySpec.serializeBinaryToWriter(this, writer);
3574
- return writer.getResultBuffer();
3575
- };
3576
-
3577
-
3578
- /**
3579
- * Serializes the given message to binary data (in protobuf wire
3580
- * format), writing to the given BinaryWriter.
3581
- * @param {!proto.gateway.web.v1.HistogramQuerySpec} message
3582
- * @param {!jspb.BinaryWriter} writer
3583
- * @suppress {unusedLocalVariables} f is only used for nested messages
3584
- */
3585
- proto.gateway.web.v1.HistogramQuerySpec.serializeBinaryToWriter = function(message, writer) {
3586
- var f = undefined;
3587
- f = message.getAggregation();
3588
- if (f !== 0.0) {
3589
- writer.writeEnum(
3590
- 1,
3591
- f
3592
- );
3593
- }
3594
- f = message.getQuantile();
3595
- if (f !== 0.0) {
3596
- writer.writeDouble(
3597
- 2,
3598
- f
3599
- );
3600
- }
3601
- };
3602
-
3603
-
3604
- /**
3605
- * optional HistogramAggregation aggregation = 1;
3606
- * @return {!proto.gateway.web.v1.HistogramAggregation}
2066
+ * repeated MetricAttribute attributes = 1;
2067
+ * @return {!Array<!proto.gateway.web.v1.MetricAttribute>}
3607
2068
  */
3608
- proto.gateway.web.v1.HistogramQuerySpec.prototype.getAggregation = function() {
3609
- return /** @type {!proto.gateway.web.v1.HistogramAggregation} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2069
+ proto.gateway.web.v1.MetricAttributeSnapshot.prototype.getAttributesList = function() {
2070
+ return /** @type{!Array<!proto.gateway.web.v1.MetricAttribute>} */ (
2071
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.MetricAttribute, 1));
3610
2072
  };
3611
2073
 
3612
2074
 
3613
2075
  /**
3614
- * @param {!proto.gateway.web.v1.HistogramAggregation} value
3615
- * @return {!proto.gateway.web.v1.HistogramQuerySpec} returns this
3616
- */
3617
- proto.gateway.web.v1.HistogramQuerySpec.prototype.setAggregation = function(value) {
3618
- return jspb.Message.setProto3EnumField(this, 1, value);
2076
+ * @param {!Array<!proto.gateway.web.v1.MetricAttribute>} value
2077
+ * @return {!proto.gateway.web.v1.MetricAttributeSnapshot} returns this
2078
+ */
2079
+ proto.gateway.web.v1.MetricAttributeSnapshot.prototype.setAttributesList = function(value) {
2080
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3619
2081
  };
3620
2082
 
3621
2083
 
3622
2084
  /**
3623
- * optional double quantile = 2;
3624
- * @return {number}
2085
+ * @param {!proto.gateway.web.v1.MetricAttribute=} opt_value
2086
+ * @param {number=} opt_index
2087
+ * @return {!proto.gateway.web.v1.MetricAttribute}
3625
2088
  */
3626
- proto.gateway.web.v1.HistogramQuerySpec.prototype.getQuantile = function() {
3627
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
2089
+ proto.gateway.web.v1.MetricAttributeSnapshot.prototype.addAttributes = function(opt_value, opt_index) {
2090
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.MetricAttribute, opt_index);
3628
2091
  };
3629
2092
 
3630
2093
 
3631
2094
  /**
3632
- * @param {number} value
3633
- * @return {!proto.gateway.web.v1.HistogramQuerySpec} returns this
2095
+ * Clears the list making it empty but non-null.
2096
+ * @return {!proto.gateway.web.v1.MetricAttributeSnapshot} returns this
3634
2097
  */
3635
- proto.gateway.web.v1.HistogramQuerySpec.prototype.setQuantile = function(value) {
3636
- return jspb.Message.setProto3FloatField(this, 2, value);
2098
+ proto.gateway.web.v1.MetricAttributeSnapshot.prototype.clearAttributesList = function() {
2099
+ return this.setAttributesList([]);
3637
2100
  };
3638
2101
 
3639
2102
 
3640
2103
 
2104
+ /**
2105
+ * List of repeated fields within this message type.
2106
+ * @private {!Array<number>}
2107
+ * @const
2108
+ */
2109
+ proto.gateway.web.v1.MetricAttribute.repeatedFields_ = [2];
2110
+
3641
2111
 
3642
2112
 
3643
2113
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -3653,8 +2123,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3653
2123
  * http://goto/soy-param-migration
3654
2124
  * @return {!Object}
3655
2125
  */
3656
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.toObject = function(opt_includeInstance) {
3657
- return proto.gateway.web.v1.ExponentialHistogramQuerySpec.toObject(opt_includeInstance, this);
2126
+ proto.gateway.web.v1.MetricAttribute.prototype.toObject = function(opt_includeInstance) {
2127
+ return proto.gateway.web.v1.MetricAttribute.toObject(opt_includeInstance, this);
3658
2128
  };
3659
2129
 
3660
2130
 
@@ -3663,14 +2133,14 @@ proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.toObject = function
3663
2133
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3664
2134
  * the JSPB instance for transitional soy proto support:
3665
2135
  * http://goto/soy-param-migration
3666
- * @param {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} msg The msg instance to transform.
2136
+ * @param {!proto.gateway.web.v1.MetricAttribute} msg The msg instance to transform.
3667
2137
  * @return {!Object}
3668
2138
  * @suppress {unusedLocalVariables} f is only used for nested messages
3669
2139
  */
3670
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.toObject = function(includeInstance, msg) {
2140
+ proto.gateway.web.v1.MetricAttribute.toObject = function(includeInstance, msg) {
3671
2141
  var f, obj = {
3672
- aggregation: jspb.Message.getFieldWithDefault(msg, 1, 0),
3673
- quantile: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
2142
+ key: jspb.Message.getFieldWithDefault(msg, 1, ""),
2143
+ valuesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
3674
2144
  };
3675
2145
 
3676
2146
  if (includeInstance) {
@@ -3684,23 +2154,23 @@ quantile: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
3684
2154
  /**
3685
2155
  * Deserializes binary data (in protobuf wire format).
3686
2156
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
3687
- * @return {!proto.gateway.web.v1.ExponentialHistogramQuerySpec}
2157
+ * @return {!proto.gateway.web.v1.MetricAttribute}
3688
2158
  */
3689
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinary = function(bytes) {
2159
+ proto.gateway.web.v1.MetricAttribute.deserializeBinary = function(bytes) {
3690
2160
  var reader = new jspb.BinaryReader(bytes);
3691
- var msg = new proto.gateway.web.v1.ExponentialHistogramQuerySpec;
3692
- return proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinaryFromReader(msg, reader);
2161
+ var msg = new proto.gateway.web.v1.MetricAttribute;
2162
+ return proto.gateway.web.v1.MetricAttribute.deserializeBinaryFromReader(msg, reader);
3693
2163
  };
3694
2164
 
3695
2165
 
3696
2166
  /**
3697
2167
  * Deserializes binary data (in protobuf wire format) from the
3698
2168
  * given reader into the given message object.
3699
- * @param {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} msg The message object to deserialize into.
2169
+ * @param {!proto.gateway.web.v1.MetricAttribute} msg The message object to deserialize into.
3700
2170
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3701
- * @return {!proto.gateway.web.v1.ExponentialHistogramQuerySpec}
2171
+ * @return {!proto.gateway.web.v1.MetricAttribute}
3702
2172
  */
3703
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinaryFromReader = function(msg, reader) {
2173
+ proto.gateway.web.v1.MetricAttribute.deserializeBinaryFromReader = function(msg, reader) {
3704
2174
  while (reader.nextField()) {
3705
2175
  if (reader.isEndGroup()) {
3706
2176
  break;
@@ -3708,12 +2178,12 @@ proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinaryFromReader =
3708
2178
  var field = reader.getFieldNumber();
3709
2179
  switch (field) {
3710
2180
  case 1:
3711
- var value = /** @type {!proto.gateway.web.v1.ExponentialHistogramAggregation} */ (reader.readEnum());
3712
- msg.setAggregation(value);
2181
+ var value = /** @type {string} */ (reader.readString());
2182
+ msg.setKey(value);
3713
2183
  break;
3714
2184
  case 2:
3715
- var value = /** @type {number} */ (reader.readDouble());
3716
- msg.setQuantile(value);
2185
+ var value = /** @type {string} */ (reader.readString());
2186
+ msg.addValues(value);
3717
2187
  break;
3718
2188
  default:
3719
2189
  reader.skipField();
@@ -3728,9 +2198,9 @@ proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinaryFromReader =
3728
2198
  * Serializes the message to binary data (in protobuf wire format).
3729
2199
  * @return {!Uint8Array}
3730
2200
  */
3731
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.serializeBinary = function() {
2201
+ proto.gateway.web.v1.MetricAttribute.prototype.serializeBinary = function() {
3732
2202
  var writer = new jspb.BinaryWriter();
3733
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.serializeBinaryToWriter(this, writer);
2203
+ proto.gateway.web.v1.MetricAttribute.serializeBinaryToWriter(this, writer);
3734
2204
  return writer.getResultBuffer();
3735
2205
  };
3736
2206
 
@@ -3738,22 +2208,22 @@ proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.serializeBinary = f
3738
2208
  /**
3739
2209
  * Serializes the given message to binary data (in protobuf wire
3740
2210
  * format), writing to the given BinaryWriter.
3741
- * @param {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} message
2211
+ * @param {!proto.gateway.web.v1.MetricAttribute} message
3742
2212
  * @param {!jspb.BinaryWriter} writer
3743
2213
  * @suppress {unusedLocalVariables} f is only used for nested messages
3744
2214
  */
3745
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.serializeBinaryToWriter = function(message, writer) {
2215
+ proto.gateway.web.v1.MetricAttribute.serializeBinaryToWriter = function(message, writer) {
3746
2216
  var f = undefined;
3747
- f = message.getAggregation();
3748
- if (f !== 0.0) {
3749
- writer.writeEnum(
2217
+ f = message.getKey();
2218
+ if (f.length > 0) {
2219
+ writer.writeString(
3750
2220
  1,
3751
2221
  f
3752
2222
  );
3753
2223
  }
3754
- f = message.getQuantile();
3755
- if (f !== 0.0) {
3756
- writer.writeDouble(
2224
+ f = message.getValuesList();
2225
+ if (f.length > 0) {
2226
+ writer.writeRepeatedString(
3757
2227
  2,
3758
2228
  f
3759
2229
  );
@@ -3762,48 +2232,60 @@ proto.gateway.web.v1.ExponentialHistogramQuerySpec.serializeBinaryToWriter = fun
3762
2232
 
3763
2233
 
3764
2234
  /**
3765
- * optional ExponentialHistogramAggregation aggregation = 1;
3766
- * @return {!proto.gateway.web.v1.ExponentialHistogramAggregation}
2235
+ * optional string key = 1;
2236
+ * @return {string}
3767
2237
  */
3768
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.getAggregation = function() {
3769
- return /** @type {!proto.gateway.web.v1.ExponentialHistogramAggregation} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2238
+ proto.gateway.web.v1.MetricAttribute.prototype.getKey = function() {
2239
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3770
2240
  };
3771
2241
 
3772
2242
 
3773
2243
  /**
3774
- * @param {!proto.gateway.web.v1.ExponentialHistogramAggregation} value
3775
- * @return {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} returns this
2244
+ * @param {string} value
2245
+ * @return {!proto.gateway.web.v1.MetricAttribute} returns this
3776
2246
  */
3777
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.setAggregation = function(value) {
3778
- return jspb.Message.setProto3EnumField(this, 1, value);
2247
+ proto.gateway.web.v1.MetricAttribute.prototype.setKey = function(value) {
2248
+ return jspb.Message.setProto3StringField(this, 1, value);
3779
2249
  };
3780
2250
 
3781
2251
 
3782
2252
  /**
3783
- * optional double quantile = 2;
3784
- * @return {number}
2253
+ * repeated string values = 2;
2254
+ * @return {!Array<string>}
3785
2255
  */
3786
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.getQuantile = function() {
3787
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
2256
+ proto.gateway.web.v1.MetricAttribute.prototype.getValuesList = function() {
2257
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
3788
2258
  };
3789
2259
 
3790
2260
 
3791
2261
  /**
3792
- * @param {number} value
3793
- * @return {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} returns this
2262
+ * @param {!Array<string>} value
2263
+ * @return {!proto.gateway.web.v1.MetricAttribute} returns this
3794
2264
  */
3795
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.setQuantile = function(value) {
3796
- return jspb.Message.setProto3FloatField(this, 2, value);
2265
+ proto.gateway.web.v1.MetricAttribute.prototype.setValuesList = function(value) {
2266
+ return jspb.Message.setField(this, 2, value || []);
3797
2267
  };
3798
2268
 
3799
2269
 
2270
+ /**
2271
+ * @param {string} value
2272
+ * @param {number=} opt_index
2273
+ * @return {!proto.gateway.web.v1.MetricAttribute} returns this
2274
+ */
2275
+ proto.gateway.web.v1.MetricAttribute.prototype.addValues = function(value, opt_index) {
2276
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
2277
+ };
2278
+
3800
2279
 
3801
2280
  /**
3802
- * List of repeated fields within this message type.
3803
- * @private {!Array<number>}
3804
- * @const
2281
+ * Clears the list making it empty but non-null.
2282
+ * @return {!proto.gateway.web.v1.MetricAttribute} returns this
3805
2283
  */
3806
- proto.gateway.web.v1.AttributeFilter.repeatedFields_ = [3];
2284
+ proto.gateway.web.v1.MetricAttribute.prototype.clearValuesList = function() {
2285
+ return this.setValuesList([]);
2286
+ };
2287
+
2288
+
3807
2289
 
3808
2290
 
3809
2291
 
@@ -3820,8 +2302,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3820
2302
  * http://goto/soy-param-migration
3821
2303
  * @return {!Object}
3822
2304
  */
3823
- proto.gateway.web.v1.AttributeFilter.prototype.toObject = function(opt_includeInstance) {
3824
- return proto.gateway.web.v1.AttributeFilter.toObject(opt_includeInstance, this);
2305
+ proto.gateway.web.v1.StreamQueryRequest.prototype.toObject = function(opt_includeInstance) {
2306
+ return proto.gateway.web.v1.StreamQueryRequest.toObject(opt_includeInstance, this);
3825
2307
  };
3826
2308
 
3827
2309
 
@@ -3830,15 +2312,17 @@ proto.gateway.web.v1.AttributeFilter.prototype.toObject = function(opt_includeIn
3830
2312
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3831
2313
  * the JSPB instance for transitional soy proto support:
3832
2314
  * http://goto/soy-param-migration
3833
- * @param {!proto.gateway.web.v1.AttributeFilter} msg The msg instance to transform.
2315
+ * @param {!proto.gateway.web.v1.StreamQueryRequest} msg The msg instance to transform.
3834
2316
  * @return {!Object}
3835
2317
  * @suppress {unusedLocalVariables} f is only used for nested messages
3836
2318
  */
3837
- proto.gateway.web.v1.AttributeFilter.toObject = function(includeInstance, msg) {
2319
+ proto.gateway.web.v1.StreamQueryRequest.toObject = function(includeInstance, msg) {
3838
2320
  var f, obj = {
3839
- key: jspb.Message.getFieldWithDefault(msg, 1, ""),
3840
- op: jspb.Message.getFieldWithDefault(msg, 2, 0),
3841
- valuesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
2321
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2322
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2323
+ promql: jspb.Message.getFieldWithDefault(msg, 3, ""),
2324
+ timeRange: (f = msg.getTimeRange()) && proto.gateway.web.v1.TimeRange.toObject(includeInstance, f),
2325
+ timeInterval: jspb.Message.getFieldWithDefault(msg, 5, 0)
3842
2326
  };
3843
2327
 
3844
2328
  if (includeInstance) {
@@ -3852,23 +2336,23 @@ valuesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
3852
2336
  /**
3853
2337
  * Deserializes binary data (in protobuf wire format).
3854
2338
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
3855
- * @return {!proto.gateway.web.v1.AttributeFilter}
2339
+ * @return {!proto.gateway.web.v1.StreamQueryRequest}
3856
2340
  */
3857
- proto.gateway.web.v1.AttributeFilter.deserializeBinary = function(bytes) {
2341
+ proto.gateway.web.v1.StreamQueryRequest.deserializeBinary = function(bytes) {
3858
2342
  var reader = new jspb.BinaryReader(bytes);
3859
- var msg = new proto.gateway.web.v1.AttributeFilter;
3860
- return proto.gateway.web.v1.AttributeFilter.deserializeBinaryFromReader(msg, reader);
2343
+ var msg = new proto.gateway.web.v1.StreamQueryRequest;
2344
+ return proto.gateway.web.v1.StreamQueryRequest.deserializeBinaryFromReader(msg, reader);
3861
2345
  };
3862
2346
 
3863
2347
 
3864
2348
  /**
3865
2349
  * Deserializes binary data (in protobuf wire format) from the
3866
2350
  * given reader into the given message object.
3867
- * @param {!proto.gateway.web.v1.AttributeFilter} msg The message object to deserialize into.
2351
+ * @param {!proto.gateway.web.v1.StreamQueryRequest} msg The message object to deserialize into.
3868
2352
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3869
- * @return {!proto.gateway.web.v1.AttributeFilter}
2353
+ * @return {!proto.gateway.web.v1.StreamQueryRequest}
3870
2354
  */
3871
- proto.gateway.web.v1.AttributeFilter.deserializeBinaryFromReader = function(msg, reader) {
2355
+ proto.gateway.web.v1.StreamQueryRequest.deserializeBinaryFromReader = function(msg, reader) {
3872
2356
  while (reader.nextField()) {
3873
2357
  if (reader.isEndGroup()) {
3874
2358
  break;
@@ -3877,15 +2361,24 @@ proto.gateway.web.v1.AttributeFilter.deserializeBinaryFromReader = function(msg,
3877
2361
  switch (field) {
3878
2362
  case 1:
3879
2363
  var value = /** @type {string} */ (reader.readString());
3880
- msg.setKey(value);
2364
+ msg.setOrganizationId(value);
3881
2365
  break;
3882
2366
  case 2:
3883
- var value = /** @type {!proto.gateway.web.v1.AttributeFilterOp} */ (reader.readEnum());
3884
- msg.setOp(value);
2367
+ var value = /** @type {string} */ (reader.readString());
2368
+ msg.setProjectId(value);
3885
2369
  break;
3886
2370
  case 3:
3887
2371
  var value = /** @type {string} */ (reader.readString());
3888
- msg.addValues(value);
2372
+ msg.setPromql(value);
2373
+ break;
2374
+ case 4:
2375
+ var value = new proto.gateway.web.v1.TimeRange;
2376
+ reader.readMessage(value,proto.gateway.web.v1.TimeRange.deserializeBinaryFromReader);
2377
+ msg.setTimeRange(value);
2378
+ break;
2379
+ case 5:
2380
+ var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (reader.readEnum());
2381
+ msg.setTimeInterval(value);
3889
2382
  break;
3890
2383
  default:
3891
2384
  reader.skipField();
@@ -3900,9 +2393,9 @@ proto.gateway.web.v1.AttributeFilter.deserializeBinaryFromReader = function(msg,
3900
2393
  * Serializes the message to binary data (in protobuf wire format).
3901
2394
  * @return {!Uint8Array}
3902
2395
  */
3903
- proto.gateway.web.v1.AttributeFilter.prototype.serializeBinary = function() {
2396
+ proto.gateway.web.v1.StreamQueryRequest.prototype.serializeBinary = function() {
3904
2397
  var writer = new jspb.BinaryWriter();
3905
- proto.gateway.web.v1.AttributeFilter.serializeBinaryToWriter(this, writer);
2398
+ proto.gateway.web.v1.StreamQueryRequest.serializeBinaryToWriter(this, writer);
3906
2399
  return writer.getResultBuffer();
3907
2400
  };
3908
2401
 
@@ -3910,106 +2403,157 @@ proto.gateway.web.v1.AttributeFilter.prototype.serializeBinary = function() {
3910
2403
  /**
3911
2404
  * Serializes the given message to binary data (in protobuf wire
3912
2405
  * format), writing to the given BinaryWriter.
3913
- * @param {!proto.gateway.web.v1.AttributeFilter} message
2406
+ * @param {!proto.gateway.web.v1.StreamQueryRequest} message
3914
2407
  * @param {!jspb.BinaryWriter} writer
3915
2408
  * @suppress {unusedLocalVariables} f is only used for nested messages
3916
2409
  */
3917
- proto.gateway.web.v1.AttributeFilter.serializeBinaryToWriter = function(message, writer) {
2410
+ proto.gateway.web.v1.StreamQueryRequest.serializeBinaryToWriter = function(message, writer) {
3918
2411
  var f = undefined;
3919
- f = message.getKey();
2412
+ f = message.getOrganizationId();
3920
2413
  if (f.length > 0) {
3921
2414
  writer.writeString(
3922
2415
  1,
3923
2416
  f
3924
2417
  );
3925
2418
  }
3926
- f = message.getOp();
3927
- if (f !== 0.0) {
3928
- writer.writeEnum(
2419
+ f = message.getProjectId();
2420
+ if (f.length > 0) {
2421
+ writer.writeString(
3929
2422
  2,
3930
2423
  f
3931
2424
  );
3932
2425
  }
3933
- f = message.getValuesList();
2426
+ f = message.getPromql();
3934
2427
  if (f.length > 0) {
3935
- writer.writeRepeatedString(
2428
+ writer.writeString(
3936
2429
  3,
3937
2430
  f
3938
2431
  );
3939
2432
  }
2433
+ f = message.getTimeRange();
2434
+ if (f != null) {
2435
+ writer.writeMessage(
2436
+ 4,
2437
+ f,
2438
+ proto.gateway.web.v1.TimeRange.serializeBinaryToWriter
2439
+ );
2440
+ }
2441
+ f = message.getTimeInterval();
2442
+ if (f !== 0.0) {
2443
+ writer.writeEnum(
2444
+ 5,
2445
+ f
2446
+ );
2447
+ }
3940
2448
  };
3941
2449
 
3942
2450
 
3943
2451
  /**
3944
- * optional string key = 1;
2452
+ * optional string organization_id = 1;
3945
2453
  * @return {string}
3946
2454
  */
3947
- proto.gateway.web.v1.AttributeFilter.prototype.getKey = function() {
2455
+ proto.gateway.web.v1.StreamQueryRequest.prototype.getOrganizationId = function() {
3948
2456
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3949
2457
  };
3950
2458
 
3951
2459
 
3952
2460
  /**
3953
2461
  * @param {string} value
3954
- * @return {!proto.gateway.web.v1.AttributeFilter} returns this
2462
+ * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
3955
2463
  */
3956
- proto.gateway.web.v1.AttributeFilter.prototype.setKey = function(value) {
2464
+ proto.gateway.web.v1.StreamQueryRequest.prototype.setOrganizationId = function(value) {
3957
2465
  return jspb.Message.setProto3StringField(this, 1, value);
3958
2466
  };
3959
2467
 
3960
2468
 
3961
2469
  /**
3962
- * optional AttributeFilterOp op = 2;
3963
- * @return {!proto.gateway.web.v1.AttributeFilterOp}
2470
+ * optional string project_id = 2;
2471
+ * @return {string}
3964
2472
  */
3965
- proto.gateway.web.v1.AttributeFilter.prototype.getOp = function() {
3966
- return /** @type {!proto.gateway.web.v1.AttributeFilterOp} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2473
+ proto.gateway.web.v1.StreamQueryRequest.prototype.getProjectId = function() {
2474
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3967
2475
  };
3968
2476
 
3969
2477
 
3970
2478
  /**
3971
- * @param {!proto.gateway.web.v1.AttributeFilterOp} value
3972
- * @return {!proto.gateway.web.v1.AttributeFilter} returns this
2479
+ * @param {string} value
2480
+ * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
3973
2481
  */
3974
- proto.gateway.web.v1.AttributeFilter.prototype.setOp = function(value) {
3975
- return jspb.Message.setProto3EnumField(this, 2, value);
2482
+ proto.gateway.web.v1.StreamQueryRequest.prototype.setProjectId = function(value) {
2483
+ return jspb.Message.setProto3StringField(this, 2, value);
3976
2484
  };
3977
2485
 
3978
2486
 
3979
2487
  /**
3980
- * repeated string values = 3;
3981
- * @return {!Array<string>}
2488
+ * optional string promql = 3;
2489
+ * @return {string}
3982
2490
  */
3983
- proto.gateway.web.v1.AttributeFilter.prototype.getValuesList = function() {
3984
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
2491
+ proto.gateway.web.v1.StreamQueryRequest.prototype.getPromql = function() {
2492
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3985
2493
  };
3986
2494
 
3987
2495
 
3988
2496
  /**
3989
- * @param {!Array<string>} value
3990
- * @return {!proto.gateway.web.v1.AttributeFilter} returns this
2497
+ * @param {string} value
2498
+ * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
3991
2499
  */
3992
- proto.gateway.web.v1.AttributeFilter.prototype.setValuesList = function(value) {
3993
- return jspb.Message.setField(this, 3, value || []);
2500
+ proto.gateway.web.v1.StreamQueryRequest.prototype.setPromql = function(value) {
2501
+ return jspb.Message.setProto3StringField(this, 3, value);
3994
2502
  };
3995
2503
 
3996
2504
 
3997
2505
  /**
3998
- * @param {string} value
3999
- * @param {number=} opt_index
4000
- * @return {!proto.gateway.web.v1.AttributeFilter} returns this
2506
+ * optional TimeRange time_range = 4;
2507
+ * @return {?proto.gateway.web.v1.TimeRange}
4001
2508
  */
4002
- proto.gateway.web.v1.AttributeFilter.prototype.addValues = function(value, opt_index) {
4003
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
2509
+ proto.gateway.web.v1.StreamQueryRequest.prototype.getTimeRange = function() {
2510
+ return /** @type{?proto.gateway.web.v1.TimeRange} */ (
2511
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.TimeRange, 4));
4004
2512
  };
4005
2513
 
4006
2514
 
4007
2515
  /**
4008
- * Clears the list making it empty but non-null.
4009
- * @return {!proto.gateway.web.v1.AttributeFilter} returns this
2516
+ * @param {?proto.gateway.web.v1.TimeRange|undefined} value
2517
+ * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
2518
+ */
2519
+ proto.gateway.web.v1.StreamQueryRequest.prototype.setTimeRange = function(value) {
2520
+ return jspb.Message.setWrapperField(this, 4, value);
2521
+ };
2522
+
2523
+
2524
+ /**
2525
+ * Clears the message field making it undefined.
2526
+ * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
4010
2527
  */
4011
- proto.gateway.web.v1.AttributeFilter.prototype.clearValuesList = function() {
4012
- return this.setValuesList([]);
2528
+ proto.gateway.web.v1.StreamQueryRequest.prototype.clearTimeRange = function() {
2529
+ return this.setTimeRange(undefined);
2530
+ };
2531
+
2532
+
2533
+ /**
2534
+ * Returns whether this field is set.
2535
+ * @return {boolean}
2536
+ */
2537
+ proto.gateway.web.v1.StreamQueryRequest.prototype.hasTimeRange = function() {
2538
+ return jspb.Message.getField(this, 4) != null;
2539
+ };
2540
+
2541
+
2542
+ /**
2543
+ * optional AnalyticsTimeInterval time_interval = 5;
2544
+ * @return {!proto.gateway.web.v1.AnalyticsTimeInterval}
2545
+ */
2546
+ proto.gateway.web.v1.StreamQueryRequest.prototype.getTimeInterval = function() {
2547
+ return /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2548
+ };
2549
+
2550
+
2551
+ /**
2552
+ * @param {!proto.gateway.web.v1.AnalyticsTimeInterval} value
2553
+ * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
2554
+ */
2555
+ proto.gateway.web.v1.StreamQueryRequest.prototype.setTimeInterval = function(value) {
2556
+ return jspb.Message.setProto3EnumField(this, 5, value);
4013
2557
  };
4014
2558
 
4015
2559
 
@@ -10175,65 +8719,6 @@ proto.gateway.web.v1.MetricKind = {
10175
8719
  METRIC_KIND_EXPONENTIAL_HISTOGRAM: 4
10176
8720
  };
10177
8721
 
10178
- /**
10179
- * @enum {number}
10180
- */
10181
- proto.gateway.web.v1.GaugeAggregation = {
10182
- GAUGE_AGGREGATION_UNSPECIFIED: 0,
10183
- GAUGE_AGGREGATION_LAST: 1,
10184
- GAUGE_AGGREGATION_AVG: 2,
10185
- GAUGE_AGGREGATION_MIN: 3,
10186
- GAUGE_AGGREGATION_MAX: 4,
10187
- GAUGE_AGGREGATION_SUM: 5,
10188
- GAUGE_AGGREGATION_COUNT: 6
10189
- };
10190
-
10191
- /**
10192
- * @enum {number}
10193
- */
10194
- proto.gateway.web.v1.SumAggregation = {
10195
- SUM_AGGREGATION_UNSPECIFIED: 0,
10196
- SUM_AGGREGATION_RATE: 1,
10197
- SUM_AGGREGATION_INCREASE: 2,
10198
- SUM_AGGREGATION_LAST: 3,
10199
- SUM_AGGREGATION_COUNT: 4
10200
- };
10201
-
10202
- /**
10203
- * @enum {number}
10204
- */
10205
- proto.gateway.web.v1.HistogramAggregation = {
10206
- HISTOGRAM_AGGREGATION_UNSPECIFIED: 0,
10207
- HISTOGRAM_AGGREGATION_QUANTILE: 1,
10208
- HISTOGRAM_AGGREGATION_AVG: 2,
10209
- HISTOGRAM_AGGREGATION_MIN: 3,
10210
- HISTOGRAM_AGGREGATION_MAX: 4,
10211
- HISTOGRAM_AGGREGATION_COUNT: 5
10212
- };
10213
-
10214
- /**
10215
- * @enum {number}
10216
- */
10217
- proto.gateway.web.v1.ExponentialHistogramAggregation = {
10218
- EXPONENTIAL_HISTOGRAM_AGGREGATION_UNSPECIFIED: 0,
10219
- EXPONENTIAL_HISTOGRAM_AGGREGATION_QUANTILE: 1,
10220
- EXPONENTIAL_HISTOGRAM_AGGREGATION_AVG: 2,
10221
- EXPONENTIAL_HISTOGRAM_AGGREGATION_MIN: 3,
10222
- EXPONENTIAL_HISTOGRAM_AGGREGATION_MAX: 4,
10223
- EXPONENTIAL_HISTOGRAM_AGGREGATION_COUNT: 5
10224
- };
10225
-
10226
- /**
10227
- * @enum {number}
10228
- */
10229
- proto.gateway.web.v1.AttributeFilterOp = {
10230
- ATTRIBUTE_FILTER_OP_UNSPECIFIED: 0,
10231
- ATTRIBUTE_FILTER_OP_EQUALS: 1,
10232
- ATTRIBUTE_FILTER_OP_NOT_EQUALS: 2,
10233
- ATTRIBUTE_FILTER_OP_IN: 3,
10234
- ATTRIBUTE_FILTER_OP_NOT_IN: 4
10235
- };
10236
-
10237
8722
  /**
10238
8723
  * @enum {number}
10239
8724
  */