@miradorlabs/web-grpc 3.21.0 → 3.22.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
CHANGED
|
@@ -1593,8 +1593,8 @@ export interface ProjectOverview {
|
|
|
1593
1593
|
byProvider: ProjectOverviewSlice[];
|
|
1594
1594
|
bySource: ProjectOverviewSlice[];
|
|
1595
1595
|
topSessions: ProjectSessionRef[];
|
|
1596
|
-
|
|
1597
|
-
|
|
1596
|
+
buckets: ProjectUsageBucket[];
|
|
1597
|
+
prior: ProjectUsageBucket[];
|
|
1598
1598
|
}
|
|
1599
1599
|
|
|
1600
1600
|
export interface ProjectOverviewTotals {
|
|
@@ -1627,6 +1627,20 @@ export interface ProjectOverviewSlice {
|
|
|
1627
1627
|
subscriptionCostUsd: number;
|
|
1628
1628
|
}
|
|
1629
1629
|
|
|
1630
|
+
export interface ProjectUsageBucket {
|
|
1631
|
+
startTime: Date | undefined;
|
|
1632
|
+
model: string;
|
|
1633
|
+
provider: string;
|
|
1634
|
+
sourceSystem: string;
|
|
1635
|
+
fundingMode: AIFundingMode;
|
|
1636
|
+
modelCalls: number;
|
|
1637
|
+
inputTokens: number;
|
|
1638
|
+
outputTokens: number;
|
|
1639
|
+
cacheReadTokens: number;
|
|
1640
|
+
cacheWriteTokens: number;
|
|
1641
|
+
costUsd: number;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1630
1644
|
export interface ProjectSummariesRequest {
|
|
1631
1645
|
organizationId: string;
|
|
1632
1646
|
projectIds: string[];
|
|
@@ -12213,7 +12227,7 @@ export const ProjectOverviewRequest: MessageFns<ProjectOverviewRequest> = {
|
|
|
12213
12227
|
};
|
|
12214
12228
|
|
|
12215
12229
|
function createBaseProjectOverview(): ProjectOverview {
|
|
12216
|
-
return { totals: undefined, byModel: [], byProvider: [], bySource: [], topSessions: [],
|
|
12230
|
+
return { totals: undefined, byModel: [], byProvider: [], bySource: [], topSessions: [], buckets: [], prior: [] };
|
|
12217
12231
|
}
|
|
12218
12232
|
|
|
12219
12233
|
export const ProjectOverview: MessageFns<ProjectOverview> = {
|
|
@@ -12233,8 +12247,11 @@ export const ProjectOverview: MessageFns<ProjectOverview> = {
|
|
|
12233
12247
|
for (const v of message.topSessions) {
|
|
12234
12248
|
ProjectSessionRef.encode(v!, writer.uint32(42).fork()).join();
|
|
12235
12249
|
}
|
|
12236
|
-
for (const v of message.
|
|
12237
|
-
|
|
12250
|
+
for (const v of message.buckets) {
|
|
12251
|
+
ProjectUsageBucket.encode(v!, writer.uint32(50).fork()).join();
|
|
12252
|
+
}
|
|
12253
|
+
for (const v of message.prior) {
|
|
12254
|
+
ProjectUsageBucket.encode(v!, writer.uint32(58).fork()).join();
|
|
12238
12255
|
}
|
|
12239
12256
|
return writer;
|
|
12240
12257
|
},
|
|
@@ -12297,7 +12314,15 @@ export const ProjectOverview: MessageFns<ProjectOverview> = {
|
|
|
12297
12314
|
break;
|
|
12298
12315
|
}
|
|
12299
12316
|
|
|
12300
|
-
message.
|
|
12317
|
+
message.buckets.push(ProjectUsageBucket.decode(reader, reader.uint32()));
|
|
12318
|
+
continue;
|
|
12319
|
+
}
|
|
12320
|
+
case 7: {
|
|
12321
|
+
if (tag !== 58) {
|
|
12322
|
+
break;
|
|
12323
|
+
}
|
|
12324
|
+
|
|
12325
|
+
message.prior.push(ProjectUsageBucket.decode(reader, reader.uint32()));
|
|
12301
12326
|
continue;
|
|
12302
12327
|
}
|
|
12303
12328
|
}
|
|
@@ -12335,10 +12360,11 @@ export const ProjectOverview: MessageFns<ProjectOverview> = {
|
|
|
12335
12360
|
: globalThis.Array.isArray(object?.top_sessions)
|
|
12336
12361
|
? object.top_sessions.map((e: any) => ProjectSessionRef.fromJSON(e))
|
|
12337
12362
|
: [],
|
|
12338
|
-
|
|
12339
|
-
? object.
|
|
12340
|
-
:
|
|
12341
|
-
|
|
12363
|
+
buckets: globalThis.Array.isArray(object?.buckets)
|
|
12364
|
+
? object.buckets.map((e: any) => ProjectUsageBucket.fromJSON(e))
|
|
12365
|
+
: [],
|
|
12366
|
+
prior: globalThis.Array.isArray(object?.prior)
|
|
12367
|
+
? object.prior.map((e: any) => ProjectUsageBucket.fromJSON(e))
|
|
12342
12368
|
: [],
|
|
12343
12369
|
};
|
|
12344
12370
|
},
|
|
@@ -12360,8 +12386,11 @@ export const ProjectOverview: MessageFns<ProjectOverview> = {
|
|
|
12360
12386
|
if (message.topSessions?.length) {
|
|
12361
12387
|
obj.topSessions = message.topSessions.map((e) => ProjectSessionRef.toJSON(e));
|
|
12362
12388
|
}
|
|
12363
|
-
if (message.
|
|
12364
|
-
obj.
|
|
12389
|
+
if (message.buckets?.length) {
|
|
12390
|
+
obj.buckets = message.buckets.map((e) => ProjectUsageBucket.toJSON(e));
|
|
12391
|
+
}
|
|
12392
|
+
if (message.prior?.length) {
|
|
12393
|
+
obj.prior = message.prior.map((e) => ProjectUsageBucket.toJSON(e));
|
|
12365
12394
|
}
|
|
12366
12395
|
return obj;
|
|
12367
12396
|
},
|
|
@@ -12378,7 +12407,8 @@ export const ProjectOverview: MessageFns<ProjectOverview> = {
|
|
|
12378
12407
|
message.byProvider = object.byProvider?.map((e) => ProjectOverviewSlice.fromPartial(e)) || [];
|
|
12379
12408
|
message.bySource = object.bySource?.map((e) => ProjectOverviewSlice.fromPartial(e)) || [];
|
|
12380
12409
|
message.topSessions = object.topSessions?.map((e) => ProjectSessionRef.fromPartial(e)) || [];
|
|
12381
|
-
message.
|
|
12410
|
+
message.buckets = object.buckets?.map((e) => ProjectUsageBucket.fromPartial(e)) || [];
|
|
12411
|
+
message.prior = object.prior?.map((e) => ProjectUsageBucket.fromPartial(e)) || [];
|
|
12382
12412
|
return message;
|
|
12383
12413
|
},
|
|
12384
12414
|
};
|
|
@@ -12909,6 +12939,283 @@ export const ProjectOverviewSlice: MessageFns<ProjectOverviewSlice> = {
|
|
|
12909
12939
|
},
|
|
12910
12940
|
};
|
|
12911
12941
|
|
|
12942
|
+
function createBaseProjectUsageBucket(): ProjectUsageBucket {
|
|
12943
|
+
return {
|
|
12944
|
+
startTime: undefined,
|
|
12945
|
+
model: "",
|
|
12946
|
+
provider: "",
|
|
12947
|
+
sourceSystem: "",
|
|
12948
|
+
fundingMode: 0,
|
|
12949
|
+
modelCalls: 0,
|
|
12950
|
+
inputTokens: 0,
|
|
12951
|
+
outputTokens: 0,
|
|
12952
|
+
cacheReadTokens: 0,
|
|
12953
|
+
cacheWriteTokens: 0,
|
|
12954
|
+
costUsd: 0,
|
|
12955
|
+
};
|
|
12956
|
+
}
|
|
12957
|
+
|
|
12958
|
+
export const ProjectUsageBucket: MessageFns<ProjectUsageBucket> = {
|
|
12959
|
+
encode(message: ProjectUsageBucket, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
12960
|
+
if (message.startTime !== undefined) {
|
|
12961
|
+
Timestamp.encode(toTimestamp(message.startTime), writer.uint32(10).fork()).join();
|
|
12962
|
+
}
|
|
12963
|
+
if (message.model !== "") {
|
|
12964
|
+
writer.uint32(18).string(message.model);
|
|
12965
|
+
}
|
|
12966
|
+
if (message.provider !== "") {
|
|
12967
|
+
writer.uint32(26).string(message.provider);
|
|
12968
|
+
}
|
|
12969
|
+
if (message.sourceSystem !== "") {
|
|
12970
|
+
writer.uint32(34).string(message.sourceSystem);
|
|
12971
|
+
}
|
|
12972
|
+
if (message.fundingMode !== 0) {
|
|
12973
|
+
writer.uint32(40).int32(message.fundingMode);
|
|
12974
|
+
}
|
|
12975
|
+
if (message.modelCalls !== 0) {
|
|
12976
|
+
writer.uint32(48).uint64(message.modelCalls);
|
|
12977
|
+
}
|
|
12978
|
+
if (message.inputTokens !== 0) {
|
|
12979
|
+
writer.uint32(56).uint64(message.inputTokens);
|
|
12980
|
+
}
|
|
12981
|
+
if (message.outputTokens !== 0) {
|
|
12982
|
+
writer.uint32(64).uint64(message.outputTokens);
|
|
12983
|
+
}
|
|
12984
|
+
if (message.cacheReadTokens !== 0) {
|
|
12985
|
+
writer.uint32(72).uint64(message.cacheReadTokens);
|
|
12986
|
+
}
|
|
12987
|
+
if (message.cacheWriteTokens !== 0) {
|
|
12988
|
+
writer.uint32(80).uint64(message.cacheWriteTokens);
|
|
12989
|
+
}
|
|
12990
|
+
if (message.costUsd !== 0) {
|
|
12991
|
+
writer.uint32(89).double(message.costUsd);
|
|
12992
|
+
}
|
|
12993
|
+
return writer;
|
|
12994
|
+
},
|
|
12995
|
+
|
|
12996
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ProjectUsageBucket {
|
|
12997
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
12998
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
12999
|
+
if (previousRecursionDepth >= 100) {
|
|
13000
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
13001
|
+
}
|
|
13002
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
13003
|
+
try {
|
|
13004
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13005
|
+
const message = createBaseProjectUsageBucket();
|
|
13006
|
+
while (reader.pos < end) {
|
|
13007
|
+
const tag = reader.uint32();
|
|
13008
|
+
switch (tag >>> 3) {
|
|
13009
|
+
case 1: {
|
|
13010
|
+
if (tag !== 10) {
|
|
13011
|
+
break;
|
|
13012
|
+
}
|
|
13013
|
+
|
|
13014
|
+
message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
13015
|
+
continue;
|
|
13016
|
+
}
|
|
13017
|
+
case 2: {
|
|
13018
|
+
if (tag !== 18) {
|
|
13019
|
+
break;
|
|
13020
|
+
}
|
|
13021
|
+
|
|
13022
|
+
message.model = reader.string();
|
|
13023
|
+
continue;
|
|
13024
|
+
}
|
|
13025
|
+
case 3: {
|
|
13026
|
+
if (tag !== 26) {
|
|
13027
|
+
break;
|
|
13028
|
+
}
|
|
13029
|
+
|
|
13030
|
+
message.provider = reader.string();
|
|
13031
|
+
continue;
|
|
13032
|
+
}
|
|
13033
|
+
case 4: {
|
|
13034
|
+
if (tag !== 34) {
|
|
13035
|
+
break;
|
|
13036
|
+
}
|
|
13037
|
+
|
|
13038
|
+
message.sourceSystem = reader.string();
|
|
13039
|
+
continue;
|
|
13040
|
+
}
|
|
13041
|
+
case 5: {
|
|
13042
|
+
if (tag !== 40) {
|
|
13043
|
+
break;
|
|
13044
|
+
}
|
|
13045
|
+
|
|
13046
|
+
message.fundingMode = reader.int32() as any;
|
|
13047
|
+
continue;
|
|
13048
|
+
}
|
|
13049
|
+
case 6: {
|
|
13050
|
+
if (tag !== 48) {
|
|
13051
|
+
break;
|
|
13052
|
+
}
|
|
13053
|
+
|
|
13054
|
+
message.modelCalls = longToNumber(reader.uint64());
|
|
13055
|
+
continue;
|
|
13056
|
+
}
|
|
13057
|
+
case 7: {
|
|
13058
|
+
if (tag !== 56) {
|
|
13059
|
+
break;
|
|
13060
|
+
}
|
|
13061
|
+
|
|
13062
|
+
message.inputTokens = longToNumber(reader.uint64());
|
|
13063
|
+
continue;
|
|
13064
|
+
}
|
|
13065
|
+
case 8: {
|
|
13066
|
+
if (tag !== 64) {
|
|
13067
|
+
break;
|
|
13068
|
+
}
|
|
13069
|
+
|
|
13070
|
+
message.outputTokens = longToNumber(reader.uint64());
|
|
13071
|
+
continue;
|
|
13072
|
+
}
|
|
13073
|
+
case 9: {
|
|
13074
|
+
if (tag !== 72) {
|
|
13075
|
+
break;
|
|
13076
|
+
}
|
|
13077
|
+
|
|
13078
|
+
message.cacheReadTokens = longToNumber(reader.uint64());
|
|
13079
|
+
continue;
|
|
13080
|
+
}
|
|
13081
|
+
case 10: {
|
|
13082
|
+
if (tag !== 80) {
|
|
13083
|
+
break;
|
|
13084
|
+
}
|
|
13085
|
+
|
|
13086
|
+
message.cacheWriteTokens = longToNumber(reader.uint64());
|
|
13087
|
+
continue;
|
|
13088
|
+
}
|
|
13089
|
+
case 11: {
|
|
13090
|
+
if (tag !== 89) {
|
|
13091
|
+
break;
|
|
13092
|
+
}
|
|
13093
|
+
|
|
13094
|
+
message.costUsd = reader.double();
|
|
13095
|
+
continue;
|
|
13096
|
+
}
|
|
13097
|
+
}
|
|
13098
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13099
|
+
break;
|
|
13100
|
+
}
|
|
13101
|
+
reader.skip(tag & 7);
|
|
13102
|
+
}
|
|
13103
|
+
return message;
|
|
13104
|
+
} finally {
|
|
13105
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
13106
|
+
}
|
|
13107
|
+
},
|
|
13108
|
+
|
|
13109
|
+
fromJSON(object: any): ProjectUsageBucket {
|
|
13110
|
+
return {
|
|
13111
|
+
startTime: isSet(object.startTime)
|
|
13112
|
+
? fromJsonTimestamp(object.startTime)
|
|
13113
|
+
: isSet(object.start_time)
|
|
13114
|
+
? fromJsonTimestamp(object.start_time)
|
|
13115
|
+
: undefined,
|
|
13116
|
+
model: isSet(object.model) ? globalThis.String(object.model) : "",
|
|
13117
|
+
provider: isSet(object.provider) ? globalThis.String(object.provider) : "",
|
|
13118
|
+
sourceSystem: isSet(object.sourceSystem)
|
|
13119
|
+
? globalThis.String(object.sourceSystem)
|
|
13120
|
+
: isSet(object.source_system)
|
|
13121
|
+
? globalThis.String(object.source_system)
|
|
13122
|
+
: "",
|
|
13123
|
+
fundingMode: isSet(object.fundingMode)
|
|
13124
|
+
? aIFundingModeFromJSON(object.fundingMode)
|
|
13125
|
+
: isSet(object.funding_mode)
|
|
13126
|
+
? aIFundingModeFromJSON(object.funding_mode)
|
|
13127
|
+
: 0,
|
|
13128
|
+
modelCalls: isSet(object.modelCalls)
|
|
13129
|
+
? globalThis.Number(object.modelCalls)
|
|
13130
|
+
: isSet(object.model_calls)
|
|
13131
|
+
? globalThis.Number(object.model_calls)
|
|
13132
|
+
: 0,
|
|
13133
|
+
inputTokens: isSet(object.inputTokens)
|
|
13134
|
+
? globalThis.Number(object.inputTokens)
|
|
13135
|
+
: isSet(object.input_tokens)
|
|
13136
|
+
? globalThis.Number(object.input_tokens)
|
|
13137
|
+
: 0,
|
|
13138
|
+
outputTokens: isSet(object.outputTokens)
|
|
13139
|
+
? globalThis.Number(object.outputTokens)
|
|
13140
|
+
: isSet(object.output_tokens)
|
|
13141
|
+
? globalThis.Number(object.output_tokens)
|
|
13142
|
+
: 0,
|
|
13143
|
+
cacheReadTokens: isSet(object.cacheReadTokens)
|
|
13144
|
+
? globalThis.Number(object.cacheReadTokens)
|
|
13145
|
+
: isSet(object.cache_read_tokens)
|
|
13146
|
+
? globalThis.Number(object.cache_read_tokens)
|
|
13147
|
+
: 0,
|
|
13148
|
+
cacheWriteTokens: isSet(object.cacheWriteTokens)
|
|
13149
|
+
? globalThis.Number(object.cacheWriteTokens)
|
|
13150
|
+
: isSet(object.cache_write_tokens)
|
|
13151
|
+
? globalThis.Number(object.cache_write_tokens)
|
|
13152
|
+
: 0,
|
|
13153
|
+
costUsd: isSet(object.costUsd)
|
|
13154
|
+
? globalThis.Number(object.costUsd)
|
|
13155
|
+
: isSet(object.cost_usd)
|
|
13156
|
+
? globalThis.Number(object.cost_usd)
|
|
13157
|
+
: 0,
|
|
13158
|
+
};
|
|
13159
|
+
},
|
|
13160
|
+
|
|
13161
|
+
toJSON(message: ProjectUsageBucket): unknown {
|
|
13162
|
+
const obj: any = {};
|
|
13163
|
+
if (message.startTime !== undefined) {
|
|
13164
|
+
obj.startTime = message.startTime.toISOString();
|
|
13165
|
+
}
|
|
13166
|
+
if (message.model !== "") {
|
|
13167
|
+
obj.model = message.model;
|
|
13168
|
+
}
|
|
13169
|
+
if (message.provider !== "") {
|
|
13170
|
+
obj.provider = message.provider;
|
|
13171
|
+
}
|
|
13172
|
+
if (message.sourceSystem !== "") {
|
|
13173
|
+
obj.sourceSystem = message.sourceSystem;
|
|
13174
|
+
}
|
|
13175
|
+
if (message.fundingMode !== 0) {
|
|
13176
|
+
obj.fundingMode = aIFundingModeToJSON(message.fundingMode);
|
|
13177
|
+
}
|
|
13178
|
+
if (message.modelCalls !== 0) {
|
|
13179
|
+
obj.modelCalls = Math.round(message.modelCalls);
|
|
13180
|
+
}
|
|
13181
|
+
if (message.inputTokens !== 0) {
|
|
13182
|
+
obj.inputTokens = Math.round(message.inputTokens);
|
|
13183
|
+
}
|
|
13184
|
+
if (message.outputTokens !== 0) {
|
|
13185
|
+
obj.outputTokens = Math.round(message.outputTokens);
|
|
13186
|
+
}
|
|
13187
|
+
if (message.cacheReadTokens !== 0) {
|
|
13188
|
+
obj.cacheReadTokens = Math.round(message.cacheReadTokens);
|
|
13189
|
+
}
|
|
13190
|
+
if (message.cacheWriteTokens !== 0) {
|
|
13191
|
+
obj.cacheWriteTokens = Math.round(message.cacheWriteTokens);
|
|
13192
|
+
}
|
|
13193
|
+
if (message.costUsd !== 0) {
|
|
13194
|
+
obj.costUsd = message.costUsd;
|
|
13195
|
+
}
|
|
13196
|
+
return obj;
|
|
13197
|
+
},
|
|
13198
|
+
|
|
13199
|
+
create<I extends Exact<DeepPartial<ProjectUsageBucket>, I>>(base?: I): ProjectUsageBucket {
|
|
13200
|
+
return ProjectUsageBucket.fromPartial(base ?? ({} as any));
|
|
13201
|
+
},
|
|
13202
|
+
fromPartial<I extends Exact<DeepPartial<ProjectUsageBucket>, I>>(object: I): ProjectUsageBucket {
|
|
13203
|
+
const message = createBaseProjectUsageBucket();
|
|
13204
|
+
message.startTime = object.startTime ?? undefined;
|
|
13205
|
+
message.model = object.model ?? "";
|
|
13206
|
+
message.provider = object.provider ?? "";
|
|
13207
|
+
message.sourceSystem = object.sourceSystem ?? "";
|
|
13208
|
+
message.fundingMode = object.fundingMode ?? 0;
|
|
13209
|
+
message.modelCalls = object.modelCalls ?? 0;
|
|
13210
|
+
message.inputTokens = object.inputTokens ?? 0;
|
|
13211
|
+
message.outputTokens = object.outputTokens ?? 0;
|
|
13212
|
+
message.cacheReadTokens = object.cacheReadTokens ?? 0;
|
|
13213
|
+
message.cacheWriteTokens = object.cacheWriteTokens ?? 0;
|
|
13214
|
+
message.costUsd = object.costUsd ?? 0;
|
|
13215
|
+
return message;
|
|
13216
|
+
},
|
|
13217
|
+
};
|
|
13218
|
+
|
|
12912
13219
|
function createBaseProjectSummariesRequest(): ProjectSummariesRequest {
|
|
12913
13220
|
return { organizationId: "", projectIds: [], activeAfter: undefined };
|
|
12914
13221
|
}
|
|
@@ -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>}
|