@miradorlabs/web-grpc 2.23.0 → 2.25.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,14 +60,14 @@ 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);
78
66
  goog.exportSymbol('proto.gateway.web.v1.UpdateDashboardRequest', null, global);
79
67
  goog.exportSymbol('proto.gateway.web.v1.UpdateDashboardResponse', null, global);
80
68
  goog.exportSymbol('proto.gateway.web.v1.Widget', null, global);
69
+ goog.exportSymbol('proto.gateway.web.v1.WidgetQuery', null, global);
70
+ goog.exportSymbol('proto.gateway.web.v1.WidgetQuery.QueryCase', null, global);
81
71
  goog.exportSymbol('proto.gateway.web.v1.WidgetQueryError', null, global);
82
72
  goog.exportSymbol('proto.gateway.web.v1.WidgetType', null, global);
83
73
  /**
@@ -269,132 +259,6 @@ if (goog.DEBUG && !COMPILED) {
269
259
  */
270
260
  proto.gateway.web.v1.StreamQueryRequest.displayName = 'proto.gateway.web.v1.StreamQueryRequest';
271
261
  }
272
- /**
273
- * Generated by JsPbCodeGenerator.
274
- * @param {Array=} opt_data Optional initial data array, typically from a
275
- * server response, or constructed directly in Javascript. The array is used
276
- * in place and becomes part of the constructed object. It is not cloned.
277
- * If no data is provided, the constructed object will be empty, but still
278
- * valid.
279
- * @extends {jspb.Message}
280
- * @constructor
281
- */
282
- proto.gateway.web.v1.MetricQuery = function(opt_data) {
283
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.MetricQuery.repeatedFields_, proto.gateway.web.v1.MetricQuery.oneofGroups_);
284
- };
285
- goog.inherits(proto.gateway.web.v1.MetricQuery, jspb.Message);
286
- if (goog.DEBUG && !COMPILED) {
287
- /**
288
- * @public
289
- * @override
290
- */
291
- proto.gateway.web.v1.MetricQuery.displayName = 'proto.gateway.web.v1.MetricQuery';
292
- }
293
- /**
294
- * Generated by JsPbCodeGenerator.
295
- * @param {Array=} opt_data Optional initial data array, typically from a
296
- * server response, or constructed directly in Javascript. The array is used
297
- * in place and becomes part of the constructed object. It is not cloned.
298
- * If no data is provided, the constructed object will be empty, but still
299
- * valid.
300
- * @extends {jspb.Message}
301
- * @constructor
302
- */
303
- proto.gateway.web.v1.GaugeQuerySpec = function(opt_data) {
304
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
305
- };
306
- goog.inherits(proto.gateway.web.v1.GaugeQuerySpec, jspb.Message);
307
- if (goog.DEBUG && !COMPILED) {
308
- /**
309
- * @public
310
- * @override
311
- */
312
- proto.gateway.web.v1.GaugeQuerySpec.displayName = 'proto.gateway.web.v1.GaugeQuerySpec';
313
- }
314
- /**
315
- * Generated by JsPbCodeGenerator.
316
- * @param {Array=} opt_data Optional initial data array, typically from a
317
- * server response, or constructed directly in Javascript. The array is used
318
- * in place and becomes part of the constructed object. It is not cloned.
319
- * If no data is provided, the constructed object will be empty, but still
320
- * valid.
321
- * @extends {jspb.Message}
322
- * @constructor
323
- */
324
- proto.gateway.web.v1.SumQuerySpec = function(opt_data) {
325
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
326
- };
327
- goog.inherits(proto.gateway.web.v1.SumQuerySpec, jspb.Message);
328
- if (goog.DEBUG && !COMPILED) {
329
- /**
330
- * @public
331
- * @override
332
- */
333
- proto.gateway.web.v1.SumQuerySpec.displayName = 'proto.gateway.web.v1.SumQuerySpec';
334
- }
335
- /**
336
- * Generated by JsPbCodeGenerator.
337
- * @param {Array=} opt_data Optional initial data array, typically from a
338
- * server response, or constructed directly in Javascript. The array is used
339
- * in place and becomes part of the constructed object. It is not cloned.
340
- * If no data is provided, the constructed object will be empty, but still
341
- * valid.
342
- * @extends {jspb.Message}
343
- * @constructor
344
- */
345
- proto.gateway.web.v1.HistogramQuerySpec = function(opt_data) {
346
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
347
- };
348
- goog.inherits(proto.gateway.web.v1.HistogramQuerySpec, jspb.Message);
349
- if (goog.DEBUG && !COMPILED) {
350
- /**
351
- * @public
352
- * @override
353
- */
354
- proto.gateway.web.v1.HistogramQuerySpec.displayName = 'proto.gateway.web.v1.HistogramQuerySpec';
355
- }
356
- /**
357
- * Generated by JsPbCodeGenerator.
358
- * @param {Array=} opt_data Optional initial data array, typically from a
359
- * server response, or constructed directly in Javascript. The array is used
360
- * in place and becomes part of the constructed object. It is not cloned.
361
- * If no data is provided, the constructed object will be empty, but still
362
- * valid.
363
- * @extends {jspb.Message}
364
- * @constructor
365
- */
366
- proto.gateway.web.v1.ExponentialHistogramQuerySpec = function(opt_data) {
367
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
368
- };
369
- goog.inherits(proto.gateway.web.v1.ExponentialHistogramQuerySpec, jspb.Message);
370
- if (goog.DEBUG && !COMPILED) {
371
- /**
372
- * @public
373
- * @override
374
- */
375
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.displayName = 'proto.gateway.web.v1.ExponentialHistogramQuerySpec';
376
- }
377
- /**
378
- * Generated by JsPbCodeGenerator.
379
- * @param {Array=} opt_data Optional initial data array, typically from a
380
- * server response, or constructed directly in Javascript. The array is used
381
- * in place and becomes part of the constructed object. It is not cloned.
382
- * If no data is provided, the constructed object will be empty, but still
383
- * valid.
384
- * @extends {jspb.Message}
385
- * @constructor
386
- */
387
- proto.gateway.web.v1.AttributeFilter = function(opt_data) {
388
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.AttributeFilter.repeatedFields_, null);
389
- };
390
- goog.inherits(proto.gateway.web.v1.AttributeFilter, jspb.Message);
391
- if (goog.DEBUG && !COMPILED) {
392
- /**
393
- * @public
394
- * @override
395
- */
396
- proto.gateway.web.v1.AttributeFilter.displayName = 'proto.gateway.web.v1.AttributeFilter';
397
- }
398
262
  /**
399
263
  * Generated by JsPbCodeGenerator.
400
264
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -563,6 +427,27 @@ if (goog.DEBUG && !COMPILED) {
563
427
  */
564
428
  proto.gateway.web.v1.Dashboard.displayName = 'proto.gateway.web.v1.Dashboard';
565
429
  }
430
+ /**
431
+ * Generated by JsPbCodeGenerator.
432
+ * @param {Array=} opt_data Optional initial data array, typically from a
433
+ * server response, or constructed directly in Javascript. The array is used
434
+ * in place and becomes part of the constructed object. It is not cloned.
435
+ * If no data is provided, the constructed object will be empty, but still
436
+ * valid.
437
+ * @extends {jspb.Message}
438
+ * @constructor
439
+ */
440
+ proto.gateway.web.v1.WidgetQuery = function(opt_data) {
441
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gateway.web.v1.WidgetQuery.oneofGroups_);
442
+ };
443
+ goog.inherits(proto.gateway.web.v1.WidgetQuery, jspb.Message);
444
+ if (goog.DEBUG && !COMPILED) {
445
+ /**
446
+ * @public
447
+ * @override
448
+ */
449
+ proto.gateway.web.v1.WidgetQuery.displayName = 'proto.gateway.web.v1.WidgetQuery';
450
+ }
566
451
  /**
567
452
  * Generated by JsPbCodeGenerator.
568
453
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2435,7 +2320,7 @@ proto.gateway.web.v1.StreamQueryRequest.toObject = function(includeInstance, msg
2435
2320
  var f, obj = {
2436
2321
  organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2437
2322
  projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2438
- query: (f = msg.getQuery()) && proto.gateway.web.v1.MetricQuery.toObject(includeInstance, f),
2323
+ promql: jspb.Message.getFieldWithDefault(msg, 3, ""),
2439
2324
  timeRange: (f = msg.getTimeRange()) && proto.gateway.web.v1.TimeRange.toObject(includeInstance, f),
2440
2325
  timeInterval: jspb.Message.getFieldWithDefault(msg, 5, 0)
2441
2326
  };
@@ -2483,9 +2368,8 @@ proto.gateway.web.v1.StreamQueryRequest.deserializeBinaryFromReader = function(m
2483
2368
  msg.setProjectId(value);
2484
2369
  break;
2485
2370
  case 3:
2486
- var value = new proto.gateway.web.v1.MetricQuery;
2487
- reader.readMessage(value,proto.gateway.web.v1.MetricQuery.deserializeBinaryFromReader);
2488
- msg.setQuery(value);
2371
+ var value = /** @type {string} */ (reader.readString());
2372
+ msg.setPromql(value);
2489
2373
  break;
2490
2374
  case 4:
2491
2375
  var value = new proto.gateway.web.v1.TimeRange;
@@ -2532,1461 +2416,144 @@ proto.gateway.web.v1.StreamQueryRequest.serializeBinaryToWriter = function(messa
2532
2416
  f
2533
2417
  );
2534
2418
  }
2535
- f = message.getProjectId();
2536
- if (f.length > 0) {
2537
- writer.writeString(
2538
- 2,
2539
- f
2540
- );
2541
- }
2542
- f = message.getQuery();
2543
- if (f != null) {
2544
- writer.writeMessage(
2545
- 3,
2546
- f,
2547
- proto.gateway.web.v1.MetricQuery.serializeBinaryToWriter
2548
- );
2549
- }
2550
- f = message.getTimeRange();
2551
- if (f != null) {
2552
- writer.writeMessage(
2553
- 4,
2554
- f,
2555
- proto.gateway.web.v1.TimeRange.serializeBinaryToWriter
2556
- );
2557
- }
2558
- f = message.getTimeInterval();
2559
- if (f !== 0.0) {
2560
- writer.writeEnum(
2561
- 5,
2562
- f
2563
- );
2564
- }
2565
- };
2566
-
2567
-
2568
- /**
2569
- * optional string organization_id = 1;
2570
- * @return {string}
2571
- */
2572
- proto.gateway.web.v1.StreamQueryRequest.prototype.getOrganizationId = function() {
2573
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2574
- };
2575
-
2576
-
2577
- /**
2578
- * @param {string} value
2579
- * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
2580
- */
2581
- proto.gateway.web.v1.StreamQueryRequest.prototype.setOrganizationId = function(value) {
2582
- return jspb.Message.setProto3StringField(this, 1, value);
2583
- };
2584
-
2585
-
2586
- /**
2587
- * optional string project_id = 2;
2588
- * @return {string}
2589
- */
2590
- proto.gateway.web.v1.StreamQueryRequest.prototype.getProjectId = function() {
2591
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2592
- };
2593
-
2594
-
2595
- /**
2596
- * @param {string} value
2597
- * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
2598
- */
2599
- proto.gateway.web.v1.StreamQueryRequest.prototype.setProjectId = function(value) {
2600
- return jspb.Message.setProto3StringField(this, 2, value);
2601
- };
2602
-
2603
-
2604
- /**
2605
- * optional MetricQuery query = 3;
2606
- * @return {?proto.gateway.web.v1.MetricQuery}
2607
- */
2608
- proto.gateway.web.v1.StreamQueryRequest.prototype.getQuery = function() {
2609
- return /** @type{?proto.gateway.web.v1.MetricQuery} */ (
2610
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.MetricQuery, 3));
2611
- };
2612
-
2613
-
2614
- /**
2615
- * @param {?proto.gateway.web.v1.MetricQuery|undefined} value
2616
- * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
2617
- */
2618
- proto.gateway.web.v1.StreamQueryRequest.prototype.setQuery = function(value) {
2619
- return jspb.Message.setWrapperField(this, 3, value);
2620
- };
2621
-
2622
-
2623
- /**
2624
- * Clears the message field making it undefined.
2625
- * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
2626
- */
2627
- proto.gateway.web.v1.StreamQueryRequest.prototype.clearQuery = function() {
2628
- return this.setQuery(undefined);
2629
- };
2630
-
2631
-
2632
- /**
2633
- * Returns whether this field is set.
2634
- * @return {boolean}
2635
- */
2636
- proto.gateway.web.v1.StreamQueryRequest.prototype.hasQuery = function() {
2637
- return jspb.Message.getField(this, 3) != null;
2638
- };
2639
-
2640
-
2641
- /**
2642
- * optional TimeRange time_range = 4;
2643
- * @return {?proto.gateway.web.v1.TimeRange}
2644
- */
2645
- proto.gateway.web.v1.StreamQueryRequest.prototype.getTimeRange = function() {
2646
- return /** @type{?proto.gateway.web.v1.TimeRange} */ (
2647
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.TimeRange, 4));
2648
- };
2649
-
2650
-
2651
- /**
2652
- * @param {?proto.gateway.web.v1.TimeRange|undefined} value
2653
- * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
2654
- */
2655
- proto.gateway.web.v1.StreamQueryRequest.prototype.setTimeRange = function(value) {
2656
- return jspb.Message.setWrapperField(this, 4, value);
2657
- };
2658
-
2659
-
2660
- /**
2661
- * Clears the message field making it undefined.
2662
- * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
2663
- */
2664
- proto.gateway.web.v1.StreamQueryRequest.prototype.clearTimeRange = function() {
2665
- return this.setTimeRange(undefined);
2666
- };
2667
-
2668
-
2669
- /**
2670
- * Returns whether this field is set.
2671
- * @return {boolean}
2672
- */
2673
- proto.gateway.web.v1.StreamQueryRequest.prototype.hasTimeRange = function() {
2674
- return jspb.Message.getField(this, 4) != null;
2675
- };
2676
-
2677
-
2678
- /**
2679
- * optional AnalyticsTimeInterval time_interval = 5;
2680
- * @return {!proto.gateway.web.v1.AnalyticsTimeInterval}
2681
- */
2682
- proto.gateway.web.v1.StreamQueryRequest.prototype.getTimeInterval = function() {
2683
- return /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2684
- };
2685
-
2686
-
2687
- /**
2688
- * @param {!proto.gateway.web.v1.AnalyticsTimeInterval} value
2689
- * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
2690
- */
2691
- proto.gateway.web.v1.StreamQueryRequest.prototype.setTimeInterval = function(value) {
2692
- return jspb.Message.setProto3EnumField(this, 5, value);
2693
- };
2694
-
2695
-
2696
-
2697
- /**
2698
- * List of repeated fields within this message type.
2699
- * @private {!Array<number>}
2700
- * @const
2701
- */
2702
- proto.gateway.web.v1.MetricQuery.repeatedFields_ = [5,6];
2703
-
2704
- /**
2705
- * Oneof group definitions for this message. Each group defines the field
2706
- * numbers belonging to that group. When of these fields' value is set, all
2707
- * other fields in the group are cleared. During deserialization, if multiple
2708
- * fields are encountered for a group, only the last value seen will be kept.
2709
- * @private {!Array<!Array<number>>}
2710
- * @const
2711
- */
2712
- proto.gateway.web.v1.MetricQuery.oneofGroups_ = [[2,3,4,8]];
2713
-
2714
- /**
2715
- * @enum {number}
2716
- */
2717
- proto.gateway.web.v1.MetricQuery.KindCase = {
2718
- KIND_NOT_SET: 0,
2719
- GAUGE: 2,
2720
- SUM: 3,
2721
- HISTOGRAM: 4,
2722
- EXPONENTIAL_HISTOGRAM: 8
2723
- };
2724
-
2725
- /**
2726
- * @return {proto.gateway.web.v1.MetricQuery.KindCase}
2727
- */
2728
- proto.gateway.web.v1.MetricQuery.prototype.getKindCase = function() {
2729
- return /** @type {proto.gateway.web.v1.MetricQuery.KindCase} */(jspb.Message.computeOneofCase(this, proto.gateway.web.v1.MetricQuery.oneofGroups_[0]));
2730
- };
2731
-
2732
-
2733
-
2734
- if (jspb.Message.GENERATE_TO_OBJECT) {
2735
- /**
2736
- * Creates an object representation of this proto.
2737
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2738
- * Optional fields that are not set will be set to undefined.
2739
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2740
- * For the list of reserved names please see:
2741
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2742
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2743
- * JSPB instance for transitional soy proto support:
2744
- * http://goto/soy-param-migration
2745
- * @return {!Object}
2746
- */
2747
- proto.gateway.web.v1.MetricQuery.prototype.toObject = function(opt_includeInstance) {
2748
- return proto.gateway.web.v1.MetricQuery.toObject(opt_includeInstance, this);
2749
- };
2750
-
2751
-
2752
- /**
2753
- * Static version of the {@see toObject} method.
2754
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2755
- * the JSPB instance for transitional soy proto support:
2756
- * http://goto/soy-param-migration
2757
- * @param {!proto.gateway.web.v1.MetricQuery} msg The msg instance to transform.
2758
- * @return {!Object}
2759
- * @suppress {unusedLocalVariables} f is only used for nested messages
2760
- */
2761
- proto.gateway.web.v1.MetricQuery.toObject = function(includeInstance, msg) {
2762
- var f, obj = {
2763
- metricName: jspb.Message.getFieldWithDefault(msg, 1, ""),
2764
- gauge: (f = msg.getGauge()) && proto.gateway.web.v1.GaugeQuerySpec.toObject(includeInstance, f),
2765
- sum: (f = msg.getSum()) && proto.gateway.web.v1.SumQuerySpec.toObject(includeInstance, f),
2766
- histogram: (f = msg.getHistogram()) && proto.gateway.web.v1.HistogramQuerySpec.toObject(includeInstance, f),
2767
- exponentialHistogram: (f = msg.getExponentialHistogram()) && proto.gateway.web.v1.ExponentialHistogramQuerySpec.toObject(includeInstance, f),
2768
- filtersList: jspb.Message.toObjectList(msg.getFiltersList(),
2769
- proto.gateway.web.v1.AttributeFilter.toObject, includeInstance),
2770
- groupByList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
2771
- groupLimit: jspb.Message.getFieldWithDefault(msg, 7, 0)
2772
- };
2773
-
2774
- if (includeInstance) {
2775
- obj.$jspbMessageInstance = msg;
2776
- }
2777
- return obj;
2778
- };
2779
- }
2780
-
2781
-
2782
- /**
2783
- * Deserializes binary data (in protobuf wire format).
2784
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2785
- * @return {!proto.gateway.web.v1.MetricQuery}
2786
- */
2787
- proto.gateway.web.v1.MetricQuery.deserializeBinary = function(bytes) {
2788
- var reader = new jspb.BinaryReader(bytes);
2789
- var msg = new proto.gateway.web.v1.MetricQuery;
2790
- return proto.gateway.web.v1.MetricQuery.deserializeBinaryFromReader(msg, reader);
2791
- };
2792
-
2793
-
2794
- /**
2795
- * Deserializes binary data (in protobuf wire format) from the
2796
- * given reader into the given message object.
2797
- * @param {!proto.gateway.web.v1.MetricQuery} msg The message object to deserialize into.
2798
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2799
- * @return {!proto.gateway.web.v1.MetricQuery}
2800
- */
2801
- proto.gateway.web.v1.MetricQuery.deserializeBinaryFromReader = function(msg, reader) {
2802
- while (reader.nextField()) {
2803
- if (reader.isEndGroup()) {
2804
- break;
2805
- }
2806
- var field = reader.getFieldNumber();
2807
- switch (field) {
2808
- case 1:
2809
- var value = /** @type {string} */ (reader.readString());
2810
- msg.setMetricName(value);
2811
- break;
2812
- case 2:
2813
- var value = new proto.gateway.web.v1.GaugeQuerySpec;
2814
- reader.readMessage(value,proto.gateway.web.v1.GaugeQuerySpec.deserializeBinaryFromReader);
2815
- msg.setGauge(value);
2816
- break;
2817
- case 3:
2818
- var value = new proto.gateway.web.v1.SumQuerySpec;
2819
- reader.readMessage(value,proto.gateway.web.v1.SumQuerySpec.deserializeBinaryFromReader);
2820
- msg.setSum(value);
2821
- break;
2822
- case 4:
2823
- var value = new proto.gateway.web.v1.HistogramQuerySpec;
2824
- reader.readMessage(value,proto.gateway.web.v1.HistogramQuerySpec.deserializeBinaryFromReader);
2825
- msg.setHistogram(value);
2826
- break;
2827
- case 8:
2828
- var value = new proto.gateway.web.v1.ExponentialHistogramQuerySpec;
2829
- reader.readMessage(value,proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinaryFromReader);
2830
- msg.setExponentialHistogram(value);
2831
- break;
2832
- case 5:
2833
- var value = new proto.gateway.web.v1.AttributeFilter;
2834
- reader.readMessage(value,proto.gateway.web.v1.AttributeFilter.deserializeBinaryFromReader);
2835
- msg.addFilters(value);
2836
- break;
2837
- case 6:
2838
- var value = /** @type {string} */ (reader.readString());
2839
- msg.addGroupBy(value);
2840
- break;
2841
- case 7:
2842
- var value = /** @type {number} */ (reader.readInt32());
2843
- msg.setGroupLimit(value);
2844
- break;
2845
- default:
2846
- reader.skipField();
2847
- break;
2848
- }
2849
- }
2850
- return msg;
2851
- };
2852
-
2853
-
2854
- /**
2855
- * Serializes the message to binary data (in protobuf wire format).
2856
- * @return {!Uint8Array}
2857
- */
2858
- proto.gateway.web.v1.MetricQuery.prototype.serializeBinary = function() {
2859
- var writer = new jspb.BinaryWriter();
2860
- proto.gateway.web.v1.MetricQuery.serializeBinaryToWriter(this, writer);
2861
- return writer.getResultBuffer();
2862
- };
2863
-
2864
-
2865
- /**
2866
- * Serializes the given message to binary data (in protobuf wire
2867
- * format), writing to the given BinaryWriter.
2868
- * @param {!proto.gateway.web.v1.MetricQuery} message
2869
- * @param {!jspb.BinaryWriter} writer
2870
- * @suppress {unusedLocalVariables} f is only used for nested messages
2871
- */
2872
- proto.gateway.web.v1.MetricQuery.serializeBinaryToWriter = function(message, writer) {
2873
- var f = undefined;
2874
- f = message.getMetricName();
2875
- if (f.length > 0) {
2876
- writer.writeString(
2877
- 1,
2878
- f
2879
- );
2880
- }
2881
- f = message.getGauge();
2882
- if (f != null) {
2883
- writer.writeMessage(
2884
- 2,
2885
- f,
2886
- proto.gateway.web.v1.GaugeQuerySpec.serializeBinaryToWriter
2887
- );
2888
- }
2889
- f = message.getSum();
2890
- if (f != null) {
2891
- writer.writeMessage(
2892
- 3,
2893
- f,
2894
- proto.gateway.web.v1.SumQuerySpec.serializeBinaryToWriter
2895
- );
2896
- }
2897
- f = message.getHistogram();
2898
- if (f != null) {
2899
- writer.writeMessage(
2900
- 4,
2901
- f,
2902
- proto.gateway.web.v1.HistogramQuerySpec.serializeBinaryToWriter
2903
- );
2904
- }
2905
- f = message.getExponentialHistogram();
2906
- if (f != null) {
2907
- writer.writeMessage(
2908
- 8,
2909
- f,
2910
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.serializeBinaryToWriter
2911
- );
2912
- }
2913
- f = message.getFiltersList();
2914
- if (f.length > 0) {
2915
- writer.writeRepeatedMessage(
2916
- 5,
2917
- f,
2918
- proto.gateway.web.v1.AttributeFilter.serializeBinaryToWriter
2919
- );
2920
- }
2921
- f = message.getGroupByList();
2922
- if (f.length > 0) {
2923
- writer.writeRepeatedString(
2924
- 6,
2925
- f
2926
- );
2927
- }
2928
- f = message.getGroupLimit();
2929
- if (f !== 0) {
2930
- writer.writeInt32(
2931
- 7,
2932
- f
2933
- );
2934
- }
2935
- };
2936
-
2937
-
2938
- /**
2939
- * optional string metric_name = 1;
2940
- * @return {string}
2941
- */
2942
- proto.gateway.web.v1.MetricQuery.prototype.getMetricName = function() {
2943
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2944
- };
2945
-
2946
-
2947
- /**
2948
- * @param {string} value
2949
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
2950
- */
2951
- proto.gateway.web.v1.MetricQuery.prototype.setMetricName = function(value) {
2952
- return jspb.Message.setProto3StringField(this, 1, value);
2953
- };
2954
-
2955
-
2956
- /**
2957
- * optional GaugeQuerySpec gauge = 2;
2958
- * @return {?proto.gateway.web.v1.GaugeQuerySpec}
2959
- */
2960
- proto.gateway.web.v1.MetricQuery.prototype.getGauge = function() {
2961
- return /** @type{?proto.gateway.web.v1.GaugeQuerySpec} */ (
2962
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.GaugeQuerySpec, 2));
2963
- };
2964
-
2965
-
2966
- /**
2967
- * @param {?proto.gateway.web.v1.GaugeQuerySpec|undefined} value
2968
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
2969
- */
2970
- proto.gateway.web.v1.MetricQuery.prototype.setGauge = function(value) {
2971
- return jspb.Message.setOneofWrapperField(this, 2, proto.gateway.web.v1.MetricQuery.oneofGroups_[0], value);
2972
- };
2973
-
2974
-
2975
- /**
2976
- * Clears the message field making it undefined.
2977
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
2978
- */
2979
- proto.gateway.web.v1.MetricQuery.prototype.clearGauge = function() {
2980
- return this.setGauge(undefined);
2981
- };
2982
-
2983
-
2984
- /**
2985
- * Returns whether this field is set.
2986
- * @return {boolean}
2987
- */
2988
- proto.gateway.web.v1.MetricQuery.prototype.hasGauge = function() {
2989
- return jspb.Message.getField(this, 2) != null;
2990
- };
2991
-
2992
-
2993
- /**
2994
- * optional SumQuerySpec sum = 3;
2995
- * @return {?proto.gateway.web.v1.SumQuerySpec}
2996
- */
2997
- proto.gateway.web.v1.MetricQuery.prototype.getSum = function() {
2998
- return /** @type{?proto.gateway.web.v1.SumQuerySpec} */ (
2999
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.SumQuerySpec, 3));
3000
- };
3001
-
3002
-
3003
- /**
3004
- * @param {?proto.gateway.web.v1.SumQuerySpec|undefined} value
3005
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3006
- */
3007
- proto.gateway.web.v1.MetricQuery.prototype.setSum = function(value) {
3008
- return jspb.Message.setOneofWrapperField(this, 3, proto.gateway.web.v1.MetricQuery.oneofGroups_[0], value);
3009
- };
3010
-
3011
-
3012
- /**
3013
- * Clears the message field making it undefined.
3014
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3015
- */
3016
- proto.gateway.web.v1.MetricQuery.prototype.clearSum = function() {
3017
- return this.setSum(undefined);
3018
- };
3019
-
3020
-
3021
- /**
3022
- * Returns whether this field is set.
3023
- * @return {boolean}
3024
- */
3025
- proto.gateway.web.v1.MetricQuery.prototype.hasSum = function() {
3026
- return jspb.Message.getField(this, 3) != null;
3027
- };
3028
-
3029
-
3030
- /**
3031
- * optional HistogramQuerySpec histogram = 4;
3032
- * @return {?proto.gateway.web.v1.HistogramQuerySpec}
3033
- */
3034
- proto.gateway.web.v1.MetricQuery.prototype.getHistogram = function() {
3035
- return /** @type{?proto.gateway.web.v1.HistogramQuerySpec} */ (
3036
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.HistogramQuerySpec, 4));
3037
- };
3038
-
3039
-
3040
- /**
3041
- * @param {?proto.gateway.web.v1.HistogramQuerySpec|undefined} value
3042
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3043
- */
3044
- proto.gateway.web.v1.MetricQuery.prototype.setHistogram = function(value) {
3045
- return jspb.Message.setOneofWrapperField(this, 4, proto.gateway.web.v1.MetricQuery.oneofGroups_[0], value);
3046
- };
3047
-
3048
-
3049
- /**
3050
- * Clears the message field making it undefined.
3051
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3052
- */
3053
- proto.gateway.web.v1.MetricQuery.prototype.clearHistogram = function() {
3054
- return this.setHistogram(undefined);
3055
- };
3056
-
3057
-
3058
- /**
3059
- * Returns whether this field is set.
3060
- * @return {boolean}
3061
- */
3062
- proto.gateway.web.v1.MetricQuery.prototype.hasHistogram = function() {
3063
- return jspb.Message.getField(this, 4) != null;
3064
- };
3065
-
3066
-
3067
- /**
3068
- * optional ExponentialHistogramQuerySpec exponential_histogram = 8;
3069
- * @return {?proto.gateway.web.v1.ExponentialHistogramQuerySpec}
3070
- */
3071
- proto.gateway.web.v1.MetricQuery.prototype.getExponentialHistogram = function() {
3072
- return /** @type{?proto.gateway.web.v1.ExponentialHistogramQuerySpec} */ (
3073
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.ExponentialHistogramQuerySpec, 8));
3074
- };
3075
-
3076
-
3077
- /**
3078
- * @param {?proto.gateway.web.v1.ExponentialHistogramQuerySpec|undefined} value
3079
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3080
- */
3081
- proto.gateway.web.v1.MetricQuery.prototype.setExponentialHistogram = function(value) {
3082
- return jspb.Message.setOneofWrapperField(this, 8, proto.gateway.web.v1.MetricQuery.oneofGroups_[0], value);
3083
- };
3084
-
3085
-
3086
- /**
3087
- * Clears the message field making it undefined.
3088
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3089
- */
3090
- proto.gateway.web.v1.MetricQuery.prototype.clearExponentialHistogram = function() {
3091
- return this.setExponentialHistogram(undefined);
3092
- };
3093
-
3094
-
3095
- /**
3096
- * Returns whether this field is set.
3097
- * @return {boolean}
3098
- */
3099
- proto.gateway.web.v1.MetricQuery.prototype.hasExponentialHistogram = function() {
3100
- return jspb.Message.getField(this, 8) != null;
3101
- };
3102
-
3103
-
3104
- /**
3105
- * repeated AttributeFilter filters = 5;
3106
- * @return {!Array<!proto.gateway.web.v1.AttributeFilter>}
3107
- */
3108
- proto.gateway.web.v1.MetricQuery.prototype.getFiltersList = function() {
3109
- return /** @type{!Array<!proto.gateway.web.v1.AttributeFilter>} */ (
3110
- jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AttributeFilter, 5));
3111
- };
3112
-
3113
-
3114
- /**
3115
- * @param {!Array<!proto.gateway.web.v1.AttributeFilter>} value
3116
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3117
- */
3118
- proto.gateway.web.v1.MetricQuery.prototype.setFiltersList = function(value) {
3119
- return jspb.Message.setRepeatedWrapperField(this, 5, value);
3120
- };
3121
-
3122
-
3123
- /**
3124
- * @param {!proto.gateway.web.v1.AttributeFilter=} opt_value
3125
- * @param {number=} opt_index
3126
- * @return {!proto.gateway.web.v1.AttributeFilter}
3127
- */
3128
- proto.gateway.web.v1.MetricQuery.prototype.addFilters = function(opt_value, opt_index) {
3129
- return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.gateway.web.v1.AttributeFilter, opt_index);
3130
- };
3131
-
3132
-
3133
- /**
3134
- * Clears the list making it empty but non-null.
3135
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3136
- */
3137
- proto.gateway.web.v1.MetricQuery.prototype.clearFiltersList = function() {
3138
- return this.setFiltersList([]);
3139
- };
3140
-
3141
-
3142
- /**
3143
- * repeated string group_by = 6;
3144
- * @return {!Array<string>}
3145
- */
3146
- proto.gateway.web.v1.MetricQuery.prototype.getGroupByList = function() {
3147
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
3148
- };
3149
-
3150
-
3151
- /**
3152
- * @param {!Array<string>} value
3153
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3154
- */
3155
- proto.gateway.web.v1.MetricQuery.prototype.setGroupByList = function(value) {
3156
- return jspb.Message.setField(this, 6, value || []);
3157
- };
3158
-
3159
-
3160
- /**
3161
- * @param {string} value
3162
- * @param {number=} opt_index
3163
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3164
- */
3165
- proto.gateway.web.v1.MetricQuery.prototype.addGroupBy = function(value, opt_index) {
3166
- return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
3167
- };
3168
-
3169
-
3170
- /**
3171
- * Clears the list making it empty but non-null.
3172
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3173
- */
3174
- proto.gateway.web.v1.MetricQuery.prototype.clearGroupByList = function() {
3175
- return this.setGroupByList([]);
3176
- };
3177
-
3178
-
3179
- /**
3180
- * optional int32 group_limit = 7;
3181
- * @return {number}
3182
- */
3183
- proto.gateway.web.v1.MetricQuery.prototype.getGroupLimit = function() {
3184
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
3185
- };
3186
-
3187
-
3188
- /**
3189
- * @param {number} value
3190
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
3191
- */
3192
- proto.gateway.web.v1.MetricQuery.prototype.setGroupLimit = function(value) {
3193
- return jspb.Message.setProto3IntField(this, 7, value);
3194
- };
3195
-
3196
-
3197
-
3198
-
3199
-
3200
- if (jspb.Message.GENERATE_TO_OBJECT) {
3201
- /**
3202
- * Creates an object representation of this proto.
3203
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3204
- * Optional fields that are not set will be set to undefined.
3205
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3206
- * For the list of reserved names please see:
3207
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3208
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3209
- * JSPB instance for transitional soy proto support:
3210
- * http://goto/soy-param-migration
3211
- * @return {!Object}
3212
- */
3213
- proto.gateway.web.v1.GaugeQuerySpec.prototype.toObject = function(opt_includeInstance) {
3214
- return proto.gateway.web.v1.GaugeQuerySpec.toObject(opt_includeInstance, this);
3215
- };
3216
-
3217
-
3218
- /**
3219
- * Static version of the {@see toObject} method.
3220
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3221
- * the JSPB instance for transitional soy proto support:
3222
- * http://goto/soy-param-migration
3223
- * @param {!proto.gateway.web.v1.GaugeQuerySpec} msg The msg instance to transform.
3224
- * @return {!Object}
3225
- * @suppress {unusedLocalVariables} f is only used for nested messages
3226
- */
3227
- proto.gateway.web.v1.GaugeQuerySpec.toObject = function(includeInstance, msg) {
3228
- var f, obj = {
3229
- aggregation: jspb.Message.getFieldWithDefault(msg, 1, 0)
3230
- };
3231
-
3232
- if (includeInstance) {
3233
- obj.$jspbMessageInstance = msg;
3234
- }
3235
- return obj;
3236
- };
3237
- }
3238
-
3239
-
3240
- /**
3241
- * Deserializes binary data (in protobuf wire format).
3242
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3243
- * @return {!proto.gateway.web.v1.GaugeQuerySpec}
3244
- */
3245
- proto.gateway.web.v1.GaugeQuerySpec.deserializeBinary = function(bytes) {
3246
- var reader = new jspb.BinaryReader(bytes);
3247
- var msg = new proto.gateway.web.v1.GaugeQuerySpec;
3248
- return proto.gateway.web.v1.GaugeQuerySpec.deserializeBinaryFromReader(msg, reader);
3249
- };
3250
-
3251
-
3252
- /**
3253
- * Deserializes binary data (in protobuf wire format) from the
3254
- * given reader into the given message object.
3255
- * @param {!proto.gateway.web.v1.GaugeQuerySpec} msg The message object to deserialize into.
3256
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3257
- * @return {!proto.gateway.web.v1.GaugeQuerySpec}
3258
- */
3259
- proto.gateway.web.v1.GaugeQuerySpec.deserializeBinaryFromReader = function(msg, reader) {
3260
- while (reader.nextField()) {
3261
- if (reader.isEndGroup()) {
3262
- break;
3263
- }
3264
- var field = reader.getFieldNumber();
3265
- switch (field) {
3266
- case 1:
3267
- var value = /** @type {!proto.gateway.web.v1.GaugeAggregation} */ (reader.readEnum());
3268
- msg.setAggregation(value);
3269
- break;
3270
- default:
3271
- reader.skipField();
3272
- break;
3273
- }
3274
- }
3275
- return msg;
3276
- };
3277
-
3278
-
3279
- /**
3280
- * Serializes the message to binary data (in protobuf wire format).
3281
- * @return {!Uint8Array}
3282
- */
3283
- proto.gateway.web.v1.GaugeQuerySpec.prototype.serializeBinary = function() {
3284
- var writer = new jspb.BinaryWriter();
3285
- proto.gateway.web.v1.GaugeQuerySpec.serializeBinaryToWriter(this, writer);
3286
- return writer.getResultBuffer();
3287
- };
3288
-
3289
-
3290
- /**
3291
- * Serializes the given message to binary data (in protobuf wire
3292
- * format), writing to the given BinaryWriter.
3293
- * @param {!proto.gateway.web.v1.GaugeQuerySpec} message
3294
- * @param {!jspb.BinaryWriter} writer
3295
- * @suppress {unusedLocalVariables} f is only used for nested messages
3296
- */
3297
- proto.gateway.web.v1.GaugeQuerySpec.serializeBinaryToWriter = function(message, writer) {
3298
- var f = undefined;
3299
- f = message.getAggregation();
3300
- if (f !== 0.0) {
3301
- writer.writeEnum(
3302
- 1,
3303
- f
3304
- );
3305
- }
3306
- };
3307
-
3308
-
3309
- /**
3310
- * optional GaugeAggregation aggregation = 1;
3311
- * @return {!proto.gateway.web.v1.GaugeAggregation}
3312
- */
3313
- proto.gateway.web.v1.GaugeQuerySpec.prototype.getAggregation = function() {
3314
- return /** @type {!proto.gateway.web.v1.GaugeAggregation} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3315
- };
3316
-
3317
-
3318
- /**
3319
- * @param {!proto.gateway.web.v1.GaugeAggregation} value
3320
- * @return {!proto.gateway.web.v1.GaugeQuerySpec} returns this
3321
- */
3322
- proto.gateway.web.v1.GaugeQuerySpec.prototype.setAggregation = function(value) {
3323
- return jspb.Message.setProto3EnumField(this, 1, value);
3324
- };
3325
-
3326
-
3327
-
3328
-
3329
-
3330
- if (jspb.Message.GENERATE_TO_OBJECT) {
3331
- /**
3332
- * Creates an object representation of this proto.
3333
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3334
- * Optional fields that are not set will be set to undefined.
3335
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3336
- * For the list of reserved names please see:
3337
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3338
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3339
- * JSPB instance for transitional soy proto support:
3340
- * http://goto/soy-param-migration
3341
- * @return {!Object}
3342
- */
3343
- proto.gateway.web.v1.SumQuerySpec.prototype.toObject = function(opt_includeInstance) {
3344
- return proto.gateway.web.v1.SumQuerySpec.toObject(opt_includeInstance, this);
3345
- };
3346
-
3347
-
3348
- /**
3349
- * Static version of the {@see toObject} method.
3350
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3351
- * the JSPB instance for transitional soy proto support:
3352
- * http://goto/soy-param-migration
3353
- * @param {!proto.gateway.web.v1.SumQuerySpec} msg The msg instance to transform.
3354
- * @return {!Object}
3355
- * @suppress {unusedLocalVariables} f is only used for nested messages
3356
- */
3357
- proto.gateway.web.v1.SumQuerySpec.toObject = function(includeInstance, msg) {
3358
- var f, obj = {
3359
- aggregation: jspb.Message.getFieldWithDefault(msg, 1, 0)
3360
- };
3361
-
3362
- if (includeInstance) {
3363
- obj.$jspbMessageInstance = msg;
3364
- }
3365
- return obj;
3366
- };
3367
- }
3368
-
3369
-
3370
- /**
3371
- * Deserializes binary data (in protobuf wire format).
3372
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3373
- * @return {!proto.gateway.web.v1.SumQuerySpec}
3374
- */
3375
- proto.gateway.web.v1.SumQuerySpec.deserializeBinary = function(bytes) {
3376
- var reader = new jspb.BinaryReader(bytes);
3377
- var msg = new proto.gateway.web.v1.SumQuerySpec;
3378
- return proto.gateway.web.v1.SumQuerySpec.deserializeBinaryFromReader(msg, reader);
3379
- };
3380
-
3381
-
3382
- /**
3383
- * Deserializes binary data (in protobuf wire format) from the
3384
- * given reader into the given message object.
3385
- * @param {!proto.gateway.web.v1.SumQuerySpec} msg The message object to deserialize into.
3386
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3387
- * @return {!proto.gateway.web.v1.SumQuerySpec}
3388
- */
3389
- proto.gateway.web.v1.SumQuerySpec.deserializeBinaryFromReader = function(msg, reader) {
3390
- while (reader.nextField()) {
3391
- if (reader.isEndGroup()) {
3392
- break;
3393
- }
3394
- var field = reader.getFieldNumber();
3395
- switch (field) {
3396
- case 1:
3397
- var value = /** @type {!proto.gateway.web.v1.SumAggregation} */ (reader.readEnum());
3398
- msg.setAggregation(value);
3399
- break;
3400
- default:
3401
- reader.skipField();
3402
- break;
3403
- }
3404
- }
3405
- return msg;
3406
- };
3407
-
3408
-
3409
- /**
3410
- * Serializes the message to binary data (in protobuf wire format).
3411
- * @return {!Uint8Array}
3412
- */
3413
- proto.gateway.web.v1.SumQuerySpec.prototype.serializeBinary = function() {
3414
- var writer = new jspb.BinaryWriter();
3415
- proto.gateway.web.v1.SumQuerySpec.serializeBinaryToWriter(this, writer);
3416
- return writer.getResultBuffer();
3417
- };
3418
-
3419
-
3420
- /**
3421
- * Serializes the given message to binary data (in protobuf wire
3422
- * format), writing to the given BinaryWriter.
3423
- * @param {!proto.gateway.web.v1.SumQuerySpec} message
3424
- * @param {!jspb.BinaryWriter} writer
3425
- * @suppress {unusedLocalVariables} f is only used for nested messages
3426
- */
3427
- proto.gateway.web.v1.SumQuerySpec.serializeBinaryToWriter = function(message, writer) {
3428
- var f = undefined;
3429
- f = message.getAggregation();
3430
- if (f !== 0.0) {
3431
- writer.writeEnum(
3432
- 1,
3433
- f
3434
- );
3435
- }
3436
- };
3437
-
3438
-
3439
- /**
3440
- * optional SumAggregation aggregation = 1;
3441
- * @return {!proto.gateway.web.v1.SumAggregation}
3442
- */
3443
- proto.gateway.web.v1.SumQuerySpec.prototype.getAggregation = function() {
3444
- return /** @type {!proto.gateway.web.v1.SumAggregation} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3445
- };
3446
-
3447
-
3448
- /**
3449
- * @param {!proto.gateway.web.v1.SumAggregation} value
3450
- * @return {!proto.gateway.web.v1.SumQuerySpec} returns this
3451
- */
3452
- proto.gateway.web.v1.SumQuerySpec.prototype.setAggregation = function(value) {
3453
- return jspb.Message.setProto3EnumField(this, 1, value);
3454
- };
3455
-
3456
-
3457
-
3458
-
3459
-
3460
- if (jspb.Message.GENERATE_TO_OBJECT) {
3461
- /**
3462
- * Creates an object representation of this proto.
3463
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3464
- * Optional fields that are not set will be set to undefined.
3465
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3466
- * For the list of reserved names please see:
3467
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3468
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3469
- * JSPB instance for transitional soy proto support:
3470
- * http://goto/soy-param-migration
3471
- * @return {!Object}
3472
- */
3473
- proto.gateway.web.v1.HistogramQuerySpec.prototype.toObject = function(opt_includeInstance) {
3474
- return proto.gateway.web.v1.HistogramQuerySpec.toObject(opt_includeInstance, this);
3475
- };
3476
-
3477
-
3478
- /**
3479
- * Static version of the {@see toObject} method.
3480
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3481
- * the JSPB instance for transitional soy proto support:
3482
- * http://goto/soy-param-migration
3483
- * @param {!proto.gateway.web.v1.HistogramQuerySpec} msg The msg instance to transform.
3484
- * @return {!Object}
3485
- * @suppress {unusedLocalVariables} f is only used for nested messages
3486
- */
3487
- proto.gateway.web.v1.HistogramQuerySpec.toObject = function(includeInstance, msg) {
3488
- var f, obj = {
3489
- aggregation: jspb.Message.getFieldWithDefault(msg, 1, 0),
3490
- quantile: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
3491
- };
3492
-
3493
- if (includeInstance) {
3494
- obj.$jspbMessageInstance = msg;
3495
- }
3496
- return obj;
3497
- };
3498
- }
3499
-
3500
-
3501
- /**
3502
- * Deserializes binary data (in protobuf wire format).
3503
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3504
- * @return {!proto.gateway.web.v1.HistogramQuerySpec}
3505
- */
3506
- proto.gateway.web.v1.HistogramQuerySpec.deserializeBinary = function(bytes) {
3507
- var reader = new jspb.BinaryReader(bytes);
3508
- var msg = new proto.gateway.web.v1.HistogramQuerySpec;
3509
- return proto.gateway.web.v1.HistogramQuerySpec.deserializeBinaryFromReader(msg, reader);
3510
- };
3511
-
3512
-
3513
- /**
3514
- * Deserializes binary data (in protobuf wire format) from the
3515
- * given reader into the given message object.
3516
- * @param {!proto.gateway.web.v1.HistogramQuerySpec} msg The message object to deserialize into.
3517
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3518
- * @return {!proto.gateway.web.v1.HistogramQuerySpec}
3519
- */
3520
- proto.gateway.web.v1.HistogramQuerySpec.deserializeBinaryFromReader = function(msg, reader) {
3521
- while (reader.nextField()) {
3522
- if (reader.isEndGroup()) {
3523
- break;
3524
- }
3525
- var field = reader.getFieldNumber();
3526
- switch (field) {
3527
- case 1:
3528
- var value = /** @type {!proto.gateway.web.v1.HistogramAggregation} */ (reader.readEnum());
3529
- msg.setAggregation(value);
3530
- break;
3531
- case 2:
3532
- var value = /** @type {number} */ (reader.readDouble());
3533
- msg.setQuantile(value);
3534
- break;
3535
- default:
3536
- reader.skipField();
3537
- break;
3538
- }
3539
- }
3540
- return msg;
3541
- };
3542
-
3543
-
3544
- /**
3545
- * Serializes the message to binary data (in protobuf wire format).
3546
- * @return {!Uint8Array}
3547
- */
3548
- proto.gateway.web.v1.HistogramQuerySpec.prototype.serializeBinary = function() {
3549
- var writer = new jspb.BinaryWriter();
3550
- proto.gateway.web.v1.HistogramQuerySpec.serializeBinaryToWriter(this, writer);
3551
- return writer.getResultBuffer();
3552
- };
3553
-
3554
-
3555
- /**
3556
- * Serializes the given message to binary data (in protobuf wire
3557
- * format), writing to the given BinaryWriter.
3558
- * @param {!proto.gateway.web.v1.HistogramQuerySpec} message
3559
- * @param {!jspb.BinaryWriter} writer
3560
- * @suppress {unusedLocalVariables} f is only used for nested messages
3561
- */
3562
- proto.gateway.web.v1.HistogramQuerySpec.serializeBinaryToWriter = function(message, writer) {
3563
- var f = undefined;
3564
- f = message.getAggregation();
3565
- if (f !== 0.0) {
3566
- writer.writeEnum(
3567
- 1,
3568
- f
3569
- );
3570
- }
3571
- f = message.getQuantile();
3572
- if (f !== 0.0) {
3573
- writer.writeDouble(
3574
- 2,
3575
- f
3576
- );
3577
- }
3578
- };
3579
-
3580
-
3581
- /**
3582
- * optional HistogramAggregation aggregation = 1;
3583
- * @return {!proto.gateway.web.v1.HistogramAggregation}
3584
- */
3585
- proto.gateway.web.v1.HistogramQuerySpec.prototype.getAggregation = function() {
3586
- return /** @type {!proto.gateway.web.v1.HistogramAggregation} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3587
- };
3588
-
3589
-
3590
- /**
3591
- * @param {!proto.gateway.web.v1.HistogramAggregation} value
3592
- * @return {!proto.gateway.web.v1.HistogramQuerySpec} returns this
3593
- */
3594
- proto.gateway.web.v1.HistogramQuerySpec.prototype.setAggregation = function(value) {
3595
- return jspb.Message.setProto3EnumField(this, 1, value);
3596
- };
3597
-
3598
-
3599
- /**
3600
- * optional double quantile = 2;
3601
- * @return {number}
3602
- */
3603
- proto.gateway.web.v1.HistogramQuerySpec.prototype.getQuantile = function() {
3604
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
3605
- };
3606
-
3607
-
3608
- /**
3609
- * @param {number} value
3610
- * @return {!proto.gateway.web.v1.HistogramQuerySpec} returns this
3611
- */
3612
- proto.gateway.web.v1.HistogramQuerySpec.prototype.setQuantile = function(value) {
3613
- return jspb.Message.setProto3FloatField(this, 2, value);
3614
- };
3615
-
3616
-
3617
-
3618
-
3619
-
3620
- if (jspb.Message.GENERATE_TO_OBJECT) {
3621
- /**
3622
- * Creates an object representation of this proto.
3623
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3624
- * Optional fields that are not set will be set to undefined.
3625
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3626
- * For the list of reserved names please see:
3627
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3628
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3629
- * JSPB instance for transitional soy proto support:
3630
- * http://goto/soy-param-migration
3631
- * @return {!Object}
3632
- */
3633
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.toObject = function(opt_includeInstance) {
3634
- return proto.gateway.web.v1.ExponentialHistogramQuerySpec.toObject(opt_includeInstance, this);
3635
- };
3636
-
3637
-
3638
- /**
3639
- * Static version of the {@see toObject} method.
3640
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3641
- * the JSPB instance for transitional soy proto support:
3642
- * http://goto/soy-param-migration
3643
- * @param {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} msg The msg instance to transform.
3644
- * @return {!Object}
3645
- * @suppress {unusedLocalVariables} f is only used for nested messages
3646
- */
3647
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.toObject = function(includeInstance, msg) {
3648
- var f, obj = {
3649
- aggregation: jspb.Message.getFieldWithDefault(msg, 1, 0),
3650
- quantile: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
3651
- };
3652
-
3653
- if (includeInstance) {
3654
- obj.$jspbMessageInstance = msg;
3655
- }
3656
- return obj;
3657
- };
3658
- }
3659
-
3660
-
3661
- /**
3662
- * Deserializes binary data (in protobuf wire format).
3663
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3664
- * @return {!proto.gateway.web.v1.ExponentialHistogramQuerySpec}
3665
- */
3666
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinary = function(bytes) {
3667
- var reader = new jspb.BinaryReader(bytes);
3668
- var msg = new proto.gateway.web.v1.ExponentialHistogramQuerySpec;
3669
- return proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinaryFromReader(msg, reader);
3670
- };
3671
-
3672
-
3673
- /**
3674
- * Deserializes binary data (in protobuf wire format) from the
3675
- * given reader into the given message object.
3676
- * @param {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} msg The message object to deserialize into.
3677
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3678
- * @return {!proto.gateway.web.v1.ExponentialHistogramQuerySpec}
3679
- */
3680
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinaryFromReader = function(msg, reader) {
3681
- while (reader.nextField()) {
3682
- if (reader.isEndGroup()) {
3683
- break;
3684
- }
3685
- var field = reader.getFieldNumber();
3686
- switch (field) {
3687
- case 1:
3688
- var value = /** @type {!proto.gateway.web.v1.ExponentialHistogramAggregation} */ (reader.readEnum());
3689
- msg.setAggregation(value);
3690
- break;
3691
- case 2:
3692
- var value = /** @type {number} */ (reader.readDouble());
3693
- msg.setQuantile(value);
3694
- break;
3695
- default:
3696
- reader.skipField();
3697
- break;
3698
- }
3699
- }
3700
- return msg;
3701
- };
3702
-
3703
-
3704
- /**
3705
- * Serializes the message to binary data (in protobuf wire format).
3706
- * @return {!Uint8Array}
3707
- */
3708
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.serializeBinary = function() {
3709
- var writer = new jspb.BinaryWriter();
3710
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.serializeBinaryToWriter(this, writer);
3711
- return writer.getResultBuffer();
3712
- };
3713
-
3714
-
3715
- /**
3716
- * Serializes the given message to binary data (in protobuf wire
3717
- * format), writing to the given BinaryWriter.
3718
- * @param {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} message
3719
- * @param {!jspb.BinaryWriter} writer
3720
- * @suppress {unusedLocalVariables} f is only used for nested messages
3721
- */
3722
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.serializeBinaryToWriter = function(message, writer) {
3723
- var f = undefined;
3724
- f = message.getAggregation();
3725
- if (f !== 0.0) {
3726
- writer.writeEnum(
3727
- 1,
3728
- f
3729
- );
3730
- }
3731
- f = message.getQuantile();
3732
- if (f !== 0.0) {
3733
- writer.writeDouble(
3734
- 2,
3735
- f
3736
- );
3737
- }
3738
- };
3739
-
3740
-
3741
- /**
3742
- * optional ExponentialHistogramAggregation aggregation = 1;
3743
- * @return {!proto.gateway.web.v1.ExponentialHistogramAggregation}
3744
- */
3745
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.getAggregation = function() {
3746
- return /** @type {!proto.gateway.web.v1.ExponentialHistogramAggregation} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3747
- };
3748
-
3749
-
3750
- /**
3751
- * @param {!proto.gateway.web.v1.ExponentialHistogramAggregation} value
3752
- * @return {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} returns this
3753
- */
3754
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.setAggregation = function(value) {
3755
- return jspb.Message.setProto3EnumField(this, 1, value);
3756
- };
3757
-
3758
-
3759
- /**
3760
- * optional double quantile = 2;
3761
- * @return {number}
3762
- */
3763
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.getQuantile = function() {
3764
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
3765
- };
3766
-
3767
-
3768
- /**
3769
- * @param {number} value
3770
- * @return {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} returns this
3771
- */
3772
- proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.setQuantile = function(value) {
3773
- return jspb.Message.setProto3FloatField(this, 2, value);
3774
- };
3775
-
3776
-
3777
-
3778
- /**
3779
- * List of repeated fields within this message type.
3780
- * @private {!Array<number>}
3781
- * @const
3782
- */
3783
- proto.gateway.web.v1.AttributeFilter.repeatedFields_ = [3];
3784
-
3785
-
3786
-
3787
- if (jspb.Message.GENERATE_TO_OBJECT) {
3788
- /**
3789
- * Creates an object representation of this proto.
3790
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3791
- * Optional fields that are not set will be set to undefined.
3792
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3793
- * For the list of reserved names please see:
3794
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3795
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3796
- * JSPB instance for transitional soy proto support:
3797
- * http://goto/soy-param-migration
3798
- * @return {!Object}
3799
- */
3800
- proto.gateway.web.v1.AttributeFilter.prototype.toObject = function(opt_includeInstance) {
3801
- return proto.gateway.web.v1.AttributeFilter.toObject(opt_includeInstance, this);
3802
- };
3803
-
3804
-
3805
- /**
3806
- * Static version of the {@see toObject} method.
3807
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3808
- * the JSPB instance for transitional soy proto support:
3809
- * http://goto/soy-param-migration
3810
- * @param {!proto.gateway.web.v1.AttributeFilter} msg The msg instance to transform.
3811
- * @return {!Object}
3812
- * @suppress {unusedLocalVariables} f is only used for nested messages
3813
- */
3814
- proto.gateway.web.v1.AttributeFilter.toObject = function(includeInstance, msg) {
3815
- var f, obj = {
3816
- key: jspb.Message.getFieldWithDefault(msg, 1, ""),
3817
- op: jspb.Message.getFieldWithDefault(msg, 2, 0),
3818
- valuesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
3819
- };
3820
-
3821
- if (includeInstance) {
3822
- obj.$jspbMessageInstance = msg;
3823
- }
3824
- return obj;
3825
- };
3826
- }
3827
-
3828
-
3829
- /**
3830
- * Deserializes binary data (in protobuf wire format).
3831
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3832
- * @return {!proto.gateway.web.v1.AttributeFilter}
3833
- */
3834
- proto.gateway.web.v1.AttributeFilter.deserializeBinary = function(bytes) {
3835
- var reader = new jspb.BinaryReader(bytes);
3836
- var msg = new proto.gateway.web.v1.AttributeFilter;
3837
- return proto.gateway.web.v1.AttributeFilter.deserializeBinaryFromReader(msg, reader);
3838
- };
3839
-
3840
-
3841
- /**
3842
- * Deserializes binary data (in protobuf wire format) from the
3843
- * given reader into the given message object.
3844
- * @param {!proto.gateway.web.v1.AttributeFilter} msg The message object to deserialize into.
3845
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3846
- * @return {!proto.gateway.web.v1.AttributeFilter}
3847
- */
3848
- proto.gateway.web.v1.AttributeFilter.deserializeBinaryFromReader = function(msg, reader) {
3849
- while (reader.nextField()) {
3850
- if (reader.isEndGroup()) {
3851
- break;
3852
- }
3853
- var field = reader.getFieldNumber();
3854
- switch (field) {
3855
- case 1:
3856
- var value = /** @type {string} */ (reader.readString());
3857
- msg.setKey(value);
3858
- break;
3859
- case 2:
3860
- var value = /** @type {!proto.gateway.web.v1.AttributeFilterOp} */ (reader.readEnum());
3861
- msg.setOp(value);
3862
- break;
3863
- case 3:
3864
- var value = /** @type {string} */ (reader.readString());
3865
- msg.addValues(value);
3866
- break;
3867
- default:
3868
- reader.skipField();
3869
- break;
3870
- }
3871
- }
3872
- return msg;
3873
- };
3874
-
3875
-
3876
- /**
3877
- * Serializes the message to binary data (in protobuf wire format).
3878
- * @return {!Uint8Array}
3879
- */
3880
- proto.gateway.web.v1.AttributeFilter.prototype.serializeBinary = function() {
3881
- var writer = new jspb.BinaryWriter();
3882
- proto.gateway.web.v1.AttributeFilter.serializeBinaryToWriter(this, writer);
3883
- return writer.getResultBuffer();
3884
- };
3885
-
3886
-
3887
- /**
3888
- * Serializes the given message to binary data (in protobuf wire
3889
- * format), writing to the given BinaryWriter.
3890
- * @param {!proto.gateway.web.v1.AttributeFilter} message
3891
- * @param {!jspb.BinaryWriter} writer
3892
- * @suppress {unusedLocalVariables} f is only used for nested messages
3893
- */
3894
- proto.gateway.web.v1.AttributeFilter.serializeBinaryToWriter = function(message, writer) {
3895
- var f = undefined;
3896
- f = message.getKey();
3897
- if (f.length > 0) {
3898
- writer.writeString(
3899
- 1,
3900
- f
3901
- );
3902
- }
3903
- f = message.getOp();
3904
- if (f !== 0.0) {
3905
- writer.writeEnum(
2419
+ f = message.getProjectId();
2420
+ if (f.length > 0) {
2421
+ writer.writeString(
3906
2422
  2,
3907
2423
  f
3908
2424
  );
3909
2425
  }
3910
- f = message.getValuesList();
2426
+ f = message.getPromql();
3911
2427
  if (f.length > 0) {
3912
- writer.writeRepeatedString(
2428
+ writer.writeString(
3913
2429
  3,
3914
2430
  f
3915
2431
  );
3916
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
+ }
3917
2448
  };
3918
2449
 
3919
2450
 
3920
2451
  /**
3921
- * optional string key = 1;
2452
+ * optional string organization_id = 1;
3922
2453
  * @return {string}
3923
2454
  */
3924
- proto.gateway.web.v1.AttributeFilter.prototype.getKey = function() {
2455
+ proto.gateway.web.v1.StreamQueryRequest.prototype.getOrganizationId = function() {
3925
2456
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3926
2457
  };
3927
2458
 
3928
2459
 
3929
2460
  /**
3930
2461
  * @param {string} value
3931
- * @return {!proto.gateway.web.v1.AttributeFilter} returns this
2462
+ * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
3932
2463
  */
3933
- proto.gateway.web.v1.AttributeFilter.prototype.setKey = function(value) {
2464
+ proto.gateway.web.v1.StreamQueryRequest.prototype.setOrganizationId = function(value) {
3934
2465
  return jspb.Message.setProto3StringField(this, 1, value);
3935
2466
  };
3936
2467
 
3937
2468
 
3938
2469
  /**
3939
- * optional AttributeFilterOp op = 2;
3940
- * @return {!proto.gateway.web.v1.AttributeFilterOp}
2470
+ * optional string project_id = 2;
2471
+ * @return {string}
3941
2472
  */
3942
- proto.gateway.web.v1.AttributeFilter.prototype.getOp = function() {
3943
- 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, ""));
3944
2475
  };
3945
2476
 
3946
2477
 
3947
2478
  /**
3948
- * @param {!proto.gateway.web.v1.AttributeFilterOp} value
3949
- * @return {!proto.gateway.web.v1.AttributeFilter} returns this
2479
+ * @param {string} value
2480
+ * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
3950
2481
  */
3951
- proto.gateway.web.v1.AttributeFilter.prototype.setOp = function(value) {
3952
- 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);
3953
2484
  };
3954
2485
 
3955
2486
 
3956
2487
  /**
3957
- * repeated string values = 3;
3958
- * @return {!Array<string>}
2488
+ * optional string promql = 3;
2489
+ * @return {string}
3959
2490
  */
3960
- proto.gateway.web.v1.AttributeFilter.prototype.getValuesList = function() {
3961
- 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, ""));
3962
2493
  };
3963
2494
 
3964
2495
 
3965
2496
  /**
3966
- * @param {!Array<string>} value
3967
- * @return {!proto.gateway.web.v1.AttributeFilter} returns this
2497
+ * @param {string} value
2498
+ * @return {!proto.gateway.web.v1.StreamQueryRequest} returns this
3968
2499
  */
3969
- proto.gateway.web.v1.AttributeFilter.prototype.setValuesList = function(value) {
3970
- 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);
3971
2502
  };
3972
2503
 
3973
2504
 
3974
2505
  /**
3975
- * @param {string} value
3976
- * @param {number=} opt_index
3977
- * @return {!proto.gateway.web.v1.AttributeFilter} returns this
2506
+ * optional TimeRange time_range = 4;
2507
+ * @return {?proto.gateway.web.v1.TimeRange}
3978
2508
  */
3979
- proto.gateway.web.v1.AttributeFilter.prototype.addValues = function(value, opt_index) {
3980
- 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));
3981
2512
  };
3982
2513
 
3983
2514
 
3984
2515
  /**
3985
- * Clears the list making it empty but non-null.
3986
- * @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
3987
2527
  */
3988
- proto.gateway.web.v1.AttributeFilter.prototype.clearValuesList = function() {
3989
- 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);
3990
2557
  };
3991
2558
 
3992
2559
 
@@ -6051,6 +4618,179 @@ proto.gateway.web.v1.Dashboard.prototype.hasUpdatedAt = function() {
6051
4618
 
6052
4619
 
6053
4620
 
4621
+ /**
4622
+ * Oneof group definitions for this message. Each group defines the field
4623
+ * numbers belonging to that group. When of these fields' value is set, all
4624
+ * other fields in the group are cleared. During deserialization, if multiple
4625
+ * fields are encountered for a group, only the last value seen will be kept.
4626
+ * @private {!Array<!Array<number>>}
4627
+ * @const
4628
+ */
4629
+ proto.gateway.web.v1.WidgetQuery.oneofGroups_ = [[1]];
4630
+
4631
+ /**
4632
+ * @enum {number}
4633
+ */
4634
+ proto.gateway.web.v1.WidgetQuery.QueryCase = {
4635
+ QUERY_NOT_SET: 0,
4636
+ PROMQL: 1
4637
+ };
4638
+
4639
+ /**
4640
+ * @return {proto.gateway.web.v1.WidgetQuery.QueryCase}
4641
+ */
4642
+ proto.gateway.web.v1.WidgetQuery.prototype.getQueryCase = function() {
4643
+ return /** @type {proto.gateway.web.v1.WidgetQuery.QueryCase} */(jspb.Message.computeOneofCase(this, proto.gateway.web.v1.WidgetQuery.oneofGroups_[0]));
4644
+ };
4645
+
4646
+
4647
+
4648
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4649
+ /**
4650
+ * Creates an object representation of this proto.
4651
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4652
+ * Optional fields that are not set will be set to undefined.
4653
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4654
+ * For the list of reserved names please see:
4655
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4656
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4657
+ * JSPB instance for transitional soy proto support:
4658
+ * http://goto/soy-param-migration
4659
+ * @return {!Object}
4660
+ */
4661
+ proto.gateway.web.v1.WidgetQuery.prototype.toObject = function(opt_includeInstance) {
4662
+ return proto.gateway.web.v1.WidgetQuery.toObject(opt_includeInstance, this);
4663
+ };
4664
+
4665
+
4666
+ /**
4667
+ * Static version of the {@see toObject} method.
4668
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4669
+ * the JSPB instance for transitional soy proto support:
4670
+ * http://goto/soy-param-migration
4671
+ * @param {!proto.gateway.web.v1.WidgetQuery} msg The msg instance to transform.
4672
+ * @return {!Object}
4673
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4674
+ */
4675
+ proto.gateway.web.v1.WidgetQuery.toObject = function(includeInstance, msg) {
4676
+ var f, obj = {
4677
+ promql: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f
4678
+ };
4679
+
4680
+ if (includeInstance) {
4681
+ obj.$jspbMessageInstance = msg;
4682
+ }
4683
+ return obj;
4684
+ };
4685
+ }
4686
+
4687
+
4688
+ /**
4689
+ * Deserializes binary data (in protobuf wire format).
4690
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4691
+ * @return {!proto.gateway.web.v1.WidgetQuery}
4692
+ */
4693
+ proto.gateway.web.v1.WidgetQuery.deserializeBinary = function(bytes) {
4694
+ var reader = new jspb.BinaryReader(bytes);
4695
+ var msg = new proto.gateway.web.v1.WidgetQuery;
4696
+ return proto.gateway.web.v1.WidgetQuery.deserializeBinaryFromReader(msg, reader);
4697
+ };
4698
+
4699
+
4700
+ /**
4701
+ * Deserializes binary data (in protobuf wire format) from the
4702
+ * given reader into the given message object.
4703
+ * @param {!proto.gateway.web.v1.WidgetQuery} msg The message object to deserialize into.
4704
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4705
+ * @return {!proto.gateway.web.v1.WidgetQuery}
4706
+ */
4707
+ proto.gateway.web.v1.WidgetQuery.deserializeBinaryFromReader = function(msg, reader) {
4708
+ while (reader.nextField()) {
4709
+ if (reader.isEndGroup()) {
4710
+ break;
4711
+ }
4712
+ var field = reader.getFieldNumber();
4713
+ switch (field) {
4714
+ case 1:
4715
+ var value = /** @type {string} */ (reader.readString());
4716
+ msg.setPromql(value);
4717
+ break;
4718
+ default:
4719
+ reader.skipField();
4720
+ break;
4721
+ }
4722
+ }
4723
+ return msg;
4724
+ };
4725
+
4726
+
4727
+ /**
4728
+ * Serializes the message to binary data (in protobuf wire format).
4729
+ * @return {!Uint8Array}
4730
+ */
4731
+ proto.gateway.web.v1.WidgetQuery.prototype.serializeBinary = function() {
4732
+ var writer = new jspb.BinaryWriter();
4733
+ proto.gateway.web.v1.WidgetQuery.serializeBinaryToWriter(this, writer);
4734
+ return writer.getResultBuffer();
4735
+ };
4736
+
4737
+
4738
+ /**
4739
+ * Serializes the given message to binary data (in protobuf wire
4740
+ * format), writing to the given BinaryWriter.
4741
+ * @param {!proto.gateway.web.v1.WidgetQuery} message
4742
+ * @param {!jspb.BinaryWriter} writer
4743
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4744
+ */
4745
+ proto.gateway.web.v1.WidgetQuery.serializeBinaryToWriter = function(message, writer) {
4746
+ var f = undefined;
4747
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
4748
+ if (f != null) {
4749
+ writer.writeString(
4750
+ 1,
4751
+ f
4752
+ );
4753
+ }
4754
+ };
4755
+
4756
+
4757
+ /**
4758
+ * optional string promql = 1;
4759
+ * @return {string}
4760
+ */
4761
+ proto.gateway.web.v1.WidgetQuery.prototype.getPromql = function() {
4762
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4763
+ };
4764
+
4765
+
4766
+ /**
4767
+ * @param {string} value
4768
+ * @return {!proto.gateway.web.v1.WidgetQuery} returns this
4769
+ */
4770
+ proto.gateway.web.v1.WidgetQuery.prototype.setPromql = function(value) {
4771
+ return jspb.Message.setOneofField(this, 1, proto.gateway.web.v1.WidgetQuery.oneofGroups_[0], value);
4772
+ };
4773
+
4774
+
4775
+ /**
4776
+ * Clears the field making it undefined.
4777
+ * @return {!proto.gateway.web.v1.WidgetQuery} returns this
4778
+ */
4779
+ proto.gateway.web.v1.WidgetQuery.prototype.clearPromql = function() {
4780
+ return jspb.Message.setOneofField(this, 1, proto.gateway.web.v1.WidgetQuery.oneofGroups_[0], undefined);
4781
+ };
4782
+
4783
+
4784
+ /**
4785
+ * Returns whether this field is set.
4786
+ * @return {boolean}
4787
+ */
4788
+ proto.gateway.web.v1.WidgetQuery.prototype.hasPromql = function() {
4789
+ return jspb.Message.getField(this, 1) != null;
4790
+ };
4791
+
4792
+
4793
+
6054
4794
  /**
6055
4795
  * List of repeated fields within this message type.
6056
4796
  * @private {!Array<number>}
@@ -6094,7 +4834,7 @@ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
6094
4834
  type: jspb.Message.getFieldWithDefault(msg, 3, 0),
6095
4835
  gridPos: (f = msg.getGridPos()) && proto.gateway.web.v1.GridPos.toObject(includeInstance, f),
6096
4836
  queriesList: jspb.Message.toObjectList(msg.getQueriesList(),
6097
- proto.gateway.web.v1.MetricQuery.toObject, includeInstance),
4837
+ proto.gateway.web.v1.WidgetQuery.toObject, includeInstance),
6098
4838
  timeWindow: jspb.Message.getFieldWithDefault(msg, 6, 0),
6099
4839
  timeInterval: jspb.Message.getFieldWithDefault(msg, 7, 0),
6100
4840
  timeseriesStyle: jspb.Message.getFieldWithDefault(msg, 8, 0),
@@ -6153,8 +4893,8 @@ proto.gateway.web.v1.Widget.deserializeBinaryFromReader = function(msg, reader)
6153
4893
  msg.setGridPos(value);
6154
4894
  break;
6155
4895
  case 5:
6156
- var value = new proto.gateway.web.v1.MetricQuery;
6157
- reader.readMessage(value,proto.gateway.web.v1.MetricQuery.deserializeBinaryFromReader);
4896
+ var value = new proto.gateway.web.v1.WidgetQuery;
4897
+ reader.readMessage(value,proto.gateway.web.v1.WidgetQuery.deserializeBinaryFromReader);
6158
4898
  msg.addQueries(value);
6159
4899
  break;
6160
4900
  case 6:
@@ -6236,7 +4976,7 @@ proto.gateway.web.v1.Widget.serializeBinaryToWriter = function(message, writer)
6236
4976
  writer.writeRepeatedMessage(
6237
4977
  5,
6238
4978
  f,
6239
- proto.gateway.web.v1.MetricQuery.serializeBinaryToWriter
4979
+ proto.gateway.web.v1.WidgetQuery.serializeBinaryToWriter
6240
4980
  );
6241
4981
  }
6242
4982
  f = message.getTimeWindow();
@@ -6362,17 +5102,17 @@ proto.gateway.web.v1.Widget.prototype.hasGridPos = function() {
6362
5102
 
6363
5103
 
6364
5104
  /**
6365
- * repeated MetricQuery queries = 5;
6366
- * @return {!Array<!proto.gateway.web.v1.MetricQuery>}
5105
+ * repeated WidgetQuery queries = 5;
5106
+ * @return {!Array<!proto.gateway.web.v1.WidgetQuery>}
6367
5107
  */
6368
5108
  proto.gateway.web.v1.Widget.prototype.getQueriesList = function() {
6369
- return /** @type{!Array<!proto.gateway.web.v1.MetricQuery>} */ (
6370
- jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.MetricQuery, 5));
5109
+ return /** @type{!Array<!proto.gateway.web.v1.WidgetQuery>} */ (
5110
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.WidgetQuery, 5));
6371
5111
  };
6372
5112
 
6373
5113
 
6374
5114
  /**
6375
- * @param {!Array<!proto.gateway.web.v1.MetricQuery>} value
5115
+ * @param {!Array<!proto.gateway.web.v1.WidgetQuery>} value
6376
5116
  * @return {!proto.gateway.web.v1.Widget} returns this
6377
5117
  */
6378
5118
  proto.gateway.web.v1.Widget.prototype.setQueriesList = function(value) {
@@ -6381,12 +5121,12 @@ proto.gateway.web.v1.Widget.prototype.setQueriesList = function(value) {
6381
5121
 
6382
5122
 
6383
5123
  /**
6384
- * @param {!proto.gateway.web.v1.MetricQuery=} opt_value
5124
+ * @param {!proto.gateway.web.v1.WidgetQuery=} opt_value
6385
5125
  * @param {number=} opt_index
6386
- * @return {!proto.gateway.web.v1.MetricQuery}
5126
+ * @return {!proto.gateway.web.v1.WidgetQuery}
6387
5127
  */
6388
5128
  proto.gateway.web.v1.Widget.prototype.addQueries = function(opt_value, opt_index) {
6389
- return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.gateway.web.v1.MetricQuery, opt_index);
5129
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.gateway.web.v1.WidgetQuery, opt_index);
6390
5130
  };
6391
5131
 
6392
5132
 
@@ -9979,65 +8719,6 @@ proto.gateway.web.v1.MetricKind = {
9979
8719
  METRIC_KIND_EXPONENTIAL_HISTOGRAM: 4
9980
8720
  };
9981
8721
 
9982
- /**
9983
- * @enum {number}
9984
- */
9985
- proto.gateway.web.v1.GaugeAggregation = {
9986
- GAUGE_AGGREGATION_UNSPECIFIED: 0,
9987
- GAUGE_AGGREGATION_LAST: 1,
9988
- GAUGE_AGGREGATION_AVG: 2,
9989
- GAUGE_AGGREGATION_MIN: 3,
9990
- GAUGE_AGGREGATION_MAX: 4,
9991
- GAUGE_AGGREGATION_SUM: 5,
9992
- GAUGE_AGGREGATION_COUNT: 6
9993
- };
9994
-
9995
- /**
9996
- * @enum {number}
9997
- */
9998
- proto.gateway.web.v1.SumAggregation = {
9999
- SUM_AGGREGATION_UNSPECIFIED: 0,
10000
- SUM_AGGREGATION_RATE: 1,
10001
- SUM_AGGREGATION_INCREASE: 2,
10002
- SUM_AGGREGATION_LAST: 3,
10003
- SUM_AGGREGATION_COUNT: 4
10004
- };
10005
-
10006
- /**
10007
- * @enum {number}
10008
- */
10009
- proto.gateway.web.v1.HistogramAggregation = {
10010
- HISTOGRAM_AGGREGATION_UNSPECIFIED: 0,
10011
- HISTOGRAM_AGGREGATION_QUANTILE: 1,
10012
- HISTOGRAM_AGGREGATION_AVG: 2,
10013
- HISTOGRAM_AGGREGATION_MIN: 3,
10014
- HISTOGRAM_AGGREGATION_MAX: 4,
10015
- HISTOGRAM_AGGREGATION_COUNT: 5
10016
- };
10017
-
10018
- /**
10019
- * @enum {number}
10020
- */
10021
- proto.gateway.web.v1.ExponentialHistogramAggregation = {
10022
- EXPONENTIAL_HISTOGRAM_AGGREGATION_UNSPECIFIED: 0,
10023
- EXPONENTIAL_HISTOGRAM_AGGREGATION_QUANTILE: 1,
10024
- EXPONENTIAL_HISTOGRAM_AGGREGATION_AVG: 2,
10025
- EXPONENTIAL_HISTOGRAM_AGGREGATION_MIN: 3,
10026
- EXPONENTIAL_HISTOGRAM_AGGREGATION_MAX: 4,
10027
- EXPONENTIAL_HISTOGRAM_AGGREGATION_COUNT: 5
10028
- };
10029
-
10030
- /**
10031
- * @enum {number}
10032
- */
10033
- proto.gateway.web.v1.AttributeFilterOp = {
10034
- ATTRIBUTE_FILTER_OP_UNSPECIFIED: 0,
10035
- ATTRIBUTE_FILTER_OP_EQUALS: 1,
10036
- ATTRIBUTE_FILTER_OP_NOT_EQUALS: 2,
10037
- ATTRIBUTE_FILTER_OP_IN: 3,
10038
- ATTRIBUTE_FILTER_OP_NOT_IN: 4
10039
- };
10040
-
10041
8722
  /**
10042
8723
  * @enum {number}
10043
8724
  */