@miradorlabs/web-grpc 2.75.0 → 2.77.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.
@@ -26,6 +26,8 @@ goog.exportSymbol('proto.gateway.web.v1.BatchQueryEnvelope', null, global);
26
26
  goog.exportSymbol('proto.gateway.web.v1.BatchQueryEnvelope.OutcomeCase', null, global);
27
27
  goog.exportSymbol('proto.gateway.web.v1.BatchQueryItem', null, global);
28
28
  goog.exportSymbol('proto.gateway.web.v1.BatchQueryRequest', null, global);
29
+ goog.exportSymbol('proto.gateway.web.v1.CreateDashboardFromTemplateRequest', null, global);
30
+ goog.exportSymbol('proto.gateway.web.v1.CreateDashboardFromTemplateResponse', null, global);
29
31
  goog.exportSymbol('proto.gateway.web.v1.CreateDashboardRequest', null, global);
30
32
  goog.exportSymbol('proto.gateway.web.v1.CreateDashboardResponse', null, global);
31
33
  goog.exportSymbol('proto.gateway.web.v1.Dashboard', null, global);
@@ -38,11 +40,14 @@ goog.exportSymbol('proto.gateway.web.v1.DashboardPreviewManifest', null, global)
38
40
  goog.exportSymbol('proto.gateway.web.v1.DashboardPreviewQueryResult', null, global);
39
41
  goog.exportSymbol('proto.gateway.web.v1.DashboardPreviewQueryResult.ResultCase', null, global);
40
42
  goog.exportSymbol('proto.gateway.web.v1.DashboardSummary', null, global);
43
+ goog.exportSymbol('proto.gateway.web.v1.DashboardTemplate', null, global);
41
44
  goog.exportSymbol('proto.gateway.web.v1.DeleteDashboardRequest', null, global);
42
45
  goog.exportSymbol('proto.gateway.web.v1.DeleteDashboardResponse', null, global);
43
46
  goog.exportSymbol('proto.gateway.web.v1.GetDashboardRequest', null, global);
44
47
  goog.exportSymbol('proto.gateway.web.v1.GetDashboardResponse', null, global);
45
48
  goog.exportSymbol('proto.gateway.web.v1.GridPos', null, global);
49
+ goog.exportSymbol('proto.gateway.web.v1.ListDashboardTemplatesRequest', null, global);
50
+ goog.exportSymbol('proto.gateway.web.v1.ListDashboardTemplatesResponse', null, global);
46
51
  goog.exportSymbol('proto.gateway.web.v1.ListDashboardsRequest', null, global);
47
52
  goog.exportSymbol('proto.gateway.web.v1.ListDashboardsResponse', null, global);
48
53
  goog.exportSymbol('proto.gateway.web.v1.MetricAttribute', null, global);
@@ -60,6 +65,7 @@ goog.exportSymbol('proto.gateway.web.v1.QueryDataEnvelope', null, global);
60
65
  goog.exportSymbol('proto.gateway.web.v1.QueryDataEnvelope.EventCase', null, global);
61
66
  goog.exportSymbol('proto.gateway.web.v1.QuerySeriesUpdate', null, global);
62
67
  goog.exportSymbol('proto.gateway.web.v1.QuerySnapshot', null, global);
68
+ goog.exportSymbol('proto.gateway.web.v1.StatReduction', null, global);
63
69
  goog.exportSymbol('proto.gateway.web.v1.StreamDashboardDataRequest', null, global);
64
70
  goog.exportSymbol('proto.gateway.web.v1.StreamDashboardPreviewsRequest', null, global);
65
71
  goog.exportSymbol('proto.gateway.web.v1.StreamMetricAttributesRequest', null, global);
@@ -789,6 +795,111 @@ if (goog.DEBUG && !COMPILED) {
789
795
  */
790
796
  proto.gateway.web.v1.DeleteDashboardResponse.displayName = 'proto.gateway.web.v1.DeleteDashboardResponse';
791
797
  }
798
+ /**
799
+ * Generated by JsPbCodeGenerator.
800
+ * @param {Array=} opt_data Optional initial data array, typically from a
801
+ * server response, or constructed directly in Javascript. The array is used
802
+ * in place and becomes part of the constructed object. It is not cloned.
803
+ * If no data is provided, the constructed object will be empty, but still
804
+ * valid.
805
+ * @extends {jspb.Message}
806
+ * @constructor
807
+ */
808
+ proto.gateway.web.v1.DashboardTemplate = function(opt_data) {
809
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.DashboardTemplate.repeatedFields_, null);
810
+ };
811
+ goog.inherits(proto.gateway.web.v1.DashboardTemplate, jspb.Message);
812
+ if (goog.DEBUG && !COMPILED) {
813
+ /**
814
+ * @public
815
+ * @override
816
+ */
817
+ proto.gateway.web.v1.DashboardTemplate.displayName = 'proto.gateway.web.v1.DashboardTemplate';
818
+ }
819
+ /**
820
+ * Generated by JsPbCodeGenerator.
821
+ * @param {Array=} opt_data Optional initial data array, typically from a
822
+ * server response, or constructed directly in Javascript. The array is used
823
+ * in place and becomes part of the constructed object. It is not cloned.
824
+ * If no data is provided, the constructed object will be empty, but still
825
+ * valid.
826
+ * @extends {jspb.Message}
827
+ * @constructor
828
+ */
829
+ proto.gateway.web.v1.ListDashboardTemplatesRequest = function(opt_data) {
830
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
831
+ };
832
+ goog.inherits(proto.gateway.web.v1.ListDashboardTemplatesRequest, jspb.Message);
833
+ if (goog.DEBUG && !COMPILED) {
834
+ /**
835
+ * @public
836
+ * @override
837
+ */
838
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.displayName = 'proto.gateway.web.v1.ListDashboardTemplatesRequest';
839
+ }
840
+ /**
841
+ * Generated by JsPbCodeGenerator.
842
+ * @param {Array=} opt_data Optional initial data array, typically from a
843
+ * server response, or constructed directly in Javascript. The array is used
844
+ * in place and becomes part of the constructed object. It is not cloned.
845
+ * If no data is provided, the constructed object will be empty, but still
846
+ * valid.
847
+ * @extends {jspb.Message}
848
+ * @constructor
849
+ */
850
+ proto.gateway.web.v1.ListDashboardTemplatesResponse = function(opt_data) {
851
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListDashboardTemplatesResponse.repeatedFields_, null);
852
+ };
853
+ goog.inherits(proto.gateway.web.v1.ListDashboardTemplatesResponse, jspb.Message);
854
+ if (goog.DEBUG && !COMPILED) {
855
+ /**
856
+ * @public
857
+ * @override
858
+ */
859
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.displayName = 'proto.gateway.web.v1.ListDashboardTemplatesResponse';
860
+ }
861
+ /**
862
+ * Generated by JsPbCodeGenerator.
863
+ * @param {Array=} opt_data Optional initial data array, typically from a
864
+ * server response, or constructed directly in Javascript. The array is used
865
+ * in place and becomes part of the constructed object. It is not cloned.
866
+ * If no data is provided, the constructed object will be empty, but still
867
+ * valid.
868
+ * @extends {jspb.Message}
869
+ * @constructor
870
+ */
871
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest = function(opt_data) {
872
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
873
+ };
874
+ goog.inherits(proto.gateway.web.v1.CreateDashboardFromTemplateRequest, jspb.Message);
875
+ if (goog.DEBUG && !COMPILED) {
876
+ /**
877
+ * @public
878
+ * @override
879
+ */
880
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.displayName = 'proto.gateway.web.v1.CreateDashboardFromTemplateRequest';
881
+ }
882
+ /**
883
+ * Generated by JsPbCodeGenerator.
884
+ * @param {Array=} opt_data Optional initial data array, typically from a
885
+ * server response, or constructed directly in Javascript. The array is used
886
+ * in place and becomes part of the constructed object. It is not cloned.
887
+ * If no data is provided, the constructed object will be empty, but still
888
+ * valid.
889
+ * @extends {jspb.Message}
890
+ * @constructor
891
+ */
892
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse = function(opt_data) {
893
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
894
+ };
895
+ goog.inherits(proto.gateway.web.v1.CreateDashboardFromTemplateResponse, jspb.Message);
896
+ if (goog.DEBUG && !COMPILED) {
897
+ /**
898
+ * @public
899
+ * @override
900
+ */
901
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.displayName = 'proto.gateway.web.v1.CreateDashboardFromTemplateResponse';
902
+ }
792
903
  /**
793
904
  * Generated by JsPbCodeGenerator.
794
905
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -5740,7 +5851,8 @@ queriesList: jspb.Message.toObjectList(msg.getQueriesList(),
5740
5851
  timeWindow: jspb.Message.getFieldWithDefault(msg, 6, 0),
5741
5852
  timeInterval: jspb.Message.getFieldWithDefault(msg, 7, 0),
5742
5853
  timeseriesStyle: jspb.Message.getFieldWithDefault(msg, 8, 0),
5743
- markdown: jspb.Message.getFieldWithDefault(msg, 9, "")
5854
+ markdown: jspb.Message.getFieldWithDefault(msg, 9, ""),
5855
+ statReduction: jspb.Message.getFieldWithDefault(msg, 10, 0)
5744
5856
  };
5745
5857
 
5746
5858
  if (includeInstance) {
@@ -5815,6 +5927,10 @@ proto.gateway.web.v1.Widget.deserializeBinaryFromReader = function(msg, reader)
5815
5927
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
5816
5928
  msg.setMarkdown(value);
5817
5929
  break;
5930
+ case 10:
5931
+ var value = /** @type {!proto.gateway.web.v1.StatReduction} */ (reader.readEnum());
5932
+ msg.setStatReduction(value);
5933
+ break;
5818
5934
  default:
5819
5935
  reader.skipField();
5820
5936
  break;
@@ -5909,6 +6025,13 @@ proto.gateway.web.v1.Widget.serializeBinaryToWriter = function(message, writer)
5909
6025
  f
5910
6026
  );
5911
6027
  }
6028
+ f = message.getStatReduction();
6029
+ if (f !== 0.0) {
6030
+ writer.writeEnum(
6031
+ 10,
6032
+ f
6033
+ );
6034
+ }
5912
6035
  };
5913
6036
 
5914
6037
 
@@ -6113,6 +6236,24 @@ proto.gateway.web.v1.Widget.prototype.setMarkdown = function(value) {
6113
6236
  };
6114
6237
 
6115
6238
 
6239
+ /**
6240
+ * optional StatReduction stat_reduction = 10;
6241
+ * @return {!proto.gateway.web.v1.StatReduction}
6242
+ */
6243
+ proto.gateway.web.v1.Widget.prototype.getStatReduction = function() {
6244
+ return /** @type {!proto.gateway.web.v1.StatReduction} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
6245
+ };
6246
+
6247
+
6248
+ /**
6249
+ * @param {!proto.gateway.web.v1.StatReduction} value
6250
+ * @return {!proto.gateway.web.v1.Widget} returns this
6251
+ */
6252
+ proto.gateway.web.v1.Widget.prototype.setStatReduction = function(value) {
6253
+ return jspb.Message.setProto3EnumField(this, 10, value);
6254
+ };
6255
+
6256
+
6116
6257
 
6117
6258
 
6118
6259
 
@@ -8849,7 +8990,7 @@ proto.gateway.web.v1.DeleteDashboardResponse.prototype.hasStatus = function() {
8849
8990
  * @private {!Array<number>}
8850
8991
  * @const
8851
8992
  */
8852
- proto.gateway.web.v1.StreamDashboardDataRequest.repeatedFields_ = [4];
8993
+ proto.gateway.web.v1.DashboardTemplate.repeatedFields_ = [5];
8853
8994
 
8854
8995
 
8855
8996
 
@@ -8866,8 +9007,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
8866
9007
  * http://goto/soy-param-migration
8867
9008
  * @return {!Object}
8868
9009
  */
8869
- proto.gateway.web.v1.StreamDashboardDataRequest.prototype.toObject = function(opt_includeInstance) {
8870
- return proto.gateway.web.v1.StreamDashboardDataRequest.toObject(opt_includeInstance, this);
9010
+ proto.gateway.web.v1.DashboardTemplate.prototype.toObject = function(opt_includeInstance) {
9011
+ return proto.gateway.web.v1.DashboardTemplate.toObject(opt_includeInstance, this);
8871
9012
  };
8872
9013
 
8873
9014
 
@@ -8876,17 +9017,18 @@ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.toObject = function(op
8876
9017
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8877
9018
  * the JSPB instance for transitional soy proto support:
8878
9019
  * http://goto/soy-param-migration
8879
- * @param {!proto.gateway.web.v1.StreamDashboardDataRequest} msg The msg instance to transform.
9020
+ * @param {!proto.gateway.web.v1.DashboardTemplate} msg The msg instance to transform.
8880
9021
  * @return {!Object}
8881
9022
  * @suppress {unusedLocalVariables} f is only used for nested messages
8882
9023
  */
8883
- proto.gateway.web.v1.StreamDashboardDataRequest.toObject = function(includeInstance, msg) {
9024
+ proto.gateway.web.v1.DashboardTemplate.toObject = function(includeInstance, msg) {
8884
9025
  var f, obj = {
8885
- organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
8886
- projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
8887
- dashboardId: jspb.Message.getFieldWithDefault(msg, 3, ""),
8888
- widgetIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
8889
- timeRange: (f = msg.getTimeRange()) && proto.gateway.web.v1.TimeRange.toObject(includeInstance, f)
9026
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
9027
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
9028
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
9029
+ defaultTimeWindow: jspb.Message.getFieldWithDefault(msg, 4, 0),
9030
+ widgetsList: jspb.Message.toObjectList(msg.getWidgetsList(),
9031
+ proto.gateway.web.v1.Widget.toObject, includeInstance)
8890
9032
  };
8891
9033
 
8892
9034
  if (includeInstance) {
@@ -8900,23 +9042,23 @@ timeRange: (f = msg.getTimeRange()) && proto.gateway.web.v1.TimeRange.toObject(i
8900
9042
  /**
8901
9043
  * Deserializes binary data (in protobuf wire format).
8902
9044
  * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
8903
- * @return {!proto.gateway.web.v1.StreamDashboardDataRequest}
9045
+ * @return {!proto.gateway.web.v1.DashboardTemplate}
8904
9046
  */
8905
- proto.gateway.web.v1.StreamDashboardDataRequest.deserializeBinary = function(bytes) {
9047
+ proto.gateway.web.v1.DashboardTemplate.deserializeBinary = function(bytes) {
8906
9048
  var reader = new jspb.BinaryReader(bytes);
8907
- var msg = new proto.gateway.web.v1.StreamDashboardDataRequest;
8908
- return proto.gateway.web.v1.StreamDashboardDataRequest.deserializeBinaryFromReader(msg, reader);
9049
+ var msg = new proto.gateway.web.v1.DashboardTemplate;
9050
+ return proto.gateway.web.v1.DashboardTemplate.deserializeBinaryFromReader(msg, reader);
8909
9051
  };
8910
9052
 
8911
9053
 
8912
9054
  /**
8913
9055
  * Deserializes binary data (in protobuf wire format) from the
8914
9056
  * given reader into the given message object.
8915
- * @param {!proto.gateway.web.v1.StreamDashboardDataRequest} msg The message object to deserialize into.
9057
+ * @param {!proto.gateway.web.v1.DashboardTemplate} msg The message object to deserialize into.
8916
9058
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8917
- * @return {!proto.gateway.web.v1.StreamDashboardDataRequest}
9059
+ * @return {!proto.gateway.web.v1.DashboardTemplate}
8918
9060
  */
8919
- proto.gateway.web.v1.StreamDashboardDataRequest.deserializeBinaryFromReader = function(msg, reader) {
9061
+ proto.gateway.web.v1.DashboardTemplate.deserializeBinaryFromReader = function(msg, reader) {
8920
9062
  while (reader.nextField()) {
8921
9063
  if (reader.isEndGroup()) {
8922
9064
  break;
@@ -8925,24 +9067,24 @@ proto.gateway.web.v1.StreamDashboardDataRequest.deserializeBinaryFromReader = fu
8925
9067
  switch (field) {
8926
9068
  case 1:
8927
9069
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
8928
- msg.setOrganizationId(value);
9070
+ msg.setId(value);
8929
9071
  break;
8930
9072
  case 2:
8931
9073
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
8932
- msg.setProjectId(value);
9074
+ msg.setName(value);
8933
9075
  break;
8934
9076
  case 3:
8935
9077
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
8936
- msg.setDashboardId(value);
9078
+ msg.setDescription(value);
8937
9079
  break;
8938
9080
  case 4:
8939
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
8940
- msg.addWidgetIds(value);
9081
+ var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (reader.readEnum());
9082
+ msg.setDefaultTimeWindow(value);
8941
9083
  break;
8942
9084
  case 5:
8943
- var value = new proto.gateway.web.v1.TimeRange;
8944
- reader.readMessage(value,proto.gateway.web.v1.TimeRange.deserializeBinaryFromReader);
8945
- msg.setTimeRange(value);
9085
+ var value = new proto.gateway.web.v1.Widget;
9086
+ reader.readMessage(value,proto.gateway.web.v1.Widget.deserializeBinaryFromReader);
9087
+ msg.addWidgets(value);
8946
9088
  break;
8947
9089
  default:
8948
9090
  reader.skipField();
@@ -8957,9 +9099,9 @@ proto.gateway.web.v1.StreamDashboardDataRequest.deserializeBinaryFromReader = fu
8957
9099
  * Serializes the message to binary data (in protobuf wire format).
8958
9100
  * @return {!Uint8Array}
8959
9101
  */
8960
- proto.gateway.web.v1.StreamDashboardDataRequest.prototype.serializeBinary = function() {
9102
+ proto.gateway.web.v1.DashboardTemplate.prototype.serializeBinary = function() {
8961
9103
  var writer = new jspb.BinaryWriter();
8962
- proto.gateway.web.v1.StreamDashboardDataRequest.serializeBinaryToWriter(this, writer);
9104
+ proto.gateway.web.v1.DashboardTemplate.serializeBinaryToWriter(this, writer);
8963
9105
  return writer.getResultBuffer();
8964
9106
  };
8965
9107
 
@@ -8967,189 +9109,1327 @@ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.serializeBinary = func
8967
9109
  /**
8968
9110
  * Serializes the given message to binary data (in protobuf wire
8969
9111
  * format), writing to the given BinaryWriter.
8970
- * @param {!proto.gateway.web.v1.StreamDashboardDataRequest} message
9112
+ * @param {!proto.gateway.web.v1.DashboardTemplate} message
8971
9113
  * @param {!jspb.BinaryWriter} writer
8972
9114
  * @suppress {unusedLocalVariables} f is only used for nested messages
8973
9115
  */
8974
- proto.gateway.web.v1.StreamDashboardDataRequest.serializeBinaryToWriter = function(message, writer) {
9116
+ proto.gateway.web.v1.DashboardTemplate.serializeBinaryToWriter = function(message, writer) {
8975
9117
  var f = undefined;
8976
- f = message.getOrganizationId();
9118
+ f = message.getId();
8977
9119
  if (f.length > 0) {
8978
9120
  writer.writeString(
8979
9121
  1,
8980
9122
  f
8981
9123
  );
8982
9124
  }
8983
- f = message.getProjectId();
9125
+ f = message.getName();
8984
9126
  if (f.length > 0) {
8985
9127
  writer.writeString(
8986
9128
  2,
8987
9129
  f
8988
9130
  );
8989
9131
  }
8990
- f = message.getDashboardId();
9132
+ f = message.getDescription();
8991
9133
  if (f.length > 0) {
8992
9134
  writer.writeString(
8993
9135
  3,
8994
9136
  f
8995
9137
  );
8996
9138
  }
8997
- f = message.getWidgetIdsList();
8998
- if (f.length > 0) {
8999
- writer.writeRepeatedString(
9139
+ f = message.getDefaultTimeWindow();
9140
+ if (f !== 0.0) {
9141
+ writer.writeEnum(
9000
9142
  4,
9001
9143
  f
9002
9144
  );
9003
9145
  }
9004
- f = message.getTimeRange();
9005
- if (f != null) {
9006
- writer.writeMessage(
9146
+ f = message.getWidgetsList();
9147
+ if (f.length > 0) {
9148
+ writer.writeRepeatedMessage(
9007
9149
  5,
9008
9150
  f,
9009
- proto.gateway.web.v1.TimeRange.serializeBinaryToWriter
9151
+ proto.gateway.web.v1.Widget.serializeBinaryToWriter
9010
9152
  );
9011
9153
  }
9012
9154
  };
9013
9155
 
9014
9156
 
9015
9157
  /**
9016
- * optional string organization_id = 1;
9158
+ * optional string id = 1;
9017
9159
  * @return {string}
9018
9160
  */
9019
- proto.gateway.web.v1.StreamDashboardDataRequest.prototype.getOrganizationId = function() {
9161
+ proto.gateway.web.v1.DashboardTemplate.prototype.getId = function() {
9020
9162
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9021
9163
  };
9022
9164
 
9023
9165
 
9024
9166
  /**
9025
9167
  * @param {string} value
9026
- * @return {!proto.gateway.web.v1.StreamDashboardDataRequest} returns this
9168
+ * @return {!proto.gateway.web.v1.DashboardTemplate} returns this
9027
9169
  */
9028
- proto.gateway.web.v1.StreamDashboardDataRequest.prototype.setOrganizationId = function(value) {
9170
+ proto.gateway.web.v1.DashboardTemplate.prototype.setId = function(value) {
9029
9171
  return jspb.Message.setProto3StringField(this, 1, value);
9030
9172
  };
9031
9173
 
9032
9174
 
9033
9175
  /**
9034
- * optional string project_id = 2;
9176
+ * optional string name = 2;
9035
9177
  * @return {string}
9036
9178
  */
9037
- proto.gateway.web.v1.StreamDashboardDataRequest.prototype.getProjectId = function() {
9179
+ proto.gateway.web.v1.DashboardTemplate.prototype.getName = function() {
9038
9180
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9039
9181
  };
9040
9182
 
9041
9183
 
9042
9184
  /**
9043
9185
  * @param {string} value
9044
- * @return {!proto.gateway.web.v1.StreamDashboardDataRequest} returns this
9186
+ * @return {!proto.gateway.web.v1.DashboardTemplate} returns this
9045
9187
  */
9046
- proto.gateway.web.v1.StreamDashboardDataRequest.prototype.setProjectId = function(value) {
9188
+ proto.gateway.web.v1.DashboardTemplate.prototype.setName = function(value) {
9047
9189
  return jspb.Message.setProto3StringField(this, 2, value);
9048
9190
  };
9049
9191
 
9050
9192
 
9051
9193
  /**
9052
- * optional string dashboard_id = 3;
9194
+ * optional string description = 3;
9053
9195
  * @return {string}
9054
9196
  */
9055
- proto.gateway.web.v1.StreamDashboardDataRequest.prototype.getDashboardId = function() {
9197
+ proto.gateway.web.v1.DashboardTemplate.prototype.getDescription = function() {
9056
9198
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
9057
9199
  };
9058
9200
 
9059
9201
 
9060
9202
  /**
9061
9203
  * @param {string} value
9062
- * @return {!proto.gateway.web.v1.StreamDashboardDataRequest} returns this
9204
+ * @return {!proto.gateway.web.v1.DashboardTemplate} returns this
9063
9205
  */
9064
- proto.gateway.web.v1.StreamDashboardDataRequest.prototype.setDashboardId = function(value) {
9206
+ proto.gateway.web.v1.DashboardTemplate.prototype.setDescription = function(value) {
9065
9207
  return jspb.Message.setProto3StringField(this, 3, value);
9066
9208
  };
9067
9209
 
9068
9210
 
9069
9211
  /**
9070
- * repeated string widget_ids = 4;
9071
- * @return {!Array<string>}
9212
+ * optional AnalyticsTimeWindow default_time_window = 4;
9213
+ * @return {!proto.gateway.web.v1.AnalyticsTimeWindow}
9072
9214
  */
9073
- proto.gateway.web.v1.StreamDashboardDataRequest.prototype.getWidgetIdsList = function() {
9074
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
9215
+ proto.gateway.web.v1.DashboardTemplate.prototype.getDefaultTimeWindow = function() {
9216
+ return /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
9075
9217
  };
9076
9218
 
9077
9219
 
9078
9220
  /**
9079
- * @param {!Array<string>} value
9080
- * @return {!proto.gateway.web.v1.StreamDashboardDataRequest} returns this
9221
+ * @param {!proto.gateway.web.v1.AnalyticsTimeWindow} value
9222
+ * @return {!proto.gateway.web.v1.DashboardTemplate} returns this
9081
9223
  */
9082
- proto.gateway.web.v1.StreamDashboardDataRequest.prototype.setWidgetIdsList = function(value) {
9083
- return jspb.Message.setField(this, 4, value || []);
9224
+ proto.gateway.web.v1.DashboardTemplate.prototype.setDefaultTimeWindow = function(value) {
9225
+ return jspb.Message.setProto3EnumField(this, 4, value);
9084
9226
  };
9085
9227
 
9086
9228
 
9087
9229
  /**
9088
- * @param {string} value
9089
- * @param {number=} opt_index
9090
- * @return {!proto.gateway.web.v1.StreamDashboardDataRequest} returns this
9230
+ * repeated Widget widgets = 5;
9231
+ * @return {!Array<!proto.gateway.web.v1.Widget>}
9091
9232
  */
9092
- proto.gateway.web.v1.StreamDashboardDataRequest.prototype.addWidgetIds = function(value, opt_index) {
9093
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
9233
+ proto.gateway.web.v1.DashboardTemplate.prototype.getWidgetsList = function() {
9234
+ return /** @type{!Array<!proto.gateway.web.v1.Widget>} */ (
9235
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.Widget, 5));
9094
9236
  };
9095
9237
 
9096
9238
 
9097
9239
  /**
9098
- * Clears the list making it empty but non-null.
9099
- * @return {!proto.gateway.web.v1.StreamDashboardDataRequest} returns this
9100
- */
9101
- proto.gateway.web.v1.StreamDashboardDataRequest.prototype.clearWidgetIdsList = function() {
9102
- return this.setWidgetIdsList([]);
9240
+ * @param {!Array<!proto.gateway.web.v1.Widget>} value
9241
+ * @return {!proto.gateway.web.v1.DashboardTemplate} returns this
9242
+ */
9243
+ proto.gateway.web.v1.DashboardTemplate.prototype.setWidgetsList = function(value) {
9244
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
9103
9245
  };
9104
9246
 
9105
9247
 
9106
9248
  /**
9107
- * optional TimeRange time_range = 5;
9108
- * @return {?proto.gateway.web.v1.TimeRange}
9249
+ * @param {!proto.gateway.web.v1.Widget=} opt_value
9250
+ * @param {number=} opt_index
9251
+ * @return {!proto.gateway.web.v1.Widget}
9109
9252
  */
9110
- proto.gateway.web.v1.StreamDashboardDataRequest.prototype.getTimeRange = function() {
9111
- return /** @type{?proto.gateway.web.v1.TimeRange} */ (
9112
- jspb.Message.getWrapperField(this, proto.gateway.web.v1.TimeRange, 5));
9253
+ proto.gateway.web.v1.DashboardTemplate.prototype.addWidgets = function(opt_value, opt_index) {
9254
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.gateway.web.v1.Widget, opt_index);
9113
9255
  };
9114
9256
 
9115
9257
 
9116
9258
  /**
9117
- * @param {?proto.gateway.web.v1.TimeRange|undefined} value
9118
- * @return {!proto.gateway.web.v1.StreamDashboardDataRequest} returns this
9119
- */
9120
- proto.gateway.web.v1.StreamDashboardDataRequest.prototype.setTimeRange = function(value) {
9121
- return jspb.Message.setWrapperField(this, 5, value);
9259
+ * Clears the list making it empty but non-null.
9260
+ * @return {!proto.gateway.web.v1.DashboardTemplate} returns this
9261
+ */
9262
+ proto.gateway.web.v1.DashboardTemplate.prototype.clearWidgetsList = function() {
9263
+ return this.setWidgetsList([]);
9122
9264
  };
9123
9265
 
9124
9266
 
9125
- /**
9126
- * Clears the message field making it undefined.
9127
- * @return {!proto.gateway.web.v1.StreamDashboardDataRequest} returns this
9128
- */
9129
- proto.gateway.web.v1.StreamDashboardDataRequest.prototype.clearTimeRange = function() {
9130
- return this.setTimeRange(undefined);
9131
- };
9132
9267
 
9133
9268
 
9269
+
9270
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9134
9271
  /**
9135
- * Returns whether this field is set.
9136
- * @return {boolean}
9272
+ * Creates an object representation of this proto.
9273
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9274
+ * Optional fields that are not set will be set to undefined.
9275
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9276
+ * For the list of reserved names please see:
9277
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9278
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9279
+ * JSPB instance for transitional soy proto support:
9280
+ * http://goto/soy-param-migration
9281
+ * @return {!Object}
9137
9282
  */
9138
- proto.gateway.web.v1.StreamDashboardDataRequest.prototype.hasTimeRange = function() {
9139
- return jspb.Message.getField(this, 5) != null;
9283
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.prototype.toObject = function(opt_includeInstance) {
9284
+ return proto.gateway.web.v1.ListDashboardTemplatesRequest.toObject(opt_includeInstance, this);
9140
9285
  };
9141
9286
 
9142
9287
 
9143
-
9144
9288
  /**
9145
- * Oneof group definitions for this message. Each group defines the field
9146
- * numbers belonging to that group. When of these fields' value is set, all
9147
- * other fields in the group are cleared. During deserialization, if multiple
9148
- * fields are encountered for a group, only the last value seen will be kept.
9149
- * @private {!Array<!Array<number>>}
9150
- * @const
9151
- */
9152
- proto.gateway.web.v1.DashboardDataEnvelope.oneofGroups_ = [[3,4,5]];
9289
+ * Static version of the {@see toObject} method.
9290
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9291
+ * the JSPB instance for transitional soy proto support:
9292
+ * http://goto/soy-param-migration
9293
+ * @param {!proto.gateway.web.v1.ListDashboardTemplatesRequest} msg The msg instance to transform.
9294
+ * @return {!Object}
9295
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9296
+ */
9297
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.toObject = function(includeInstance, msg) {
9298
+ var f, obj = {
9299
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, "")
9300
+ };
9301
+
9302
+ if (includeInstance) {
9303
+ obj.$jspbMessageInstance = msg;
9304
+ }
9305
+ return obj;
9306
+ };
9307
+ }
9308
+
9309
+
9310
+ /**
9311
+ * Deserializes binary data (in protobuf wire format).
9312
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
9313
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesRequest}
9314
+ */
9315
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.deserializeBinary = function(bytes) {
9316
+ var reader = new jspb.BinaryReader(bytes);
9317
+ var msg = new proto.gateway.web.v1.ListDashboardTemplatesRequest;
9318
+ return proto.gateway.web.v1.ListDashboardTemplatesRequest.deserializeBinaryFromReader(msg, reader);
9319
+ };
9320
+
9321
+
9322
+ /**
9323
+ * Deserializes binary data (in protobuf wire format) from the
9324
+ * given reader into the given message object.
9325
+ * @param {!proto.gateway.web.v1.ListDashboardTemplatesRequest} msg The message object to deserialize into.
9326
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9327
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesRequest}
9328
+ */
9329
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.deserializeBinaryFromReader = function(msg, reader) {
9330
+ while (reader.nextField()) {
9331
+ if (reader.isEndGroup()) {
9332
+ break;
9333
+ }
9334
+ var field = reader.getFieldNumber();
9335
+ switch (field) {
9336
+ case 1:
9337
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9338
+ msg.setOrganizationId(value);
9339
+ break;
9340
+ default:
9341
+ reader.skipField();
9342
+ break;
9343
+ }
9344
+ }
9345
+ return msg;
9346
+ };
9347
+
9348
+
9349
+ /**
9350
+ * Serializes the message to binary data (in protobuf wire format).
9351
+ * @return {!Uint8Array}
9352
+ */
9353
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.prototype.serializeBinary = function() {
9354
+ var writer = new jspb.BinaryWriter();
9355
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.serializeBinaryToWriter(this, writer);
9356
+ return writer.getResultBuffer();
9357
+ };
9358
+
9359
+
9360
+ /**
9361
+ * Serializes the given message to binary data (in protobuf wire
9362
+ * format), writing to the given BinaryWriter.
9363
+ * @param {!proto.gateway.web.v1.ListDashboardTemplatesRequest} message
9364
+ * @param {!jspb.BinaryWriter} writer
9365
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9366
+ */
9367
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.serializeBinaryToWriter = function(message, writer) {
9368
+ var f = undefined;
9369
+ f = message.getOrganizationId();
9370
+ if (f.length > 0) {
9371
+ writer.writeString(
9372
+ 1,
9373
+ f
9374
+ );
9375
+ }
9376
+ };
9377
+
9378
+
9379
+ /**
9380
+ * optional string organization_id = 1;
9381
+ * @return {string}
9382
+ */
9383
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.prototype.getOrganizationId = function() {
9384
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9385
+ };
9386
+
9387
+
9388
+ /**
9389
+ * @param {string} value
9390
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesRequest} returns this
9391
+ */
9392
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.prototype.setOrganizationId = function(value) {
9393
+ return jspb.Message.setProto3StringField(this, 1, value);
9394
+ };
9395
+
9396
+
9397
+
9398
+ /**
9399
+ * List of repeated fields within this message type.
9400
+ * @private {!Array<number>}
9401
+ * @const
9402
+ */
9403
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.repeatedFields_ = [2];
9404
+
9405
+
9406
+
9407
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9408
+ /**
9409
+ * Creates an object representation of this proto.
9410
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9411
+ * Optional fields that are not set will be set to undefined.
9412
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9413
+ * For the list of reserved names please see:
9414
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9415
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9416
+ * JSPB instance for transitional soy proto support:
9417
+ * http://goto/soy-param-migration
9418
+ * @return {!Object}
9419
+ */
9420
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.toObject = function(opt_includeInstance) {
9421
+ return proto.gateway.web.v1.ListDashboardTemplatesResponse.toObject(opt_includeInstance, this);
9422
+ };
9423
+
9424
+
9425
+ /**
9426
+ * Static version of the {@see toObject} method.
9427
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9428
+ * the JSPB instance for transitional soy proto support:
9429
+ * http://goto/soy-param-migration
9430
+ * @param {!proto.gateway.web.v1.ListDashboardTemplatesResponse} msg The msg instance to transform.
9431
+ * @return {!Object}
9432
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9433
+ */
9434
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.toObject = function(includeInstance, msg) {
9435
+ var f, obj = {
9436
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
9437
+ templatesList: jspb.Message.toObjectList(msg.getTemplatesList(),
9438
+ proto.gateway.web.v1.DashboardTemplate.toObject, includeInstance)
9439
+ };
9440
+
9441
+ if (includeInstance) {
9442
+ obj.$jspbMessageInstance = msg;
9443
+ }
9444
+ return obj;
9445
+ };
9446
+ }
9447
+
9448
+
9449
+ /**
9450
+ * Deserializes binary data (in protobuf wire format).
9451
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
9452
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesResponse}
9453
+ */
9454
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.deserializeBinary = function(bytes) {
9455
+ var reader = new jspb.BinaryReader(bytes);
9456
+ var msg = new proto.gateway.web.v1.ListDashboardTemplatesResponse;
9457
+ return proto.gateway.web.v1.ListDashboardTemplatesResponse.deserializeBinaryFromReader(msg, reader);
9458
+ };
9459
+
9460
+
9461
+ /**
9462
+ * Deserializes binary data (in protobuf wire format) from the
9463
+ * given reader into the given message object.
9464
+ * @param {!proto.gateway.web.v1.ListDashboardTemplatesResponse} msg The message object to deserialize into.
9465
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9466
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesResponse}
9467
+ */
9468
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.deserializeBinaryFromReader = function(msg, reader) {
9469
+ while (reader.nextField()) {
9470
+ if (reader.isEndGroup()) {
9471
+ break;
9472
+ }
9473
+ var field = reader.getFieldNumber();
9474
+ switch (field) {
9475
+ case 1:
9476
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
9477
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
9478
+ msg.setStatus(value);
9479
+ break;
9480
+ case 2:
9481
+ var value = new proto.gateway.web.v1.DashboardTemplate;
9482
+ reader.readMessage(value,proto.gateway.web.v1.DashboardTemplate.deserializeBinaryFromReader);
9483
+ msg.addTemplates(value);
9484
+ break;
9485
+ default:
9486
+ reader.skipField();
9487
+ break;
9488
+ }
9489
+ }
9490
+ return msg;
9491
+ };
9492
+
9493
+
9494
+ /**
9495
+ * Serializes the message to binary data (in protobuf wire format).
9496
+ * @return {!Uint8Array}
9497
+ */
9498
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.serializeBinary = function() {
9499
+ var writer = new jspb.BinaryWriter();
9500
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.serializeBinaryToWriter(this, writer);
9501
+ return writer.getResultBuffer();
9502
+ };
9503
+
9504
+
9505
+ /**
9506
+ * Serializes the given message to binary data (in protobuf wire
9507
+ * format), writing to the given BinaryWriter.
9508
+ * @param {!proto.gateway.web.v1.ListDashboardTemplatesResponse} message
9509
+ * @param {!jspb.BinaryWriter} writer
9510
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9511
+ */
9512
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.serializeBinaryToWriter = function(message, writer) {
9513
+ var f = undefined;
9514
+ f = message.getStatus();
9515
+ if (f != null) {
9516
+ writer.writeMessage(
9517
+ 1,
9518
+ f,
9519
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
9520
+ );
9521
+ }
9522
+ f = message.getTemplatesList();
9523
+ if (f.length > 0) {
9524
+ writer.writeRepeatedMessage(
9525
+ 2,
9526
+ f,
9527
+ proto.gateway.web.v1.DashboardTemplate.serializeBinaryToWriter
9528
+ );
9529
+ }
9530
+ };
9531
+
9532
+
9533
+ /**
9534
+ * optional gateway.common.v1.ResponseStatus status = 1;
9535
+ * @return {?proto.gateway.common.v1.ResponseStatus}
9536
+ */
9537
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.getStatus = function() {
9538
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
9539
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
9540
+ };
9541
+
9542
+
9543
+ /**
9544
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
9545
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesResponse} returns this
9546
+ */
9547
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.setStatus = function(value) {
9548
+ return jspb.Message.setWrapperField(this, 1, value);
9549
+ };
9550
+
9551
+
9552
+ /**
9553
+ * Clears the message field making it undefined.
9554
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesResponse} returns this
9555
+ */
9556
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.clearStatus = function() {
9557
+ return this.setStatus(undefined);
9558
+ };
9559
+
9560
+
9561
+ /**
9562
+ * Returns whether this field is set.
9563
+ * @return {boolean}
9564
+ */
9565
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.hasStatus = function() {
9566
+ return jspb.Message.getField(this, 1) != null;
9567
+ };
9568
+
9569
+
9570
+ /**
9571
+ * repeated DashboardTemplate templates = 2;
9572
+ * @return {!Array<!proto.gateway.web.v1.DashboardTemplate>}
9573
+ */
9574
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.getTemplatesList = function() {
9575
+ return /** @type{!Array<!proto.gateway.web.v1.DashboardTemplate>} */ (
9576
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.DashboardTemplate, 2));
9577
+ };
9578
+
9579
+
9580
+ /**
9581
+ * @param {!Array<!proto.gateway.web.v1.DashboardTemplate>} value
9582
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesResponse} returns this
9583
+ */
9584
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.setTemplatesList = function(value) {
9585
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
9586
+ };
9587
+
9588
+
9589
+ /**
9590
+ * @param {!proto.gateway.web.v1.DashboardTemplate=} opt_value
9591
+ * @param {number=} opt_index
9592
+ * @return {!proto.gateway.web.v1.DashboardTemplate}
9593
+ */
9594
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.addTemplates = function(opt_value, opt_index) {
9595
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.DashboardTemplate, opt_index);
9596
+ };
9597
+
9598
+
9599
+ /**
9600
+ * Clears the list making it empty but non-null.
9601
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesResponse} returns this
9602
+ */
9603
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.clearTemplatesList = function() {
9604
+ return this.setTemplatesList([]);
9605
+ };
9606
+
9607
+
9608
+
9609
+
9610
+
9611
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9612
+ /**
9613
+ * Creates an object representation of this proto.
9614
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9615
+ * Optional fields that are not set will be set to undefined.
9616
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9617
+ * For the list of reserved names please see:
9618
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9619
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9620
+ * JSPB instance for transitional soy proto support:
9621
+ * http://goto/soy-param-migration
9622
+ * @return {!Object}
9623
+ */
9624
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.toObject = function(opt_includeInstance) {
9625
+ return proto.gateway.web.v1.CreateDashboardFromTemplateRequest.toObject(opt_includeInstance, this);
9626
+ };
9627
+
9628
+
9629
+ /**
9630
+ * Static version of the {@see toObject} method.
9631
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9632
+ * the JSPB instance for transitional soy proto support:
9633
+ * http://goto/soy-param-migration
9634
+ * @param {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} msg The msg instance to transform.
9635
+ * @return {!Object}
9636
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9637
+ */
9638
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.toObject = function(includeInstance, msg) {
9639
+ var f, obj = {
9640
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
9641
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
9642
+ templateId: jspb.Message.getFieldWithDefault(msg, 3, ""),
9643
+ name: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
9644
+ description: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
9645
+ defaultTimeWindow: jspb.Message.getFieldWithDefault(msg, 6, 0)
9646
+ };
9647
+
9648
+ if (includeInstance) {
9649
+ obj.$jspbMessageInstance = msg;
9650
+ }
9651
+ return obj;
9652
+ };
9653
+ }
9654
+
9655
+
9656
+ /**
9657
+ * Deserializes binary data (in protobuf wire format).
9658
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
9659
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest}
9660
+ */
9661
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.deserializeBinary = function(bytes) {
9662
+ var reader = new jspb.BinaryReader(bytes);
9663
+ var msg = new proto.gateway.web.v1.CreateDashboardFromTemplateRequest;
9664
+ return proto.gateway.web.v1.CreateDashboardFromTemplateRequest.deserializeBinaryFromReader(msg, reader);
9665
+ };
9666
+
9667
+
9668
+ /**
9669
+ * Deserializes binary data (in protobuf wire format) from the
9670
+ * given reader into the given message object.
9671
+ * @param {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} msg The message object to deserialize into.
9672
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9673
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest}
9674
+ */
9675
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.deserializeBinaryFromReader = function(msg, reader) {
9676
+ while (reader.nextField()) {
9677
+ if (reader.isEndGroup()) {
9678
+ break;
9679
+ }
9680
+ var field = reader.getFieldNumber();
9681
+ switch (field) {
9682
+ case 1:
9683
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9684
+ msg.setOrganizationId(value);
9685
+ break;
9686
+ case 2:
9687
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9688
+ msg.setProjectId(value);
9689
+ break;
9690
+ case 3:
9691
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9692
+ msg.setTemplateId(value);
9693
+ break;
9694
+ case 4:
9695
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9696
+ msg.setName(value);
9697
+ break;
9698
+ case 5:
9699
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9700
+ msg.setDescription(value);
9701
+ break;
9702
+ case 6:
9703
+ var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (reader.readEnum());
9704
+ msg.setDefaultTimeWindow(value);
9705
+ break;
9706
+ default:
9707
+ reader.skipField();
9708
+ break;
9709
+ }
9710
+ }
9711
+ return msg;
9712
+ };
9713
+
9714
+
9715
+ /**
9716
+ * Serializes the message to binary data (in protobuf wire format).
9717
+ * @return {!Uint8Array}
9718
+ */
9719
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.serializeBinary = function() {
9720
+ var writer = new jspb.BinaryWriter();
9721
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.serializeBinaryToWriter(this, writer);
9722
+ return writer.getResultBuffer();
9723
+ };
9724
+
9725
+
9726
+ /**
9727
+ * Serializes the given message to binary data (in protobuf wire
9728
+ * format), writing to the given BinaryWriter.
9729
+ * @param {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} message
9730
+ * @param {!jspb.BinaryWriter} writer
9731
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9732
+ */
9733
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.serializeBinaryToWriter = function(message, writer) {
9734
+ var f = undefined;
9735
+ f = message.getOrganizationId();
9736
+ if (f.length > 0) {
9737
+ writer.writeString(
9738
+ 1,
9739
+ f
9740
+ );
9741
+ }
9742
+ f = message.getProjectId();
9743
+ if (f.length > 0) {
9744
+ writer.writeString(
9745
+ 2,
9746
+ f
9747
+ );
9748
+ }
9749
+ f = message.getTemplateId();
9750
+ if (f.length > 0) {
9751
+ writer.writeString(
9752
+ 3,
9753
+ f
9754
+ );
9755
+ }
9756
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
9757
+ if (f != null) {
9758
+ writer.writeString(
9759
+ 4,
9760
+ f
9761
+ );
9762
+ }
9763
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
9764
+ if (f != null) {
9765
+ writer.writeString(
9766
+ 5,
9767
+ f
9768
+ );
9769
+ }
9770
+ f = message.getDefaultTimeWindow();
9771
+ if (f !== 0.0) {
9772
+ writer.writeEnum(
9773
+ 6,
9774
+ f
9775
+ );
9776
+ }
9777
+ };
9778
+
9779
+
9780
+ /**
9781
+ * optional string organization_id = 1;
9782
+ * @return {string}
9783
+ */
9784
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.getOrganizationId = function() {
9785
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9786
+ };
9787
+
9788
+
9789
+ /**
9790
+ * @param {string} value
9791
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} returns this
9792
+ */
9793
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.setOrganizationId = function(value) {
9794
+ return jspb.Message.setProto3StringField(this, 1, value);
9795
+ };
9796
+
9797
+
9798
+ /**
9799
+ * optional string project_id = 2;
9800
+ * @return {string}
9801
+ */
9802
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.getProjectId = function() {
9803
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9804
+ };
9805
+
9806
+
9807
+ /**
9808
+ * @param {string} value
9809
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} returns this
9810
+ */
9811
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.setProjectId = function(value) {
9812
+ return jspb.Message.setProto3StringField(this, 2, value);
9813
+ };
9814
+
9815
+
9816
+ /**
9817
+ * optional string template_id = 3;
9818
+ * @return {string}
9819
+ */
9820
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.getTemplateId = function() {
9821
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
9822
+ };
9823
+
9824
+
9825
+ /**
9826
+ * @param {string} value
9827
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} returns this
9828
+ */
9829
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.setTemplateId = function(value) {
9830
+ return jspb.Message.setProto3StringField(this, 3, value);
9831
+ };
9832
+
9833
+
9834
+ /**
9835
+ * optional string name = 4;
9836
+ * @return {string}
9837
+ */
9838
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.getName = function() {
9839
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
9840
+ };
9841
+
9842
+
9843
+ /**
9844
+ * @param {string} value
9845
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} returns this
9846
+ */
9847
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.setName = function(value) {
9848
+ return jspb.Message.setField(this, 4, value);
9849
+ };
9850
+
9851
+
9852
+ /**
9853
+ * Clears the field making it undefined.
9854
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} returns this
9855
+ */
9856
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.clearName = function() {
9857
+ return jspb.Message.setField(this, 4, undefined);
9858
+ };
9859
+
9860
+
9861
+ /**
9862
+ * Returns whether this field is set.
9863
+ * @return {boolean}
9864
+ */
9865
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.hasName = function() {
9866
+ return jspb.Message.getField(this, 4) != null;
9867
+ };
9868
+
9869
+
9870
+ /**
9871
+ * optional string description = 5;
9872
+ * @return {string}
9873
+ */
9874
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.getDescription = function() {
9875
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
9876
+ };
9877
+
9878
+
9879
+ /**
9880
+ * @param {string} value
9881
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} returns this
9882
+ */
9883
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.setDescription = function(value) {
9884
+ return jspb.Message.setField(this, 5, value);
9885
+ };
9886
+
9887
+
9888
+ /**
9889
+ * Clears the field making it undefined.
9890
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} returns this
9891
+ */
9892
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.clearDescription = function() {
9893
+ return jspb.Message.setField(this, 5, undefined);
9894
+ };
9895
+
9896
+
9897
+ /**
9898
+ * Returns whether this field is set.
9899
+ * @return {boolean}
9900
+ */
9901
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.hasDescription = function() {
9902
+ return jspb.Message.getField(this, 5) != null;
9903
+ };
9904
+
9905
+
9906
+ /**
9907
+ * optional AnalyticsTimeWindow default_time_window = 6;
9908
+ * @return {!proto.gateway.web.v1.AnalyticsTimeWindow}
9909
+ */
9910
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.getDefaultTimeWindow = function() {
9911
+ return /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
9912
+ };
9913
+
9914
+
9915
+ /**
9916
+ * @param {!proto.gateway.web.v1.AnalyticsTimeWindow} value
9917
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} returns this
9918
+ */
9919
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.setDefaultTimeWindow = function(value) {
9920
+ return jspb.Message.setProto3EnumField(this, 6, value);
9921
+ };
9922
+
9923
+
9924
+
9925
+
9926
+
9927
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9928
+ /**
9929
+ * Creates an object representation of this proto.
9930
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9931
+ * Optional fields that are not set will be set to undefined.
9932
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9933
+ * For the list of reserved names please see:
9934
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9935
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9936
+ * JSPB instance for transitional soy proto support:
9937
+ * http://goto/soy-param-migration
9938
+ * @return {!Object}
9939
+ */
9940
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.toObject = function(opt_includeInstance) {
9941
+ return proto.gateway.web.v1.CreateDashboardFromTemplateResponse.toObject(opt_includeInstance, this);
9942
+ };
9943
+
9944
+
9945
+ /**
9946
+ * Static version of the {@see toObject} method.
9947
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9948
+ * the JSPB instance for transitional soy proto support:
9949
+ * http://goto/soy-param-migration
9950
+ * @param {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse} msg The msg instance to transform.
9951
+ * @return {!Object}
9952
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9953
+ */
9954
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.toObject = function(includeInstance, msg) {
9955
+ var f, obj = {
9956
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
9957
+ dashboard: (f = msg.getDashboard()) && proto.gateway.web.v1.Dashboard.toObject(includeInstance, f)
9958
+ };
9959
+
9960
+ if (includeInstance) {
9961
+ obj.$jspbMessageInstance = msg;
9962
+ }
9963
+ return obj;
9964
+ };
9965
+ }
9966
+
9967
+
9968
+ /**
9969
+ * Deserializes binary data (in protobuf wire format).
9970
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
9971
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse}
9972
+ */
9973
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.deserializeBinary = function(bytes) {
9974
+ var reader = new jspb.BinaryReader(bytes);
9975
+ var msg = new proto.gateway.web.v1.CreateDashboardFromTemplateResponse;
9976
+ return proto.gateway.web.v1.CreateDashboardFromTemplateResponse.deserializeBinaryFromReader(msg, reader);
9977
+ };
9978
+
9979
+
9980
+ /**
9981
+ * Deserializes binary data (in protobuf wire format) from the
9982
+ * given reader into the given message object.
9983
+ * @param {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse} msg The message object to deserialize into.
9984
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9985
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse}
9986
+ */
9987
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.deserializeBinaryFromReader = function(msg, reader) {
9988
+ while (reader.nextField()) {
9989
+ if (reader.isEndGroup()) {
9990
+ break;
9991
+ }
9992
+ var field = reader.getFieldNumber();
9993
+ switch (field) {
9994
+ case 1:
9995
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
9996
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
9997
+ msg.setStatus(value);
9998
+ break;
9999
+ case 2:
10000
+ var value = new proto.gateway.web.v1.Dashboard;
10001
+ reader.readMessage(value,proto.gateway.web.v1.Dashboard.deserializeBinaryFromReader);
10002
+ msg.setDashboard(value);
10003
+ break;
10004
+ default:
10005
+ reader.skipField();
10006
+ break;
10007
+ }
10008
+ }
10009
+ return msg;
10010
+ };
10011
+
10012
+
10013
+ /**
10014
+ * Serializes the message to binary data (in protobuf wire format).
10015
+ * @return {!Uint8Array}
10016
+ */
10017
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.serializeBinary = function() {
10018
+ var writer = new jspb.BinaryWriter();
10019
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.serializeBinaryToWriter(this, writer);
10020
+ return writer.getResultBuffer();
10021
+ };
10022
+
10023
+
10024
+ /**
10025
+ * Serializes the given message to binary data (in protobuf wire
10026
+ * format), writing to the given BinaryWriter.
10027
+ * @param {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse} message
10028
+ * @param {!jspb.BinaryWriter} writer
10029
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10030
+ */
10031
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.serializeBinaryToWriter = function(message, writer) {
10032
+ var f = undefined;
10033
+ f = message.getStatus();
10034
+ if (f != null) {
10035
+ writer.writeMessage(
10036
+ 1,
10037
+ f,
10038
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
10039
+ );
10040
+ }
10041
+ f = message.getDashboard();
10042
+ if (f != null) {
10043
+ writer.writeMessage(
10044
+ 2,
10045
+ f,
10046
+ proto.gateway.web.v1.Dashboard.serializeBinaryToWriter
10047
+ );
10048
+ }
10049
+ };
10050
+
10051
+
10052
+ /**
10053
+ * optional gateway.common.v1.ResponseStatus status = 1;
10054
+ * @return {?proto.gateway.common.v1.ResponseStatus}
10055
+ */
10056
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.getStatus = function() {
10057
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
10058
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
10059
+ };
10060
+
10061
+
10062
+ /**
10063
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
10064
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse} returns this
10065
+ */
10066
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.setStatus = function(value) {
10067
+ return jspb.Message.setWrapperField(this, 1, value);
10068
+ };
10069
+
10070
+
10071
+ /**
10072
+ * Clears the message field making it undefined.
10073
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse} returns this
10074
+ */
10075
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.clearStatus = function() {
10076
+ return this.setStatus(undefined);
10077
+ };
10078
+
10079
+
10080
+ /**
10081
+ * Returns whether this field is set.
10082
+ * @return {boolean}
10083
+ */
10084
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.hasStatus = function() {
10085
+ return jspb.Message.getField(this, 1) != null;
10086
+ };
10087
+
10088
+
10089
+ /**
10090
+ * optional Dashboard dashboard = 2;
10091
+ * @return {?proto.gateway.web.v1.Dashboard}
10092
+ */
10093
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.getDashboard = function() {
10094
+ return /** @type{?proto.gateway.web.v1.Dashboard} */ (
10095
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.Dashboard, 2));
10096
+ };
10097
+
10098
+
10099
+ /**
10100
+ * @param {?proto.gateway.web.v1.Dashboard|undefined} value
10101
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse} returns this
10102
+ */
10103
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.setDashboard = function(value) {
10104
+ return jspb.Message.setWrapperField(this, 2, value);
10105
+ };
10106
+
10107
+
10108
+ /**
10109
+ * Clears the message field making it undefined.
10110
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse} returns this
10111
+ */
10112
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.clearDashboard = function() {
10113
+ return this.setDashboard(undefined);
10114
+ };
10115
+
10116
+
10117
+ /**
10118
+ * Returns whether this field is set.
10119
+ * @return {boolean}
10120
+ */
10121
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.hasDashboard = function() {
10122
+ return jspb.Message.getField(this, 2) != null;
10123
+ };
10124
+
10125
+
10126
+
10127
+ /**
10128
+ * List of repeated fields within this message type.
10129
+ * @private {!Array<number>}
10130
+ * @const
10131
+ */
10132
+ proto.gateway.web.v1.StreamDashboardDataRequest.repeatedFields_ = [4];
10133
+
10134
+
10135
+
10136
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10137
+ /**
10138
+ * Creates an object representation of this proto.
10139
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10140
+ * Optional fields that are not set will be set to undefined.
10141
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10142
+ * For the list of reserved names please see:
10143
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10144
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10145
+ * JSPB instance for transitional soy proto support:
10146
+ * http://goto/soy-param-migration
10147
+ * @return {!Object}
10148
+ */
10149
+ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.toObject = function(opt_includeInstance) {
10150
+ return proto.gateway.web.v1.StreamDashboardDataRequest.toObject(opt_includeInstance, this);
10151
+ };
10152
+
10153
+
10154
+ /**
10155
+ * Static version of the {@see toObject} method.
10156
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10157
+ * the JSPB instance for transitional soy proto support:
10158
+ * http://goto/soy-param-migration
10159
+ * @param {!proto.gateway.web.v1.StreamDashboardDataRequest} msg The msg instance to transform.
10160
+ * @return {!Object}
10161
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10162
+ */
10163
+ proto.gateway.web.v1.StreamDashboardDataRequest.toObject = function(includeInstance, msg) {
10164
+ var f, obj = {
10165
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
10166
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
10167
+ dashboardId: jspb.Message.getFieldWithDefault(msg, 3, ""),
10168
+ widgetIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
10169
+ timeRange: (f = msg.getTimeRange()) && proto.gateway.web.v1.TimeRange.toObject(includeInstance, f)
10170
+ };
10171
+
10172
+ if (includeInstance) {
10173
+ obj.$jspbMessageInstance = msg;
10174
+ }
10175
+ return obj;
10176
+ };
10177
+ }
10178
+
10179
+
10180
+ /**
10181
+ * Deserializes binary data (in protobuf wire format).
10182
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
10183
+ * @return {!proto.gateway.web.v1.StreamDashboardDataRequest}
10184
+ */
10185
+ proto.gateway.web.v1.StreamDashboardDataRequest.deserializeBinary = function(bytes) {
10186
+ var reader = new jspb.BinaryReader(bytes);
10187
+ var msg = new proto.gateway.web.v1.StreamDashboardDataRequest;
10188
+ return proto.gateway.web.v1.StreamDashboardDataRequest.deserializeBinaryFromReader(msg, reader);
10189
+ };
10190
+
10191
+
10192
+ /**
10193
+ * Deserializes binary data (in protobuf wire format) from the
10194
+ * given reader into the given message object.
10195
+ * @param {!proto.gateway.web.v1.StreamDashboardDataRequest} msg The message object to deserialize into.
10196
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10197
+ * @return {!proto.gateway.web.v1.StreamDashboardDataRequest}
10198
+ */
10199
+ proto.gateway.web.v1.StreamDashboardDataRequest.deserializeBinaryFromReader = function(msg, reader) {
10200
+ while (reader.nextField()) {
10201
+ if (reader.isEndGroup()) {
10202
+ break;
10203
+ }
10204
+ var field = reader.getFieldNumber();
10205
+ switch (field) {
10206
+ case 1:
10207
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
10208
+ msg.setOrganizationId(value);
10209
+ break;
10210
+ case 2:
10211
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
10212
+ msg.setProjectId(value);
10213
+ break;
10214
+ case 3:
10215
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
10216
+ msg.setDashboardId(value);
10217
+ break;
10218
+ case 4:
10219
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
10220
+ msg.addWidgetIds(value);
10221
+ break;
10222
+ case 5:
10223
+ var value = new proto.gateway.web.v1.TimeRange;
10224
+ reader.readMessage(value,proto.gateway.web.v1.TimeRange.deserializeBinaryFromReader);
10225
+ msg.setTimeRange(value);
10226
+ break;
10227
+ default:
10228
+ reader.skipField();
10229
+ break;
10230
+ }
10231
+ }
10232
+ return msg;
10233
+ };
10234
+
10235
+
10236
+ /**
10237
+ * Serializes the message to binary data (in protobuf wire format).
10238
+ * @return {!Uint8Array}
10239
+ */
10240
+ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.serializeBinary = function() {
10241
+ var writer = new jspb.BinaryWriter();
10242
+ proto.gateway.web.v1.StreamDashboardDataRequest.serializeBinaryToWriter(this, writer);
10243
+ return writer.getResultBuffer();
10244
+ };
10245
+
10246
+
10247
+ /**
10248
+ * Serializes the given message to binary data (in protobuf wire
10249
+ * format), writing to the given BinaryWriter.
10250
+ * @param {!proto.gateway.web.v1.StreamDashboardDataRequest} message
10251
+ * @param {!jspb.BinaryWriter} writer
10252
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10253
+ */
10254
+ proto.gateway.web.v1.StreamDashboardDataRequest.serializeBinaryToWriter = function(message, writer) {
10255
+ var f = undefined;
10256
+ f = message.getOrganizationId();
10257
+ if (f.length > 0) {
10258
+ writer.writeString(
10259
+ 1,
10260
+ f
10261
+ );
10262
+ }
10263
+ f = message.getProjectId();
10264
+ if (f.length > 0) {
10265
+ writer.writeString(
10266
+ 2,
10267
+ f
10268
+ );
10269
+ }
10270
+ f = message.getDashboardId();
10271
+ if (f.length > 0) {
10272
+ writer.writeString(
10273
+ 3,
10274
+ f
10275
+ );
10276
+ }
10277
+ f = message.getWidgetIdsList();
10278
+ if (f.length > 0) {
10279
+ writer.writeRepeatedString(
10280
+ 4,
10281
+ f
10282
+ );
10283
+ }
10284
+ f = message.getTimeRange();
10285
+ if (f != null) {
10286
+ writer.writeMessage(
10287
+ 5,
10288
+ f,
10289
+ proto.gateway.web.v1.TimeRange.serializeBinaryToWriter
10290
+ );
10291
+ }
10292
+ };
10293
+
10294
+
10295
+ /**
10296
+ * optional string organization_id = 1;
10297
+ * @return {string}
10298
+ */
10299
+ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.getOrganizationId = function() {
10300
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
10301
+ };
10302
+
10303
+
10304
+ /**
10305
+ * @param {string} value
10306
+ * @return {!proto.gateway.web.v1.StreamDashboardDataRequest} returns this
10307
+ */
10308
+ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.setOrganizationId = function(value) {
10309
+ return jspb.Message.setProto3StringField(this, 1, value);
10310
+ };
10311
+
10312
+
10313
+ /**
10314
+ * optional string project_id = 2;
10315
+ * @return {string}
10316
+ */
10317
+ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.getProjectId = function() {
10318
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
10319
+ };
10320
+
10321
+
10322
+ /**
10323
+ * @param {string} value
10324
+ * @return {!proto.gateway.web.v1.StreamDashboardDataRequest} returns this
10325
+ */
10326
+ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.setProjectId = function(value) {
10327
+ return jspb.Message.setProto3StringField(this, 2, value);
10328
+ };
10329
+
10330
+
10331
+ /**
10332
+ * optional string dashboard_id = 3;
10333
+ * @return {string}
10334
+ */
10335
+ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.getDashboardId = function() {
10336
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
10337
+ };
10338
+
10339
+
10340
+ /**
10341
+ * @param {string} value
10342
+ * @return {!proto.gateway.web.v1.StreamDashboardDataRequest} returns this
10343
+ */
10344
+ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.setDashboardId = function(value) {
10345
+ return jspb.Message.setProto3StringField(this, 3, value);
10346
+ };
10347
+
10348
+
10349
+ /**
10350
+ * repeated string widget_ids = 4;
10351
+ * @return {!Array<string>}
10352
+ */
10353
+ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.getWidgetIdsList = function() {
10354
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
10355
+ };
10356
+
10357
+
10358
+ /**
10359
+ * @param {!Array<string>} value
10360
+ * @return {!proto.gateway.web.v1.StreamDashboardDataRequest} returns this
10361
+ */
10362
+ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.setWidgetIdsList = function(value) {
10363
+ return jspb.Message.setField(this, 4, value || []);
10364
+ };
10365
+
10366
+
10367
+ /**
10368
+ * @param {string} value
10369
+ * @param {number=} opt_index
10370
+ * @return {!proto.gateway.web.v1.StreamDashboardDataRequest} returns this
10371
+ */
10372
+ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.addWidgetIds = function(value, opt_index) {
10373
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
10374
+ };
10375
+
10376
+
10377
+ /**
10378
+ * Clears the list making it empty but non-null.
10379
+ * @return {!proto.gateway.web.v1.StreamDashboardDataRequest} returns this
10380
+ */
10381
+ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.clearWidgetIdsList = function() {
10382
+ return this.setWidgetIdsList([]);
10383
+ };
10384
+
10385
+
10386
+ /**
10387
+ * optional TimeRange time_range = 5;
10388
+ * @return {?proto.gateway.web.v1.TimeRange}
10389
+ */
10390
+ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.getTimeRange = function() {
10391
+ return /** @type{?proto.gateway.web.v1.TimeRange} */ (
10392
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.TimeRange, 5));
10393
+ };
10394
+
10395
+
10396
+ /**
10397
+ * @param {?proto.gateway.web.v1.TimeRange|undefined} value
10398
+ * @return {!proto.gateway.web.v1.StreamDashboardDataRequest} returns this
10399
+ */
10400
+ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.setTimeRange = function(value) {
10401
+ return jspb.Message.setWrapperField(this, 5, value);
10402
+ };
10403
+
10404
+
10405
+ /**
10406
+ * Clears the message field making it undefined.
10407
+ * @return {!proto.gateway.web.v1.StreamDashboardDataRequest} returns this
10408
+ */
10409
+ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.clearTimeRange = function() {
10410
+ return this.setTimeRange(undefined);
10411
+ };
10412
+
10413
+
10414
+ /**
10415
+ * Returns whether this field is set.
10416
+ * @return {boolean}
10417
+ */
10418
+ proto.gateway.web.v1.StreamDashboardDataRequest.prototype.hasTimeRange = function() {
10419
+ return jspb.Message.getField(this, 5) != null;
10420
+ };
10421
+
10422
+
10423
+
10424
+ /**
10425
+ * Oneof group definitions for this message. Each group defines the field
10426
+ * numbers belonging to that group. When of these fields' value is set, all
10427
+ * other fields in the group are cleared. During deserialization, if multiple
10428
+ * fields are encountered for a group, only the last value seen will be kept.
10429
+ * @private {!Array<!Array<number>>}
10430
+ * @const
10431
+ */
10432
+ proto.gateway.web.v1.DashboardDataEnvelope.oneofGroups_ = [[3,4,5]];
9153
10433
 
9154
10434
  /**
9155
10435
  * @enum {number}
@@ -10778,4 +12058,12 @@ proto.gateway.web.v1.TimeseriesStyle = {
10778
12058
  TIMESERIES_STYLE_STACKED_BAR: 4
10779
12059
  };
10780
12060
 
12061
+ /**
12062
+ * @enum {number}
12063
+ */
12064
+ proto.gateway.web.v1.StatReduction = {
12065
+ STAT_REDUCTION_UNSPECIFIED: 0,
12066
+ STAT_REDUCTION_COUNT: 1
12067
+ };
12068
+
10781
12069
  goog.object.extend(exports, proto.gateway.web.v1);