@miradorlabs/web-grpc 3.21.0 → 3.23.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.
- package/package.json +1 -1
- package/proto/gateway/web/v1/admin_gateway.ts +219 -1
- package/proto/gateway/web/v1/admin_gateway_grpc_pb.js +34 -0
- package/proto/gateway/web/v1/admin_gateway_pb.js +458 -1
- package/proto/gateway/web/v1/ai_gateway.ts +320 -13
- package/proto/gateway/web/v1/ai_gateway_pb.js +547 -21
|
@@ -111,6 +111,7 @@ goog.exportSymbol('proto.gateway.web.v1.ProjectSummaries', null, global);
|
|
|
111
111
|
goog.exportSymbol('proto.gateway.web.v1.ProjectSummariesRequest', null, global);
|
|
112
112
|
goog.exportSymbol('proto.gateway.web.v1.ProjectSummary', null, global);
|
|
113
113
|
goog.exportSymbol('proto.gateway.web.v1.ProjectSummaryActor', null, global);
|
|
114
|
+
goog.exportSymbol('proto.gateway.web.v1.ProjectUsageBucket', null, global);
|
|
114
115
|
goog.exportSymbol('proto.gateway.web.v1.ResourceRanking', null, global);
|
|
115
116
|
goog.exportSymbol('proto.gateway.web.v1.ResourceRankingsRequest', null, global);
|
|
116
117
|
goog.exportSymbol('proto.gateway.web.v1.ResourceRankingsResponse', null, global);
|
|
@@ -1423,6 +1424,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1423
1424
|
*/
|
|
1424
1425
|
proto.gateway.web.v1.ProjectOverviewSlice.displayName = 'proto.gateway.web.v1.ProjectOverviewSlice';
|
|
1425
1426
|
}
|
|
1427
|
+
/**
|
|
1428
|
+
* Generated by JsPbCodeGenerator.
|
|
1429
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1430
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1431
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1432
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1433
|
+
* valid.
|
|
1434
|
+
* @extends {jspb.Message}
|
|
1435
|
+
* @constructor
|
|
1436
|
+
*/
|
|
1437
|
+
proto.gateway.web.v1.ProjectUsageBucket = function(opt_data) {
|
|
1438
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1439
|
+
};
|
|
1440
|
+
goog.inherits(proto.gateway.web.v1.ProjectUsageBucket, jspb.Message);
|
|
1441
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1442
|
+
/**
|
|
1443
|
+
* @public
|
|
1444
|
+
* @override
|
|
1445
|
+
*/
|
|
1446
|
+
proto.gateway.web.v1.ProjectUsageBucket.displayName = 'proto.gateway.web.v1.ProjectUsageBucket';
|
|
1447
|
+
}
|
|
1426
1448
|
/**
|
|
1427
1449
|
* Generated by JsPbCodeGenerator.
|
|
1428
1450
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -21523,7 +21545,7 @@ proto.gateway.web.v1.ProjectOverviewRequest.prototype.setTopSessions = function(
|
|
|
21523
21545
|
* @private {!Array<number>}
|
|
21524
21546
|
* @const
|
|
21525
21547
|
*/
|
|
21526
|
-
proto.gateway.web.v1.ProjectOverview.repeatedFields_ = [2,3,4,5,6];
|
|
21548
|
+
proto.gateway.web.v1.ProjectOverview.repeatedFields_ = [2,3,4,5,6,7];
|
|
21527
21549
|
|
|
21528
21550
|
|
|
21529
21551
|
|
|
@@ -21565,8 +21587,10 @@ bySourceList: jspb.Message.toObjectList(msg.getBySourceList(),
|
|
|
21565
21587
|
proto.gateway.web.v1.ProjectOverviewSlice.toObject, includeInstance),
|
|
21566
21588
|
topSessionsList: jspb.Message.toObjectList(msg.getTopSessionsList(),
|
|
21567
21589
|
proto.gateway.web.v1.ProjectSessionRef.toObject, includeInstance),
|
|
21568
|
-
|
|
21569
|
-
proto.gateway.web.v1.
|
|
21590
|
+
bucketsList: jspb.Message.toObjectList(msg.getBucketsList(),
|
|
21591
|
+
proto.gateway.web.v1.ProjectUsageBucket.toObject, includeInstance),
|
|
21592
|
+
priorList: jspb.Message.toObjectList(msg.getPriorList(),
|
|
21593
|
+
proto.gateway.web.v1.ProjectUsageBucket.toObject, includeInstance)
|
|
21570
21594
|
};
|
|
21571
21595
|
|
|
21572
21596
|
if (includeInstance) {
|
|
@@ -21629,9 +21653,14 @@ proto.gateway.web.v1.ProjectOverview.deserializeBinaryFromReader = function(msg,
|
|
|
21629
21653
|
msg.addTopSessions(value);
|
|
21630
21654
|
break;
|
|
21631
21655
|
case 6:
|
|
21632
|
-
var value = new proto.gateway.web.v1.
|
|
21633
|
-
reader.readMessage(value,proto.gateway.web.v1.
|
|
21634
|
-
msg.
|
|
21656
|
+
var value = new proto.gateway.web.v1.ProjectUsageBucket;
|
|
21657
|
+
reader.readMessage(value,proto.gateway.web.v1.ProjectUsageBucket.deserializeBinaryFromReader);
|
|
21658
|
+
msg.addBuckets(value);
|
|
21659
|
+
break;
|
|
21660
|
+
case 7:
|
|
21661
|
+
var value = new proto.gateway.web.v1.ProjectUsageBucket;
|
|
21662
|
+
reader.readMessage(value,proto.gateway.web.v1.ProjectUsageBucket.deserializeBinaryFromReader);
|
|
21663
|
+
msg.addPrior(value);
|
|
21635
21664
|
break;
|
|
21636
21665
|
default:
|
|
21637
21666
|
reader.skipField();
|
|
@@ -21702,12 +21731,20 @@ proto.gateway.web.v1.ProjectOverview.serializeBinaryToWriter = function(message,
|
|
|
21702
21731
|
proto.gateway.web.v1.ProjectSessionRef.serializeBinaryToWriter
|
|
21703
21732
|
);
|
|
21704
21733
|
}
|
|
21705
|
-
f = message.
|
|
21734
|
+
f = message.getBucketsList();
|
|
21706
21735
|
if (f.length > 0) {
|
|
21707
21736
|
writer.writeRepeatedMessage(
|
|
21708
21737
|
6,
|
|
21709
21738
|
f,
|
|
21710
|
-
proto.gateway.web.v1.
|
|
21739
|
+
proto.gateway.web.v1.ProjectUsageBucket.serializeBinaryToWriter
|
|
21740
|
+
);
|
|
21741
|
+
}
|
|
21742
|
+
f = message.getPriorList();
|
|
21743
|
+
if (f.length > 0) {
|
|
21744
|
+
writer.writeRepeatedMessage(
|
|
21745
|
+
7,
|
|
21746
|
+
f,
|
|
21747
|
+
proto.gateway.web.v1.ProjectUsageBucket.serializeBinaryToWriter
|
|
21711
21748
|
);
|
|
21712
21749
|
}
|
|
21713
21750
|
};
|
|
@@ -21903,31 +21940,31 @@ proto.gateway.web.v1.ProjectOverview.prototype.clearTopSessionsList = function()
|
|
|
21903
21940
|
|
|
21904
21941
|
|
|
21905
21942
|
/**
|
|
21906
|
-
* repeated
|
|
21907
|
-
* @return {!Array<!proto.gateway.web.v1.
|
|
21943
|
+
* repeated ProjectUsageBucket buckets = 6;
|
|
21944
|
+
* @return {!Array<!proto.gateway.web.v1.ProjectUsageBucket>}
|
|
21908
21945
|
*/
|
|
21909
|
-
proto.gateway.web.v1.ProjectOverview.prototype.
|
|
21910
|
-
return /** @type{!Array<!proto.gateway.web.v1.
|
|
21911
|
-
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.
|
|
21946
|
+
proto.gateway.web.v1.ProjectOverview.prototype.getBucketsList = function() {
|
|
21947
|
+
return /** @type{!Array<!proto.gateway.web.v1.ProjectUsageBucket>} */ (
|
|
21948
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ProjectUsageBucket, 6));
|
|
21912
21949
|
};
|
|
21913
21950
|
|
|
21914
21951
|
|
|
21915
21952
|
/**
|
|
21916
|
-
* @param {!Array<!proto.gateway.web.v1.
|
|
21953
|
+
* @param {!Array<!proto.gateway.web.v1.ProjectUsageBucket>} value
|
|
21917
21954
|
* @return {!proto.gateway.web.v1.ProjectOverview} returns this
|
|
21918
21955
|
*/
|
|
21919
|
-
proto.gateway.web.v1.ProjectOverview.prototype.
|
|
21956
|
+
proto.gateway.web.v1.ProjectOverview.prototype.setBucketsList = function(value) {
|
|
21920
21957
|
return jspb.Message.setRepeatedWrapperField(this, 6, value);
|
|
21921
21958
|
};
|
|
21922
21959
|
|
|
21923
21960
|
|
|
21924
21961
|
/**
|
|
21925
|
-
* @param {!proto.gateway.web.v1.
|
|
21962
|
+
* @param {!proto.gateway.web.v1.ProjectUsageBucket=} opt_value
|
|
21926
21963
|
* @param {number=} opt_index
|
|
21927
|
-
* @return {!proto.gateway.web.v1.
|
|
21964
|
+
* @return {!proto.gateway.web.v1.ProjectUsageBucket}
|
|
21928
21965
|
*/
|
|
21929
|
-
proto.gateway.web.v1.ProjectOverview.prototype.
|
|
21930
|
-
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.gateway.web.v1.
|
|
21966
|
+
proto.gateway.web.v1.ProjectOverview.prototype.addBuckets = function(opt_value, opt_index) {
|
|
21967
|
+
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.gateway.web.v1.ProjectUsageBucket, opt_index);
|
|
21931
21968
|
};
|
|
21932
21969
|
|
|
21933
21970
|
|
|
@@ -21935,8 +21972,46 @@ proto.gateway.web.v1.ProjectOverview.prototype.addByEffort = function(opt_value,
|
|
|
21935
21972
|
* Clears the list making it empty but non-null.
|
|
21936
21973
|
* @return {!proto.gateway.web.v1.ProjectOverview} returns this
|
|
21937
21974
|
*/
|
|
21938
|
-
proto.gateway.web.v1.ProjectOverview.prototype.
|
|
21939
|
-
return this.
|
|
21975
|
+
proto.gateway.web.v1.ProjectOverview.prototype.clearBucketsList = function() {
|
|
21976
|
+
return this.setBucketsList([]);
|
|
21977
|
+
};
|
|
21978
|
+
|
|
21979
|
+
|
|
21980
|
+
/**
|
|
21981
|
+
* repeated ProjectUsageBucket prior = 7;
|
|
21982
|
+
* @return {!Array<!proto.gateway.web.v1.ProjectUsageBucket>}
|
|
21983
|
+
*/
|
|
21984
|
+
proto.gateway.web.v1.ProjectOverview.prototype.getPriorList = function() {
|
|
21985
|
+
return /** @type{!Array<!proto.gateway.web.v1.ProjectUsageBucket>} */ (
|
|
21986
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ProjectUsageBucket, 7));
|
|
21987
|
+
};
|
|
21988
|
+
|
|
21989
|
+
|
|
21990
|
+
/**
|
|
21991
|
+
* @param {!Array<!proto.gateway.web.v1.ProjectUsageBucket>} value
|
|
21992
|
+
* @return {!proto.gateway.web.v1.ProjectOverview} returns this
|
|
21993
|
+
*/
|
|
21994
|
+
proto.gateway.web.v1.ProjectOverview.prototype.setPriorList = function(value) {
|
|
21995
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
|
21996
|
+
};
|
|
21997
|
+
|
|
21998
|
+
|
|
21999
|
+
/**
|
|
22000
|
+
* @param {!proto.gateway.web.v1.ProjectUsageBucket=} opt_value
|
|
22001
|
+
* @param {number=} opt_index
|
|
22002
|
+
* @return {!proto.gateway.web.v1.ProjectUsageBucket}
|
|
22003
|
+
*/
|
|
22004
|
+
proto.gateway.web.v1.ProjectOverview.prototype.addPrior = function(opt_value, opt_index) {
|
|
22005
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.gateway.web.v1.ProjectUsageBucket, opt_index);
|
|
22006
|
+
};
|
|
22007
|
+
|
|
22008
|
+
|
|
22009
|
+
/**
|
|
22010
|
+
* Clears the list making it empty but non-null.
|
|
22011
|
+
* @return {!proto.gateway.web.v1.ProjectOverview} returns this
|
|
22012
|
+
*/
|
|
22013
|
+
proto.gateway.web.v1.ProjectOverview.prototype.clearPriorList = function() {
|
|
22014
|
+
return this.setPriorList([]);
|
|
21940
22015
|
};
|
|
21941
22016
|
|
|
21942
22017
|
|
|
@@ -22792,6 +22867,457 @@ proto.gateway.web.v1.ProjectOverviewSlice.prototype.setSubscriptionCostUsd = fun
|
|
|
22792
22867
|
|
|
22793
22868
|
|
|
22794
22869
|
|
|
22870
|
+
|
|
22871
|
+
|
|
22872
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
22873
|
+
/**
|
|
22874
|
+
* Creates an object representation of this proto.
|
|
22875
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
22876
|
+
* Optional fields that are not set will be set to undefined.
|
|
22877
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
22878
|
+
* For the list of reserved names please see:
|
|
22879
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
22880
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
22881
|
+
* JSPB instance for transitional soy proto support:
|
|
22882
|
+
* http://goto/soy-param-migration
|
|
22883
|
+
* @return {!Object}
|
|
22884
|
+
*/
|
|
22885
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.toObject = function(opt_includeInstance) {
|
|
22886
|
+
return proto.gateway.web.v1.ProjectUsageBucket.toObject(opt_includeInstance, this);
|
|
22887
|
+
};
|
|
22888
|
+
|
|
22889
|
+
|
|
22890
|
+
/**
|
|
22891
|
+
* Static version of the {@see toObject} method.
|
|
22892
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
22893
|
+
* the JSPB instance for transitional soy proto support:
|
|
22894
|
+
* http://goto/soy-param-migration
|
|
22895
|
+
* @param {!proto.gateway.web.v1.ProjectUsageBucket} msg The msg instance to transform.
|
|
22896
|
+
* @return {!Object}
|
|
22897
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22898
|
+
*/
|
|
22899
|
+
proto.gateway.web.v1.ProjectUsageBucket.toObject = function(includeInstance, msg) {
|
|
22900
|
+
var f, obj = {
|
|
22901
|
+
startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
22902
|
+
model: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
22903
|
+
provider: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
22904
|
+
sourceSystem: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
22905
|
+
fundingMode: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
22906
|
+
modelCalls: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
22907
|
+
inputTokens: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
22908
|
+
outputTokens: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
22909
|
+
cacheReadTokens: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
22910
|
+
cacheWriteTokens: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
22911
|
+
costUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0)
|
|
22912
|
+
};
|
|
22913
|
+
|
|
22914
|
+
if (includeInstance) {
|
|
22915
|
+
obj.$jspbMessageInstance = msg;
|
|
22916
|
+
}
|
|
22917
|
+
return obj;
|
|
22918
|
+
};
|
|
22919
|
+
}
|
|
22920
|
+
|
|
22921
|
+
|
|
22922
|
+
/**
|
|
22923
|
+
* Deserializes binary data (in protobuf wire format).
|
|
22924
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
22925
|
+
* @return {!proto.gateway.web.v1.ProjectUsageBucket}
|
|
22926
|
+
*/
|
|
22927
|
+
proto.gateway.web.v1.ProjectUsageBucket.deserializeBinary = function(bytes) {
|
|
22928
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
22929
|
+
var msg = new proto.gateway.web.v1.ProjectUsageBucket;
|
|
22930
|
+
return proto.gateway.web.v1.ProjectUsageBucket.deserializeBinaryFromReader(msg, reader);
|
|
22931
|
+
};
|
|
22932
|
+
|
|
22933
|
+
|
|
22934
|
+
/**
|
|
22935
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
22936
|
+
* given reader into the given message object.
|
|
22937
|
+
* @param {!proto.gateway.web.v1.ProjectUsageBucket} msg The message object to deserialize into.
|
|
22938
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
22939
|
+
* @return {!proto.gateway.web.v1.ProjectUsageBucket}
|
|
22940
|
+
*/
|
|
22941
|
+
proto.gateway.web.v1.ProjectUsageBucket.deserializeBinaryFromReader = function(msg, reader) {
|
|
22942
|
+
while (reader.nextField()) {
|
|
22943
|
+
if (reader.isEndGroup()) {
|
|
22944
|
+
break;
|
|
22945
|
+
}
|
|
22946
|
+
var field = reader.getFieldNumber();
|
|
22947
|
+
switch (field) {
|
|
22948
|
+
case 1:
|
|
22949
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
22950
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
22951
|
+
msg.setStartTime(value);
|
|
22952
|
+
break;
|
|
22953
|
+
case 2:
|
|
22954
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
22955
|
+
msg.setModel(value);
|
|
22956
|
+
break;
|
|
22957
|
+
case 3:
|
|
22958
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
22959
|
+
msg.setProvider(value);
|
|
22960
|
+
break;
|
|
22961
|
+
case 4:
|
|
22962
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
22963
|
+
msg.setSourceSystem(value);
|
|
22964
|
+
break;
|
|
22965
|
+
case 5:
|
|
22966
|
+
var value = /** @type {!proto.gateway.web.v1.AIFundingMode} */ (reader.readEnum());
|
|
22967
|
+
msg.setFundingMode(value);
|
|
22968
|
+
break;
|
|
22969
|
+
case 6:
|
|
22970
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22971
|
+
msg.setModelCalls(value);
|
|
22972
|
+
break;
|
|
22973
|
+
case 7:
|
|
22974
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22975
|
+
msg.setInputTokens(value);
|
|
22976
|
+
break;
|
|
22977
|
+
case 8:
|
|
22978
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22979
|
+
msg.setOutputTokens(value);
|
|
22980
|
+
break;
|
|
22981
|
+
case 9:
|
|
22982
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22983
|
+
msg.setCacheReadTokens(value);
|
|
22984
|
+
break;
|
|
22985
|
+
case 10:
|
|
22986
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22987
|
+
msg.setCacheWriteTokens(value);
|
|
22988
|
+
break;
|
|
22989
|
+
case 11:
|
|
22990
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
22991
|
+
msg.setCostUsd(value);
|
|
22992
|
+
break;
|
|
22993
|
+
default:
|
|
22994
|
+
reader.skipField();
|
|
22995
|
+
break;
|
|
22996
|
+
}
|
|
22997
|
+
}
|
|
22998
|
+
return msg;
|
|
22999
|
+
};
|
|
23000
|
+
|
|
23001
|
+
|
|
23002
|
+
/**
|
|
23003
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
23004
|
+
* @return {!Uint8Array}
|
|
23005
|
+
*/
|
|
23006
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.serializeBinary = function() {
|
|
23007
|
+
var writer = new jspb.BinaryWriter();
|
|
23008
|
+
proto.gateway.web.v1.ProjectUsageBucket.serializeBinaryToWriter(this, writer);
|
|
23009
|
+
return writer.getResultBuffer();
|
|
23010
|
+
};
|
|
23011
|
+
|
|
23012
|
+
|
|
23013
|
+
/**
|
|
23014
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
23015
|
+
* format), writing to the given BinaryWriter.
|
|
23016
|
+
* @param {!proto.gateway.web.v1.ProjectUsageBucket} message
|
|
23017
|
+
* @param {!jspb.BinaryWriter} writer
|
|
23018
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
23019
|
+
*/
|
|
23020
|
+
proto.gateway.web.v1.ProjectUsageBucket.serializeBinaryToWriter = function(message, writer) {
|
|
23021
|
+
var f = undefined;
|
|
23022
|
+
f = message.getStartTime();
|
|
23023
|
+
if (f != null) {
|
|
23024
|
+
writer.writeMessage(
|
|
23025
|
+
1,
|
|
23026
|
+
f,
|
|
23027
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
23028
|
+
);
|
|
23029
|
+
}
|
|
23030
|
+
f = message.getModel();
|
|
23031
|
+
if (f.length > 0) {
|
|
23032
|
+
writer.writeString(
|
|
23033
|
+
2,
|
|
23034
|
+
f
|
|
23035
|
+
);
|
|
23036
|
+
}
|
|
23037
|
+
f = message.getProvider();
|
|
23038
|
+
if (f.length > 0) {
|
|
23039
|
+
writer.writeString(
|
|
23040
|
+
3,
|
|
23041
|
+
f
|
|
23042
|
+
);
|
|
23043
|
+
}
|
|
23044
|
+
f = message.getSourceSystem();
|
|
23045
|
+
if (f.length > 0) {
|
|
23046
|
+
writer.writeString(
|
|
23047
|
+
4,
|
|
23048
|
+
f
|
|
23049
|
+
);
|
|
23050
|
+
}
|
|
23051
|
+
f = message.getFundingMode();
|
|
23052
|
+
if (f !== 0.0) {
|
|
23053
|
+
writer.writeEnum(
|
|
23054
|
+
5,
|
|
23055
|
+
f
|
|
23056
|
+
);
|
|
23057
|
+
}
|
|
23058
|
+
f = message.getModelCalls();
|
|
23059
|
+
if (f !== 0) {
|
|
23060
|
+
writer.writeUint64(
|
|
23061
|
+
6,
|
|
23062
|
+
f
|
|
23063
|
+
);
|
|
23064
|
+
}
|
|
23065
|
+
f = message.getInputTokens();
|
|
23066
|
+
if (f !== 0) {
|
|
23067
|
+
writer.writeUint64(
|
|
23068
|
+
7,
|
|
23069
|
+
f
|
|
23070
|
+
);
|
|
23071
|
+
}
|
|
23072
|
+
f = message.getOutputTokens();
|
|
23073
|
+
if (f !== 0) {
|
|
23074
|
+
writer.writeUint64(
|
|
23075
|
+
8,
|
|
23076
|
+
f
|
|
23077
|
+
);
|
|
23078
|
+
}
|
|
23079
|
+
f = message.getCacheReadTokens();
|
|
23080
|
+
if (f !== 0) {
|
|
23081
|
+
writer.writeUint64(
|
|
23082
|
+
9,
|
|
23083
|
+
f
|
|
23084
|
+
);
|
|
23085
|
+
}
|
|
23086
|
+
f = message.getCacheWriteTokens();
|
|
23087
|
+
if (f !== 0) {
|
|
23088
|
+
writer.writeUint64(
|
|
23089
|
+
10,
|
|
23090
|
+
f
|
|
23091
|
+
);
|
|
23092
|
+
}
|
|
23093
|
+
f = message.getCostUsd();
|
|
23094
|
+
if (f !== 0.0) {
|
|
23095
|
+
writer.writeDouble(
|
|
23096
|
+
11,
|
|
23097
|
+
f
|
|
23098
|
+
);
|
|
23099
|
+
}
|
|
23100
|
+
};
|
|
23101
|
+
|
|
23102
|
+
|
|
23103
|
+
/**
|
|
23104
|
+
* optional google.protobuf.Timestamp start_time = 1;
|
|
23105
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
23106
|
+
*/
|
|
23107
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.getStartTime = function() {
|
|
23108
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
23109
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
|
|
23110
|
+
};
|
|
23111
|
+
|
|
23112
|
+
|
|
23113
|
+
/**
|
|
23114
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
23115
|
+
* @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
|
|
23116
|
+
*/
|
|
23117
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.setStartTime = function(value) {
|
|
23118
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
23119
|
+
};
|
|
23120
|
+
|
|
23121
|
+
|
|
23122
|
+
/**
|
|
23123
|
+
* Clears the message field making it undefined.
|
|
23124
|
+
* @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
|
|
23125
|
+
*/
|
|
23126
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.clearStartTime = function() {
|
|
23127
|
+
return this.setStartTime(undefined);
|
|
23128
|
+
};
|
|
23129
|
+
|
|
23130
|
+
|
|
23131
|
+
/**
|
|
23132
|
+
* Returns whether this field is set.
|
|
23133
|
+
* @return {boolean}
|
|
23134
|
+
*/
|
|
23135
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.hasStartTime = function() {
|
|
23136
|
+
return jspb.Message.getField(this, 1) != null;
|
|
23137
|
+
};
|
|
23138
|
+
|
|
23139
|
+
|
|
23140
|
+
/**
|
|
23141
|
+
* optional string model = 2;
|
|
23142
|
+
* @return {string}
|
|
23143
|
+
*/
|
|
23144
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.getModel = function() {
|
|
23145
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
23146
|
+
};
|
|
23147
|
+
|
|
23148
|
+
|
|
23149
|
+
/**
|
|
23150
|
+
* @param {string} value
|
|
23151
|
+
* @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
|
|
23152
|
+
*/
|
|
23153
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.setModel = function(value) {
|
|
23154
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
23155
|
+
};
|
|
23156
|
+
|
|
23157
|
+
|
|
23158
|
+
/**
|
|
23159
|
+
* optional string provider = 3;
|
|
23160
|
+
* @return {string}
|
|
23161
|
+
*/
|
|
23162
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.getProvider = function() {
|
|
23163
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
23164
|
+
};
|
|
23165
|
+
|
|
23166
|
+
|
|
23167
|
+
/**
|
|
23168
|
+
* @param {string} value
|
|
23169
|
+
* @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
|
|
23170
|
+
*/
|
|
23171
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.setProvider = function(value) {
|
|
23172
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
23173
|
+
};
|
|
23174
|
+
|
|
23175
|
+
|
|
23176
|
+
/**
|
|
23177
|
+
* optional string source_system = 4;
|
|
23178
|
+
* @return {string}
|
|
23179
|
+
*/
|
|
23180
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.getSourceSystem = function() {
|
|
23181
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
23182
|
+
};
|
|
23183
|
+
|
|
23184
|
+
|
|
23185
|
+
/**
|
|
23186
|
+
* @param {string} value
|
|
23187
|
+
* @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
|
|
23188
|
+
*/
|
|
23189
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.setSourceSystem = function(value) {
|
|
23190
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
23191
|
+
};
|
|
23192
|
+
|
|
23193
|
+
|
|
23194
|
+
/**
|
|
23195
|
+
* optional AIFundingMode funding_mode = 5;
|
|
23196
|
+
* @return {!proto.gateway.web.v1.AIFundingMode}
|
|
23197
|
+
*/
|
|
23198
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.getFundingMode = function() {
|
|
23199
|
+
return /** @type {!proto.gateway.web.v1.AIFundingMode} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
23200
|
+
};
|
|
23201
|
+
|
|
23202
|
+
|
|
23203
|
+
/**
|
|
23204
|
+
* @param {!proto.gateway.web.v1.AIFundingMode} value
|
|
23205
|
+
* @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
|
|
23206
|
+
*/
|
|
23207
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.setFundingMode = function(value) {
|
|
23208
|
+
return jspb.Message.setProto3EnumField(this, 5, value);
|
|
23209
|
+
};
|
|
23210
|
+
|
|
23211
|
+
|
|
23212
|
+
/**
|
|
23213
|
+
* optional uint64 model_calls = 6;
|
|
23214
|
+
* @return {number}
|
|
23215
|
+
*/
|
|
23216
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.getModelCalls = function() {
|
|
23217
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
23218
|
+
};
|
|
23219
|
+
|
|
23220
|
+
|
|
23221
|
+
/**
|
|
23222
|
+
* @param {number} value
|
|
23223
|
+
* @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
|
|
23224
|
+
*/
|
|
23225
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.setModelCalls = function(value) {
|
|
23226
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
23227
|
+
};
|
|
23228
|
+
|
|
23229
|
+
|
|
23230
|
+
/**
|
|
23231
|
+
* optional uint64 input_tokens = 7;
|
|
23232
|
+
* @return {number}
|
|
23233
|
+
*/
|
|
23234
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.getInputTokens = function() {
|
|
23235
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
23236
|
+
};
|
|
23237
|
+
|
|
23238
|
+
|
|
23239
|
+
/**
|
|
23240
|
+
* @param {number} value
|
|
23241
|
+
* @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
|
|
23242
|
+
*/
|
|
23243
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.setInputTokens = function(value) {
|
|
23244
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
23245
|
+
};
|
|
23246
|
+
|
|
23247
|
+
|
|
23248
|
+
/**
|
|
23249
|
+
* optional uint64 output_tokens = 8;
|
|
23250
|
+
* @return {number}
|
|
23251
|
+
*/
|
|
23252
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.getOutputTokens = function() {
|
|
23253
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
23254
|
+
};
|
|
23255
|
+
|
|
23256
|
+
|
|
23257
|
+
/**
|
|
23258
|
+
* @param {number} value
|
|
23259
|
+
* @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
|
|
23260
|
+
*/
|
|
23261
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.setOutputTokens = function(value) {
|
|
23262
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
23263
|
+
};
|
|
23264
|
+
|
|
23265
|
+
|
|
23266
|
+
/**
|
|
23267
|
+
* optional uint64 cache_read_tokens = 9;
|
|
23268
|
+
* @return {number}
|
|
23269
|
+
*/
|
|
23270
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.getCacheReadTokens = function() {
|
|
23271
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
23272
|
+
};
|
|
23273
|
+
|
|
23274
|
+
|
|
23275
|
+
/**
|
|
23276
|
+
* @param {number} value
|
|
23277
|
+
* @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
|
|
23278
|
+
*/
|
|
23279
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.setCacheReadTokens = function(value) {
|
|
23280
|
+
return jspb.Message.setProto3IntField(this, 9, value);
|
|
23281
|
+
};
|
|
23282
|
+
|
|
23283
|
+
|
|
23284
|
+
/**
|
|
23285
|
+
* optional uint64 cache_write_tokens = 10;
|
|
23286
|
+
* @return {number}
|
|
23287
|
+
*/
|
|
23288
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.getCacheWriteTokens = function() {
|
|
23289
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
23290
|
+
};
|
|
23291
|
+
|
|
23292
|
+
|
|
23293
|
+
/**
|
|
23294
|
+
* @param {number} value
|
|
23295
|
+
* @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
|
|
23296
|
+
*/
|
|
23297
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.setCacheWriteTokens = function(value) {
|
|
23298
|
+
return jspb.Message.setProto3IntField(this, 10, value);
|
|
23299
|
+
};
|
|
23300
|
+
|
|
23301
|
+
|
|
23302
|
+
/**
|
|
23303
|
+
* optional double cost_usd = 11;
|
|
23304
|
+
* @return {number}
|
|
23305
|
+
*/
|
|
23306
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.getCostUsd = function() {
|
|
23307
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0));
|
|
23308
|
+
};
|
|
23309
|
+
|
|
23310
|
+
|
|
23311
|
+
/**
|
|
23312
|
+
* @param {number} value
|
|
23313
|
+
* @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
|
|
23314
|
+
*/
|
|
23315
|
+
proto.gateway.web.v1.ProjectUsageBucket.prototype.setCostUsd = function(value) {
|
|
23316
|
+
return jspb.Message.setProto3FloatField(this, 11, value);
|
|
23317
|
+
};
|
|
23318
|
+
|
|
23319
|
+
|
|
23320
|
+
|
|
22795
23321
|
/**
|
|
22796
23322
|
* List of repeated fields within this message type.
|
|
22797
23323
|
* @private {!Array<number>}
|