@miradorlabs/web-grpc 2.75.0 → 2.76.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);
@@ -789,6 +794,111 @@ if (goog.DEBUG && !COMPILED) {
789
794
  */
790
795
  proto.gateway.web.v1.DeleteDashboardResponse.displayName = 'proto.gateway.web.v1.DeleteDashboardResponse';
791
796
  }
797
+ /**
798
+ * Generated by JsPbCodeGenerator.
799
+ * @param {Array=} opt_data Optional initial data array, typically from a
800
+ * server response, or constructed directly in Javascript. The array is used
801
+ * in place and becomes part of the constructed object. It is not cloned.
802
+ * If no data is provided, the constructed object will be empty, but still
803
+ * valid.
804
+ * @extends {jspb.Message}
805
+ * @constructor
806
+ */
807
+ proto.gateway.web.v1.DashboardTemplate = function(opt_data) {
808
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.DashboardTemplate.repeatedFields_, null);
809
+ };
810
+ goog.inherits(proto.gateway.web.v1.DashboardTemplate, jspb.Message);
811
+ if (goog.DEBUG && !COMPILED) {
812
+ /**
813
+ * @public
814
+ * @override
815
+ */
816
+ proto.gateway.web.v1.DashboardTemplate.displayName = 'proto.gateway.web.v1.DashboardTemplate';
817
+ }
818
+ /**
819
+ * Generated by JsPbCodeGenerator.
820
+ * @param {Array=} opt_data Optional initial data array, typically from a
821
+ * server response, or constructed directly in Javascript. The array is used
822
+ * in place and becomes part of the constructed object. It is not cloned.
823
+ * If no data is provided, the constructed object will be empty, but still
824
+ * valid.
825
+ * @extends {jspb.Message}
826
+ * @constructor
827
+ */
828
+ proto.gateway.web.v1.ListDashboardTemplatesRequest = function(opt_data) {
829
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
830
+ };
831
+ goog.inherits(proto.gateway.web.v1.ListDashboardTemplatesRequest, jspb.Message);
832
+ if (goog.DEBUG && !COMPILED) {
833
+ /**
834
+ * @public
835
+ * @override
836
+ */
837
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.displayName = 'proto.gateway.web.v1.ListDashboardTemplatesRequest';
838
+ }
839
+ /**
840
+ * Generated by JsPbCodeGenerator.
841
+ * @param {Array=} opt_data Optional initial data array, typically from a
842
+ * server response, or constructed directly in Javascript. The array is used
843
+ * in place and becomes part of the constructed object. It is not cloned.
844
+ * If no data is provided, the constructed object will be empty, but still
845
+ * valid.
846
+ * @extends {jspb.Message}
847
+ * @constructor
848
+ */
849
+ proto.gateway.web.v1.ListDashboardTemplatesResponse = function(opt_data) {
850
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListDashboardTemplatesResponse.repeatedFields_, null);
851
+ };
852
+ goog.inherits(proto.gateway.web.v1.ListDashboardTemplatesResponse, jspb.Message);
853
+ if (goog.DEBUG && !COMPILED) {
854
+ /**
855
+ * @public
856
+ * @override
857
+ */
858
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.displayName = 'proto.gateway.web.v1.ListDashboardTemplatesResponse';
859
+ }
860
+ /**
861
+ * Generated by JsPbCodeGenerator.
862
+ * @param {Array=} opt_data Optional initial data array, typically from a
863
+ * server response, or constructed directly in Javascript. The array is used
864
+ * in place and becomes part of the constructed object. It is not cloned.
865
+ * If no data is provided, the constructed object will be empty, but still
866
+ * valid.
867
+ * @extends {jspb.Message}
868
+ * @constructor
869
+ */
870
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest = function(opt_data) {
871
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
872
+ };
873
+ goog.inherits(proto.gateway.web.v1.CreateDashboardFromTemplateRequest, jspb.Message);
874
+ if (goog.DEBUG && !COMPILED) {
875
+ /**
876
+ * @public
877
+ * @override
878
+ */
879
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.displayName = 'proto.gateway.web.v1.CreateDashboardFromTemplateRequest';
880
+ }
881
+ /**
882
+ * Generated by JsPbCodeGenerator.
883
+ * @param {Array=} opt_data Optional initial data array, typically from a
884
+ * server response, or constructed directly in Javascript. The array is used
885
+ * in place and becomes part of the constructed object. It is not cloned.
886
+ * If no data is provided, the constructed object will be empty, but still
887
+ * valid.
888
+ * @extends {jspb.Message}
889
+ * @constructor
890
+ */
891
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse = function(opt_data) {
892
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
893
+ };
894
+ goog.inherits(proto.gateway.web.v1.CreateDashboardFromTemplateResponse, jspb.Message);
895
+ if (goog.DEBUG && !COMPILED) {
896
+ /**
897
+ * @public
898
+ * @override
899
+ */
900
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.displayName = 'proto.gateway.web.v1.CreateDashboardFromTemplateResponse';
901
+ }
792
902
  /**
793
903
  * Generated by JsPbCodeGenerator.
794
904
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -8844,6 +8954,1145 @@ proto.gateway.web.v1.DeleteDashboardResponse.prototype.hasStatus = function() {
8844
8954
 
8845
8955
 
8846
8956
 
8957
+ /**
8958
+ * List of repeated fields within this message type.
8959
+ * @private {!Array<number>}
8960
+ * @const
8961
+ */
8962
+ proto.gateway.web.v1.DashboardTemplate.repeatedFields_ = [5];
8963
+
8964
+
8965
+
8966
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8967
+ /**
8968
+ * Creates an object representation of this proto.
8969
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8970
+ * Optional fields that are not set will be set to undefined.
8971
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8972
+ * For the list of reserved names please see:
8973
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8974
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8975
+ * JSPB instance for transitional soy proto support:
8976
+ * http://goto/soy-param-migration
8977
+ * @return {!Object}
8978
+ */
8979
+ proto.gateway.web.v1.DashboardTemplate.prototype.toObject = function(opt_includeInstance) {
8980
+ return proto.gateway.web.v1.DashboardTemplate.toObject(opt_includeInstance, this);
8981
+ };
8982
+
8983
+
8984
+ /**
8985
+ * Static version of the {@see toObject} method.
8986
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8987
+ * the JSPB instance for transitional soy proto support:
8988
+ * http://goto/soy-param-migration
8989
+ * @param {!proto.gateway.web.v1.DashboardTemplate} msg The msg instance to transform.
8990
+ * @return {!Object}
8991
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8992
+ */
8993
+ proto.gateway.web.v1.DashboardTemplate.toObject = function(includeInstance, msg) {
8994
+ var f, obj = {
8995
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
8996
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
8997
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
8998
+ defaultTimeWindow: jspb.Message.getFieldWithDefault(msg, 4, 0),
8999
+ widgetsList: jspb.Message.toObjectList(msg.getWidgetsList(),
9000
+ proto.gateway.web.v1.Widget.toObject, includeInstance)
9001
+ };
9002
+
9003
+ if (includeInstance) {
9004
+ obj.$jspbMessageInstance = msg;
9005
+ }
9006
+ return obj;
9007
+ };
9008
+ }
9009
+
9010
+
9011
+ /**
9012
+ * Deserializes binary data (in protobuf wire format).
9013
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
9014
+ * @return {!proto.gateway.web.v1.DashboardTemplate}
9015
+ */
9016
+ proto.gateway.web.v1.DashboardTemplate.deserializeBinary = function(bytes) {
9017
+ var reader = new jspb.BinaryReader(bytes);
9018
+ var msg = new proto.gateway.web.v1.DashboardTemplate;
9019
+ return proto.gateway.web.v1.DashboardTemplate.deserializeBinaryFromReader(msg, reader);
9020
+ };
9021
+
9022
+
9023
+ /**
9024
+ * Deserializes binary data (in protobuf wire format) from the
9025
+ * given reader into the given message object.
9026
+ * @param {!proto.gateway.web.v1.DashboardTemplate} msg The message object to deserialize into.
9027
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9028
+ * @return {!proto.gateway.web.v1.DashboardTemplate}
9029
+ */
9030
+ proto.gateway.web.v1.DashboardTemplate.deserializeBinaryFromReader = function(msg, reader) {
9031
+ while (reader.nextField()) {
9032
+ if (reader.isEndGroup()) {
9033
+ break;
9034
+ }
9035
+ var field = reader.getFieldNumber();
9036
+ switch (field) {
9037
+ case 1:
9038
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9039
+ msg.setId(value);
9040
+ break;
9041
+ case 2:
9042
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9043
+ msg.setName(value);
9044
+ break;
9045
+ case 3:
9046
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9047
+ msg.setDescription(value);
9048
+ break;
9049
+ case 4:
9050
+ var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (reader.readEnum());
9051
+ msg.setDefaultTimeWindow(value);
9052
+ break;
9053
+ case 5:
9054
+ var value = new proto.gateway.web.v1.Widget;
9055
+ reader.readMessage(value,proto.gateway.web.v1.Widget.deserializeBinaryFromReader);
9056
+ msg.addWidgets(value);
9057
+ break;
9058
+ default:
9059
+ reader.skipField();
9060
+ break;
9061
+ }
9062
+ }
9063
+ return msg;
9064
+ };
9065
+
9066
+
9067
+ /**
9068
+ * Serializes the message to binary data (in protobuf wire format).
9069
+ * @return {!Uint8Array}
9070
+ */
9071
+ proto.gateway.web.v1.DashboardTemplate.prototype.serializeBinary = function() {
9072
+ var writer = new jspb.BinaryWriter();
9073
+ proto.gateway.web.v1.DashboardTemplate.serializeBinaryToWriter(this, writer);
9074
+ return writer.getResultBuffer();
9075
+ };
9076
+
9077
+
9078
+ /**
9079
+ * Serializes the given message to binary data (in protobuf wire
9080
+ * format), writing to the given BinaryWriter.
9081
+ * @param {!proto.gateway.web.v1.DashboardTemplate} message
9082
+ * @param {!jspb.BinaryWriter} writer
9083
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9084
+ */
9085
+ proto.gateway.web.v1.DashboardTemplate.serializeBinaryToWriter = function(message, writer) {
9086
+ var f = undefined;
9087
+ f = message.getId();
9088
+ if (f.length > 0) {
9089
+ writer.writeString(
9090
+ 1,
9091
+ f
9092
+ );
9093
+ }
9094
+ f = message.getName();
9095
+ if (f.length > 0) {
9096
+ writer.writeString(
9097
+ 2,
9098
+ f
9099
+ );
9100
+ }
9101
+ f = message.getDescription();
9102
+ if (f.length > 0) {
9103
+ writer.writeString(
9104
+ 3,
9105
+ f
9106
+ );
9107
+ }
9108
+ f = message.getDefaultTimeWindow();
9109
+ if (f !== 0.0) {
9110
+ writer.writeEnum(
9111
+ 4,
9112
+ f
9113
+ );
9114
+ }
9115
+ f = message.getWidgetsList();
9116
+ if (f.length > 0) {
9117
+ writer.writeRepeatedMessage(
9118
+ 5,
9119
+ f,
9120
+ proto.gateway.web.v1.Widget.serializeBinaryToWriter
9121
+ );
9122
+ }
9123
+ };
9124
+
9125
+
9126
+ /**
9127
+ * optional string id = 1;
9128
+ * @return {string}
9129
+ */
9130
+ proto.gateway.web.v1.DashboardTemplate.prototype.getId = function() {
9131
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9132
+ };
9133
+
9134
+
9135
+ /**
9136
+ * @param {string} value
9137
+ * @return {!proto.gateway.web.v1.DashboardTemplate} returns this
9138
+ */
9139
+ proto.gateway.web.v1.DashboardTemplate.prototype.setId = function(value) {
9140
+ return jspb.Message.setProto3StringField(this, 1, value);
9141
+ };
9142
+
9143
+
9144
+ /**
9145
+ * optional string name = 2;
9146
+ * @return {string}
9147
+ */
9148
+ proto.gateway.web.v1.DashboardTemplate.prototype.getName = function() {
9149
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9150
+ };
9151
+
9152
+
9153
+ /**
9154
+ * @param {string} value
9155
+ * @return {!proto.gateway.web.v1.DashboardTemplate} returns this
9156
+ */
9157
+ proto.gateway.web.v1.DashboardTemplate.prototype.setName = function(value) {
9158
+ return jspb.Message.setProto3StringField(this, 2, value);
9159
+ };
9160
+
9161
+
9162
+ /**
9163
+ * optional string description = 3;
9164
+ * @return {string}
9165
+ */
9166
+ proto.gateway.web.v1.DashboardTemplate.prototype.getDescription = function() {
9167
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
9168
+ };
9169
+
9170
+
9171
+ /**
9172
+ * @param {string} value
9173
+ * @return {!proto.gateway.web.v1.DashboardTemplate} returns this
9174
+ */
9175
+ proto.gateway.web.v1.DashboardTemplate.prototype.setDescription = function(value) {
9176
+ return jspb.Message.setProto3StringField(this, 3, value);
9177
+ };
9178
+
9179
+
9180
+ /**
9181
+ * optional AnalyticsTimeWindow default_time_window = 4;
9182
+ * @return {!proto.gateway.web.v1.AnalyticsTimeWindow}
9183
+ */
9184
+ proto.gateway.web.v1.DashboardTemplate.prototype.getDefaultTimeWindow = function() {
9185
+ return /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
9186
+ };
9187
+
9188
+
9189
+ /**
9190
+ * @param {!proto.gateway.web.v1.AnalyticsTimeWindow} value
9191
+ * @return {!proto.gateway.web.v1.DashboardTemplate} returns this
9192
+ */
9193
+ proto.gateway.web.v1.DashboardTemplate.prototype.setDefaultTimeWindow = function(value) {
9194
+ return jspb.Message.setProto3EnumField(this, 4, value);
9195
+ };
9196
+
9197
+
9198
+ /**
9199
+ * repeated Widget widgets = 5;
9200
+ * @return {!Array<!proto.gateway.web.v1.Widget>}
9201
+ */
9202
+ proto.gateway.web.v1.DashboardTemplate.prototype.getWidgetsList = function() {
9203
+ return /** @type{!Array<!proto.gateway.web.v1.Widget>} */ (
9204
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.Widget, 5));
9205
+ };
9206
+
9207
+
9208
+ /**
9209
+ * @param {!Array<!proto.gateway.web.v1.Widget>} value
9210
+ * @return {!proto.gateway.web.v1.DashboardTemplate} returns this
9211
+ */
9212
+ proto.gateway.web.v1.DashboardTemplate.prototype.setWidgetsList = function(value) {
9213
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
9214
+ };
9215
+
9216
+
9217
+ /**
9218
+ * @param {!proto.gateway.web.v1.Widget=} opt_value
9219
+ * @param {number=} opt_index
9220
+ * @return {!proto.gateway.web.v1.Widget}
9221
+ */
9222
+ proto.gateway.web.v1.DashboardTemplate.prototype.addWidgets = function(opt_value, opt_index) {
9223
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.gateway.web.v1.Widget, opt_index);
9224
+ };
9225
+
9226
+
9227
+ /**
9228
+ * Clears the list making it empty but non-null.
9229
+ * @return {!proto.gateway.web.v1.DashboardTemplate} returns this
9230
+ */
9231
+ proto.gateway.web.v1.DashboardTemplate.prototype.clearWidgetsList = function() {
9232
+ return this.setWidgetsList([]);
9233
+ };
9234
+
9235
+
9236
+
9237
+
9238
+
9239
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9240
+ /**
9241
+ * Creates an object representation of this proto.
9242
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9243
+ * Optional fields that are not set will be set to undefined.
9244
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9245
+ * For the list of reserved names please see:
9246
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9247
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9248
+ * JSPB instance for transitional soy proto support:
9249
+ * http://goto/soy-param-migration
9250
+ * @return {!Object}
9251
+ */
9252
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.prototype.toObject = function(opt_includeInstance) {
9253
+ return proto.gateway.web.v1.ListDashboardTemplatesRequest.toObject(opt_includeInstance, this);
9254
+ };
9255
+
9256
+
9257
+ /**
9258
+ * Static version of the {@see toObject} method.
9259
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9260
+ * the JSPB instance for transitional soy proto support:
9261
+ * http://goto/soy-param-migration
9262
+ * @param {!proto.gateway.web.v1.ListDashboardTemplatesRequest} msg The msg instance to transform.
9263
+ * @return {!Object}
9264
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9265
+ */
9266
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.toObject = function(includeInstance, msg) {
9267
+ var f, obj = {
9268
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, "")
9269
+ };
9270
+
9271
+ if (includeInstance) {
9272
+ obj.$jspbMessageInstance = msg;
9273
+ }
9274
+ return obj;
9275
+ };
9276
+ }
9277
+
9278
+
9279
+ /**
9280
+ * Deserializes binary data (in protobuf wire format).
9281
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
9282
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesRequest}
9283
+ */
9284
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.deserializeBinary = function(bytes) {
9285
+ var reader = new jspb.BinaryReader(bytes);
9286
+ var msg = new proto.gateway.web.v1.ListDashboardTemplatesRequest;
9287
+ return proto.gateway.web.v1.ListDashboardTemplatesRequest.deserializeBinaryFromReader(msg, reader);
9288
+ };
9289
+
9290
+
9291
+ /**
9292
+ * Deserializes binary data (in protobuf wire format) from the
9293
+ * given reader into the given message object.
9294
+ * @param {!proto.gateway.web.v1.ListDashboardTemplatesRequest} msg The message object to deserialize into.
9295
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9296
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesRequest}
9297
+ */
9298
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.deserializeBinaryFromReader = function(msg, reader) {
9299
+ while (reader.nextField()) {
9300
+ if (reader.isEndGroup()) {
9301
+ break;
9302
+ }
9303
+ var field = reader.getFieldNumber();
9304
+ switch (field) {
9305
+ case 1:
9306
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9307
+ msg.setOrganizationId(value);
9308
+ break;
9309
+ default:
9310
+ reader.skipField();
9311
+ break;
9312
+ }
9313
+ }
9314
+ return msg;
9315
+ };
9316
+
9317
+
9318
+ /**
9319
+ * Serializes the message to binary data (in protobuf wire format).
9320
+ * @return {!Uint8Array}
9321
+ */
9322
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.prototype.serializeBinary = function() {
9323
+ var writer = new jspb.BinaryWriter();
9324
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.serializeBinaryToWriter(this, writer);
9325
+ return writer.getResultBuffer();
9326
+ };
9327
+
9328
+
9329
+ /**
9330
+ * Serializes the given message to binary data (in protobuf wire
9331
+ * format), writing to the given BinaryWriter.
9332
+ * @param {!proto.gateway.web.v1.ListDashboardTemplatesRequest} message
9333
+ * @param {!jspb.BinaryWriter} writer
9334
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9335
+ */
9336
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.serializeBinaryToWriter = function(message, writer) {
9337
+ var f = undefined;
9338
+ f = message.getOrganizationId();
9339
+ if (f.length > 0) {
9340
+ writer.writeString(
9341
+ 1,
9342
+ f
9343
+ );
9344
+ }
9345
+ };
9346
+
9347
+
9348
+ /**
9349
+ * optional string organization_id = 1;
9350
+ * @return {string}
9351
+ */
9352
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.prototype.getOrganizationId = function() {
9353
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9354
+ };
9355
+
9356
+
9357
+ /**
9358
+ * @param {string} value
9359
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesRequest} returns this
9360
+ */
9361
+ proto.gateway.web.v1.ListDashboardTemplatesRequest.prototype.setOrganizationId = function(value) {
9362
+ return jspb.Message.setProto3StringField(this, 1, value);
9363
+ };
9364
+
9365
+
9366
+
9367
+ /**
9368
+ * List of repeated fields within this message type.
9369
+ * @private {!Array<number>}
9370
+ * @const
9371
+ */
9372
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.repeatedFields_ = [2];
9373
+
9374
+
9375
+
9376
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9377
+ /**
9378
+ * Creates an object representation of this proto.
9379
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9380
+ * Optional fields that are not set will be set to undefined.
9381
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9382
+ * For the list of reserved names please see:
9383
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9384
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9385
+ * JSPB instance for transitional soy proto support:
9386
+ * http://goto/soy-param-migration
9387
+ * @return {!Object}
9388
+ */
9389
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.toObject = function(opt_includeInstance) {
9390
+ return proto.gateway.web.v1.ListDashboardTemplatesResponse.toObject(opt_includeInstance, this);
9391
+ };
9392
+
9393
+
9394
+ /**
9395
+ * Static version of the {@see toObject} method.
9396
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9397
+ * the JSPB instance for transitional soy proto support:
9398
+ * http://goto/soy-param-migration
9399
+ * @param {!proto.gateway.web.v1.ListDashboardTemplatesResponse} msg The msg instance to transform.
9400
+ * @return {!Object}
9401
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9402
+ */
9403
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.toObject = function(includeInstance, msg) {
9404
+ var f, obj = {
9405
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
9406
+ templatesList: jspb.Message.toObjectList(msg.getTemplatesList(),
9407
+ proto.gateway.web.v1.DashboardTemplate.toObject, includeInstance)
9408
+ };
9409
+
9410
+ if (includeInstance) {
9411
+ obj.$jspbMessageInstance = msg;
9412
+ }
9413
+ return obj;
9414
+ };
9415
+ }
9416
+
9417
+
9418
+ /**
9419
+ * Deserializes binary data (in protobuf wire format).
9420
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
9421
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesResponse}
9422
+ */
9423
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.deserializeBinary = function(bytes) {
9424
+ var reader = new jspb.BinaryReader(bytes);
9425
+ var msg = new proto.gateway.web.v1.ListDashboardTemplatesResponse;
9426
+ return proto.gateway.web.v1.ListDashboardTemplatesResponse.deserializeBinaryFromReader(msg, reader);
9427
+ };
9428
+
9429
+
9430
+ /**
9431
+ * Deserializes binary data (in protobuf wire format) from the
9432
+ * given reader into the given message object.
9433
+ * @param {!proto.gateway.web.v1.ListDashboardTemplatesResponse} msg The message object to deserialize into.
9434
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9435
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesResponse}
9436
+ */
9437
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.deserializeBinaryFromReader = function(msg, reader) {
9438
+ while (reader.nextField()) {
9439
+ if (reader.isEndGroup()) {
9440
+ break;
9441
+ }
9442
+ var field = reader.getFieldNumber();
9443
+ switch (field) {
9444
+ case 1:
9445
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
9446
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
9447
+ msg.setStatus(value);
9448
+ break;
9449
+ case 2:
9450
+ var value = new proto.gateway.web.v1.DashboardTemplate;
9451
+ reader.readMessage(value,proto.gateway.web.v1.DashboardTemplate.deserializeBinaryFromReader);
9452
+ msg.addTemplates(value);
9453
+ break;
9454
+ default:
9455
+ reader.skipField();
9456
+ break;
9457
+ }
9458
+ }
9459
+ return msg;
9460
+ };
9461
+
9462
+
9463
+ /**
9464
+ * Serializes the message to binary data (in protobuf wire format).
9465
+ * @return {!Uint8Array}
9466
+ */
9467
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.serializeBinary = function() {
9468
+ var writer = new jspb.BinaryWriter();
9469
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.serializeBinaryToWriter(this, writer);
9470
+ return writer.getResultBuffer();
9471
+ };
9472
+
9473
+
9474
+ /**
9475
+ * Serializes the given message to binary data (in protobuf wire
9476
+ * format), writing to the given BinaryWriter.
9477
+ * @param {!proto.gateway.web.v1.ListDashboardTemplatesResponse} message
9478
+ * @param {!jspb.BinaryWriter} writer
9479
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9480
+ */
9481
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.serializeBinaryToWriter = function(message, writer) {
9482
+ var f = undefined;
9483
+ f = message.getStatus();
9484
+ if (f != null) {
9485
+ writer.writeMessage(
9486
+ 1,
9487
+ f,
9488
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
9489
+ );
9490
+ }
9491
+ f = message.getTemplatesList();
9492
+ if (f.length > 0) {
9493
+ writer.writeRepeatedMessage(
9494
+ 2,
9495
+ f,
9496
+ proto.gateway.web.v1.DashboardTemplate.serializeBinaryToWriter
9497
+ );
9498
+ }
9499
+ };
9500
+
9501
+
9502
+ /**
9503
+ * optional gateway.common.v1.ResponseStatus status = 1;
9504
+ * @return {?proto.gateway.common.v1.ResponseStatus}
9505
+ */
9506
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.getStatus = function() {
9507
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
9508
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
9509
+ };
9510
+
9511
+
9512
+ /**
9513
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
9514
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesResponse} returns this
9515
+ */
9516
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.setStatus = function(value) {
9517
+ return jspb.Message.setWrapperField(this, 1, value);
9518
+ };
9519
+
9520
+
9521
+ /**
9522
+ * Clears the message field making it undefined.
9523
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesResponse} returns this
9524
+ */
9525
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.clearStatus = function() {
9526
+ return this.setStatus(undefined);
9527
+ };
9528
+
9529
+
9530
+ /**
9531
+ * Returns whether this field is set.
9532
+ * @return {boolean}
9533
+ */
9534
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.hasStatus = function() {
9535
+ return jspb.Message.getField(this, 1) != null;
9536
+ };
9537
+
9538
+
9539
+ /**
9540
+ * repeated DashboardTemplate templates = 2;
9541
+ * @return {!Array<!proto.gateway.web.v1.DashboardTemplate>}
9542
+ */
9543
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.getTemplatesList = function() {
9544
+ return /** @type{!Array<!proto.gateway.web.v1.DashboardTemplate>} */ (
9545
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.DashboardTemplate, 2));
9546
+ };
9547
+
9548
+
9549
+ /**
9550
+ * @param {!Array<!proto.gateway.web.v1.DashboardTemplate>} value
9551
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesResponse} returns this
9552
+ */
9553
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.setTemplatesList = function(value) {
9554
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
9555
+ };
9556
+
9557
+
9558
+ /**
9559
+ * @param {!proto.gateway.web.v1.DashboardTemplate=} opt_value
9560
+ * @param {number=} opt_index
9561
+ * @return {!proto.gateway.web.v1.DashboardTemplate}
9562
+ */
9563
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.addTemplates = function(opt_value, opt_index) {
9564
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.DashboardTemplate, opt_index);
9565
+ };
9566
+
9567
+
9568
+ /**
9569
+ * Clears the list making it empty but non-null.
9570
+ * @return {!proto.gateway.web.v1.ListDashboardTemplatesResponse} returns this
9571
+ */
9572
+ proto.gateway.web.v1.ListDashboardTemplatesResponse.prototype.clearTemplatesList = function() {
9573
+ return this.setTemplatesList([]);
9574
+ };
9575
+
9576
+
9577
+
9578
+
9579
+
9580
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9581
+ /**
9582
+ * Creates an object representation of this proto.
9583
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9584
+ * Optional fields that are not set will be set to undefined.
9585
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9586
+ * For the list of reserved names please see:
9587
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9588
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9589
+ * JSPB instance for transitional soy proto support:
9590
+ * http://goto/soy-param-migration
9591
+ * @return {!Object}
9592
+ */
9593
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.toObject = function(opt_includeInstance) {
9594
+ return proto.gateway.web.v1.CreateDashboardFromTemplateRequest.toObject(opt_includeInstance, this);
9595
+ };
9596
+
9597
+
9598
+ /**
9599
+ * Static version of the {@see toObject} method.
9600
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9601
+ * the JSPB instance for transitional soy proto support:
9602
+ * http://goto/soy-param-migration
9603
+ * @param {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} msg The msg instance to transform.
9604
+ * @return {!Object}
9605
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9606
+ */
9607
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.toObject = function(includeInstance, msg) {
9608
+ var f, obj = {
9609
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
9610
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
9611
+ templateId: jspb.Message.getFieldWithDefault(msg, 3, ""),
9612
+ name: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
9613
+ description: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
9614
+ defaultTimeWindow: jspb.Message.getFieldWithDefault(msg, 6, 0)
9615
+ };
9616
+
9617
+ if (includeInstance) {
9618
+ obj.$jspbMessageInstance = msg;
9619
+ }
9620
+ return obj;
9621
+ };
9622
+ }
9623
+
9624
+
9625
+ /**
9626
+ * Deserializes binary data (in protobuf wire format).
9627
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
9628
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest}
9629
+ */
9630
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.deserializeBinary = function(bytes) {
9631
+ var reader = new jspb.BinaryReader(bytes);
9632
+ var msg = new proto.gateway.web.v1.CreateDashboardFromTemplateRequest;
9633
+ return proto.gateway.web.v1.CreateDashboardFromTemplateRequest.deserializeBinaryFromReader(msg, reader);
9634
+ };
9635
+
9636
+
9637
+ /**
9638
+ * Deserializes binary data (in protobuf wire format) from the
9639
+ * given reader into the given message object.
9640
+ * @param {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} msg The message object to deserialize into.
9641
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9642
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest}
9643
+ */
9644
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.deserializeBinaryFromReader = function(msg, reader) {
9645
+ while (reader.nextField()) {
9646
+ if (reader.isEndGroup()) {
9647
+ break;
9648
+ }
9649
+ var field = reader.getFieldNumber();
9650
+ switch (field) {
9651
+ case 1:
9652
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9653
+ msg.setOrganizationId(value);
9654
+ break;
9655
+ case 2:
9656
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9657
+ msg.setProjectId(value);
9658
+ break;
9659
+ case 3:
9660
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9661
+ msg.setTemplateId(value);
9662
+ break;
9663
+ case 4:
9664
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9665
+ msg.setName(value);
9666
+ break;
9667
+ case 5:
9668
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9669
+ msg.setDescription(value);
9670
+ break;
9671
+ case 6:
9672
+ var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (reader.readEnum());
9673
+ msg.setDefaultTimeWindow(value);
9674
+ break;
9675
+ default:
9676
+ reader.skipField();
9677
+ break;
9678
+ }
9679
+ }
9680
+ return msg;
9681
+ };
9682
+
9683
+
9684
+ /**
9685
+ * Serializes the message to binary data (in protobuf wire format).
9686
+ * @return {!Uint8Array}
9687
+ */
9688
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.serializeBinary = function() {
9689
+ var writer = new jspb.BinaryWriter();
9690
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.serializeBinaryToWriter(this, writer);
9691
+ return writer.getResultBuffer();
9692
+ };
9693
+
9694
+
9695
+ /**
9696
+ * Serializes the given message to binary data (in protobuf wire
9697
+ * format), writing to the given BinaryWriter.
9698
+ * @param {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} message
9699
+ * @param {!jspb.BinaryWriter} writer
9700
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9701
+ */
9702
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.serializeBinaryToWriter = function(message, writer) {
9703
+ var f = undefined;
9704
+ f = message.getOrganizationId();
9705
+ if (f.length > 0) {
9706
+ writer.writeString(
9707
+ 1,
9708
+ f
9709
+ );
9710
+ }
9711
+ f = message.getProjectId();
9712
+ if (f.length > 0) {
9713
+ writer.writeString(
9714
+ 2,
9715
+ f
9716
+ );
9717
+ }
9718
+ f = message.getTemplateId();
9719
+ if (f.length > 0) {
9720
+ writer.writeString(
9721
+ 3,
9722
+ f
9723
+ );
9724
+ }
9725
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
9726
+ if (f != null) {
9727
+ writer.writeString(
9728
+ 4,
9729
+ f
9730
+ );
9731
+ }
9732
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
9733
+ if (f != null) {
9734
+ writer.writeString(
9735
+ 5,
9736
+ f
9737
+ );
9738
+ }
9739
+ f = message.getDefaultTimeWindow();
9740
+ if (f !== 0.0) {
9741
+ writer.writeEnum(
9742
+ 6,
9743
+ f
9744
+ );
9745
+ }
9746
+ };
9747
+
9748
+
9749
+ /**
9750
+ * optional string organization_id = 1;
9751
+ * @return {string}
9752
+ */
9753
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.getOrganizationId = function() {
9754
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9755
+ };
9756
+
9757
+
9758
+ /**
9759
+ * @param {string} value
9760
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} returns this
9761
+ */
9762
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.setOrganizationId = function(value) {
9763
+ return jspb.Message.setProto3StringField(this, 1, value);
9764
+ };
9765
+
9766
+
9767
+ /**
9768
+ * optional string project_id = 2;
9769
+ * @return {string}
9770
+ */
9771
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.getProjectId = function() {
9772
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9773
+ };
9774
+
9775
+
9776
+ /**
9777
+ * @param {string} value
9778
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} returns this
9779
+ */
9780
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.setProjectId = function(value) {
9781
+ return jspb.Message.setProto3StringField(this, 2, value);
9782
+ };
9783
+
9784
+
9785
+ /**
9786
+ * optional string template_id = 3;
9787
+ * @return {string}
9788
+ */
9789
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.getTemplateId = function() {
9790
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
9791
+ };
9792
+
9793
+
9794
+ /**
9795
+ * @param {string} value
9796
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} returns this
9797
+ */
9798
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.setTemplateId = function(value) {
9799
+ return jspb.Message.setProto3StringField(this, 3, value);
9800
+ };
9801
+
9802
+
9803
+ /**
9804
+ * optional string name = 4;
9805
+ * @return {string}
9806
+ */
9807
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.getName = function() {
9808
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
9809
+ };
9810
+
9811
+
9812
+ /**
9813
+ * @param {string} value
9814
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} returns this
9815
+ */
9816
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.setName = function(value) {
9817
+ return jspb.Message.setField(this, 4, value);
9818
+ };
9819
+
9820
+
9821
+ /**
9822
+ * Clears the field making it undefined.
9823
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} returns this
9824
+ */
9825
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.clearName = function() {
9826
+ return jspb.Message.setField(this, 4, undefined);
9827
+ };
9828
+
9829
+
9830
+ /**
9831
+ * Returns whether this field is set.
9832
+ * @return {boolean}
9833
+ */
9834
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.hasName = function() {
9835
+ return jspb.Message.getField(this, 4) != null;
9836
+ };
9837
+
9838
+
9839
+ /**
9840
+ * optional string description = 5;
9841
+ * @return {string}
9842
+ */
9843
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.getDescription = function() {
9844
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
9845
+ };
9846
+
9847
+
9848
+ /**
9849
+ * @param {string} value
9850
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} returns this
9851
+ */
9852
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.setDescription = function(value) {
9853
+ return jspb.Message.setField(this, 5, value);
9854
+ };
9855
+
9856
+
9857
+ /**
9858
+ * Clears the field making it undefined.
9859
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} returns this
9860
+ */
9861
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.clearDescription = function() {
9862
+ return jspb.Message.setField(this, 5, undefined);
9863
+ };
9864
+
9865
+
9866
+ /**
9867
+ * Returns whether this field is set.
9868
+ * @return {boolean}
9869
+ */
9870
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.hasDescription = function() {
9871
+ return jspb.Message.getField(this, 5) != null;
9872
+ };
9873
+
9874
+
9875
+ /**
9876
+ * optional AnalyticsTimeWindow default_time_window = 6;
9877
+ * @return {!proto.gateway.web.v1.AnalyticsTimeWindow}
9878
+ */
9879
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.getDefaultTimeWindow = function() {
9880
+ return /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
9881
+ };
9882
+
9883
+
9884
+ /**
9885
+ * @param {!proto.gateway.web.v1.AnalyticsTimeWindow} value
9886
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateRequest} returns this
9887
+ */
9888
+ proto.gateway.web.v1.CreateDashboardFromTemplateRequest.prototype.setDefaultTimeWindow = function(value) {
9889
+ return jspb.Message.setProto3EnumField(this, 6, value);
9890
+ };
9891
+
9892
+
9893
+
9894
+
9895
+
9896
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9897
+ /**
9898
+ * Creates an object representation of this proto.
9899
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9900
+ * Optional fields that are not set will be set to undefined.
9901
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9902
+ * For the list of reserved names please see:
9903
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9904
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9905
+ * JSPB instance for transitional soy proto support:
9906
+ * http://goto/soy-param-migration
9907
+ * @return {!Object}
9908
+ */
9909
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.toObject = function(opt_includeInstance) {
9910
+ return proto.gateway.web.v1.CreateDashboardFromTemplateResponse.toObject(opt_includeInstance, this);
9911
+ };
9912
+
9913
+
9914
+ /**
9915
+ * Static version of the {@see toObject} method.
9916
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9917
+ * the JSPB instance for transitional soy proto support:
9918
+ * http://goto/soy-param-migration
9919
+ * @param {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse} msg The msg instance to transform.
9920
+ * @return {!Object}
9921
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9922
+ */
9923
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.toObject = function(includeInstance, msg) {
9924
+ var f, obj = {
9925
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
9926
+ dashboard: (f = msg.getDashboard()) && proto.gateway.web.v1.Dashboard.toObject(includeInstance, f)
9927
+ };
9928
+
9929
+ if (includeInstance) {
9930
+ obj.$jspbMessageInstance = msg;
9931
+ }
9932
+ return obj;
9933
+ };
9934
+ }
9935
+
9936
+
9937
+ /**
9938
+ * Deserializes binary data (in protobuf wire format).
9939
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
9940
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse}
9941
+ */
9942
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.deserializeBinary = function(bytes) {
9943
+ var reader = new jspb.BinaryReader(bytes);
9944
+ var msg = new proto.gateway.web.v1.CreateDashboardFromTemplateResponse;
9945
+ return proto.gateway.web.v1.CreateDashboardFromTemplateResponse.deserializeBinaryFromReader(msg, reader);
9946
+ };
9947
+
9948
+
9949
+ /**
9950
+ * Deserializes binary data (in protobuf wire format) from the
9951
+ * given reader into the given message object.
9952
+ * @param {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse} msg The message object to deserialize into.
9953
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9954
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse}
9955
+ */
9956
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.deserializeBinaryFromReader = function(msg, reader) {
9957
+ while (reader.nextField()) {
9958
+ if (reader.isEndGroup()) {
9959
+ break;
9960
+ }
9961
+ var field = reader.getFieldNumber();
9962
+ switch (field) {
9963
+ case 1:
9964
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
9965
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
9966
+ msg.setStatus(value);
9967
+ break;
9968
+ case 2:
9969
+ var value = new proto.gateway.web.v1.Dashboard;
9970
+ reader.readMessage(value,proto.gateway.web.v1.Dashboard.deserializeBinaryFromReader);
9971
+ msg.setDashboard(value);
9972
+ break;
9973
+ default:
9974
+ reader.skipField();
9975
+ break;
9976
+ }
9977
+ }
9978
+ return msg;
9979
+ };
9980
+
9981
+
9982
+ /**
9983
+ * Serializes the message to binary data (in protobuf wire format).
9984
+ * @return {!Uint8Array}
9985
+ */
9986
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.serializeBinary = function() {
9987
+ var writer = new jspb.BinaryWriter();
9988
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.serializeBinaryToWriter(this, writer);
9989
+ return writer.getResultBuffer();
9990
+ };
9991
+
9992
+
9993
+ /**
9994
+ * Serializes the given message to binary data (in protobuf wire
9995
+ * format), writing to the given BinaryWriter.
9996
+ * @param {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse} message
9997
+ * @param {!jspb.BinaryWriter} writer
9998
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9999
+ */
10000
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.serializeBinaryToWriter = function(message, writer) {
10001
+ var f = undefined;
10002
+ f = message.getStatus();
10003
+ if (f != null) {
10004
+ writer.writeMessage(
10005
+ 1,
10006
+ f,
10007
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
10008
+ );
10009
+ }
10010
+ f = message.getDashboard();
10011
+ if (f != null) {
10012
+ writer.writeMessage(
10013
+ 2,
10014
+ f,
10015
+ proto.gateway.web.v1.Dashboard.serializeBinaryToWriter
10016
+ );
10017
+ }
10018
+ };
10019
+
10020
+
10021
+ /**
10022
+ * optional gateway.common.v1.ResponseStatus status = 1;
10023
+ * @return {?proto.gateway.common.v1.ResponseStatus}
10024
+ */
10025
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.getStatus = function() {
10026
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
10027
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
10028
+ };
10029
+
10030
+
10031
+ /**
10032
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
10033
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse} returns this
10034
+ */
10035
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.setStatus = function(value) {
10036
+ return jspb.Message.setWrapperField(this, 1, value);
10037
+ };
10038
+
10039
+
10040
+ /**
10041
+ * Clears the message field making it undefined.
10042
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse} returns this
10043
+ */
10044
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.clearStatus = function() {
10045
+ return this.setStatus(undefined);
10046
+ };
10047
+
10048
+
10049
+ /**
10050
+ * Returns whether this field is set.
10051
+ * @return {boolean}
10052
+ */
10053
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.hasStatus = function() {
10054
+ return jspb.Message.getField(this, 1) != null;
10055
+ };
10056
+
10057
+
10058
+ /**
10059
+ * optional Dashboard dashboard = 2;
10060
+ * @return {?proto.gateway.web.v1.Dashboard}
10061
+ */
10062
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.getDashboard = function() {
10063
+ return /** @type{?proto.gateway.web.v1.Dashboard} */ (
10064
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.Dashboard, 2));
10065
+ };
10066
+
10067
+
10068
+ /**
10069
+ * @param {?proto.gateway.web.v1.Dashboard|undefined} value
10070
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse} returns this
10071
+ */
10072
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.setDashboard = function(value) {
10073
+ return jspb.Message.setWrapperField(this, 2, value);
10074
+ };
10075
+
10076
+
10077
+ /**
10078
+ * Clears the message field making it undefined.
10079
+ * @return {!proto.gateway.web.v1.CreateDashboardFromTemplateResponse} returns this
10080
+ */
10081
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.clearDashboard = function() {
10082
+ return this.setDashboard(undefined);
10083
+ };
10084
+
10085
+
10086
+ /**
10087
+ * Returns whether this field is set.
10088
+ * @return {boolean}
10089
+ */
10090
+ proto.gateway.web.v1.CreateDashboardFromTemplateResponse.prototype.hasDashboard = function() {
10091
+ return jspb.Message.getField(this, 2) != null;
10092
+ };
10093
+
10094
+
10095
+
8847
10096
  /**
8848
10097
  * List of repeated fields within this message type.
8849
10098
  * @private {!Array<number>}