@miradorlabs/web-grpc 2.57.0 → 2.58.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.
|
@@ -47,6 +47,9 @@ goog.exportSymbol('proto.gateway.web.v1.AISessionFilter', null, global);
|
|
|
47
47
|
goog.exportSymbol('proto.gateway.web.v1.AISessionSummary', null, global);
|
|
48
48
|
goog.exportSymbol('proto.gateway.web.v1.AITokenActivityDimension', null, global);
|
|
49
49
|
goog.exportSymbol('proto.gateway.web.v1.AITokenUsage', null, global);
|
|
50
|
+
goog.exportSymbol('proto.gateway.web.v1.ActivityRhythm', null, global);
|
|
51
|
+
goog.exportSymbol('proto.gateway.web.v1.ActivityRhythmBucket', null, global);
|
|
52
|
+
goog.exportSymbol('proto.gateway.web.v1.ActivityRhythmRequest', null, global);
|
|
50
53
|
goog.exportSymbol('proto.gateway.web.v1.DailyActivity', null, global);
|
|
51
54
|
goog.exportSymbol('proto.gateway.web.v1.DailyActivityDay', null, global);
|
|
52
55
|
goog.exportSymbol('proto.gateway.web.v1.DailyActivityMeasures', null, global);
|
|
@@ -1135,6 +1138,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1135
1138
|
*/
|
|
1136
1139
|
proto.gateway.web.v1.DailyActivityMeasures.displayName = 'proto.gateway.web.v1.DailyActivityMeasures';
|
|
1137
1140
|
}
|
|
1141
|
+
/**
|
|
1142
|
+
* Generated by JsPbCodeGenerator.
|
|
1143
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1144
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1145
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1146
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1147
|
+
* valid.
|
|
1148
|
+
* @extends {jspb.Message}
|
|
1149
|
+
* @constructor
|
|
1150
|
+
*/
|
|
1151
|
+
proto.gateway.web.v1.ActivityRhythmRequest = function(opt_data) {
|
|
1152
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1153
|
+
};
|
|
1154
|
+
goog.inherits(proto.gateway.web.v1.ActivityRhythmRequest, jspb.Message);
|
|
1155
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1156
|
+
/**
|
|
1157
|
+
* @public
|
|
1158
|
+
* @override
|
|
1159
|
+
*/
|
|
1160
|
+
proto.gateway.web.v1.ActivityRhythmRequest.displayName = 'proto.gateway.web.v1.ActivityRhythmRequest';
|
|
1161
|
+
}
|
|
1162
|
+
/**
|
|
1163
|
+
* Generated by JsPbCodeGenerator.
|
|
1164
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1165
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1166
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1167
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1168
|
+
* valid.
|
|
1169
|
+
* @extends {jspb.Message}
|
|
1170
|
+
* @constructor
|
|
1171
|
+
*/
|
|
1172
|
+
proto.gateway.web.v1.ActivityRhythm = function(opt_data) {
|
|
1173
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ActivityRhythm.repeatedFields_, null);
|
|
1174
|
+
};
|
|
1175
|
+
goog.inherits(proto.gateway.web.v1.ActivityRhythm, jspb.Message);
|
|
1176
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1177
|
+
/**
|
|
1178
|
+
* @public
|
|
1179
|
+
* @override
|
|
1180
|
+
*/
|
|
1181
|
+
proto.gateway.web.v1.ActivityRhythm.displayName = 'proto.gateway.web.v1.ActivityRhythm';
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* Generated by JsPbCodeGenerator.
|
|
1185
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1186
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1187
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1188
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1189
|
+
* valid.
|
|
1190
|
+
* @extends {jspb.Message}
|
|
1191
|
+
* @constructor
|
|
1192
|
+
*/
|
|
1193
|
+
proto.gateway.web.v1.ActivityRhythmBucket = function(opt_data) {
|
|
1194
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1195
|
+
};
|
|
1196
|
+
goog.inherits(proto.gateway.web.v1.ActivityRhythmBucket, jspb.Message);
|
|
1197
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1198
|
+
/**
|
|
1199
|
+
* @public
|
|
1200
|
+
* @override
|
|
1201
|
+
*/
|
|
1202
|
+
proto.gateway.web.v1.ActivityRhythmBucket.displayName = 'proto.gateway.web.v1.ActivityRhythmBucket';
|
|
1203
|
+
}
|
|
1138
1204
|
/**
|
|
1139
1205
|
* Generated by JsPbCodeGenerator.
|
|
1140
1206
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -16930,6 +16996,1020 @@ proto.gateway.web.v1.DailyActivityMeasures.prototype.setBranchesCreated = functi
|
|
|
16930
16996
|
|
|
16931
16997
|
|
|
16932
16998
|
|
|
16999
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
17000
|
+
/**
|
|
17001
|
+
* Creates an object representation of this proto.
|
|
17002
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
17003
|
+
* Optional fields that are not set will be set to undefined.
|
|
17004
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
17005
|
+
* For the list of reserved names please see:
|
|
17006
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
17007
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
17008
|
+
* JSPB instance for transitional soy proto support:
|
|
17009
|
+
* http://goto/soy-param-migration
|
|
17010
|
+
* @return {!Object}
|
|
17011
|
+
*/
|
|
17012
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.toObject = function(opt_includeInstance) {
|
|
17013
|
+
return proto.gateway.web.v1.ActivityRhythmRequest.toObject(opt_includeInstance, this);
|
|
17014
|
+
};
|
|
17015
|
+
|
|
17016
|
+
|
|
17017
|
+
/**
|
|
17018
|
+
* Static version of the {@see toObject} method.
|
|
17019
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
17020
|
+
* the JSPB instance for transitional soy proto support:
|
|
17021
|
+
* http://goto/soy-param-migration
|
|
17022
|
+
* @param {!proto.gateway.web.v1.ActivityRhythmRequest} msg The msg instance to transform.
|
|
17023
|
+
* @return {!Object}
|
|
17024
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17025
|
+
*/
|
|
17026
|
+
proto.gateway.web.v1.ActivityRhythmRequest.toObject = function(includeInstance, msg) {
|
|
17027
|
+
var f, obj = {
|
|
17028
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
17029
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
17030
|
+
timeWindow: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
17031
|
+
timeZone: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
17032
|
+
};
|
|
17033
|
+
|
|
17034
|
+
if (includeInstance) {
|
|
17035
|
+
obj.$jspbMessageInstance = msg;
|
|
17036
|
+
}
|
|
17037
|
+
return obj;
|
|
17038
|
+
};
|
|
17039
|
+
}
|
|
17040
|
+
|
|
17041
|
+
|
|
17042
|
+
/**
|
|
17043
|
+
* Deserializes binary data (in protobuf wire format).
|
|
17044
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
17045
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmRequest}
|
|
17046
|
+
*/
|
|
17047
|
+
proto.gateway.web.v1.ActivityRhythmRequest.deserializeBinary = function(bytes) {
|
|
17048
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
17049
|
+
var msg = new proto.gateway.web.v1.ActivityRhythmRequest;
|
|
17050
|
+
return proto.gateway.web.v1.ActivityRhythmRequest.deserializeBinaryFromReader(msg, reader);
|
|
17051
|
+
};
|
|
17052
|
+
|
|
17053
|
+
|
|
17054
|
+
/**
|
|
17055
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
17056
|
+
* given reader into the given message object.
|
|
17057
|
+
* @param {!proto.gateway.web.v1.ActivityRhythmRequest} msg The message object to deserialize into.
|
|
17058
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
17059
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmRequest}
|
|
17060
|
+
*/
|
|
17061
|
+
proto.gateway.web.v1.ActivityRhythmRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
17062
|
+
while (reader.nextField()) {
|
|
17063
|
+
if (reader.isEndGroup()) {
|
|
17064
|
+
break;
|
|
17065
|
+
}
|
|
17066
|
+
var field = reader.getFieldNumber();
|
|
17067
|
+
switch (field) {
|
|
17068
|
+
case 1:
|
|
17069
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
17070
|
+
msg.setOrganizationId(value);
|
|
17071
|
+
break;
|
|
17072
|
+
case 2:
|
|
17073
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
17074
|
+
msg.setProjectId(value);
|
|
17075
|
+
break;
|
|
17076
|
+
case 3:
|
|
17077
|
+
var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (reader.readEnum());
|
|
17078
|
+
msg.setTimeWindow(value);
|
|
17079
|
+
break;
|
|
17080
|
+
case 4:
|
|
17081
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
17082
|
+
msg.setTimeZone(value);
|
|
17083
|
+
break;
|
|
17084
|
+
default:
|
|
17085
|
+
reader.skipField();
|
|
17086
|
+
break;
|
|
17087
|
+
}
|
|
17088
|
+
}
|
|
17089
|
+
return msg;
|
|
17090
|
+
};
|
|
17091
|
+
|
|
17092
|
+
|
|
17093
|
+
/**
|
|
17094
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
17095
|
+
* @return {!Uint8Array}
|
|
17096
|
+
*/
|
|
17097
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.serializeBinary = function() {
|
|
17098
|
+
var writer = new jspb.BinaryWriter();
|
|
17099
|
+
proto.gateway.web.v1.ActivityRhythmRequest.serializeBinaryToWriter(this, writer);
|
|
17100
|
+
return writer.getResultBuffer();
|
|
17101
|
+
};
|
|
17102
|
+
|
|
17103
|
+
|
|
17104
|
+
/**
|
|
17105
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
17106
|
+
* format), writing to the given BinaryWriter.
|
|
17107
|
+
* @param {!proto.gateway.web.v1.ActivityRhythmRequest} message
|
|
17108
|
+
* @param {!jspb.BinaryWriter} writer
|
|
17109
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17110
|
+
*/
|
|
17111
|
+
proto.gateway.web.v1.ActivityRhythmRequest.serializeBinaryToWriter = function(message, writer) {
|
|
17112
|
+
var f = undefined;
|
|
17113
|
+
f = message.getOrganizationId();
|
|
17114
|
+
if (f.length > 0) {
|
|
17115
|
+
writer.writeString(
|
|
17116
|
+
1,
|
|
17117
|
+
f
|
|
17118
|
+
);
|
|
17119
|
+
}
|
|
17120
|
+
f = message.getProjectId();
|
|
17121
|
+
if (f.length > 0) {
|
|
17122
|
+
writer.writeString(
|
|
17123
|
+
2,
|
|
17124
|
+
f
|
|
17125
|
+
);
|
|
17126
|
+
}
|
|
17127
|
+
f = message.getTimeWindow();
|
|
17128
|
+
if (f !== 0.0) {
|
|
17129
|
+
writer.writeEnum(
|
|
17130
|
+
3,
|
|
17131
|
+
f
|
|
17132
|
+
);
|
|
17133
|
+
}
|
|
17134
|
+
f = message.getTimeZone();
|
|
17135
|
+
if (f.length > 0) {
|
|
17136
|
+
writer.writeString(
|
|
17137
|
+
4,
|
|
17138
|
+
f
|
|
17139
|
+
);
|
|
17140
|
+
}
|
|
17141
|
+
};
|
|
17142
|
+
|
|
17143
|
+
|
|
17144
|
+
/**
|
|
17145
|
+
* optional string organization_id = 1;
|
|
17146
|
+
* @return {string}
|
|
17147
|
+
*/
|
|
17148
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.getOrganizationId = function() {
|
|
17149
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
17150
|
+
};
|
|
17151
|
+
|
|
17152
|
+
|
|
17153
|
+
/**
|
|
17154
|
+
* @param {string} value
|
|
17155
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmRequest} returns this
|
|
17156
|
+
*/
|
|
17157
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.setOrganizationId = function(value) {
|
|
17158
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
17159
|
+
};
|
|
17160
|
+
|
|
17161
|
+
|
|
17162
|
+
/**
|
|
17163
|
+
* optional string project_id = 2;
|
|
17164
|
+
* @return {string}
|
|
17165
|
+
*/
|
|
17166
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.getProjectId = function() {
|
|
17167
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
17168
|
+
};
|
|
17169
|
+
|
|
17170
|
+
|
|
17171
|
+
/**
|
|
17172
|
+
* @param {string} value
|
|
17173
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmRequest} returns this
|
|
17174
|
+
*/
|
|
17175
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.setProjectId = function(value) {
|
|
17176
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
17177
|
+
};
|
|
17178
|
+
|
|
17179
|
+
|
|
17180
|
+
/**
|
|
17181
|
+
* optional AnalyticsTimeWindow time_window = 3;
|
|
17182
|
+
* @return {!proto.gateway.web.v1.AnalyticsTimeWindow}
|
|
17183
|
+
*/
|
|
17184
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.getTimeWindow = function() {
|
|
17185
|
+
return /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
17186
|
+
};
|
|
17187
|
+
|
|
17188
|
+
|
|
17189
|
+
/**
|
|
17190
|
+
* @param {!proto.gateway.web.v1.AnalyticsTimeWindow} value
|
|
17191
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmRequest} returns this
|
|
17192
|
+
*/
|
|
17193
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.setTimeWindow = function(value) {
|
|
17194
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
17195
|
+
};
|
|
17196
|
+
|
|
17197
|
+
|
|
17198
|
+
/**
|
|
17199
|
+
* optional string time_zone = 4;
|
|
17200
|
+
* @return {string}
|
|
17201
|
+
*/
|
|
17202
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.getTimeZone = function() {
|
|
17203
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
17204
|
+
};
|
|
17205
|
+
|
|
17206
|
+
|
|
17207
|
+
/**
|
|
17208
|
+
* @param {string} value
|
|
17209
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmRequest} returns this
|
|
17210
|
+
*/
|
|
17211
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.setTimeZone = function(value) {
|
|
17212
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
17213
|
+
};
|
|
17214
|
+
|
|
17215
|
+
|
|
17216
|
+
|
|
17217
|
+
/**
|
|
17218
|
+
* List of repeated fields within this message type.
|
|
17219
|
+
* @private {!Array<number>}
|
|
17220
|
+
* @const
|
|
17221
|
+
*/
|
|
17222
|
+
proto.gateway.web.v1.ActivityRhythm.repeatedFields_ = [1];
|
|
17223
|
+
|
|
17224
|
+
|
|
17225
|
+
|
|
17226
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
17227
|
+
/**
|
|
17228
|
+
* Creates an object representation of this proto.
|
|
17229
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
17230
|
+
* Optional fields that are not set will be set to undefined.
|
|
17231
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
17232
|
+
* For the list of reserved names please see:
|
|
17233
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
17234
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
17235
|
+
* JSPB instance for transitional soy proto support:
|
|
17236
|
+
* http://goto/soy-param-migration
|
|
17237
|
+
* @return {!Object}
|
|
17238
|
+
*/
|
|
17239
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.toObject = function(opt_includeInstance) {
|
|
17240
|
+
return proto.gateway.web.v1.ActivityRhythm.toObject(opt_includeInstance, this);
|
|
17241
|
+
};
|
|
17242
|
+
|
|
17243
|
+
|
|
17244
|
+
/**
|
|
17245
|
+
* Static version of the {@see toObject} method.
|
|
17246
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
17247
|
+
* the JSPB instance for transitional soy proto support:
|
|
17248
|
+
* http://goto/soy-param-migration
|
|
17249
|
+
* @param {!proto.gateway.web.v1.ActivityRhythm} msg The msg instance to transform.
|
|
17250
|
+
* @return {!Object}
|
|
17251
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17252
|
+
*/
|
|
17253
|
+
proto.gateway.web.v1.ActivityRhythm.toObject = function(includeInstance, msg) {
|
|
17254
|
+
var f, obj = {
|
|
17255
|
+
bucketsList: jspb.Message.toObjectList(msg.getBucketsList(),
|
|
17256
|
+
proto.gateway.web.v1.ActivityRhythmBucket.toObject, includeInstance),
|
|
17257
|
+
windowStart: (f = msg.getWindowStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
17258
|
+
windowEnd: (f = msg.getWindowEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
17259
|
+
asOf: (f = msg.getAsOf()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
17260
|
+
timeZone: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
17261
|
+
};
|
|
17262
|
+
|
|
17263
|
+
if (includeInstance) {
|
|
17264
|
+
obj.$jspbMessageInstance = msg;
|
|
17265
|
+
}
|
|
17266
|
+
return obj;
|
|
17267
|
+
};
|
|
17268
|
+
}
|
|
17269
|
+
|
|
17270
|
+
|
|
17271
|
+
/**
|
|
17272
|
+
* Deserializes binary data (in protobuf wire format).
|
|
17273
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
17274
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm}
|
|
17275
|
+
*/
|
|
17276
|
+
proto.gateway.web.v1.ActivityRhythm.deserializeBinary = function(bytes) {
|
|
17277
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
17278
|
+
var msg = new proto.gateway.web.v1.ActivityRhythm;
|
|
17279
|
+
return proto.gateway.web.v1.ActivityRhythm.deserializeBinaryFromReader(msg, reader);
|
|
17280
|
+
};
|
|
17281
|
+
|
|
17282
|
+
|
|
17283
|
+
/**
|
|
17284
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
17285
|
+
* given reader into the given message object.
|
|
17286
|
+
* @param {!proto.gateway.web.v1.ActivityRhythm} msg The message object to deserialize into.
|
|
17287
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
17288
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm}
|
|
17289
|
+
*/
|
|
17290
|
+
proto.gateway.web.v1.ActivityRhythm.deserializeBinaryFromReader = function(msg, reader) {
|
|
17291
|
+
while (reader.nextField()) {
|
|
17292
|
+
if (reader.isEndGroup()) {
|
|
17293
|
+
break;
|
|
17294
|
+
}
|
|
17295
|
+
var field = reader.getFieldNumber();
|
|
17296
|
+
switch (field) {
|
|
17297
|
+
case 1:
|
|
17298
|
+
var value = new proto.gateway.web.v1.ActivityRhythmBucket;
|
|
17299
|
+
reader.readMessage(value,proto.gateway.web.v1.ActivityRhythmBucket.deserializeBinaryFromReader);
|
|
17300
|
+
msg.addBuckets(value);
|
|
17301
|
+
break;
|
|
17302
|
+
case 2:
|
|
17303
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
17304
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
17305
|
+
msg.setWindowStart(value);
|
|
17306
|
+
break;
|
|
17307
|
+
case 3:
|
|
17308
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
17309
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
17310
|
+
msg.setWindowEnd(value);
|
|
17311
|
+
break;
|
|
17312
|
+
case 4:
|
|
17313
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
17314
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
17315
|
+
msg.setAsOf(value);
|
|
17316
|
+
break;
|
|
17317
|
+
case 5:
|
|
17318
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
17319
|
+
msg.setTimeZone(value);
|
|
17320
|
+
break;
|
|
17321
|
+
default:
|
|
17322
|
+
reader.skipField();
|
|
17323
|
+
break;
|
|
17324
|
+
}
|
|
17325
|
+
}
|
|
17326
|
+
return msg;
|
|
17327
|
+
};
|
|
17328
|
+
|
|
17329
|
+
|
|
17330
|
+
/**
|
|
17331
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
17332
|
+
* @return {!Uint8Array}
|
|
17333
|
+
*/
|
|
17334
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.serializeBinary = function() {
|
|
17335
|
+
var writer = new jspb.BinaryWriter();
|
|
17336
|
+
proto.gateway.web.v1.ActivityRhythm.serializeBinaryToWriter(this, writer);
|
|
17337
|
+
return writer.getResultBuffer();
|
|
17338
|
+
};
|
|
17339
|
+
|
|
17340
|
+
|
|
17341
|
+
/**
|
|
17342
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
17343
|
+
* format), writing to the given BinaryWriter.
|
|
17344
|
+
* @param {!proto.gateway.web.v1.ActivityRhythm} message
|
|
17345
|
+
* @param {!jspb.BinaryWriter} writer
|
|
17346
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17347
|
+
*/
|
|
17348
|
+
proto.gateway.web.v1.ActivityRhythm.serializeBinaryToWriter = function(message, writer) {
|
|
17349
|
+
var f = undefined;
|
|
17350
|
+
f = message.getBucketsList();
|
|
17351
|
+
if (f.length > 0) {
|
|
17352
|
+
writer.writeRepeatedMessage(
|
|
17353
|
+
1,
|
|
17354
|
+
f,
|
|
17355
|
+
proto.gateway.web.v1.ActivityRhythmBucket.serializeBinaryToWriter
|
|
17356
|
+
);
|
|
17357
|
+
}
|
|
17358
|
+
f = message.getWindowStart();
|
|
17359
|
+
if (f != null) {
|
|
17360
|
+
writer.writeMessage(
|
|
17361
|
+
2,
|
|
17362
|
+
f,
|
|
17363
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
17364
|
+
);
|
|
17365
|
+
}
|
|
17366
|
+
f = message.getWindowEnd();
|
|
17367
|
+
if (f != null) {
|
|
17368
|
+
writer.writeMessage(
|
|
17369
|
+
3,
|
|
17370
|
+
f,
|
|
17371
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
17372
|
+
);
|
|
17373
|
+
}
|
|
17374
|
+
f = message.getAsOf();
|
|
17375
|
+
if (f != null) {
|
|
17376
|
+
writer.writeMessage(
|
|
17377
|
+
4,
|
|
17378
|
+
f,
|
|
17379
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
17380
|
+
);
|
|
17381
|
+
}
|
|
17382
|
+
f = message.getTimeZone();
|
|
17383
|
+
if (f.length > 0) {
|
|
17384
|
+
writer.writeString(
|
|
17385
|
+
5,
|
|
17386
|
+
f
|
|
17387
|
+
);
|
|
17388
|
+
}
|
|
17389
|
+
};
|
|
17390
|
+
|
|
17391
|
+
|
|
17392
|
+
/**
|
|
17393
|
+
* repeated ActivityRhythmBucket buckets = 1;
|
|
17394
|
+
* @return {!Array<!proto.gateway.web.v1.ActivityRhythmBucket>}
|
|
17395
|
+
*/
|
|
17396
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.getBucketsList = function() {
|
|
17397
|
+
return /** @type{!Array<!proto.gateway.web.v1.ActivityRhythmBucket>} */ (
|
|
17398
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ActivityRhythmBucket, 1));
|
|
17399
|
+
};
|
|
17400
|
+
|
|
17401
|
+
|
|
17402
|
+
/**
|
|
17403
|
+
* @param {!Array<!proto.gateway.web.v1.ActivityRhythmBucket>} value
|
|
17404
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
17405
|
+
*/
|
|
17406
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.setBucketsList = function(value) {
|
|
17407
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
17408
|
+
};
|
|
17409
|
+
|
|
17410
|
+
|
|
17411
|
+
/**
|
|
17412
|
+
* @param {!proto.gateway.web.v1.ActivityRhythmBucket=} opt_value
|
|
17413
|
+
* @param {number=} opt_index
|
|
17414
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket}
|
|
17415
|
+
*/
|
|
17416
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.addBuckets = function(opt_value, opt_index) {
|
|
17417
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.ActivityRhythmBucket, opt_index);
|
|
17418
|
+
};
|
|
17419
|
+
|
|
17420
|
+
|
|
17421
|
+
/**
|
|
17422
|
+
* Clears the list making it empty but non-null.
|
|
17423
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
17424
|
+
*/
|
|
17425
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.clearBucketsList = function() {
|
|
17426
|
+
return this.setBucketsList([]);
|
|
17427
|
+
};
|
|
17428
|
+
|
|
17429
|
+
|
|
17430
|
+
/**
|
|
17431
|
+
* optional google.protobuf.Timestamp window_start = 2;
|
|
17432
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
17433
|
+
*/
|
|
17434
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.getWindowStart = function() {
|
|
17435
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
17436
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
17437
|
+
};
|
|
17438
|
+
|
|
17439
|
+
|
|
17440
|
+
/**
|
|
17441
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
17442
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
17443
|
+
*/
|
|
17444
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.setWindowStart = function(value) {
|
|
17445
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
17446
|
+
};
|
|
17447
|
+
|
|
17448
|
+
|
|
17449
|
+
/**
|
|
17450
|
+
* Clears the message field making it undefined.
|
|
17451
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
17452
|
+
*/
|
|
17453
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.clearWindowStart = function() {
|
|
17454
|
+
return this.setWindowStart(undefined);
|
|
17455
|
+
};
|
|
17456
|
+
|
|
17457
|
+
|
|
17458
|
+
/**
|
|
17459
|
+
* Returns whether this field is set.
|
|
17460
|
+
* @return {boolean}
|
|
17461
|
+
*/
|
|
17462
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.hasWindowStart = function() {
|
|
17463
|
+
return jspb.Message.getField(this, 2) != null;
|
|
17464
|
+
};
|
|
17465
|
+
|
|
17466
|
+
|
|
17467
|
+
/**
|
|
17468
|
+
* optional google.protobuf.Timestamp window_end = 3;
|
|
17469
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
17470
|
+
*/
|
|
17471
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.getWindowEnd = function() {
|
|
17472
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
17473
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
17474
|
+
};
|
|
17475
|
+
|
|
17476
|
+
|
|
17477
|
+
/**
|
|
17478
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
17479
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
17480
|
+
*/
|
|
17481
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.setWindowEnd = function(value) {
|
|
17482
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
17483
|
+
};
|
|
17484
|
+
|
|
17485
|
+
|
|
17486
|
+
/**
|
|
17487
|
+
* Clears the message field making it undefined.
|
|
17488
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
17489
|
+
*/
|
|
17490
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.clearWindowEnd = function() {
|
|
17491
|
+
return this.setWindowEnd(undefined);
|
|
17492
|
+
};
|
|
17493
|
+
|
|
17494
|
+
|
|
17495
|
+
/**
|
|
17496
|
+
* Returns whether this field is set.
|
|
17497
|
+
* @return {boolean}
|
|
17498
|
+
*/
|
|
17499
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.hasWindowEnd = function() {
|
|
17500
|
+
return jspb.Message.getField(this, 3) != null;
|
|
17501
|
+
};
|
|
17502
|
+
|
|
17503
|
+
|
|
17504
|
+
/**
|
|
17505
|
+
* optional google.protobuf.Timestamp as_of = 4;
|
|
17506
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
17507
|
+
*/
|
|
17508
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.getAsOf = function() {
|
|
17509
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
17510
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
17511
|
+
};
|
|
17512
|
+
|
|
17513
|
+
|
|
17514
|
+
/**
|
|
17515
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
17516
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
17517
|
+
*/
|
|
17518
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.setAsOf = function(value) {
|
|
17519
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
17520
|
+
};
|
|
17521
|
+
|
|
17522
|
+
|
|
17523
|
+
/**
|
|
17524
|
+
* Clears the message field making it undefined.
|
|
17525
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
17526
|
+
*/
|
|
17527
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.clearAsOf = function() {
|
|
17528
|
+
return this.setAsOf(undefined);
|
|
17529
|
+
};
|
|
17530
|
+
|
|
17531
|
+
|
|
17532
|
+
/**
|
|
17533
|
+
* Returns whether this field is set.
|
|
17534
|
+
* @return {boolean}
|
|
17535
|
+
*/
|
|
17536
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.hasAsOf = function() {
|
|
17537
|
+
return jspb.Message.getField(this, 4) != null;
|
|
17538
|
+
};
|
|
17539
|
+
|
|
17540
|
+
|
|
17541
|
+
/**
|
|
17542
|
+
* optional string time_zone = 5;
|
|
17543
|
+
* @return {string}
|
|
17544
|
+
*/
|
|
17545
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.getTimeZone = function() {
|
|
17546
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
17547
|
+
};
|
|
17548
|
+
|
|
17549
|
+
|
|
17550
|
+
/**
|
|
17551
|
+
* @param {string} value
|
|
17552
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
17553
|
+
*/
|
|
17554
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.setTimeZone = function(value) {
|
|
17555
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
17556
|
+
};
|
|
17557
|
+
|
|
17558
|
+
|
|
17559
|
+
|
|
17560
|
+
|
|
17561
|
+
|
|
17562
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
17563
|
+
/**
|
|
17564
|
+
* Creates an object representation of this proto.
|
|
17565
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
17566
|
+
* Optional fields that are not set will be set to undefined.
|
|
17567
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
17568
|
+
* For the list of reserved names please see:
|
|
17569
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
17570
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
17571
|
+
* JSPB instance for transitional soy proto support:
|
|
17572
|
+
* http://goto/soy-param-migration
|
|
17573
|
+
* @return {!Object}
|
|
17574
|
+
*/
|
|
17575
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.toObject = function(opt_includeInstance) {
|
|
17576
|
+
return proto.gateway.web.v1.ActivityRhythmBucket.toObject(opt_includeInstance, this);
|
|
17577
|
+
};
|
|
17578
|
+
|
|
17579
|
+
|
|
17580
|
+
/**
|
|
17581
|
+
* Static version of the {@see toObject} method.
|
|
17582
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
17583
|
+
* the JSPB instance for transitional soy proto support:
|
|
17584
|
+
* http://goto/soy-param-migration
|
|
17585
|
+
* @param {!proto.gateway.web.v1.ActivityRhythmBucket} msg The msg instance to transform.
|
|
17586
|
+
* @return {!Object}
|
|
17587
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17588
|
+
*/
|
|
17589
|
+
proto.gateway.web.v1.ActivityRhythmBucket.toObject = function(includeInstance, msg) {
|
|
17590
|
+
var f, obj = {
|
|
17591
|
+
dayOfWeek: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
17592
|
+
hourOfDay: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
17593
|
+
eventCount: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
17594
|
+
modelUsage: (f = msg.getModelUsage()) && proto.gateway.web.v1.TokenActivityMeasures.toObject(includeInstance, f),
|
|
17595
|
+
usageUnavailableCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
17596
|
+
costUnavailableCount: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
17597
|
+
toolCalls: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
17598
|
+
userMessages: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
17599
|
+
sessions: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
17600
|
+
activeUsers: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
17601
|
+
topTool: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
17602
|
+
};
|
|
17603
|
+
|
|
17604
|
+
if (includeInstance) {
|
|
17605
|
+
obj.$jspbMessageInstance = msg;
|
|
17606
|
+
}
|
|
17607
|
+
return obj;
|
|
17608
|
+
};
|
|
17609
|
+
}
|
|
17610
|
+
|
|
17611
|
+
|
|
17612
|
+
/**
|
|
17613
|
+
* Deserializes binary data (in protobuf wire format).
|
|
17614
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
17615
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket}
|
|
17616
|
+
*/
|
|
17617
|
+
proto.gateway.web.v1.ActivityRhythmBucket.deserializeBinary = function(bytes) {
|
|
17618
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
17619
|
+
var msg = new proto.gateway.web.v1.ActivityRhythmBucket;
|
|
17620
|
+
return proto.gateway.web.v1.ActivityRhythmBucket.deserializeBinaryFromReader(msg, reader);
|
|
17621
|
+
};
|
|
17622
|
+
|
|
17623
|
+
|
|
17624
|
+
/**
|
|
17625
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
17626
|
+
* given reader into the given message object.
|
|
17627
|
+
* @param {!proto.gateway.web.v1.ActivityRhythmBucket} msg The message object to deserialize into.
|
|
17628
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
17629
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket}
|
|
17630
|
+
*/
|
|
17631
|
+
proto.gateway.web.v1.ActivityRhythmBucket.deserializeBinaryFromReader = function(msg, reader) {
|
|
17632
|
+
while (reader.nextField()) {
|
|
17633
|
+
if (reader.isEndGroup()) {
|
|
17634
|
+
break;
|
|
17635
|
+
}
|
|
17636
|
+
var field = reader.getFieldNumber();
|
|
17637
|
+
switch (field) {
|
|
17638
|
+
case 1:
|
|
17639
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
17640
|
+
msg.setDayOfWeek(value);
|
|
17641
|
+
break;
|
|
17642
|
+
case 2:
|
|
17643
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
17644
|
+
msg.setHourOfDay(value);
|
|
17645
|
+
break;
|
|
17646
|
+
case 3:
|
|
17647
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
17648
|
+
msg.setEventCount(value);
|
|
17649
|
+
break;
|
|
17650
|
+
case 4:
|
|
17651
|
+
var value = new proto.gateway.web.v1.TokenActivityMeasures;
|
|
17652
|
+
reader.readMessage(value,proto.gateway.web.v1.TokenActivityMeasures.deserializeBinaryFromReader);
|
|
17653
|
+
msg.setModelUsage(value);
|
|
17654
|
+
break;
|
|
17655
|
+
case 5:
|
|
17656
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
17657
|
+
msg.setUsageUnavailableCount(value);
|
|
17658
|
+
break;
|
|
17659
|
+
case 6:
|
|
17660
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
17661
|
+
msg.setCostUnavailableCount(value);
|
|
17662
|
+
break;
|
|
17663
|
+
case 7:
|
|
17664
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
17665
|
+
msg.setToolCalls(value);
|
|
17666
|
+
break;
|
|
17667
|
+
case 8:
|
|
17668
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
17669
|
+
msg.setUserMessages(value);
|
|
17670
|
+
break;
|
|
17671
|
+
case 9:
|
|
17672
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
17673
|
+
msg.setSessions(value);
|
|
17674
|
+
break;
|
|
17675
|
+
case 10:
|
|
17676
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
17677
|
+
msg.setActiveUsers(value);
|
|
17678
|
+
break;
|
|
17679
|
+
case 11:
|
|
17680
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
17681
|
+
msg.setTopTool(value);
|
|
17682
|
+
break;
|
|
17683
|
+
default:
|
|
17684
|
+
reader.skipField();
|
|
17685
|
+
break;
|
|
17686
|
+
}
|
|
17687
|
+
}
|
|
17688
|
+
return msg;
|
|
17689
|
+
};
|
|
17690
|
+
|
|
17691
|
+
|
|
17692
|
+
/**
|
|
17693
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
17694
|
+
* @return {!Uint8Array}
|
|
17695
|
+
*/
|
|
17696
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.serializeBinary = function() {
|
|
17697
|
+
var writer = new jspb.BinaryWriter();
|
|
17698
|
+
proto.gateway.web.v1.ActivityRhythmBucket.serializeBinaryToWriter(this, writer);
|
|
17699
|
+
return writer.getResultBuffer();
|
|
17700
|
+
};
|
|
17701
|
+
|
|
17702
|
+
|
|
17703
|
+
/**
|
|
17704
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
17705
|
+
* format), writing to the given BinaryWriter.
|
|
17706
|
+
* @param {!proto.gateway.web.v1.ActivityRhythmBucket} message
|
|
17707
|
+
* @param {!jspb.BinaryWriter} writer
|
|
17708
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17709
|
+
*/
|
|
17710
|
+
proto.gateway.web.v1.ActivityRhythmBucket.serializeBinaryToWriter = function(message, writer) {
|
|
17711
|
+
var f = undefined;
|
|
17712
|
+
f = message.getDayOfWeek();
|
|
17713
|
+
if (f !== 0) {
|
|
17714
|
+
writer.writeUint32(
|
|
17715
|
+
1,
|
|
17716
|
+
f
|
|
17717
|
+
);
|
|
17718
|
+
}
|
|
17719
|
+
f = message.getHourOfDay();
|
|
17720
|
+
if (f !== 0) {
|
|
17721
|
+
writer.writeUint32(
|
|
17722
|
+
2,
|
|
17723
|
+
f
|
|
17724
|
+
);
|
|
17725
|
+
}
|
|
17726
|
+
f = message.getEventCount();
|
|
17727
|
+
if (f !== 0) {
|
|
17728
|
+
writer.writeUint64(
|
|
17729
|
+
3,
|
|
17730
|
+
f
|
|
17731
|
+
);
|
|
17732
|
+
}
|
|
17733
|
+
f = message.getModelUsage();
|
|
17734
|
+
if (f != null) {
|
|
17735
|
+
writer.writeMessage(
|
|
17736
|
+
4,
|
|
17737
|
+
f,
|
|
17738
|
+
proto.gateway.web.v1.TokenActivityMeasures.serializeBinaryToWriter
|
|
17739
|
+
);
|
|
17740
|
+
}
|
|
17741
|
+
f = message.getUsageUnavailableCount();
|
|
17742
|
+
if (f !== 0) {
|
|
17743
|
+
writer.writeUint64(
|
|
17744
|
+
5,
|
|
17745
|
+
f
|
|
17746
|
+
);
|
|
17747
|
+
}
|
|
17748
|
+
f = message.getCostUnavailableCount();
|
|
17749
|
+
if (f !== 0) {
|
|
17750
|
+
writer.writeUint64(
|
|
17751
|
+
6,
|
|
17752
|
+
f
|
|
17753
|
+
);
|
|
17754
|
+
}
|
|
17755
|
+
f = message.getToolCalls();
|
|
17756
|
+
if (f !== 0) {
|
|
17757
|
+
writer.writeUint64(
|
|
17758
|
+
7,
|
|
17759
|
+
f
|
|
17760
|
+
);
|
|
17761
|
+
}
|
|
17762
|
+
f = message.getUserMessages();
|
|
17763
|
+
if (f !== 0) {
|
|
17764
|
+
writer.writeUint64(
|
|
17765
|
+
8,
|
|
17766
|
+
f
|
|
17767
|
+
);
|
|
17768
|
+
}
|
|
17769
|
+
f = message.getSessions();
|
|
17770
|
+
if (f !== 0) {
|
|
17771
|
+
writer.writeUint64(
|
|
17772
|
+
9,
|
|
17773
|
+
f
|
|
17774
|
+
);
|
|
17775
|
+
}
|
|
17776
|
+
f = message.getActiveUsers();
|
|
17777
|
+
if (f !== 0) {
|
|
17778
|
+
writer.writeUint64(
|
|
17779
|
+
10,
|
|
17780
|
+
f
|
|
17781
|
+
);
|
|
17782
|
+
}
|
|
17783
|
+
f = message.getTopTool();
|
|
17784
|
+
if (f.length > 0) {
|
|
17785
|
+
writer.writeString(
|
|
17786
|
+
11,
|
|
17787
|
+
f
|
|
17788
|
+
);
|
|
17789
|
+
}
|
|
17790
|
+
};
|
|
17791
|
+
|
|
17792
|
+
|
|
17793
|
+
/**
|
|
17794
|
+
* optional uint32 day_of_week = 1;
|
|
17795
|
+
* @return {number}
|
|
17796
|
+
*/
|
|
17797
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.getDayOfWeek = function() {
|
|
17798
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
17799
|
+
};
|
|
17800
|
+
|
|
17801
|
+
|
|
17802
|
+
/**
|
|
17803
|
+
* @param {number} value
|
|
17804
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket} returns this
|
|
17805
|
+
*/
|
|
17806
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.setDayOfWeek = function(value) {
|
|
17807
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
17808
|
+
};
|
|
17809
|
+
|
|
17810
|
+
|
|
17811
|
+
/**
|
|
17812
|
+
* optional uint32 hour_of_day = 2;
|
|
17813
|
+
* @return {number}
|
|
17814
|
+
*/
|
|
17815
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.getHourOfDay = function() {
|
|
17816
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
17817
|
+
};
|
|
17818
|
+
|
|
17819
|
+
|
|
17820
|
+
/**
|
|
17821
|
+
* @param {number} value
|
|
17822
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket} returns this
|
|
17823
|
+
*/
|
|
17824
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.setHourOfDay = function(value) {
|
|
17825
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
17826
|
+
};
|
|
17827
|
+
|
|
17828
|
+
|
|
17829
|
+
/**
|
|
17830
|
+
* optional uint64 event_count = 3;
|
|
17831
|
+
* @return {number}
|
|
17832
|
+
*/
|
|
17833
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.getEventCount = function() {
|
|
17834
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
17835
|
+
};
|
|
17836
|
+
|
|
17837
|
+
|
|
17838
|
+
/**
|
|
17839
|
+
* @param {number} value
|
|
17840
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket} returns this
|
|
17841
|
+
*/
|
|
17842
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.setEventCount = function(value) {
|
|
17843
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
17844
|
+
};
|
|
17845
|
+
|
|
17846
|
+
|
|
17847
|
+
/**
|
|
17848
|
+
* optional TokenActivityMeasures model_usage = 4;
|
|
17849
|
+
* @return {?proto.gateway.web.v1.TokenActivityMeasures}
|
|
17850
|
+
*/
|
|
17851
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.getModelUsage = function() {
|
|
17852
|
+
return /** @type{?proto.gateway.web.v1.TokenActivityMeasures} */ (
|
|
17853
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.TokenActivityMeasures, 4));
|
|
17854
|
+
};
|
|
17855
|
+
|
|
17856
|
+
|
|
17857
|
+
/**
|
|
17858
|
+
* @param {?proto.gateway.web.v1.TokenActivityMeasures|undefined} value
|
|
17859
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket} returns this
|
|
17860
|
+
*/
|
|
17861
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.setModelUsage = function(value) {
|
|
17862
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
17863
|
+
};
|
|
17864
|
+
|
|
17865
|
+
|
|
17866
|
+
/**
|
|
17867
|
+
* Clears the message field making it undefined.
|
|
17868
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket} returns this
|
|
17869
|
+
*/
|
|
17870
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.clearModelUsage = function() {
|
|
17871
|
+
return this.setModelUsage(undefined);
|
|
17872
|
+
};
|
|
17873
|
+
|
|
17874
|
+
|
|
17875
|
+
/**
|
|
17876
|
+
* Returns whether this field is set.
|
|
17877
|
+
* @return {boolean}
|
|
17878
|
+
*/
|
|
17879
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.hasModelUsage = function() {
|
|
17880
|
+
return jspb.Message.getField(this, 4) != null;
|
|
17881
|
+
};
|
|
17882
|
+
|
|
17883
|
+
|
|
17884
|
+
/**
|
|
17885
|
+
* optional uint64 usage_unavailable_count = 5;
|
|
17886
|
+
* @return {number}
|
|
17887
|
+
*/
|
|
17888
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.getUsageUnavailableCount = function() {
|
|
17889
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
17890
|
+
};
|
|
17891
|
+
|
|
17892
|
+
|
|
17893
|
+
/**
|
|
17894
|
+
* @param {number} value
|
|
17895
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket} returns this
|
|
17896
|
+
*/
|
|
17897
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.setUsageUnavailableCount = function(value) {
|
|
17898
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
17899
|
+
};
|
|
17900
|
+
|
|
17901
|
+
|
|
17902
|
+
/**
|
|
17903
|
+
* optional uint64 cost_unavailable_count = 6;
|
|
17904
|
+
* @return {number}
|
|
17905
|
+
*/
|
|
17906
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.getCostUnavailableCount = function() {
|
|
17907
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
17908
|
+
};
|
|
17909
|
+
|
|
17910
|
+
|
|
17911
|
+
/**
|
|
17912
|
+
* @param {number} value
|
|
17913
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket} returns this
|
|
17914
|
+
*/
|
|
17915
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.setCostUnavailableCount = function(value) {
|
|
17916
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
17917
|
+
};
|
|
17918
|
+
|
|
17919
|
+
|
|
17920
|
+
/**
|
|
17921
|
+
* optional uint64 tool_calls = 7;
|
|
17922
|
+
* @return {number}
|
|
17923
|
+
*/
|
|
17924
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.getToolCalls = function() {
|
|
17925
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
17926
|
+
};
|
|
17927
|
+
|
|
17928
|
+
|
|
17929
|
+
/**
|
|
17930
|
+
* @param {number} value
|
|
17931
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket} returns this
|
|
17932
|
+
*/
|
|
17933
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.setToolCalls = function(value) {
|
|
17934
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
17935
|
+
};
|
|
17936
|
+
|
|
17937
|
+
|
|
17938
|
+
/**
|
|
17939
|
+
* optional uint64 user_messages = 8;
|
|
17940
|
+
* @return {number}
|
|
17941
|
+
*/
|
|
17942
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.getUserMessages = function() {
|
|
17943
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
17944
|
+
};
|
|
17945
|
+
|
|
17946
|
+
|
|
17947
|
+
/**
|
|
17948
|
+
* @param {number} value
|
|
17949
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket} returns this
|
|
17950
|
+
*/
|
|
17951
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.setUserMessages = function(value) {
|
|
17952
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
17953
|
+
};
|
|
17954
|
+
|
|
17955
|
+
|
|
17956
|
+
/**
|
|
17957
|
+
* optional uint64 sessions = 9;
|
|
17958
|
+
* @return {number}
|
|
17959
|
+
*/
|
|
17960
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.getSessions = function() {
|
|
17961
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
17962
|
+
};
|
|
17963
|
+
|
|
17964
|
+
|
|
17965
|
+
/**
|
|
17966
|
+
* @param {number} value
|
|
17967
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket} returns this
|
|
17968
|
+
*/
|
|
17969
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.setSessions = function(value) {
|
|
17970
|
+
return jspb.Message.setProto3IntField(this, 9, value);
|
|
17971
|
+
};
|
|
17972
|
+
|
|
17973
|
+
|
|
17974
|
+
/**
|
|
17975
|
+
* optional uint64 active_users = 10;
|
|
17976
|
+
* @return {number}
|
|
17977
|
+
*/
|
|
17978
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.getActiveUsers = function() {
|
|
17979
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
17980
|
+
};
|
|
17981
|
+
|
|
17982
|
+
|
|
17983
|
+
/**
|
|
17984
|
+
* @param {number} value
|
|
17985
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket} returns this
|
|
17986
|
+
*/
|
|
17987
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.setActiveUsers = function(value) {
|
|
17988
|
+
return jspb.Message.setProto3IntField(this, 10, value);
|
|
17989
|
+
};
|
|
17990
|
+
|
|
17991
|
+
|
|
17992
|
+
/**
|
|
17993
|
+
* optional string top_tool = 11;
|
|
17994
|
+
* @return {string}
|
|
17995
|
+
*/
|
|
17996
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.getTopTool = function() {
|
|
17997
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
17998
|
+
};
|
|
17999
|
+
|
|
18000
|
+
|
|
18001
|
+
/**
|
|
18002
|
+
* @param {string} value
|
|
18003
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket} returns this
|
|
18004
|
+
*/
|
|
18005
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.setTopTool = function(value) {
|
|
18006
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
18007
|
+
};
|
|
18008
|
+
|
|
18009
|
+
|
|
18010
|
+
|
|
18011
|
+
|
|
18012
|
+
|
|
16933
18013
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
16934
18014
|
/**
|
|
16935
18015
|
* Creates an object representation of this proto.
|