@miradorlabs/web-grpc 2.4.0 → 2.6.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.
@@ -38,6 +38,8 @@ goog.exportSymbol('proto.gateway.web.v1.DashboardDataEnvelope.EventCase', null,
38
38
  goog.exportSymbol('proto.gateway.web.v1.DashboardSummary', null, global);
39
39
  goog.exportSymbol('proto.gateway.web.v1.DeleteDashboardRequest', null, global);
40
40
  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);
41
43
  goog.exportSymbol('proto.gateway.web.v1.GaugeAggregation', null, global);
42
44
  goog.exportSymbol('proto.gateway.web.v1.GaugeQuerySpec', null, global);
43
45
  goog.exportSymbol('proto.gateway.web.v1.GetDashboardRequest', null, global);
@@ -351,6 +353,27 @@ if (goog.DEBUG && !COMPILED) {
351
353
  */
352
354
  proto.gateway.web.v1.HistogramQuerySpec.displayName = 'proto.gateway.web.v1.HistogramQuerySpec';
353
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
+ }
354
377
  /**
355
378
  * Generated by JsPbCodeGenerator.
356
379
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2686,7 +2709,7 @@ proto.gateway.web.v1.MetricQuery.repeatedFields_ = [5,6];
2686
2709
  * @private {!Array<!Array<number>>}
2687
2710
  * @const
2688
2711
  */
2689
- proto.gateway.web.v1.MetricQuery.oneofGroups_ = [[2,3,4]];
2712
+ proto.gateway.web.v1.MetricQuery.oneofGroups_ = [[2,3,4,8]];
2690
2713
 
2691
2714
  /**
2692
2715
  * @enum {number}
@@ -2695,7 +2718,8 @@ proto.gateway.web.v1.MetricQuery.KindCase = {
2695
2718
  KIND_NOT_SET: 0,
2696
2719
  GAUGE: 2,
2697
2720
  SUM: 3,
2698
- HISTOGRAM: 4
2721
+ HISTOGRAM: 4,
2722
+ EXPONENTIAL_HISTOGRAM: 8
2699
2723
  };
2700
2724
 
2701
2725
  /**
@@ -2740,6 +2764,7 @@ metricName: jspb.Message.getFieldWithDefault(msg, 1, ""),
2740
2764
  gauge: (f = msg.getGauge()) && proto.gateway.web.v1.GaugeQuerySpec.toObject(includeInstance, f),
2741
2765
  sum: (f = msg.getSum()) && proto.gateway.web.v1.SumQuerySpec.toObject(includeInstance, f),
2742
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),
2743
2768
  filtersList: jspb.Message.toObjectList(msg.getFiltersList(),
2744
2769
  proto.gateway.web.v1.AttributeFilter.toObject, includeInstance),
2745
2770
  groupByList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
@@ -2799,6 +2824,11 @@ proto.gateway.web.v1.MetricQuery.deserializeBinaryFromReader = function(msg, rea
2799
2824
  reader.readMessage(value,proto.gateway.web.v1.HistogramQuerySpec.deserializeBinaryFromReader);
2800
2825
  msg.setHistogram(value);
2801
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;
2802
2832
  case 5:
2803
2833
  var value = new proto.gateway.web.v1.AttributeFilter;
2804
2834
  reader.readMessage(value,proto.gateway.web.v1.AttributeFilter.deserializeBinaryFromReader);
@@ -2872,6 +2902,14 @@ proto.gateway.web.v1.MetricQuery.serializeBinaryToWriter = function(message, wri
2872
2902
  proto.gateway.web.v1.HistogramQuerySpec.serializeBinaryToWriter
2873
2903
  );
2874
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
+ }
2875
2913
  f = message.getFiltersList();
2876
2914
  if (f.length > 0) {
2877
2915
  writer.writeRepeatedMessage(
@@ -3026,6 +3064,43 @@ proto.gateway.web.v1.MetricQuery.prototype.hasHistogram = function() {
3026
3064
  };
3027
3065
 
3028
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
+
3029
3104
  /**
3030
3105
  * repeated AttributeFilter filters = 5;
3031
3106
  * @return {!Array<!proto.gateway.web.v1.AttributeFilter>}
@@ -3540,6 +3615,166 @@ proto.gateway.web.v1.HistogramQuerySpec.prototype.setQuantile = function(value)
3540
3615
 
3541
3616
 
3542
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
+
3543
3778
  /**
3544
3779
  * List of repeated fields within this message type.
3545
3780
  * @private {!Array<number>}
@@ -9740,7 +9975,8 @@ proto.gateway.web.v1.MetricKind = {
9740
9975
  METRIC_KIND_UNSPECIFIED: 0,
9741
9976
  METRIC_KIND_GAUGE: 1,
9742
9977
  METRIC_KIND_SUM: 2,
9743
- METRIC_KIND_HISTOGRAM: 3
9978
+ METRIC_KIND_HISTOGRAM: 3,
9979
+ METRIC_KIND_EXPONENTIAL_HISTOGRAM: 4
9744
9980
  };
9745
9981
 
9746
9982
  /**
@@ -9779,6 +10015,18 @@ proto.gateway.web.v1.HistogramAggregation = {
9779
10015
  HISTOGRAM_AGGREGATION_COUNT: 5
9780
10016
  };
9781
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
+
9782
10030
  /**
9783
10031
  * @enum {number}
9784
10032
  */