@miradorlabs/web-grpc 2.59.0 → 2.60.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.
@@ -51,6 +51,11 @@ goog.exportSymbol('proto.gateway.web.v1.AITokenUsage', null, global);
51
51
  goog.exportSymbol('proto.gateway.web.v1.ActivityRhythm', null, global);
52
52
  goog.exportSymbol('proto.gateway.web.v1.ActivityRhythmBucket', null, global);
53
53
  goog.exportSymbol('proto.gateway.web.v1.ActivityRhythmRequest', null, global);
54
+ goog.exportSymbol('proto.gateway.web.v1.BurnRate', null, global);
55
+ goog.exportSymbol('proto.gateway.web.v1.BurnRateGroup', null, global);
56
+ goog.exportSymbol('proto.gateway.web.v1.BurnRateMeasures', null, global);
57
+ goog.exportSymbol('proto.gateway.web.v1.BurnRateRequest', null, global);
58
+ goog.exportSymbol('proto.gateway.web.v1.BurnRateSparkPoint', null, global);
54
59
  goog.exportSymbol('proto.gateway.web.v1.DailyActivity', null, global);
55
60
  goog.exportSymbol('proto.gateway.web.v1.DailyActivityDay', null, global);
56
61
  goog.exportSymbol('proto.gateway.web.v1.DailyActivityMeasures', null, global);
@@ -1058,6 +1063,111 @@ if (goog.DEBUG && !COMPILED) {
1058
1063
  */
1059
1064
  proto.gateway.web.v1.TokenActivityMeasures.displayName = 'proto.gateway.web.v1.TokenActivityMeasures';
1060
1065
  }
1066
+ /**
1067
+ * Generated by JsPbCodeGenerator.
1068
+ * @param {Array=} opt_data Optional initial data array, typically from a
1069
+ * server response, or constructed directly in Javascript. The array is used
1070
+ * in place and becomes part of the constructed object. It is not cloned.
1071
+ * If no data is provided, the constructed object will be empty, but still
1072
+ * valid.
1073
+ * @extends {jspb.Message}
1074
+ * @constructor
1075
+ */
1076
+ proto.gateway.web.v1.BurnRateRequest = function(opt_data) {
1077
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1078
+ };
1079
+ goog.inherits(proto.gateway.web.v1.BurnRateRequest, jspb.Message);
1080
+ if (goog.DEBUG && !COMPILED) {
1081
+ /**
1082
+ * @public
1083
+ * @override
1084
+ */
1085
+ proto.gateway.web.v1.BurnRateRequest.displayName = 'proto.gateway.web.v1.BurnRateRequest';
1086
+ }
1087
+ /**
1088
+ * Generated by JsPbCodeGenerator.
1089
+ * @param {Array=} opt_data Optional initial data array, typically from a
1090
+ * server response, or constructed directly in Javascript. The array is used
1091
+ * in place and becomes part of the constructed object. It is not cloned.
1092
+ * If no data is provided, the constructed object will be empty, but still
1093
+ * valid.
1094
+ * @extends {jspb.Message}
1095
+ * @constructor
1096
+ */
1097
+ proto.gateway.web.v1.BurnRate = function(opt_data) {
1098
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.BurnRate.repeatedFields_, null);
1099
+ };
1100
+ goog.inherits(proto.gateway.web.v1.BurnRate, jspb.Message);
1101
+ if (goog.DEBUG && !COMPILED) {
1102
+ /**
1103
+ * @public
1104
+ * @override
1105
+ */
1106
+ proto.gateway.web.v1.BurnRate.displayName = 'proto.gateway.web.v1.BurnRate';
1107
+ }
1108
+ /**
1109
+ * Generated by JsPbCodeGenerator.
1110
+ * @param {Array=} opt_data Optional initial data array, typically from a
1111
+ * server response, or constructed directly in Javascript. The array is used
1112
+ * in place and becomes part of the constructed object. It is not cloned.
1113
+ * If no data is provided, the constructed object will be empty, but still
1114
+ * valid.
1115
+ * @extends {jspb.Message}
1116
+ * @constructor
1117
+ */
1118
+ proto.gateway.web.v1.BurnRateGroup = function(opt_data) {
1119
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1120
+ };
1121
+ goog.inherits(proto.gateway.web.v1.BurnRateGroup, jspb.Message);
1122
+ if (goog.DEBUG && !COMPILED) {
1123
+ /**
1124
+ * @public
1125
+ * @override
1126
+ */
1127
+ proto.gateway.web.v1.BurnRateGroup.displayName = 'proto.gateway.web.v1.BurnRateGroup';
1128
+ }
1129
+ /**
1130
+ * Generated by JsPbCodeGenerator.
1131
+ * @param {Array=} opt_data Optional initial data array, typically from a
1132
+ * server response, or constructed directly in Javascript. The array is used
1133
+ * in place and becomes part of the constructed object. It is not cloned.
1134
+ * If no data is provided, the constructed object will be empty, but still
1135
+ * valid.
1136
+ * @extends {jspb.Message}
1137
+ * @constructor
1138
+ */
1139
+ proto.gateway.web.v1.BurnRateSparkPoint = function(opt_data) {
1140
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1141
+ };
1142
+ goog.inherits(proto.gateway.web.v1.BurnRateSparkPoint, jspb.Message);
1143
+ if (goog.DEBUG && !COMPILED) {
1144
+ /**
1145
+ * @public
1146
+ * @override
1147
+ */
1148
+ proto.gateway.web.v1.BurnRateSparkPoint.displayName = 'proto.gateway.web.v1.BurnRateSparkPoint';
1149
+ }
1150
+ /**
1151
+ * Generated by JsPbCodeGenerator.
1152
+ * @param {Array=} opt_data Optional initial data array, typically from a
1153
+ * server response, or constructed directly in Javascript. The array is used
1154
+ * in place and becomes part of the constructed object. It is not cloned.
1155
+ * If no data is provided, the constructed object will be empty, but still
1156
+ * valid.
1157
+ * @extends {jspb.Message}
1158
+ * @constructor
1159
+ */
1160
+ proto.gateway.web.v1.BurnRateMeasures = function(opt_data) {
1161
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1162
+ };
1163
+ goog.inherits(proto.gateway.web.v1.BurnRateMeasures, jspb.Message);
1164
+ if (goog.DEBUG && !COMPILED) {
1165
+ /**
1166
+ * @public
1167
+ * @override
1168
+ */
1169
+ proto.gateway.web.v1.BurnRateMeasures.displayName = 'proto.gateway.web.v1.BurnRateMeasures';
1170
+ }
1061
1171
  /**
1062
1172
  * Generated by JsPbCodeGenerator.
1063
1173
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -15781,6 +15891,1225 @@ proto.gateway.web.v1.TokenActivityMeasures.prototype.setModelCalls = function(va
15781
15891
 
15782
15892
 
15783
15893
 
15894
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15895
+ /**
15896
+ * Creates an object representation of this proto.
15897
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15898
+ * Optional fields that are not set will be set to undefined.
15899
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15900
+ * For the list of reserved names please see:
15901
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15902
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15903
+ * JSPB instance for transitional soy proto support:
15904
+ * http://goto/soy-param-migration
15905
+ * @return {!Object}
15906
+ */
15907
+ proto.gateway.web.v1.BurnRateRequest.prototype.toObject = function(opt_includeInstance) {
15908
+ return proto.gateway.web.v1.BurnRateRequest.toObject(opt_includeInstance, this);
15909
+ };
15910
+
15911
+
15912
+ /**
15913
+ * Static version of the {@see toObject} method.
15914
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15915
+ * the JSPB instance for transitional soy proto support:
15916
+ * http://goto/soy-param-migration
15917
+ * @param {!proto.gateway.web.v1.BurnRateRequest} msg The msg instance to transform.
15918
+ * @return {!Object}
15919
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15920
+ */
15921
+ proto.gateway.web.v1.BurnRateRequest.toObject = function(includeInstance, msg) {
15922
+ var f, obj = {
15923
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
15924
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
15925
+ filter: (f = msg.getFilter()) && proto.gateway.web.v1.AISessionFilter.toObject(includeInstance, f),
15926
+ groupBy: jspb.Message.getFieldWithDefault(msg, 4, 0)
15927
+ };
15928
+
15929
+ if (includeInstance) {
15930
+ obj.$jspbMessageInstance = msg;
15931
+ }
15932
+ return obj;
15933
+ };
15934
+ }
15935
+
15936
+
15937
+ /**
15938
+ * Deserializes binary data (in protobuf wire format).
15939
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
15940
+ * @return {!proto.gateway.web.v1.BurnRateRequest}
15941
+ */
15942
+ proto.gateway.web.v1.BurnRateRequest.deserializeBinary = function(bytes) {
15943
+ var reader = new jspb.BinaryReader(bytes);
15944
+ var msg = new proto.gateway.web.v1.BurnRateRequest;
15945
+ return proto.gateway.web.v1.BurnRateRequest.deserializeBinaryFromReader(msg, reader);
15946
+ };
15947
+
15948
+
15949
+ /**
15950
+ * Deserializes binary data (in protobuf wire format) from the
15951
+ * given reader into the given message object.
15952
+ * @param {!proto.gateway.web.v1.BurnRateRequest} msg The message object to deserialize into.
15953
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15954
+ * @return {!proto.gateway.web.v1.BurnRateRequest}
15955
+ */
15956
+ proto.gateway.web.v1.BurnRateRequest.deserializeBinaryFromReader = function(msg, reader) {
15957
+ while (reader.nextField()) {
15958
+ if (reader.isEndGroup()) {
15959
+ break;
15960
+ }
15961
+ var field = reader.getFieldNumber();
15962
+ switch (field) {
15963
+ case 1:
15964
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15965
+ msg.setOrganizationId(value);
15966
+ break;
15967
+ case 2:
15968
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15969
+ msg.setProjectId(value);
15970
+ break;
15971
+ case 3:
15972
+ var value = new proto.gateway.web.v1.AISessionFilter;
15973
+ reader.readMessage(value,proto.gateway.web.v1.AISessionFilter.deserializeBinaryFromReader);
15974
+ msg.setFilter(value);
15975
+ break;
15976
+ case 4:
15977
+ var value = /** @type {!proto.gateway.web.v1.AITokenActivityDimension} */ (reader.readEnum());
15978
+ msg.setGroupBy(value);
15979
+ break;
15980
+ default:
15981
+ reader.skipField();
15982
+ break;
15983
+ }
15984
+ }
15985
+ return msg;
15986
+ };
15987
+
15988
+
15989
+ /**
15990
+ * Serializes the message to binary data (in protobuf wire format).
15991
+ * @return {!Uint8Array}
15992
+ */
15993
+ proto.gateway.web.v1.BurnRateRequest.prototype.serializeBinary = function() {
15994
+ var writer = new jspb.BinaryWriter();
15995
+ proto.gateway.web.v1.BurnRateRequest.serializeBinaryToWriter(this, writer);
15996
+ return writer.getResultBuffer();
15997
+ };
15998
+
15999
+
16000
+ /**
16001
+ * Serializes the given message to binary data (in protobuf wire
16002
+ * format), writing to the given BinaryWriter.
16003
+ * @param {!proto.gateway.web.v1.BurnRateRequest} message
16004
+ * @param {!jspb.BinaryWriter} writer
16005
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16006
+ */
16007
+ proto.gateway.web.v1.BurnRateRequest.serializeBinaryToWriter = function(message, writer) {
16008
+ var f = undefined;
16009
+ f = message.getOrganizationId();
16010
+ if (f.length > 0) {
16011
+ writer.writeString(
16012
+ 1,
16013
+ f
16014
+ );
16015
+ }
16016
+ f = message.getProjectId();
16017
+ if (f.length > 0) {
16018
+ writer.writeString(
16019
+ 2,
16020
+ f
16021
+ );
16022
+ }
16023
+ f = message.getFilter();
16024
+ if (f != null) {
16025
+ writer.writeMessage(
16026
+ 3,
16027
+ f,
16028
+ proto.gateway.web.v1.AISessionFilter.serializeBinaryToWriter
16029
+ );
16030
+ }
16031
+ f = message.getGroupBy();
16032
+ if (f !== 0.0) {
16033
+ writer.writeEnum(
16034
+ 4,
16035
+ f
16036
+ );
16037
+ }
16038
+ };
16039
+
16040
+
16041
+ /**
16042
+ * optional string organization_id = 1;
16043
+ * @return {string}
16044
+ */
16045
+ proto.gateway.web.v1.BurnRateRequest.prototype.getOrganizationId = function() {
16046
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16047
+ };
16048
+
16049
+
16050
+ /**
16051
+ * @param {string} value
16052
+ * @return {!proto.gateway.web.v1.BurnRateRequest} returns this
16053
+ */
16054
+ proto.gateway.web.v1.BurnRateRequest.prototype.setOrganizationId = function(value) {
16055
+ return jspb.Message.setProto3StringField(this, 1, value);
16056
+ };
16057
+
16058
+
16059
+ /**
16060
+ * optional string project_id = 2;
16061
+ * @return {string}
16062
+ */
16063
+ proto.gateway.web.v1.BurnRateRequest.prototype.getProjectId = function() {
16064
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
16065
+ };
16066
+
16067
+
16068
+ /**
16069
+ * @param {string} value
16070
+ * @return {!proto.gateway.web.v1.BurnRateRequest} returns this
16071
+ */
16072
+ proto.gateway.web.v1.BurnRateRequest.prototype.setProjectId = function(value) {
16073
+ return jspb.Message.setProto3StringField(this, 2, value);
16074
+ };
16075
+
16076
+
16077
+ /**
16078
+ * optional AISessionFilter filter = 3;
16079
+ * @return {?proto.gateway.web.v1.AISessionFilter}
16080
+ */
16081
+ proto.gateway.web.v1.BurnRateRequest.prototype.getFilter = function() {
16082
+ return /** @type{?proto.gateway.web.v1.AISessionFilter} */ (
16083
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AISessionFilter, 3));
16084
+ };
16085
+
16086
+
16087
+ /**
16088
+ * @param {?proto.gateway.web.v1.AISessionFilter|undefined} value
16089
+ * @return {!proto.gateway.web.v1.BurnRateRequest} returns this
16090
+ */
16091
+ proto.gateway.web.v1.BurnRateRequest.prototype.setFilter = function(value) {
16092
+ return jspb.Message.setWrapperField(this, 3, value);
16093
+ };
16094
+
16095
+
16096
+ /**
16097
+ * Clears the message field making it undefined.
16098
+ * @return {!proto.gateway.web.v1.BurnRateRequest} returns this
16099
+ */
16100
+ proto.gateway.web.v1.BurnRateRequest.prototype.clearFilter = function() {
16101
+ return this.setFilter(undefined);
16102
+ };
16103
+
16104
+
16105
+ /**
16106
+ * Returns whether this field is set.
16107
+ * @return {boolean}
16108
+ */
16109
+ proto.gateway.web.v1.BurnRateRequest.prototype.hasFilter = function() {
16110
+ return jspb.Message.getField(this, 3) != null;
16111
+ };
16112
+
16113
+
16114
+ /**
16115
+ * optional AITokenActivityDimension group_by = 4;
16116
+ * @return {!proto.gateway.web.v1.AITokenActivityDimension}
16117
+ */
16118
+ proto.gateway.web.v1.BurnRateRequest.prototype.getGroupBy = function() {
16119
+ return /** @type {!proto.gateway.web.v1.AITokenActivityDimension} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
16120
+ };
16121
+
16122
+
16123
+ /**
16124
+ * @param {!proto.gateway.web.v1.AITokenActivityDimension} value
16125
+ * @return {!proto.gateway.web.v1.BurnRateRequest} returns this
16126
+ */
16127
+ proto.gateway.web.v1.BurnRateRequest.prototype.setGroupBy = function(value) {
16128
+ return jspb.Message.setProto3EnumField(this, 4, value);
16129
+ };
16130
+
16131
+
16132
+
16133
+ /**
16134
+ * List of repeated fields within this message type.
16135
+ * @private {!Array<number>}
16136
+ * @const
16137
+ */
16138
+ proto.gateway.web.v1.BurnRate.repeatedFields_ = [3,4];
16139
+
16140
+
16141
+
16142
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16143
+ /**
16144
+ * Creates an object representation of this proto.
16145
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16146
+ * Optional fields that are not set will be set to undefined.
16147
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16148
+ * For the list of reserved names please see:
16149
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16150
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16151
+ * JSPB instance for transitional soy proto support:
16152
+ * http://goto/soy-param-migration
16153
+ * @return {!Object}
16154
+ */
16155
+ proto.gateway.web.v1.BurnRate.prototype.toObject = function(opt_includeInstance) {
16156
+ return proto.gateway.web.v1.BurnRate.toObject(opt_includeInstance, this);
16157
+ };
16158
+
16159
+
16160
+ /**
16161
+ * Static version of the {@see toObject} method.
16162
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16163
+ * the JSPB instance for transitional soy proto support:
16164
+ * http://goto/soy-param-migration
16165
+ * @param {!proto.gateway.web.v1.BurnRate} msg The msg instance to transform.
16166
+ * @return {!Object}
16167
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16168
+ */
16169
+ proto.gateway.web.v1.BurnRate.toObject = function(includeInstance, msg) {
16170
+ var f, obj = {
16171
+ asOf: (f = msg.getAsOf()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
16172
+ current: (f = msg.getCurrent()) && proto.gateway.web.v1.BurnRateMeasures.toObject(includeInstance, f),
16173
+ currentGroupsList: jspb.Message.toObjectList(msg.getCurrentGroupsList(),
16174
+ proto.gateway.web.v1.BurnRateGroup.toObject, includeInstance),
16175
+ sparklineList: jspb.Message.toObjectList(msg.getSparklineList(),
16176
+ proto.gateway.web.v1.BurnRateSparkPoint.toObject, includeInstance),
16177
+ groupBy: jspb.Message.getFieldWithDefault(msg, 5, 0)
16178
+ };
16179
+
16180
+ if (includeInstance) {
16181
+ obj.$jspbMessageInstance = msg;
16182
+ }
16183
+ return obj;
16184
+ };
16185
+ }
16186
+
16187
+
16188
+ /**
16189
+ * Deserializes binary data (in protobuf wire format).
16190
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
16191
+ * @return {!proto.gateway.web.v1.BurnRate}
16192
+ */
16193
+ proto.gateway.web.v1.BurnRate.deserializeBinary = function(bytes) {
16194
+ var reader = new jspb.BinaryReader(bytes);
16195
+ var msg = new proto.gateway.web.v1.BurnRate;
16196
+ return proto.gateway.web.v1.BurnRate.deserializeBinaryFromReader(msg, reader);
16197
+ };
16198
+
16199
+
16200
+ /**
16201
+ * Deserializes binary data (in protobuf wire format) from the
16202
+ * given reader into the given message object.
16203
+ * @param {!proto.gateway.web.v1.BurnRate} msg The message object to deserialize into.
16204
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16205
+ * @return {!proto.gateway.web.v1.BurnRate}
16206
+ */
16207
+ proto.gateway.web.v1.BurnRate.deserializeBinaryFromReader = function(msg, reader) {
16208
+ while (reader.nextField()) {
16209
+ if (reader.isEndGroup()) {
16210
+ break;
16211
+ }
16212
+ var field = reader.getFieldNumber();
16213
+ switch (field) {
16214
+ case 1:
16215
+ var value = new google_protobuf_timestamp_pb.Timestamp;
16216
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
16217
+ msg.setAsOf(value);
16218
+ break;
16219
+ case 2:
16220
+ var value = new proto.gateway.web.v1.BurnRateMeasures;
16221
+ reader.readMessage(value,proto.gateway.web.v1.BurnRateMeasures.deserializeBinaryFromReader);
16222
+ msg.setCurrent(value);
16223
+ break;
16224
+ case 3:
16225
+ var value = new proto.gateway.web.v1.BurnRateGroup;
16226
+ reader.readMessage(value,proto.gateway.web.v1.BurnRateGroup.deserializeBinaryFromReader);
16227
+ msg.addCurrentGroups(value);
16228
+ break;
16229
+ case 4:
16230
+ var value = new proto.gateway.web.v1.BurnRateSparkPoint;
16231
+ reader.readMessage(value,proto.gateway.web.v1.BurnRateSparkPoint.deserializeBinaryFromReader);
16232
+ msg.addSparkline(value);
16233
+ break;
16234
+ case 5:
16235
+ var value = /** @type {!proto.gateway.web.v1.AITokenActivityDimension} */ (reader.readEnum());
16236
+ msg.setGroupBy(value);
16237
+ break;
16238
+ default:
16239
+ reader.skipField();
16240
+ break;
16241
+ }
16242
+ }
16243
+ return msg;
16244
+ };
16245
+
16246
+
16247
+ /**
16248
+ * Serializes the message to binary data (in protobuf wire format).
16249
+ * @return {!Uint8Array}
16250
+ */
16251
+ proto.gateway.web.v1.BurnRate.prototype.serializeBinary = function() {
16252
+ var writer = new jspb.BinaryWriter();
16253
+ proto.gateway.web.v1.BurnRate.serializeBinaryToWriter(this, writer);
16254
+ return writer.getResultBuffer();
16255
+ };
16256
+
16257
+
16258
+ /**
16259
+ * Serializes the given message to binary data (in protobuf wire
16260
+ * format), writing to the given BinaryWriter.
16261
+ * @param {!proto.gateway.web.v1.BurnRate} message
16262
+ * @param {!jspb.BinaryWriter} writer
16263
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16264
+ */
16265
+ proto.gateway.web.v1.BurnRate.serializeBinaryToWriter = function(message, writer) {
16266
+ var f = undefined;
16267
+ f = message.getAsOf();
16268
+ if (f != null) {
16269
+ writer.writeMessage(
16270
+ 1,
16271
+ f,
16272
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
16273
+ );
16274
+ }
16275
+ f = message.getCurrent();
16276
+ if (f != null) {
16277
+ writer.writeMessage(
16278
+ 2,
16279
+ f,
16280
+ proto.gateway.web.v1.BurnRateMeasures.serializeBinaryToWriter
16281
+ );
16282
+ }
16283
+ f = message.getCurrentGroupsList();
16284
+ if (f.length > 0) {
16285
+ writer.writeRepeatedMessage(
16286
+ 3,
16287
+ f,
16288
+ proto.gateway.web.v1.BurnRateGroup.serializeBinaryToWriter
16289
+ );
16290
+ }
16291
+ f = message.getSparklineList();
16292
+ if (f.length > 0) {
16293
+ writer.writeRepeatedMessage(
16294
+ 4,
16295
+ f,
16296
+ proto.gateway.web.v1.BurnRateSparkPoint.serializeBinaryToWriter
16297
+ );
16298
+ }
16299
+ f = message.getGroupBy();
16300
+ if (f !== 0.0) {
16301
+ writer.writeEnum(
16302
+ 5,
16303
+ f
16304
+ );
16305
+ }
16306
+ };
16307
+
16308
+
16309
+ /**
16310
+ * optional google.protobuf.Timestamp as_of = 1;
16311
+ * @return {?proto.google.protobuf.Timestamp}
16312
+ */
16313
+ proto.gateway.web.v1.BurnRate.prototype.getAsOf = function() {
16314
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
16315
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
16316
+ };
16317
+
16318
+
16319
+ /**
16320
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
16321
+ * @return {!proto.gateway.web.v1.BurnRate} returns this
16322
+ */
16323
+ proto.gateway.web.v1.BurnRate.prototype.setAsOf = function(value) {
16324
+ return jspb.Message.setWrapperField(this, 1, value);
16325
+ };
16326
+
16327
+
16328
+ /**
16329
+ * Clears the message field making it undefined.
16330
+ * @return {!proto.gateway.web.v1.BurnRate} returns this
16331
+ */
16332
+ proto.gateway.web.v1.BurnRate.prototype.clearAsOf = function() {
16333
+ return this.setAsOf(undefined);
16334
+ };
16335
+
16336
+
16337
+ /**
16338
+ * Returns whether this field is set.
16339
+ * @return {boolean}
16340
+ */
16341
+ proto.gateway.web.v1.BurnRate.prototype.hasAsOf = function() {
16342
+ return jspb.Message.getField(this, 1) != null;
16343
+ };
16344
+
16345
+
16346
+ /**
16347
+ * optional BurnRateMeasures current = 2;
16348
+ * @return {?proto.gateway.web.v1.BurnRateMeasures}
16349
+ */
16350
+ proto.gateway.web.v1.BurnRate.prototype.getCurrent = function() {
16351
+ return /** @type{?proto.gateway.web.v1.BurnRateMeasures} */ (
16352
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.BurnRateMeasures, 2));
16353
+ };
16354
+
16355
+
16356
+ /**
16357
+ * @param {?proto.gateway.web.v1.BurnRateMeasures|undefined} value
16358
+ * @return {!proto.gateway.web.v1.BurnRate} returns this
16359
+ */
16360
+ proto.gateway.web.v1.BurnRate.prototype.setCurrent = function(value) {
16361
+ return jspb.Message.setWrapperField(this, 2, value);
16362
+ };
16363
+
16364
+
16365
+ /**
16366
+ * Clears the message field making it undefined.
16367
+ * @return {!proto.gateway.web.v1.BurnRate} returns this
16368
+ */
16369
+ proto.gateway.web.v1.BurnRate.prototype.clearCurrent = function() {
16370
+ return this.setCurrent(undefined);
16371
+ };
16372
+
16373
+
16374
+ /**
16375
+ * Returns whether this field is set.
16376
+ * @return {boolean}
16377
+ */
16378
+ proto.gateway.web.v1.BurnRate.prototype.hasCurrent = function() {
16379
+ return jspb.Message.getField(this, 2) != null;
16380
+ };
16381
+
16382
+
16383
+ /**
16384
+ * repeated BurnRateGroup current_groups = 3;
16385
+ * @return {!Array<!proto.gateway.web.v1.BurnRateGroup>}
16386
+ */
16387
+ proto.gateway.web.v1.BurnRate.prototype.getCurrentGroupsList = function() {
16388
+ return /** @type{!Array<!proto.gateway.web.v1.BurnRateGroup>} */ (
16389
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.BurnRateGroup, 3));
16390
+ };
16391
+
16392
+
16393
+ /**
16394
+ * @param {!Array<!proto.gateway.web.v1.BurnRateGroup>} value
16395
+ * @return {!proto.gateway.web.v1.BurnRate} returns this
16396
+ */
16397
+ proto.gateway.web.v1.BurnRate.prototype.setCurrentGroupsList = function(value) {
16398
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
16399
+ };
16400
+
16401
+
16402
+ /**
16403
+ * @param {!proto.gateway.web.v1.BurnRateGroup=} opt_value
16404
+ * @param {number=} opt_index
16405
+ * @return {!proto.gateway.web.v1.BurnRateGroup}
16406
+ */
16407
+ proto.gateway.web.v1.BurnRate.prototype.addCurrentGroups = function(opt_value, opt_index) {
16408
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gateway.web.v1.BurnRateGroup, opt_index);
16409
+ };
16410
+
16411
+
16412
+ /**
16413
+ * Clears the list making it empty but non-null.
16414
+ * @return {!proto.gateway.web.v1.BurnRate} returns this
16415
+ */
16416
+ proto.gateway.web.v1.BurnRate.prototype.clearCurrentGroupsList = function() {
16417
+ return this.setCurrentGroupsList([]);
16418
+ };
16419
+
16420
+
16421
+ /**
16422
+ * repeated BurnRateSparkPoint sparkline = 4;
16423
+ * @return {!Array<!proto.gateway.web.v1.BurnRateSparkPoint>}
16424
+ */
16425
+ proto.gateway.web.v1.BurnRate.prototype.getSparklineList = function() {
16426
+ return /** @type{!Array<!proto.gateway.web.v1.BurnRateSparkPoint>} */ (
16427
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.BurnRateSparkPoint, 4));
16428
+ };
16429
+
16430
+
16431
+ /**
16432
+ * @param {!Array<!proto.gateway.web.v1.BurnRateSparkPoint>} value
16433
+ * @return {!proto.gateway.web.v1.BurnRate} returns this
16434
+ */
16435
+ proto.gateway.web.v1.BurnRate.prototype.setSparklineList = function(value) {
16436
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
16437
+ };
16438
+
16439
+
16440
+ /**
16441
+ * @param {!proto.gateway.web.v1.BurnRateSparkPoint=} opt_value
16442
+ * @param {number=} opt_index
16443
+ * @return {!proto.gateway.web.v1.BurnRateSparkPoint}
16444
+ */
16445
+ proto.gateway.web.v1.BurnRate.prototype.addSparkline = function(opt_value, opt_index) {
16446
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.gateway.web.v1.BurnRateSparkPoint, opt_index);
16447
+ };
16448
+
16449
+
16450
+ /**
16451
+ * Clears the list making it empty but non-null.
16452
+ * @return {!proto.gateway.web.v1.BurnRate} returns this
16453
+ */
16454
+ proto.gateway.web.v1.BurnRate.prototype.clearSparklineList = function() {
16455
+ return this.setSparklineList([]);
16456
+ };
16457
+
16458
+
16459
+ /**
16460
+ * optional AITokenActivityDimension group_by = 5;
16461
+ * @return {!proto.gateway.web.v1.AITokenActivityDimension}
16462
+ */
16463
+ proto.gateway.web.v1.BurnRate.prototype.getGroupBy = function() {
16464
+ return /** @type {!proto.gateway.web.v1.AITokenActivityDimension} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
16465
+ };
16466
+
16467
+
16468
+ /**
16469
+ * @param {!proto.gateway.web.v1.AITokenActivityDimension} value
16470
+ * @return {!proto.gateway.web.v1.BurnRate} returns this
16471
+ */
16472
+ proto.gateway.web.v1.BurnRate.prototype.setGroupBy = function(value) {
16473
+ return jspb.Message.setProto3EnumField(this, 5, value);
16474
+ };
16475
+
16476
+
16477
+
16478
+
16479
+
16480
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16481
+ /**
16482
+ * Creates an object representation of this proto.
16483
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16484
+ * Optional fields that are not set will be set to undefined.
16485
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16486
+ * For the list of reserved names please see:
16487
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16488
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16489
+ * JSPB instance for transitional soy proto support:
16490
+ * http://goto/soy-param-migration
16491
+ * @return {!Object}
16492
+ */
16493
+ proto.gateway.web.v1.BurnRateGroup.prototype.toObject = function(opt_includeInstance) {
16494
+ return proto.gateway.web.v1.BurnRateGroup.toObject(opt_includeInstance, this);
16495
+ };
16496
+
16497
+
16498
+ /**
16499
+ * Static version of the {@see toObject} method.
16500
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16501
+ * the JSPB instance for transitional soy proto support:
16502
+ * http://goto/soy-param-migration
16503
+ * @param {!proto.gateway.web.v1.BurnRateGroup} msg The msg instance to transform.
16504
+ * @return {!Object}
16505
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16506
+ */
16507
+ proto.gateway.web.v1.BurnRateGroup.toObject = function(includeInstance, msg) {
16508
+ var f, obj = {
16509
+ key: jspb.Message.getFieldWithDefault(msg, 1, ""),
16510
+ rate: (f = msg.getRate()) && proto.gateway.web.v1.BurnRateMeasures.toObject(includeInstance, f)
16511
+ };
16512
+
16513
+ if (includeInstance) {
16514
+ obj.$jspbMessageInstance = msg;
16515
+ }
16516
+ return obj;
16517
+ };
16518
+ }
16519
+
16520
+
16521
+ /**
16522
+ * Deserializes binary data (in protobuf wire format).
16523
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
16524
+ * @return {!proto.gateway.web.v1.BurnRateGroup}
16525
+ */
16526
+ proto.gateway.web.v1.BurnRateGroup.deserializeBinary = function(bytes) {
16527
+ var reader = new jspb.BinaryReader(bytes);
16528
+ var msg = new proto.gateway.web.v1.BurnRateGroup;
16529
+ return proto.gateway.web.v1.BurnRateGroup.deserializeBinaryFromReader(msg, reader);
16530
+ };
16531
+
16532
+
16533
+ /**
16534
+ * Deserializes binary data (in protobuf wire format) from the
16535
+ * given reader into the given message object.
16536
+ * @param {!proto.gateway.web.v1.BurnRateGroup} msg The message object to deserialize into.
16537
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16538
+ * @return {!proto.gateway.web.v1.BurnRateGroup}
16539
+ */
16540
+ proto.gateway.web.v1.BurnRateGroup.deserializeBinaryFromReader = function(msg, reader) {
16541
+ while (reader.nextField()) {
16542
+ if (reader.isEndGroup()) {
16543
+ break;
16544
+ }
16545
+ var field = reader.getFieldNumber();
16546
+ switch (field) {
16547
+ case 1:
16548
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
16549
+ msg.setKey(value);
16550
+ break;
16551
+ case 2:
16552
+ var value = new proto.gateway.web.v1.BurnRateMeasures;
16553
+ reader.readMessage(value,proto.gateway.web.v1.BurnRateMeasures.deserializeBinaryFromReader);
16554
+ msg.setRate(value);
16555
+ break;
16556
+ default:
16557
+ reader.skipField();
16558
+ break;
16559
+ }
16560
+ }
16561
+ return msg;
16562
+ };
16563
+
16564
+
16565
+ /**
16566
+ * Serializes the message to binary data (in protobuf wire format).
16567
+ * @return {!Uint8Array}
16568
+ */
16569
+ proto.gateway.web.v1.BurnRateGroup.prototype.serializeBinary = function() {
16570
+ var writer = new jspb.BinaryWriter();
16571
+ proto.gateway.web.v1.BurnRateGroup.serializeBinaryToWriter(this, writer);
16572
+ return writer.getResultBuffer();
16573
+ };
16574
+
16575
+
16576
+ /**
16577
+ * Serializes the given message to binary data (in protobuf wire
16578
+ * format), writing to the given BinaryWriter.
16579
+ * @param {!proto.gateway.web.v1.BurnRateGroup} message
16580
+ * @param {!jspb.BinaryWriter} writer
16581
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16582
+ */
16583
+ proto.gateway.web.v1.BurnRateGroup.serializeBinaryToWriter = function(message, writer) {
16584
+ var f = undefined;
16585
+ f = message.getKey();
16586
+ if (f.length > 0) {
16587
+ writer.writeString(
16588
+ 1,
16589
+ f
16590
+ );
16591
+ }
16592
+ f = message.getRate();
16593
+ if (f != null) {
16594
+ writer.writeMessage(
16595
+ 2,
16596
+ f,
16597
+ proto.gateway.web.v1.BurnRateMeasures.serializeBinaryToWriter
16598
+ );
16599
+ }
16600
+ };
16601
+
16602
+
16603
+ /**
16604
+ * optional string key = 1;
16605
+ * @return {string}
16606
+ */
16607
+ proto.gateway.web.v1.BurnRateGroup.prototype.getKey = function() {
16608
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16609
+ };
16610
+
16611
+
16612
+ /**
16613
+ * @param {string} value
16614
+ * @return {!proto.gateway.web.v1.BurnRateGroup} returns this
16615
+ */
16616
+ proto.gateway.web.v1.BurnRateGroup.prototype.setKey = function(value) {
16617
+ return jspb.Message.setProto3StringField(this, 1, value);
16618
+ };
16619
+
16620
+
16621
+ /**
16622
+ * optional BurnRateMeasures rate = 2;
16623
+ * @return {?proto.gateway.web.v1.BurnRateMeasures}
16624
+ */
16625
+ proto.gateway.web.v1.BurnRateGroup.prototype.getRate = function() {
16626
+ return /** @type{?proto.gateway.web.v1.BurnRateMeasures} */ (
16627
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.BurnRateMeasures, 2));
16628
+ };
16629
+
16630
+
16631
+ /**
16632
+ * @param {?proto.gateway.web.v1.BurnRateMeasures|undefined} value
16633
+ * @return {!proto.gateway.web.v1.BurnRateGroup} returns this
16634
+ */
16635
+ proto.gateway.web.v1.BurnRateGroup.prototype.setRate = function(value) {
16636
+ return jspb.Message.setWrapperField(this, 2, value);
16637
+ };
16638
+
16639
+
16640
+ /**
16641
+ * Clears the message field making it undefined.
16642
+ * @return {!proto.gateway.web.v1.BurnRateGroup} returns this
16643
+ */
16644
+ proto.gateway.web.v1.BurnRateGroup.prototype.clearRate = function() {
16645
+ return this.setRate(undefined);
16646
+ };
16647
+
16648
+
16649
+ /**
16650
+ * Returns whether this field is set.
16651
+ * @return {boolean}
16652
+ */
16653
+ proto.gateway.web.v1.BurnRateGroup.prototype.hasRate = function() {
16654
+ return jspb.Message.getField(this, 2) != null;
16655
+ };
16656
+
16657
+
16658
+
16659
+
16660
+
16661
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16662
+ /**
16663
+ * Creates an object representation of this proto.
16664
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16665
+ * Optional fields that are not set will be set to undefined.
16666
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16667
+ * For the list of reserved names please see:
16668
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16669
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16670
+ * JSPB instance for transitional soy proto support:
16671
+ * http://goto/soy-param-migration
16672
+ * @return {!Object}
16673
+ */
16674
+ proto.gateway.web.v1.BurnRateSparkPoint.prototype.toObject = function(opt_includeInstance) {
16675
+ return proto.gateway.web.v1.BurnRateSparkPoint.toObject(opt_includeInstance, this);
16676
+ };
16677
+
16678
+
16679
+ /**
16680
+ * Static version of the {@see toObject} method.
16681
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16682
+ * the JSPB instance for transitional soy proto support:
16683
+ * http://goto/soy-param-migration
16684
+ * @param {!proto.gateway.web.v1.BurnRateSparkPoint} msg The msg instance to transform.
16685
+ * @return {!Object}
16686
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16687
+ */
16688
+ proto.gateway.web.v1.BurnRateSparkPoint.toObject = function(includeInstance, msg) {
16689
+ var f, obj = {
16690
+ bucketStart: (f = msg.getBucketStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
16691
+ rate: (f = msg.getRate()) && proto.gateway.web.v1.BurnRateMeasures.toObject(includeInstance, f)
16692
+ };
16693
+
16694
+ if (includeInstance) {
16695
+ obj.$jspbMessageInstance = msg;
16696
+ }
16697
+ return obj;
16698
+ };
16699
+ }
16700
+
16701
+
16702
+ /**
16703
+ * Deserializes binary data (in protobuf wire format).
16704
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
16705
+ * @return {!proto.gateway.web.v1.BurnRateSparkPoint}
16706
+ */
16707
+ proto.gateway.web.v1.BurnRateSparkPoint.deserializeBinary = function(bytes) {
16708
+ var reader = new jspb.BinaryReader(bytes);
16709
+ var msg = new proto.gateway.web.v1.BurnRateSparkPoint;
16710
+ return proto.gateway.web.v1.BurnRateSparkPoint.deserializeBinaryFromReader(msg, reader);
16711
+ };
16712
+
16713
+
16714
+ /**
16715
+ * Deserializes binary data (in protobuf wire format) from the
16716
+ * given reader into the given message object.
16717
+ * @param {!proto.gateway.web.v1.BurnRateSparkPoint} msg The message object to deserialize into.
16718
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16719
+ * @return {!proto.gateway.web.v1.BurnRateSparkPoint}
16720
+ */
16721
+ proto.gateway.web.v1.BurnRateSparkPoint.deserializeBinaryFromReader = function(msg, reader) {
16722
+ while (reader.nextField()) {
16723
+ if (reader.isEndGroup()) {
16724
+ break;
16725
+ }
16726
+ var field = reader.getFieldNumber();
16727
+ switch (field) {
16728
+ case 1:
16729
+ var value = new google_protobuf_timestamp_pb.Timestamp;
16730
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
16731
+ msg.setBucketStart(value);
16732
+ break;
16733
+ case 2:
16734
+ var value = new proto.gateway.web.v1.BurnRateMeasures;
16735
+ reader.readMessage(value,proto.gateway.web.v1.BurnRateMeasures.deserializeBinaryFromReader);
16736
+ msg.setRate(value);
16737
+ break;
16738
+ default:
16739
+ reader.skipField();
16740
+ break;
16741
+ }
16742
+ }
16743
+ return msg;
16744
+ };
16745
+
16746
+
16747
+ /**
16748
+ * Serializes the message to binary data (in protobuf wire format).
16749
+ * @return {!Uint8Array}
16750
+ */
16751
+ proto.gateway.web.v1.BurnRateSparkPoint.prototype.serializeBinary = function() {
16752
+ var writer = new jspb.BinaryWriter();
16753
+ proto.gateway.web.v1.BurnRateSparkPoint.serializeBinaryToWriter(this, writer);
16754
+ return writer.getResultBuffer();
16755
+ };
16756
+
16757
+
16758
+ /**
16759
+ * Serializes the given message to binary data (in protobuf wire
16760
+ * format), writing to the given BinaryWriter.
16761
+ * @param {!proto.gateway.web.v1.BurnRateSparkPoint} message
16762
+ * @param {!jspb.BinaryWriter} writer
16763
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16764
+ */
16765
+ proto.gateway.web.v1.BurnRateSparkPoint.serializeBinaryToWriter = function(message, writer) {
16766
+ var f = undefined;
16767
+ f = message.getBucketStart();
16768
+ if (f != null) {
16769
+ writer.writeMessage(
16770
+ 1,
16771
+ f,
16772
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
16773
+ );
16774
+ }
16775
+ f = message.getRate();
16776
+ if (f != null) {
16777
+ writer.writeMessage(
16778
+ 2,
16779
+ f,
16780
+ proto.gateway.web.v1.BurnRateMeasures.serializeBinaryToWriter
16781
+ );
16782
+ }
16783
+ };
16784
+
16785
+
16786
+ /**
16787
+ * optional google.protobuf.Timestamp bucket_start = 1;
16788
+ * @return {?proto.google.protobuf.Timestamp}
16789
+ */
16790
+ proto.gateway.web.v1.BurnRateSparkPoint.prototype.getBucketStart = function() {
16791
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
16792
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
16793
+ };
16794
+
16795
+
16796
+ /**
16797
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
16798
+ * @return {!proto.gateway.web.v1.BurnRateSparkPoint} returns this
16799
+ */
16800
+ proto.gateway.web.v1.BurnRateSparkPoint.prototype.setBucketStart = function(value) {
16801
+ return jspb.Message.setWrapperField(this, 1, value);
16802
+ };
16803
+
16804
+
16805
+ /**
16806
+ * Clears the message field making it undefined.
16807
+ * @return {!proto.gateway.web.v1.BurnRateSparkPoint} returns this
16808
+ */
16809
+ proto.gateway.web.v1.BurnRateSparkPoint.prototype.clearBucketStart = function() {
16810
+ return this.setBucketStart(undefined);
16811
+ };
16812
+
16813
+
16814
+ /**
16815
+ * Returns whether this field is set.
16816
+ * @return {boolean}
16817
+ */
16818
+ proto.gateway.web.v1.BurnRateSparkPoint.prototype.hasBucketStart = function() {
16819
+ return jspb.Message.getField(this, 1) != null;
16820
+ };
16821
+
16822
+
16823
+ /**
16824
+ * optional BurnRateMeasures rate = 2;
16825
+ * @return {?proto.gateway.web.v1.BurnRateMeasures}
16826
+ */
16827
+ proto.gateway.web.v1.BurnRateSparkPoint.prototype.getRate = function() {
16828
+ return /** @type{?proto.gateway.web.v1.BurnRateMeasures} */ (
16829
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.BurnRateMeasures, 2));
16830
+ };
16831
+
16832
+
16833
+ /**
16834
+ * @param {?proto.gateway.web.v1.BurnRateMeasures|undefined} value
16835
+ * @return {!proto.gateway.web.v1.BurnRateSparkPoint} returns this
16836
+ */
16837
+ proto.gateway.web.v1.BurnRateSparkPoint.prototype.setRate = function(value) {
16838
+ return jspb.Message.setWrapperField(this, 2, value);
16839
+ };
16840
+
16841
+
16842
+ /**
16843
+ * Clears the message field making it undefined.
16844
+ * @return {!proto.gateway.web.v1.BurnRateSparkPoint} returns this
16845
+ */
16846
+ proto.gateway.web.v1.BurnRateSparkPoint.prototype.clearRate = function() {
16847
+ return this.setRate(undefined);
16848
+ };
16849
+
16850
+
16851
+ /**
16852
+ * Returns whether this field is set.
16853
+ * @return {boolean}
16854
+ */
16855
+ proto.gateway.web.v1.BurnRateSparkPoint.prototype.hasRate = function() {
16856
+ return jspb.Message.getField(this, 2) != null;
16857
+ };
16858
+
16859
+
16860
+
16861
+
16862
+
16863
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16864
+ /**
16865
+ * Creates an object representation of this proto.
16866
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16867
+ * Optional fields that are not set will be set to undefined.
16868
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16869
+ * For the list of reserved names please see:
16870
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16871
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16872
+ * JSPB instance for transitional soy proto support:
16873
+ * http://goto/soy-param-migration
16874
+ * @return {!Object}
16875
+ */
16876
+ proto.gateway.web.v1.BurnRateMeasures.prototype.toObject = function(opt_includeInstance) {
16877
+ return proto.gateway.web.v1.BurnRateMeasures.toObject(opt_includeInstance, this);
16878
+ };
16879
+
16880
+
16881
+ /**
16882
+ * Static version of the {@see toObject} method.
16883
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16884
+ * the JSPB instance for transitional soy proto support:
16885
+ * http://goto/soy-param-migration
16886
+ * @param {!proto.gateway.web.v1.BurnRateMeasures} msg The msg instance to transform.
16887
+ * @return {!Object}
16888
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16889
+ */
16890
+ proto.gateway.web.v1.BurnRateMeasures.toObject = function(includeInstance, msg) {
16891
+ var f, obj = {
16892
+ usdPerHour: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
16893
+ tokensPerMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
16894
+ modelCalls: jspb.Message.getFieldWithDefault(msg, 3, 0),
16895
+ costUnavailableCount: jspb.Message.getFieldWithDefault(msg, 4, 0),
16896
+ usageUnavailableCount: jspb.Message.getFieldWithDefault(msg, 5, 0)
16897
+ };
16898
+
16899
+ if (includeInstance) {
16900
+ obj.$jspbMessageInstance = msg;
16901
+ }
16902
+ return obj;
16903
+ };
16904
+ }
16905
+
16906
+
16907
+ /**
16908
+ * Deserializes binary data (in protobuf wire format).
16909
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
16910
+ * @return {!proto.gateway.web.v1.BurnRateMeasures}
16911
+ */
16912
+ proto.gateway.web.v1.BurnRateMeasures.deserializeBinary = function(bytes) {
16913
+ var reader = new jspb.BinaryReader(bytes);
16914
+ var msg = new proto.gateway.web.v1.BurnRateMeasures;
16915
+ return proto.gateway.web.v1.BurnRateMeasures.deserializeBinaryFromReader(msg, reader);
16916
+ };
16917
+
16918
+
16919
+ /**
16920
+ * Deserializes binary data (in protobuf wire format) from the
16921
+ * given reader into the given message object.
16922
+ * @param {!proto.gateway.web.v1.BurnRateMeasures} msg The message object to deserialize into.
16923
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16924
+ * @return {!proto.gateway.web.v1.BurnRateMeasures}
16925
+ */
16926
+ proto.gateway.web.v1.BurnRateMeasures.deserializeBinaryFromReader = function(msg, reader) {
16927
+ while (reader.nextField()) {
16928
+ if (reader.isEndGroup()) {
16929
+ break;
16930
+ }
16931
+ var field = reader.getFieldNumber();
16932
+ switch (field) {
16933
+ case 1:
16934
+ var value = /** @type {number} */ (reader.readDouble());
16935
+ msg.setUsdPerHour(value);
16936
+ break;
16937
+ case 2:
16938
+ var value = /** @type {number} */ (reader.readDouble());
16939
+ msg.setTokensPerMin(value);
16940
+ break;
16941
+ case 3:
16942
+ var value = /** @type {number} */ (reader.readUint64());
16943
+ msg.setModelCalls(value);
16944
+ break;
16945
+ case 4:
16946
+ var value = /** @type {number} */ (reader.readUint64());
16947
+ msg.setCostUnavailableCount(value);
16948
+ break;
16949
+ case 5:
16950
+ var value = /** @type {number} */ (reader.readUint64());
16951
+ msg.setUsageUnavailableCount(value);
16952
+ break;
16953
+ default:
16954
+ reader.skipField();
16955
+ break;
16956
+ }
16957
+ }
16958
+ return msg;
16959
+ };
16960
+
16961
+
16962
+ /**
16963
+ * Serializes the message to binary data (in protobuf wire format).
16964
+ * @return {!Uint8Array}
16965
+ */
16966
+ proto.gateway.web.v1.BurnRateMeasures.prototype.serializeBinary = function() {
16967
+ var writer = new jspb.BinaryWriter();
16968
+ proto.gateway.web.v1.BurnRateMeasures.serializeBinaryToWriter(this, writer);
16969
+ return writer.getResultBuffer();
16970
+ };
16971
+
16972
+
16973
+ /**
16974
+ * Serializes the given message to binary data (in protobuf wire
16975
+ * format), writing to the given BinaryWriter.
16976
+ * @param {!proto.gateway.web.v1.BurnRateMeasures} message
16977
+ * @param {!jspb.BinaryWriter} writer
16978
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16979
+ */
16980
+ proto.gateway.web.v1.BurnRateMeasures.serializeBinaryToWriter = function(message, writer) {
16981
+ var f = undefined;
16982
+ f = message.getUsdPerHour();
16983
+ if (f !== 0.0) {
16984
+ writer.writeDouble(
16985
+ 1,
16986
+ f
16987
+ );
16988
+ }
16989
+ f = message.getTokensPerMin();
16990
+ if (f !== 0.0) {
16991
+ writer.writeDouble(
16992
+ 2,
16993
+ f
16994
+ );
16995
+ }
16996
+ f = message.getModelCalls();
16997
+ if (f !== 0) {
16998
+ writer.writeUint64(
16999
+ 3,
17000
+ f
17001
+ );
17002
+ }
17003
+ f = message.getCostUnavailableCount();
17004
+ if (f !== 0) {
17005
+ writer.writeUint64(
17006
+ 4,
17007
+ f
17008
+ );
17009
+ }
17010
+ f = message.getUsageUnavailableCount();
17011
+ if (f !== 0) {
17012
+ writer.writeUint64(
17013
+ 5,
17014
+ f
17015
+ );
17016
+ }
17017
+ };
17018
+
17019
+
17020
+ /**
17021
+ * optional double usd_per_hour = 1;
17022
+ * @return {number}
17023
+ */
17024
+ proto.gateway.web.v1.BurnRateMeasures.prototype.getUsdPerHour = function() {
17025
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
17026
+ };
17027
+
17028
+
17029
+ /**
17030
+ * @param {number} value
17031
+ * @return {!proto.gateway.web.v1.BurnRateMeasures} returns this
17032
+ */
17033
+ proto.gateway.web.v1.BurnRateMeasures.prototype.setUsdPerHour = function(value) {
17034
+ return jspb.Message.setProto3FloatField(this, 1, value);
17035
+ };
17036
+
17037
+
17038
+ /**
17039
+ * optional double tokens_per_min = 2;
17040
+ * @return {number}
17041
+ */
17042
+ proto.gateway.web.v1.BurnRateMeasures.prototype.getTokensPerMin = function() {
17043
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
17044
+ };
17045
+
17046
+
17047
+ /**
17048
+ * @param {number} value
17049
+ * @return {!proto.gateway.web.v1.BurnRateMeasures} returns this
17050
+ */
17051
+ proto.gateway.web.v1.BurnRateMeasures.prototype.setTokensPerMin = function(value) {
17052
+ return jspb.Message.setProto3FloatField(this, 2, value);
17053
+ };
17054
+
17055
+
17056
+ /**
17057
+ * optional uint64 model_calls = 3;
17058
+ * @return {number}
17059
+ */
17060
+ proto.gateway.web.v1.BurnRateMeasures.prototype.getModelCalls = function() {
17061
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
17062
+ };
17063
+
17064
+
17065
+ /**
17066
+ * @param {number} value
17067
+ * @return {!proto.gateway.web.v1.BurnRateMeasures} returns this
17068
+ */
17069
+ proto.gateway.web.v1.BurnRateMeasures.prototype.setModelCalls = function(value) {
17070
+ return jspb.Message.setProto3IntField(this, 3, value);
17071
+ };
17072
+
17073
+
17074
+ /**
17075
+ * optional uint64 cost_unavailable_count = 4;
17076
+ * @return {number}
17077
+ */
17078
+ proto.gateway.web.v1.BurnRateMeasures.prototype.getCostUnavailableCount = function() {
17079
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
17080
+ };
17081
+
17082
+
17083
+ /**
17084
+ * @param {number} value
17085
+ * @return {!proto.gateway.web.v1.BurnRateMeasures} returns this
17086
+ */
17087
+ proto.gateway.web.v1.BurnRateMeasures.prototype.setCostUnavailableCount = function(value) {
17088
+ return jspb.Message.setProto3IntField(this, 4, value);
17089
+ };
17090
+
17091
+
17092
+ /**
17093
+ * optional uint64 usage_unavailable_count = 5;
17094
+ * @return {number}
17095
+ */
17096
+ proto.gateway.web.v1.BurnRateMeasures.prototype.getUsageUnavailableCount = function() {
17097
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
17098
+ };
17099
+
17100
+
17101
+ /**
17102
+ * @param {number} value
17103
+ * @return {!proto.gateway.web.v1.BurnRateMeasures} returns this
17104
+ */
17105
+ proto.gateway.web.v1.BurnRateMeasures.prototype.setUsageUnavailableCount = function(value) {
17106
+ return jspb.Message.setProto3IntField(this, 5, value);
17107
+ };
17108
+
17109
+
17110
+
17111
+
17112
+
15784
17113
  if (jspb.Message.GENERATE_TO_OBJECT) {
15785
17114
  /**
15786
17115
  * Creates an object representation of this proto.