@miradorlabs/web-grpc 2.30.0 → 2.32.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.
@@ -33,6 +33,12 @@ goog.exportSymbol('proto.gateway.web.v1.CreateDashboardResponse', null, global);
33
33
  goog.exportSymbol('proto.gateway.web.v1.Dashboard', null, global);
34
34
  goog.exportSymbol('proto.gateway.web.v1.DashboardDataEnvelope', null, global);
35
35
  goog.exportSymbol('proto.gateway.web.v1.DashboardDataEnvelope.EventCase', null, global);
36
+ goog.exportSymbol('proto.gateway.web.v1.DashboardPreviewEnvelope', null, global);
37
+ goog.exportSymbol('proto.gateway.web.v1.DashboardPreviewEnvelope.EventCase', null, global);
38
+ goog.exportSymbol('proto.gateway.web.v1.DashboardPreviewError', null, global);
39
+ goog.exportSymbol('proto.gateway.web.v1.DashboardPreviewManifest', null, global);
40
+ goog.exportSymbol('proto.gateway.web.v1.DashboardPreviewQueryResult', null, global);
41
+ goog.exportSymbol('proto.gateway.web.v1.DashboardPreviewQueryResult.ResultCase', null, global);
36
42
  goog.exportSymbol('proto.gateway.web.v1.DashboardSummary', null, global);
37
43
  goog.exportSymbol('proto.gateway.web.v1.DeleteDashboardRequest', null, global);
38
44
  goog.exportSymbol('proto.gateway.web.v1.DeleteDashboardResponse', null, global);
@@ -57,6 +63,7 @@ goog.exportSymbol('proto.gateway.web.v1.QueryDataEnvelope.EventCase', null, glob
57
63
  goog.exportSymbol('proto.gateway.web.v1.QuerySeriesUpdate', null, global);
58
64
  goog.exportSymbol('proto.gateway.web.v1.QuerySnapshot', null, global);
59
65
  goog.exportSymbol('proto.gateway.web.v1.StreamDashboardDataRequest', null, global);
66
+ goog.exportSymbol('proto.gateway.web.v1.StreamDashboardPreviewsRequest', null, global);
60
67
  goog.exportSymbol('proto.gateway.web.v1.StreamMetricAttributesRequest', null, global);
61
68
  goog.exportSymbol('proto.gateway.web.v1.StreamMetricsRequest', null, global);
62
69
  goog.exportSymbol('proto.gateway.web.v1.StreamQueryRequest', null, global);
@@ -784,6 +791,111 @@ if (goog.DEBUG && !COMPILED) {
784
791
  */
785
792
  proto.gateway.web.v1.WidgetQueryError.displayName = 'proto.gateway.web.v1.WidgetQueryError';
786
793
  }
794
+ /**
795
+ * Generated by JsPbCodeGenerator.
796
+ * @param {Array=} opt_data Optional initial data array, typically from a
797
+ * server response, or constructed directly in Javascript. The array is used
798
+ * in place and becomes part of the constructed object. It is not cloned.
799
+ * If no data is provided, the constructed object will be empty, but still
800
+ * valid.
801
+ * @extends {jspb.Message}
802
+ * @constructor
803
+ */
804
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest = function(opt_data) {
805
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.StreamDashboardPreviewsRequest.repeatedFields_, null);
806
+ };
807
+ goog.inherits(proto.gateway.web.v1.StreamDashboardPreviewsRequest, jspb.Message);
808
+ if (goog.DEBUG && !COMPILED) {
809
+ /**
810
+ * @public
811
+ * @override
812
+ */
813
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.displayName = 'proto.gateway.web.v1.StreamDashboardPreviewsRequest';
814
+ }
815
+ /**
816
+ * Generated by JsPbCodeGenerator.
817
+ * @param {Array=} opt_data Optional initial data array, typically from a
818
+ * server response, or constructed directly in Javascript. The array is used
819
+ * in place and becomes part of the constructed object. It is not cloned.
820
+ * If no data is provided, the constructed object will be empty, but still
821
+ * valid.
822
+ * @extends {jspb.Message}
823
+ * @constructor
824
+ */
825
+ proto.gateway.web.v1.DashboardPreviewEnvelope = function(opt_data) {
826
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gateway.web.v1.DashboardPreviewEnvelope.oneofGroups_);
827
+ };
828
+ goog.inherits(proto.gateway.web.v1.DashboardPreviewEnvelope, jspb.Message);
829
+ if (goog.DEBUG && !COMPILED) {
830
+ /**
831
+ * @public
832
+ * @override
833
+ */
834
+ proto.gateway.web.v1.DashboardPreviewEnvelope.displayName = 'proto.gateway.web.v1.DashboardPreviewEnvelope';
835
+ }
836
+ /**
837
+ * Generated by JsPbCodeGenerator.
838
+ * @param {Array=} opt_data Optional initial data array, typically from a
839
+ * server response, or constructed directly in Javascript. The array is used
840
+ * in place and becomes part of the constructed object. It is not cloned.
841
+ * If no data is provided, the constructed object will be empty, but still
842
+ * valid.
843
+ * @extends {jspb.Message}
844
+ * @constructor
845
+ */
846
+ proto.gateway.web.v1.DashboardPreviewManifest = function(opt_data) {
847
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.DashboardPreviewManifest.repeatedFields_, null);
848
+ };
849
+ goog.inherits(proto.gateway.web.v1.DashboardPreviewManifest, jspb.Message);
850
+ if (goog.DEBUG && !COMPILED) {
851
+ /**
852
+ * @public
853
+ * @override
854
+ */
855
+ proto.gateway.web.v1.DashboardPreviewManifest.displayName = 'proto.gateway.web.v1.DashboardPreviewManifest';
856
+ }
857
+ /**
858
+ * Generated by JsPbCodeGenerator.
859
+ * @param {Array=} opt_data Optional initial data array, typically from a
860
+ * server response, or constructed directly in Javascript. The array is used
861
+ * in place and becomes part of the constructed object. It is not cloned.
862
+ * If no data is provided, the constructed object will be empty, but still
863
+ * valid.
864
+ * @extends {jspb.Message}
865
+ * @constructor
866
+ */
867
+ proto.gateway.web.v1.DashboardPreviewQueryResult = function(opt_data) {
868
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gateway.web.v1.DashboardPreviewQueryResult.oneofGroups_);
869
+ };
870
+ goog.inherits(proto.gateway.web.v1.DashboardPreviewQueryResult, jspb.Message);
871
+ if (goog.DEBUG && !COMPILED) {
872
+ /**
873
+ * @public
874
+ * @override
875
+ */
876
+ proto.gateway.web.v1.DashboardPreviewQueryResult.displayName = 'proto.gateway.web.v1.DashboardPreviewQueryResult';
877
+ }
878
+ /**
879
+ * Generated by JsPbCodeGenerator.
880
+ * @param {Array=} opt_data Optional initial data array, typically from a
881
+ * server response, or constructed directly in Javascript. The array is used
882
+ * in place and becomes part of the constructed object. It is not cloned.
883
+ * If no data is provided, the constructed object will be empty, but still
884
+ * valid.
885
+ * @extends {jspb.Message}
886
+ * @constructor
887
+ */
888
+ proto.gateway.web.v1.DashboardPreviewError = function(opt_data) {
889
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
890
+ };
891
+ goog.inherits(proto.gateway.web.v1.DashboardPreviewError, jspb.Message);
892
+ if (goog.DEBUG && !COMPILED) {
893
+ /**
894
+ * @public
895
+ * @override
896
+ */
897
+ proto.gateway.web.v1.DashboardPreviewError.displayName = 'proto.gateway.web.v1.DashboardPreviewError';
898
+ }
787
899
 
788
900
 
789
901
 
@@ -8708,6 +8820,1140 @@ proto.gateway.web.v1.WidgetQueryError.prototype.setMessage = function(value) {
8708
8820
  };
8709
8821
 
8710
8822
 
8823
+
8824
+ /**
8825
+ * List of repeated fields within this message type.
8826
+ * @private {!Array<number>}
8827
+ * @const
8828
+ */
8829
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.repeatedFields_ = [3];
8830
+
8831
+
8832
+
8833
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8834
+ /**
8835
+ * Creates an object representation of this proto.
8836
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8837
+ * Optional fields that are not set will be set to undefined.
8838
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8839
+ * For the list of reserved names please see:
8840
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8841
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8842
+ * JSPB instance for transitional soy proto support:
8843
+ * http://goto/soy-param-migration
8844
+ * @return {!Object}
8845
+ */
8846
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.prototype.toObject = function(opt_includeInstance) {
8847
+ return proto.gateway.web.v1.StreamDashboardPreviewsRequest.toObject(opt_includeInstance, this);
8848
+ };
8849
+
8850
+
8851
+ /**
8852
+ * Static version of the {@see toObject} method.
8853
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8854
+ * the JSPB instance for transitional soy proto support:
8855
+ * http://goto/soy-param-migration
8856
+ * @param {!proto.gateway.web.v1.StreamDashboardPreviewsRequest} msg The msg instance to transform.
8857
+ * @return {!Object}
8858
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8859
+ */
8860
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.toObject = function(includeInstance, msg) {
8861
+ var f, obj = {
8862
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
8863
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
8864
+ dashboardIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
8865
+ };
8866
+
8867
+ if (includeInstance) {
8868
+ obj.$jspbMessageInstance = msg;
8869
+ }
8870
+ return obj;
8871
+ };
8872
+ }
8873
+
8874
+
8875
+ /**
8876
+ * Deserializes binary data (in protobuf wire format).
8877
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8878
+ * @return {!proto.gateway.web.v1.StreamDashboardPreviewsRequest}
8879
+ */
8880
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.deserializeBinary = function(bytes) {
8881
+ var reader = new jspb.BinaryReader(bytes);
8882
+ var msg = new proto.gateway.web.v1.StreamDashboardPreviewsRequest;
8883
+ return proto.gateway.web.v1.StreamDashboardPreviewsRequest.deserializeBinaryFromReader(msg, reader);
8884
+ };
8885
+
8886
+
8887
+ /**
8888
+ * Deserializes binary data (in protobuf wire format) from the
8889
+ * given reader into the given message object.
8890
+ * @param {!proto.gateway.web.v1.StreamDashboardPreviewsRequest} msg The message object to deserialize into.
8891
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8892
+ * @return {!proto.gateway.web.v1.StreamDashboardPreviewsRequest}
8893
+ */
8894
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.deserializeBinaryFromReader = function(msg, reader) {
8895
+ while (reader.nextField()) {
8896
+ if (reader.isEndGroup()) {
8897
+ break;
8898
+ }
8899
+ var field = reader.getFieldNumber();
8900
+ switch (field) {
8901
+ case 1:
8902
+ var value = /** @type {string} */ (reader.readString());
8903
+ msg.setOrganizationId(value);
8904
+ break;
8905
+ case 2:
8906
+ var value = /** @type {string} */ (reader.readString());
8907
+ msg.setProjectId(value);
8908
+ break;
8909
+ case 3:
8910
+ var value = /** @type {string} */ (reader.readString());
8911
+ msg.addDashboardIds(value);
8912
+ break;
8913
+ default:
8914
+ reader.skipField();
8915
+ break;
8916
+ }
8917
+ }
8918
+ return msg;
8919
+ };
8920
+
8921
+
8922
+ /**
8923
+ * Serializes the message to binary data (in protobuf wire format).
8924
+ * @return {!Uint8Array}
8925
+ */
8926
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.prototype.serializeBinary = function() {
8927
+ var writer = new jspb.BinaryWriter();
8928
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.serializeBinaryToWriter(this, writer);
8929
+ return writer.getResultBuffer();
8930
+ };
8931
+
8932
+
8933
+ /**
8934
+ * Serializes the given message to binary data (in protobuf wire
8935
+ * format), writing to the given BinaryWriter.
8936
+ * @param {!proto.gateway.web.v1.StreamDashboardPreviewsRequest} message
8937
+ * @param {!jspb.BinaryWriter} writer
8938
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8939
+ */
8940
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.serializeBinaryToWriter = function(message, writer) {
8941
+ var f = undefined;
8942
+ f = message.getOrganizationId();
8943
+ if (f.length > 0) {
8944
+ writer.writeString(
8945
+ 1,
8946
+ f
8947
+ );
8948
+ }
8949
+ f = message.getProjectId();
8950
+ if (f.length > 0) {
8951
+ writer.writeString(
8952
+ 2,
8953
+ f
8954
+ );
8955
+ }
8956
+ f = message.getDashboardIdsList();
8957
+ if (f.length > 0) {
8958
+ writer.writeRepeatedString(
8959
+ 3,
8960
+ f
8961
+ );
8962
+ }
8963
+ };
8964
+
8965
+
8966
+ /**
8967
+ * optional string organization_id = 1;
8968
+ * @return {string}
8969
+ */
8970
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.prototype.getOrganizationId = function() {
8971
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8972
+ };
8973
+
8974
+
8975
+ /**
8976
+ * @param {string} value
8977
+ * @return {!proto.gateway.web.v1.StreamDashboardPreviewsRequest} returns this
8978
+ */
8979
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.prototype.setOrganizationId = function(value) {
8980
+ return jspb.Message.setProto3StringField(this, 1, value);
8981
+ };
8982
+
8983
+
8984
+ /**
8985
+ * optional string project_id = 2;
8986
+ * @return {string}
8987
+ */
8988
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.prototype.getProjectId = function() {
8989
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8990
+ };
8991
+
8992
+
8993
+ /**
8994
+ * @param {string} value
8995
+ * @return {!proto.gateway.web.v1.StreamDashboardPreviewsRequest} returns this
8996
+ */
8997
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.prototype.setProjectId = function(value) {
8998
+ return jspb.Message.setProto3StringField(this, 2, value);
8999
+ };
9000
+
9001
+
9002
+ /**
9003
+ * repeated string dashboard_ids = 3;
9004
+ * @return {!Array<string>}
9005
+ */
9006
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.prototype.getDashboardIdsList = function() {
9007
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
9008
+ };
9009
+
9010
+
9011
+ /**
9012
+ * @param {!Array<string>} value
9013
+ * @return {!proto.gateway.web.v1.StreamDashboardPreviewsRequest} returns this
9014
+ */
9015
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.prototype.setDashboardIdsList = function(value) {
9016
+ return jspb.Message.setField(this, 3, value || []);
9017
+ };
9018
+
9019
+
9020
+ /**
9021
+ * @param {string} value
9022
+ * @param {number=} opt_index
9023
+ * @return {!proto.gateway.web.v1.StreamDashboardPreviewsRequest} returns this
9024
+ */
9025
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.prototype.addDashboardIds = function(value, opt_index) {
9026
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
9027
+ };
9028
+
9029
+
9030
+ /**
9031
+ * Clears the list making it empty but non-null.
9032
+ * @return {!proto.gateway.web.v1.StreamDashboardPreviewsRequest} returns this
9033
+ */
9034
+ proto.gateway.web.v1.StreamDashboardPreviewsRequest.prototype.clearDashboardIdsList = function() {
9035
+ return this.setDashboardIdsList([]);
9036
+ };
9037
+
9038
+
9039
+
9040
+ /**
9041
+ * Oneof group definitions for this message. Each group defines the field
9042
+ * numbers belonging to that group. When of these fields' value is set, all
9043
+ * other fields in the group are cleared. During deserialization, if multiple
9044
+ * fields are encountered for a group, only the last value seen will be kept.
9045
+ * @private {!Array<!Array<number>>}
9046
+ * @const
9047
+ */
9048
+ proto.gateway.web.v1.DashboardPreviewEnvelope.oneofGroups_ = [[2,3,4]];
9049
+
9050
+ /**
9051
+ * @enum {number}
9052
+ */
9053
+ proto.gateway.web.v1.DashboardPreviewEnvelope.EventCase = {
9054
+ EVENT_NOT_SET: 0,
9055
+ MANIFEST: 2,
9056
+ QUERY_RESULT: 3,
9057
+ ERROR: 4
9058
+ };
9059
+
9060
+ /**
9061
+ * @return {proto.gateway.web.v1.DashboardPreviewEnvelope.EventCase}
9062
+ */
9063
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.getEventCase = function() {
9064
+ return /** @type {proto.gateway.web.v1.DashboardPreviewEnvelope.EventCase} */(jspb.Message.computeOneofCase(this, proto.gateway.web.v1.DashboardPreviewEnvelope.oneofGroups_[0]));
9065
+ };
9066
+
9067
+
9068
+
9069
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9070
+ /**
9071
+ * Creates an object representation of this proto.
9072
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9073
+ * Optional fields that are not set will be set to undefined.
9074
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9075
+ * For the list of reserved names please see:
9076
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9077
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9078
+ * JSPB instance for transitional soy proto support:
9079
+ * http://goto/soy-param-migration
9080
+ * @return {!Object}
9081
+ */
9082
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.toObject = function(opt_includeInstance) {
9083
+ return proto.gateway.web.v1.DashboardPreviewEnvelope.toObject(opt_includeInstance, this);
9084
+ };
9085
+
9086
+
9087
+ /**
9088
+ * Static version of the {@see toObject} method.
9089
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9090
+ * the JSPB instance for transitional soy proto support:
9091
+ * http://goto/soy-param-migration
9092
+ * @param {!proto.gateway.web.v1.DashboardPreviewEnvelope} msg The msg instance to transform.
9093
+ * @return {!Object}
9094
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9095
+ */
9096
+ proto.gateway.web.v1.DashboardPreviewEnvelope.toObject = function(includeInstance, msg) {
9097
+ var f, obj = {
9098
+ dashboardId: jspb.Message.getFieldWithDefault(msg, 1, ""),
9099
+ manifest: (f = msg.getManifest()) && proto.gateway.web.v1.DashboardPreviewManifest.toObject(includeInstance, f),
9100
+ queryResult: (f = msg.getQueryResult()) && proto.gateway.web.v1.DashboardPreviewQueryResult.toObject(includeInstance, f),
9101
+ error: (f = msg.getError()) && proto.gateway.web.v1.DashboardPreviewError.toObject(includeInstance, f)
9102
+ };
9103
+
9104
+ if (includeInstance) {
9105
+ obj.$jspbMessageInstance = msg;
9106
+ }
9107
+ return obj;
9108
+ };
9109
+ }
9110
+
9111
+
9112
+ /**
9113
+ * Deserializes binary data (in protobuf wire format).
9114
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9115
+ * @return {!proto.gateway.web.v1.DashboardPreviewEnvelope}
9116
+ */
9117
+ proto.gateway.web.v1.DashboardPreviewEnvelope.deserializeBinary = function(bytes) {
9118
+ var reader = new jspb.BinaryReader(bytes);
9119
+ var msg = new proto.gateway.web.v1.DashboardPreviewEnvelope;
9120
+ return proto.gateway.web.v1.DashboardPreviewEnvelope.deserializeBinaryFromReader(msg, reader);
9121
+ };
9122
+
9123
+
9124
+ /**
9125
+ * Deserializes binary data (in protobuf wire format) from the
9126
+ * given reader into the given message object.
9127
+ * @param {!proto.gateway.web.v1.DashboardPreviewEnvelope} msg The message object to deserialize into.
9128
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9129
+ * @return {!proto.gateway.web.v1.DashboardPreviewEnvelope}
9130
+ */
9131
+ proto.gateway.web.v1.DashboardPreviewEnvelope.deserializeBinaryFromReader = function(msg, reader) {
9132
+ while (reader.nextField()) {
9133
+ if (reader.isEndGroup()) {
9134
+ break;
9135
+ }
9136
+ var field = reader.getFieldNumber();
9137
+ switch (field) {
9138
+ case 1:
9139
+ var value = /** @type {string} */ (reader.readString());
9140
+ msg.setDashboardId(value);
9141
+ break;
9142
+ case 2:
9143
+ var value = new proto.gateway.web.v1.DashboardPreviewManifest;
9144
+ reader.readMessage(value,proto.gateway.web.v1.DashboardPreviewManifest.deserializeBinaryFromReader);
9145
+ msg.setManifest(value);
9146
+ break;
9147
+ case 3:
9148
+ var value = new proto.gateway.web.v1.DashboardPreviewQueryResult;
9149
+ reader.readMessage(value,proto.gateway.web.v1.DashboardPreviewQueryResult.deserializeBinaryFromReader);
9150
+ msg.setQueryResult(value);
9151
+ break;
9152
+ case 4:
9153
+ var value = new proto.gateway.web.v1.DashboardPreviewError;
9154
+ reader.readMessage(value,proto.gateway.web.v1.DashboardPreviewError.deserializeBinaryFromReader);
9155
+ msg.setError(value);
9156
+ break;
9157
+ default:
9158
+ reader.skipField();
9159
+ break;
9160
+ }
9161
+ }
9162
+ return msg;
9163
+ };
9164
+
9165
+
9166
+ /**
9167
+ * Serializes the message to binary data (in protobuf wire format).
9168
+ * @return {!Uint8Array}
9169
+ */
9170
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.serializeBinary = function() {
9171
+ var writer = new jspb.BinaryWriter();
9172
+ proto.gateway.web.v1.DashboardPreviewEnvelope.serializeBinaryToWriter(this, writer);
9173
+ return writer.getResultBuffer();
9174
+ };
9175
+
9176
+
9177
+ /**
9178
+ * Serializes the given message to binary data (in protobuf wire
9179
+ * format), writing to the given BinaryWriter.
9180
+ * @param {!proto.gateway.web.v1.DashboardPreviewEnvelope} message
9181
+ * @param {!jspb.BinaryWriter} writer
9182
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9183
+ */
9184
+ proto.gateway.web.v1.DashboardPreviewEnvelope.serializeBinaryToWriter = function(message, writer) {
9185
+ var f = undefined;
9186
+ f = message.getDashboardId();
9187
+ if (f.length > 0) {
9188
+ writer.writeString(
9189
+ 1,
9190
+ f
9191
+ );
9192
+ }
9193
+ f = message.getManifest();
9194
+ if (f != null) {
9195
+ writer.writeMessage(
9196
+ 2,
9197
+ f,
9198
+ proto.gateway.web.v1.DashboardPreviewManifest.serializeBinaryToWriter
9199
+ );
9200
+ }
9201
+ f = message.getQueryResult();
9202
+ if (f != null) {
9203
+ writer.writeMessage(
9204
+ 3,
9205
+ f,
9206
+ proto.gateway.web.v1.DashboardPreviewQueryResult.serializeBinaryToWriter
9207
+ );
9208
+ }
9209
+ f = message.getError();
9210
+ if (f != null) {
9211
+ writer.writeMessage(
9212
+ 4,
9213
+ f,
9214
+ proto.gateway.web.v1.DashboardPreviewError.serializeBinaryToWriter
9215
+ );
9216
+ }
9217
+ };
9218
+
9219
+
9220
+ /**
9221
+ * optional string dashboard_id = 1;
9222
+ * @return {string}
9223
+ */
9224
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.getDashboardId = function() {
9225
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9226
+ };
9227
+
9228
+
9229
+ /**
9230
+ * @param {string} value
9231
+ * @return {!proto.gateway.web.v1.DashboardPreviewEnvelope} returns this
9232
+ */
9233
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.setDashboardId = function(value) {
9234
+ return jspb.Message.setProto3StringField(this, 1, value);
9235
+ };
9236
+
9237
+
9238
+ /**
9239
+ * optional DashboardPreviewManifest manifest = 2;
9240
+ * @return {?proto.gateway.web.v1.DashboardPreviewManifest}
9241
+ */
9242
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.getManifest = function() {
9243
+ return /** @type{?proto.gateway.web.v1.DashboardPreviewManifest} */ (
9244
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.DashboardPreviewManifest, 2));
9245
+ };
9246
+
9247
+
9248
+ /**
9249
+ * @param {?proto.gateway.web.v1.DashboardPreviewManifest|undefined} value
9250
+ * @return {!proto.gateway.web.v1.DashboardPreviewEnvelope} returns this
9251
+ */
9252
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.setManifest = function(value) {
9253
+ return jspb.Message.setOneofWrapperField(this, 2, proto.gateway.web.v1.DashboardPreviewEnvelope.oneofGroups_[0], value);
9254
+ };
9255
+
9256
+
9257
+ /**
9258
+ * Clears the message field making it undefined.
9259
+ * @return {!proto.gateway.web.v1.DashboardPreviewEnvelope} returns this
9260
+ */
9261
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.clearManifest = function() {
9262
+ return this.setManifest(undefined);
9263
+ };
9264
+
9265
+
9266
+ /**
9267
+ * Returns whether this field is set.
9268
+ * @return {boolean}
9269
+ */
9270
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.hasManifest = function() {
9271
+ return jspb.Message.getField(this, 2) != null;
9272
+ };
9273
+
9274
+
9275
+ /**
9276
+ * optional DashboardPreviewQueryResult query_result = 3;
9277
+ * @return {?proto.gateway.web.v1.DashboardPreviewQueryResult}
9278
+ */
9279
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.getQueryResult = function() {
9280
+ return /** @type{?proto.gateway.web.v1.DashboardPreviewQueryResult} */ (
9281
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.DashboardPreviewQueryResult, 3));
9282
+ };
9283
+
9284
+
9285
+ /**
9286
+ * @param {?proto.gateway.web.v1.DashboardPreviewQueryResult|undefined} value
9287
+ * @return {!proto.gateway.web.v1.DashboardPreviewEnvelope} returns this
9288
+ */
9289
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.setQueryResult = function(value) {
9290
+ return jspb.Message.setOneofWrapperField(this, 3, proto.gateway.web.v1.DashboardPreviewEnvelope.oneofGroups_[0], value);
9291
+ };
9292
+
9293
+
9294
+ /**
9295
+ * Clears the message field making it undefined.
9296
+ * @return {!proto.gateway.web.v1.DashboardPreviewEnvelope} returns this
9297
+ */
9298
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.clearQueryResult = function() {
9299
+ return this.setQueryResult(undefined);
9300
+ };
9301
+
9302
+
9303
+ /**
9304
+ * Returns whether this field is set.
9305
+ * @return {boolean}
9306
+ */
9307
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.hasQueryResult = function() {
9308
+ return jspb.Message.getField(this, 3) != null;
9309
+ };
9310
+
9311
+
9312
+ /**
9313
+ * optional DashboardPreviewError error = 4;
9314
+ * @return {?proto.gateway.web.v1.DashboardPreviewError}
9315
+ */
9316
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.getError = function() {
9317
+ return /** @type{?proto.gateway.web.v1.DashboardPreviewError} */ (
9318
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.DashboardPreviewError, 4));
9319
+ };
9320
+
9321
+
9322
+ /**
9323
+ * @param {?proto.gateway.web.v1.DashboardPreviewError|undefined} value
9324
+ * @return {!proto.gateway.web.v1.DashboardPreviewEnvelope} returns this
9325
+ */
9326
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.setError = function(value) {
9327
+ return jspb.Message.setOneofWrapperField(this, 4, proto.gateway.web.v1.DashboardPreviewEnvelope.oneofGroups_[0], value);
9328
+ };
9329
+
9330
+
9331
+ /**
9332
+ * Clears the message field making it undefined.
9333
+ * @return {!proto.gateway.web.v1.DashboardPreviewEnvelope} returns this
9334
+ */
9335
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.clearError = function() {
9336
+ return this.setError(undefined);
9337
+ };
9338
+
9339
+
9340
+ /**
9341
+ * Returns whether this field is set.
9342
+ * @return {boolean}
9343
+ */
9344
+ proto.gateway.web.v1.DashboardPreviewEnvelope.prototype.hasError = function() {
9345
+ return jspb.Message.getField(this, 4) != null;
9346
+ };
9347
+
9348
+
9349
+
9350
+ /**
9351
+ * List of repeated fields within this message type.
9352
+ * @private {!Array<number>}
9353
+ * @const
9354
+ */
9355
+ proto.gateway.web.v1.DashboardPreviewManifest.repeatedFields_ = [1];
9356
+
9357
+
9358
+
9359
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9360
+ /**
9361
+ * Creates an object representation of this proto.
9362
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9363
+ * Optional fields that are not set will be set to undefined.
9364
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9365
+ * For the list of reserved names please see:
9366
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9367
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9368
+ * JSPB instance for transitional soy proto support:
9369
+ * http://goto/soy-param-migration
9370
+ * @return {!Object}
9371
+ */
9372
+ proto.gateway.web.v1.DashboardPreviewManifest.prototype.toObject = function(opt_includeInstance) {
9373
+ return proto.gateway.web.v1.DashboardPreviewManifest.toObject(opt_includeInstance, this);
9374
+ };
9375
+
9376
+
9377
+ /**
9378
+ * Static version of the {@see toObject} method.
9379
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9380
+ * the JSPB instance for transitional soy proto support:
9381
+ * http://goto/soy-param-migration
9382
+ * @param {!proto.gateway.web.v1.DashboardPreviewManifest} msg The msg instance to transform.
9383
+ * @return {!Object}
9384
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9385
+ */
9386
+ proto.gateway.web.v1.DashboardPreviewManifest.toObject = function(includeInstance, msg) {
9387
+ var f, obj = {
9388
+ widgetsList: jspb.Message.toObjectList(msg.getWidgetsList(),
9389
+ proto.gateway.web.v1.Widget.toObject, includeInstance),
9390
+ dashboardVersion: jspb.Message.getFieldWithDefault(msg, 2, 0)
9391
+ };
9392
+
9393
+ if (includeInstance) {
9394
+ obj.$jspbMessageInstance = msg;
9395
+ }
9396
+ return obj;
9397
+ };
9398
+ }
9399
+
9400
+
9401
+ /**
9402
+ * Deserializes binary data (in protobuf wire format).
9403
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9404
+ * @return {!proto.gateway.web.v1.DashboardPreviewManifest}
9405
+ */
9406
+ proto.gateway.web.v1.DashboardPreviewManifest.deserializeBinary = function(bytes) {
9407
+ var reader = new jspb.BinaryReader(bytes);
9408
+ var msg = new proto.gateway.web.v1.DashboardPreviewManifest;
9409
+ return proto.gateway.web.v1.DashboardPreviewManifest.deserializeBinaryFromReader(msg, reader);
9410
+ };
9411
+
9412
+
9413
+ /**
9414
+ * Deserializes binary data (in protobuf wire format) from the
9415
+ * given reader into the given message object.
9416
+ * @param {!proto.gateway.web.v1.DashboardPreviewManifest} msg The message object to deserialize into.
9417
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9418
+ * @return {!proto.gateway.web.v1.DashboardPreviewManifest}
9419
+ */
9420
+ proto.gateway.web.v1.DashboardPreviewManifest.deserializeBinaryFromReader = function(msg, reader) {
9421
+ while (reader.nextField()) {
9422
+ if (reader.isEndGroup()) {
9423
+ break;
9424
+ }
9425
+ var field = reader.getFieldNumber();
9426
+ switch (field) {
9427
+ case 1:
9428
+ var value = new proto.gateway.web.v1.Widget;
9429
+ reader.readMessage(value,proto.gateway.web.v1.Widget.deserializeBinaryFromReader);
9430
+ msg.addWidgets(value);
9431
+ break;
9432
+ case 2:
9433
+ var value = /** @type {number} */ (reader.readInt64());
9434
+ msg.setDashboardVersion(value);
9435
+ break;
9436
+ default:
9437
+ reader.skipField();
9438
+ break;
9439
+ }
9440
+ }
9441
+ return msg;
9442
+ };
9443
+
9444
+
9445
+ /**
9446
+ * Serializes the message to binary data (in protobuf wire format).
9447
+ * @return {!Uint8Array}
9448
+ */
9449
+ proto.gateway.web.v1.DashboardPreviewManifest.prototype.serializeBinary = function() {
9450
+ var writer = new jspb.BinaryWriter();
9451
+ proto.gateway.web.v1.DashboardPreviewManifest.serializeBinaryToWriter(this, writer);
9452
+ return writer.getResultBuffer();
9453
+ };
9454
+
9455
+
9456
+ /**
9457
+ * Serializes the given message to binary data (in protobuf wire
9458
+ * format), writing to the given BinaryWriter.
9459
+ * @param {!proto.gateway.web.v1.DashboardPreviewManifest} message
9460
+ * @param {!jspb.BinaryWriter} writer
9461
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9462
+ */
9463
+ proto.gateway.web.v1.DashboardPreviewManifest.serializeBinaryToWriter = function(message, writer) {
9464
+ var f = undefined;
9465
+ f = message.getWidgetsList();
9466
+ if (f.length > 0) {
9467
+ writer.writeRepeatedMessage(
9468
+ 1,
9469
+ f,
9470
+ proto.gateway.web.v1.Widget.serializeBinaryToWriter
9471
+ );
9472
+ }
9473
+ f = message.getDashboardVersion();
9474
+ if (f !== 0) {
9475
+ writer.writeInt64(
9476
+ 2,
9477
+ f
9478
+ );
9479
+ }
9480
+ };
9481
+
9482
+
9483
+ /**
9484
+ * repeated Widget widgets = 1;
9485
+ * @return {!Array<!proto.gateway.web.v1.Widget>}
9486
+ */
9487
+ proto.gateway.web.v1.DashboardPreviewManifest.prototype.getWidgetsList = function() {
9488
+ return /** @type{!Array<!proto.gateway.web.v1.Widget>} */ (
9489
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.Widget, 1));
9490
+ };
9491
+
9492
+
9493
+ /**
9494
+ * @param {!Array<!proto.gateway.web.v1.Widget>} value
9495
+ * @return {!proto.gateway.web.v1.DashboardPreviewManifest} returns this
9496
+ */
9497
+ proto.gateway.web.v1.DashboardPreviewManifest.prototype.setWidgetsList = function(value) {
9498
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
9499
+ };
9500
+
9501
+
9502
+ /**
9503
+ * @param {!proto.gateway.web.v1.Widget=} opt_value
9504
+ * @param {number=} opt_index
9505
+ * @return {!proto.gateway.web.v1.Widget}
9506
+ */
9507
+ proto.gateway.web.v1.DashboardPreviewManifest.prototype.addWidgets = function(opt_value, opt_index) {
9508
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.Widget, opt_index);
9509
+ };
9510
+
9511
+
9512
+ /**
9513
+ * Clears the list making it empty but non-null.
9514
+ * @return {!proto.gateway.web.v1.DashboardPreviewManifest} returns this
9515
+ */
9516
+ proto.gateway.web.v1.DashboardPreviewManifest.prototype.clearWidgetsList = function() {
9517
+ return this.setWidgetsList([]);
9518
+ };
9519
+
9520
+
9521
+ /**
9522
+ * optional int64 dashboard_version = 2;
9523
+ * @return {number}
9524
+ */
9525
+ proto.gateway.web.v1.DashboardPreviewManifest.prototype.getDashboardVersion = function() {
9526
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
9527
+ };
9528
+
9529
+
9530
+ /**
9531
+ * @param {number} value
9532
+ * @return {!proto.gateway.web.v1.DashboardPreviewManifest} returns this
9533
+ */
9534
+ proto.gateway.web.v1.DashboardPreviewManifest.prototype.setDashboardVersion = function(value) {
9535
+ return jspb.Message.setProto3IntField(this, 2, value);
9536
+ };
9537
+
9538
+
9539
+
9540
+ /**
9541
+ * Oneof group definitions for this message. Each group defines the field
9542
+ * numbers belonging to that group. When of these fields' value is set, all
9543
+ * other fields in the group are cleared. During deserialization, if multiple
9544
+ * fields are encountered for a group, only the last value seen will be kept.
9545
+ * @private {!Array<!Array<number>>}
9546
+ * @const
9547
+ */
9548
+ proto.gateway.web.v1.DashboardPreviewQueryResult.oneofGroups_ = [[3,4]];
9549
+
9550
+ /**
9551
+ * @enum {number}
9552
+ */
9553
+ proto.gateway.web.v1.DashboardPreviewQueryResult.ResultCase = {
9554
+ RESULT_NOT_SET: 0,
9555
+ SNAPSHOT: 3,
9556
+ ERROR: 4
9557
+ };
9558
+
9559
+ /**
9560
+ * @return {proto.gateway.web.v1.DashboardPreviewQueryResult.ResultCase}
9561
+ */
9562
+ proto.gateway.web.v1.DashboardPreviewQueryResult.prototype.getResultCase = function() {
9563
+ return /** @type {proto.gateway.web.v1.DashboardPreviewQueryResult.ResultCase} */(jspb.Message.computeOneofCase(this, proto.gateway.web.v1.DashboardPreviewQueryResult.oneofGroups_[0]));
9564
+ };
9565
+
9566
+
9567
+
9568
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9569
+ /**
9570
+ * Creates an object representation of this proto.
9571
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9572
+ * Optional fields that are not set will be set to undefined.
9573
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9574
+ * For the list of reserved names please see:
9575
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9576
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9577
+ * JSPB instance for transitional soy proto support:
9578
+ * http://goto/soy-param-migration
9579
+ * @return {!Object}
9580
+ */
9581
+ proto.gateway.web.v1.DashboardPreviewQueryResult.prototype.toObject = function(opt_includeInstance) {
9582
+ return proto.gateway.web.v1.DashboardPreviewQueryResult.toObject(opt_includeInstance, this);
9583
+ };
9584
+
9585
+
9586
+ /**
9587
+ * Static version of the {@see toObject} method.
9588
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9589
+ * the JSPB instance for transitional soy proto support:
9590
+ * http://goto/soy-param-migration
9591
+ * @param {!proto.gateway.web.v1.DashboardPreviewQueryResult} msg The msg instance to transform.
9592
+ * @return {!Object}
9593
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9594
+ */
9595
+ proto.gateway.web.v1.DashboardPreviewQueryResult.toObject = function(includeInstance, msg) {
9596
+ var f, obj = {
9597
+ widgetId: jspb.Message.getFieldWithDefault(msg, 1, ""),
9598
+ queryIndex: jspb.Message.getFieldWithDefault(msg, 2, 0),
9599
+ snapshot: (f = msg.getSnapshot()) && proto.gateway.web.v1.QuerySnapshot.toObject(includeInstance, f),
9600
+ error: (f = msg.getError()) && proto.gateway.web.v1.WidgetQueryError.toObject(includeInstance, f)
9601
+ };
9602
+
9603
+ if (includeInstance) {
9604
+ obj.$jspbMessageInstance = msg;
9605
+ }
9606
+ return obj;
9607
+ };
9608
+ }
9609
+
9610
+
9611
+ /**
9612
+ * Deserializes binary data (in protobuf wire format).
9613
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9614
+ * @return {!proto.gateway.web.v1.DashboardPreviewQueryResult}
9615
+ */
9616
+ proto.gateway.web.v1.DashboardPreviewQueryResult.deserializeBinary = function(bytes) {
9617
+ var reader = new jspb.BinaryReader(bytes);
9618
+ var msg = new proto.gateway.web.v1.DashboardPreviewQueryResult;
9619
+ return proto.gateway.web.v1.DashboardPreviewQueryResult.deserializeBinaryFromReader(msg, reader);
9620
+ };
9621
+
9622
+
9623
+ /**
9624
+ * Deserializes binary data (in protobuf wire format) from the
9625
+ * given reader into the given message object.
9626
+ * @param {!proto.gateway.web.v1.DashboardPreviewQueryResult} msg The message object to deserialize into.
9627
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9628
+ * @return {!proto.gateway.web.v1.DashboardPreviewQueryResult}
9629
+ */
9630
+ proto.gateway.web.v1.DashboardPreviewQueryResult.deserializeBinaryFromReader = function(msg, reader) {
9631
+ while (reader.nextField()) {
9632
+ if (reader.isEndGroup()) {
9633
+ break;
9634
+ }
9635
+ var field = reader.getFieldNumber();
9636
+ switch (field) {
9637
+ case 1:
9638
+ var value = /** @type {string} */ (reader.readString());
9639
+ msg.setWidgetId(value);
9640
+ break;
9641
+ case 2:
9642
+ var value = /** @type {number} */ (reader.readInt32());
9643
+ msg.setQueryIndex(value);
9644
+ break;
9645
+ case 3:
9646
+ var value = new proto.gateway.web.v1.QuerySnapshot;
9647
+ reader.readMessage(value,proto.gateway.web.v1.QuerySnapshot.deserializeBinaryFromReader);
9648
+ msg.setSnapshot(value);
9649
+ break;
9650
+ case 4:
9651
+ var value = new proto.gateway.web.v1.WidgetQueryError;
9652
+ reader.readMessage(value,proto.gateway.web.v1.WidgetQueryError.deserializeBinaryFromReader);
9653
+ msg.setError(value);
9654
+ break;
9655
+ default:
9656
+ reader.skipField();
9657
+ break;
9658
+ }
9659
+ }
9660
+ return msg;
9661
+ };
9662
+
9663
+
9664
+ /**
9665
+ * Serializes the message to binary data (in protobuf wire format).
9666
+ * @return {!Uint8Array}
9667
+ */
9668
+ proto.gateway.web.v1.DashboardPreviewQueryResult.prototype.serializeBinary = function() {
9669
+ var writer = new jspb.BinaryWriter();
9670
+ proto.gateway.web.v1.DashboardPreviewQueryResult.serializeBinaryToWriter(this, writer);
9671
+ return writer.getResultBuffer();
9672
+ };
9673
+
9674
+
9675
+ /**
9676
+ * Serializes the given message to binary data (in protobuf wire
9677
+ * format), writing to the given BinaryWriter.
9678
+ * @param {!proto.gateway.web.v1.DashboardPreviewQueryResult} message
9679
+ * @param {!jspb.BinaryWriter} writer
9680
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9681
+ */
9682
+ proto.gateway.web.v1.DashboardPreviewQueryResult.serializeBinaryToWriter = function(message, writer) {
9683
+ var f = undefined;
9684
+ f = message.getWidgetId();
9685
+ if (f.length > 0) {
9686
+ writer.writeString(
9687
+ 1,
9688
+ f
9689
+ );
9690
+ }
9691
+ f = message.getQueryIndex();
9692
+ if (f !== 0) {
9693
+ writer.writeInt32(
9694
+ 2,
9695
+ f
9696
+ );
9697
+ }
9698
+ f = message.getSnapshot();
9699
+ if (f != null) {
9700
+ writer.writeMessage(
9701
+ 3,
9702
+ f,
9703
+ proto.gateway.web.v1.QuerySnapshot.serializeBinaryToWriter
9704
+ );
9705
+ }
9706
+ f = message.getError();
9707
+ if (f != null) {
9708
+ writer.writeMessage(
9709
+ 4,
9710
+ f,
9711
+ proto.gateway.web.v1.WidgetQueryError.serializeBinaryToWriter
9712
+ );
9713
+ }
9714
+ };
9715
+
9716
+
9717
+ /**
9718
+ * optional string widget_id = 1;
9719
+ * @return {string}
9720
+ */
9721
+ proto.gateway.web.v1.DashboardPreviewQueryResult.prototype.getWidgetId = function() {
9722
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9723
+ };
9724
+
9725
+
9726
+ /**
9727
+ * @param {string} value
9728
+ * @return {!proto.gateway.web.v1.DashboardPreviewQueryResult} returns this
9729
+ */
9730
+ proto.gateway.web.v1.DashboardPreviewQueryResult.prototype.setWidgetId = function(value) {
9731
+ return jspb.Message.setProto3StringField(this, 1, value);
9732
+ };
9733
+
9734
+
9735
+ /**
9736
+ * optional int32 query_index = 2;
9737
+ * @return {number}
9738
+ */
9739
+ proto.gateway.web.v1.DashboardPreviewQueryResult.prototype.getQueryIndex = function() {
9740
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
9741
+ };
9742
+
9743
+
9744
+ /**
9745
+ * @param {number} value
9746
+ * @return {!proto.gateway.web.v1.DashboardPreviewQueryResult} returns this
9747
+ */
9748
+ proto.gateway.web.v1.DashboardPreviewQueryResult.prototype.setQueryIndex = function(value) {
9749
+ return jspb.Message.setProto3IntField(this, 2, value);
9750
+ };
9751
+
9752
+
9753
+ /**
9754
+ * optional QuerySnapshot snapshot = 3;
9755
+ * @return {?proto.gateway.web.v1.QuerySnapshot}
9756
+ */
9757
+ proto.gateway.web.v1.DashboardPreviewQueryResult.prototype.getSnapshot = function() {
9758
+ return /** @type{?proto.gateway.web.v1.QuerySnapshot} */ (
9759
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.QuerySnapshot, 3));
9760
+ };
9761
+
9762
+
9763
+ /**
9764
+ * @param {?proto.gateway.web.v1.QuerySnapshot|undefined} value
9765
+ * @return {!proto.gateway.web.v1.DashboardPreviewQueryResult} returns this
9766
+ */
9767
+ proto.gateway.web.v1.DashboardPreviewQueryResult.prototype.setSnapshot = function(value) {
9768
+ return jspb.Message.setOneofWrapperField(this, 3, proto.gateway.web.v1.DashboardPreviewQueryResult.oneofGroups_[0], value);
9769
+ };
9770
+
9771
+
9772
+ /**
9773
+ * Clears the message field making it undefined.
9774
+ * @return {!proto.gateway.web.v1.DashboardPreviewQueryResult} returns this
9775
+ */
9776
+ proto.gateway.web.v1.DashboardPreviewQueryResult.prototype.clearSnapshot = function() {
9777
+ return this.setSnapshot(undefined);
9778
+ };
9779
+
9780
+
9781
+ /**
9782
+ * Returns whether this field is set.
9783
+ * @return {boolean}
9784
+ */
9785
+ proto.gateway.web.v1.DashboardPreviewQueryResult.prototype.hasSnapshot = function() {
9786
+ return jspb.Message.getField(this, 3) != null;
9787
+ };
9788
+
9789
+
9790
+ /**
9791
+ * optional WidgetQueryError error = 4;
9792
+ * @return {?proto.gateway.web.v1.WidgetQueryError}
9793
+ */
9794
+ proto.gateway.web.v1.DashboardPreviewQueryResult.prototype.getError = function() {
9795
+ return /** @type{?proto.gateway.web.v1.WidgetQueryError} */ (
9796
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.WidgetQueryError, 4));
9797
+ };
9798
+
9799
+
9800
+ /**
9801
+ * @param {?proto.gateway.web.v1.WidgetQueryError|undefined} value
9802
+ * @return {!proto.gateway.web.v1.DashboardPreviewQueryResult} returns this
9803
+ */
9804
+ proto.gateway.web.v1.DashboardPreviewQueryResult.prototype.setError = function(value) {
9805
+ return jspb.Message.setOneofWrapperField(this, 4, proto.gateway.web.v1.DashboardPreviewQueryResult.oneofGroups_[0], value);
9806
+ };
9807
+
9808
+
9809
+ /**
9810
+ * Clears the message field making it undefined.
9811
+ * @return {!proto.gateway.web.v1.DashboardPreviewQueryResult} returns this
9812
+ */
9813
+ proto.gateway.web.v1.DashboardPreviewQueryResult.prototype.clearError = function() {
9814
+ return this.setError(undefined);
9815
+ };
9816
+
9817
+
9818
+ /**
9819
+ * Returns whether this field is set.
9820
+ * @return {boolean}
9821
+ */
9822
+ proto.gateway.web.v1.DashboardPreviewQueryResult.prototype.hasError = function() {
9823
+ return jspb.Message.getField(this, 4) != null;
9824
+ };
9825
+
9826
+
9827
+
9828
+
9829
+
9830
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9831
+ /**
9832
+ * Creates an object representation of this proto.
9833
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9834
+ * Optional fields that are not set will be set to undefined.
9835
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9836
+ * For the list of reserved names please see:
9837
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9838
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9839
+ * JSPB instance for transitional soy proto support:
9840
+ * http://goto/soy-param-migration
9841
+ * @return {!Object}
9842
+ */
9843
+ proto.gateway.web.v1.DashboardPreviewError.prototype.toObject = function(opt_includeInstance) {
9844
+ return proto.gateway.web.v1.DashboardPreviewError.toObject(opt_includeInstance, this);
9845
+ };
9846
+
9847
+
9848
+ /**
9849
+ * Static version of the {@see toObject} method.
9850
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9851
+ * the JSPB instance for transitional soy proto support:
9852
+ * http://goto/soy-param-migration
9853
+ * @param {!proto.gateway.web.v1.DashboardPreviewError} msg The msg instance to transform.
9854
+ * @return {!Object}
9855
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9856
+ */
9857
+ proto.gateway.web.v1.DashboardPreviewError.toObject = function(includeInstance, msg) {
9858
+ var f, obj = {
9859
+ message: jspb.Message.getFieldWithDefault(msg, 1, "")
9860
+ };
9861
+
9862
+ if (includeInstance) {
9863
+ obj.$jspbMessageInstance = msg;
9864
+ }
9865
+ return obj;
9866
+ };
9867
+ }
9868
+
9869
+
9870
+ /**
9871
+ * Deserializes binary data (in protobuf wire format).
9872
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9873
+ * @return {!proto.gateway.web.v1.DashboardPreviewError}
9874
+ */
9875
+ proto.gateway.web.v1.DashboardPreviewError.deserializeBinary = function(bytes) {
9876
+ var reader = new jspb.BinaryReader(bytes);
9877
+ var msg = new proto.gateway.web.v1.DashboardPreviewError;
9878
+ return proto.gateway.web.v1.DashboardPreviewError.deserializeBinaryFromReader(msg, reader);
9879
+ };
9880
+
9881
+
9882
+ /**
9883
+ * Deserializes binary data (in protobuf wire format) from the
9884
+ * given reader into the given message object.
9885
+ * @param {!proto.gateway.web.v1.DashboardPreviewError} msg The message object to deserialize into.
9886
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9887
+ * @return {!proto.gateway.web.v1.DashboardPreviewError}
9888
+ */
9889
+ proto.gateway.web.v1.DashboardPreviewError.deserializeBinaryFromReader = function(msg, reader) {
9890
+ while (reader.nextField()) {
9891
+ if (reader.isEndGroup()) {
9892
+ break;
9893
+ }
9894
+ var field = reader.getFieldNumber();
9895
+ switch (field) {
9896
+ case 1:
9897
+ var value = /** @type {string} */ (reader.readString());
9898
+ msg.setMessage(value);
9899
+ break;
9900
+ default:
9901
+ reader.skipField();
9902
+ break;
9903
+ }
9904
+ }
9905
+ return msg;
9906
+ };
9907
+
9908
+
9909
+ /**
9910
+ * Serializes the message to binary data (in protobuf wire format).
9911
+ * @return {!Uint8Array}
9912
+ */
9913
+ proto.gateway.web.v1.DashboardPreviewError.prototype.serializeBinary = function() {
9914
+ var writer = new jspb.BinaryWriter();
9915
+ proto.gateway.web.v1.DashboardPreviewError.serializeBinaryToWriter(this, writer);
9916
+ return writer.getResultBuffer();
9917
+ };
9918
+
9919
+
9920
+ /**
9921
+ * Serializes the given message to binary data (in protobuf wire
9922
+ * format), writing to the given BinaryWriter.
9923
+ * @param {!proto.gateway.web.v1.DashboardPreviewError} message
9924
+ * @param {!jspb.BinaryWriter} writer
9925
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9926
+ */
9927
+ proto.gateway.web.v1.DashboardPreviewError.serializeBinaryToWriter = function(message, writer) {
9928
+ var f = undefined;
9929
+ f = message.getMessage();
9930
+ if (f.length > 0) {
9931
+ writer.writeString(
9932
+ 1,
9933
+ f
9934
+ );
9935
+ }
9936
+ };
9937
+
9938
+
9939
+ /**
9940
+ * optional string message = 1;
9941
+ * @return {string}
9942
+ */
9943
+ proto.gateway.web.v1.DashboardPreviewError.prototype.getMessage = function() {
9944
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9945
+ };
9946
+
9947
+
9948
+ /**
9949
+ * @param {string} value
9950
+ * @return {!proto.gateway.web.v1.DashboardPreviewError} returns this
9951
+ */
9952
+ proto.gateway.web.v1.DashboardPreviewError.prototype.setMessage = function(value) {
9953
+ return jspb.Message.setProto3StringField(this, 1, value);
9954
+ };
9955
+
9956
+
8711
9957
  /**
8712
9958
  * @enum {number}
8713
9959
  */