@miradorlabs/web-grpc 2.62.0 → 2.64.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.
@@ -24,12 +24,15 @@ goog.object.extend(proto, proto_gateway_common_v1_status_pb);
24
24
  var proto_gateway_web_v1_trace_gateway_pb = require('../../../../proto/gateway/web/v1/trace_gateway_pb.js');
25
25
  goog.object.extend(proto, proto_gateway_web_v1_trace_gateway_pb);
26
26
  goog.exportSymbol('proto.gateway.web.v1.AIContentPart', null, global);
27
+ goog.exportSymbol('proto.gateway.web.v1.AIEntitlementRole', null, global);
28
+ goog.exportSymbol('proto.gateway.web.v1.AIFacilityCostBreakdown', null, global);
27
29
  goog.exportSymbol('proto.gateway.web.v1.AIFileConfidence', null, global);
28
30
  goog.exportSymbol('proto.gateway.web.v1.AIFileFilter', null, global);
29
31
  goog.exportSymbol('proto.gateway.web.v1.AIFileGroupBy', null, global);
30
32
  goog.exportSymbol('proto.gateway.web.v1.AIFileLifecycle', null, global);
31
33
  goog.exportSymbol('proto.gateway.web.v1.AIFileRow', null, global);
32
34
  goog.exportSymbol('proto.gateway.web.v1.AIFileTier', null, global);
35
+ goog.exportSymbol('proto.gateway.web.v1.AIFundingMode', null, global);
33
36
  goog.exportSymbol('proto.gateway.web.v1.AIGitAction', null, global);
34
37
  goog.exportSymbol('proto.gateway.web.v1.AIGitActivity', null, global);
35
38
  goog.exportSymbol('proto.gateway.web.v1.AIGitActivityDimension', null, global);
@@ -60,6 +63,8 @@ goog.exportSymbol('proto.gateway.web.v1.DailyActivity', null, global);
60
63
  goog.exportSymbol('proto.gateway.web.v1.DailyActivityDay', null, global);
61
64
  goog.exportSymbol('proto.gateway.web.v1.DailyActivityMeasures', null, global);
62
65
  goog.exportSymbol('proto.gateway.web.v1.DailyActivityRequest', null, global);
66
+ goog.exportSymbol('proto.gateway.web.v1.EntitlementWindow', null, global);
67
+ goog.exportSymbol('proto.gateway.web.v1.EntitlementsSnapshot', null, global);
63
68
  goog.exportSymbol('proto.gateway.web.v1.FileGroup', null, global);
64
69
  goog.exportSymbol('proto.gateway.web.v1.FileTierBucket', null, global);
65
70
  goog.exportSymbol('proto.gateway.web.v1.FileTiers', null, global);
@@ -96,6 +101,7 @@ goog.exportSymbol('proto.gateway.web.v1.ProjectSessionRef', null, global);
96
101
  goog.exportSymbol('proto.gateway.web.v1.ResourceRanking', null, global);
97
102
  goog.exportSymbol('proto.gateway.web.v1.ResourceRankingsRequest', null, global);
98
103
  goog.exportSymbol('proto.gateway.web.v1.ResourceRankingsResponse', null, global);
104
+ goog.exportSymbol('proto.gateway.web.v1.SeatEntitlement', null, global);
99
105
  goog.exportSymbol('proto.gateway.web.v1.SessionFileChange', null, global);
100
106
  goog.exportSymbol('proto.gateway.web.v1.SessionFileChanges', null, global);
101
107
  goog.exportSymbol('proto.gateway.web.v1.SessionFileChangesRequest', null, global);
@@ -108,6 +114,7 @@ goog.exportSymbol('proto.gateway.web.v1.SessionTokenTimeline', null, global);
108
114
  goog.exportSymbol('proto.gateway.web.v1.SessionTokenTimelineRequest', null, global);
109
115
  goog.exportSymbol('proto.gateway.web.v1.SessionsSnapshot', null, global);
110
116
  goog.exportSymbol('proto.gateway.web.v1.SnapshotCompleted', null, global);
117
+ goog.exportSymbol('proto.gateway.web.v1.StreamEntitlementsRequest', null, global);
111
118
  goog.exportSymbol('proto.gateway.web.v1.StreamGitActivitiesRequest', null, global);
112
119
  goog.exportSymbol('proto.gateway.web.v1.StreamSessionEventsRequest', null, global);
113
120
  goog.exportSymbol('proto.gateway.web.v1.StreamSessionsRequest', null, global);
@@ -1819,6 +1826,111 @@ if (goog.DEBUG && !COMPILED) {
1819
1826
  */
1820
1827
  proto.gateway.web.v1.AITokenUsage.displayName = 'proto.gateway.web.v1.AITokenUsage';
1821
1828
  }
1829
+ /**
1830
+ * Generated by JsPbCodeGenerator.
1831
+ * @param {Array=} opt_data Optional initial data array, typically from a
1832
+ * server response, or constructed directly in Javascript. The array is used
1833
+ * in place and becomes part of the constructed object. It is not cloned.
1834
+ * If no data is provided, the constructed object will be empty, but still
1835
+ * valid.
1836
+ * @extends {jspb.Message}
1837
+ * @constructor
1838
+ */
1839
+ proto.gateway.web.v1.AIFacilityCostBreakdown = function(opt_data) {
1840
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1841
+ };
1842
+ goog.inherits(proto.gateway.web.v1.AIFacilityCostBreakdown, jspb.Message);
1843
+ if (goog.DEBUG && !COMPILED) {
1844
+ /**
1845
+ * @public
1846
+ * @override
1847
+ */
1848
+ proto.gateway.web.v1.AIFacilityCostBreakdown.displayName = 'proto.gateway.web.v1.AIFacilityCostBreakdown';
1849
+ }
1850
+ /**
1851
+ * Generated by JsPbCodeGenerator.
1852
+ * @param {Array=} opt_data Optional initial data array, typically from a
1853
+ * server response, or constructed directly in Javascript. The array is used
1854
+ * in place and becomes part of the constructed object. It is not cloned.
1855
+ * If no data is provided, the constructed object will be empty, but still
1856
+ * valid.
1857
+ * @extends {jspb.Message}
1858
+ * @constructor
1859
+ */
1860
+ proto.gateway.web.v1.StreamEntitlementsRequest = function(opt_data) {
1861
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1862
+ };
1863
+ goog.inherits(proto.gateway.web.v1.StreamEntitlementsRequest, jspb.Message);
1864
+ if (goog.DEBUG && !COMPILED) {
1865
+ /**
1866
+ * @public
1867
+ * @override
1868
+ */
1869
+ proto.gateway.web.v1.StreamEntitlementsRequest.displayName = 'proto.gateway.web.v1.StreamEntitlementsRequest';
1870
+ }
1871
+ /**
1872
+ * Generated by JsPbCodeGenerator.
1873
+ * @param {Array=} opt_data Optional initial data array, typically from a
1874
+ * server response, or constructed directly in Javascript. The array is used
1875
+ * in place and becomes part of the constructed object. It is not cloned.
1876
+ * If no data is provided, the constructed object will be empty, but still
1877
+ * valid.
1878
+ * @extends {jspb.Message}
1879
+ * @constructor
1880
+ */
1881
+ proto.gateway.web.v1.EntitlementsSnapshot = function(opt_data) {
1882
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.EntitlementsSnapshot.repeatedFields_, null);
1883
+ };
1884
+ goog.inherits(proto.gateway.web.v1.EntitlementsSnapshot, jspb.Message);
1885
+ if (goog.DEBUG && !COMPILED) {
1886
+ /**
1887
+ * @public
1888
+ * @override
1889
+ */
1890
+ proto.gateway.web.v1.EntitlementsSnapshot.displayName = 'proto.gateway.web.v1.EntitlementsSnapshot';
1891
+ }
1892
+ /**
1893
+ * Generated by JsPbCodeGenerator.
1894
+ * @param {Array=} opt_data Optional initial data array, typically from a
1895
+ * server response, or constructed directly in Javascript. The array is used
1896
+ * in place and becomes part of the constructed object. It is not cloned.
1897
+ * If no data is provided, the constructed object will be empty, but still
1898
+ * valid.
1899
+ * @extends {jspb.Message}
1900
+ * @constructor
1901
+ */
1902
+ proto.gateway.web.v1.SeatEntitlement = function(opt_data) {
1903
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.SeatEntitlement.repeatedFields_, null);
1904
+ };
1905
+ goog.inherits(proto.gateway.web.v1.SeatEntitlement, jspb.Message);
1906
+ if (goog.DEBUG && !COMPILED) {
1907
+ /**
1908
+ * @public
1909
+ * @override
1910
+ */
1911
+ proto.gateway.web.v1.SeatEntitlement.displayName = 'proto.gateway.web.v1.SeatEntitlement';
1912
+ }
1913
+ /**
1914
+ * Generated by JsPbCodeGenerator.
1915
+ * @param {Array=} opt_data Optional initial data array, typically from a
1916
+ * server response, or constructed directly in Javascript. The array is used
1917
+ * in place and becomes part of the constructed object. It is not cloned.
1918
+ * If no data is provided, the constructed object will be empty, but still
1919
+ * valid.
1920
+ * @extends {jspb.Message}
1921
+ * @constructor
1922
+ */
1923
+ proto.gateway.web.v1.EntitlementWindow = function(opt_data) {
1924
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1925
+ };
1926
+ goog.inherits(proto.gateway.web.v1.EntitlementWindow, jspb.Message);
1927
+ if (goog.DEBUG && !COMPILED) {
1928
+ /**
1929
+ * @public
1930
+ * @override
1931
+ */
1932
+ proto.gateway.web.v1.EntitlementWindow.displayName = 'proto.gateway.web.v1.EntitlementWindow';
1933
+ }
1822
1934
 
1823
1935
 
1824
1936
 
@@ -5962,7 +6074,8 @@ modelCallId: jspb.Message.getFieldWithDefault(msg, 14, ""),
5962
6074
  toolCallId: jspb.Message.getFieldWithDefault(msg, 15, ""),
5963
6075
  logicalEventId: jspb.Message.getFieldWithDefault(msg, 16, ""),
5964
6076
  version: jspb.Message.getFieldWithDefault(msg, 17, 0),
5965
- cursor: jspb.Message.getFieldWithDefault(msg, 18, "")
6077
+ cursor: jspb.Message.getFieldWithDefault(msg, 18, ""),
6078
+ fundingMode: jspb.Message.getFieldWithDefault(msg, 19, 0)
5966
6079
  };
5967
6080
 
5968
6081
  if (includeInstance) {
@@ -6074,6 +6187,10 @@ proto.gateway.web.v1.AISessionEvent.deserializeBinaryFromReader = function(msg,
6074
6187
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
6075
6188
  msg.setCursor(value);
6076
6189
  break;
6190
+ case 19:
6191
+ var value = /** @type {!proto.gateway.web.v1.AIFundingMode} */ (reader.readEnum());
6192
+ msg.setFundingMode(value);
6193
+ break;
6077
6194
  default:
6078
6195
  reader.skipField();
6079
6196
  break;
@@ -6232,6 +6349,13 @@ proto.gateway.web.v1.AISessionEvent.serializeBinaryToWriter = function(message,
6232
6349
  f
6233
6350
  );
6234
6351
  }
6352
+ f = message.getFundingMode();
6353
+ if (f !== 0.0) {
6354
+ writer.writeEnum(
6355
+ 19,
6356
+ f
6357
+ );
6358
+ }
6235
6359
  };
6236
6360
 
6237
6361
 
@@ -6671,6 +6795,24 @@ proto.gateway.web.v1.AISessionEvent.prototype.setCursor = function(value) {
6671
6795
  };
6672
6796
 
6673
6797
 
6798
+ /**
6799
+ * optional AIFundingMode funding_mode = 19;
6800
+ * @return {!proto.gateway.web.v1.AIFundingMode}
6801
+ */
6802
+ proto.gateway.web.v1.AISessionEvent.prototype.getFundingMode = function() {
6803
+ return /** @type {!proto.gateway.web.v1.AIFundingMode} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
6804
+ };
6805
+
6806
+
6807
+ /**
6808
+ * @param {!proto.gateway.web.v1.AIFundingMode} value
6809
+ * @return {!proto.gateway.web.v1.AISessionEvent} returns this
6810
+ */
6811
+ proto.gateway.web.v1.AISessionEvent.prototype.setFundingMode = function(value) {
6812
+ return jspb.Message.setProto3EnumField(this, 19, value);
6813
+ };
6814
+
6815
+
6674
6816
 
6675
6817
 
6676
6818
 
@@ -8895,7 +9037,8 @@ model: jspb.Message.getFieldWithDefault(msg, 5, ""),
8895
9037
  provider: jspb.Message.getFieldWithDefault(msg, 6, ""),
8896
9038
  finishReason: jspb.Message.getFieldWithDefault(msg, 7, ""),
8897
9039
  durationMs: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
8898
- usage: (f = msg.getUsage()) && proto.gateway.web.v1.AITokenUsage.toObject(includeInstance, f)
9040
+ usage: (f = msg.getUsage()) && proto.gateway.web.v1.AITokenUsage.toObject(includeInstance, f),
9041
+ fundingMode: jspb.Message.getFieldWithDefault(msg, 10, 0)
8899
9042
  };
8900
9043
 
8901
9044
  if (includeInstance) {
@@ -8970,6 +9113,10 @@ proto.gateway.web.v1.SessionTimelinePoint.deserializeBinaryFromReader = function
8970
9113
  reader.readMessage(value,proto.gateway.web.v1.AITokenUsage.deserializeBinaryFromReader);
8971
9114
  msg.setUsage(value);
8972
9115
  break;
9116
+ case 10:
9117
+ var value = /** @type {!proto.gateway.web.v1.AIFundingMode} */ (reader.readEnum());
9118
+ msg.setFundingMode(value);
9119
+ break;
8973
9120
  default:
8974
9121
  reader.skipField();
8975
9122
  break;
@@ -9064,6 +9211,13 @@ proto.gateway.web.v1.SessionTimelinePoint.serializeBinaryToWriter = function(mes
9064
9211
  proto.gateway.web.v1.AITokenUsage.serializeBinaryToWriter
9065
9212
  );
9066
9213
  }
9214
+ f = message.getFundingMode();
9215
+ if (f !== 0.0) {
9216
+ writer.writeEnum(
9217
+ 10,
9218
+ f
9219
+ );
9220
+ }
9067
9221
  };
9068
9222
 
9069
9223
 
@@ -9285,6 +9439,24 @@ proto.gateway.web.v1.SessionTimelinePoint.prototype.hasUsage = function() {
9285
9439
  };
9286
9440
 
9287
9441
 
9442
+ /**
9443
+ * optional AIFundingMode funding_mode = 10;
9444
+ * @return {!proto.gateway.web.v1.AIFundingMode}
9445
+ */
9446
+ proto.gateway.web.v1.SessionTimelinePoint.prototype.getFundingMode = function() {
9447
+ return /** @type {!proto.gateway.web.v1.AIFundingMode} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
9448
+ };
9449
+
9450
+
9451
+ /**
9452
+ * @param {!proto.gateway.web.v1.AIFundingMode} value
9453
+ * @return {!proto.gateway.web.v1.SessionTimelinePoint} returns this
9454
+ */
9455
+ proto.gateway.web.v1.SessionTimelinePoint.prototype.setFundingMode = function(value) {
9456
+ return jspb.Message.setProto3EnumField(this, 10, value);
9457
+ };
9458
+
9459
+
9288
9460
 
9289
9461
 
9290
9462
 
@@ -16893,7 +17065,12 @@ usdPerHour: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
16893
17065
  tokensPerMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
16894
17066
  modelCalls: jspb.Message.getFieldWithDefault(msg, 3, 0),
16895
17067
  costUnavailableCount: jspb.Message.getFieldWithDefault(msg, 4, 0),
16896
- usageUnavailableCount: jspb.Message.getFieldWithDefault(msg, 5, 0)
17068
+ usageUnavailableCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
17069
+ subscriptionFacilityUsdPerHour: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
17070
+ inputTokensPerMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
17071
+ outputTokensPerMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
17072
+ cacheReadTokensPerMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
17073
+ cacheWriteTokensPerMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0)
16897
17074
  };
16898
17075
 
16899
17076
  if (includeInstance) {
@@ -16950,6 +17127,26 @@ proto.gateway.web.v1.BurnRateMeasures.deserializeBinaryFromReader = function(msg
16950
17127
  var value = /** @type {number} */ (reader.readUint64());
16951
17128
  msg.setUsageUnavailableCount(value);
16952
17129
  break;
17130
+ case 6:
17131
+ var value = /** @type {number} */ (reader.readDouble());
17132
+ msg.setSubscriptionFacilityUsdPerHour(value);
17133
+ break;
17134
+ case 7:
17135
+ var value = /** @type {number} */ (reader.readDouble());
17136
+ msg.setInputTokensPerMin(value);
17137
+ break;
17138
+ case 8:
17139
+ var value = /** @type {number} */ (reader.readDouble());
17140
+ msg.setOutputTokensPerMin(value);
17141
+ break;
17142
+ case 9:
17143
+ var value = /** @type {number} */ (reader.readDouble());
17144
+ msg.setCacheReadTokensPerMin(value);
17145
+ break;
17146
+ case 10:
17147
+ var value = /** @type {number} */ (reader.readDouble());
17148
+ msg.setCacheWriteTokensPerMin(value);
17149
+ break;
16953
17150
  default:
16954
17151
  reader.skipField();
16955
17152
  break;
@@ -17014,6 +17211,41 @@ proto.gateway.web.v1.BurnRateMeasures.serializeBinaryToWriter = function(message
17014
17211
  f
17015
17212
  );
17016
17213
  }
17214
+ f = message.getSubscriptionFacilityUsdPerHour();
17215
+ if (f !== 0.0) {
17216
+ writer.writeDouble(
17217
+ 6,
17218
+ f
17219
+ );
17220
+ }
17221
+ f = message.getInputTokensPerMin();
17222
+ if (f !== 0.0) {
17223
+ writer.writeDouble(
17224
+ 7,
17225
+ f
17226
+ );
17227
+ }
17228
+ f = message.getOutputTokensPerMin();
17229
+ if (f !== 0.0) {
17230
+ writer.writeDouble(
17231
+ 8,
17232
+ f
17233
+ );
17234
+ }
17235
+ f = message.getCacheReadTokensPerMin();
17236
+ if (f !== 0.0) {
17237
+ writer.writeDouble(
17238
+ 9,
17239
+ f
17240
+ );
17241
+ }
17242
+ f = message.getCacheWriteTokensPerMin();
17243
+ if (f !== 0.0) {
17244
+ writer.writeDouble(
17245
+ 10,
17246
+ f
17247
+ );
17248
+ }
17017
17249
  };
17018
17250
 
17019
17251
 
@@ -17107,6 +17339,96 @@ proto.gateway.web.v1.BurnRateMeasures.prototype.setUsageUnavailableCount = funct
17107
17339
  };
17108
17340
 
17109
17341
 
17342
+ /**
17343
+ * optional double subscription_facility_usd_per_hour = 6;
17344
+ * @return {number}
17345
+ */
17346
+ proto.gateway.web.v1.BurnRateMeasures.prototype.getSubscriptionFacilityUsdPerHour = function() {
17347
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
17348
+ };
17349
+
17350
+
17351
+ /**
17352
+ * @param {number} value
17353
+ * @return {!proto.gateway.web.v1.BurnRateMeasures} returns this
17354
+ */
17355
+ proto.gateway.web.v1.BurnRateMeasures.prototype.setSubscriptionFacilityUsdPerHour = function(value) {
17356
+ return jspb.Message.setProto3FloatField(this, 6, value);
17357
+ };
17358
+
17359
+
17360
+ /**
17361
+ * optional double input_tokens_per_min = 7;
17362
+ * @return {number}
17363
+ */
17364
+ proto.gateway.web.v1.BurnRateMeasures.prototype.getInputTokensPerMin = function() {
17365
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
17366
+ };
17367
+
17368
+
17369
+ /**
17370
+ * @param {number} value
17371
+ * @return {!proto.gateway.web.v1.BurnRateMeasures} returns this
17372
+ */
17373
+ proto.gateway.web.v1.BurnRateMeasures.prototype.setInputTokensPerMin = function(value) {
17374
+ return jspb.Message.setProto3FloatField(this, 7, value);
17375
+ };
17376
+
17377
+
17378
+ /**
17379
+ * optional double output_tokens_per_min = 8;
17380
+ * @return {number}
17381
+ */
17382
+ proto.gateway.web.v1.BurnRateMeasures.prototype.getOutputTokensPerMin = function() {
17383
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
17384
+ };
17385
+
17386
+
17387
+ /**
17388
+ * @param {number} value
17389
+ * @return {!proto.gateway.web.v1.BurnRateMeasures} returns this
17390
+ */
17391
+ proto.gateway.web.v1.BurnRateMeasures.prototype.setOutputTokensPerMin = function(value) {
17392
+ return jspb.Message.setProto3FloatField(this, 8, value);
17393
+ };
17394
+
17395
+
17396
+ /**
17397
+ * optional double cache_read_tokens_per_min = 9;
17398
+ * @return {number}
17399
+ */
17400
+ proto.gateway.web.v1.BurnRateMeasures.prototype.getCacheReadTokensPerMin = function() {
17401
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
17402
+ };
17403
+
17404
+
17405
+ /**
17406
+ * @param {number} value
17407
+ * @return {!proto.gateway.web.v1.BurnRateMeasures} returns this
17408
+ */
17409
+ proto.gateway.web.v1.BurnRateMeasures.prototype.setCacheReadTokensPerMin = function(value) {
17410
+ return jspb.Message.setProto3FloatField(this, 9, value);
17411
+ };
17412
+
17413
+
17414
+ /**
17415
+ * optional double cache_write_tokens_per_min = 10;
17416
+ * @return {number}
17417
+ */
17418
+ proto.gateway.web.v1.BurnRateMeasures.prototype.getCacheWriteTokensPerMin = function() {
17419
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
17420
+ };
17421
+
17422
+
17423
+ /**
17424
+ * @param {number} value
17425
+ * @return {!proto.gateway.web.v1.BurnRateMeasures} returns this
17426
+ */
17427
+ proto.gateway.web.v1.BurnRateMeasures.prototype.setCacheWriteTokensPerMin = function(value) {
17428
+ return jspb.Message.setProto3FloatField(this, 10, value);
17429
+ };
17430
+
17431
+
17110
17432
 
17111
17433
 
17112
17434
 
@@ -27155,7 +27477,8 @@ inputTokens: jspb.Message.getFieldWithDefault(msg, 1, 0),
27155
27477
  outputTokens: jspb.Message.getFieldWithDefault(msg, 2, 0),
27156
27478
  cacheReadTokens: jspb.Message.getFieldWithDefault(msg, 3, 0),
27157
27479
  cacheWriteTokens: jspb.Message.getFieldWithDefault(msg, 4, 0),
27158
- providerCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
27480
+ providerCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
27481
+ facilityCostBreakdown: (f = msg.getFacilityCostBreakdown()) && proto.gateway.web.v1.AIFacilityCostBreakdown.toObject(includeInstance, f)
27159
27482
  };
27160
27483
 
27161
27484
  if (includeInstance) {
@@ -27212,6 +27535,11 @@ proto.gateway.web.v1.AITokenUsage.deserializeBinaryFromReader = function(msg, re
27212
27535
  var value = /** @type {number} */ (reader.readDouble());
27213
27536
  msg.setProviderCostUsd(value);
27214
27537
  break;
27538
+ case 6:
27539
+ var value = new proto.gateway.web.v1.AIFacilityCostBreakdown;
27540
+ reader.readMessage(value,proto.gateway.web.v1.AIFacilityCostBreakdown.deserializeBinaryFromReader);
27541
+ msg.setFacilityCostBreakdown(value);
27542
+ break;
27215
27543
  default:
27216
27544
  reader.skipField();
27217
27545
  break;
@@ -27276,6 +27604,14 @@ proto.gateway.web.v1.AITokenUsage.serializeBinaryToWriter = function(message, wr
27276
27604
  f
27277
27605
  );
27278
27606
  }
27607
+ f = message.getFacilityCostBreakdown();
27608
+ if (f != null) {
27609
+ writer.writeMessage(
27610
+ 6,
27611
+ f,
27612
+ proto.gateway.web.v1.AIFacilityCostBreakdown.serializeBinaryToWriter
27613
+ );
27614
+ }
27279
27615
  };
27280
27616
 
27281
27617
 
@@ -27370,7 +27706,1579 @@ proto.gateway.web.v1.AITokenUsage.prototype.setProviderCostUsd = function(value)
27370
27706
 
27371
27707
 
27372
27708
  /**
27373
- * @enum {number}
27709
+ * optional AIFacilityCostBreakdown facility_cost_breakdown = 6;
27710
+ * @return {?proto.gateway.web.v1.AIFacilityCostBreakdown}
27711
+ */
27712
+ proto.gateway.web.v1.AITokenUsage.prototype.getFacilityCostBreakdown = function() {
27713
+ return /** @type{?proto.gateway.web.v1.AIFacilityCostBreakdown} */ (
27714
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AIFacilityCostBreakdown, 6));
27715
+ };
27716
+
27717
+
27718
+ /**
27719
+ * @param {?proto.gateway.web.v1.AIFacilityCostBreakdown|undefined} value
27720
+ * @return {!proto.gateway.web.v1.AITokenUsage} returns this
27721
+ */
27722
+ proto.gateway.web.v1.AITokenUsage.prototype.setFacilityCostBreakdown = function(value) {
27723
+ return jspb.Message.setWrapperField(this, 6, value);
27724
+ };
27725
+
27726
+
27727
+ /**
27728
+ * Clears the message field making it undefined.
27729
+ * @return {!proto.gateway.web.v1.AITokenUsage} returns this
27730
+ */
27731
+ proto.gateway.web.v1.AITokenUsage.prototype.clearFacilityCostBreakdown = function() {
27732
+ return this.setFacilityCostBreakdown(undefined);
27733
+ };
27734
+
27735
+
27736
+ /**
27737
+ * Returns whether this field is set.
27738
+ * @return {boolean}
27739
+ */
27740
+ proto.gateway.web.v1.AITokenUsage.prototype.hasFacilityCostBreakdown = function() {
27741
+ return jspb.Message.getField(this, 6) != null;
27742
+ };
27743
+
27744
+
27745
+
27746
+
27747
+
27748
+ if (jspb.Message.GENERATE_TO_OBJECT) {
27749
+ /**
27750
+ * Creates an object representation of this proto.
27751
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
27752
+ * Optional fields that are not set will be set to undefined.
27753
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
27754
+ * For the list of reserved names please see:
27755
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
27756
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
27757
+ * JSPB instance for transitional soy proto support:
27758
+ * http://goto/soy-param-migration
27759
+ * @return {!Object}
27760
+ */
27761
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.toObject = function(opt_includeInstance) {
27762
+ return proto.gateway.web.v1.AIFacilityCostBreakdown.toObject(opt_includeInstance, this);
27763
+ };
27764
+
27765
+
27766
+ /**
27767
+ * Static version of the {@see toObject} method.
27768
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
27769
+ * the JSPB instance for transitional soy proto support:
27770
+ * http://goto/soy-param-migration
27771
+ * @param {!proto.gateway.web.v1.AIFacilityCostBreakdown} msg The msg instance to transform.
27772
+ * @return {!Object}
27773
+ * @suppress {unusedLocalVariables} f is only used for nested messages
27774
+ */
27775
+ proto.gateway.web.v1.AIFacilityCostBreakdown.toObject = function(includeInstance, msg) {
27776
+ var f, obj = {
27777
+ notionalUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
27778
+ subscriptionFacilityUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
27779
+ prepaidCreditsFacilityUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
27780
+ apiMeteredFacilityUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
27781
+ unknownFacilityUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
27782
+ pricedCalls: jspb.Message.getFieldWithDefault(msg, 6, 0),
27783
+ totalCalls: jspb.Message.getFieldWithDefault(msg, 7, 0)
27784
+ };
27785
+
27786
+ if (includeInstance) {
27787
+ obj.$jspbMessageInstance = msg;
27788
+ }
27789
+ return obj;
27790
+ };
27791
+ }
27792
+
27793
+
27794
+ /**
27795
+ * Deserializes binary data (in protobuf wire format).
27796
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
27797
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown}
27798
+ */
27799
+ proto.gateway.web.v1.AIFacilityCostBreakdown.deserializeBinary = function(bytes) {
27800
+ var reader = new jspb.BinaryReader(bytes);
27801
+ var msg = new proto.gateway.web.v1.AIFacilityCostBreakdown;
27802
+ return proto.gateway.web.v1.AIFacilityCostBreakdown.deserializeBinaryFromReader(msg, reader);
27803
+ };
27804
+
27805
+
27806
+ /**
27807
+ * Deserializes binary data (in protobuf wire format) from the
27808
+ * given reader into the given message object.
27809
+ * @param {!proto.gateway.web.v1.AIFacilityCostBreakdown} msg The message object to deserialize into.
27810
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
27811
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown}
27812
+ */
27813
+ proto.gateway.web.v1.AIFacilityCostBreakdown.deserializeBinaryFromReader = function(msg, reader) {
27814
+ while (reader.nextField()) {
27815
+ if (reader.isEndGroup()) {
27816
+ break;
27817
+ }
27818
+ var field = reader.getFieldNumber();
27819
+ switch (field) {
27820
+ case 1:
27821
+ var value = /** @type {number} */ (reader.readDouble());
27822
+ msg.setNotionalUsd(value);
27823
+ break;
27824
+ case 2:
27825
+ var value = /** @type {number} */ (reader.readDouble());
27826
+ msg.setSubscriptionFacilityUsd(value);
27827
+ break;
27828
+ case 3:
27829
+ var value = /** @type {number} */ (reader.readDouble());
27830
+ msg.setPrepaidCreditsFacilityUsd(value);
27831
+ break;
27832
+ case 4:
27833
+ var value = /** @type {number} */ (reader.readDouble());
27834
+ msg.setApiMeteredFacilityUsd(value);
27835
+ break;
27836
+ case 5:
27837
+ var value = /** @type {number} */ (reader.readDouble());
27838
+ msg.setUnknownFacilityUsd(value);
27839
+ break;
27840
+ case 6:
27841
+ var value = /** @type {number} */ (reader.readUint64());
27842
+ msg.setPricedCalls(value);
27843
+ break;
27844
+ case 7:
27845
+ var value = /** @type {number} */ (reader.readUint64());
27846
+ msg.setTotalCalls(value);
27847
+ break;
27848
+ default:
27849
+ reader.skipField();
27850
+ break;
27851
+ }
27852
+ }
27853
+ return msg;
27854
+ };
27855
+
27856
+
27857
+ /**
27858
+ * Serializes the message to binary data (in protobuf wire format).
27859
+ * @return {!Uint8Array}
27860
+ */
27861
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.serializeBinary = function() {
27862
+ var writer = new jspb.BinaryWriter();
27863
+ proto.gateway.web.v1.AIFacilityCostBreakdown.serializeBinaryToWriter(this, writer);
27864
+ return writer.getResultBuffer();
27865
+ };
27866
+
27867
+
27868
+ /**
27869
+ * Serializes the given message to binary data (in protobuf wire
27870
+ * format), writing to the given BinaryWriter.
27871
+ * @param {!proto.gateway.web.v1.AIFacilityCostBreakdown} message
27872
+ * @param {!jspb.BinaryWriter} writer
27873
+ * @suppress {unusedLocalVariables} f is only used for nested messages
27874
+ */
27875
+ proto.gateway.web.v1.AIFacilityCostBreakdown.serializeBinaryToWriter = function(message, writer) {
27876
+ var f = undefined;
27877
+ f = message.getNotionalUsd();
27878
+ if (f !== 0.0) {
27879
+ writer.writeDouble(
27880
+ 1,
27881
+ f
27882
+ );
27883
+ }
27884
+ f = message.getSubscriptionFacilityUsd();
27885
+ if (f !== 0.0) {
27886
+ writer.writeDouble(
27887
+ 2,
27888
+ f
27889
+ );
27890
+ }
27891
+ f = message.getPrepaidCreditsFacilityUsd();
27892
+ if (f !== 0.0) {
27893
+ writer.writeDouble(
27894
+ 3,
27895
+ f
27896
+ );
27897
+ }
27898
+ f = message.getApiMeteredFacilityUsd();
27899
+ if (f !== 0.0) {
27900
+ writer.writeDouble(
27901
+ 4,
27902
+ f
27903
+ );
27904
+ }
27905
+ f = message.getUnknownFacilityUsd();
27906
+ if (f !== 0.0) {
27907
+ writer.writeDouble(
27908
+ 5,
27909
+ f
27910
+ );
27911
+ }
27912
+ f = message.getPricedCalls();
27913
+ if (f !== 0) {
27914
+ writer.writeUint64(
27915
+ 6,
27916
+ f
27917
+ );
27918
+ }
27919
+ f = message.getTotalCalls();
27920
+ if (f !== 0) {
27921
+ writer.writeUint64(
27922
+ 7,
27923
+ f
27924
+ );
27925
+ }
27926
+ };
27927
+
27928
+
27929
+ /**
27930
+ * optional double notional_usd = 1;
27931
+ * @return {number}
27932
+ */
27933
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.getNotionalUsd = function() {
27934
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
27935
+ };
27936
+
27937
+
27938
+ /**
27939
+ * @param {number} value
27940
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown} returns this
27941
+ */
27942
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.setNotionalUsd = function(value) {
27943
+ return jspb.Message.setProto3FloatField(this, 1, value);
27944
+ };
27945
+
27946
+
27947
+ /**
27948
+ * optional double subscription_facility_usd = 2;
27949
+ * @return {number}
27950
+ */
27951
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.getSubscriptionFacilityUsd = function() {
27952
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
27953
+ };
27954
+
27955
+
27956
+ /**
27957
+ * @param {number} value
27958
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown} returns this
27959
+ */
27960
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.setSubscriptionFacilityUsd = function(value) {
27961
+ return jspb.Message.setProto3FloatField(this, 2, value);
27962
+ };
27963
+
27964
+
27965
+ /**
27966
+ * optional double prepaid_credits_facility_usd = 3;
27967
+ * @return {number}
27968
+ */
27969
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.getPrepaidCreditsFacilityUsd = function() {
27970
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
27971
+ };
27972
+
27973
+
27974
+ /**
27975
+ * @param {number} value
27976
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown} returns this
27977
+ */
27978
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.setPrepaidCreditsFacilityUsd = function(value) {
27979
+ return jspb.Message.setProto3FloatField(this, 3, value);
27980
+ };
27981
+
27982
+
27983
+ /**
27984
+ * optional double api_metered_facility_usd = 4;
27985
+ * @return {number}
27986
+ */
27987
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.getApiMeteredFacilityUsd = function() {
27988
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
27989
+ };
27990
+
27991
+
27992
+ /**
27993
+ * @param {number} value
27994
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown} returns this
27995
+ */
27996
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.setApiMeteredFacilityUsd = function(value) {
27997
+ return jspb.Message.setProto3FloatField(this, 4, value);
27998
+ };
27999
+
28000
+
28001
+ /**
28002
+ * optional double unknown_facility_usd = 5;
28003
+ * @return {number}
28004
+ */
28005
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.getUnknownFacilityUsd = function() {
28006
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
28007
+ };
28008
+
28009
+
28010
+ /**
28011
+ * @param {number} value
28012
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown} returns this
28013
+ */
28014
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.setUnknownFacilityUsd = function(value) {
28015
+ return jspb.Message.setProto3FloatField(this, 5, value);
28016
+ };
28017
+
28018
+
28019
+ /**
28020
+ * optional uint64 priced_calls = 6;
28021
+ * @return {number}
28022
+ */
28023
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.getPricedCalls = function() {
28024
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
28025
+ };
28026
+
28027
+
28028
+ /**
28029
+ * @param {number} value
28030
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown} returns this
28031
+ */
28032
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.setPricedCalls = function(value) {
28033
+ return jspb.Message.setProto3IntField(this, 6, value);
28034
+ };
28035
+
28036
+
28037
+ /**
28038
+ * optional uint64 total_calls = 7;
28039
+ * @return {number}
28040
+ */
28041
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.getTotalCalls = function() {
28042
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
28043
+ };
28044
+
28045
+
28046
+ /**
28047
+ * @param {number} value
28048
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown} returns this
28049
+ */
28050
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.setTotalCalls = function(value) {
28051
+ return jspb.Message.setProto3IntField(this, 7, value);
28052
+ };
28053
+
28054
+
28055
+
28056
+
28057
+
28058
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28059
+ /**
28060
+ * Creates an object representation of this proto.
28061
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28062
+ * Optional fields that are not set will be set to undefined.
28063
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28064
+ * For the list of reserved names please see:
28065
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28066
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28067
+ * JSPB instance for transitional soy proto support:
28068
+ * http://goto/soy-param-migration
28069
+ * @return {!Object}
28070
+ */
28071
+ proto.gateway.web.v1.StreamEntitlementsRequest.prototype.toObject = function(opt_includeInstance) {
28072
+ return proto.gateway.web.v1.StreamEntitlementsRequest.toObject(opt_includeInstance, this);
28073
+ };
28074
+
28075
+
28076
+ /**
28077
+ * Static version of the {@see toObject} method.
28078
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28079
+ * the JSPB instance for transitional soy proto support:
28080
+ * http://goto/soy-param-migration
28081
+ * @param {!proto.gateway.web.v1.StreamEntitlementsRequest} msg The msg instance to transform.
28082
+ * @return {!Object}
28083
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28084
+ */
28085
+ proto.gateway.web.v1.StreamEntitlementsRequest.toObject = function(includeInstance, msg) {
28086
+ var f, obj = {
28087
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
28088
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, "")
28089
+ };
28090
+
28091
+ if (includeInstance) {
28092
+ obj.$jspbMessageInstance = msg;
28093
+ }
28094
+ return obj;
28095
+ };
28096
+ }
28097
+
28098
+
28099
+ /**
28100
+ * Deserializes binary data (in protobuf wire format).
28101
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
28102
+ * @return {!proto.gateway.web.v1.StreamEntitlementsRequest}
28103
+ */
28104
+ proto.gateway.web.v1.StreamEntitlementsRequest.deserializeBinary = function(bytes) {
28105
+ var reader = new jspb.BinaryReader(bytes);
28106
+ var msg = new proto.gateway.web.v1.StreamEntitlementsRequest;
28107
+ return proto.gateway.web.v1.StreamEntitlementsRequest.deserializeBinaryFromReader(msg, reader);
28108
+ };
28109
+
28110
+
28111
+ /**
28112
+ * Deserializes binary data (in protobuf wire format) from the
28113
+ * given reader into the given message object.
28114
+ * @param {!proto.gateway.web.v1.StreamEntitlementsRequest} msg The message object to deserialize into.
28115
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
28116
+ * @return {!proto.gateway.web.v1.StreamEntitlementsRequest}
28117
+ */
28118
+ proto.gateway.web.v1.StreamEntitlementsRequest.deserializeBinaryFromReader = function(msg, reader) {
28119
+ while (reader.nextField()) {
28120
+ if (reader.isEndGroup()) {
28121
+ break;
28122
+ }
28123
+ var field = reader.getFieldNumber();
28124
+ switch (field) {
28125
+ case 1:
28126
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28127
+ msg.setOrganizationId(value);
28128
+ break;
28129
+ case 2:
28130
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28131
+ msg.setProjectId(value);
28132
+ break;
28133
+ default:
28134
+ reader.skipField();
28135
+ break;
28136
+ }
28137
+ }
28138
+ return msg;
28139
+ };
28140
+
28141
+
28142
+ /**
28143
+ * Serializes the message to binary data (in protobuf wire format).
28144
+ * @return {!Uint8Array}
28145
+ */
28146
+ proto.gateway.web.v1.StreamEntitlementsRequest.prototype.serializeBinary = function() {
28147
+ var writer = new jspb.BinaryWriter();
28148
+ proto.gateway.web.v1.StreamEntitlementsRequest.serializeBinaryToWriter(this, writer);
28149
+ return writer.getResultBuffer();
28150
+ };
28151
+
28152
+
28153
+ /**
28154
+ * Serializes the given message to binary data (in protobuf wire
28155
+ * format), writing to the given BinaryWriter.
28156
+ * @param {!proto.gateway.web.v1.StreamEntitlementsRequest} message
28157
+ * @param {!jspb.BinaryWriter} writer
28158
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28159
+ */
28160
+ proto.gateway.web.v1.StreamEntitlementsRequest.serializeBinaryToWriter = function(message, writer) {
28161
+ var f = undefined;
28162
+ f = message.getOrganizationId();
28163
+ if (f.length > 0) {
28164
+ writer.writeString(
28165
+ 1,
28166
+ f
28167
+ );
28168
+ }
28169
+ f = message.getProjectId();
28170
+ if (f.length > 0) {
28171
+ writer.writeString(
28172
+ 2,
28173
+ f
28174
+ );
28175
+ }
28176
+ };
28177
+
28178
+
28179
+ /**
28180
+ * optional string organization_id = 1;
28181
+ * @return {string}
28182
+ */
28183
+ proto.gateway.web.v1.StreamEntitlementsRequest.prototype.getOrganizationId = function() {
28184
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
28185
+ };
28186
+
28187
+
28188
+ /**
28189
+ * @param {string} value
28190
+ * @return {!proto.gateway.web.v1.StreamEntitlementsRequest} returns this
28191
+ */
28192
+ proto.gateway.web.v1.StreamEntitlementsRequest.prototype.setOrganizationId = function(value) {
28193
+ return jspb.Message.setProto3StringField(this, 1, value);
28194
+ };
28195
+
28196
+
28197
+ /**
28198
+ * optional string project_id = 2;
28199
+ * @return {string}
28200
+ */
28201
+ proto.gateway.web.v1.StreamEntitlementsRequest.prototype.getProjectId = function() {
28202
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
28203
+ };
28204
+
28205
+
28206
+ /**
28207
+ * @param {string} value
28208
+ * @return {!proto.gateway.web.v1.StreamEntitlementsRequest} returns this
28209
+ */
28210
+ proto.gateway.web.v1.StreamEntitlementsRequest.prototype.setProjectId = function(value) {
28211
+ return jspb.Message.setProto3StringField(this, 2, value);
28212
+ };
28213
+
28214
+
28215
+
28216
+ /**
28217
+ * List of repeated fields within this message type.
28218
+ * @private {!Array<number>}
28219
+ * @const
28220
+ */
28221
+ proto.gateway.web.v1.EntitlementsSnapshot.repeatedFields_ = [1];
28222
+
28223
+
28224
+
28225
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28226
+ /**
28227
+ * Creates an object representation of this proto.
28228
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28229
+ * Optional fields that are not set will be set to undefined.
28230
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28231
+ * For the list of reserved names please see:
28232
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28233
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28234
+ * JSPB instance for transitional soy proto support:
28235
+ * http://goto/soy-param-migration
28236
+ * @return {!Object}
28237
+ */
28238
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.toObject = function(opt_includeInstance) {
28239
+ return proto.gateway.web.v1.EntitlementsSnapshot.toObject(opt_includeInstance, this);
28240
+ };
28241
+
28242
+
28243
+ /**
28244
+ * Static version of the {@see toObject} method.
28245
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28246
+ * the JSPB instance for transitional soy proto support:
28247
+ * http://goto/soy-param-migration
28248
+ * @param {!proto.gateway.web.v1.EntitlementsSnapshot} msg The msg instance to transform.
28249
+ * @return {!Object}
28250
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28251
+ */
28252
+ proto.gateway.web.v1.EntitlementsSnapshot.toObject = function(includeInstance, msg) {
28253
+ var f, obj = {
28254
+ seatsList: jspb.Message.toObjectList(msg.getSeatsList(),
28255
+ proto.gateway.web.v1.SeatEntitlement.toObject, includeInstance),
28256
+ asOf: (f = msg.getAsOf()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
28257
+ };
28258
+
28259
+ if (includeInstance) {
28260
+ obj.$jspbMessageInstance = msg;
28261
+ }
28262
+ return obj;
28263
+ };
28264
+ }
28265
+
28266
+
28267
+ /**
28268
+ * Deserializes binary data (in protobuf wire format).
28269
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
28270
+ * @return {!proto.gateway.web.v1.EntitlementsSnapshot}
28271
+ */
28272
+ proto.gateway.web.v1.EntitlementsSnapshot.deserializeBinary = function(bytes) {
28273
+ var reader = new jspb.BinaryReader(bytes);
28274
+ var msg = new proto.gateway.web.v1.EntitlementsSnapshot;
28275
+ return proto.gateway.web.v1.EntitlementsSnapshot.deserializeBinaryFromReader(msg, reader);
28276
+ };
28277
+
28278
+
28279
+ /**
28280
+ * Deserializes binary data (in protobuf wire format) from the
28281
+ * given reader into the given message object.
28282
+ * @param {!proto.gateway.web.v1.EntitlementsSnapshot} msg The message object to deserialize into.
28283
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
28284
+ * @return {!proto.gateway.web.v1.EntitlementsSnapshot}
28285
+ */
28286
+ proto.gateway.web.v1.EntitlementsSnapshot.deserializeBinaryFromReader = function(msg, reader) {
28287
+ while (reader.nextField()) {
28288
+ if (reader.isEndGroup()) {
28289
+ break;
28290
+ }
28291
+ var field = reader.getFieldNumber();
28292
+ switch (field) {
28293
+ case 1:
28294
+ var value = new proto.gateway.web.v1.SeatEntitlement;
28295
+ reader.readMessage(value,proto.gateway.web.v1.SeatEntitlement.deserializeBinaryFromReader);
28296
+ msg.addSeats(value);
28297
+ break;
28298
+ case 2:
28299
+ var value = new google_protobuf_timestamp_pb.Timestamp;
28300
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
28301
+ msg.setAsOf(value);
28302
+ break;
28303
+ default:
28304
+ reader.skipField();
28305
+ break;
28306
+ }
28307
+ }
28308
+ return msg;
28309
+ };
28310
+
28311
+
28312
+ /**
28313
+ * Serializes the message to binary data (in protobuf wire format).
28314
+ * @return {!Uint8Array}
28315
+ */
28316
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.serializeBinary = function() {
28317
+ var writer = new jspb.BinaryWriter();
28318
+ proto.gateway.web.v1.EntitlementsSnapshot.serializeBinaryToWriter(this, writer);
28319
+ return writer.getResultBuffer();
28320
+ };
28321
+
28322
+
28323
+ /**
28324
+ * Serializes the given message to binary data (in protobuf wire
28325
+ * format), writing to the given BinaryWriter.
28326
+ * @param {!proto.gateway.web.v1.EntitlementsSnapshot} message
28327
+ * @param {!jspb.BinaryWriter} writer
28328
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28329
+ */
28330
+ proto.gateway.web.v1.EntitlementsSnapshot.serializeBinaryToWriter = function(message, writer) {
28331
+ var f = undefined;
28332
+ f = message.getSeatsList();
28333
+ if (f.length > 0) {
28334
+ writer.writeRepeatedMessage(
28335
+ 1,
28336
+ f,
28337
+ proto.gateway.web.v1.SeatEntitlement.serializeBinaryToWriter
28338
+ );
28339
+ }
28340
+ f = message.getAsOf();
28341
+ if (f != null) {
28342
+ writer.writeMessage(
28343
+ 2,
28344
+ f,
28345
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
28346
+ );
28347
+ }
28348
+ };
28349
+
28350
+
28351
+ /**
28352
+ * repeated SeatEntitlement seats = 1;
28353
+ * @return {!Array<!proto.gateway.web.v1.SeatEntitlement>}
28354
+ */
28355
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.getSeatsList = function() {
28356
+ return /** @type{!Array<!proto.gateway.web.v1.SeatEntitlement>} */ (
28357
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SeatEntitlement, 1));
28358
+ };
28359
+
28360
+
28361
+ /**
28362
+ * @param {!Array<!proto.gateway.web.v1.SeatEntitlement>} value
28363
+ * @return {!proto.gateway.web.v1.EntitlementsSnapshot} returns this
28364
+ */
28365
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.setSeatsList = function(value) {
28366
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
28367
+ };
28368
+
28369
+
28370
+ /**
28371
+ * @param {!proto.gateway.web.v1.SeatEntitlement=} opt_value
28372
+ * @param {number=} opt_index
28373
+ * @return {!proto.gateway.web.v1.SeatEntitlement}
28374
+ */
28375
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.addSeats = function(opt_value, opt_index) {
28376
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.SeatEntitlement, opt_index);
28377
+ };
28378
+
28379
+
28380
+ /**
28381
+ * Clears the list making it empty but non-null.
28382
+ * @return {!proto.gateway.web.v1.EntitlementsSnapshot} returns this
28383
+ */
28384
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.clearSeatsList = function() {
28385
+ return this.setSeatsList([]);
28386
+ };
28387
+
28388
+
28389
+ /**
28390
+ * optional google.protobuf.Timestamp as_of = 2;
28391
+ * @return {?proto.google.protobuf.Timestamp}
28392
+ */
28393
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.getAsOf = function() {
28394
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
28395
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
28396
+ };
28397
+
28398
+
28399
+ /**
28400
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
28401
+ * @return {!proto.gateway.web.v1.EntitlementsSnapshot} returns this
28402
+ */
28403
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.setAsOf = function(value) {
28404
+ return jspb.Message.setWrapperField(this, 2, value);
28405
+ };
28406
+
28407
+
28408
+ /**
28409
+ * Clears the message field making it undefined.
28410
+ * @return {!proto.gateway.web.v1.EntitlementsSnapshot} returns this
28411
+ */
28412
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.clearAsOf = function() {
28413
+ return this.setAsOf(undefined);
28414
+ };
28415
+
28416
+
28417
+ /**
28418
+ * Returns whether this field is set.
28419
+ * @return {boolean}
28420
+ */
28421
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.hasAsOf = function() {
28422
+ return jspb.Message.getField(this, 2) != null;
28423
+ };
28424
+
28425
+
28426
+
28427
+ /**
28428
+ * List of repeated fields within this message type.
28429
+ * @private {!Array<number>}
28430
+ * @const
28431
+ */
28432
+ proto.gateway.web.v1.SeatEntitlement.repeatedFields_ = [6];
28433
+
28434
+
28435
+
28436
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28437
+ /**
28438
+ * Creates an object representation of this proto.
28439
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28440
+ * Optional fields that are not set will be set to undefined.
28441
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28442
+ * For the list of reserved names please see:
28443
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28444
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28445
+ * JSPB instance for transitional soy proto support:
28446
+ * http://goto/soy-param-migration
28447
+ * @return {!Object}
28448
+ */
28449
+ proto.gateway.web.v1.SeatEntitlement.prototype.toObject = function(opt_includeInstance) {
28450
+ return proto.gateway.web.v1.SeatEntitlement.toObject(opt_includeInstance, this);
28451
+ };
28452
+
28453
+
28454
+ /**
28455
+ * Static version of the {@see toObject} method.
28456
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28457
+ * the JSPB instance for transitional soy proto support:
28458
+ * http://goto/soy-param-migration
28459
+ * @param {!proto.gateway.web.v1.SeatEntitlement} msg The msg instance to transform.
28460
+ * @return {!Object}
28461
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28462
+ */
28463
+ proto.gateway.web.v1.SeatEntitlement.toObject = function(includeInstance, msg) {
28464
+ var f, obj = {
28465
+ sourceSystem: jspb.Message.getFieldWithDefault(msg, 1, ""),
28466
+ accountId: jspb.Message.getFieldWithDefault(msg, 2, ""),
28467
+ principalId: jspb.Message.getFieldWithDefault(msg, 3, ""),
28468
+ principalName: jspb.Message.getFieldWithDefault(msg, 4, ""),
28469
+ fundingMode: jspb.Message.getFieldWithDefault(msg, 5, 0),
28470
+ windowsList: jspb.Message.toObjectList(msg.getWindowsList(),
28471
+ proto.gateway.web.v1.EntitlementWindow.toObject, includeInstance),
28472
+ eventTime: (f = msg.getEventTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
28473
+ creditsBalanceRaw: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
28474
+ creditsUnlimited: (f = jspb.Message.getBooleanField(msg, 9)) == null ? undefined : f,
28475
+ planType: jspb.Message.getFieldWithDefault(msg, 10, ""),
28476
+ seatTier: jspb.Message.getFieldWithDefault(msg, 11, ""),
28477
+ evidenceSource: jspb.Message.getFieldWithDefault(msg, 12, "")
28478
+ };
28479
+
28480
+ if (includeInstance) {
28481
+ obj.$jspbMessageInstance = msg;
28482
+ }
28483
+ return obj;
28484
+ };
28485
+ }
28486
+
28487
+
28488
+ /**
28489
+ * Deserializes binary data (in protobuf wire format).
28490
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
28491
+ * @return {!proto.gateway.web.v1.SeatEntitlement}
28492
+ */
28493
+ proto.gateway.web.v1.SeatEntitlement.deserializeBinary = function(bytes) {
28494
+ var reader = new jspb.BinaryReader(bytes);
28495
+ var msg = new proto.gateway.web.v1.SeatEntitlement;
28496
+ return proto.gateway.web.v1.SeatEntitlement.deserializeBinaryFromReader(msg, reader);
28497
+ };
28498
+
28499
+
28500
+ /**
28501
+ * Deserializes binary data (in protobuf wire format) from the
28502
+ * given reader into the given message object.
28503
+ * @param {!proto.gateway.web.v1.SeatEntitlement} msg The message object to deserialize into.
28504
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
28505
+ * @return {!proto.gateway.web.v1.SeatEntitlement}
28506
+ */
28507
+ proto.gateway.web.v1.SeatEntitlement.deserializeBinaryFromReader = function(msg, reader) {
28508
+ while (reader.nextField()) {
28509
+ if (reader.isEndGroup()) {
28510
+ break;
28511
+ }
28512
+ var field = reader.getFieldNumber();
28513
+ switch (field) {
28514
+ case 1:
28515
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28516
+ msg.setSourceSystem(value);
28517
+ break;
28518
+ case 2:
28519
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28520
+ msg.setAccountId(value);
28521
+ break;
28522
+ case 3:
28523
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28524
+ msg.setPrincipalId(value);
28525
+ break;
28526
+ case 4:
28527
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28528
+ msg.setPrincipalName(value);
28529
+ break;
28530
+ case 5:
28531
+ var value = /** @type {!proto.gateway.web.v1.AIFundingMode} */ (reader.readEnum());
28532
+ msg.setFundingMode(value);
28533
+ break;
28534
+ case 6:
28535
+ var value = new proto.gateway.web.v1.EntitlementWindow;
28536
+ reader.readMessage(value,proto.gateway.web.v1.EntitlementWindow.deserializeBinaryFromReader);
28537
+ msg.addWindows(value);
28538
+ break;
28539
+ case 7:
28540
+ var value = new google_protobuf_timestamp_pb.Timestamp;
28541
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
28542
+ msg.setEventTime(value);
28543
+ break;
28544
+ case 8:
28545
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28546
+ msg.setCreditsBalanceRaw(value);
28547
+ break;
28548
+ case 9:
28549
+ var value = /** @type {boolean} */ (reader.readBool());
28550
+ msg.setCreditsUnlimited(value);
28551
+ break;
28552
+ case 10:
28553
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28554
+ msg.setPlanType(value);
28555
+ break;
28556
+ case 11:
28557
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28558
+ msg.setSeatTier(value);
28559
+ break;
28560
+ case 12:
28561
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28562
+ msg.setEvidenceSource(value);
28563
+ break;
28564
+ default:
28565
+ reader.skipField();
28566
+ break;
28567
+ }
28568
+ }
28569
+ return msg;
28570
+ };
28571
+
28572
+
28573
+ /**
28574
+ * Serializes the message to binary data (in protobuf wire format).
28575
+ * @return {!Uint8Array}
28576
+ */
28577
+ proto.gateway.web.v1.SeatEntitlement.prototype.serializeBinary = function() {
28578
+ var writer = new jspb.BinaryWriter();
28579
+ proto.gateway.web.v1.SeatEntitlement.serializeBinaryToWriter(this, writer);
28580
+ return writer.getResultBuffer();
28581
+ };
28582
+
28583
+
28584
+ /**
28585
+ * Serializes the given message to binary data (in protobuf wire
28586
+ * format), writing to the given BinaryWriter.
28587
+ * @param {!proto.gateway.web.v1.SeatEntitlement} message
28588
+ * @param {!jspb.BinaryWriter} writer
28589
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28590
+ */
28591
+ proto.gateway.web.v1.SeatEntitlement.serializeBinaryToWriter = function(message, writer) {
28592
+ var f = undefined;
28593
+ f = message.getSourceSystem();
28594
+ if (f.length > 0) {
28595
+ writer.writeString(
28596
+ 1,
28597
+ f
28598
+ );
28599
+ }
28600
+ f = message.getAccountId();
28601
+ if (f.length > 0) {
28602
+ writer.writeString(
28603
+ 2,
28604
+ f
28605
+ );
28606
+ }
28607
+ f = message.getPrincipalId();
28608
+ if (f.length > 0) {
28609
+ writer.writeString(
28610
+ 3,
28611
+ f
28612
+ );
28613
+ }
28614
+ f = message.getPrincipalName();
28615
+ if (f.length > 0) {
28616
+ writer.writeString(
28617
+ 4,
28618
+ f
28619
+ );
28620
+ }
28621
+ f = message.getFundingMode();
28622
+ if (f !== 0.0) {
28623
+ writer.writeEnum(
28624
+ 5,
28625
+ f
28626
+ );
28627
+ }
28628
+ f = message.getWindowsList();
28629
+ if (f.length > 0) {
28630
+ writer.writeRepeatedMessage(
28631
+ 6,
28632
+ f,
28633
+ proto.gateway.web.v1.EntitlementWindow.serializeBinaryToWriter
28634
+ );
28635
+ }
28636
+ f = message.getEventTime();
28637
+ if (f != null) {
28638
+ writer.writeMessage(
28639
+ 7,
28640
+ f,
28641
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
28642
+ );
28643
+ }
28644
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
28645
+ if (f != null) {
28646
+ writer.writeString(
28647
+ 8,
28648
+ f
28649
+ );
28650
+ }
28651
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 9));
28652
+ if (f != null) {
28653
+ writer.writeBool(
28654
+ 9,
28655
+ f
28656
+ );
28657
+ }
28658
+ f = message.getPlanType();
28659
+ if (f.length > 0) {
28660
+ writer.writeString(
28661
+ 10,
28662
+ f
28663
+ );
28664
+ }
28665
+ f = message.getSeatTier();
28666
+ if (f.length > 0) {
28667
+ writer.writeString(
28668
+ 11,
28669
+ f
28670
+ );
28671
+ }
28672
+ f = message.getEvidenceSource();
28673
+ if (f.length > 0) {
28674
+ writer.writeString(
28675
+ 12,
28676
+ f
28677
+ );
28678
+ }
28679
+ };
28680
+
28681
+
28682
+ /**
28683
+ * optional string source_system = 1;
28684
+ * @return {string}
28685
+ */
28686
+ proto.gateway.web.v1.SeatEntitlement.prototype.getSourceSystem = function() {
28687
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
28688
+ };
28689
+
28690
+
28691
+ /**
28692
+ * @param {string} value
28693
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28694
+ */
28695
+ proto.gateway.web.v1.SeatEntitlement.prototype.setSourceSystem = function(value) {
28696
+ return jspb.Message.setProto3StringField(this, 1, value);
28697
+ };
28698
+
28699
+
28700
+ /**
28701
+ * optional string account_id = 2;
28702
+ * @return {string}
28703
+ */
28704
+ proto.gateway.web.v1.SeatEntitlement.prototype.getAccountId = function() {
28705
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
28706
+ };
28707
+
28708
+
28709
+ /**
28710
+ * @param {string} value
28711
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28712
+ */
28713
+ proto.gateway.web.v1.SeatEntitlement.prototype.setAccountId = function(value) {
28714
+ return jspb.Message.setProto3StringField(this, 2, value);
28715
+ };
28716
+
28717
+
28718
+ /**
28719
+ * optional string principal_id = 3;
28720
+ * @return {string}
28721
+ */
28722
+ proto.gateway.web.v1.SeatEntitlement.prototype.getPrincipalId = function() {
28723
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
28724
+ };
28725
+
28726
+
28727
+ /**
28728
+ * @param {string} value
28729
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28730
+ */
28731
+ proto.gateway.web.v1.SeatEntitlement.prototype.setPrincipalId = function(value) {
28732
+ return jspb.Message.setProto3StringField(this, 3, value);
28733
+ };
28734
+
28735
+
28736
+ /**
28737
+ * optional string principal_name = 4;
28738
+ * @return {string}
28739
+ */
28740
+ proto.gateway.web.v1.SeatEntitlement.prototype.getPrincipalName = function() {
28741
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
28742
+ };
28743
+
28744
+
28745
+ /**
28746
+ * @param {string} value
28747
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28748
+ */
28749
+ proto.gateway.web.v1.SeatEntitlement.prototype.setPrincipalName = function(value) {
28750
+ return jspb.Message.setProto3StringField(this, 4, value);
28751
+ };
28752
+
28753
+
28754
+ /**
28755
+ * optional AIFundingMode funding_mode = 5;
28756
+ * @return {!proto.gateway.web.v1.AIFundingMode}
28757
+ */
28758
+ proto.gateway.web.v1.SeatEntitlement.prototype.getFundingMode = function() {
28759
+ return /** @type {!proto.gateway.web.v1.AIFundingMode} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
28760
+ };
28761
+
28762
+
28763
+ /**
28764
+ * @param {!proto.gateway.web.v1.AIFundingMode} value
28765
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28766
+ */
28767
+ proto.gateway.web.v1.SeatEntitlement.prototype.setFundingMode = function(value) {
28768
+ return jspb.Message.setProto3EnumField(this, 5, value);
28769
+ };
28770
+
28771
+
28772
+ /**
28773
+ * repeated EntitlementWindow windows = 6;
28774
+ * @return {!Array<!proto.gateway.web.v1.EntitlementWindow>}
28775
+ */
28776
+ proto.gateway.web.v1.SeatEntitlement.prototype.getWindowsList = function() {
28777
+ return /** @type{!Array<!proto.gateway.web.v1.EntitlementWindow>} */ (
28778
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.EntitlementWindow, 6));
28779
+ };
28780
+
28781
+
28782
+ /**
28783
+ * @param {!Array<!proto.gateway.web.v1.EntitlementWindow>} value
28784
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28785
+ */
28786
+ proto.gateway.web.v1.SeatEntitlement.prototype.setWindowsList = function(value) {
28787
+ return jspb.Message.setRepeatedWrapperField(this, 6, value);
28788
+ };
28789
+
28790
+
28791
+ /**
28792
+ * @param {!proto.gateway.web.v1.EntitlementWindow=} opt_value
28793
+ * @param {number=} opt_index
28794
+ * @return {!proto.gateway.web.v1.EntitlementWindow}
28795
+ */
28796
+ proto.gateway.web.v1.SeatEntitlement.prototype.addWindows = function(opt_value, opt_index) {
28797
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.gateway.web.v1.EntitlementWindow, opt_index);
28798
+ };
28799
+
28800
+
28801
+ /**
28802
+ * Clears the list making it empty but non-null.
28803
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28804
+ */
28805
+ proto.gateway.web.v1.SeatEntitlement.prototype.clearWindowsList = function() {
28806
+ return this.setWindowsList([]);
28807
+ };
28808
+
28809
+
28810
+ /**
28811
+ * optional google.protobuf.Timestamp event_time = 7;
28812
+ * @return {?proto.google.protobuf.Timestamp}
28813
+ */
28814
+ proto.gateway.web.v1.SeatEntitlement.prototype.getEventTime = function() {
28815
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
28816
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
28817
+ };
28818
+
28819
+
28820
+ /**
28821
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
28822
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28823
+ */
28824
+ proto.gateway.web.v1.SeatEntitlement.prototype.setEventTime = function(value) {
28825
+ return jspb.Message.setWrapperField(this, 7, value);
28826
+ };
28827
+
28828
+
28829
+ /**
28830
+ * Clears the message field making it undefined.
28831
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28832
+ */
28833
+ proto.gateway.web.v1.SeatEntitlement.prototype.clearEventTime = function() {
28834
+ return this.setEventTime(undefined);
28835
+ };
28836
+
28837
+
28838
+ /**
28839
+ * Returns whether this field is set.
28840
+ * @return {boolean}
28841
+ */
28842
+ proto.gateway.web.v1.SeatEntitlement.prototype.hasEventTime = function() {
28843
+ return jspb.Message.getField(this, 7) != null;
28844
+ };
28845
+
28846
+
28847
+ /**
28848
+ * optional string credits_balance_raw = 8;
28849
+ * @return {string}
28850
+ */
28851
+ proto.gateway.web.v1.SeatEntitlement.prototype.getCreditsBalanceRaw = function() {
28852
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
28853
+ };
28854
+
28855
+
28856
+ /**
28857
+ * @param {string} value
28858
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28859
+ */
28860
+ proto.gateway.web.v1.SeatEntitlement.prototype.setCreditsBalanceRaw = function(value) {
28861
+ return jspb.Message.setField(this, 8, value);
28862
+ };
28863
+
28864
+
28865
+ /**
28866
+ * Clears the field making it undefined.
28867
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28868
+ */
28869
+ proto.gateway.web.v1.SeatEntitlement.prototype.clearCreditsBalanceRaw = function() {
28870
+ return jspb.Message.setField(this, 8, undefined);
28871
+ };
28872
+
28873
+
28874
+ /**
28875
+ * Returns whether this field is set.
28876
+ * @return {boolean}
28877
+ */
28878
+ proto.gateway.web.v1.SeatEntitlement.prototype.hasCreditsBalanceRaw = function() {
28879
+ return jspb.Message.getField(this, 8) != null;
28880
+ };
28881
+
28882
+
28883
+ /**
28884
+ * optional bool credits_unlimited = 9;
28885
+ * @return {boolean}
28886
+ */
28887
+ proto.gateway.web.v1.SeatEntitlement.prototype.getCreditsUnlimited = function() {
28888
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
28889
+ };
28890
+
28891
+
28892
+ /**
28893
+ * @param {boolean} value
28894
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28895
+ */
28896
+ proto.gateway.web.v1.SeatEntitlement.prototype.setCreditsUnlimited = function(value) {
28897
+ return jspb.Message.setField(this, 9, value);
28898
+ };
28899
+
28900
+
28901
+ /**
28902
+ * Clears the field making it undefined.
28903
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28904
+ */
28905
+ proto.gateway.web.v1.SeatEntitlement.prototype.clearCreditsUnlimited = function() {
28906
+ return jspb.Message.setField(this, 9, undefined);
28907
+ };
28908
+
28909
+
28910
+ /**
28911
+ * Returns whether this field is set.
28912
+ * @return {boolean}
28913
+ */
28914
+ proto.gateway.web.v1.SeatEntitlement.prototype.hasCreditsUnlimited = function() {
28915
+ return jspb.Message.getField(this, 9) != null;
28916
+ };
28917
+
28918
+
28919
+ /**
28920
+ * optional string plan_type = 10;
28921
+ * @return {string}
28922
+ */
28923
+ proto.gateway.web.v1.SeatEntitlement.prototype.getPlanType = function() {
28924
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
28925
+ };
28926
+
28927
+
28928
+ /**
28929
+ * @param {string} value
28930
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28931
+ */
28932
+ proto.gateway.web.v1.SeatEntitlement.prototype.setPlanType = function(value) {
28933
+ return jspb.Message.setProto3StringField(this, 10, value);
28934
+ };
28935
+
28936
+
28937
+ /**
28938
+ * optional string seat_tier = 11;
28939
+ * @return {string}
28940
+ */
28941
+ proto.gateway.web.v1.SeatEntitlement.prototype.getSeatTier = function() {
28942
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
28943
+ };
28944
+
28945
+
28946
+ /**
28947
+ * @param {string} value
28948
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28949
+ */
28950
+ proto.gateway.web.v1.SeatEntitlement.prototype.setSeatTier = function(value) {
28951
+ return jspb.Message.setProto3StringField(this, 11, value);
28952
+ };
28953
+
28954
+
28955
+ /**
28956
+ * optional string evidence_source = 12;
28957
+ * @return {string}
28958
+ */
28959
+ proto.gateway.web.v1.SeatEntitlement.prototype.getEvidenceSource = function() {
28960
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
28961
+ };
28962
+
28963
+
28964
+ /**
28965
+ * @param {string} value
28966
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28967
+ */
28968
+ proto.gateway.web.v1.SeatEntitlement.prototype.setEvidenceSource = function(value) {
28969
+ return jspb.Message.setProto3StringField(this, 12, value);
28970
+ };
28971
+
28972
+
28973
+
28974
+
28975
+
28976
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28977
+ /**
28978
+ * Creates an object representation of this proto.
28979
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28980
+ * Optional fields that are not set will be set to undefined.
28981
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28982
+ * For the list of reserved names please see:
28983
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28984
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28985
+ * JSPB instance for transitional soy proto support:
28986
+ * http://goto/soy-param-migration
28987
+ * @return {!Object}
28988
+ */
28989
+ proto.gateway.web.v1.EntitlementWindow.prototype.toObject = function(opt_includeInstance) {
28990
+ return proto.gateway.web.v1.EntitlementWindow.toObject(opt_includeInstance, this);
28991
+ };
28992
+
28993
+
28994
+ /**
28995
+ * Static version of the {@see toObject} method.
28996
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28997
+ * the JSPB instance for transitional soy proto support:
28998
+ * http://goto/soy-param-migration
28999
+ * @param {!proto.gateway.web.v1.EntitlementWindow} msg The msg instance to transform.
29000
+ * @return {!Object}
29001
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29002
+ */
29003
+ proto.gateway.web.v1.EntitlementWindow.toObject = function(includeInstance, msg) {
29004
+ var f, obj = {
29005
+ kind: jspb.Message.getFieldWithDefault(msg, 1, ""),
29006
+ usedPct: (f = jspb.Message.getOptionalFloatingPointField(msg, 2)) == null ? undefined : f,
29007
+ resetsAt: (f = msg.getResetsAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
29008
+ role: jspb.Message.getFieldWithDefault(msg, 4, 0),
29009
+ windowSeconds: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f
29010
+ };
29011
+
29012
+ if (includeInstance) {
29013
+ obj.$jspbMessageInstance = msg;
29014
+ }
29015
+ return obj;
29016
+ };
29017
+ }
29018
+
29019
+
29020
+ /**
29021
+ * Deserializes binary data (in protobuf wire format).
29022
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
29023
+ * @return {!proto.gateway.web.v1.EntitlementWindow}
29024
+ */
29025
+ proto.gateway.web.v1.EntitlementWindow.deserializeBinary = function(bytes) {
29026
+ var reader = new jspb.BinaryReader(bytes);
29027
+ var msg = new proto.gateway.web.v1.EntitlementWindow;
29028
+ return proto.gateway.web.v1.EntitlementWindow.deserializeBinaryFromReader(msg, reader);
29029
+ };
29030
+
29031
+
29032
+ /**
29033
+ * Deserializes binary data (in protobuf wire format) from the
29034
+ * given reader into the given message object.
29035
+ * @param {!proto.gateway.web.v1.EntitlementWindow} msg The message object to deserialize into.
29036
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29037
+ * @return {!proto.gateway.web.v1.EntitlementWindow}
29038
+ */
29039
+ proto.gateway.web.v1.EntitlementWindow.deserializeBinaryFromReader = function(msg, reader) {
29040
+ while (reader.nextField()) {
29041
+ if (reader.isEndGroup()) {
29042
+ break;
29043
+ }
29044
+ var field = reader.getFieldNumber();
29045
+ switch (field) {
29046
+ case 1:
29047
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
29048
+ msg.setKind(value);
29049
+ break;
29050
+ case 2:
29051
+ var value = /** @type {number} */ (reader.readDouble());
29052
+ msg.setUsedPct(value);
29053
+ break;
29054
+ case 3:
29055
+ var value = new google_protobuf_timestamp_pb.Timestamp;
29056
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
29057
+ msg.setResetsAt(value);
29058
+ break;
29059
+ case 4:
29060
+ var value = /** @type {!proto.gateway.web.v1.AIEntitlementRole} */ (reader.readEnum());
29061
+ msg.setRole(value);
29062
+ break;
29063
+ case 5:
29064
+ var value = /** @type {number} */ (reader.readUint32());
29065
+ msg.setWindowSeconds(value);
29066
+ break;
29067
+ default:
29068
+ reader.skipField();
29069
+ break;
29070
+ }
29071
+ }
29072
+ return msg;
29073
+ };
29074
+
29075
+
29076
+ /**
29077
+ * Serializes the message to binary data (in protobuf wire format).
29078
+ * @return {!Uint8Array}
29079
+ */
29080
+ proto.gateway.web.v1.EntitlementWindow.prototype.serializeBinary = function() {
29081
+ var writer = new jspb.BinaryWriter();
29082
+ proto.gateway.web.v1.EntitlementWindow.serializeBinaryToWriter(this, writer);
29083
+ return writer.getResultBuffer();
29084
+ };
29085
+
29086
+
29087
+ /**
29088
+ * Serializes the given message to binary data (in protobuf wire
29089
+ * format), writing to the given BinaryWriter.
29090
+ * @param {!proto.gateway.web.v1.EntitlementWindow} message
29091
+ * @param {!jspb.BinaryWriter} writer
29092
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29093
+ */
29094
+ proto.gateway.web.v1.EntitlementWindow.serializeBinaryToWriter = function(message, writer) {
29095
+ var f = undefined;
29096
+ f = message.getKind();
29097
+ if (f.length > 0) {
29098
+ writer.writeString(
29099
+ 1,
29100
+ f
29101
+ );
29102
+ }
29103
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
29104
+ if (f != null) {
29105
+ writer.writeDouble(
29106
+ 2,
29107
+ f
29108
+ );
29109
+ }
29110
+ f = message.getResetsAt();
29111
+ if (f != null) {
29112
+ writer.writeMessage(
29113
+ 3,
29114
+ f,
29115
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
29116
+ );
29117
+ }
29118
+ f = message.getRole();
29119
+ if (f !== 0.0) {
29120
+ writer.writeEnum(
29121
+ 4,
29122
+ f
29123
+ );
29124
+ }
29125
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
29126
+ if (f != null) {
29127
+ writer.writeUint32(
29128
+ 5,
29129
+ f
29130
+ );
29131
+ }
29132
+ };
29133
+
29134
+
29135
+ /**
29136
+ * optional string kind = 1;
29137
+ * @return {string}
29138
+ */
29139
+ proto.gateway.web.v1.EntitlementWindow.prototype.getKind = function() {
29140
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
29141
+ };
29142
+
29143
+
29144
+ /**
29145
+ * @param {string} value
29146
+ * @return {!proto.gateway.web.v1.EntitlementWindow} returns this
29147
+ */
29148
+ proto.gateway.web.v1.EntitlementWindow.prototype.setKind = function(value) {
29149
+ return jspb.Message.setProto3StringField(this, 1, value);
29150
+ };
29151
+
29152
+
29153
+ /**
29154
+ * optional double used_pct = 2;
29155
+ * @return {number}
29156
+ */
29157
+ proto.gateway.web.v1.EntitlementWindow.prototype.getUsedPct = function() {
29158
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
29159
+ };
29160
+
29161
+
29162
+ /**
29163
+ * @param {number} value
29164
+ * @return {!proto.gateway.web.v1.EntitlementWindow} returns this
29165
+ */
29166
+ proto.gateway.web.v1.EntitlementWindow.prototype.setUsedPct = function(value) {
29167
+ return jspb.Message.setField(this, 2, value);
29168
+ };
29169
+
29170
+
29171
+ /**
29172
+ * Clears the field making it undefined.
29173
+ * @return {!proto.gateway.web.v1.EntitlementWindow} returns this
29174
+ */
29175
+ proto.gateway.web.v1.EntitlementWindow.prototype.clearUsedPct = function() {
29176
+ return jspb.Message.setField(this, 2, undefined);
29177
+ };
29178
+
29179
+
29180
+ /**
29181
+ * Returns whether this field is set.
29182
+ * @return {boolean}
29183
+ */
29184
+ proto.gateway.web.v1.EntitlementWindow.prototype.hasUsedPct = function() {
29185
+ return jspb.Message.getField(this, 2) != null;
29186
+ };
29187
+
29188
+
29189
+ /**
29190
+ * optional google.protobuf.Timestamp resets_at = 3;
29191
+ * @return {?proto.google.protobuf.Timestamp}
29192
+ */
29193
+ proto.gateway.web.v1.EntitlementWindow.prototype.getResetsAt = function() {
29194
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
29195
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
29196
+ };
29197
+
29198
+
29199
+ /**
29200
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
29201
+ * @return {!proto.gateway.web.v1.EntitlementWindow} returns this
29202
+ */
29203
+ proto.gateway.web.v1.EntitlementWindow.prototype.setResetsAt = function(value) {
29204
+ return jspb.Message.setWrapperField(this, 3, value);
29205
+ };
29206
+
29207
+
29208
+ /**
29209
+ * Clears the message field making it undefined.
29210
+ * @return {!proto.gateway.web.v1.EntitlementWindow} returns this
29211
+ */
29212
+ proto.gateway.web.v1.EntitlementWindow.prototype.clearResetsAt = function() {
29213
+ return this.setResetsAt(undefined);
29214
+ };
29215
+
29216
+
29217
+ /**
29218
+ * Returns whether this field is set.
29219
+ * @return {boolean}
29220
+ */
29221
+ proto.gateway.web.v1.EntitlementWindow.prototype.hasResetsAt = function() {
29222
+ return jspb.Message.getField(this, 3) != null;
29223
+ };
29224
+
29225
+
29226
+ /**
29227
+ * optional AIEntitlementRole role = 4;
29228
+ * @return {!proto.gateway.web.v1.AIEntitlementRole}
29229
+ */
29230
+ proto.gateway.web.v1.EntitlementWindow.prototype.getRole = function() {
29231
+ return /** @type {!proto.gateway.web.v1.AIEntitlementRole} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
29232
+ };
29233
+
29234
+
29235
+ /**
29236
+ * @param {!proto.gateway.web.v1.AIEntitlementRole} value
29237
+ * @return {!proto.gateway.web.v1.EntitlementWindow} returns this
29238
+ */
29239
+ proto.gateway.web.v1.EntitlementWindow.prototype.setRole = function(value) {
29240
+ return jspb.Message.setProto3EnumField(this, 4, value);
29241
+ };
29242
+
29243
+
29244
+ /**
29245
+ * optional uint32 window_seconds = 5;
29246
+ * @return {number}
29247
+ */
29248
+ proto.gateway.web.v1.EntitlementWindow.prototype.getWindowSeconds = function() {
29249
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
29250
+ };
29251
+
29252
+
29253
+ /**
29254
+ * @param {number} value
29255
+ * @return {!proto.gateway.web.v1.EntitlementWindow} returns this
29256
+ */
29257
+ proto.gateway.web.v1.EntitlementWindow.prototype.setWindowSeconds = function(value) {
29258
+ return jspb.Message.setField(this, 5, value);
29259
+ };
29260
+
29261
+
29262
+ /**
29263
+ * Clears the field making it undefined.
29264
+ * @return {!proto.gateway.web.v1.EntitlementWindow} returns this
29265
+ */
29266
+ proto.gateway.web.v1.EntitlementWindow.prototype.clearWindowSeconds = function() {
29267
+ return jspb.Message.setField(this, 5, undefined);
29268
+ };
29269
+
29270
+
29271
+ /**
29272
+ * Returns whether this field is set.
29273
+ * @return {boolean}
29274
+ */
29275
+ proto.gateway.web.v1.EntitlementWindow.prototype.hasWindowSeconds = function() {
29276
+ return jspb.Message.getField(this, 5) != null;
29277
+ };
29278
+
29279
+
29280
+ /**
29281
+ * @enum {number}
27374
29282
  */
27375
29283
  proto.gateway.web.v1.SessionSort = {
27376
29284
  SESSION_SORT_RECENCY: 0,
@@ -27508,4 +29416,24 @@ proto.gateway.web.v1.AIFileGroupBy = {
27508
29416
  AI_FILE_GROUP_BY_SESSION: 3
27509
29417
  };
27510
29418
 
29419
+ /**
29420
+ * @enum {number}
29421
+ */
29422
+ proto.gateway.web.v1.AIFundingMode = {
29423
+ AI_FUNDING_MODE_UNSPECIFIED: 0,
29424
+ AI_FUNDING_MODE_SUBSCRIPTION: 1,
29425
+ AI_FUNDING_MODE_PREPAID_CREDITS: 2,
29426
+ AI_FUNDING_MODE_API_METERED: 3,
29427
+ AI_FUNDING_MODE_UNKNOWN: 4
29428
+ };
29429
+
29430
+ /**
29431
+ * @enum {number}
29432
+ */
29433
+ proto.gateway.web.v1.AIEntitlementRole = {
29434
+ AI_ENTITLEMENT_ROLE_UNSPECIFIED: 0,
29435
+ AI_ENTITLEMENT_ROLE_ALLOWANCE: 1,
29436
+ AI_ENTITLEMENT_ROLE_SPEND_CAP: 2
29437
+ };
29438
+
27511
29439
  goog.object.extend(exports, proto.gateway.web.v1);