@miradorlabs/web-grpc 1.3.0 → 2.0.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.
@@ -23,29 +23,31 @@ var global =
23
23
 
24
24
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
25
  goog.object.extend(proto, google_protobuf_timestamp_pb);
26
- var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
27
- goog.object.extend(proto, proto_gateway_common_v1_status_pb);
28
26
  var proto_gateway_web_v1_trace_gateway_pb = require('../../../../proto/gateway/web/v1/trace_gateway_pb.js');
29
27
  goog.object.extend(proto, proto_gateway_web_v1_trace_gateway_pb);
30
- goog.exportSymbol('proto.gateway.web.v1.ListMetricAttributesRequest', null, global);
31
- goog.exportSymbol('proto.gateway.web.v1.ListMetricAttributesResponse', null, global);
32
- goog.exportSymbol('proto.gateway.web.v1.ListMetricsRequest', null, global);
33
- goog.exportSymbol('proto.gateway.web.v1.ListMetricsResponse', null, global);
34
- goog.exportSymbol('proto.gateway.web.v1.MetricAggregation', null, global);
28
+ goog.exportSymbol('proto.gateway.web.v1.GaugeAggregation', null, global);
29
+ goog.exportSymbol('proto.gateway.web.v1.GaugeQueryRequest', null, global);
30
+ goog.exportSymbol('proto.gateway.web.v1.HistogramAggregation', null, global);
31
+ goog.exportSymbol('proto.gateway.web.v1.HistogramQueryRequest', null, global);
35
32
  goog.exportSymbol('proto.gateway.web.v1.MetricAnalyticsEnvelope', null, global);
36
33
  goog.exportSymbol('proto.gateway.web.v1.MetricAnalyticsEnvelope.EventCase', null, global);
37
34
  goog.exportSymbol('proto.gateway.web.v1.MetricAnalyticsSnapshot', null, global);
38
35
  goog.exportSymbol('proto.gateway.web.v1.MetricAttribute', null, global);
36
+ goog.exportSymbol('proto.gateway.web.v1.MetricAttributeEnvelope', null, global);
37
+ goog.exportSymbol('proto.gateway.web.v1.MetricAttributeEnvelope.EventCase', null, global);
38
+ goog.exportSymbol('proto.gateway.web.v1.MetricAttributeSnapshot', null, global);
39
39
  goog.exportSymbol('proto.gateway.web.v1.MetricBucket', null, global);
40
- goog.exportSymbol('proto.gateway.web.v1.MetricFilter', null, global);
40
+ goog.exportSymbol('proto.gateway.web.v1.MetricCatalogEnvelope', null, global);
41
+ goog.exportSymbol('proto.gateway.web.v1.MetricCatalogEnvelope.EventCase', null, global);
42
+ goog.exportSymbol('proto.gateway.web.v1.MetricCatalogSnapshot', null, global);
41
43
  goog.exportSymbol('proto.gateway.web.v1.MetricInfo', null, global);
42
44
  goog.exportSymbol('proto.gateway.web.v1.MetricKind', null, global);
43
- goog.exportSymbol('proto.gateway.web.v1.MetricQuery', null, global);
44
45
  goog.exportSymbol('proto.gateway.web.v1.MetricSeries', null, global);
45
46
  goog.exportSymbol('proto.gateway.web.v1.MetricSeriesBucketUpdate', null, global);
46
- goog.exportSymbol('proto.gateway.web.v1.QueryMetricsRequest', null, global);
47
- goog.exportSymbol('proto.gateway.web.v1.QueryMetricsResponse', null, global);
48
- goog.exportSymbol('proto.gateway.web.v1.StreamMetricAnalyticsRequest', null, global);
47
+ goog.exportSymbol('proto.gateway.web.v1.StreamMetricAttributesRequest', null, global);
48
+ goog.exportSymbol('proto.gateway.web.v1.StreamMetricsRequest', null, global);
49
+ goog.exportSymbol('proto.gateway.web.v1.SumAggregation', null, global);
50
+ goog.exportSymbol('proto.gateway.web.v1.SumQueryRequest', null, global);
49
51
  /**
50
52
  * Generated by JsPbCodeGenerator.
51
53
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -56,16 +58,16 @@ goog.exportSymbol('proto.gateway.web.v1.StreamMetricAnalyticsRequest', null, glo
56
58
  * @extends {jspb.Message}
57
59
  * @constructor
58
60
  */
59
- proto.gateway.web.v1.ListMetricsRequest = function(opt_data) {
61
+ proto.gateway.web.v1.StreamMetricsRequest = function(opt_data) {
60
62
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
61
63
  };
62
- goog.inherits(proto.gateway.web.v1.ListMetricsRequest, jspb.Message);
64
+ goog.inherits(proto.gateway.web.v1.StreamMetricsRequest, jspb.Message);
63
65
  if (goog.DEBUG && !COMPILED) {
64
66
  /**
65
67
  * @public
66
68
  * @override
67
69
  */
68
- proto.gateway.web.v1.ListMetricsRequest.displayName = 'proto.gateway.web.v1.ListMetricsRequest';
70
+ proto.gateway.web.v1.StreamMetricsRequest.displayName = 'proto.gateway.web.v1.StreamMetricsRequest';
69
71
  }
70
72
  /**
71
73
  * Generated by JsPbCodeGenerator.
@@ -77,16 +79,16 @@ if (goog.DEBUG && !COMPILED) {
77
79
  * @extends {jspb.Message}
78
80
  * @constructor
79
81
  */
80
- proto.gateway.web.v1.ListMetricsResponse = function(opt_data) {
81
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListMetricsResponse.repeatedFields_, null);
82
+ proto.gateway.web.v1.MetricCatalogEnvelope = function(opt_data) {
83
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gateway.web.v1.MetricCatalogEnvelope.oneofGroups_);
82
84
  };
83
- goog.inherits(proto.gateway.web.v1.ListMetricsResponse, jspb.Message);
85
+ goog.inherits(proto.gateway.web.v1.MetricCatalogEnvelope, jspb.Message);
84
86
  if (goog.DEBUG && !COMPILED) {
85
87
  /**
86
88
  * @public
87
89
  * @override
88
90
  */
89
- proto.gateway.web.v1.ListMetricsResponse.displayName = 'proto.gateway.web.v1.ListMetricsResponse';
91
+ proto.gateway.web.v1.MetricCatalogEnvelope.displayName = 'proto.gateway.web.v1.MetricCatalogEnvelope';
90
92
  }
91
93
  /**
92
94
  * Generated by JsPbCodeGenerator.
@@ -98,16 +100,16 @@ if (goog.DEBUG && !COMPILED) {
98
100
  * @extends {jspb.Message}
99
101
  * @constructor
100
102
  */
101
- proto.gateway.web.v1.MetricInfo = function(opt_data) {
102
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
103
+ proto.gateway.web.v1.MetricCatalogSnapshot = function(opt_data) {
104
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.MetricCatalogSnapshot.repeatedFields_, null);
103
105
  };
104
- goog.inherits(proto.gateway.web.v1.MetricInfo, jspb.Message);
106
+ goog.inherits(proto.gateway.web.v1.MetricCatalogSnapshot, jspb.Message);
105
107
  if (goog.DEBUG && !COMPILED) {
106
108
  /**
107
109
  * @public
108
110
  * @override
109
111
  */
110
- proto.gateway.web.v1.MetricInfo.displayName = 'proto.gateway.web.v1.MetricInfo';
112
+ proto.gateway.web.v1.MetricCatalogSnapshot.displayName = 'proto.gateway.web.v1.MetricCatalogSnapshot';
111
113
  }
112
114
  /**
113
115
  * Generated by JsPbCodeGenerator.
@@ -119,16 +121,16 @@ if (goog.DEBUG && !COMPILED) {
119
121
  * @extends {jspb.Message}
120
122
  * @constructor
121
123
  */
122
- proto.gateway.web.v1.ListMetricAttributesRequest = function(opt_data) {
124
+ proto.gateway.web.v1.MetricInfo = function(opt_data) {
123
125
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
124
126
  };
125
- goog.inherits(proto.gateway.web.v1.ListMetricAttributesRequest, jspb.Message);
127
+ goog.inherits(proto.gateway.web.v1.MetricInfo, jspb.Message);
126
128
  if (goog.DEBUG && !COMPILED) {
127
129
  /**
128
130
  * @public
129
131
  * @override
130
132
  */
131
- proto.gateway.web.v1.ListMetricAttributesRequest.displayName = 'proto.gateway.web.v1.ListMetricAttributesRequest';
133
+ proto.gateway.web.v1.MetricInfo.displayName = 'proto.gateway.web.v1.MetricInfo';
132
134
  }
133
135
  /**
134
136
  * Generated by JsPbCodeGenerator.
@@ -140,16 +142,16 @@ if (goog.DEBUG && !COMPILED) {
140
142
  * @extends {jspb.Message}
141
143
  * @constructor
142
144
  */
143
- proto.gateway.web.v1.ListMetricAttributesResponse = function(opt_data) {
144
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListMetricAttributesResponse.repeatedFields_, null);
145
+ proto.gateway.web.v1.StreamMetricAttributesRequest = function(opt_data) {
146
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
145
147
  };
146
- goog.inherits(proto.gateway.web.v1.ListMetricAttributesResponse, jspb.Message);
148
+ goog.inherits(proto.gateway.web.v1.StreamMetricAttributesRequest, jspb.Message);
147
149
  if (goog.DEBUG && !COMPILED) {
148
150
  /**
149
151
  * @public
150
152
  * @override
151
153
  */
152
- proto.gateway.web.v1.ListMetricAttributesResponse.displayName = 'proto.gateway.web.v1.ListMetricAttributesResponse';
154
+ proto.gateway.web.v1.StreamMetricAttributesRequest.displayName = 'proto.gateway.web.v1.StreamMetricAttributesRequest';
153
155
  }
154
156
  /**
155
157
  * Generated by JsPbCodeGenerator.
@@ -161,16 +163,16 @@ if (goog.DEBUG && !COMPILED) {
161
163
  * @extends {jspb.Message}
162
164
  * @constructor
163
165
  */
164
- proto.gateway.web.v1.MetricAttribute = function(opt_data) {
165
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.MetricAttribute.repeatedFields_, null);
166
+ proto.gateway.web.v1.MetricAttributeEnvelope = function(opt_data) {
167
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gateway.web.v1.MetricAttributeEnvelope.oneofGroups_);
166
168
  };
167
- goog.inherits(proto.gateway.web.v1.MetricAttribute, jspb.Message);
169
+ goog.inherits(proto.gateway.web.v1.MetricAttributeEnvelope, jspb.Message);
168
170
  if (goog.DEBUG && !COMPILED) {
169
171
  /**
170
172
  * @public
171
173
  * @override
172
174
  */
173
- proto.gateway.web.v1.MetricAttribute.displayName = 'proto.gateway.web.v1.MetricAttribute';
175
+ proto.gateway.web.v1.MetricAttributeEnvelope.displayName = 'proto.gateway.web.v1.MetricAttributeEnvelope';
174
176
  }
175
177
  /**
176
178
  * Generated by JsPbCodeGenerator.
@@ -182,16 +184,16 @@ if (goog.DEBUG && !COMPILED) {
182
184
  * @extends {jspb.Message}
183
185
  * @constructor
184
186
  */
185
- proto.gateway.web.v1.MetricQuery = function(opt_data) {
186
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.MetricQuery.repeatedFields_, null);
187
+ proto.gateway.web.v1.MetricAttributeSnapshot = function(opt_data) {
188
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.MetricAttributeSnapshot.repeatedFields_, null);
187
189
  };
188
- goog.inherits(proto.gateway.web.v1.MetricQuery, jspb.Message);
190
+ goog.inherits(proto.gateway.web.v1.MetricAttributeSnapshot, jspb.Message);
189
191
  if (goog.DEBUG && !COMPILED) {
190
192
  /**
191
193
  * @public
192
194
  * @override
193
195
  */
194
- proto.gateway.web.v1.MetricQuery.displayName = 'proto.gateway.web.v1.MetricQuery';
196
+ proto.gateway.web.v1.MetricAttributeSnapshot.displayName = 'proto.gateway.web.v1.MetricAttributeSnapshot';
195
197
  }
196
198
  /**
197
199
  * Generated by JsPbCodeGenerator.
@@ -203,16 +205,16 @@ if (goog.DEBUG && !COMPILED) {
203
205
  * @extends {jspb.Message}
204
206
  * @constructor
205
207
  */
206
- proto.gateway.web.v1.MetricFilter = function(opt_data) {
207
- jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.MetricFilter.repeatedFields_, null);
208
+ proto.gateway.web.v1.MetricAttribute = function(opt_data) {
209
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.MetricAttribute.repeatedFields_, null);
208
210
  };
209
- goog.inherits(proto.gateway.web.v1.MetricFilter, jspb.Message);
211
+ goog.inherits(proto.gateway.web.v1.MetricAttribute, jspb.Message);
210
212
  if (goog.DEBUG && !COMPILED) {
211
213
  /**
212
214
  * @public
213
215
  * @override
214
216
  */
215
- proto.gateway.web.v1.MetricFilter.displayName = 'proto.gateway.web.v1.MetricFilter';
217
+ proto.gateway.web.v1.MetricAttribute.displayName = 'proto.gateway.web.v1.MetricAttribute';
216
218
  }
217
219
  /**
218
220
  * Generated by JsPbCodeGenerator.
@@ -224,16 +226,16 @@ if (goog.DEBUG && !COMPILED) {
224
226
  * @extends {jspb.Message}
225
227
  * @constructor
226
228
  */
227
- proto.gateway.web.v1.QueryMetricsRequest = function(opt_data) {
229
+ proto.gateway.web.v1.GaugeQueryRequest = function(opt_data) {
228
230
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
229
231
  };
230
- goog.inherits(proto.gateway.web.v1.QueryMetricsRequest, jspb.Message);
232
+ goog.inherits(proto.gateway.web.v1.GaugeQueryRequest, jspb.Message);
231
233
  if (goog.DEBUG && !COMPILED) {
232
234
  /**
233
235
  * @public
234
236
  * @override
235
237
  */
236
- proto.gateway.web.v1.QueryMetricsRequest.displayName = 'proto.gateway.web.v1.QueryMetricsRequest';
238
+ proto.gateway.web.v1.GaugeQueryRequest.displayName = 'proto.gateway.web.v1.GaugeQueryRequest';
237
239
  }
238
240
  /**
239
241
  * Generated by JsPbCodeGenerator.
@@ -245,16 +247,16 @@ if (goog.DEBUG && !COMPILED) {
245
247
  * @extends {jspb.Message}
246
248
  * @constructor
247
249
  */
248
- proto.gateway.web.v1.QueryMetricsResponse = function(opt_data) {
250
+ proto.gateway.web.v1.SumQueryRequest = function(opt_data) {
249
251
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
250
252
  };
251
- goog.inherits(proto.gateway.web.v1.QueryMetricsResponse, jspb.Message);
253
+ goog.inherits(proto.gateway.web.v1.SumQueryRequest, jspb.Message);
252
254
  if (goog.DEBUG && !COMPILED) {
253
255
  /**
254
256
  * @public
255
257
  * @override
256
258
  */
257
- proto.gateway.web.v1.QueryMetricsResponse.displayName = 'proto.gateway.web.v1.QueryMetricsResponse';
259
+ proto.gateway.web.v1.SumQueryRequest.displayName = 'proto.gateway.web.v1.SumQueryRequest';
258
260
  }
259
261
  /**
260
262
  * Generated by JsPbCodeGenerator.
@@ -266,16 +268,16 @@ if (goog.DEBUG && !COMPILED) {
266
268
  * @extends {jspb.Message}
267
269
  * @constructor
268
270
  */
269
- proto.gateway.web.v1.StreamMetricAnalyticsRequest = function(opt_data) {
271
+ proto.gateway.web.v1.HistogramQueryRequest = function(opt_data) {
270
272
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
271
273
  };
272
- goog.inherits(proto.gateway.web.v1.StreamMetricAnalyticsRequest, jspb.Message);
274
+ goog.inherits(proto.gateway.web.v1.HistogramQueryRequest, jspb.Message);
273
275
  if (goog.DEBUG && !COMPILED) {
274
276
  /**
275
277
  * @public
276
278
  * @override
277
279
  */
278
- proto.gateway.web.v1.StreamMetricAnalyticsRequest.displayName = 'proto.gateway.web.v1.StreamMetricAnalyticsRequest';
280
+ proto.gateway.web.v1.HistogramQueryRequest.displayName = 'proto.gateway.web.v1.HistogramQueryRequest';
279
281
  }
280
282
  /**
281
283
  * Generated by JsPbCodeGenerator.
@@ -398,8 +400,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
398
400
  * http://goto/soy-param-migration
399
401
  * @return {!Object}
400
402
  */
401
- proto.gateway.web.v1.ListMetricsRequest.prototype.toObject = function(opt_includeInstance) {
402
- return proto.gateway.web.v1.ListMetricsRequest.toObject(opt_includeInstance, this);
403
+ proto.gateway.web.v1.StreamMetricsRequest.prototype.toObject = function(opt_includeInstance) {
404
+ return proto.gateway.web.v1.StreamMetricsRequest.toObject(opt_includeInstance, this);
403
405
  };
404
406
 
405
407
 
@@ -408,14 +410,14 @@ proto.gateway.web.v1.ListMetricsRequest.prototype.toObject = function(opt_includ
408
410
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
409
411
  * the JSPB instance for transitional soy proto support:
410
412
  * http://goto/soy-param-migration
411
- * @param {!proto.gateway.web.v1.ListMetricsRequest} msg The msg instance to transform.
413
+ * @param {!proto.gateway.web.v1.StreamMetricsRequest} msg The msg instance to transform.
412
414
  * @return {!Object}
413
415
  * @suppress {unusedLocalVariables} f is only used for nested messages
414
416
  */
415
- proto.gateway.web.v1.ListMetricsRequest.toObject = function(includeInstance, msg) {
417
+ proto.gateway.web.v1.StreamMetricsRequest.toObject = function(includeInstance, msg) {
416
418
  var f, obj = {
417
- projectId: jspb.Message.getFieldWithDefault(msg, 1, ""),
418
- organizationId: jspb.Message.getFieldWithDefault(msg, 2, "")
419
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
420
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, "")
419
421
  };
420
422
 
421
423
  if (includeInstance) {
@@ -429,23 +431,23 @@ organizationId: jspb.Message.getFieldWithDefault(msg, 2, "")
429
431
  /**
430
432
  * Deserializes binary data (in protobuf wire format).
431
433
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
432
- * @return {!proto.gateway.web.v1.ListMetricsRequest}
434
+ * @return {!proto.gateway.web.v1.StreamMetricsRequest}
433
435
  */
434
- proto.gateway.web.v1.ListMetricsRequest.deserializeBinary = function(bytes) {
436
+ proto.gateway.web.v1.StreamMetricsRequest.deserializeBinary = function(bytes) {
435
437
  var reader = new jspb.BinaryReader(bytes);
436
- var msg = new proto.gateway.web.v1.ListMetricsRequest;
437
- return proto.gateway.web.v1.ListMetricsRequest.deserializeBinaryFromReader(msg, reader);
438
+ var msg = new proto.gateway.web.v1.StreamMetricsRequest;
439
+ return proto.gateway.web.v1.StreamMetricsRequest.deserializeBinaryFromReader(msg, reader);
438
440
  };
439
441
 
440
442
 
441
443
  /**
442
444
  * Deserializes binary data (in protobuf wire format) from the
443
445
  * given reader into the given message object.
444
- * @param {!proto.gateway.web.v1.ListMetricsRequest} msg The message object to deserialize into.
446
+ * @param {!proto.gateway.web.v1.StreamMetricsRequest} msg The message object to deserialize into.
445
447
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
446
- * @return {!proto.gateway.web.v1.ListMetricsRequest}
448
+ * @return {!proto.gateway.web.v1.StreamMetricsRequest}
447
449
  */
448
- proto.gateway.web.v1.ListMetricsRequest.deserializeBinaryFromReader = function(msg, reader) {
450
+ proto.gateway.web.v1.StreamMetricsRequest.deserializeBinaryFromReader = function(msg, reader) {
449
451
  while (reader.nextField()) {
450
452
  if (reader.isEndGroup()) {
451
453
  break;
@@ -454,11 +456,11 @@ proto.gateway.web.v1.ListMetricsRequest.deserializeBinaryFromReader = function(m
454
456
  switch (field) {
455
457
  case 1:
456
458
  var value = /** @type {string} */ (reader.readString());
457
- msg.setProjectId(value);
459
+ msg.setOrganizationId(value);
458
460
  break;
459
461
  case 2:
460
462
  var value = /** @type {string} */ (reader.readString());
461
- msg.setOrganizationId(value);
463
+ msg.setProjectId(value);
462
464
  break;
463
465
  default:
464
466
  reader.skipField();
@@ -473,9 +475,9 @@ proto.gateway.web.v1.ListMetricsRequest.deserializeBinaryFromReader = function(m
473
475
  * Serializes the message to binary data (in protobuf wire format).
474
476
  * @return {!Uint8Array}
475
477
  */
476
- proto.gateway.web.v1.ListMetricsRequest.prototype.serializeBinary = function() {
478
+ proto.gateway.web.v1.StreamMetricsRequest.prototype.serializeBinary = function() {
477
479
  var writer = new jspb.BinaryWriter();
478
- proto.gateway.web.v1.ListMetricsRequest.serializeBinaryToWriter(this, writer);
480
+ proto.gateway.web.v1.StreamMetricsRequest.serializeBinaryToWriter(this, writer);
479
481
  return writer.getResultBuffer();
480
482
  };
481
483
 
@@ -483,20 +485,20 @@ proto.gateway.web.v1.ListMetricsRequest.prototype.serializeBinary = function() {
483
485
  /**
484
486
  * Serializes the given message to binary data (in protobuf wire
485
487
  * format), writing to the given BinaryWriter.
486
- * @param {!proto.gateway.web.v1.ListMetricsRequest} message
488
+ * @param {!proto.gateway.web.v1.StreamMetricsRequest} message
487
489
  * @param {!jspb.BinaryWriter} writer
488
490
  * @suppress {unusedLocalVariables} f is only used for nested messages
489
491
  */
490
- proto.gateway.web.v1.ListMetricsRequest.serializeBinaryToWriter = function(message, writer) {
492
+ proto.gateway.web.v1.StreamMetricsRequest.serializeBinaryToWriter = function(message, writer) {
491
493
  var f = undefined;
492
- f = message.getProjectId();
494
+ f = message.getOrganizationId();
493
495
  if (f.length > 0) {
494
496
  writer.writeString(
495
497
  1,
496
498
  f
497
499
  );
498
500
  }
499
- f = message.getOrganizationId();
501
+ f = message.getProjectId();
500
502
  if (f.length > 0) {
501
503
  writer.writeString(
502
504
  2,
@@ -507,48 +509,67 @@ proto.gateway.web.v1.ListMetricsRequest.serializeBinaryToWriter = function(messa
507
509
 
508
510
 
509
511
  /**
510
- * optional string project_id = 1;
512
+ * optional string organization_id = 1;
511
513
  * @return {string}
512
514
  */
513
- proto.gateway.web.v1.ListMetricsRequest.prototype.getProjectId = function() {
515
+ proto.gateway.web.v1.StreamMetricsRequest.prototype.getOrganizationId = function() {
514
516
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
515
517
  };
516
518
 
517
519
 
518
520
  /**
519
521
  * @param {string} value
520
- * @return {!proto.gateway.web.v1.ListMetricsRequest} returns this
522
+ * @return {!proto.gateway.web.v1.StreamMetricsRequest} returns this
521
523
  */
522
- proto.gateway.web.v1.ListMetricsRequest.prototype.setProjectId = function(value) {
524
+ proto.gateway.web.v1.StreamMetricsRequest.prototype.setOrganizationId = function(value) {
523
525
  return jspb.Message.setProto3StringField(this, 1, value);
524
526
  };
525
527
 
526
528
 
527
529
  /**
528
- * optional string organization_id = 2;
530
+ * optional string project_id = 2;
529
531
  * @return {string}
530
532
  */
531
- proto.gateway.web.v1.ListMetricsRequest.prototype.getOrganizationId = function() {
533
+ proto.gateway.web.v1.StreamMetricsRequest.prototype.getProjectId = function() {
532
534
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
533
535
  };
534
536
 
535
537
 
536
538
  /**
537
539
  * @param {string} value
538
- * @return {!proto.gateway.web.v1.ListMetricsRequest} returns this
540
+ * @return {!proto.gateway.web.v1.StreamMetricsRequest} returns this
539
541
  */
540
- proto.gateway.web.v1.ListMetricsRequest.prototype.setOrganizationId = function(value) {
542
+ proto.gateway.web.v1.StreamMetricsRequest.prototype.setProjectId = function(value) {
541
543
  return jspb.Message.setProto3StringField(this, 2, value);
542
544
  };
543
545
 
544
546
 
545
547
 
546
548
  /**
547
- * List of repeated fields within this message type.
548
- * @private {!Array<number>}
549
+ * Oneof group definitions for this message. Each group defines the field
550
+ * numbers belonging to that group. When of these fields' value is set, all
551
+ * other fields in the group are cleared. During deserialization, if multiple
552
+ * fields are encountered for a group, only the last value seen will be kept.
553
+ * @private {!Array<!Array<number>>}
549
554
  * @const
550
555
  */
551
- proto.gateway.web.v1.ListMetricsResponse.repeatedFields_ = [2];
556
+ proto.gateway.web.v1.MetricCatalogEnvelope.oneofGroups_ = [[1,2]];
557
+
558
+ /**
559
+ * @enum {number}
560
+ */
561
+ proto.gateway.web.v1.MetricCatalogEnvelope.EventCase = {
562
+ EVENT_NOT_SET: 0,
563
+ SNAPSHOT: 1,
564
+ ADDED: 2
565
+ };
566
+
567
+ /**
568
+ * @return {proto.gateway.web.v1.MetricCatalogEnvelope.EventCase}
569
+ */
570
+ proto.gateway.web.v1.MetricCatalogEnvelope.prototype.getEventCase = function() {
571
+ return /** @type {proto.gateway.web.v1.MetricCatalogEnvelope.EventCase} */(jspb.Message.computeOneofCase(this, proto.gateway.web.v1.MetricCatalogEnvelope.oneofGroups_[0]));
572
+ };
552
573
 
553
574
 
554
575
 
@@ -565,8 +586,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
565
586
  * http://goto/soy-param-migration
566
587
  * @return {!Object}
567
588
  */
568
- proto.gateway.web.v1.ListMetricsResponse.prototype.toObject = function(opt_includeInstance) {
569
- return proto.gateway.web.v1.ListMetricsResponse.toObject(opt_includeInstance, this);
589
+ proto.gateway.web.v1.MetricCatalogEnvelope.prototype.toObject = function(opt_includeInstance) {
590
+ return proto.gateway.web.v1.MetricCatalogEnvelope.toObject(opt_includeInstance, this);
570
591
  };
571
592
 
572
593
 
@@ -575,15 +596,14 @@ proto.gateway.web.v1.ListMetricsResponse.prototype.toObject = function(opt_inclu
575
596
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
576
597
  * the JSPB instance for transitional soy proto support:
577
598
  * http://goto/soy-param-migration
578
- * @param {!proto.gateway.web.v1.ListMetricsResponse} msg The msg instance to transform.
599
+ * @param {!proto.gateway.web.v1.MetricCatalogEnvelope} msg The msg instance to transform.
579
600
  * @return {!Object}
580
601
  * @suppress {unusedLocalVariables} f is only used for nested messages
581
602
  */
582
- proto.gateway.web.v1.ListMetricsResponse.toObject = function(includeInstance, msg) {
603
+ proto.gateway.web.v1.MetricCatalogEnvelope.toObject = function(includeInstance, msg) {
583
604
  var f, obj = {
584
- status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
585
- metricsList: jspb.Message.toObjectList(msg.getMetricsList(),
586
- proto.gateway.web.v1.MetricInfo.toObject, includeInstance)
605
+ snapshot: (f = msg.getSnapshot()) && proto.gateway.web.v1.MetricCatalogSnapshot.toObject(includeInstance, f),
606
+ added: (f = msg.getAdded()) && proto.gateway.web.v1.MetricInfo.toObject(includeInstance, f)
587
607
  };
588
608
 
589
609
  if (includeInstance) {
@@ -597,23 +617,23 @@ metricsList: jspb.Message.toObjectList(msg.getMetricsList(),
597
617
  /**
598
618
  * Deserializes binary data (in protobuf wire format).
599
619
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
600
- * @return {!proto.gateway.web.v1.ListMetricsResponse}
620
+ * @return {!proto.gateway.web.v1.MetricCatalogEnvelope}
601
621
  */
602
- proto.gateway.web.v1.ListMetricsResponse.deserializeBinary = function(bytes) {
622
+ proto.gateway.web.v1.MetricCatalogEnvelope.deserializeBinary = function(bytes) {
603
623
  var reader = new jspb.BinaryReader(bytes);
604
- var msg = new proto.gateway.web.v1.ListMetricsResponse;
605
- return proto.gateway.web.v1.ListMetricsResponse.deserializeBinaryFromReader(msg, reader);
624
+ var msg = new proto.gateway.web.v1.MetricCatalogEnvelope;
625
+ return proto.gateway.web.v1.MetricCatalogEnvelope.deserializeBinaryFromReader(msg, reader);
606
626
  };
607
627
 
608
628
 
609
629
  /**
610
630
  * Deserializes binary data (in protobuf wire format) from the
611
631
  * given reader into the given message object.
612
- * @param {!proto.gateway.web.v1.ListMetricsResponse} msg The message object to deserialize into.
632
+ * @param {!proto.gateway.web.v1.MetricCatalogEnvelope} msg The message object to deserialize into.
613
633
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
614
- * @return {!proto.gateway.web.v1.ListMetricsResponse}
634
+ * @return {!proto.gateway.web.v1.MetricCatalogEnvelope}
615
635
  */
616
- proto.gateway.web.v1.ListMetricsResponse.deserializeBinaryFromReader = function(msg, reader) {
636
+ proto.gateway.web.v1.MetricCatalogEnvelope.deserializeBinaryFromReader = function(msg, reader) {
617
637
  while (reader.nextField()) {
618
638
  if (reader.isEndGroup()) {
619
639
  break;
@@ -621,14 +641,14 @@ proto.gateway.web.v1.ListMetricsResponse.deserializeBinaryFromReader = function(
621
641
  var field = reader.getFieldNumber();
622
642
  switch (field) {
623
643
  case 1:
624
- var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
625
- reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
626
- msg.setStatus(value);
644
+ var value = new proto.gateway.web.v1.MetricCatalogSnapshot;
645
+ reader.readMessage(value,proto.gateway.web.v1.MetricCatalogSnapshot.deserializeBinaryFromReader);
646
+ msg.setSnapshot(value);
627
647
  break;
628
648
  case 2:
629
649
  var value = new proto.gateway.web.v1.MetricInfo;
630
650
  reader.readMessage(value,proto.gateway.web.v1.MetricInfo.deserializeBinaryFromReader);
631
- msg.addMetrics(value);
651
+ msg.setAdded(value);
632
652
  break;
633
653
  default:
634
654
  reader.skipField();
@@ -643,9 +663,9 @@ proto.gateway.web.v1.ListMetricsResponse.deserializeBinaryFromReader = function(
643
663
  * Serializes the message to binary data (in protobuf wire format).
644
664
  * @return {!Uint8Array}
645
665
  */
646
- proto.gateway.web.v1.ListMetricsResponse.prototype.serializeBinary = function() {
666
+ proto.gateway.web.v1.MetricCatalogEnvelope.prototype.serializeBinary = function() {
647
667
  var writer = new jspb.BinaryWriter();
648
- proto.gateway.web.v1.ListMetricsResponse.serializeBinaryToWriter(this, writer);
668
+ proto.gateway.web.v1.MetricCatalogEnvelope.serializeBinaryToWriter(this, writer);
649
669
  return writer.getResultBuffer();
650
670
  };
651
671
 
@@ -653,23 +673,23 @@ proto.gateway.web.v1.ListMetricsResponse.prototype.serializeBinary = function()
653
673
  /**
654
674
  * Serializes the given message to binary data (in protobuf wire
655
675
  * format), writing to the given BinaryWriter.
656
- * @param {!proto.gateway.web.v1.ListMetricsResponse} message
676
+ * @param {!proto.gateway.web.v1.MetricCatalogEnvelope} message
657
677
  * @param {!jspb.BinaryWriter} writer
658
678
  * @suppress {unusedLocalVariables} f is only used for nested messages
659
679
  */
660
- proto.gateway.web.v1.ListMetricsResponse.serializeBinaryToWriter = function(message, writer) {
680
+ proto.gateway.web.v1.MetricCatalogEnvelope.serializeBinaryToWriter = function(message, writer) {
661
681
  var f = undefined;
662
- f = message.getStatus();
682
+ f = message.getSnapshot();
663
683
  if (f != null) {
664
684
  writer.writeMessage(
665
685
  1,
666
686
  f,
667
- proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
687
+ proto.gateway.web.v1.MetricCatalogSnapshot.serializeBinaryToWriter
668
688
  );
669
689
  }
670
- f = message.getMetricsList();
671
- if (f.length > 0) {
672
- writer.writeRepeatedMessage(
690
+ f = message.getAdded();
691
+ if (f != null) {
692
+ writer.writeMessage(
673
693
  2,
674
694
  f,
675
695
  proto.gateway.web.v1.MetricInfo.serializeBinaryToWriter
@@ -679,30 +699,30 @@ proto.gateway.web.v1.ListMetricsResponse.serializeBinaryToWriter = function(mess
679
699
 
680
700
 
681
701
  /**
682
- * optional gateway.common.v1.ResponseStatus status = 1;
683
- * @return {?proto.gateway.common.v1.ResponseStatus}
702
+ * optional MetricCatalogSnapshot snapshot = 1;
703
+ * @return {?proto.gateway.web.v1.MetricCatalogSnapshot}
684
704
  */
685
- proto.gateway.web.v1.ListMetricsResponse.prototype.getStatus = function() {
686
- return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
687
- jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
705
+ proto.gateway.web.v1.MetricCatalogEnvelope.prototype.getSnapshot = function() {
706
+ return /** @type{?proto.gateway.web.v1.MetricCatalogSnapshot} */ (
707
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.MetricCatalogSnapshot, 1));
688
708
  };
689
709
 
690
710
 
691
711
  /**
692
- * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
693
- * @return {!proto.gateway.web.v1.ListMetricsResponse} returns this
712
+ * @param {?proto.gateway.web.v1.MetricCatalogSnapshot|undefined} value
713
+ * @return {!proto.gateway.web.v1.MetricCatalogEnvelope} returns this
694
714
  */
695
- proto.gateway.web.v1.ListMetricsResponse.prototype.setStatus = function(value) {
696
- return jspb.Message.setWrapperField(this, 1, value);
715
+ proto.gateway.web.v1.MetricCatalogEnvelope.prototype.setSnapshot = function(value) {
716
+ return jspb.Message.setOneofWrapperField(this, 1, proto.gateway.web.v1.MetricCatalogEnvelope.oneofGroups_[0], value);
697
717
  };
698
718
 
699
719
 
700
720
  /**
701
721
  * Clears the message field making it undefined.
702
- * @return {!proto.gateway.web.v1.ListMetricsResponse} returns this
722
+ * @return {!proto.gateway.web.v1.MetricCatalogEnvelope} returns this
703
723
  */
704
- proto.gateway.web.v1.ListMetricsResponse.prototype.clearStatus = function() {
705
- return this.setStatus(undefined);
724
+ proto.gateway.web.v1.MetricCatalogEnvelope.prototype.clearSnapshot = function() {
725
+ return this.setSnapshot(undefined);
706
726
  };
707
727
 
708
728
 
@@ -710,27 +730,186 @@ proto.gateway.web.v1.ListMetricsResponse.prototype.clearStatus = function() {
710
730
  * Returns whether this field is set.
711
731
  * @return {boolean}
712
732
  */
713
- proto.gateway.web.v1.ListMetricsResponse.prototype.hasStatus = function() {
733
+ proto.gateway.web.v1.MetricCatalogEnvelope.prototype.hasSnapshot = function() {
714
734
  return jspb.Message.getField(this, 1) != null;
715
735
  };
716
736
 
717
737
 
718
738
  /**
719
- * repeated MetricInfo metrics = 2;
739
+ * optional MetricInfo added = 2;
740
+ * @return {?proto.gateway.web.v1.MetricInfo}
741
+ */
742
+ proto.gateway.web.v1.MetricCatalogEnvelope.prototype.getAdded = function() {
743
+ return /** @type{?proto.gateway.web.v1.MetricInfo} */ (
744
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.MetricInfo, 2));
745
+ };
746
+
747
+
748
+ /**
749
+ * @param {?proto.gateway.web.v1.MetricInfo|undefined} value
750
+ * @return {!proto.gateway.web.v1.MetricCatalogEnvelope} returns this
751
+ */
752
+ proto.gateway.web.v1.MetricCatalogEnvelope.prototype.setAdded = function(value) {
753
+ return jspb.Message.setOneofWrapperField(this, 2, proto.gateway.web.v1.MetricCatalogEnvelope.oneofGroups_[0], value);
754
+ };
755
+
756
+
757
+ /**
758
+ * Clears the message field making it undefined.
759
+ * @return {!proto.gateway.web.v1.MetricCatalogEnvelope} returns this
760
+ */
761
+ proto.gateway.web.v1.MetricCatalogEnvelope.prototype.clearAdded = function() {
762
+ return this.setAdded(undefined);
763
+ };
764
+
765
+
766
+ /**
767
+ * Returns whether this field is set.
768
+ * @return {boolean}
769
+ */
770
+ proto.gateway.web.v1.MetricCatalogEnvelope.prototype.hasAdded = function() {
771
+ return jspb.Message.getField(this, 2) != null;
772
+ };
773
+
774
+
775
+
776
+ /**
777
+ * List of repeated fields within this message type.
778
+ * @private {!Array<number>}
779
+ * @const
780
+ */
781
+ proto.gateway.web.v1.MetricCatalogSnapshot.repeatedFields_ = [1];
782
+
783
+
784
+
785
+ if (jspb.Message.GENERATE_TO_OBJECT) {
786
+ /**
787
+ * Creates an object representation of this proto.
788
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
789
+ * Optional fields that are not set will be set to undefined.
790
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
791
+ * For the list of reserved names please see:
792
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
793
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
794
+ * JSPB instance for transitional soy proto support:
795
+ * http://goto/soy-param-migration
796
+ * @return {!Object}
797
+ */
798
+ proto.gateway.web.v1.MetricCatalogSnapshot.prototype.toObject = function(opt_includeInstance) {
799
+ return proto.gateway.web.v1.MetricCatalogSnapshot.toObject(opt_includeInstance, this);
800
+ };
801
+
802
+
803
+ /**
804
+ * Static version of the {@see toObject} method.
805
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
806
+ * the JSPB instance for transitional soy proto support:
807
+ * http://goto/soy-param-migration
808
+ * @param {!proto.gateway.web.v1.MetricCatalogSnapshot} msg The msg instance to transform.
809
+ * @return {!Object}
810
+ * @suppress {unusedLocalVariables} f is only used for nested messages
811
+ */
812
+ proto.gateway.web.v1.MetricCatalogSnapshot.toObject = function(includeInstance, msg) {
813
+ var f, obj = {
814
+ metricsList: jspb.Message.toObjectList(msg.getMetricsList(),
815
+ proto.gateway.web.v1.MetricInfo.toObject, includeInstance)
816
+ };
817
+
818
+ if (includeInstance) {
819
+ obj.$jspbMessageInstance = msg;
820
+ }
821
+ return obj;
822
+ };
823
+ }
824
+
825
+
826
+ /**
827
+ * Deserializes binary data (in protobuf wire format).
828
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
829
+ * @return {!proto.gateway.web.v1.MetricCatalogSnapshot}
830
+ */
831
+ proto.gateway.web.v1.MetricCatalogSnapshot.deserializeBinary = function(bytes) {
832
+ var reader = new jspb.BinaryReader(bytes);
833
+ var msg = new proto.gateway.web.v1.MetricCatalogSnapshot;
834
+ return proto.gateway.web.v1.MetricCatalogSnapshot.deserializeBinaryFromReader(msg, reader);
835
+ };
836
+
837
+
838
+ /**
839
+ * Deserializes binary data (in protobuf wire format) from the
840
+ * given reader into the given message object.
841
+ * @param {!proto.gateway.web.v1.MetricCatalogSnapshot} msg The message object to deserialize into.
842
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
843
+ * @return {!proto.gateway.web.v1.MetricCatalogSnapshot}
844
+ */
845
+ proto.gateway.web.v1.MetricCatalogSnapshot.deserializeBinaryFromReader = function(msg, reader) {
846
+ while (reader.nextField()) {
847
+ if (reader.isEndGroup()) {
848
+ break;
849
+ }
850
+ var field = reader.getFieldNumber();
851
+ switch (field) {
852
+ case 1:
853
+ var value = new proto.gateway.web.v1.MetricInfo;
854
+ reader.readMessage(value,proto.gateway.web.v1.MetricInfo.deserializeBinaryFromReader);
855
+ msg.addMetrics(value);
856
+ break;
857
+ default:
858
+ reader.skipField();
859
+ break;
860
+ }
861
+ }
862
+ return msg;
863
+ };
864
+
865
+
866
+ /**
867
+ * Serializes the message to binary data (in protobuf wire format).
868
+ * @return {!Uint8Array}
869
+ */
870
+ proto.gateway.web.v1.MetricCatalogSnapshot.prototype.serializeBinary = function() {
871
+ var writer = new jspb.BinaryWriter();
872
+ proto.gateway.web.v1.MetricCatalogSnapshot.serializeBinaryToWriter(this, writer);
873
+ return writer.getResultBuffer();
874
+ };
875
+
876
+
877
+ /**
878
+ * Serializes the given message to binary data (in protobuf wire
879
+ * format), writing to the given BinaryWriter.
880
+ * @param {!proto.gateway.web.v1.MetricCatalogSnapshot} message
881
+ * @param {!jspb.BinaryWriter} writer
882
+ * @suppress {unusedLocalVariables} f is only used for nested messages
883
+ */
884
+ proto.gateway.web.v1.MetricCatalogSnapshot.serializeBinaryToWriter = function(message, writer) {
885
+ var f = undefined;
886
+ f = message.getMetricsList();
887
+ if (f.length > 0) {
888
+ writer.writeRepeatedMessage(
889
+ 1,
890
+ f,
891
+ proto.gateway.web.v1.MetricInfo.serializeBinaryToWriter
892
+ );
893
+ }
894
+ };
895
+
896
+
897
+ /**
898
+ * repeated MetricInfo metrics = 1;
720
899
  * @return {!Array<!proto.gateway.web.v1.MetricInfo>}
721
900
  */
722
- proto.gateway.web.v1.ListMetricsResponse.prototype.getMetricsList = function() {
901
+ proto.gateway.web.v1.MetricCatalogSnapshot.prototype.getMetricsList = function() {
723
902
  return /** @type{!Array<!proto.gateway.web.v1.MetricInfo>} */ (
724
- jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.MetricInfo, 2));
903
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.MetricInfo, 1));
725
904
  };
726
905
 
727
906
 
728
907
  /**
729
908
  * @param {!Array<!proto.gateway.web.v1.MetricInfo>} value
730
- * @return {!proto.gateway.web.v1.ListMetricsResponse} returns this
909
+ * @return {!proto.gateway.web.v1.MetricCatalogSnapshot} returns this
731
910
  */
732
- proto.gateway.web.v1.ListMetricsResponse.prototype.setMetricsList = function(value) {
733
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
911
+ proto.gateway.web.v1.MetricCatalogSnapshot.prototype.setMetricsList = function(value) {
912
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
734
913
  };
735
914
 
736
915
 
@@ -739,16 +918,16 @@ proto.gateway.web.v1.ListMetricsResponse.prototype.setMetricsList = function(val
739
918
  * @param {number=} opt_index
740
919
  * @return {!proto.gateway.web.v1.MetricInfo}
741
920
  */
742
- proto.gateway.web.v1.ListMetricsResponse.prototype.addMetrics = function(opt_value, opt_index) {
743
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.MetricInfo, opt_index);
921
+ proto.gateway.web.v1.MetricCatalogSnapshot.prototype.addMetrics = function(opt_value, opt_index) {
922
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.MetricInfo, opt_index);
744
923
  };
745
924
 
746
925
 
747
926
  /**
748
927
  * Clears the list making it empty but non-null.
749
- * @return {!proto.gateway.web.v1.ListMetricsResponse} returns this
928
+ * @return {!proto.gateway.web.v1.MetricCatalogSnapshot} returns this
750
929
  */
751
- proto.gateway.web.v1.ListMetricsResponse.prototype.clearMetricsList = function() {
930
+ proto.gateway.web.v1.MetricCatalogSnapshot.prototype.clearMetricsList = function() {
752
931
  return this.setMetricsList([]);
753
932
  };
754
933
 
@@ -959,8 +1138,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
959
1138
  * http://goto/soy-param-migration
960
1139
  * @return {!Object}
961
1140
  */
962
- proto.gateway.web.v1.ListMetricAttributesRequest.prototype.toObject = function(opt_includeInstance) {
963
- return proto.gateway.web.v1.ListMetricAttributesRequest.toObject(opt_includeInstance, this);
1141
+ proto.gateway.web.v1.StreamMetricAttributesRequest.prototype.toObject = function(opt_includeInstance) {
1142
+ return proto.gateway.web.v1.StreamMetricAttributesRequest.toObject(opt_includeInstance, this);
964
1143
  };
965
1144
 
966
1145
 
@@ -969,15 +1148,15 @@ proto.gateway.web.v1.ListMetricAttributesRequest.prototype.toObject = function(o
969
1148
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
970
1149
  * the JSPB instance for transitional soy proto support:
971
1150
  * http://goto/soy-param-migration
972
- * @param {!proto.gateway.web.v1.ListMetricAttributesRequest} msg The msg instance to transform.
1151
+ * @param {!proto.gateway.web.v1.StreamMetricAttributesRequest} msg The msg instance to transform.
973
1152
  * @return {!Object}
974
1153
  * @suppress {unusedLocalVariables} f is only used for nested messages
975
1154
  */
976
- proto.gateway.web.v1.ListMetricAttributesRequest.toObject = function(includeInstance, msg) {
1155
+ proto.gateway.web.v1.StreamMetricAttributesRequest.toObject = function(includeInstance, msg) {
977
1156
  var f, obj = {
978
- projectId: jspb.Message.getFieldWithDefault(msg, 1, ""),
979
- metricName: jspb.Message.getFieldWithDefault(msg, 2, ""),
980
- organizationId: jspb.Message.getFieldWithDefault(msg, 3, "")
1157
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1158
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1159
+ metricName: jspb.Message.getFieldWithDefault(msg, 3, "")
981
1160
  };
982
1161
 
983
1162
  if (includeInstance) {
@@ -991,23 +1170,23 @@ organizationId: jspb.Message.getFieldWithDefault(msg, 3, "")
991
1170
  /**
992
1171
  * Deserializes binary data (in protobuf wire format).
993
1172
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
994
- * @return {!proto.gateway.web.v1.ListMetricAttributesRequest}
1173
+ * @return {!proto.gateway.web.v1.StreamMetricAttributesRequest}
995
1174
  */
996
- proto.gateway.web.v1.ListMetricAttributesRequest.deserializeBinary = function(bytes) {
1175
+ proto.gateway.web.v1.StreamMetricAttributesRequest.deserializeBinary = function(bytes) {
997
1176
  var reader = new jspb.BinaryReader(bytes);
998
- var msg = new proto.gateway.web.v1.ListMetricAttributesRequest;
999
- return proto.gateway.web.v1.ListMetricAttributesRequest.deserializeBinaryFromReader(msg, reader);
1177
+ var msg = new proto.gateway.web.v1.StreamMetricAttributesRequest;
1178
+ return proto.gateway.web.v1.StreamMetricAttributesRequest.deserializeBinaryFromReader(msg, reader);
1000
1179
  };
1001
1180
 
1002
1181
 
1003
1182
  /**
1004
1183
  * Deserializes binary data (in protobuf wire format) from the
1005
1184
  * given reader into the given message object.
1006
- * @param {!proto.gateway.web.v1.ListMetricAttributesRequest} msg The message object to deserialize into.
1185
+ * @param {!proto.gateway.web.v1.StreamMetricAttributesRequest} msg The message object to deserialize into.
1007
1186
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1008
- * @return {!proto.gateway.web.v1.ListMetricAttributesRequest}
1187
+ * @return {!proto.gateway.web.v1.StreamMetricAttributesRequest}
1009
1188
  */
1010
- proto.gateway.web.v1.ListMetricAttributesRequest.deserializeBinaryFromReader = function(msg, reader) {
1189
+ proto.gateway.web.v1.StreamMetricAttributesRequest.deserializeBinaryFromReader = function(msg, reader) {
1011
1190
  while (reader.nextField()) {
1012
1191
  if (reader.isEndGroup()) {
1013
1192
  break;
@@ -1016,15 +1195,15 @@ proto.gateway.web.v1.ListMetricAttributesRequest.deserializeBinaryFromReader = f
1016
1195
  switch (field) {
1017
1196
  case 1:
1018
1197
  var value = /** @type {string} */ (reader.readString());
1019
- msg.setProjectId(value);
1198
+ msg.setOrganizationId(value);
1020
1199
  break;
1021
1200
  case 2:
1022
1201
  var value = /** @type {string} */ (reader.readString());
1023
- msg.setMetricName(value);
1202
+ msg.setProjectId(value);
1024
1203
  break;
1025
1204
  case 3:
1026
1205
  var value = /** @type {string} */ (reader.readString());
1027
- msg.setOrganizationId(value);
1206
+ msg.setMetricName(value);
1028
1207
  break;
1029
1208
  default:
1030
1209
  reader.skipField();
@@ -1039,9 +1218,9 @@ proto.gateway.web.v1.ListMetricAttributesRequest.deserializeBinaryFromReader = f
1039
1218
  * Serializes the message to binary data (in protobuf wire format).
1040
1219
  * @return {!Uint8Array}
1041
1220
  */
1042
- proto.gateway.web.v1.ListMetricAttributesRequest.prototype.serializeBinary = function() {
1221
+ proto.gateway.web.v1.StreamMetricAttributesRequest.prototype.serializeBinary = function() {
1043
1222
  var writer = new jspb.BinaryWriter();
1044
- proto.gateway.web.v1.ListMetricAttributesRequest.serializeBinaryToWriter(this, writer);
1223
+ proto.gateway.web.v1.StreamMetricAttributesRequest.serializeBinaryToWriter(this, writer);
1045
1224
  return writer.getResultBuffer();
1046
1225
  };
1047
1226
 
@@ -1049,27 +1228,27 @@ proto.gateway.web.v1.ListMetricAttributesRequest.prototype.serializeBinary = fun
1049
1228
  /**
1050
1229
  * Serializes the given message to binary data (in protobuf wire
1051
1230
  * format), writing to the given BinaryWriter.
1052
- * @param {!proto.gateway.web.v1.ListMetricAttributesRequest} message
1231
+ * @param {!proto.gateway.web.v1.StreamMetricAttributesRequest} message
1053
1232
  * @param {!jspb.BinaryWriter} writer
1054
1233
  * @suppress {unusedLocalVariables} f is only used for nested messages
1055
1234
  */
1056
- proto.gateway.web.v1.ListMetricAttributesRequest.serializeBinaryToWriter = function(message, writer) {
1235
+ proto.gateway.web.v1.StreamMetricAttributesRequest.serializeBinaryToWriter = function(message, writer) {
1057
1236
  var f = undefined;
1058
- f = message.getProjectId();
1237
+ f = message.getOrganizationId();
1059
1238
  if (f.length > 0) {
1060
1239
  writer.writeString(
1061
1240
  1,
1062
1241
  f
1063
1242
  );
1064
1243
  }
1065
- f = message.getMetricName();
1244
+ f = message.getProjectId();
1066
1245
  if (f.length > 0) {
1067
1246
  writer.writeString(
1068
1247
  2,
1069
1248
  f
1070
1249
  );
1071
1250
  }
1072
- f = message.getOrganizationId();
1251
+ f = message.getMetricName();
1073
1252
  if (f.length > 0) {
1074
1253
  writer.writeString(
1075
1254
  3,
@@ -1080,66 +1259,85 @@ proto.gateway.web.v1.ListMetricAttributesRequest.serializeBinaryToWriter = funct
1080
1259
 
1081
1260
 
1082
1261
  /**
1083
- * optional string project_id = 1;
1262
+ * optional string organization_id = 1;
1084
1263
  * @return {string}
1085
1264
  */
1086
- proto.gateway.web.v1.ListMetricAttributesRequest.prototype.getProjectId = function() {
1265
+ proto.gateway.web.v1.StreamMetricAttributesRequest.prototype.getOrganizationId = function() {
1087
1266
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1088
1267
  };
1089
1268
 
1090
1269
 
1091
1270
  /**
1092
1271
  * @param {string} value
1093
- * @return {!proto.gateway.web.v1.ListMetricAttributesRequest} returns this
1272
+ * @return {!proto.gateway.web.v1.StreamMetricAttributesRequest} returns this
1094
1273
  */
1095
- proto.gateway.web.v1.ListMetricAttributesRequest.prototype.setProjectId = function(value) {
1274
+ proto.gateway.web.v1.StreamMetricAttributesRequest.prototype.setOrganizationId = function(value) {
1096
1275
  return jspb.Message.setProto3StringField(this, 1, value);
1097
1276
  };
1098
1277
 
1099
1278
 
1100
1279
  /**
1101
- * optional string metric_name = 2;
1280
+ * optional string project_id = 2;
1102
1281
  * @return {string}
1103
1282
  */
1104
- proto.gateway.web.v1.ListMetricAttributesRequest.prototype.getMetricName = function() {
1283
+ proto.gateway.web.v1.StreamMetricAttributesRequest.prototype.getProjectId = function() {
1105
1284
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1106
1285
  };
1107
1286
 
1108
1287
 
1109
1288
  /**
1110
1289
  * @param {string} value
1111
- * @return {!proto.gateway.web.v1.ListMetricAttributesRequest} returns this
1290
+ * @return {!proto.gateway.web.v1.StreamMetricAttributesRequest} returns this
1112
1291
  */
1113
- proto.gateway.web.v1.ListMetricAttributesRequest.prototype.setMetricName = function(value) {
1292
+ proto.gateway.web.v1.StreamMetricAttributesRequest.prototype.setProjectId = function(value) {
1114
1293
  return jspb.Message.setProto3StringField(this, 2, value);
1115
1294
  };
1116
1295
 
1117
1296
 
1118
1297
  /**
1119
- * optional string organization_id = 3;
1298
+ * optional string metric_name = 3;
1120
1299
  * @return {string}
1121
1300
  */
1122
- proto.gateway.web.v1.ListMetricAttributesRequest.prototype.getOrganizationId = function() {
1301
+ proto.gateway.web.v1.StreamMetricAttributesRequest.prototype.getMetricName = function() {
1123
1302
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1124
1303
  };
1125
1304
 
1126
1305
 
1127
1306
  /**
1128
1307
  * @param {string} value
1129
- * @return {!proto.gateway.web.v1.ListMetricAttributesRequest} returns this
1308
+ * @return {!proto.gateway.web.v1.StreamMetricAttributesRequest} returns this
1130
1309
  */
1131
- proto.gateway.web.v1.ListMetricAttributesRequest.prototype.setOrganizationId = function(value) {
1310
+ proto.gateway.web.v1.StreamMetricAttributesRequest.prototype.setMetricName = function(value) {
1132
1311
  return jspb.Message.setProto3StringField(this, 3, value);
1133
1312
  };
1134
1313
 
1135
1314
 
1136
1315
 
1137
1316
  /**
1138
- * List of repeated fields within this message type.
1139
- * @private {!Array<number>}
1317
+ * Oneof group definitions for this message. Each group defines the field
1318
+ * numbers belonging to that group. When of these fields' value is set, all
1319
+ * other fields in the group are cleared. During deserialization, if multiple
1320
+ * fields are encountered for a group, only the last value seen will be kept.
1321
+ * @private {!Array<!Array<number>>}
1140
1322
  * @const
1141
1323
  */
1142
- proto.gateway.web.v1.ListMetricAttributesResponse.repeatedFields_ = [2];
1324
+ proto.gateway.web.v1.MetricAttributeEnvelope.oneofGroups_ = [[1,2]];
1325
+
1326
+ /**
1327
+ * @enum {number}
1328
+ */
1329
+ proto.gateway.web.v1.MetricAttributeEnvelope.EventCase = {
1330
+ EVENT_NOT_SET: 0,
1331
+ SNAPSHOT: 1,
1332
+ ADDED: 2
1333
+ };
1334
+
1335
+ /**
1336
+ * @return {proto.gateway.web.v1.MetricAttributeEnvelope.EventCase}
1337
+ */
1338
+ proto.gateway.web.v1.MetricAttributeEnvelope.prototype.getEventCase = function() {
1339
+ return /** @type {proto.gateway.web.v1.MetricAttributeEnvelope.EventCase} */(jspb.Message.computeOneofCase(this, proto.gateway.web.v1.MetricAttributeEnvelope.oneofGroups_[0]));
1340
+ };
1143
1341
 
1144
1342
 
1145
1343
 
@@ -1156,8 +1354,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1156
1354
  * http://goto/soy-param-migration
1157
1355
  * @return {!Object}
1158
1356
  */
1159
- proto.gateway.web.v1.ListMetricAttributesResponse.prototype.toObject = function(opt_includeInstance) {
1160
- return proto.gateway.web.v1.ListMetricAttributesResponse.toObject(opt_includeInstance, this);
1357
+ proto.gateway.web.v1.MetricAttributeEnvelope.prototype.toObject = function(opt_includeInstance) {
1358
+ return proto.gateway.web.v1.MetricAttributeEnvelope.toObject(opt_includeInstance, this);
1161
1359
  };
1162
1360
 
1163
1361
 
@@ -1166,15 +1364,14 @@ proto.gateway.web.v1.ListMetricAttributesResponse.prototype.toObject = function(
1166
1364
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1167
1365
  * the JSPB instance for transitional soy proto support:
1168
1366
  * http://goto/soy-param-migration
1169
- * @param {!proto.gateway.web.v1.ListMetricAttributesResponse} msg The msg instance to transform.
1367
+ * @param {!proto.gateway.web.v1.MetricAttributeEnvelope} msg The msg instance to transform.
1170
1368
  * @return {!Object}
1171
1369
  * @suppress {unusedLocalVariables} f is only used for nested messages
1172
1370
  */
1173
- proto.gateway.web.v1.ListMetricAttributesResponse.toObject = function(includeInstance, msg) {
1371
+ proto.gateway.web.v1.MetricAttributeEnvelope.toObject = function(includeInstance, msg) {
1174
1372
  var f, obj = {
1175
- status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
1176
- attributesList: jspb.Message.toObjectList(msg.getAttributesList(),
1177
- proto.gateway.web.v1.MetricAttribute.toObject, includeInstance)
1373
+ snapshot: (f = msg.getSnapshot()) && proto.gateway.web.v1.MetricAttributeSnapshot.toObject(includeInstance, f),
1374
+ added: (f = msg.getAdded()) && proto.gateway.web.v1.MetricAttribute.toObject(includeInstance, f)
1178
1375
  };
1179
1376
 
1180
1377
  if (includeInstance) {
@@ -1188,23 +1385,23 @@ attributesList: jspb.Message.toObjectList(msg.getAttributesList(),
1188
1385
  /**
1189
1386
  * Deserializes binary data (in protobuf wire format).
1190
1387
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1191
- * @return {!proto.gateway.web.v1.ListMetricAttributesResponse}
1388
+ * @return {!proto.gateway.web.v1.MetricAttributeEnvelope}
1192
1389
  */
1193
- proto.gateway.web.v1.ListMetricAttributesResponse.deserializeBinary = function(bytes) {
1390
+ proto.gateway.web.v1.MetricAttributeEnvelope.deserializeBinary = function(bytes) {
1194
1391
  var reader = new jspb.BinaryReader(bytes);
1195
- var msg = new proto.gateway.web.v1.ListMetricAttributesResponse;
1196
- return proto.gateway.web.v1.ListMetricAttributesResponse.deserializeBinaryFromReader(msg, reader);
1392
+ var msg = new proto.gateway.web.v1.MetricAttributeEnvelope;
1393
+ return proto.gateway.web.v1.MetricAttributeEnvelope.deserializeBinaryFromReader(msg, reader);
1197
1394
  };
1198
1395
 
1199
1396
 
1200
1397
  /**
1201
1398
  * Deserializes binary data (in protobuf wire format) from the
1202
1399
  * given reader into the given message object.
1203
- * @param {!proto.gateway.web.v1.ListMetricAttributesResponse} msg The message object to deserialize into.
1400
+ * @param {!proto.gateway.web.v1.MetricAttributeEnvelope} msg The message object to deserialize into.
1204
1401
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1205
- * @return {!proto.gateway.web.v1.ListMetricAttributesResponse}
1402
+ * @return {!proto.gateway.web.v1.MetricAttributeEnvelope}
1206
1403
  */
1207
- proto.gateway.web.v1.ListMetricAttributesResponse.deserializeBinaryFromReader = function(msg, reader) {
1404
+ proto.gateway.web.v1.MetricAttributeEnvelope.deserializeBinaryFromReader = function(msg, reader) {
1208
1405
  while (reader.nextField()) {
1209
1406
  if (reader.isEndGroup()) {
1210
1407
  break;
@@ -1212,14 +1409,14 @@ proto.gateway.web.v1.ListMetricAttributesResponse.deserializeBinaryFromReader =
1212
1409
  var field = reader.getFieldNumber();
1213
1410
  switch (field) {
1214
1411
  case 1:
1215
- var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
1216
- reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
1217
- msg.setStatus(value);
1412
+ var value = new proto.gateway.web.v1.MetricAttributeSnapshot;
1413
+ reader.readMessage(value,proto.gateway.web.v1.MetricAttributeSnapshot.deserializeBinaryFromReader);
1414
+ msg.setSnapshot(value);
1218
1415
  break;
1219
1416
  case 2:
1220
1417
  var value = new proto.gateway.web.v1.MetricAttribute;
1221
1418
  reader.readMessage(value,proto.gateway.web.v1.MetricAttribute.deserializeBinaryFromReader);
1222
- msg.addAttributes(value);
1419
+ msg.setAdded(value);
1223
1420
  break;
1224
1421
  default:
1225
1422
  reader.skipField();
@@ -1234,9 +1431,9 @@ proto.gateway.web.v1.ListMetricAttributesResponse.deserializeBinaryFromReader =
1234
1431
  * Serializes the message to binary data (in protobuf wire format).
1235
1432
  * @return {!Uint8Array}
1236
1433
  */
1237
- proto.gateway.web.v1.ListMetricAttributesResponse.prototype.serializeBinary = function() {
1434
+ proto.gateway.web.v1.MetricAttributeEnvelope.prototype.serializeBinary = function() {
1238
1435
  var writer = new jspb.BinaryWriter();
1239
- proto.gateway.web.v1.ListMetricAttributesResponse.serializeBinaryToWriter(this, writer);
1436
+ proto.gateway.web.v1.MetricAttributeEnvelope.serializeBinaryToWriter(this, writer);
1240
1437
  return writer.getResultBuffer();
1241
1438
  };
1242
1439
 
@@ -1244,23 +1441,23 @@ proto.gateway.web.v1.ListMetricAttributesResponse.prototype.serializeBinary = fu
1244
1441
  /**
1245
1442
  * Serializes the given message to binary data (in protobuf wire
1246
1443
  * format), writing to the given BinaryWriter.
1247
- * @param {!proto.gateway.web.v1.ListMetricAttributesResponse} message
1444
+ * @param {!proto.gateway.web.v1.MetricAttributeEnvelope} message
1248
1445
  * @param {!jspb.BinaryWriter} writer
1249
1446
  * @suppress {unusedLocalVariables} f is only used for nested messages
1250
1447
  */
1251
- proto.gateway.web.v1.ListMetricAttributesResponse.serializeBinaryToWriter = function(message, writer) {
1448
+ proto.gateway.web.v1.MetricAttributeEnvelope.serializeBinaryToWriter = function(message, writer) {
1252
1449
  var f = undefined;
1253
- f = message.getStatus();
1450
+ f = message.getSnapshot();
1254
1451
  if (f != null) {
1255
1452
  writer.writeMessage(
1256
1453
  1,
1257
1454
  f,
1258
- proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
1455
+ proto.gateway.web.v1.MetricAttributeSnapshot.serializeBinaryToWriter
1259
1456
  );
1260
1457
  }
1261
- f = message.getAttributesList();
1262
- if (f.length > 0) {
1263
- writer.writeRepeatedMessage(
1458
+ f = message.getAdded();
1459
+ if (f != null) {
1460
+ writer.writeMessage(
1264
1461
  2,
1265
1462
  f,
1266
1463
  proto.gateway.web.v1.MetricAttribute.serializeBinaryToWriter
@@ -1270,30 +1467,30 @@ proto.gateway.web.v1.ListMetricAttributesResponse.serializeBinaryToWriter = func
1270
1467
 
1271
1468
 
1272
1469
  /**
1273
- * optional gateway.common.v1.ResponseStatus status = 1;
1274
- * @return {?proto.gateway.common.v1.ResponseStatus}
1470
+ * optional MetricAttributeSnapshot snapshot = 1;
1471
+ * @return {?proto.gateway.web.v1.MetricAttributeSnapshot}
1275
1472
  */
1276
- proto.gateway.web.v1.ListMetricAttributesResponse.prototype.getStatus = function() {
1277
- return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
1278
- jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
1473
+ proto.gateway.web.v1.MetricAttributeEnvelope.prototype.getSnapshot = function() {
1474
+ return /** @type{?proto.gateway.web.v1.MetricAttributeSnapshot} */ (
1475
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.MetricAttributeSnapshot, 1));
1279
1476
  };
1280
1477
 
1281
1478
 
1282
1479
  /**
1283
- * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
1284
- * @return {!proto.gateway.web.v1.ListMetricAttributesResponse} returns this
1480
+ * @param {?proto.gateway.web.v1.MetricAttributeSnapshot|undefined} value
1481
+ * @return {!proto.gateway.web.v1.MetricAttributeEnvelope} returns this
1285
1482
  */
1286
- proto.gateway.web.v1.ListMetricAttributesResponse.prototype.setStatus = function(value) {
1287
- return jspb.Message.setWrapperField(this, 1, value);
1483
+ proto.gateway.web.v1.MetricAttributeEnvelope.prototype.setSnapshot = function(value) {
1484
+ return jspb.Message.setOneofWrapperField(this, 1, proto.gateway.web.v1.MetricAttributeEnvelope.oneofGroups_[0], value);
1288
1485
  };
1289
1486
 
1290
1487
 
1291
1488
  /**
1292
1489
  * Clears the message field making it undefined.
1293
- * @return {!proto.gateway.web.v1.ListMetricAttributesResponse} returns this
1490
+ * @return {!proto.gateway.web.v1.MetricAttributeEnvelope} returns this
1294
1491
  */
1295
- proto.gateway.web.v1.ListMetricAttributesResponse.prototype.clearStatus = function() {
1296
- return this.setStatus(undefined);
1492
+ proto.gateway.web.v1.MetricAttributeEnvelope.prototype.clearSnapshot = function() {
1493
+ return this.setSnapshot(undefined);
1297
1494
  };
1298
1495
 
1299
1496
 
@@ -1301,46 +1498,45 @@ proto.gateway.web.v1.ListMetricAttributesResponse.prototype.clearStatus = functi
1301
1498
  * Returns whether this field is set.
1302
1499
  * @return {boolean}
1303
1500
  */
1304
- proto.gateway.web.v1.ListMetricAttributesResponse.prototype.hasStatus = function() {
1501
+ proto.gateway.web.v1.MetricAttributeEnvelope.prototype.hasSnapshot = function() {
1305
1502
  return jspb.Message.getField(this, 1) != null;
1306
1503
  };
1307
1504
 
1308
1505
 
1309
1506
  /**
1310
- * repeated MetricAttribute attributes = 2;
1311
- * @return {!Array<!proto.gateway.web.v1.MetricAttribute>}
1507
+ * optional MetricAttribute added = 2;
1508
+ * @return {?proto.gateway.web.v1.MetricAttribute}
1312
1509
  */
1313
- proto.gateway.web.v1.ListMetricAttributesResponse.prototype.getAttributesList = function() {
1314
- return /** @type{!Array<!proto.gateway.web.v1.MetricAttribute>} */ (
1315
- jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.MetricAttribute, 2));
1510
+ proto.gateway.web.v1.MetricAttributeEnvelope.prototype.getAdded = function() {
1511
+ return /** @type{?proto.gateway.web.v1.MetricAttribute} */ (
1512
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.MetricAttribute, 2));
1316
1513
  };
1317
1514
 
1318
1515
 
1319
1516
  /**
1320
- * @param {!Array<!proto.gateway.web.v1.MetricAttribute>} value
1321
- * @return {!proto.gateway.web.v1.ListMetricAttributesResponse} returns this
1517
+ * @param {?proto.gateway.web.v1.MetricAttribute|undefined} value
1518
+ * @return {!proto.gateway.web.v1.MetricAttributeEnvelope} returns this
1322
1519
  */
1323
- proto.gateway.web.v1.ListMetricAttributesResponse.prototype.setAttributesList = function(value) {
1324
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
1520
+ proto.gateway.web.v1.MetricAttributeEnvelope.prototype.setAdded = function(value) {
1521
+ return jspb.Message.setOneofWrapperField(this, 2, proto.gateway.web.v1.MetricAttributeEnvelope.oneofGroups_[0], value);
1325
1522
  };
1326
1523
 
1327
1524
 
1328
1525
  /**
1329
- * @param {!proto.gateway.web.v1.MetricAttribute=} opt_value
1330
- * @param {number=} opt_index
1331
- * @return {!proto.gateway.web.v1.MetricAttribute}
1526
+ * Clears the message field making it undefined.
1527
+ * @return {!proto.gateway.web.v1.MetricAttributeEnvelope} returns this
1332
1528
  */
1333
- proto.gateway.web.v1.ListMetricAttributesResponse.prototype.addAttributes = function(opt_value, opt_index) {
1334
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.MetricAttribute, opt_index);
1529
+ proto.gateway.web.v1.MetricAttributeEnvelope.prototype.clearAdded = function() {
1530
+ return this.setAdded(undefined);
1335
1531
  };
1336
1532
 
1337
1533
 
1338
1534
  /**
1339
- * Clears the list making it empty but non-null.
1340
- * @return {!proto.gateway.web.v1.ListMetricAttributesResponse} returns this
1535
+ * Returns whether this field is set.
1536
+ * @return {boolean}
1341
1537
  */
1342
- proto.gateway.web.v1.ListMetricAttributesResponse.prototype.clearAttributesList = function() {
1343
- return this.setAttributesList([]);
1538
+ proto.gateway.web.v1.MetricAttributeEnvelope.prototype.hasAdded = function() {
1539
+ return jspb.Message.getField(this, 2) != null;
1344
1540
  };
1345
1541
 
1346
1542
 
@@ -1350,7 +1546,7 @@ proto.gateway.web.v1.ListMetricAttributesResponse.prototype.clearAttributesList
1350
1546
  * @private {!Array<number>}
1351
1547
  * @const
1352
1548
  */
1353
- proto.gateway.web.v1.MetricAttribute.repeatedFields_ = [2];
1549
+ proto.gateway.web.v1.MetricAttributeSnapshot.repeatedFields_ = [1];
1354
1550
 
1355
1551
 
1356
1552
 
@@ -1367,8 +1563,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1367
1563
  * http://goto/soy-param-migration
1368
1564
  * @return {!Object}
1369
1565
  */
1370
- proto.gateway.web.v1.MetricAttribute.prototype.toObject = function(opt_includeInstance) {
1371
- return proto.gateway.web.v1.MetricAttribute.toObject(opt_includeInstance, this);
1566
+ proto.gateway.web.v1.MetricAttributeSnapshot.prototype.toObject = function(opt_includeInstance) {
1567
+ return proto.gateway.web.v1.MetricAttributeSnapshot.toObject(opt_includeInstance, this);
1372
1568
  };
1373
1569
 
1374
1570
 
@@ -1377,14 +1573,14 @@ proto.gateway.web.v1.MetricAttribute.prototype.toObject = function(opt_includeIn
1377
1573
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1378
1574
  * the JSPB instance for transitional soy proto support:
1379
1575
  * http://goto/soy-param-migration
1380
- * @param {!proto.gateway.web.v1.MetricAttribute} msg The msg instance to transform.
1576
+ * @param {!proto.gateway.web.v1.MetricAttributeSnapshot} msg The msg instance to transform.
1381
1577
  * @return {!Object}
1382
1578
  * @suppress {unusedLocalVariables} f is only used for nested messages
1383
1579
  */
1384
- proto.gateway.web.v1.MetricAttribute.toObject = function(includeInstance, msg) {
1580
+ proto.gateway.web.v1.MetricAttributeSnapshot.toObject = function(includeInstance, msg) {
1385
1581
  var f, obj = {
1386
- key: jspb.Message.getFieldWithDefault(msg, 1, ""),
1387
- valuesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
1582
+ attributesList: jspb.Message.toObjectList(msg.getAttributesList(),
1583
+ proto.gateway.web.v1.MetricAttribute.toObject, includeInstance)
1388
1584
  };
1389
1585
 
1390
1586
  if (includeInstance) {
@@ -1398,23 +1594,23 @@ valuesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
1398
1594
  /**
1399
1595
  * Deserializes binary data (in protobuf wire format).
1400
1596
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1401
- * @return {!proto.gateway.web.v1.MetricAttribute}
1597
+ * @return {!proto.gateway.web.v1.MetricAttributeSnapshot}
1402
1598
  */
1403
- proto.gateway.web.v1.MetricAttribute.deserializeBinary = function(bytes) {
1599
+ proto.gateway.web.v1.MetricAttributeSnapshot.deserializeBinary = function(bytes) {
1404
1600
  var reader = new jspb.BinaryReader(bytes);
1405
- var msg = new proto.gateway.web.v1.MetricAttribute;
1406
- return proto.gateway.web.v1.MetricAttribute.deserializeBinaryFromReader(msg, reader);
1601
+ var msg = new proto.gateway.web.v1.MetricAttributeSnapshot;
1602
+ return proto.gateway.web.v1.MetricAttributeSnapshot.deserializeBinaryFromReader(msg, reader);
1407
1603
  };
1408
1604
 
1409
1605
 
1410
1606
  /**
1411
1607
  * Deserializes binary data (in protobuf wire format) from the
1412
1608
  * given reader into the given message object.
1413
- * @param {!proto.gateway.web.v1.MetricAttribute} msg The message object to deserialize into.
1609
+ * @param {!proto.gateway.web.v1.MetricAttributeSnapshot} msg The message object to deserialize into.
1414
1610
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1415
- * @return {!proto.gateway.web.v1.MetricAttribute}
1611
+ * @return {!proto.gateway.web.v1.MetricAttributeSnapshot}
1416
1612
  */
1417
- proto.gateway.web.v1.MetricAttribute.deserializeBinaryFromReader = function(msg, reader) {
1613
+ proto.gateway.web.v1.MetricAttributeSnapshot.deserializeBinaryFromReader = function(msg, reader) {
1418
1614
  while (reader.nextField()) {
1419
1615
  if (reader.isEndGroup()) {
1420
1616
  break;
@@ -1422,7 +1618,167 @@ proto.gateway.web.v1.MetricAttribute.deserializeBinaryFromReader = function(msg,
1422
1618
  var field = reader.getFieldNumber();
1423
1619
  switch (field) {
1424
1620
  case 1:
1425
- var value = /** @type {string} */ (reader.readString());
1621
+ var value = new proto.gateway.web.v1.MetricAttribute;
1622
+ reader.readMessage(value,proto.gateway.web.v1.MetricAttribute.deserializeBinaryFromReader);
1623
+ msg.addAttributes(value);
1624
+ break;
1625
+ default:
1626
+ reader.skipField();
1627
+ break;
1628
+ }
1629
+ }
1630
+ return msg;
1631
+ };
1632
+
1633
+
1634
+ /**
1635
+ * Serializes the message to binary data (in protobuf wire format).
1636
+ * @return {!Uint8Array}
1637
+ */
1638
+ proto.gateway.web.v1.MetricAttributeSnapshot.prototype.serializeBinary = function() {
1639
+ var writer = new jspb.BinaryWriter();
1640
+ proto.gateway.web.v1.MetricAttributeSnapshot.serializeBinaryToWriter(this, writer);
1641
+ return writer.getResultBuffer();
1642
+ };
1643
+
1644
+
1645
+ /**
1646
+ * Serializes the given message to binary data (in protobuf wire
1647
+ * format), writing to the given BinaryWriter.
1648
+ * @param {!proto.gateway.web.v1.MetricAttributeSnapshot} message
1649
+ * @param {!jspb.BinaryWriter} writer
1650
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1651
+ */
1652
+ proto.gateway.web.v1.MetricAttributeSnapshot.serializeBinaryToWriter = function(message, writer) {
1653
+ var f = undefined;
1654
+ f = message.getAttributesList();
1655
+ if (f.length > 0) {
1656
+ writer.writeRepeatedMessage(
1657
+ 1,
1658
+ f,
1659
+ proto.gateway.web.v1.MetricAttribute.serializeBinaryToWriter
1660
+ );
1661
+ }
1662
+ };
1663
+
1664
+
1665
+ /**
1666
+ * repeated MetricAttribute attributes = 1;
1667
+ * @return {!Array<!proto.gateway.web.v1.MetricAttribute>}
1668
+ */
1669
+ proto.gateway.web.v1.MetricAttributeSnapshot.prototype.getAttributesList = function() {
1670
+ return /** @type{!Array<!proto.gateway.web.v1.MetricAttribute>} */ (
1671
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.MetricAttribute, 1));
1672
+ };
1673
+
1674
+
1675
+ /**
1676
+ * @param {!Array<!proto.gateway.web.v1.MetricAttribute>} value
1677
+ * @return {!proto.gateway.web.v1.MetricAttributeSnapshot} returns this
1678
+ */
1679
+ proto.gateway.web.v1.MetricAttributeSnapshot.prototype.setAttributesList = function(value) {
1680
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1681
+ };
1682
+
1683
+
1684
+ /**
1685
+ * @param {!proto.gateway.web.v1.MetricAttribute=} opt_value
1686
+ * @param {number=} opt_index
1687
+ * @return {!proto.gateway.web.v1.MetricAttribute}
1688
+ */
1689
+ proto.gateway.web.v1.MetricAttributeSnapshot.prototype.addAttributes = function(opt_value, opt_index) {
1690
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.MetricAttribute, opt_index);
1691
+ };
1692
+
1693
+
1694
+ /**
1695
+ * Clears the list making it empty but non-null.
1696
+ * @return {!proto.gateway.web.v1.MetricAttributeSnapshot} returns this
1697
+ */
1698
+ proto.gateway.web.v1.MetricAttributeSnapshot.prototype.clearAttributesList = function() {
1699
+ return this.setAttributesList([]);
1700
+ };
1701
+
1702
+
1703
+
1704
+ /**
1705
+ * List of repeated fields within this message type.
1706
+ * @private {!Array<number>}
1707
+ * @const
1708
+ */
1709
+ proto.gateway.web.v1.MetricAttribute.repeatedFields_ = [2];
1710
+
1711
+
1712
+
1713
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1714
+ /**
1715
+ * Creates an object representation of this proto.
1716
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1717
+ * Optional fields that are not set will be set to undefined.
1718
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1719
+ * For the list of reserved names please see:
1720
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1721
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1722
+ * JSPB instance for transitional soy proto support:
1723
+ * http://goto/soy-param-migration
1724
+ * @return {!Object}
1725
+ */
1726
+ proto.gateway.web.v1.MetricAttribute.prototype.toObject = function(opt_includeInstance) {
1727
+ return proto.gateway.web.v1.MetricAttribute.toObject(opt_includeInstance, this);
1728
+ };
1729
+
1730
+
1731
+ /**
1732
+ * Static version of the {@see toObject} method.
1733
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1734
+ * the JSPB instance for transitional soy proto support:
1735
+ * http://goto/soy-param-migration
1736
+ * @param {!proto.gateway.web.v1.MetricAttribute} msg The msg instance to transform.
1737
+ * @return {!Object}
1738
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1739
+ */
1740
+ proto.gateway.web.v1.MetricAttribute.toObject = function(includeInstance, msg) {
1741
+ var f, obj = {
1742
+ key: jspb.Message.getFieldWithDefault(msg, 1, ""),
1743
+ valuesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
1744
+ };
1745
+
1746
+ if (includeInstance) {
1747
+ obj.$jspbMessageInstance = msg;
1748
+ }
1749
+ return obj;
1750
+ };
1751
+ }
1752
+
1753
+
1754
+ /**
1755
+ * Deserializes binary data (in protobuf wire format).
1756
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1757
+ * @return {!proto.gateway.web.v1.MetricAttribute}
1758
+ */
1759
+ proto.gateway.web.v1.MetricAttribute.deserializeBinary = function(bytes) {
1760
+ var reader = new jspb.BinaryReader(bytes);
1761
+ var msg = new proto.gateway.web.v1.MetricAttribute;
1762
+ return proto.gateway.web.v1.MetricAttribute.deserializeBinaryFromReader(msg, reader);
1763
+ };
1764
+
1765
+
1766
+ /**
1767
+ * Deserializes binary data (in protobuf wire format) from the
1768
+ * given reader into the given message object.
1769
+ * @param {!proto.gateway.web.v1.MetricAttribute} msg The message object to deserialize into.
1770
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1771
+ * @return {!proto.gateway.web.v1.MetricAttribute}
1772
+ */
1773
+ proto.gateway.web.v1.MetricAttribute.deserializeBinaryFromReader = function(msg, reader) {
1774
+ while (reader.nextField()) {
1775
+ if (reader.isEndGroup()) {
1776
+ break;
1777
+ }
1778
+ var field = reader.getFieldNumber();
1779
+ switch (field) {
1780
+ case 1:
1781
+ var value = /** @type {string} */ (reader.readString());
1426
1782
  msg.setKey(value);
1427
1783
  break;
1428
1784
  case 2:
@@ -1531,13 +1887,6 @@ proto.gateway.web.v1.MetricAttribute.prototype.clearValuesList = function() {
1531
1887
 
1532
1888
 
1533
1889
 
1534
- /**
1535
- * List of repeated fields within this message type.
1536
- * @private {!Array<number>}
1537
- * @const
1538
- */
1539
- proto.gateway.web.v1.MetricQuery.repeatedFields_ = [4];
1540
-
1541
1890
 
1542
1891
 
1543
1892
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1553,8 +1902,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1553
1902
  * http://goto/soy-param-migration
1554
1903
  * @return {!Object}
1555
1904
  */
1556
- proto.gateway.web.v1.MetricQuery.prototype.toObject = function(opt_includeInstance) {
1557
- return proto.gateway.web.v1.MetricQuery.toObject(opt_includeInstance, this);
1905
+ proto.gateway.web.v1.GaugeQueryRequest.prototype.toObject = function(opt_includeInstance) {
1906
+ return proto.gateway.web.v1.GaugeQueryRequest.toObject(opt_includeInstance, this);
1558
1907
  };
1559
1908
 
1560
1909
 
@@ -1563,20 +1912,18 @@ proto.gateway.web.v1.MetricQuery.prototype.toObject = function(opt_includeInstan
1563
1912
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1564
1913
  * the JSPB instance for transitional soy proto support:
1565
1914
  * http://goto/soy-param-migration
1566
- * @param {!proto.gateway.web.v1.MetricQuery} msg The msg instance to transform.
1915
+ * @param {!proto.gateway.web.v1.GaugeQueryRequest} msg The msg instance to transform.
1567
1916
  * @return {!Object}
1568
1917
  * @suppress {unusedLocalVariables} f is only used for nested messages
1569
1918
  */
1570
- proto.gateway.web.v1.MetricQuery.toObject = function(includeInstance, msg) {
1919
+ proto.gateway.web.v1.GaugeQueryRequest.toObject = function(includeInstance, msg) {
1571
1920
  var f, obj = {
1572
- projectId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1573
- metricName: jspb.Message.getFieldWithDefault(msg, 2, ""),
1574
- filter: (f = msg.getFilter()) && proto.gateway.web.v1.MetricFilter.toObject(includeInstance, f),
1575
- groupByList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
1576
- aggregation: jspb.Message.getFieldWithDefault(msg, 5, 0),
1577
- timeWindow: jspb.Message.getFieldWithDefault(msg, 6, 0),
1578
- timeInterval: jspb.Message.getFieldWithDefault(msg, 7, 0),
1579
- organizationId: jspb.Message.getFieldWithDefault(msg, 8, "")
1921
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1922
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1923
+ metricName: jspb.Message.getFieldWithDefault(msg, 3, ""),
1924
+ aggregation: jspb.Message.getFieldWithDefault(msg, 4, 0),
1925
+ timeWindow: jspb.Message.getFieldWithDefault(msg, 5, 0),
1926
+ timeInterval: jspb.Message.getFieldWithDefault(msg, 6, 0)
1580
1927
  };
1581
1928
 
1582
1929
  if (includeInstance) {
@@ -1590,23 +1937,23 @@ organizationId: jspb.Message.getFieldWithDefault(msg, 8, "")
1590
1937
  /**
1591
1938
  * Deserializes binary data (in protobuf wire format).
1592
1939
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1593
- * @return {!proto.gateway.web.v1.MetricQuery}
1940
+ * @return {!proto.gateway.web.v1.GaugeQueryRequest}
1594
1941
  */
1595
- proto.gateway.web.v1.MetricQuery.deserializeBinary = function(bytes) {
1942
+ proto.gateway.web.v1.GaugeQueryRequest.deserializeBinary = function(bytes) {
1596
1943
  var reader = new jspb.BinaryReader(bytes);
1597
- var msg = new proto.gateway.web.v1.MetricQuery;
1598
- return proto.gateway.web.v1.MetricQuery.deserializeBinaryFromReader(msg, reader);
1944
+ var msg = new proto.gateway.web.v1.GaugeQueryRequest;
1945
+ return proto.gateway.web.v1.GaugeQueryRequest.deserializeBinaryFromReader(msg, reader);
1599
1946
  };
1600
1947
 
1601
1948
 
1602
1949
  /**
1603
1950
  * Deserializes binary data (in protobuf wire format) from the
1604
1951
  * given reader into the given message object.
1605
- * @param {!proto.gateway.web.v1.MetricQuery} msg The message object to deserialize into.
1952
+ * @param {!proto.gateway.web.v1.GaugeQueryRequest} msg The message object to deserialize into.
1606
1953
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1607
- * @return {!proto.gateway.web.v1.MetricQuery}
1954
+ * @return {!proto.gateway.web.v1.GaugeQueryRequest}
1608
1955
  */
1609
- proto.gateway.web.v1.MetricQuery.deserializeBinaryFromReader = function(msg, reader) {
1956
+ proto.gateway.web.v1.GaugeQueryRequest.deserializeBinaryFromReader = function(msg, reader) {
1610
1957
  while (reader.nextField()) {
1611
1958
  if (reader.isEndGroup()) {
1612
1959
  break;
@@ -1615,37 +1962,28 @@ proto.gateway.web.v1.MetricQuery.deserializeBinaryFromReader = function(msg, rea
1615
1962
  switch (field) {
1616
1963
  case 1:
1617
1964
  var value = /** @type {string} */ (reader.readString());
1618
- msg.setProjectId(value);
1965
+ msg.setOrganizationId(value);
1619
1966
  break;
1620
1967
  case 2:
1621
1968
  var value = /** @type {string} */ (reader.readString());
1622
- msg.setMetricName(value);
1969
+ msg.setProjectId(value);
1623
1970
  break;
1624
1971
  case 3:
1625
- var value = new proto.gateway.web.v1.MetricFilter;
1626
- reader.readMessage(value,proto.gateway.web.v1.MetricFilter.deserializeBinaryFromReader);
1627
- msg.setFilter(value);
1628
- break;
1629
- case 4:
1630
1972
  var value = /** @type {string} */ (reader.readString());
1631
- msg.addGroupBy(value);
1973
+ msg.setMetricName(value);
1632
1974
  break;
1633
- case 5:
1634
- var value = /** @type {!proto.gateway.web.v1.MetricAggregation} */ (reader.readEnum());
1975
+ case 4:
1976
+ var value = /** @type {!proto.gateway.web.v1.GaugeAggregation} */ (reader.readEnum());
1635
1977
  msg.setAggregation(value);
1636
1978
  break;
1637
- case 6:
1979
+ case 5:
1638
1980
  var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (reader.readEnum());
1639
1981
  msg.setTimeWindow(value);
1640
1982
  break;
1641
- case 7:
1983
+ case 6:
1642
1984
  var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (reader.readEnum());
1643
1985
  msg.setTimeInterval(value);
1644
1986
  break;
1645
- case 8:
1646
- var value = /** @type {string} */ (reader.readString());
1647
- msg.setOrganizationId(value);
1648
- break;
1649
1987
  default:
1650
1988
  reader.skipField();
1651
1989
  break;
@@ -1659,9 +1997,9 @@ proto.gateway.web.v1.MetricQuery.deserializeBinaryFromReader = function(msg, rea
1659
1997
  * Serializes the message to binary data (in protobuf wire format).
1660
1998
  * @return {!Uint8Array}
1661
1999
  */
1662
- proto.gateway.web.v1.MetricQuery.prototype.serializeBinary = function() {
2000
+ proto.gateway.web.v1.GaugeQueryRequest.prototype.serializeBinary = function() {
1663
2001
  var writer = new jspb.BinaryWriter();
1664
- proto.gateway.web.v1.MetricQuery.serializeBinaryToWriter(this, writer);
2002
+ proto.gateway.web.v1.GaugeQueryRequest.serializeBinaryToWriter(this, writer);
1665
2003
  return writer.getResultBuffer();
1666
2004
  };
1667
2005
 
@@ -1669,66 +2007,51 @@ proto.gateway.web.v1.MetricQuery.prototype.serializeBinary = function() {
1669
2007
  /**
1670
2008
  * Serializes the given message to binary data (in protobuf wire
1671
2009
  * format), writing to the given BinaryWriter.
1672
- * @param {!proto.gateway.web.v1.MetricQuery} message
2010
+ * @param {!proto.gateway.web.v1.GaugeQueryRequest} message
1673
2011
  * @param {!jspb.BinaryWriter} writer
1674
2012
  * @suppress {unusedLocalVariables} f is only used for nested messages
1675
2013
  */
1676
- proto.gateway.web.v1.MetricQuery.serializeBinaryToWriter = function(message, writer) {
2014
+ proto.gateway.web.v1.GaugeQueryRequest.serializeBinaryToWriter = function(message, writer) {
1677
2015
  var f = undefined;
1678
- f = message.getProjectId();
2016
+ f = message.getOrganizationId();
1679
2017
  if (f.length > 0) {
1680
2018
  writer.writeString(
1681
2019
  1,
1682
2020
  f
1683
2021
  );
1684
2022
  }
1685
- f = message.getMetricName();
2023
+ f = message.getProjectId();
1686
2024
  if (f.length > 0) {
1687
2025
  writer.writeString(
1688
2026
  2,
1689
2027
  f
1690
2028
  );
1691
2029
  }
1692
- f = message.getFilter();
1693
- if (f != null) {
1694
- writer.writeMessage(
1695
- 3,
1696
- f,
1697
- proto.gateway.web.v1.MetricFilter.serializeBinaryToWriter
1698
- );
1699
- }
1700
- f = message.getGroupByList();
2030
+ f = message.getMetricName();
1701
2031
  if (f.length > 0) {
1702
- writer.writeRepeatedString(
1703
- 4,
2032
+ writer.writeString(
2033
+ 3,
1704
2034
  f
1705
2035
  );
1706
2036
  }
1707
2037
  f = message.getAggregation();
1708
2038
  if (f !== 0.0) {
1709
2039
  writer.writeEnum(
1710
- 5,
2040
+ 4,
1711
2041
  f
1712
2042
  );
1713
2043
  }
1714
2044
  f = message.getTimeWindow();
1715
2045
  if (f !== 0.0) {
1716
2046
  writer.writeEnum(
1717
- 6,
2047
+ 5,
1718
2048
  f
1719
2049
  );
1720
2050
  }
1721
2051
  f = message.getTimeInterval();
1722
2052
  if (f !== 0.0) {
1723
2053
  writer.writeEnum(
1724
- 7,
1725
- f
1726
- );
1727
- }
1728
- f = message.getOrganizationId();
1729
- if (f.length > 0) {
1730
- writer.writeString(
1731
- 8,
2054
+ 6,
1732
2055
  f
1733
2056
  );
1734
2057
  }
@@ -1736,258 +2059,181 @@ proto.gateway.web.v1.MetricQuery.serializeBinaryToWriter = function(message, wri
1736
2059
 
1737
2060
 
1738
2061
  /**
1739
- * optional string project_id = 1;
2062
+ * optional string organization_id = 1;
1740
2063
  * @return {string}
1741
2064
  */
1742
- proto.gateway.web.v1.MetricQuery.prototype.getProjectId = function() {
2065
+ proto.gateway.web.v1.GaugeQueryRequest.prototype.getOrganizationId = function() {
1743
2066
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1744
2067
  };
1745
2068
 
1746
2069
 
1747
2070
  /**
1748
2071
  * @param {string} value
1749
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
2072
+ * @return {!proto.gateway.web.v1.GaugeQueryRequest} returns this
1750
2073
  */
1751
- proto.gateway.web.v1.MetricQuery.prototype.setProjectId = function(value) {
2074
+ proto.gateway.web.v1.GaugeQueryRequest.prototype.setOrganizationId = function(value) {
1752
2075
  return jspb.Message.setProto3StringField(this, 1, value);
1753
2076
  };
1754
2077
 
1755
2078
 
1756
2079
  /**
1757
- * optional string metric_name = 2;
2080
+ * optional string project_id = 2;
1758
2081
  * @return {string}
1759
2082
  */
1760
- proto.gateway.web.v1.MetricQuery.prototype.getMetricName = function() {
2083
+ proto.gateway.web.v1.GaugeQueryRequest.prototype.getProjectId = function() {
1761
2084
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1762
2085
  };
1763
2086
 
1764
2087
 
1765
2088
  /**
1766
2089
  * @param {string} value
1767
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
2090
+ * @return {!proto.gateway.web.v1.GaugeQueryRequest} returns this
1768
2091
  */
1769
- proto.gateway.web.v1.MetricQuery.prototype.setMetricName = function(value) {
2092
+ proto.gateway.web.v1.GaugeQueryRequest.prototype.setProjectId = function(value) {
1770
2093
  return jspb.Message.setProto3StringField(this, 2, value);
1771
2094
  };
1772
2095
 
1773
2096
 
1774
2097
  /**
1775
- * optional MetricFilter filter = 3;
1776
- * @return {?proto.gateway.web.v1.MetricFilter}
2098
+ * optional string metric_name = 3;
2099
+ * @return {string}
1777
2100
  */
1778
- proto.gateway.web.v1.MetricQuery.prototype.getFilter = function() {
1779
- return /** @type{?proto.gateway.web.v1.MetricFilter} */ (
1780
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.MetricFilter, 3));
2101
+ proto.gateway.web.v1.GaugeQueryRequest.prototype.getMetricName = function() {
2102
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1781
2103
  };
1782
2104
 
1783
2105
 
1784
2106
  /**
1785
- * @param {?proto.gateway.web.v1.MetricFilter|undefined} value
1786
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
1787
- */
1788
- proto.gateway.web.v1.MetricQuery.prototype.setFilter = function(value) {
1789
- return jspb.Message.setWrapperField(this, 3, value);
2107
+ * @param {string} value
2108
+ * @return {!proto.gateway.web.v1.GaugeQueryRequest} returns this
2109
+ */
2110
+ proto.gateway.web.v1.GaugeQueryRequest.prototype.setMetricName = function(value) {
2111
+ return jspb.Message.setProto3StringField(this, 3, value);
1790
2112
  };
1791
2113
 
1792
2114
 
1793
2115
  /**
1794
- * Clears the message field making it undefined.
1795
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
2116
+ * optional GaugeAggregation aggregation = 4;
2117
+ * @return {!proto.gateway.web.v1.GaugeAggregation}
1796
2118
  */
1797
- proto.gateway.web.v1.MetricQuery.prototype.clearFilter = function() {
1798
- return this.setFilter(undefined);
2119
+ proto.gateway.web.v1.GaugeQueryRequest.prototype.getAggregation = function() {
2120
+ return /** @type {!proto.gateway.web.v1.GaugeAggregation} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1799
2121
  };
1800
2122
 
1801
2123
 
1802
2124
  /**
1803
- * Returns whether this field is set.
1804
- * @return {boolean}
2125
+ * @param {!proto.gateway.web.v1.GaugeAggregation} value
2126
+ * @return {!proto.gateway.web.v1.GaugeQueryRequest} returns this
1805
2127
  */
1806
- proto.gateway.web.v1.MetricQuery.prototype.hasFilter = function() {
1807
- return jspb.Message.getField(this, 3) != null;
2128
+ proto.gateway.web.v1.GaugeQueryRequest.prototype.setAggregation = function(value) {
2129
+ return jspb.Message.setProto3EnumField(this, 4, value);
1808
2130
  };
1809
2131
 
1810
2132
 
1811
2133
  /**
1812
- * repeated string group_by = 4;
1813
- * @return {!Array<string>}
2134
+ * optional AnalyticsTimeWindow time_window = 5;
2135
+ * @return {!proto.gateway.web.v1.AnalyticsTimeWindow}
1814
2136
  */
1815
- proto.gateway.web.v1.MetricQuery.prototype.getGroupByList = function() {
1816
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
2137
+ proto.gateway.web.v1.GaugeQueryRequest.prototype.getTimeWindow = function() {
2138
+ return /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1817
2139
  };
1818
2140
 
1819
2141
 
1820
2142
  /**
1821
- * @param {!Array<string>} value
1822
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
2143
+ * @param {!proto.gateway.web.v1.AnalyticsTimeWindow} value
2144
+ * @return {!proto.gateway.web.v1.GaugeQueryRequest} returns this
1823
2145
  */
1824
- proto.gateway.web.v1.MetricQuery.prototype.setGroupByList = function(value) {
1825
- return jspb.Message.setField(this, 4, value || []);
2146
+ proto.gateway.web.v1.GaugeQueryRequest.prototype.setTimeWindow = function(value) {
2147
+ return jspb.Message.setProto3EnumField(this, 5, value);
1826
2148
  };
1827
2149
 
1828
2150
 
1829
2151
  /**
1830
- * @param {string} value
1831
- * @param {number=} opt_index
1832
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
2152
+ * optional AnalyticsTimeInterval time_interval = 6;
2153
+ * @return {!proto.gateway.web.v1.AnalyticsTimeInterval}
1833
2154
  */
1834
- proto.gateway.web.v1.MetricQuery.prototype.addGroupBy = function(value, opt_index) {
1835
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
2155
+ proto.gateway.web.v1.GaugeQueryRequest.prototype.getTimeInterval = function() {
2156
+ return /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1836
2157
  };
1837
2158
 
1838
2159
 
1839
2160
  /**
1840
- * Clears the list making it empty but non-null.
1841
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
2161
+ * @param {!proto.gateway.web.v1.AnalyticsTimeInterval} value
2162
+ * @return {!proto.gateway.web.v1.GaugeQueryRequest} returns this
1842
2163
  */
1843
- proto.gateway.web.v1.MetricQuery.prototype.clearGroupByList = function() {
1844
- return this.setGroupByList([]);
2164
+ proto.gateway.web.v1.GaugeQueryRequest.prototype.setTimeInterval = function(value) {
2165
+ return jspb.Message.setProto3EnumField(this, 6, value);
1845
2166
  };
1846
2167
 
1847
2168
 
2169
+
2170
+
2171
+
2172
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1848
2173
  /**
1849
- * optional MetricAggregation aggregation = 5;
1850
- * @return {!proto.gateway.web.v1.MetricAggregation}
2174
+ * Creates an object representation of this proto.
2175
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2176
+ * Optional fields that are not set will be set to undefined.
2177
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2178
+ * For the list of reserved names please see:
2179
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2180
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2181
+ * JSPB instance for transitional soy proto support:
2182
+ * http://goto/soy-param-migration
2183
+ * @return {!Object}
1851
2184
  */
1852
- proto.gateway.web.v1.MetricQuery.prototype.getAggregation = function() {
1853
- return /** @type {!proto.gateway.web.v1.MetricAggregation} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2185
+ proto.gateway.web.v1.SumQueryRequest.prototype.toObject = function(opt_includeInstance) {
2186
+ return proto.gateway.web.v1.SumQueryRequest.toObject(opt_includeInstance, this);
1854
2187
  };
1855
2188
 
1856
2189
 
1857
2190
  /**
1858
- * @param {!proto.gateway.web.v1.MetricAggregation} value
1859
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
2191
+ * Static version of the {@see toObject} method.
2192
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2193
+ * the JSPB instance for transitional soy proto support:
2194
+ * http://goto/soy-param-migration
2195
+ * @param {!proto.gateway.web.v1.SumQueryRequest} msg The msg instance to transform.
2196
+ * @return {!Object}
2197
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1860
2198
  */
1861
- proto.gateway.web.v1.MetricQuery.prototype.setAggregation = function(value) {
1862
- return jspb.Message.setProto3EnumField(this, 5, value);
2199
+ proto.gateway.web.v1.SumQueryRequest.toObject = function(includeInstance, msg) {
2200
+ var f, obj = {
2201
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2202
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2203
+ metricName: jspb.Message.getFieldWithDefault(msg, 3, ""),
2204
+ aggregation: jspb.Message.getFieldWithDefault(msg, 4, 0),
2205
+ timeWindow: jspb.Message.getFieldWithDefault(msg, 5, 0),
2206
+ timeInterval: jspb.Message.getFieldWithDefault(msg, 6, 0)
2207
+ };
2208
+
2209
+ if (includeInstance) {
2210
+ obj.$jspbMessageInstance = msg;
2211
+ }
2212
+ return obj;
1863
2213
  };
2214
+ }
1864
2215
 
1865
2216
 
1866
2217
  /**
1867
- * optional AnalyticsTimeWindow time_window = 6;
1868
- * @return {!proto.gateway.web.v1.AnalyticsTimeWindow}
2218
+ * Deserializes binary data (in protobuf wire format).
2219
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2220
+ * @return {!proto.gateway.web.v1.SumQueryRequest}
1869
2221
  */
1870
- proto.gateway.web.v1.MetricQuery.prototype.getTimeWindow = function() {
1871
- return /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1872
- };
1873
-
1874
-
1875
- /**
1876
- * @param {!proto.gateway.web.v1.AnalyticsTimeWindow} value
1877
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
1878
- */
1879
- proto.gateway.web.v1.MetricQuery.prototype.setTimeWindow = function(value) {
1880
- return jspb.Message.setProto3EnumField(this, 6, value);
1881
- };
1882
-
1883
-
1884
- /**
1885
- * optional AnalyticsTimeInterval time_interval = 7;
1886
- * @return {!proto.gateway.web.v1.AnalyticsTimeInterval}
1887
- */
1888
- proto.gateway.web.v1.MetricQuery.prototype.getTimeInterval = function() {
1889
- return /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
1890
- };
1891
-
1892
-
1893
- /**
1894
- * @param {!proto.gateway.web.v1.AnalyticsTimeInterval} value
1895
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
1896
- */
1897
- proto.gateway.web.v1.MetricQuery.prototype.setTimeInterval = function(value) {
1898
- return jspb.Message.setProto3EnumField(this, 7, value);
1899
- };
1900
-
1901
-
1902
- /**
1903
- * optional string organization_id = 8;
1904
- * @return {string}
1905
- */
1906
- proto.gateway.web.v1.MetricQuery.prototype.getOrganizationId = function() {
1907
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1908
- };
1909
-
1910
-
1911
- /**
1912
- * @param {string} value
1913
- * @return {!proto.gateway.web.v1.MetricQuery} returns this
1914
- */
1915
- proto.gateway.web.v1.MetricQuery.prototype.setOrganizationId = function(value) {
1916
- return jspb.Message.setProto3StringField(this, 8, value);
1917
- };
1918
-
1919
-
1920
-
1921
- /**
1922
- * List of repeated fields within this message type.
1923
- * @private {!Array<number>}
1924
- * @const
1925
- */
1926
- proto.gateway.web.v1.MetricFilter.repeatedFields_ = [1];
1927
-
1928
-
1929
-
1930
- if (jspb.Message.GENERATE_TO_OBJECT) {
1931
- /**
1932
- * Creates an object representation of this proto.
1933
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1934
- * Optional fields that are not set will be set to undefined.
1935
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1936
- * For the list of reserved names please see:
1937
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1938
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1939
- * JSPB instance for transitional soy proto support:
1940
- * http://goto/soy-param-migration
1941
- * @return {!Object}
1942
- */
1943
- proto.gateway.web.v1.MetricFilter.prototype.toObject = function(opt_includeInstance) {
1944
- return proto.gateway.web.v1.MetricFilter.toObject(opt_includeInstance, this);
1945
- };
1946
-
1947
-
1948
- /**
1949
- * Static version of the {@see toObject} method.
1950
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1951
- * the JSPB instance for transitional soy proto support:
1952
- * http://goto/soy-param-migration
1953
- * @param {!proto.gateway.web.v1.MetricFilter} msg The msg instance to transform.
1954
- * @return {!Object}
1955
- * @suppress {unusedLocalVariables} f is only used for nested messages
1956
- */
1957
- proto.gateway.web.v1.MetricFilter.toObject = function(includeInstance, msg) {
1958
- var f, obj = {
1959
- serviceNamesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
1960
- attributeEqualsMap: (f = msg.getAttributeEqualsMap()) ? f.toObject(includeInstance, undefined) : []
1961
- };
1962
-
1963
- if (includeInstance) {
1964
- obj.$jspbMessageInstance = msg;
1965
- }
1966
- return obj;
1967
- };
1968
- }
1969
-
1970
-
1971
- /**
1972
- * Deserializes binary data (in protobuf wire format).
1973
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1974
- * @return {!proto.gateway.web.v1.MetricFilter}
1975
- */
1976
- proto.gateway.web.v1.MetricFilter.deserializeBinary = function(bytes) {
1977
- var reader = new jspb.BinaryReader(bytes);
1978
- var msg = new proto.gateway.web.v1.MetricFilter;
1979
- return proto.gateway.web.v1.MetricFilter.deserializeBinaryFromReader(msg, reader);
2222
+ proto.gateway.web.v1.SumQueryRequest.deserializeBinary = function(bytes) {
2223
+ var reader = new jspb.BinaryReader(bytes);
2224
+ var msg = new proto.gateway.web.v1.SumQueryRequest;
2225
+ return proto.gateway.web.v1.SumQueryRequest.deserializeBinaryFromReader(msg, reader);
1980
2226
  };
1981
2227
 
1982
2228
 
1983
2229
  /**
1984
2230
  * Deserializes binary data (in protobuf wire format) from the
1985
2231
  * given reader into the given message object.
1986
- * @param {!proto.gateway.web.v1.MetricFilter} msg The message object to deserialize into.
2232
+ * @param {!proto.gateway.web.v1.SumQueryRequest} msg The message object to deserialize into.
1987
2233
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1988
- * @return {!proto.gateway.web.v1.MetricFilter}
2234
+ * @return {!proto.gateway.web.v1.SumQueryRequest}
1989
2235
  */
1990
- proto.gateway.web.v1.MetricFilter.deserializeBinaryFromReader = function(msg, reader) {
2236
+ proto.gateway.web.v1.SumQueryRequest.deserializeBinaryFromReader = function(msg, reader) {
1991
2237
  while (reader.nextField()) {
1992
2238
  if (reader.isEndGroup()) {
1993
2239
  break;
@@ -1996,13 +2242,27 @@ proto.gateway.web.v1.MetricFilter.deserializeBinaryFromReader = function(msg, re
1996
2242
  switch (field) {
1997
2243
  case 1:
1998
2244
  var value = /** @type {string} */ (reader.readString());
1999
- msg.addServiceNames(value);
2245
+ msg.setOrganizationId(value);
2000
2246
  break;
2001
2247
  case 2:
2002
- var value = msg.getAttributeEqualsMap();
2003
- reader.readMessage(value, function(message, reader) {
2004
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
2005
- });
2248
+ var value = /** @type {string} */ (reader.readString());
2249
+ msg.setProjectId(value);
2250
+ break;
2251
+ case 3:
2252
+ var value = /** @type {string} */ (reader.readString());
2253
+ msg.setMetricName(value);
2254
+ break;
2255
+ case 4:
2256
+ var value = /** @type {!proto.gateway.web.v1.SumAggregation} */ (reader.readEnum());
2257
+ msg.setAggregation(value);
2258
+ break;
2259
+ case 5:
2260
+ var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (reader.readEnum());
2261
+ msg.setTimeWindow(value);
2262
+ break;
2263
+ case 6:
2264
+ var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (reader.readEnum());
2265
+ msg.setTimeInterval(value);
2006
2266
  break;
2007
2267
  default:
2008
2268
  reader.skipField();
@@ -2017,9 +2277,9 @@ proto.gateway.web.v1.MetricFilter.deserializeBinaryFromReader = function(msg, re
2017
2277
  * Serializes the message to binary data (in protobuf wire format).
2018
2278
  * @return {!Uint8Array}
2019
2279
  */
2020
- proto.gateway.web.v1.MetricFilter.prototype.serializeBinary = function() {
2280
+ proto.gateway.web.v1.SumQueryRequest.prototype.serializeBinary = function() {
2021
2281
  var writer = new jspb.BinaryWriter();
2022
- proto.gateway.web.v1.MetricFilter.serializeBinaryToWriter(this, writer);
2282
+ proto.gateway.web.v1.SumQueryRequest.serializeBinaryToWriter(this, writer);
2023
2283
  return writer.getResultBuffer();
2024
2284
  };
2025
2285
 
@@ -2027,436 +2287,162 @@ proto.gateway.web.v1.MetricFilter.prototype.serializeBinary = function() {
2027
2287
  /**
2028
2288
  * Serializes the given message to binary data (in protobuf wire
2029
2289
  * format), writing to the given BinaryWriter.
2030
- * @param {!proto.gateway.web.v1.MetricFilter} message
2290
+ * @param {!proto.gateway.web.v1.SumQueryRequest} message
2031
2291
  * @param {!jspb.BinaryWriter} writer
2032
2292
  * @suppress {unusedLocalVariables} f is only used for nested messages
2033
2293
  */
2034
- proto.gateway.web.v1.MetricFilter.serializeBinaryToWriter = function(message, writer) {
2294
+ proto.gateway.web.v1.SumQueryRequest.serializeBinaryToWriter = function(message, writer) {
2035
2295
  var f = undefined;
2036
- f = message.getServiceNamesList();
2296
+ f = message.getOrganizationId();
2037
2297
  if (f.length > 0) {
2038
- writer.writeRepeatedString(
2298
+ writer.writeString(
2039
2299
  1,
2040
2300
  f
2041
2301
  );
2042
2302
  }
2043
- f = message.getAttributeEqualsMap(true);
2044
- if (f && f.getLength() > 0) {
2045
- f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
2303
+ f = message.getProjectId();
2304
+ if (f.length > 0) {
2305
+ writer.writeString(
2306
+ 2,
2307
+ f
2308
+ );
2046
2309
  }
2047
- };
2048
-
2049
-
2050
- /**
2051
- * repeated string service_names = 1;
2052
- * @return {!Array<string>}
2053
- */
2054
- proto.gateway.web.v1.MetricFilter.prototype.getServiceNamesList = function() {
2055
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2056
- };
2057
-
2058
-
2059
- /**
2060
- * @param {!Array<string>} value
2061
- * @return {!proto.gateway.web.v1.MetricFilter} returns this
2062
- */
2063
- proto.gateway.web.v1.MetricFilter.prototype.setServiceNamesList = function(value) {
2064
- return jspb.Message.setField(this, 1, value || []);
2065
- };
2066
-
2067
-
2068
- /**
2069
- * @param {string} value
2070
- * @param {number=} opt_index
2071
- * @return {!proto.gateway.web.v1.MetricFilter} returns this
2072
- */
2073
- proto.gateway.web.v1.MetricFilter.prototype.addServiceNames = function(value, opt_index) {
2074
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2075
- };
2076
-
2077
-
2078
- /**
2079
- * Clears the list making it empty but non-null.
2080
- * @return {!proto.gateway.web.v1.MetricFilter} returns this
2081
- */
2082
- proto.gateway.web.v1.MetricFilter.prototype.clearServiceNamesList = function() {
2083
- return this.setServiceNamesList([]);
2084
- };
2085
-
2086
-
2087
- /**
2088
- * map<string, string> attribute_equals = 2;
2089
- * @param {boolean=} opt_noLazyCreate Do not create the map if
2090
- * empty, instead returning `undefined`
2091
- * @return {!jspb.Map<string,string>}
2092
- */
2093
- proto.gateway.web.v1.MetricFilter.prototype.getAttributeEqualsMap = function(opt_noLazyCreate) {
2094
- return /** @type {!jspb.Map<string,string>} */ (
2095
- jspb.Message.getMapField(this, 2, opt_noLazyCreate,
2096
- null));
2097
- };
2098
-
2099
-
2100
- /**
2101
- * Clears values from the map. The map will be non-null.
2102
- * @return {!proto.gateway.web.v1.MetricFilter} returns this
2103
- */
2104
- proto.gateway.web.v1.MetricFilter.prototype.clearAttributeEqualsMap = function() {
2105
- this.getAttributeEqualsMap().clear();
2106
- return this;
2107
- };
2108
-
2109
-
2110
-
2111
-
2112
-
2113
- if (jspb.Message.GENERATE_TO_OBJECT) {
2114
- /**
2115
- * Creates an object representation of this proto.
2116
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2117
- * Optional fields that are not set will be set to undefined.
2118
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2119
- * For the list of reserved names please see:
2120
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2121
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2122
- * JSPB instance for transitional soy proto support:
2123
- * http://goto/soy-param-migration
2124
- * @return {!Object}
2125
- */
2126
- proto.gateway.web.v1.QueryMetricsRequest.prototype.toObject = function(opt_includeInstance) {
2127
- return proto.gateway.web.v1.QueryMetricsRequest.toObject(opt_includeInstance, this);
2128
- };
2129
-
2130
-
2131
- /**
2132
- * Static version of the {@see toObject} method.
2133
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2134
- * the JSPB instance for transitional soy proto support:
2135
- * http://goto/soy-param-migration
2136
- * @param {!proto.gateway.web.v1.QueryMetricsRequest} msg The msg instance to transform.
2137
- * @return {!Object}
2138
- * @suppress {unusedLocalVariables} f is only used for nested messages
2139
- */
2140
- proto.gateway.web.v1.QueryMetricsRequest.toObject = function(includeInstance, msg) {
2141
- var f, obj = {
2142
- query: (f = msg.getQuery()) && proto.gateway.web.v1.MetricQuery.toObject(includeInstance, f)
2143
- };
2144
-
2145
- if (includeInstance) {
2146
- obj.$jspbMessageInstance = msg;
2310
+ f = message.getMetricName();
2311
+ if (f.length > 0) {
2312
+ writer.writeString(
2313
+ 3,
2314
+ f
2315
+ );
2147
2316
  }
2148
- return obj;
2149
- };
2150
- }
2151
-
2152
-
2153
- /**
2154
- * Deserializes binary data (in protobuf wire format).
2155
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2156
- * @return {!proto.gateway.web.v1.QueryMetricsRequest}
2157
- */
2158
- proto.gateway.web.v1.QueryMetricsRequest.deserializeBinary = function(bytes) {
2159
- var reader = new jspb.BinaryReader(bytes);
2160
- var msg = new proto.gateway.web.v1.QueryMetricsRequest;
2161
- return proto.gateway.web.v1.QueryMetricsRequest.deserializeBinaryFromReader(msg, reader);
2162
- };
2163
-
2164
-
2165
- /**
2166
- * Deserializes binary data (in protobuf wire format) from the
2167
- * given reader into the given message object.
2168
- * @param {!proto.gateway.web.v1.QueryMetricsRequest} msg The message object to deserialize into.
2169
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2170
- * @return {!proto.gateway.web.v1.QueryMetricsRequest}
2171
- */
2172
- proto.gateway.web.v1.QueryMetricsRequest.deserializeBinaryFromReader = function(msg, reader) {
2173
- while (reader.nextField()) {
2174
- if (reader.isEndGroup()) {
2175
- break;
2176
- }
2177
- var field = reader.getFieldNumber();
2178
- switch (field) {
2179
- case 1:
2180
- var value = new proto.gateway.web.v1.MetricQuery;
2181
- reader.readMessage(value,proto.gateway.web.v1.MetricQuery.deserializeBinaryFromReader);
2182
- msg.setQuery(value);
2183
- break;
2184
- default:
2185
- reader.skipField();
2186
- break;
2187
- }
2317
+ f = message.getAggregation();
2318
+ if (f !== 0.0) {
2319
+ writer.writeEnum(
2320
+ 4,
2321
+ f
2322
+ );
2188
2323
  }
2189
- return msg;
2190
- };
2191
-
2192
-
2193
- /**
2194
- * Serializes the message to binary data (in protobuf wire format).
2195
- * @return {!Uint8Array}
2196
- */
2197
- proto.gateway.web.v1.QueryMetricsRequest.prototype.serializeBinary = function() {
2198
- var writer = new jspb.BinaryWriter();
2199
- proto.gateway.web.v1.QueryMetricsRequest.serializeBinaryToWriter(this, writer);
2200
- return writer.getResultBuffer();
2201
- };
2202
-
2203
-
2204
- /**
2205
- * Serializes the given message to binary data (in protobuf wire
2206
- * format), writing to the given BinaryWriter.
2207
- * @param {!proto.gateway.web.v1.QueryMetricsRequest} message
2208
- * @param {!jspb.BinaryWriter} writer
2209
- * @suppress {unusedLocalVariables} f is only used for nested messages
2210
- */
2211
- proto.gateway.web.v1.QueryMetricsRequest.serializeBinaryToWriter = function(message, writer) {
2212
- var f = undefined;
2213
- f = message.getQuery();
2214
- if (f != null) {
2215
- writer.writeMessage(
2216
- 1,
2217
- f,
2218
- proto.gateway.web.v1.MetricQuery.serializeBinaryToWriter
2324
+ f = message.getTimeWindow();
2325
+ if (f !== 0.0) {
2326
+ writer.writeEnum(
2327
+ 5,
2328
+ f
2219
2329
  );
2220
2330
  }
2221
- };
2222
-
2223
-
2224
- /**
2225
- * optional MetricQuery query = 1;
2226
- * @return {?proto.gateway.web.v1.MetricQuery}
2227
- */
2228
- proto.gateway.web.v1.QueryMetricsRequest.prototype.getQuery = function() {
2229
- return /** @type{?proto.gateway.web.v1.MetricQuery} */ (
2230
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.MetricQuery, 1));
2231
- };
2232
-
2233
-
2234
- /**
2235
- * @param {?proto.gateway.web.v1.MetricQuery|undefined} value
2236
- * @return {!proto.gateway.web.v1.QueryMetricsRequest} returns this
2237
- */
2238
- proto.gateway.web.v1.QueryMetricsRequest.prototype.setQuery = function(value) {
2239
- return jspb.Message.setWrapperField(this, 1, value);
2240
- };
2241
-
2242
-
2243
- /**
2244
- * Clears the message field making it undefined.
2245
- * @return {!proto.gateway.web.v1.QueryMetricsRequest} returns this
2246
- */
2247
- proto.gateway.web.v1.QueryMetricsRequest.prototype.clearQuery = function() {
2248
- return this.setQuery(undefined);
2249
- };
2250
-
2251
-
2252
- /**
2253
- * Returns whether this field is set.
2254
- * @return {boolean}
2255
- */
2256
- proto.gateway.web.v1.QueryMetricsRequest.prototype.hasQuery = function() {
2257
- return jspb.Message.getField(this, 1) != null;
2258
- };
2259
-
2260
-
2261
-
2262
-
2263
-
2264
- if (jspb.Message.GENERATE_TO_OBJECT) {
2265
- /**
2266
- * Creates an object representation of this proto.
2267
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2268
- * Optional fields that are not set will be set to undefined.
2269
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2270
- * For the list of reserved names please see:
2271
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2272
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2273
- * JSPB instance for transitional soy proto support:
2274
- * http://goto/soy-param-migration
2275
- * @return {!Object}
2276
- */
2277
- proto.gateway.web.v1.QueryMetricsResponse.prototype.toObject = function(opt_includeInstance) {
2278
- return proto.gateway.web.v1.QueryMetricsResponse.toObject(opt_includeInstance, this);
2279
- };
2280
-
2281
-
2282
- /**
2283
- * Static version of the {@see toObject} method.
2284
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2285
- * the JSPB instance for transitional soy proto support:
2286
- * http://goto/soy-param-migration
2287
- * @param {!proto.gateway.web.v1.QueryMetricsResponse} msg The msg instance to transform.
2288
- * @return {!Object}
2289
- * @suppress {unusedLocalVariables} f is only used for nested messages
2290
- */
2291
- proto.gateway.web.v1.QueryMetricsResponse.toObject = function(includeInstance, msg) {
2292
- var f, obj = {
2293
- status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
2294
- snapshot: (f = msg.getSnapshot()) && proto.gateway.web.v1.MetricAnalyticsSnapshot.toObject(includeInstance, f)
2295
- };
2296
-
2297
- if (includeInstance) {
2298
- obj.$jspbMessageInstance = msg;
2331
+ f = message.getTimeInterval();
2332
+ if (f !== 0.0) {
2333
+ writer.writeEnum(
2334
+ 6,
2335
+ f
2336
+ );
2299
2337
  }
2300
- return obj;
2301
2338
  };
2302
- }
2303
2339
 
2304
2340
 
2305
2341
  /**
2306
- * Deserializes binary data (in protobuf wire format).
2307
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2308
- * @return {!proto.gateway.web.v1.QueryMetricsResponse}
2342
+ * optional string organization_id = 1;
2343
+ * @return {string}
2309
2344
  */
2310
- proto.gateway.web.v1.QueryMetricsResponse.deserializeBinary = function(bytes) {
2311
- var reader = new jspb.BinaryReader(bytes);
2312
- var msg = new proto.gateway.web.v1.QueryMetricsResponse;
2313
- return proto.gateway.web.v1.QueryMetricsResponse.deserializeBinaryFromReader(msg, reader);
2345
+ proto.gateway.web.v1.SumQueryRequest.prototype.getOrganizationId = function() {
2346
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2314
2347
  };
2315
2348
 
2316
2349
 
2317
2350
  /**
2318
- * Deserializes binary data (in protobuf wire format) from the
2319
- * given reader into the given message object.
2320
- * @param {!proto.gateway.web.v1.QueryMetricsResponse} msg The message object to deserialize into.
2321
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2322
- * @return {!proto.gateway.web.v1.QueryMetricsResponse}
2351
+ * @param {string} value
2352
+ * @return {!proto.gateway.web.v1.SumQueryRequest} returns this
2323
2353
  */
2324
- proto.gateway.web.v1.QueryMetricsResponse.deserializeBinaryFromReader = function(msg, reader) {
2325
- while (reader.nextField()) {
2326
- if (reader.isEndGroup()) {
2327
- break;
2328
- }
2329
- var field = reader.getFieldNumber();
2330
- switch (field) {
2331
- case 1:
2332
- var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
2333
- reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
2334
- msg.setStatus(value);
2335
- break;
2336
- case 2:
2337
- var value = new proto.gateway.web.v1.MetricAnalyticsSnapshot;
2338
- reader.readMessage(value,proto.gateway.web.v1.MetricAnalyticsSnapshot.deserializeBinaryFromReader);
2339
- msg.setSnapshot(value);
2340
- break;
2341
- default:
2342
- reader.skipField();
2343
- break;
2344
- }
2345
- }
2346
- return msg;
2354
+ proto.gateway.web.v1.SumQueryRequest.prototype.setOrganizationId = function(value) {
2355
+ return jspb.Message.setProto3StringField(this, 1, value);
2347
2356
  };
2348
2357
 
2349
2358
 
2350
2359
  /**
2351
- * Serializes the message to binary data (in protobuf wire format).
2352
- * @return {!Uint8Array}
2360
+ * optional string project_id = 2;
2361
+ * @return {string}
2353
2362
  */
2354
- proto.gateway.web.v1.QueryMetricsResponse.prototype.serializeBinary = function() {
2355
- var writer = new jspb.BinaryWriter();
2356
- proto.gateway.web.v1.QueryMetricsResponse.serializeBinaryToWriter(this, writer);
2357
- return writer.getResultBuffer();
2363
+ proto.gateway.web.v1.SumQueryRequest.prototype.getProjectId = function() {
2364
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2358
2365
  };
2359
2366
 
2360
2367
 
2361
2368
  /**
2362
- * Serializes the given message to binary data (in protobuf wire
2363
- * format), writing to the given BinaryWriter.
2364
- * @param {!proto.gateway.web.v1.QueryMetricsResponse} message
2365
- * @param {!jspb.BinaryWriter} writer
2366
- * @suppress {unusedLocalVariables} f is only used for nested messages
2369
+ * @param {string} value
2370
+ * @return {!proto.gateway.web.v1.SumQueryRequest} returns this
2367
2371
  */
2368
- proto.gateway.web.v1.QueryMetricsResponse.serializeBinaryToWriter = function(message, writer) {
2369
- var f = undefined;
2370
- f = message.getStatus();
2371
- if (f != null) {
2372
- writer.writeMessage(
2373
- 1,
2374
- f,
2375
- proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
2376
- );
2377
- }
2378
- f = message.getSnapshot();
2379
- if (f != null) {
2380
- writer.writeMessage(
2381
- 2,
2382
- f,
2383
- proto.gateway.web.v1.MetricAnalyticsSnapshot.serializeBinaryToWriter
2384
- );
2385
- }
2372
+ proto.gateway.web.v1.SumQueryRequest.prototype.setProjectId = function(value) {
2373
+ return jspb.Message.setProto3StringField(this, 2, value);
2386
2374
  };
2387
2375
 
2388
2376
 
2389
2377
  /**
2390
- * optional gateway.common.v1.ResponseStatus status = 1;
2391
- * @return {?proto.gateway.common.v1.ResponseStatus}
2378
+ * optional string metric_name = 3;
2379
+ * @return {string}
2392
2380
  */
2393
- proto.gateway.web.v1.QueryMetricsResponse.prototype.getStatus = function() {
2394
- return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
2395
- jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
2381
+ proto.gateway.web.v1.SumQueryRequest.prototype.getMetricName = function() {
2382
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2396
2383
  };
2397
2384
 
2398
2385
 
2399
2386
  /**
2400
- * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
2401
- * @return {!proto.gateway.web.v1.QueryMetricsResponse} returns this
2402
- */
2403
- proto.gateway.web.v1.QueryMetricsResponse.prototype.setStatus = function(value) {
2404
- return jspb.Message.setWrapperField(this, 1, value);
2387
+ * @param {string} value
2388
+ * @return {!proto.gateway.web.v1.SumQueryRequest} returns this
2389
+ */
2390
+ proto.gateway.web.v1.SumQueryRequest.prototype.setMetricName = function(value) {
2391
+ return jspb.Message.setProto3StringField(this, 3, value);
2405
2392
  };
2406
2393
 
2407
2394
 
2408
2395
  /**
2409
- * Clears the message field making it undefined.
2410
- * @return {!proto.gateway.web.v1.QueryMetricsResponse} returns this
2396
+ * optional SumAggregation aggregation = 4;
2397
+ * @return {!proto.gateway.web.v1.SumAggregation}
2411
2398
  */
2412
- proto.gateway.web.v1.QueryMetricsResponse.prototype.clearStatus = function() {
2413
- return this.setStatus(undefined);
2399
+ proto.gateway.web.v1.SumQueryRequest.prototype.getAggregation = function() {
2400
+ return /** @type {!proto.gateway.web.v1.SumAggregation} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2414
2401
  };
2415
2402
 
2416
2403
 
2417
2404
  /**
2418
- * Returns whether this field is set.
2419
- * @return {boolean}
2405
+ * @param {!proto.gateway.web.v1.SumAggregation} value
2406
+ * @return {!proto.gateway.web.v1.SumQueryRequest} returns this
2420
2407
  */
2421
- proto.gateway.web.v1.QueryMetricsResponse.prototype.hasStatus = function() {
2422
- return jspb.Message.getField(this, 1) != null;
2408
+ proto.gateway.web.v1.SumQueryRequest.prototype.setAggregation = function(value) {
2409
+ return jspb.Message.setProto3EnumField(this, 4, value);
2423
2410
  };
2424
2411
 
2425
2412
 
2426
2413
  /**
2427
- * optional MetricAnalyticsSnapshot snapshot = 2;
2428
- * @return {?proto.gateway.web.v1.MetricAnalyticsSnapshot}
2414
+ * optional AnalyticsTimeWindow time_window = 5;
2415
+ * @return {!proto.gateway.web.v1.AnalyticsTimeWindow}
2429
2416
  */
2430
- proto.gateway.web.v1.QueryMetricsResponse.prototype.getSnapshot = function() {
2431
- return /** @type{?proto.gateway.web.v1.MetricAnalyticsSnapshot} */ (
2432
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.MetricAnalyticsSnapshot, 2));
2417
+ proto.gateway.web.v1.SumQueryRequest.prototype.getTimeWindow = function() {
2418
+ return /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2433
2419
  };
2434
2420
 
2435
2421
 
2436
2422
  /**
2437
- * @param {?proto.gateway.web.v1.MetricAnalyticsSnapshot|undefined} value
2438
- * @return {!proto.gateway.web.v1.QueryMetricsResponse} returns this
2439
- */
2440
- proto.gateway.web.v1.QueryMetricsResponse.prototype.setSnapshot = function(value) {
2441
- return jspb.Message.setWrapperField(this, 2, value);
2423
+ * @param {!proto.gateway.web.v1.AnalyticsTimeWindow} value
2424
+ * @return {!proto.gateway.web.v1.SumQueryRequest} returns this
2425
+ */
2426
+ proto.gateway.web.v1.SumQueryRequest.prototype.setTimeWindow = function(value) {
2427
+ return jspb.Message.setProto3EnumField(this, 5, value);
2442
2428
  };
2443
2429
 
2444
2430
 
2445
2431
  /**
2446
- * Clears the message field making it undefined.
2447
- * @return {!proto.gateway.web.v1.QueryMetricsResponse} returns this
2432
+ * optional AnalyticsTimeInterval time_interval = 6;
2433
+ * @return {!proto.gateway.web.v1.AnalyticsTimeInterval}
2448
2434
  */
2449
- proto.gateway.web.v1.QueryMetricsResponse.prototype.clearSnapshot = function() {
2450
- return this.setSnapshot(undefined);
2435
+ proto.gateway.web.v1.SumQueryRequest.prototype.getTimeInterval = function() {
2436
+ return /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2451
2437
  };
2452
2438
 
2453
2439
 
2454
2440
  /**
2455
- * Returns whether this field is set.
2456
- * @return {boolean}
2441
+ * @param {!proto.gateway.web.v1.AnalyticsTimeInterval} value
2442
+ * @return {!proto.gateway.web.v1.SumQueryRequest} returns this
2457
2443
  */
2458
- proto.gateway.web.v1.QueryMetricsResponse.prototype.hasSnapshot = function() {
2459
- return jspb.Message.getField(this, 2) != null;
2444
+ proto.gateway.web.v1.SumQueryRequest.prototype.setTimeInterval = function(value) {
2445
+ return jspb.Message.setProto3EnumField(this, 6, value);
2460
2446
  };
2461
2447
 
2462
2448
 
@@ -2476,8 +2462,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2476
2462
  * http://goto/soy-param-migration
2477
2463
  * @return {!Object}
2478
2464
  */
2479
- proto.gateway.web.v1.StreamMetricAnalyticsRequest.prototype.toObject = function(opt_includeInstance) {
2480
- return proto.gateway.web.v1.StreamMetricAnalyticsRequest.toObject(opt_includeInstance, this);
2465
+ proto.gateway.web.v1.HistogramQueryRequest.prototype.toObject = function(opt_includeInstance) {
2466
+ return proto.gateway.web.v1.HistogramQueryRequest.toObject(opt_includeInstance, this);
2481
2467
  };
2482
2468
 
2483
2469
 
@@ -2486,13 +2472,19 @@ proto.gateway.web.v1.StreamMetricAnalyticsRequest.prototype.toObject = function(
2486
2472
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2487
2473
  * the JSPB instance for transitional soy proto support:
2488
2474
  * http://goto/soy-param-migration
2489
- * @param {!proto.gateway.web.v1.StreamMetricAnalyticsRequest} msg The msg instance to transform.
2475
+ * @param {!proto.gateway.web.v1.HistogramQueryRequest} msg The msg instance to transform.
2490
2476
  * @return {!Object}
2491
2477
  * @suppress {unusedLocalVariables} f is only used for nested messages
2492
2478
  */
2493
- proto.gateway.web.v1.StreamMetricAnalyticsRequest.toObject = function(includeInstance, msg) {
2479
+ proto.gateway.web.v1.HistogramQueryRequest.toObject = function(includeInstance, msg) {
2494
2480
  var f, obj = {
2495
- query: (f = msg.getQuery()) && proto.gateway.web.v1.MetricQuery.toObject(includeInstance, f)
2481
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2482
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2483
+ metricName: jspb.Message.getFieldWithDefault(msg, 3, ""),
2484
+ aggregation: jspb.Message.getFieldWithDefault(msg, 4, 0),
2485
+ quantile: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
2486
+ timeWindow: jspb.Message.getFieldWithDefault(msg, 6, 0),
2487
+ timeInterval: jspb.Message.getFieldWithDefault(msg, 7, 0)
2496
2488
  };
2497
2489
 
2498
2490
  if (includeInstance) {
@@ -2506,23 +2498,23 @@ query: (f = msg.getQuery()) && proto.gateway.web.v1.MetricQuery.toObject(include
2506
2498
  /**
2507
2499
  * Deserializes binary data (in protobuf wire format).
2508
2500
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2509
- * @return {!proto.gateway.web.v1.StreamMetricAnalyticsRequest}
2501
+ * @return {!proto.gateway.web.v1.HistogramQueryRequest}
2510
2502
  */
2511
- proto.gateway.web.v1.StreamMetricAnalyticsRequest.deserializeBinary = function(bytes) {
2503
+ proto.gateway.web.v1.HistogramQueryRequest.deserializeBinary = function(bytes) {
2512
2504
  var reader = new jspb.BinaryReader(bytes);
2513
- var msg = new proto.gateway.web.v1.StreamMetricAnalyticsRequest;
2514
- return proto.gateway.web.v1.StreamMetricAnalyticsRequest.deserializeBinaryFromReader(msg, reader);
2505
+ var msg = new proto.gateway.web.v1.HistogramQueryRequest;
2506
+ return proto.gateway.web.v1.HistogramQueryRequest.deserializeBinaryFromReader(msg, reader);
2515
2507
  };
2516
2508
 
2517
2509
 
2518
2510
  /**
2519
2511
  * Deserializes binary data (in protobuf wire format) from the
2520
2512
  * given reader into the given message object.
2521
- * @param {!proto.gateway.web.v1.StreamMetricAnalyticsRequest} msg The message object to deserialize into.
2513
+ * @param {!proto.gateway.web.v1.HistogramQueryRequest} msg The message object to deserialize into.
2522
2514
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2523
- * @return {!proto.gateway.web.v1.StreamMetricAnalyticsRequest}
2515
+ * @return {!proto.gateway.web.v1.HistogramQueryRequest}
2524
2516
  */
2525
- proto.gateway.web.v1.StreamMetricAnalyticsRequest.deserializeBinaryFromReader = function(msg, reader) {
2517
+ proto.gateway.web.v1.HistogramQueryRequest.deserializeBinaryFromReader = function(msg, reader) {
2526
2518
  while (reader.nextField()) {
2527
2519
  if (reader.isEndGroup()) {
2528
2520
  break;
@@ -2530,9 +2522,32 @@ proto.gateway.web.v1.StreamMetricAnalyticsRequest.deserializeBinaryFromReader =
2530
2522
  var field = reader.getFieldNumber();
2531
2523
  switch (field) {
2532
2524
  case 1:
2533
- var value = new proto.gateway.web.v1.MetricQuery;
2534
- reader.readMessage(value,proto.gateway.web.v1.MetricQuery.deserializeBinaryFromReader);
2535
- msg.setQuery(value);
2525
+ var value = /** @type {string} */ (reader.readString());
2526
+ msg.setOrganizationId(value);
2527
+ break;
2528
+ case 2:
2529
+ var value = /** @type {string} */ (reader.readString());
2530
+ msg.setProjectId(value);
2531
+ break;
2532
+ case 3:
2533
+ var value = /** @type {string} */ (reader.readString());
2534
+ msg.setMetricName(value);
2535
+ break;
2536
+ case 4:
2537
+ var value = /** @type {!proto.gateway.web.v1.HistogramAggregation} */ (reader.readEnum());
2538
+ msg.setAggregation(value);
2539
+ break;
2540
+ case 5:
2541
+ var value = /** @type {number} */ (reader.readDouble());
2542
+ msg.setQuantile(value);
2543
+ break;
2544
+ case 6:
2545
+ var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (reader.readEnum());
2546
+ msg.setTimeWindow(value);
2547
+ break;
2548
+ case 7:
2549
+ var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (reader.readEnum());
2550
+ msg.setTimeInterval(value);
2536
2551
  break;
2537
2552
  default:
2538
2553
  reader.skipField();
@@ -2547,9 +2562,9 @@ proto.gateway.web.v1.StreamMetricAnalyticsRequest.deserializeBinaryFromReader =
2547
2562
  * Serializes the message to binary data (in protobuf wire format).
2548
2563
  * @return {!Uint8Array}
2549
2564
  */
2550
- proto.gateway.web.v1.StreamMetricAnalyticsRequest.prototype.serializeBinary = function() {
2565
+ proto.gateway.web.v1.HistogramQueryRequest.prototype.serializeBinary = function() {
2551
2566
  var writer = new jspb.BinaryWriter();
2552
- proto.gateway.web.v1.StreamMetricAnalyticsRequest.serializeBinaryToWriter(this, writer);
2567
+ proto.gateway.web.v1.HistogramQueryRequest.serializeBinaryToWriter(this, writer);
2553
2568
  return writer.getResultBuffer();
2554
2569
  };
2555
2570
 
@@ -2557,57 +2572,187 @@ proto.gateway.web.v1.StreamMetricAnalyticsRequest.prototype.serializeBinary = fu
2557
2572
  /**
2558
2573
  * Serializes the given message to binary data (in protobuf wire
2559
2574
  * format), writing to the given BinaryWriter.
2560
- * @param {!proto.gateway.web.v1.StreamMetricAnalyticsRequest} message
2575
+ * @param {!proto.gateway.web.v1.HistogramQueryRequest} message
2561
2576
  * @param {!jspb.BinaryWriter} writer
2562
2577
  * @suppress {unusedLocalVariables} f is only used for nested messages
2563
2578
  */
2564
- proto.gateway.web.v1.StreamMetricAnalyticsRequest.serializeBinaryToWriter = function(message, writer) {
2579
+ proto.gateway.web.v1.HistogramQueryRequest.serializeBinaryToWriter = function(message, writer) {
2565
2580
  var f = undefined;
2566
- f = message.getQuery();
2567
- if (f != null) {
2568
- writer.writeMessage(
2581
+ f = message.getOrganizationId();
2582
+ if (f.length > 0) {
2583
+ writer.writeString(
2569
2584
  1,
2570
- f,
2571
- proto.gateway.web.v1.MetricQuery.serializeBinaryToWriter
2585
+ f
2586
+ );
2587
+ }
2588
+ f = message.getProjectId();
2589
+ if (f.length > 0) {
2590
+ writer.writeString(
2591
+ 2,
2592
+ f
2593
+ );
2594
+ }
2595
+ f = message.getMetricName();
2596
+ if (f.length > 0) {
2597
+ writer.writeString(
2598
+ 3,
2599
+ f
2600
+ );
2601
+ }
2602
+ f = message.getAggregation();
2603
+ if (f !== 0.0) {
2604
+ writer.writeEnum(
2605
+ 4,
2606
+ f
2607
+ );
2608
+ }
2609
+ f = message.getQuantile();
2610
+ if (f !== 0.0) {
2611
+ writer.writeDouble(
2612
+ 5,
2613
+ f
2614
+ );
2615
+ }
2616
+ f = message.getTimeWindow();
2617
+ if (f !== 0.0) {
2618
+ writer.writeEnum(
2619
+ 6,
2620
+ f
2621
+ );
2622
+ }
2623
+ f = message.getTimeInterval();
2624
+ if (f !== 0.0) {
2625
+ writer.writeEnum(
2626
+ 7,
2627
+ f
2572
2628
  );
2573
2629
  }
2574
2630
  };
2575
2631
 
2576
2632
 
2577
2633
  /**
2578
- * optional MetricQuery query = 1;
2579
- * @return {?proto.gateway.web.v1.MetricQuery}
2634
+ * optional string organization_id = 1;
2635
+ * @return {string}
2580
2636
  */
2581
- proto.gateway.web.v1.StreamMetricAnalyticsRequest.prototype.getQuery = function() {
2582
- return /** @type{?proto.gateway.web.v1.MetricQuery} */ (
2583
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.MetricQuery, 1));
2637
+ proto.gateway.web.v1.HistogramQueryRequest.prototype.getOrganizationId = function() {
2638
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2584
2639
  };
2585
2640
 
2586
2641
 
2587
2642
  /**
2588
- * @param {?proto.gateway.web.v1.MetricQuery|undefined} value
2589
- * @return {!proto.gateway.web.v1.StreamMetricAnalyticsRequest} returns this
2590
- */
2591
- proto.gateway.web.v1.StreamMetricAnalyticsRequest.prototype.setQuery = function(value) {
2592
- return jspb.Message.setWrapperField(this, 1, value);
2643
+ * @param {string} value
2644
+ * @return {!proto.gateway.web.v1.HistogramQueryRequest} returns this
2645
+ */
2646
+ proto.gateway.web.v1.HistogramQueryRequest.prototype.setOrganizationId = function(value) {
2647
+ return jspb.Message.setProto3StringField(this, 1, value);
2593
2648
  };
2594
2649
 
2595
2650
 
2596
2651
  /**
2597
- * Clears the message field making it undefined.
2598
- * @return {!proto.gateway.web.v1.StreamMetricAnalyticsRequest} returns this
2652
+ * optional string project_id = 2;
2653
+ * @return {string}
2654
+ */
2655
+ proto.gateway.web.v1.HistogramQueryRequest.prototype.getProjectId = function() {
2656
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2657
+ };
2658
+
2659
+
2660
+ /**
2661
+ * @param {string} value
2662
+ * @return {!proto.gateway.web.v1.HistogramQueryRequest} returns this
2599
2663
  */
2600
- proto.gateway.web.v1.StreamMetricAnalyticsRequest.prototype.clearQuery = function() {
2601
- return this.setQuery(undefined);
2664
+ proto.gateway.web.v1.HistogramQueryRequest.prototype.setProjectId = function(value) {
2665
+ return jspb.Message.setProto3StringField(this, 2, value);
2602
2666
  };
2603
2667
 
2604
2668
 
2605
2669
  /**
2606
- * Returns whether this field is set.
2607
- * @return {boolean}
2670
+ * optional string metric_name = 3;
2671
+ * @return {string}
2608
2672
  */
2609
- proto.gateway.web.v1.StreamMetricAnalyticsRequest.prototype.hasQuery = function() {
2610
- return jspb.Message.getField(this, 1) != null;
2673
+ proto.gateway.web.v1.HistogramQueryRequest.prototype.getMetricName = function() {
2674
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2675
+ };
2676
+
2677
+
2678
+ /**
2679
+ * @param {string} value
2680
+ * @return {!proto.gateway.web.v1.HistogramQueryRequest} returns this
2681
+ */
2682
+ proto.gateway.web.v1.HistogramQueryRequest.prototype.setMetricName = function(value) {
2683
+ return jspb.Message.setProto3StringField(this, 3, value);
2684
+ };
2685
+
2686
+
2687
+ /**
2688
+ * optional HistogramAggregation aggregation = 4;
2689
+ * @return {!proto.gateway.web.v1.HistogramAggregation}
2690
+ */
2691
+ proto.gateway.web.v1.HistogramQueryRequest.prototype.getAggregation = function() {
2692
+ return /** @type {!proto.gateway.web.v1.HistogramAggregation} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2693
+ };
2694
+
2695
+
2696
+ /**
2697
+ * @param {!proto.gateway.web.v1.HistogramAggregation} value
2698
+ * @return {!proto.gateway.web.v1.HistogramQueryRequest} returns this
2699
+ */
2700
+ proto.gateway.web.v1.HistogramQueryRequest.prototype.setAggregation = function(value) {
2701
+ return jspb.Message.setProto3EnumField(this, 4, value);
2702
+ };
2703
+
2704
+
2705
+ /**
2706
+ * optional double quantile = 5;
2707
+ * @return {number}
2708
+ */
2709
+ proto.gateway.web.v1.HistogramQueryRequest.prototype.getQuantile = function() {
2710
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
2711
+ };
2712
+
2713
+
2714
+ /**
2715
+ * @param {number} value
2716
+ * @return {!proto.gateway.web.v1.HistogramQueryRequest} returns this
2717
+ */
2718
+ proto.gateway.web.v1.HistogramQueryRequest.prototype.setQuantile = function(value) {
2719
+ return jspb.Message.setProto3FloatField(this, 5, value);
2720
+ };
2721
+
2722
+
2723
+ /**
2724
+ * optional AnalyticsTimeWindow time_window = 6;
2725
+ * @return {!proto.gateway.web.v1.AnalyticsTimeWindow}
2726
+ */
2727
+ proto.gateway.web.v1.HistogramQueryRequest.prototype.getTimeWindow = function() {
2728
+ return /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2729
+ };
2730
+
2731
+
2732
+ /**
2733
+ * @param {!proto.gateway.web.v1.AnalyticsTimeWindow} value
2734
+ * @return {!proto.gateway.web.v1.HistogramQueryRequest} returns this
2735
+ */
2736
+ proto.gateway.web.v1.HistogramQueryRequest.prototype.setTimeWindow = function(value) {
2737
+ return jspb.Message.setProto3EnumField(this, 6, value);
2738
+ };
2739
+
2740
+
2741
+ /**
2742
+ * optional AnalyticsTimeInterval time_interval = 7;
2743
+ * @return {!proto.gateway.web.v1.AnalyticsTimeInterval}
2744
+ */
2745
+ proto.gateway.web.v1.HistogramQueryRequest.prototype.getTimeInterval = function() {
2746
+ return /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
2747
+ };
2748
+
2749
+
2750
+ /**
2751
+ * @param {!proto.gateway.web.v1.AnalyticsTimeInterval} value
2752
+ * @return {!proto.gateway.web.v1.HistogramQueryRequest} returns this
2753
+ */
2754
+ proto.gateway.web.v1.HistogramQueryRequest.prototype.setTimeInterval = function(value) {
2755
+ return jspb.Message.setProto3EnumField(this, 7, value);
2611
2756
  };
2612
2757
 
2613
2758
 
@@ -3197,7 +3342,7 @@ proto.gateway.web.v1.MetricAnalyticsSnapshot.prototype.setUnit = function(value)
3197
3342
  * @private {!Array<number>}
3198
3343
  * @const
3199
3344
  */
3200
- proto.gateway.web.v1.MetricSeries.repeatedFields_ = [2];
3345
+ proto.gateway.web.v1.MetricSeries.repeatedFields_ = [1];
3201
3346
 
3202
3347
 
3203
3348
 
@@ -3230,7 +3375,6 @@ proto.gateway.web.v1.MetricSeries.prototype.toObject = function(opt_includeInsta
3230
3375
  */
3231
3376
  proto.gateway.web.v1.MetricSeries.toObject = function(includeInstance, msg) {
3232
3377
  var f, obj = {
3233
- groupKeyMap: (f = msg.getGroupKeyMap()) ? f.toObject(includeInstance, undefined) : [],
3234
3378
  bucketsList: jspb.Message.toObjectList(msg.getBucketsList(),
3235
3379
  proto.gateway.web.v1.MetricBucket.toObject, includeInstance)
3236
3380
  };
@@ -3270,12 +3414,6 @@ proto.gateway.web.v1.MetricSeries.deserializeBinaryFromReader = function(msg, re
3270
3414
  var field = reader.getFieldNumber();
3271
3415
  switch (field) {
3272
3416
  case 1:
3273
- var value = msg.getGroupKeyMap();
3274
- reader.readMessage(value, function(message, reader) {
3275
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
3276
- });
3277
- break;
3278
- case 2:
3279
3417
  var value = new proto.gateway.web.v1.MetricBucket;
3280
3418
  reader.readMessage(value,proto.gateway.web.v1.MetricBucket.deserializeBinaryFromReader);
3281
3419
  msg.addBuckets(value);
@@ -3309,14 +3447,10 @@ proto.gateway.web.v1.MetricSeries.prototype.serializeBinary = function() {
3309
3447
  */
3310
3448
  proto.gateway.web.v1.MetricSeries.serializeBinaryToWriter = function(message, writer) {
3311
3449
  var f = undefined;
3312
- f = message.getGroupKeyMap(true);
3313
- if (f && f.getLength() > 0) {
3314
- f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
3315
- }
3316
3450
  f = message.getBucketsList();
3317
3451
  if (f.length > 0) {
3318
3452
  writer.writeRepeatedMessage(
3319
- 2,
3453
+ 1,
3320
3454
  f,
3321
3455
  proto.gateway.web.v1.MetricBucket.serializeBinaryToWriter
3322
3456
  );
@@ -3325,35 +3459,12 @@ proto.gateway.web.v1.MetricSeries.serializeBinaryToWriter = function(message, wr
3325
3459
 
3326
3460
 
3327
3461
  /**
3328
- * map<string, string> group_key = 1;
3329
- * @param {boolean=} opt_noLazyCreate Do not create the map if
3330
- * empty, instead returning `undefined`
3331
- * @return {!jspb.Map<string,string>}
3332
- */
3333
- proto.gateway.web.v1.MetricSeries.prototype.getGroupKeyMap = function(opt_noLazyCreate) {
3334
- return /** @type {!jspb.Map<string,string>} */ (
3335
- jspb.Message.getMapField(this, 1, opt_noLazyCreate,
3336
- null));
3337
- };
3338
-
3339
-
3340
- /**
3341
- * Clears values from the map. The map will be non-null.
3342
- * @return {!proto.gateway.web.v1.MetricSeries} returns this
3343
- */
3344
- proto.gateway.web.v1.MetricSeries.prototype.clearGroupKeyMap = function() {
3345
- this.getGroupKeyMap().clear();
3346
- return this;
3347
- };
3348
-
3349
-
3350
- /**
3351
- * repeated MetricBucket buckets = 2;
3462
+ * repeated MetricBucket buckets = 1;
3352
3463
  * @return {!Array<!proto.gateway.web.v1.MetricBucket>}
3353
3464
  */
3354
3465
  proto.gateway.web.v1.MetricSeries.prototype.getBucketsList = function() {
3355
3466
  return /** @type{!Array<!proto.gateway.web.v1.MetricBucket>} */ (
3356
- jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.MetricBucket, 2));
3467
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.MetricBucket, 1));
3357
3468
  };
3358
3469
 
3359
3470
 
@@ -3362,7 +3473,7 @@ proto.gateway.web.v1.MetricSeries.prototype.getBucketsList = function() {
3362
3473
  * @return {!proto.gateway.web.v1.MetricSeries} returns this
3363
3474
  */
3364
3475
  proto.gateway.web.v1.MetricSeries.prototype.setBucketsList = function(value) {
3365
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
3476
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3366
3477
  };
3367
3478
 
3368
3479
 
@@ -3372,7 +3483,7 @@ proto.gateway.web.v1.MetricSeries.prototype.setBucketsList = function(value) {
3372
3483
  * @return {!proto.gateway.web.v1.MetricBucket}
3373
3484
  */
3374
3485
  proto.gateway.web.v1.MetricSeries.prototype.addBuckets = function(opt_value, opt_index) {
3375
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.MetricBucket, opt_index);
3486
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.MetricBucket, opt_index);
3376
3487
  };
3377
3488
 
3378
3489
 
@@ -3598,7 +3709,6 @@ proto.gateway.web.v1.MetricSeriesBucketUpdate.prototype.toObject = function(opt_
3598
3709
  */
3599
3710
  proto.gateway.web.v1.MetricSeriesBucketUpdate.toObject = function(includeInstance, msg) {
3600
3711
  var f, obj = {
3601
- groupKeyMap: (f = msg.getGroupKeyMap()) ? f.toObject(includeInstance, undefined) : [],
3602
3712
  bucket: (f = msg.getBucket()) && proto.gateway.web.v1.MetricBucket.toObject(includeInstance, f),
3603
3713
  generatedAt: (f = msg.getGeneratedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
3604
3714
  };
@@ -3638,17 +3748,11 @@ proto.gateway.web.v1.MetricSeriesBucketUpdate.deserializeBinaryFromReader = func
3638
3748
  var field = reader.getFieldNumber();
3639
3749
  switch (field) {
3640
3750
  case 1:
3641
- var value = msg.getGroupKeyMap();
3642
- reader.readMessage(value, function(message, reader) {
3643
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
3644
- });
3645
- break;
3646
- case 2:
3647
3751
  var value = new proto.gateway.web.v1.MetricBucket;
3648
3752
  reader.readMessage(value,proto.gateway.web.v1.MetricBucket.deserializeBinaryFromReader);
3649
3753
  msg.setBucket(value);
3650
3754
  break;
3651
- case 3:
3755
+ case 2:
3652
3756
  var value = new google_protobuf_timestamp_pb.Timestamp;
3653
3757
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
3654
3758
  msg.setGeneratedAt(value);
@@ -3682,14 +3786,10 @@ proto.gateway.web.v1.MetricSeriesBucketUpdate.prototype.serializeBinary = functi
3682
3786
  */
3683
3787
  proto.gateway.web.v1.MetricSeriesBucketUpdate.serializeBinaryToWriter = function(message, writer) {
3684
3788
  var f = undefined;
3685
- f = message.getGroupKeyMap(true);
3686
- if (f && f.getLength() > 0) {
3687
- f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
3688
- }
3689
3789
  f = message.getBucket();
3690
3790
  if (f != null) {
3691
3791
  writer.writeMessage(
3692
- 2,
3792
+ 1,
3693
3793
  f,
3694
3794
  proto.gateway.web.v1.MetricBucket.serializeBinaryToWriter
3695
3795
  );
@@ -3697,7 +3797,7 @@ proto.gateway.web.v1.MetricSeriesBucketUpdate.serializeBinaryToWriter = function
3697
3797
  f = message.getGeneratedAt();
3698
3798
  if (f != null) {
3699
3799
  writer.writeMessage(
3700
- 3,
3800
+ 2,
3701
3801
  f,
3702
3802
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
3703
3803
  );
@@ -3706,35 +3806,12 @@ proto.gateway.web.v1.MetricSeriesBucketUpdate.serializeBinaryToWriter = function
3706
3806
 
3707
3807
 
3708
3808
  /**
3709
- * map<string, string> group_key = 1;
3710
- * @param {boolean=} opt_noLazyCreate Do not create the map if
3711
- * empty, instead returning `undefined`
3712
- * @return {!jspb.Map<string,string>}
3713
- */
3714
- proto.gateway.web.v1.MetricSeriesBucketUpdate.prototype.getGroupKeyMap = function(opt_noLazyCreate) {
3715
- return /** @type {!jspb.Map<string,string>} */ (
3716
- jspb.Message.getMapField(this, 1, opt_noLazyCreate,
3717
- null));
3718
- };
3719
-
3720
-
3721
- /**
3722
- * Clears values from the map. The map will be non-null.
3723
- * @return {!proto.gateway.web.v1.MetricSeriesBucketUpdate} returns this
3724
- */
3725
- proto.gateway.web.v1.MetricSeriesBucketUpdate.prototype.clearGroupKeyMap = function() {
3726
- this.getGroupKeyMap().clear();
3727
- return this;
3728
- };
3729
-
3730
-
3731
- /**
3732
- * optional MetricBucket bucket = 2;
3809
+ * optional MetricBucket bucket = 1;
3733
3810
  * @return {?proto.gateway.web.v1.MetricBucket}
3734
3811
  */
3735
3812
  proto.gateway.web.v1.MetricSeriesBucketUpdate.prototype.getBucket = function() {
3736
3813
  return /** @type{?proto.gateway.web.v1.MetricBucket} */ (
3737
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.MetricBucket, 2));
3814
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.MetricBucket, 1));
3738
3815
  };
3739
3816
 
3740
3817
 
@@ -3743,7 +3820,7 @@ proto.gateway.web.v1.MetricSeriesBucketUpdate.prototype.getBucket = function() {
3743
3820
  * @return {!proto.gateway.web.v1.MetricSeriesBucketUpdate} returns this
3744
3821
  */
3745
3822
  proto.gateway.web.v1.MetricSeriesBucketUpdate.prototype.setBucket = function(value) {
3746
- return jspb.Message.setWrapperField(this, 2, value);
3823
+ return jspb.Message.setWrapperField(this, 1, value);
3747
3824
  };
3748
3825
 
3749
3826
 
@@ -3761,17 +3838,17 @@ proto.gateway.web.v1.MetricSeriesBucketUpdate.prototype.clearBucket = function()
3761
3838
  * @return {boolean}
3762
3839
  */
3763
3840
  proto.gateway.web.v1.MetricSeriesBucketUpdate.prototype.hasBucket = function() {
3764
- return jspb.Message.getField(this, 2) != null;
3841
+ return jspb.Message.getField(this, 1) != null;
3765
3842
  };
3766
3843
 
3767
3844
 
3768
3845
  /**
3769
- * optional google.protobuf.Timestamp generated_at = 3;
3846
+ * optional google.protobuf.Timestamp generated_at = 2;
3770
3847
  * @return {?proto.google.protobuf.Timestamp}
3771
3848
  */
3772
3849
  proto.gateway.web.v1.MetricSeriesBucketUpdate.prototype.getGeneratedAt = function() {
3773
3850
  return /** @type{?proto.google.protobuf.Timestamp} */ (
3774
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
3851
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
3775
3852
  };
3776
3853
 
3777
3854
 
@@ -3780,7 +3857,7 @@ proto.gateway.web.v1.MetricSeriesBucketUpdate.prototype.getGeneratedAt = functio
3780
3857
  * @return {!proto.gateway.web.v1.MetricSeriesBucketUpdate} returns this
3781
3858
  */
3782
3859
  proto.gateway.web.v1.MetricSeriesBucketUpdate.prototype.setGeneratedAt = function(value) {
3783
- return jspb.Message.setWrapperField(this, 3, value);
3860
+ return jspb.Message.setWrapperField(this, 2, value);
3784
3861
  };
3785
3862
 
3786
3863
 
@@ -3798,7 +3875,7 @@ proto.gateway.web.v1.MetricSeriesBucketUpdate.prototype.clearGeneratedAt = funct
3798
3875
  * @return {boolean}
3799
3876
  */
3800
3877
  proto.gateway.web.v1.MetricSeriesBucketUpdate.prototype.hasGeneratedAt = function() {
3801
- return jspb.Message.getField(this, 3) != null;
3878
+ return jspb.Message.getField(this, 2) != null;
3802
3879
  };
3803
3880
 
3804
3881
 
@@ -3815,19 +3892,37 @@ proto.gateway.web.v1.MetricKind = {
3815
3892
  /**
3816
3893
  * @enum {number}
3817
3894
  */
3818
- proto.gateway.web.v1.MetricAggregation = {
3819
- METRIC_AGGREGATION_UNSPECIFIED: 0,
3820
- METRIC_AGGREGATION_SUM: 1,
3821
- METRIC_AGGREGATION_AVG: 2,
3822
- METRIC_AGGREGATION_MIN: 3,
3823
- METRIC_AGGREGATION_MAX: 4,
3824
- METRIC_AGGREGATION_COUNT: 5,
3825
- METRIC_AGGREGATION_LAST: 6,
3826
- METRIC_AGGREGATION_RATE: 7,
3827
- METRIC_AGGREGATION_P50: 8,
3828
- METRIC_AGGREGATION_P90: 9,
3829
- METRIC_AGGREGATION_P95: 10,
3830
- METRIC_AGGREGATION_P99: 11
3895
+ proto.gateway.web.v1.GaugeAggregation = {
3896
+ GAUGE_AGGREGATION_UNSPECIFIED: 0,
3897
+ GAUGE_AGGREGATION_LAST: 1,
3898
+ GAUGE_AGGREGATION_AVG: 2,
3899
+ GAUGE_AGGREGATION_MIN: 3,
3900
+ GAUGE_AGGREGATION_MAX: 4,
3901
+ GAUGE_AGGREGATION_SUM: 5,
3902
+ GAUGE_AGGREGATION_COUNT: 6
3903
+ };
3904
+
3905
+ /**
3906
+ * @enum {number}
3907
+ */
3908
+ proto.gateway.web.v1.SumAggregation = {
3909
+ SUM_AGGREGATION_UNSPECIFIED: 0,
3910
+ SUM_AGGREGATION_RATE: 1,
3911
+ SUM_AGGREGATION_INCREASE: 2,
3912
+ SUM_AGGREGATION_LAST: 3,
3913
+ SUM_AGGREGATION_COUNT: 4
3914
+ };
3915
+
3916
+ /**
3917
+ * @enum {number}
3918
+ */
3919
+ proto.gateway.web.v1.HistogramAggregation = {
3920
+ HISTOGRAM_AGGREGATION_UNSPECIFIED: 0,
3921
+ HISTOGRAM_AGGREGATION_QUANTILE: 1,
3922
+ HISTOGRAM_AGGREGATION_AVG: 2,
3923
+ HISTOGRAM_AGGREGATION_MIN: 3,
3924
+ HISTOGRAM_AGGREGATION_MAX: 4,
3925
+ HISTOGRAM_AGGREGATION_COUNT: 5
3831
3926
  };
3832
3927
 
3833
3928
  goog.object.extend(exports, proto.gateway.web.v1);