@miradorlabs/web-grpc 2.70.0 → 2.71.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miradorlabs/web-grpc",
3
- "version": "2.70.0",
3
+ "version": "2.71.0",
4
4
  "description": "Generated gRPC (grpc-js) client stubs for the Mirador web gateway.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1613,31 +1613,6 @@ export interface AIFileRow {
1613
1613
  subscriptionUnlandedCostUsd: number;
1614
1614
  }
1615
1615
 
1616
- export interface BurnMapRequest {
1617
- organizationId: string;
1618
- projectId: string;
1619
- }
1620
-
1621
- /**
1622
- * BurnMapFile is one file's burn-map tile — the per-file working state the treemap renders and drills into.
1623
- * repo_id is the checkout root; (repo_id, path) uniquely keys a tile (repository_key is display enrichment,
1624
- * shared when one repo/ref is checked out at several roots). Net = notional − subscription on either axis; the
1625
- * client derives landed = total − unlanded, its family from state, and picks the tile metric.
1626
- */
1627
- export interface BurnMapFile {
1628
- repoId: string;
1629
- repositoryKey: string;
1630
- ref: string;
1631
- path: string;
1632
- state: string;
1633
- edits: number;
1634
- distinctSessions: number;
1635
- unlandedCostUsd: number;
1636
- subscriptionUnlandedCostUsd: number;
1637
- totalCostUsd: number;
1638
- subscriptionTotalCostUsd: number;
1639
- }
1640
-
1641
1616
  export interface FilesSummaryRequest {
1642
1617
  organizationId: string;
1643
1618
  projectId: string;
@@ -13917,368 +13892,6 @@ export const AIFileRow: MessageFns<AIFileRow> = {
13917
13892
  },
13918
13893
  };
13919
13894
 
13920
- function createBaseBurnMapRequest(): BurnMapRequest {
13921
- return { organizationId: "", projectId: "" };
13922
- }
13923
-
13924
- export const BurnMapRequest: MessageFns<BurnMapRequest> = {
13925
- encode(message: BurnMapRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
13926
- if (message.organizationId !== "") {
13927
- writer.uint32(10).string(message.organizationId);
13928
- }
13929
- if (message.projectId !== "") {
13930
- writer.uint32(18).string(message.projectId);
13931
- }
13932
- return writer;
13933
- },
13934
-
13935
- decode(input: BinaryReader | Uint8Array, length?: number): BurnMapRequest {
13936
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13937
- const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
13938
- if (previousRecursionDepth >= 100) {
13939
- throw new globalThis.Error("protobuf decode recursion limit exceeded");
13940
- }
13941
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
13942
- try {
13943
- const end = length === undefined ? reader.len : reader.pos + length;
13944
- const message = createBaseBurnMapRequest();
13945
- while (reader.pos < end) {
13946
- const tag = reader.uint32();
13947
- switch (tag >>> 3) {
13948
- case 1: {
13949
- if (tag !== 10) {
13950
- break;
13951
- }
13952
-
13953
- message.organizationId = reader.string();
13954
- continue;
13955
- }
13956
- case 2: {
13957
- if (tag !== 18) {
13958
- break;
13959
- }
13960
-
13961
- message.projectId = reader.string();
13962
- continue;
13963
- }
13964
- }
13965
- if ((tag & 7) === 4 || tag === 0) {
13966
- break;
13967
- }
13968
- reader.skip(tag & 7);
13969
- }
13970
- return message;
13971
- } finally {
13972
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
13973
- }
13974
- },
13975
-
13976
- fromJSON(object: any): BurnMapRequest {
13977
- return {
13978
- organizationId: isSet(object.organizationId)
13979
- ? globalThis.String(object.organizationId)
13980
- : isSet(object.organization_id)
13981
- ? globalThis.String(object.organization_id)
13982
- : "",
13983
- projectId: isSet(object.projectId)
13984
- ? globalThis.String(object.projectId)
13985
- : isSet(object.project_id)
13986
- ? globalThis.String(object.project_id)
13987
- : "",
13988
- };
13989
- },
13990
-
13991
- toJSON(message: BurnMapRequest): unknown {
13992
- const obj: any = {};
13993
- if (message.organizationId !== "") {
13994
- obj.organizationId = message.organizationId;
13995
- }
13996
- if (message.projectId !== "") {
13997
- obj.projectId = message.projectId;
13998
- }
13999
- return obj;
14000
- },
14001
-
14002
- create<I extends Exact<DeepPartial<BurnMapRequest>, I>>(base?: I): BurnMapRequest {
14003
- return BurnMapRequest.fromPartial(base ?? ({} as any));
14004
- },
14005
- fromPartial<I extends Exact<DeepPartial<BurnMapRequest>, I>>(object: I): BurnMapRequest {
14006
- const message = createBaseBurnMapRequest();
14007
- message.organizationId = object.organizationId ?? "";
14008
- message.projectId = object.projectId ?? "";
14009
- return message;
14010
- },
14011
- };
14012
-
14013
- function createBaseBurnMapFile(): BurnMapFile {
14014
- return {
14015
- repoId: "",
14016
- repositoryKey: "",
14017
- ref: "",
14018
- path: "",
14019
- state: "",
14020
- edits: 0,
14021
- distinctSessions: 0,
14022
- unlandedCostUsd: 0,
14023
- subscriptionUnlandedCostUsd: 0,
14024
- totalCostUsd: 0,
14025
- subscriptionTotalCostUsd: 0,
14026
- };
14027
- }
14028
-
14029
- export const BurnMapFile: MessageFns<BurnMapFile> = {
14030
- encode(message: BurnMapFile, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
14031
- if (message.repoId !== "") {
14032
- writer.uint32(10).string(message.repoId);
14033
- }
14034
- if (message.repositoryKey !== "") {
14035
- writer.uint32(18).string(message.repositoryKey);
14036
- }
14037
- if (message.ref !== "") {
14038
- writer.uint32(26).string(message.ref);
14039
- }
14040
- if (message.path !== "") {
14041
- writer.uint32(34).string(message.path);
14042
- }
14043
- if (message.state !== "") {
14044
- writer.uint32(42).string(message.state);
14045
- }
14046
- if (message.edits !== 0) {
14047
- writer.uint32(48).uint64(message.edits);
14048
- }
14049
- if (message.distinctSessions !== 0) {
14050
- writer.uint32(56).uint64(message.distinctSessions);
14051
- }
14052
- if (message.unlandedCostUsd !== 0) {
14053
- writer.uint32(65).double(message.unlandedCostUsd);
14054
- }
14055
- if (message.subscriptionUnlandedCostUsd !== 0) {
14056
- writer.uint32(73).double(message.subscriptionUnlandedCostUsd);
14057
- }
14058
- if (message.totalCostUsd !== 0) {
14059
- writer.uint32(81).double(message.totalCostUsd);
14060
- }
14061
- if (message.subscriptionTotalCostUsd !== 0) {
14062
- writer.uint32(89).double(message.subscriptionTotalCostUsd);
14063
- }
14064
- return writer;
14065
- },
14066
-
14067
- decode(input: BinaryReader | Uint8Array, length?: number): BurnMapFile {
14068
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
14069
- const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
14070
- if (previousRecursionDepth >= 100) {
14071
- throw new globalThis.Error("protobuf decode recursion limit exceeded");
14072
- }
14073
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
14074
- try {
14075
- const end = length === undefined ? reader.len : reader.pos + length;
14076
- const message = createBaseBurnMapFile();
14077
- while (reader.pos < end) {
14078
- const tag = reader.uint32();
14079
- switch (tag >>> 3) {
14080
- case 1: {
14081
- if (tag !== 10) {
14082
- break;
14083
- }
14084
-
14085
- message.repoId = reader.string();
14086
- continue;
14087
- }
14088
- case 2: {
14089
- if (tag !== 18) {
14090
- break;
14091
- }
14092
-
14093
- message.repositoryKey = reader.string();
14094
- continue;
14095
- }
14096
- case 3: {
14097
- if (tag !== 26) {
14098
- break;
14099
- }
14100
-
14101
- message.ref = reader.string();
14102
- continue;
14103
- }
14104
- case 4: {
14105
- if (tag !== 34) {
14106
- break;
14107
- }
14108
-
14109
- message.path = reader.string();
14110
- continue;
14111
- }
14112
- case 5: {
14113
- if (tag !== 42) {
14114
- break;
14115
- }
14116
-
14117
- message.state = reader.string();
14118
- continue;
14119
- }
14120
- case 6: {
14121
- if (tag !== 48) {
14122
- break;
14123
- }
14124
-
14125
- message.edits = longToNumber(reader.uint64());
14126
- continue;
14127
- }
14128
- case 7: {
14129
- if (tag !== 56) {
14130
- break;
14131
- }
14132
-
14133
- message.distinctSessions = longToNumber(reader.uint64());
14134
- continue;
14135
- }
14136
- case 8: {
14137
- if (tag !== 65) {
14138
- break;
14139
- }
14140
-
14141
- message.unlandedCostUsd = reader.double();
14142
- continue;
14143
- }
14144
- case 9: {
14145
- if (tag !== 73) {
14146
- break;
14147
- }
14148
-
14149
- message.subscriptionUnlandedCostUsd = reader.double();
14150
- continue;
14151
- }
14152
- case 10: {
14153
- if (tag !== 81) {
14154
- break;
14155
- }
14156
-
14157
- message.totalCostUsd = reader.double();
14158
- continue;
14159
- }
14160
- case 11: {
14161
- if (tag !== 89) {
14162
- break;
14163
- }
14164
-
14165
- message.subscriptionTotalCostUsd = reader.double();
14166
- continue;
14167
- }
14168
- }
14169
- if ((tag & 7) === 4 || tag === 0) {
14170
- break;
14171
- }
14172
- reader.skip(tag & 7);
14173
- }
14174
- return message;
14175
- } finally {
14176
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
14177
- }
14178
- },
14179
-
14180
- fromJSON(object: any): BurnMapFile {
14181
- return {
14182
- repoId: isSet(object.repoId)
14183
- ? globalThis.String(object.repoId)
14184
- : isSet(object.repo_id)
14185
- ? globalThis.String(object.repo_id)
14186
- : "",
14187
- repositoryKey: isSet(object.repositoryKey)
14188
- ? globalThis.String(object.repositoryKey)
14189
- : isSet(object.repository_key)
14190
- ? globalThis.String(object.repository_key)
14191
- : "",
14192
- ref: isSet(object.ref) ? globalThis.String(object.ref) : "",
14193
- path: isSet(object.path) ? globalThis.String(object.path) : "",
14194
- state: isSet(object.state) ? globalThis.String(object.state) : "",
14195
- edits: isSet(object.edits) ? globalThis.Number(object.edits) : 0,
14196
- distinctSessions: isSet(object.distinctSessions)
14197
- ? globalThis.Number(object.distinctSessions)
14198
- : isSet(object.distinct_sessions)
14199
- ? globalThis.Number(object.distinct_sessions)
14200
- : 0,
14201
- unlandedCostUsd: isSet(object.unlandedCostUsd)
14202
- ? globalThis.Number(object.unlandedCostUsd)
14203
- : isSet(object.unlanded_cost_usd)
14204
- ? globalThis.Number(object.unlanded_cost_usd)
14205
- : 0,
14206
- subscriptionUnlandedCostUsd: isSet(object.subscriptionUnlandedCostUsd)
14207
- ? globalThis.Number(object.subscriptionUnlandedCostUsd)
14208
- : isSet(object.subscription_unlanded_cost_usd)
14209
- ? globalThis.Number(object.subscription_unlanded_cost_usd)
14210
- : 0,
14211
- totalCostUsd: isSet(object.totalCostUsd)
14212
- ? globalThis.Number(object.totalCostUsd)
14213
- : isSet(object.total_cost_usd)
14214
- ? globalThis.Number(object.total_cost_usd)
14215
- : 0,
14216
- subscriptionTotalCostUsd: isSet(object.subscriptionTotalCostUsd)
14217
- ? globalThis.Number(object.subscriptionTotalCostUsd)
14218
- : isSet(object.subscription_total_cost_usd)
14219
- ? globalThis.Number(object.subscription_total_cost_usd)
14220
- : 0,
14221
- };
14222
- },
14223
-
14224
- toJSON(message: BurnMapFile): unknown {
14225
- const obj: any = {};
14226
- if (message.repoId !== "") {
14227
- obj.repoId = message.repoId;
14228
- }
14229
- if (message.repositoryKey !== "") {
14230
- obj.repositoryKey = message.repositoryKey;
14231
- }
14232
- if (message.ref !== "") {
14233
- obj.ref = message.ref;
14234
- }
14235
- if (message.path !== "") {
14236
- obj.path = message.path;
14237
- }
14238
- if (message.state !== "") {
14239
- obj.state = message.state;
14240
- }
14241
- if (message.edits !== 0) {
14242
- obj.edits = Math.round(message.edits);
14243
- }
14244
- if (message.distinctSessions !== 0) {
14245
- obj.distinctSessions = Math.round(message.distinctSessions);
14246
- }
14247
- if (message.unlandedCostUsd !== 0) {
14248
- obj.unlandedCostUsd = message.unlandedCostUsd;
14249
- }
14250
- if (message.subscriptionUnlandedCostUsd !== 0) {
14251
- obj.subscriptionUnlandedCostUsd = message.subscriptionUnlandedCostUsd;
14252
- }
14253
- if (message.totalCostUsd !== 0) {
14254
- obj.totalCostUsd = message.totalCostUsd;
14255
- }
14256
- if (message.subscriptionTotalCostUsd !== 0) {
14257
- obj.subscriptionTotalCostUsd = message.subscriptionTotalCostUsd;
14258
- }
14259
- return obj;
14260
- },
14261
-
14262
- create<I extends Exact<DeepPartial<BurnMapFile>, I>>(base?: I): BurnMapFile {
14263
- return BurnMapFile.fromPartial(base ?? ({} as any));
14264
- },
14265
- fromPartial<I extends Exact<DeepPartial<BurnMapFile>, I>>(object: I): BurnMapFile {
14266
- const message = createBaseBurnMapFile();
14267
- message.repoId = object.repoId ?? "";
14268
- message.repositoryKey = object.repositoryKey ?? "";
14269
- message.ref = object.ref ?? "";
14270
- message.path = object.path ?? "";
14271
- message.state = object.state ?? "";
14272
- message.edits = object.edits ?? 0;
14273
- message.distinctSessions = object.distinctSessions ?? 0;
14274
- message.unlandedCostUsd = object.unlandedCostUsd ?? 0;
14275
- message.subscriptionUnlandedCostUsd = object.subscriptionUnlandedCostUsd ?? 0;
14276
- message.totalCostUsd = object.totalCostUsd ?? 0;
14277
- message.subscriptionTotalCostUsd = object.subscriptionTotalCostUsd ?? 0;
14278
- return message;
14279
- },
14280
- };
14281
-
14282
13895
  function createBaseFilesSummaryRequest(): FilesSummaryRequest {
14283
13896
  return { organizationId: "", projectId: "", filter: undefined, abandonedHorizon: undefined, groupBy: 0 };
14284
13897
  }
@@ -17015,12 +16628,6 @@ export interface AIGatewayService {
17015
16628
  * unverified, a complete snapshot re-derived each tick.
17016
16629
  */
17017
16630
  StreamFilesSummary(request: FilesSummaryRequest, metadata?: Metadata): Observable<FilesSummary>;
17018
- /**
17019
- * GetBurnMap streams the burn-map treemap's per-file tiles so the client no longer pages every file row to
17020
- * build them. Hottest by unlanded cost first; server-streaming so a large project never exceeds the message
17021
- * size limit. Squarify geometry stays client-side.
17022
- */
17023
- GetBurnMap(request: BurnMapRequest, metadata?: Metadata): Observable<BurnMapFile>;
17024
16631
  /** Latest observed list price per (source, provider, model) from the global catalog. */
17025
16632
  ListModelPrices(request: ListModelPricesRequest, metadata?: Metadata): Promise<ListModelPricesResponse>;
17026
16633
  /**
@@ -17071,7 +16678,6 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
17071
16678
  this.StreamProjectOverview = this.StreamProjectOverview.bind(this);
17072
16679
  this.ListFiles = this.ListFiles.bind(this);
17073
16680
  this.StreamFilesSummary = this.StreamFilesSummary.bind(this);
17074
- this.GetBurnMap = this.GetBurnMap.bind(this);
17075
16681
  this.ListModelPrices = this.ListModelPrices.bind(this);
17076
16682
  this.ListModelPriceHistory = this.ListModelPriceHistory.bind(this);
17077
16683
  this.ListResourceRankings = this.ListResourceRankings.bind(this);
@@ -17197,12 +16803,6 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
17197
16803
  return result.pipe(map((data) => FilesSummary.decode(new BinaryReader(data))));
17198
16804
  }
17199
16805
 
17200
- GetBurnMap(request: BurnMapRequest, metadata?: Metadata): Observable<BurnMapFile> {
17201
- const data = BurnMapRequest.encode(request).finish();
17202
- const result = this.rpc.serverStreamingRequest(this.service, "GetBurnMap", data, metadata);
17203
- return result.pipe(map((data) => BurnMapFile.decode(new BinaryReader(data))));
17204
- }
17205
-
17206
16806
  ListModelPrices(request: ListModelPricesRequest, metadata?: Metadata): Promise<ListModelPricesResponse> {
17207
16807
  const data = ListModelPricesRequest.encode(request).finish();
17208
16808
  const promise = this.rpc.request(this.service, "ListModelPrices", data, metadata);
@@ -52,28 +52,6 @@ function deserialize_gateway_web_v1_ActivityRhythmRequest(buffer_arg) {
52
52
  return proto_gateway_web_v1_ai_gateway_pb.ActivityRhythmRequest.deserializeBinary(new Uint8Array(buffer_arg));
53
53
  }
54
54
 
55
- function serialize_gateway_web_v1_BurnMapFile(arg) {
56
- if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.BurnMapFile)) {
57
- throw new Error('Expected argument of type gateway.web.v1.BurnMapFile');
58
- }
59
- return Buffer.from(arg.serializeBinary());
60
- }
61
-
62
- function deserialize_gateway_web_v1_BurnMapFile(buffer_arg) {
63
- return proto_gateway_web_v1_ai_gateway_pb.BurnMapFile.deserializeBinary(new Uint8Array(buffer_arg));
64
- }
65
-
66
- function serialize_gateway_web_v1_BurnMapRequest(arg) {
67
- if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.BurnMapRequest)) {
68
- throw new Error('Expected argument of type gateway.web.v1.BurnMapRequest');
69
- }
70
- return Buffer.from(arg.serializeBinary());
71
- }
72
-
73
- function deserialize_gateway_web_v1_BurnMapRequest(buffer_arg) {
74
- return proto_gateway_web_v1_ai_gateway_pb.BurnMapRequest.deserializeBinary(new Uint8Array(buffer_arg));
75
- }
76
-
77
55
  function serialize_gateway_web_v1_BurnRate(arg) {
78
56
  if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.BurnRate)) {
79
57
  throw new Error('Expected argument of type gateway.web.v1.BurnRate');
@@ -778,20 +756,6 @@ streamFilesSummary: {
778
756
  responseSerialize: serialize_gateway_web_v1_FilesSummary,
779
757
  responseDeserialize: deserialize_gateway_web_v1_FilesSummary,
780
758
  },
781
- // GetBurnMap streams the burn-map treemap's per-file tiles so the client no longer pages every file row to
782
- // build them. Hottest by unlanded cost first; server-streaming so a large project never exceeds the message
783
- // size limit. Squarify geometry stays client-side.
784
- getBurnMap: {
785
- path: '/gateway.web.v1.AIGatewayService/GetBurnMap',
786
- requestStream: false,
787
- responseStream: true,
788
- requestType: proto_gateway_web_v1_ai_gateway_pb.BurnMapRequest,
789
- responseType: proto_gateway_web_v1_ai_gateway_pb.BurnMapFile,
790
- requestSerialize: serialize_gateway_web_v1_BurnMapRequest,
791
- requestDeserialize: deserialize_gateway_web_v1_BurnMapRequest,
792
- responseSerialize: serialize_gateway_web_v1_BurnMapFile,
793
- responseDeserialize: deserialize_gateway_web_v1_BurnMapFile,
794
- },
795
759
  // Latest observed list price per (source, provider, model) from the global catalog.
796
760
  listModelPrices: {
797
761
  path: '/gateway.web.v1.AIGatewayService/ListModelPrices',
@@ -54,8 +54,6 @@ goog.exportSymbol('proto.gateway.web.v1.AITokenUsage', null, global);
54
54
  goog.exportSymbol('proto.gateway.web.v1.ActivityRhythm', null, global);
55
55
  goog.exportSymbol('proto.gateway.web.v1.ActivityRhythmBucket', null, global);
56
56
  goog.exportSymbol('proto.gateway.web.v1.ActivityRhythmRequest', null, global);
57
- goog.exportSymbol('proto.gateway.web.v1.BurnMapFile', null, global);
58
- goog.exportSymbol('proto.gateway.web.v1.BurnMapRequest', null, global);
59
57
  goog.exportSymbol('proto.gateway.web.v1.BurnRate', null, global);
60
58
  goog.exportSymbol('proto.gateway.web.v1.BurnRateBreakdown', null, global);
61
59
  goog.exportSymbol('proto.gateway.web.v1.BurnRateGroup', null, global);
@@ -1598,48 +1596,6 @@ if (goog.DEBUG && !COMPILED) {
1598
1596
  */
1599
1597
  proto.gateway.web.v1.AIFileRow.displayName = 'proto.gateway.web.v1.AIFileRow';
1600
1598
  }
1601
- /**
1602
- * Generated by JsPbCodeGenerator.
1603
- * @param {Array=} opt_data Optional initial data array, typically from a
1604
- * server response, or constructed directly in Javascript. The array is used
1605
- * in place and becomes part of the constructed object. It is not cloned.
1606
- * If no data is provided, the constructed object will be empty, but still
1607
- * valid.
1608
- * @extends {jspb.Message}
1609
- * @constructor
1610
- */
1611
- proto.gateway.web.v1.BurnMapRequest = function(opt_data) {
1612
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1613
- };
1614
- goog.inherits(proto.gateway.web.v1.BurnMapRequest, jspb.Message);
1615
- if (goog.DEBUG && !COMPILED) {
1616
- /**
1617
- * @public
1618
- * @override
1619
- */
1620
- proto.gateway.web.v1.BurnMapRequest.displayName = 'proto.gateway.web.v1.BurnMapRequest';
1621
- }
1622
- /**
1623
- * Generated by JsPbCodeGenerator.
1624
- * @param {Array=} opt_data Optional initial data array, typically from a
1625
- * server response, or constructed directly in Javascript. The array is used
1626
- * in place and becomes part of the constructed object. It is not cloned.
1627
- * If no data is provided, the constructed object will be empty, but still
1628
- * valid.
1629
- * @extends {jspb.Message}
1630
- * @constructor
1631
- */
1632
- proto.gateway.web.v1.BurnMapFile = function(opt_data) {
1633
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1634
- };
1635
- goog.inherits(proto.gateway.web.v1.BurnMapFile, jspb.Message);
1636
- if (goog.DEBUG && !COMPILED) {
1637
- /**
1638
- * @public
1639
- * @override
1640
- */
1641
- proto.gateway.web.v1.BurnMapFile.displayName = 'proto.gateway.web.v1.BurnMapFile';
1642
- }
1643
1599
  /**
1644
1600
  * Generated by JsPbCodeGenerator.
1645
1601
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -24813,596 +24769,6 @@ proto.gateway.web.v1.AIFileRow.prototype.setSubscriptionUnlandedCostUsd = functi
24813
24769
 
24814
24770
 
24815
24771
 
24816
- if (jspb.Message.GENERATE_TO_OBJECT) {
24817
- /**
24818
- * Creates an object representation of this proto.
24819
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
24820
- * Optional fields that are not set will be set to undefined.
24821
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24822
- * For the list of reserved names please see:
24823
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24824
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24825
- * JSPB instance for transitional soy proto support:
24826
- * http://goto/soy-param-migration
24827
- * @return {!Object}
24828
- */
24829
- proto.gateway.web.v1.BurnMapRequest.prototype.toObject = function(opt_includeInstance) {
24830
- return proto.gateway.web.v1.BurnMapRequest.toObject(opt_includeInstance, this);
24831
- };
24832
-
24833
-
24834
- /**
24835
- * Static version of the {@see toObject} method.
24836
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24837
- * the JSPB instance for transitional soy proto support:
24838
- * http://goto/soy-param-migration
24839
- * @param {!proto.gateway.web.v1.BurnMapRequest} msg The msg instance to transform.
24840
- * @return {!Object}
24841
- * @suppress {unusedLocalVariables} f is only used for nested messages
24842
- */
24843
- proto.gateway.web.v1.BurnMapRequest.toObject = function(includeInstance, msg) {
24844
- var f, obj = {
24845
- organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
24846
- projectId: jspb.Message.getFieldWithDefault(msg, 2, "")
24847
- };
24848
-
24849
- if (includeInstance) {
24850
- obj.$jspbMessageInstance = msg;
24851
- }
24852
- return obj;
24853
- };
24854
- }
24855
-
24856
-
24857
- /**
24858
- * Deserializes binary data (in protobuf wire format).
24859
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
24860
- * @return {!proto.gateway.web.v1.BurnMapRequest}
24861
- */
24862
- proto.gateway.web.v1.BurnMapRequest.deserializeBinary = function(bytes) {
24863
- var reader = new jspb.BinaryReader(bytes);
24864
- var msg = new proto.gateway.web.v1.BurnMapRequest;
24865
- return proto.gateway.web.v1.BurnMapRequest.deserializeBinaryFromReader(msg, reader);
24866
- };
24867
-
24868
-
24869
- /**
24870
- * Deserializes binary data (in protobuf wire format) from the
24871
- * given reader into the given message object.
24872
- * @param {!proto.gateway.web.v1.BurnMapRequest} msg The message object to deserialize into.
24873
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24874
- * @return {!proto.gateway.web.v1.BurnMapRequest}
24875
- */
24876
- proto.gateway.web.v1.BurnMapRequest.deserializeBinaryFromReader = function(msg, reader) {
24877
- while (reader.nextField()) {
24878
- if (reader.isEndGroup()) {
24879
- break;
24880
- }
24881
- var field = reader.getFieldNumber();
24882
- switch (field) {
24883
- case 1:
24884
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
24885
- msg.setOrganizationId(value);
24886
- break;
24887
- case 2:
24888
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
24889
- msg.setProjectId(value);
24890
- break;
24891
- default:
24892
- reader.skipField();
24893
- break;
24894
- }
24895
- }
24896
- return msg;
24897
- };
24898
-
24899
-
24900
- /**
24901
- * Serializes the message to binary data (in protobuf wire format).
24902
- * @return {!Uint8Array}
24903
- */
24904
- proto.gateway.web.v1.BurnMapRequest.prototype.serializeBinary = function() {
24905
- var writer = new jspb.BinaryWriter();
24906
- proto.gateway.web.v1.BurnMapRequest.serializeBinaryToWriter(this, writer);
24907
- return writer.getResultBuffer();
24908
- };
24909
-
24910
-
24911
- /**
24912
- * Serializes the given message to binary data (in protobuf wire
24913
- * format), writing to the given BinaryWriter.
24914
- * @param {!proto.gateway.web.v1.BurnMapRequest} message
24915
- * @param {!jspb.BinaryWriter} writer
24916
- * @suppress {unusedLocalVariables} f is only used for nested messages
24917
- */
24918
- proto.gateway.web.v1.BurnMapRequest.serializeBinaryToWriter = function(message, writer) {
24919
- var f = undefined;
24920
- f = message.getOrganizationId();
24921
- if (f.length > 0) {
24922
- writer.writeString(
24923
- 1,
24924
- f
24925
- );
24926
- }
24927
- f = message.getProjectId();
24928
- if (f.length > 0) {
24929
- writer.writeString(
24930
- 2,
24931
- f
24932
- );
24933
- }
24934
- };
24935
-
24936
-
24937
- /**
24938
- * optional string organization_id = 1;
24939
- * @return {string}
24940
- */
24941
- proto.gateway.web.v1.BurnMapRequest.prototype.getOrganizationId = function() {
24942
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
24943
- };
24944
-
24945
-
24946
- /**
24947
- * @param {string} value
24948
- * @return {!proto.gateway.web.v1.BurnMapRequest} returns this
24949
- */
24950
- proto.gateway.web.v1.BurnMapRequest.prototype.setOrganizationId = function(value) {
24951
- return jspb.Message.setProto3StringField(this, 1, value);
24952
- };
24953
-
24954
-
24955
- /**
24956
- * optional string project_id = 2;
24957
- * @return {string}
24958
- */
24959
- proto.gateway.web.v1.BurnMapRequest.prototype.getProjectId = function() {
24960
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
24961
- };
24962
-
24963
-
24964
- /**
24965
- * @param {string} value
24966
- * @return {!proto.gateway.web.v1.BurnMapRequest} returns this
24967
- */
24968
- proto.gateway.web.v1.BurnMapRequest.prototype.setProjectId = function(value) {
24969
- return jspb.Message.setProto3StringField(this, 2, value);
24970
- };
24971
-
24972
-
24973
-
24974
-
24975
-
24976
- if (jspb.Message.GENERATE_TO_OBJECT) {
24977
- /**
24978
- * Creates an object representation of this proto.
24979
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
24980
- * Optional fields that are not set will be set to undefined.
24981
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24982
- * For the list of reserved names please see:
24983
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24984
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24985
- * JSPB instance for transitional soy proto support:
24986
- * http://goto/soy-param-migration
24987
- * @return {!Object}
24988
- */
24989
- proto.gateway.web.v1.BurnMapFile.prototype.toObject = function(opt_includeInstance) {
24990
- return proto.gateway.web.v1.BurnMapFile.toObject(opt_includeInstance, this);
24991
- };
24992
-
24993
-
24994
- /**
24995
- * Static version of the {@see toObject} method.
24996
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24997
- * the JSPB instance for transitional soy proto support:
24998
- * http://goto/soy-param-migration
24999
- * @param {!proto.gateway.web.v1.BurnMapFile} msg The msg instance to transform.
25000
- * @return {!Object}
25001
- * @suppress {unusedLocalVariables} f is only used for nested messages
25002
- */
25003
- proto.gateway.web.v1.BurnMapFile.toObject = function(includeInstance, msg) {
25004
- var f, obj = {
25005
- repoId: jspb.Message.getFieldWithDefault(msg, 1, ""),
25006
- repositoryKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
25007
- ref: jspb.Message.getFieldWithDefault(msg, 3, ""),
25008
- path: jspb.Message.getFieldWithDefault(msg, 4, ""),
25009
- state: jspb.Message.getFieldWithDefault(msg, 5, ""),
25010
- edits: jspb.Message.getFieldWithDefault(msg, 6, 0),
25011
- distinctSessions: jspb.Message.getFieldWithDefault(msg, 7, 0),
25012
- unlandedCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
25013
- subscriptionUnlandedCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
25014
- totalCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
25015
- subscriptionTotalCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0)
25016
- };
25017
-
25018
- if (includeInstance) {
25019
- obj.$jspbMessageInstance = msg;
25020
- }
25021
- return obj;
25022
- };
25023
- }
25024
-
25025
-
25026
- /**
25027
- * Deserializes binary data (in protobuf wire format).
25028
- * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
25029
- * @return {!proto.gateway.web.v1.BurnMapFile}
25030
- */
25031
- proto.gateway.web.v1.BurnMapFile.deserializeBinary = function(bytes) {
25032
- var reader = new jspb.BinaryReader(bytes);
25033
- var msg = new proto.gateway.web.v1.BurnMapFile;
25034
- return proto.gateway.web.v1.BurnMapFile.deserializeBinaryFromReader(msg, reader);
25035
- };
25036
-
25037
-
25038
- /**
25039
- * Deserializes binary data (in protobuf wire format) from the
25040
- * given reader into the given message object.
25041
- * @param {!proto.gateway.web.v1.BurnMapFile} msg The message object to deserialize into.
25042
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25043
- * @return {!proto.gateway.web.v1.BurnMapFile}
25044
- */
25045
- proto.gateway.web.v1.BurnMapFile.deserializeBinaryFromReader = function(msg, reader) {
25046
- while (reader.nextField()) {
25047
- if (reader.isEndGroup()) {
25048
- break;
25049
- }
25050
- var field = reader.getFieldNumber();
25051
- switch (field) {
25052
- case 1:
25053
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
25054
- msg.setRepoId(value);
25055
- break;
25056
- case 2:
25057
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
25058
- msg.setRepositoryKey(value);
25059
- break;
25060
- case 3:
25061
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
25062
- msg.setRef(value);
25063
- break;
25064
- case 4:
25065
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
25066
- msg.setPath(value);
25067
- break;
25068
- case 5:
25069
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
25070
- msg.setState(value);
25071
- break;
25072
- case 6:
25073
- var value = /** @type {number} */ (reader.readUint64());
25074
- msg.setEdits(value);
25075
- break;
25076
- case 7:
25077
- var value = /** @type {number} */ (reader.readUint64());
25078
- msg.setDistinctSessions(value);
25079
- break;
25080
- case 8:
25081
- var value = /** @type {number} */ (reader.readDouble());
25082
- msg.setUnlandedCostUsd(value);
25083
- break;
25084
- case 9:
25085
- var value = /** @type {number} */ (reader.readDouble());
25086
- msg.setSubscriptionUnlandedCostUsd(value);
25087
- break;
25088
- case 10:
25089
- var value = /** @type {number} */ (reader.readDouble());
25090
- msg.setTotalCostUsd(value);
25091
- break;
25092
- case 11:
25093
- var value = /** @type {number} */ (reader.readDouble());
25094
- msg.setSubscriptionTotalCostUsd(value);
25095
- break;
25096
- default:
25097
- reader.skipField();
25098
- break;
25099
- }
25100
- }
25101
- return msg;
25102
- };
25103
-
25104
-
25105
- /**
25106
- * Serializes the message to binary data (in protobuf wire format).
25107
- * @return {!Uint8Array}
25108
- */
25109
- proto.gateway.web.v1.BurnMapFile.prototype.serializeBinary = function() {
25110
- var writer = new jspb.BinaryWriter();
25111
- proto.gateway.web.v1.BurnMapFile.serializeBinaryToWriter(this, writer);
25112
- return writer.getResultBuffer();
25113
- };
25114
-
25115
-
25116
- /**
25117
- * Serializes the given message to binary data (in protobuf wire
25118
- * format), writing to the given BinaryWriter.
25119
- * @param {!proto.gateway.web.v1.BurnMapFile} message
25120
- * @param {!jspb.BinaryWriter} writer
25121
- * @suppress {unusedLocalVariables} f is only used for nested messages
25122
- */
25123
- proto.gateway.web.v1.BurnMapFile.serializeBinaryToWriter = function(message, writer) {
25124
- var f = undefined;
25125
- f = message.getRepoId();
25126
- if (f.length > 0) {
25127
- writer.writeString(
25128
- 1,
25129
- f
25130
- );
25131
- }
25132
- f = message.getRepositoryKey();
25133
- if (f.length > 0) {
25134
- writer.writeString(
25135
- 2,
25136
- f
25137
- );
25138
- }
25139
- f = message.getRef();
25140
- if (f.length > 0) {
25141
- writer.writeString(
25142
- 3,
25143
- f
25144
- );
25145
- }
25146
- f = message.getPath();
25147
- if (f.length > 0) {
25148
- writer.writeString(
25149
- 4,
25150
- f
25151
- );
25152
- }
25153
- f = message.getState();
25154
- if (f.length > 0) {
25155
- writer.writeString(
25156
- 5,
25157
- f
25158
- );
25159
- }
25160
- f = message.getEdits();
25161
- if (f !== 0) {
25162
- writer.writeUint64(
25163
- 6,
25164
- f
25165
- );
25166
- }
25167
- f = message.getDistinctSessions();
25168
- if (f !== 0) {
25169
- writer.writeUint64(
25170
- 7,
25171
- f
25172
- );
25173
- }
25174
- f = message.getUnlandedCostUsd();
25175
- if (f !== 0.0) {
25176
- writer.writeDouble(
25177
- 8,
25178
- f
25179
- );
25180
- }
25181
- f = message.getSubscriptionUnlandedCostUsd();
25182
- if (f !== 0.0) {
25183
- writer.writeDouble(
25184
- 9,
25185
- f
25186
- );
25187
- }
25188
- f = message.getTotalCostUsd();
25189
- if (f !== 0.0) {
25190
- writer.writeDouble(
25191
- 10,
25192
- f
25193
- );
25194
- }
25195
- f = message.getSubscriptionTotalCostUsd();
25196
- if (f !== 0.0) {
25197
- writer.writeDouble(
25198
- 11,
25199
- f
25200
- );
25201
- }
25202
- };
25203
-
25204
-
25205
- /**
25206
- * optional string repo_id = 1;
25207
- * @return {string}
25208
- */
25209
- proto.gateway.web.v1.BurnMapFile.prototype.getRepoId = function() {
25210
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
25211
- };
25212
-
25213
-
25214
- /**
25215
- * @param {string} value
25216
- * @return {!proto.gateway.web.v1.BurnMapFile} returns this
25217
- */
25218
- proto.gateway.web.v1.BurnMapFile.prototype.setRepoId = function(value) {
25219
- return jspb.Message.setProto3StringField(this, 1, value);
25220
- };
25221
-
25222
-
25223
- /**
25224
- * optional string repository_key = 2;
25225
- * @return {string}
25226
- */
25227
- proto.gateway.web.v1.BurnMapFile.prototype.getRepositoryKey = function() {
25228
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
25229
- };
25230
-
25231
-
25232
- /**
25233
- * @param {string} value
25234
- * @return {!proto.gateway.web.v1.BurnMapFile} returns this
25235
- */
25236
- proto.gateway.web.v1.BurnMapFile.prototype.setRepositoryKey = function(value) {
25237
- return jspb.Message.setProto3StringField(this, 2, value);
25238
- };
25239
-
25240
-
25241
- /**
25242
- * optional string ref = 3;
25243
- * @return {string}
25244
- */
25245
- proto.gateway.web.v1.BurnMapFile.prototype.getRef = function() {
25246
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
25247
- };
25248
-
25249
-
25250
- /**
25251
- * @param {string} value
25252
- * @return {!proto.gateway.web.v1.BurnMapFile} returns this
25253
- */
25254
- proto.gateway.web.v1.BurnMapFile.prototype.setRef = function(value) {
25255
- return jspb.Message.setProto3StringField(this, 3, value);
25256
- };
25257
-
25258
-
25259
- /**
25260
- * optional string path = 4;
25261
- * @return {string}
25262
- */
25263
- proto.gateway.web.v1.BurnMapFile.prototype.getPath = function() {
25264
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
25265
- };
25266
-
25267
-
25268
- /**
25269
- * @param {string} value
25270
- * @return {!proto.gateway.web.v1.BurnMapFile} returns this
25271
- */
25272
- proto.gateway.web.v1.BurnMapFile.prototype.setPath = function(value) {
25273
- return jspb.Message.setProto3StringField(this, 4, value);
25274
- };
25275
-
25276
-
25277
- /**
25278
- * optional string state = 5;
25279
- * @return {string}
25280
- */
25281
- proto.gateway.web.v1.BurnMapFile.prototype.getState = function() {
25282
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
25283
- };
25284
-
25285
-
25286
- /**
25287
- * @param {string} value
25288
- * @return {!proto.gateway.web.v1.BurnMapFile} returns this
25289
- */
25290
- proto.gateway.web.v1.BurnMapFile.prototype.setState = function(value) {
25291
- return jspb.Message.setProto3StringField(this, 5, value);
25292
- };
25293
-
25294
-
25295
- /**
25296
- * optional uint64 edits = 6;
25297
- * @return {number}
25298
- */
25299
- proto.gateway.web.v1.BurnMapFile.prototype.getEdits = function() {
25300
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
25301
- };
25302
-
25303
-
25304
- /**
25305
- * @param {number} value
25306
- * @return {!proto.gateway.web.v1.BurnMapFile} returns this
25307
- */
25308
- proto.gateway.web.v1.BurnMapFile.prototype.setEdits = function(value) {
25309
- return jspb.Message.setProto3IntField(this, 6, value);
25310
- };
25311
-
25312
-
25313
- /**
25314
- * optional uint64 distinct_sessions = 7;
25315
- * @return {number}
25316
- */
25317
- proto.gateway.web.v1.BurnMapFile.prototype.getDistinctSessions = function() {
25318
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
25319
- };
25320
-
25321
-
25322
- /**
25323
- * @param {number} value
25324
- * @return {!proto.gateway.web.v1.BurnMapFile} returns this
25325
- */
25326
- proto.gateway.web.v1.BurnMapFile.prototype.setDistinctSessions = function(value) {
25327
- return jspb.Message.setProto3IntField(this, 7, value);
25328
- };
25329
-
25330
-
25331
- /**
25332
- * optional double unlanded_cost_usd = 8;
25333
- * @return {number}
25334
- */
25335
- proto.gateway.web.v1.BurnMapFile.prototype.getUnlandedCostUsd = function() {
25336
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
25337
- };
25338
-
25339
-
25340
- /**
25341
- * @param {number} value
25342
- * @return {!proto.gateway.web.v1.BurnMapFile} returns this
25343
- */
25344
- proto.gateway.web.v1.BurnMapFile.prototype.setUnlandedCostUsd = function(value) {
25345
- return jspb.Message.setProto3FloatField(this, 8, value);
25346
- };
25347
-
25348
-
25349
- /**
25350
- * optional double subscription_unlanded_cost_usd = 9;
25351
- * @return {number}
25352
- */
25353
- proto.gateway.web.v1.BurnMapFile.prototype.getSubscriptionUnlandedCostUsd = function() {
25354
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
25355
- };
25356
-
25357
-
25358
- /**
25359
- * @param {number} value
25360
- * @return {!proto.gateway.web.v1.BurnMapFile} returns this
25361
- */
25362
- proto.gateway.web.v1.BurnMapFile.prototype.setSubscriptionUnlandedCostUsd = function(value) {
25363
- return jspb.Message.setProto3FloatField(this, 9, value);
25364
- };
25365
-
25366
-
25367
- /**
25368
- * optional double total_cost_usd = 10;
25369
- * @return {number}
25370
- */
25371
- proto.gateway.web.v1.BurnMapFile.prototype.getTotalCostUsd = function() {
25372
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
25373
- };
25374
-
25375
-
25376
- /**
25377
- * @param {number} value
25378
- * @return {!proto.gateway.web.v1.BurnMapFile} returns this
25379
- */
25380
- proto.gateway.web.v1.BurnMapFile.prototype.setTotalCostUsd = function(value) {
25381
- return jspb.Message.setProto3FloatField(this, 10, value);
25382
- };
25383
-
25384
-
25385
- /**
25386
- * optional double subscription_total_cost_usd = 11;
25387
- * @return {number}
25388
- */
25389
- proto.gateway.web.v1.BurnMapFile.prototype.getSubscriptionTotalCostUsd = function() {
25390
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0));
25391
- };
25392
-
25393
-
25394
- /**
25395
- * @param {number} value
25396
- * @return {!proto.gateway.web.v1.BurnMapFile} returns this
25397
- */
25398
- proto.gateway.web.v1.BurnMapFile.prototype.setSubscriptionTotalCostUsd = function(value) {
25399
- return jspb.Message.setProto3FloatField(this, 11, value);
25400
- };
25401
-
25402
-
25403
-
25404
-
25405
-
25406
24772
  if (jspb.Message.GENERATE_TO_OBJECT) {
25407
24773
  /**
25408
24774
  * Creates an object representation of this proto.