@miradorlabs/web-grpc 2.61.0 → 2.63.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
 
@@ -27155,7 +27297,8 @@ inputTokens: jspb.Message.getFieldWithDefault(msg, 1, 0),
27155
27297
  outputTokens: jspb.Message.getFieldWithDefault(msg, 2, 0),
27156
27298
  cacheReadTokens: jspb.Message.getFieldWithDefault(msg, 3, 0),
27157
27299
  cacheWriteTokens: jspb.Message.getFieldWithDefault(msg, 4, 0),
27158
- providerCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
27300
+ providerCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
27301
+ facilityCostBreakdown: (f = msg.getFacilityCostBreakdown()) && proto.gateway.web.v1.AIFacilityCostBreakdown.toObject(includeInstance, f)
27159
27302
  };
27160
27303
 
27161
27304
  if (includeInstance) {
@@ -27212,6 +27355,11 @@ proto.gateway.web.v1.AITokenUsage.deserializeBinaryFromReader = function(msg, re
27212
27355
  var value = /** @type {number} */ (reader.readDouble());
27213
27356
  msg.setProviderCostUsd(value);
27214
27357
  break;
27358
+ case 6:
27359
+ var value = new proto.gateway.web.v1.AIFacilityCostBreakdown;
27360
+ reader.readMessage(value,proto.gateway.web.v1.AIFacilityCostBreakdown.deserializeBinaryFromReader);
27361
+ msg.setFacilityCostBreakdown(value);
27362
+ break;
27215
27363
  default:
27216
27364
  reader.skipField();
27217
27365
  break;
@@ -27276,6 +27424,14 @@ proto.gateway.web.v1.AITokenUsage.serializeBinaryToWriter = function(message, wr
27276
27424
  f
27277
27425
  );
27278
27426
  }
27427
+ f = message.getFacilityCostBreakdown();
27428
+ if (f != null) {
27429
+ writer.writeMessage(
27430
+ 6,
27431
+ f,
27432
+ proto.gateway.web.v1.AIFacilityCostBreakdown.serializeBinaryToWriter
27433
+ );
27434
+ }
27279
27435
  };
27280
27436
 
27281
27437
 
@@ -27370,136 +27526,1708 @@ proto.gateway.web.v1.AITokenUsage.prototype.setProviderCostUsd = function(value)
27370
27526
 
27371
27527
 
27372
27528
  /**
27373
- * @enum {number}
27529
+ * optional AIFacilityCostBreakdown facility_cost_breakdown = 6;
27530
+ * @return {?proto.gateway.web.v1.AIFacilityCostBreakdown}
27374
27531
  */
27375
- proto.gateway.web.v1.SessionSort = {
27376
- SESSION_SORT_RECENCY: 0,
27377
- SESSION_SORT_COST: 1,
27378
- SESSION_SORT_TOKENS: 2,
27379
- SESSION_SORT_TURNS: 3,
27380
- SESSION_SORT_TOOLS: 4
27532
+ proto.gateway.web.v1.AITokenUsage.prototype.getFacilityCostBreakdown = function() {
27533
+ return /** @type{?proto.gateway.web.v1.AIFacilityCostBreakdown} */ (
27534
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AIFacilityCostBreakdown, 6));
27381
27535
  };
27382
27536
 
27383
- /**
27384
- * @enum {number}
27385
- */
27386
- proto.gateway.web.v1.AISessionEventKind = {
27387
- AI_SESSION_EVENT_KIND_UNSPECIFIED: 0,
27388
- AI_SESSION_EVENT_KIND_SESSION_START: 1,
27389
- AI_SESSION_EVENT_KIND_TURN_START: 2,
27390
- AI_SESSION_EVENT_KIND_USER_MESSAGE: 3,
27391
- AI_SESSION_EVENT_KIND_ASSISTANT_MESSAGE: 4,
27392
- AI_SESSION_EVENT_KIND_MODEL_CALL: 5,
27393
- AI_SESSION_EVENT_KIND_TOOL_CALL: 6,
27394
- AI_SESSION_EVENT_KIND_TOOL_RESULT: 7,
27395
- AI_SESSION_EVENT_KIND_TOOL_DECISION: 8,
27396
- AI_SESSION_EVENT_KIND_COMPACTION: 9,
27397
- AI_SESSION_EVENT_KIND_ERROR: 10
27398
- };
27399
27537
 
27400
27538
  /**
27401
- * @enum {number}
27402
- */
27403
- proto.gateway.web.v1.AIPrincipalKind = {
27404
- AI_PRINCIPAL_KIND_UNSPECIFIED: 0,
27405
- AI_PRINCIPAL_KIND_USER: 1,
27406
- AI_PRINCIPAL_KIND_API_KEY: 2
27539
+ * @param {?proto.gateway.web.v1.AIFacilityCostBreakdown|undefined} value
27540
+ * @return {!proto.gateway.web.v1.AITokenUsage} returns this
27541
+ */
27542
+ proto.gateway.web.v1.AITokenUsage.prototype.setFacilityCostBreakdown = function(value) {
27543
+ return jspb.Message.setWrapperField(this, 6, value);
27407
27544
  };
27408
27545
 
27409
- /**
27410
- * @enum {number}
27411
- */
27412
- proto.gateway.web.v1.AIGitAction = {
27413
- AI_GIT_ACTION_UNSPECIFIED: 0,
27414
- AI_GIT_ACTION_BRANCH_CREATE: 1,
27415
- AI_GIT_ACTION_COMMIT: 2,
27416
- AI_GIT_ACTION_PUSH: 3,
27417
- AI_GIT_ACTION_PULL_REQUEST_CREATE: 4,
27418
- AI_GIT_ACTION_PULL_REQUEST_MERGE: 5,
27419
- AI_GIT_ACTION_PULL_REQUEST_COMMENT: 6,
27420
- AI_GIT_ACTION_OTHER: 7
27421
- };
27422
27546
 
27423
27547
  /**
27424
- * @enum {number}
27548
+ * Clears the message field making it undefined.
27549
+ * @return {!proto.gateway.web.v1.AITokenUsage} returns this
27425
27550
  */
27426
- proto.gateway.web.v1.AIGitOutcome = {
27427
- AI_GIT_OUTCOME_UNSPECIFIED: 0,
27428
- AI_GIT_OUTCOME_ATTEMPTED: 1,
27429
- AI_GIT_OUTCOME_CONFIRMED: 2,
27430
- AI_GIT_OUTCOME_FAILED: 3
27551
+ proto.gateway.web.v1.AITokenUsage.prototype.clearFacilityCostBreakdown = function() {
27552
+ return this.setFacilityCostBreakdown(undefined);
27431
27553
  };
27432
27554
 
27433
- /**
27434
- * @enum {number}
27435
- */
27436
- proto.gateway.web.v1.AIGitActivityDimension = {
27437
- AI_GIT_ACTIVITY_DIMENSION_UNSPECIFIED: 0,
27438
- AI_GIT_ACTIVITY_DIMENSION_SOURCE_SYSTEM: 1,
27439
- AI_GIT_ACTIVITY_DIMENSION_REPOSITORY: 2,
27440
- AI_GIT_ACTIVITY_DIMENSION_ACTION: 3,
27441
- AI_GIT_ACTIVITY_DIMENSION_OUTCOME: 4,
27442
- AI_GIT_ACTIVITY_DIMENSION_SESSION: 5
27443
- };
27444
27555
 
27445
27556
  /**
27446
- * @enum {number}
27557
+ * Returns whether this field is set.
27558
+ * @return {boolean}
27447
27559
  */
27448
- proto.gateway.web.v1.AITokenActivityDimension = {
27449
- AI_TOKEN_ACTIVITY_DIMENSION_UNSPECIFIED: 0,
27450
- AI_TOKEN_ACTIVITY_DIMENSION_MODEL: 1,
27451
- AI_TOKEN_ACTIVITY_DIMENSION_PROVIDER: 2,
27452
- AI_TOKEN_ACTIVITY_DIMENSION_SOURCE_SYSTEM: 3,
27453
- AI_TOKEN_ACTIVITY_DIMENSION_USER: 4,
27454
- AI_TOKEN_ACTIVITY_DIMENSION_API_KEY: 5
27560
+ proto.gateway.web.v1.AITokenUsage.prototype.hasFacilityCostBreakdown = function() {
27561
+ return jspb.Message.getField(this, 6) != null;
27455
27562
  };
27456
27563
 
27457
- /**
27458
- * @enum {number}
27459
- */
27460
- proto.gateway.web.v1.AIResourceDimension = {
27461
- AI_RESOURCE_DIMENSION_UNSPECIFIED: 0,
27462
- AI_RESOURCE_DIMENSION_SKILL: 1,
27463
- AI_RESOURCE_DIMENSION_TOOL: 2,
27464
- AI_RESOURCE_DIMENSION_FILE: 3,
27465
- AI_RESOURCE_DIMENSION_URL: 4,
27466
- AI_RESOURCE_DIMENSION_COMMAND: 5
27467
- };
27468
27564
 
27565
+
27566
+
27567
+
27568
+ if (jspb.Message.GENERATE_TO_OBJECT) {
27469
27569
  /**
27470
- * @enum {number}
27570
+ * Creates an object representation of this proto.
27571
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
27572
+ * Optional fields that are not set will be set to undefined.
27573
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
27574
+ * For the list of reserved names please see:
27575
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
27576
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
27577
+ * JSPB instance for transitional soy proto support:
27578
+ * http://goto/soy-param-migration
27579
+ * @return {!Object}
27471
27580
  */
27472
- proto.gateway.web.v1.AIFileLifecycle = {
27473
- AI_FILE_LIFECYCLE_UNSPECIFIED: 0,
27474
- AI_FILE_LIFECYCLE_UNLANDED: 1,
27475
- AI_FILE_LIFECYCLE_CHANGED_SINCE_COMMIT: 2,
27476
- AI_FILE_LIFECYCLE_COMMITTED_NOT_PUSHED: 3,
27477
- AI_FILE_LIFECYCLE_PUSHED: 4,
27478
- AI_FILE_LIFECYCLE_DISCARDED: 5
27581
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.toObject = function(opt_includeInstance) {
27582
+ return proto.gateway.web.v1.AIFacilityCostBreakdown.toObject(opt_includeInstance, this);
27479
27583
  };
27480
27584
 
27585
+
27481
27586
  /**
27482
- * @enum {number}
27587
+ * Static version of the {@see toObject} method.
27588
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
27589
+ * the JSPB instance for transitional soy proto support:
27590
+ * http://goto/soy-param-migration
27591
+ * @param {!proto.gateway.web.v1.AIFacilityCostBreakdown} msg The msg instance to transform.
27592
+ * @return {!Object}
27593
+ * @suppress {unusedLocalVariables} f is only used for nested messages
27483
27594
  */
27484
- proto.gateway.web.v1.AIFileTier = {
27485
- AI_FILE_TIER_UNSPECIFIED: 0,
27486
- AI_FILE_TIER_ACTIVE: 1,
27487
- AI_FILE_TIER_OPEN: 2,
27488
- AI_FILE_TIER_STALE: 3,
27489
- AI_FILE_TIER_ABANDONED_HORIZON: 4
27595
+ proto.gateway.web.v1.AIFacilityCostBreakdown.toObject = function(includeInstance, msg) {
27596
+ var f, obj = {
27597
+ notionalUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
27598
+ subscriptionFacilityUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
27599
+ prepaidCreditsFacilityUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
27600
+ apiMeteredFacilityUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
27601
+ unknownFacilityUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
27602
+ pricedCalls: jspb.Message.getFieldWithDefault(msg, 6, 0),
27603
+ totalCalls: jspb.Message.getFieldWithDefault(msg, 7, 0)
27604
+ };
27605
+
27606
+ if (includeInstance) {
27607
+ obj.$jspbMessageInstance = msg;
27608
+ }
27609
+ return obj;
27490
27610
  };
27611
+ }
27612
+
27491
27613
 
27492
27614
  /**
27493
- * @enum {number}
27615
+ * Deserializes binary data (in protobuf wire format).
27616
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
27617
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown}
27494
27618
  */
27495
- proto.gateway.web.v1.AIFileConfidence = {
27496
- AI_FILE_CONFIDENCE_UNSPECIFIED: 0,
27497
- AI_FILE_CONFIDENCE_OBSERVED: 1,
27498
- AI_FILE_CONFIDENCE_INFERRED: 2
27619
+ proto.gateway.web.v1.AIFacilityCostBreakdown.deserializeBinary = function(bytes) {
27620
+ var reader = new jspb.BinaryReader(bytes);
27621
+ var msg = new proto.gateway.web.v1.AIFacilityCostBreakdown;
27622
+ return proto.gateway.web.v1.AIFacilityCostBreakdown.deserializeBinaryFromReader(msg, reader);
27499
27623
  };
27500
27624
 
27625
+
27501
27626
  /**
27502
- * @enum {number}
27627
+ * Deserializes binary data (in protobuf wire format) from the
27628
+ * given reader into the given message object.
27629
+ * @param {!proto.gateway.web.v1.AIFacilityCostBreakdown} msg The message object to deserialize into.
27630
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
27631
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown}
27632
+ */
27633
+ proto.gateway.web.v1.AIFacilityCostBreakdown.deserializeBinaryFromReader = function(msg, reader) {
27634
+ while (reader.nextField()) {
27635
+ if (reader.isEndGroup()) {
27636
+ break;
27637
+ }
27638
+ var field = reader.getFieldNumber();
27639
+ switch (field) {
27640
+ case 1:
27641
+ var value = /** @type {number} */ (reader.readDouble());
27642
+ msg.setNotionalUsd(value);
27643
+ break;
27644
+ case 2:
27645
+ var value = /** @type {number} */ (reader.readDouble());
27646
+ msg.setSubscriptionFacilityUsd(value);
27647
+ break;
27648
+ case 3:
27649
+ var value = /** @type {number} */ (reader.readDouble());
27650
+ msg.setPrepaidCreditsFacilityUsd(value);
27651
+ break;
27652
+ case 4:
27653
+ var value = /** @type {number} */ (reader.readDouble());
27654
+ msg.setApiMeteredFacilityUsd(value);
27655
+ break;
27656
+ case 5:
27657
+ var value = /** @type {number} */ (reader.readDouble());
27658
+ msg.setUnknownFacilityUsd(value);
27659
+ break;
27660
+ case 6:
27661
+ var value = /** @type {number} */ (reader.readUint64());
27662
+ msg.setPricedCalls(value);
27663
+ break;
27664
+ case 7:
27665
+ var value = /** @type {number} */ (reader.readUint64());
27666
+ msg.setTotalCalls(value);
27667
+ break;
27668
+ default:
27669
+ reader.skipField();
27670
+ break;
27671
+ }
27672
+ }
27673
+ return msg;
27674
+ };
27675
+
27676
+
27677
+ /**
27678
+ * Serializes the message to binary data (in protobuf wire format).
27679
+ * @return {!Uint8Array}
27680
+ */
27681
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.serializeBinary = function() {
27682
+ var writer = new jspb.BinaryWriter();
27683
+ proto.gateway.web.v1.AIFacilityCostBreakdown.serializeBinaryToWriter(this, writer);
27684
+ return writer.getResultBuffer();
27685
+ };
27686
+
27687
+
27688
+ /**
27689
+ * Serializes the given message to binary data (in protobuf wire
27690
+ * format), writing to the given BinaryWriter.
27691
+ * @param {!proto.gateway.web.v1.AIFacilityCostBreakdown} message
27692
+ * @param {!jspb.BinaryWriter} writer
27693
+ * @suppress {unusedLocalVariables} f is only used for nested messages
27694
+ */
27695
+ proto.gateway.web.v1.AIFacilityCostBreakdown.serializeBinaryToWriter = function(message, writer) {
27696
+ var f = undefined;
27697
+ f = message.getNotionalUsd();
27698
+ if (f !== 0.0) {
27699
+ writer.writeDouble(
27700
+ 1,
27701
+ f
27702
+ );
27703
+ }
27704
+ f = message.getSubscriptionFacilityUsd();
27705
+ if (f !== 0.0) {
27706
+ writer.writeDouble(
27707
+ 2,
27708
+ f
27709
+ );
27710
+ }
27711
+ f = message.getPrepaidCreditsFacilityUsd();
27712
+ if (f !== 0.0) {
27713
+ writer.writeDouble(
27714
+ 3,
27715
+ f
27716
+ );
27717
+ }
27718
+ f = message.getApiMeteredFacilityUsd();
27719
+ if (f !== 0.0) {
27720
+ writer.writeDouble(
27721
+ 4,
27722
+ f
27723
+ );
27724
+ }
27725
+ f = message.getUnknownFacilityUsd();
27726
+ if (f !== 0.0) {
27727
+ writer.writeDouble(
27728
+ 5,
27729
+ f
27730
+ );
27731
+ }
27732
+ f = message.getPricedCalls();
27733
+ if (f !== 0) {
27734
+ writer.writeUint64(
27735
+ 6,
27736
+ f
27737
+ );
27738
+ }
27739
+ f = message.getTotalCalls();
27740
+ if (f !== 0) {
27741
+ writer.writeUint64(
27742
+ 7,
27743
+ f
27744
+ );
27745
+ }
27746
+ };
27747
+
27748
+
27749
+ /**
27750
+ * optional double notional_usd = 1;
27751
+ * @return {number}
27752
+ */
27753
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.getNotionalUsd = function() {
27754
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
27755
+ };
27756
+
27757
+
27758
+ /**
27759
+ * @param {number} value
27760
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown} returns this
27761
+ */
27762
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.setNotionalUsd = function(value) {
27763
+ return jspb.Message.setProto3FloatField(this, 1, value);
27764
+ };
27765
+
27766
+
27767
+ /**
27768
+ * optional double subscription_facility_usd = 2;
27769
+ * @return {number}
27770
+ */
27771
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.getSubscriptionFacilityUsd = function() {
27772
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
27773
+ };
27774
+
27775
+
27776
+ /**
27777
+ * @param {number} value
27778
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown} returns this
27779
+ */
27780
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.setSubscriptionFacilityUsd = function(value) {
27781
+ return jspb.Message.setProto3FloatField(this, 2, value);
27782
+ };
27783
+
27784
+
27785
+ /**
27786
+ * optional double prepaid_credits_facility_usd = 3;
27787
+ * @return {number}
27788
+ */
27789
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.getPrepaidCreditsFacilityUsd = function() {
27790
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
27791
+ };
27792
+
27793
+
27794
+ /**
27795
+ * @param {number} value
27796
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown} returns this
27797
+ */
27798
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.setPrepaidCreditsFacilityUsd = function(value) {
27799
+ return jspb.Message.setProto3FloatField(this, 3, value);
27800
+ };
27801
+
27802
+
27803
+ /**
27804
+ * optional double api_metered_facility_usd = 4;
27805
+ * @return {number}
27806
+ */
27807
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.getApiMeteredFacilityUsd = function() {
27808
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
27809
+ };
27810
+
27811
+
27812
+ /**
27813
+ * @param {number} value
27814
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown} returns this
27815
+ */
27816
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.setApiMeteredFacilityUsd = function(value) {
27817
+ return jspb.Message.setProto3FloatField(this, 4, value);
27818
+ };
27819
+
27820
+
27821
+ /**
27822
+ * optional double unknown_facility_usd = 5;
27823
+ * @return {number}
27824
+ */
27825
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.getUnknownFacilityUsd = function() {
27826
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
27827
+ };
27828
+
27829
+
27830
+ /**
27831
+ * @param {number} value
27832
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown} returns this
27833
+ */
27834
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.setUnknownFacilityUsd = function(value) {
27835
+ return jspb.Message.setProto3FloatField(this, 5, value);
27836
+ };
27837
+
27838
+
27839
+ /**
27840
+ * optional uint64 priced_calls = 6;
27841
+ * @return {number}
27842
+ */
27843
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.getPricedCalls = function() {
27844
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
27845
+ };
27846
+
27847
+
27848
+ /**
27849
+ * @param {number} value
27850
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown} returns this
27851
+ */
27852
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.setPricedCalls = function(value) {
27853
+ return jspb.Message.setProto3IntField(this, 6, value);
27854
+ };
27855
+
27856
+
27857
+ /**
27858
+ * optional uint64 total_calls = 7;
27859
+ * @return {number}
27860
+ */
27861
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.getTotalCalls = function() {
27862
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
27863
+ };
27864
+
27865
+
27866
+ /**
27867
+ * @param {number} value
27868
+ * @return {!proto.gateway.web.v1.AIFacilityCostBreakdown} returns this
27869
+ */
27870
+ proto.gateway.web.v1.AIFacilityCostBreakdown.prototype.setTotalCalls = function(value) {
27871
+ return jspb.Message.setProto3IntField(this, 7, value);
27872
+ };
27873
+
27874
+
27875
+
27876
+
27877
+
27878
+ if (jspb.Message.GENERATE_TO_OBJECT) {
27879
+ /**
27880
+ * Creates an object representation of this proto.
27881
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
27882
+ * Optional fields that are not set will be set to undefined.
27883
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
27884
+ * For the list of reserved names please see:
27885
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
27886
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
27887
+ * JSPB instance for transitional soy proto support:
27888
+ * http://goto/soy-param-migration
27889
+ * @return {!Object}
27890
+ */
27891
+ proto.gateway.web.v1.StreamEntitlementsRequest.prototype.toObject = function(opt_includeInstance) {
27892
+ return proto.gateway.web.v1.StreamEntitlementsRequest.toObject(opt_includeInstance, this);
27893
+ };
27894
+
27895
+
27896
+ /**
27897
+ * Static version of the {@see toObject} method.
27898
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
27899
+ * the JSPB instance for transitional soy proto support:
27900
+ * http://goto/soy-param-migration
27901
+ * @param {!proto.gateway.web.v1.StreamEntitlementsRequest} msg The msg instance to transform.
27902
+ * @return {!Object}
27903
+ * @suppress {unusedLocalVariables} f is only used for nested messages
27904
+ */
27905
+ proto.gateway.web.v1.StreamEntitlementsRequest.toObject = function(includeInstance, msg) {
27906
+ var f, obj = {
27907
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
27908
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, "")
27909
+ };
27910
+
27911
+ if (includeInstance) {
27912
+ obj.$jspbMessageInstance = msg;
27913
+ }
27914
+ return obj;
27915
+ };
27916
+ }
27917
+
27918
+
27919
+ /**
27920
+ * Deserializes binary data (in protobuf wire format).
27921
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
27922
+ * @return {!proto.gateway.web.v1.StreamEntitlementsRequest}
27923
+ */
27924
+ proto.gateway.web.v1.StreamEntitlementsRequest.deserializeBinary = function(bytes) {
27925
+ var reader = new jspb.BinaryReader(bytes);
27926
+ var msg = new proto.gateway.web.v1.StreamEntitlementsRequest;
27927
+ return proto.gateway.web.v1.StreamEntitlementsRequest.deserializeBinaryFromReader(msg, reader);
27928
+ };
27929
+
27930
+
27931
+ /**
27932
+ * Deserializes binary data (in protobuf wire format) from the
27933
+ * given reader into the given message object.
27934
+ * @param {!proto.gateway.web.v1.StreamEntitlementsRequest} msg The message object to deserialize into.
27935
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
27936
+ * @return {!proto.gateway.web.v1.StreamEntitlementsRequest}
27937
+ */
27938
+ proto.gateway.web.v1.StreamEntitlementsRequest.deserializeBinaryFromReader = function(msg, reader) {
27939
+ while (reader.nextField()) {
27940
+ if (reader.isEndGroup()) {
27941
+ break;
27942
+ }
27943
+ var field = reader.getFieldNumber();
27944
+ switch (field) {
27945
+ case 1:
27946
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
27947
+ msg.setOrganizationId(value);
27948
+ break;
27949
+ case 2:
27950
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
27951
+ msg.setProjectId(value);
27952
+ break;
27953
+ default:
27954
+ reader.skipField();
27955
+ break;
27956
+ }
27957
+ }
27958
+ return msg;
27959
+ };
27960
+
27961
+
27962
+ /**
27963
+ * Serializes the message to binary data (in protobuf wire format).
27964
+ * @return {!Uint8Array}
27965
+ */
27966
+ proto.gateway.web.v1.StreamEntitlementsRequest.prototype.serializeBinary = function() {
27967
+ var writer = new jspb.BinaryWriter();
27968
+ proto.gateway.web.v1.StreamEntitlementsRequest.serializeBinaryToWriter(this, writer);
27969
+ return writer.getResultBuffer();
27970
+ };
27971
+
27972
+
27973
+ /**
27974
+ * Serializes the given message to binary data (in protobuf wire
27975
+ * format), writing to the given BinaryWriter.
27976
+ * @param {!proto.gateway.web.v1.StreamEntitlementsRequest} message
27977
+ * @param {!jspb.BinaryWriter} writer
27978
+ * @suppress {unusedLocalVariables} f is only used for nested messages
27979
+ */
27980
+ proto.gateway.web.v1.StreamEntitlementsRequest.serializeBinaryToWriter = function(message, writer) {
27981
+ var f = undefined;
27982
+ f = message.getOrganizationId();
27983
+ if (f.length > 0) {
27984
+ writer.writeString(
27985
+ 1,
27986
+ f
27987
+ );
27988
+ }
27989
+ f = message.getProjectId();
27990
+ if (f.length > 0) {
27991
+ writer.writeString(
27992
+ 2,
27993
+ f
27994
+ );
27995
+ }
27996
+ };
27997
+
27998
+
27999
+ /**
28000
+ * optional string organization_id = 1;
28001
+ * @return {string}
28002
+ */
28003
+ proto.gateway.web.v1.StreamEntitlementsRequest.prototype.getOrganizationId = function() {
28004
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
28005
+ };
28006
+
28007
+
28008
+ /**
28009
+ * @param {string} value
28010
+ * @return {!proto.gateway.web.v1.StreamEntitlementsRequest} returns this
28011
+ */
28012
+ proto.gateway.web.v1.StreamEntitlementsRequest.prototype.setOrganizationId = function(value) {
28013
+ return jspb.Message.setProto3StringField(this, 1, value);
28014
+ };
28015
+
28016
+
28017
+ /**
28018
+ * optional string project_id = 2;
28019
+ * @return {string}
28020
+ */
28021
+ proto.gateway.web.v1.StreamEntitlementsRequest.prototype.getProjectId = function() {
28022
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
28023
+ };
28024
+
28025
+
28026
+ /**
28027
+ * @param {string} value
28028
+ * @return {!proto.gateway.web.v1.StreamEntitlementsRequest} returns this
28029
+ */
28030
+ proto.gateway.web.v1.StreamEntitlementsRequest.prototype.setProjectId = function(value) {
28031
+ return jspb.Message.setProto3StringField(this, 2, value);
28032
+ };
28033
+
28034
+
28035
+
28036
+ /**
28037
+ * List of repeated fields within this message type.
28038
+ * @private {!Array<number>}
28039
+ * @const
28040
+ */
28041
+ proto.gateway.web.v1.EntitlementsSnapshot.repeatedFields_ = [1];
28042
+
28043
+
28044
+
28045
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28046
+ /**
28047
+ * Creates an object representation of this proto.
28048
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28049
+ * Optional fields that are not set will be set to undefined.
28050
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28051
+ * For the list of reserved names please see:
28052
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28053
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28054
+ * JSPB instance for transitional soy proto support:
28055
+ * http://goto/soy-param-migration
28056
+ * @return {!Object}
28057
+ */
28058
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.toObject = function(opt_includeInstance) {
28059
+ return proto.gateway.web.v1.EntitlementsSnapshot.toObject(opt_includeInstance, this);
28060
+ };
28061
+
28062
+
28063
+ /**
28064
+ * Static version of the {@see toObject} method.
28065
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28066
+ * the JSPB instance for transitional soy proto support:
28067
+ * http://goto/soy-param-migration
28068
+ * @param {!proto.gateway.web.v1.EntitlementsSnapshot} msg The msg instance to transform.
28069
+ * @return {!Object}
28070
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28071
+ */
28072
+ proto.gateway.web.v1.EntitlementsSnapshot.toObject = function(includeInstance, msg) {
28073
+ var f, obj = {
28074
+ seatsList: jspb.Message.toObjectList(msg.getSeatsList(),
28075
+ proto.gateway.web.v1.SeatEntitlement.toObject, includeInstance),
28076
+ asOf: (f = msg.getAsOf()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
28077
+ };
28078
+
28079
+ if (includeInstance) {
28080
+ obj.$jspbMessageInstance = msg;
28081
+ }
28082
+ return obj;
28083
+ };
28084
+ }
28085
+
28086
+
28087
+ /**
28088
+ * Deserializes binary data (in protobuf wire format).
28089
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
28090
+ * @return {!proto.gateway.web.v1.EntitlementsSnapshot}
28091
+ */
28092
+ proto.gateway.web.v1.EntitlementsSnapshot.deserializeBinary = function(bytes) {
28093
+ var reader = new jspb.BinaryReader(bytes);
28094
+ var msg = new proto.gateway.web.v1.EntitlementsSnapshot;
28095
+ return proto.gateway.web.v1.EntitlementsSnapshot.deserializeBinaryFromReader(msg, reader);
28096
+ };
28097
+
28098
+
28099
+ /**
28100
+ * Deserializes binary data (in protobuf wire format) from the
28101
+ * given reader into the given message object.
28102
+ * @param {!proto.gateway.web.v1.EntitlementsSnapshot} msg The message object to deserialize into.
28103
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
28104
+ * @return {!proto.gateway.web.v1.EntitlementsSnapshot}
28105
+ */
28106
+ proto.gateway.web.v1.EntitlementsSnapshot.deserializeBinaryFromReader = function(msg, reader) {
28107
+ while (reader.nextField()) {
28108
+ if (reader.isEndGroup()) {
28109
+ break;
28110
+ }
28111
+ var field = reader.getFieldNumber();
28112
+ switch (field) {
28113
+ case 1:
28114
+ var value = new proto.gateway.web.v1.SeatEntitlement;
28115
+ reader.readMessage(value,proto.gateway.web.v1.SeatEntitlement.deserializeBinaryFromReader);
28116
+ msg.addSeats(value);
28117
+ break;
28118
+ case 2:
28119
+ var value = new google_protobuf_timestamp_pb.Timestamp;
28120
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
28121
+ msg.setAsOf(value);
28122
+ break;
28123
+ default:
28124
+ reader.skipField();
28125
+ break;
28126
+ }
28127
+ }
28128
+ return msg;
28129
+ };
28130
+
28131
+
28132
+ /**
28133
+ * Serializes the message to binary data (in protobuf wire format).
28134
+ * @return {!Uint8Array}
28135
+ */
28136
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.serializeBinary = function() {
28137
+ var writer = new jspb.BinaryWriter();
28138
+ proto.gateway.web.v1.EntitlementsSnapshot.serializeBinaryToWriter(this, writer);
28139
+ return writer.getResultBuffer();
28140
+ };
28141
+
28142
+
28143
+ /**
28144
+ * Serializes the given message to binary data (in protobuf wire
28145
+ * format), writing to the given BinaryWriter.
28146
+ * @param {!proto.gateway.web.v1.EntitlementsSnapshot} message
28147
+ * @param {!jspb.BinaryWriter} writer
28148
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28149
+ */
28150
+ proto.gateway.web.v1.EntitlementsSnapshot.serializeBinaryToWriter = function(message, writer) {
28151
+ var f = undefined;
28152
+ f = message.getSeatsList();
28153
+ if (f.length > 0) {
28154
+ writer.writeRepeatedMessage(
28155
+ 1,
28156
+ f,
28157
+ proto.gateway.web.v1.SeatEntitlement.serializeBinaryToWriter
28158
+ );
28159
+ }
28160
+ f = message.getAsOf();
28161
+ if (f != null) {
28162
+ writer.writeMessage(
28163
+ 2,
28164
+ f,
28165
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
28166
+ );
28167
+ }
28168
+ };
28169
+
28170
+
28171
+ /**
28172
+ * repeated SeatEntitlement seats = 1;
28173
+ * @return {!Array<!proto.gateway.web.v1.SeatEntitlement>}
28174
+ */
28175
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.getSeatsList = function() {
28176
+ return /** @type{!Array<!proto.gateway.web.v1.SeatEntitlement>} */ (
28177
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SeatEntitlement, 1));
28178
+ };
28179
+
28180
+
28181
+ /**
28182
+ * @param {!Array<!proto.gateway.web.v1.SeatEntitlement>} value
28183
+ * @return {!proto.gateway.web.v1.EntitlementsSnapshot} returns this
28184
+ */
28185
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.setSeatsList = function(value) {
28186
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
28187
+ };
28188
+
28189
+
28190
+ /**
28191
+ * @param {!proto.gateway.web.v1.SeatEntitlement=} opt_value
28192
+ * @param {number=} opt_index
28193
+ * @return {!proto.gateway.web.v1.SeatEntitlement}
28194
+ */
28195
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.addSeats = function(opt_value, opt_index) {
28196
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.SeatEntitlement, opt_index);
28197
+ };
28198
+
28199
+
28200
+ /**
28201
+ * Clears the list making it empty but non-null.
28202
+ * @return {!proto.gateway.web.v1.EntitlementsSnapshot} returns this
28203
+ */
28204
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.clearSeatsList = function() {
28205
+ return this.setSeatsList([]);
28206
+ };
28207
+
28208
+
28209
+ /**
28210
+ * optional google.protobuf.Timestamp as_of = 2;
28211
+ * @return {?proto.google.protobuf.Timestamp}
28212
+ */
28213
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.getAsOf = function() {
28214
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
28215
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
28216
+ };
28217
+
28218
+
28219
+ /**
28220
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
28221
+ * @return {!proto.gateway.web.v1.EntitlementsSnapshot} returns this
28222
+ */
28223
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.setAsOf = function(value) {
28224
+ return jspb.Message.setWrapperField(this, 2, value);
28225
+ };
28226
+
28227
+
28228
+ /**
28229
+ * Clears the message field making it undefined.
28230
+ * @return {!proto.gateway.web.v1.EntitlementsSnapshot} returns this
28231
+ */
28232
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.clearAsOf = function() {
28233
+ return this.setAsOf(undefined);
28234
+ };
28235
+
28236
+
28237
+ /**
28238
+ * Returns whether this field is set.
28239
+ * @return {boolean}
28240
+ */
28241
+ proto.gateway.web.v1.EntitlementsSnapshot.prototype.hasAsOf = function() {
28242
+ return jspb.Message.getField(this, 2) != null;
28243
+ };
28244
+
28245
+
28246
+
28247
+ /**
28248
+ * List of repeated fields within this message type.
28249
+ * @private {!Array<number>}
28250
+ * @const
28251
+ */
28252
+ proto.gateway.web.v1.SeatEntitlement.repeatedFields_ = [6];
28253
+
28254
+
28255
+
28256
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28257
+ /**
28258
+ * Creates an object representation of this proto.
28259
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28260
+ * Optional fields that are not set will be set to undefined.
28261
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28262
+ * For the list of reserved names please see:
28263
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28264
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28265
+ * JSPB instance for transitional soy proto support:
28266
+ * http://goto/soy-param-migration
28267
+ * @return {!Object}
28268
+ */
28269
+ proto.gateway.web.v1.SeatEntitlement.prototype.toObject = function(opt_includeInstance) {
28270
+ return proto.gateway.web.v1.SeatEntitlement.toObject(opt_includeInstance, this);
28271
+ };
28272
+
28273
+
28274
+ /**
28275
+ * Static version of the {@see toObject} method.
28276
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28277
+ * the JSPB instance for transitional soy proto support:
28278
+ * http://goto/soy-param-migration
28279
+ * @param {!proto.gateway.web.v1.SeatEntitlement} msg The msg instance to transform.
28280
+ * @return {!Object}
28281
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28282
+ */
28283
+ proto.gateway.web.v1.SeatEntitlement.toObject = function(includeInstance, msg) {
28284
+ var f, obj = {
28285
+ sourceSystem: jspb.Message.getFieldWithDefault(msg, 1, ""),
28286
+ accountId: jspb.Message.getFieldWithDefault(msg, 2, ""),
28287
+ principalId: jspb.Message.getFieldWithDefault(msg, 3, ""),
28288
+ principalName: jspb.Message.getFieldWithDefault(msg, 4, ""),
28289
+ fundingMode: jspb.Message.getFieldWithDefault(msg, 5, 0),
28290
+ windowsList: jspb.Message.toObjectList(msg.getWindowsList(),
28291
+ proto.gateway.web.v1.EntitlementWindow.toObject, includeInstance),
28292
+ eventTime: (f = msg.getEventTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
28293
+ creditsBalanceRaw: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f,
28294
+ creditsUnlimited: (f = jspb.Message.getBooleanField(msg, 9)) == null ? undefined : f,
28295
+ planType: jspb.Message.getFieldWithDefault(msg, 10, ""),
28296
+ seatTier: jspb.Message.getFieldWithDefault(msg, 11, ""),
28297
+ evidenceSource: jspb.Message.getFieldWithDefault(msg, 12, "")
28298
+ };
28299
+
28300
+ if (includeInstance) {
28301
+ obj.$jspbMessageInstance = msg;
28302
+ }
28303
+ return obj;
28304
+ };
28305
+ }
28306
+
28307
+
28308
+ /**
28309
+ * Deserializes binary data (in protobuf wire format).
28310
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
28311
+ * @return {!proto.gateway.web.v1.SeatEntitlement}
28312
+ */
28313
+ proto.gateway.web.v1.SeatEntitlement.deserializeBinary = function(bytes) {
28314
+ var reader = new jspb.BinaryReader(bytes);
28315
+ var msg = new proto.gateway.web.v1.SeatEntitlement;
28316
+ return proto.gateway.web.v1.SeatEntitlement.deserializeBinaryFromReader(msg, reader);
28317
+ };
28318
+
28319
+
28320
+ /**
28321
+ * Deserializes binary data (in protobuf wire format) from the
28322
+ * given reader into the given message object.
28323
+ * @param {!proto.gateway.web.v1.SeatEntitlement} msg The message object to deserialize into.
28324
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
28325
+ * @return {!proto.gateway.web.v1.SeatEntitlement}
28326
+ */
28327
+ proto.gateway.web.v1.SeatEntitlement.deserializeBinaryFromReader = function(msg, reader) {
28328
+ while (reader.nextField()) {
28329
+ if (reader.isEndGroup()) {
28330
+ break;
28331
+ }
28332
+ var field = reader.getFieldNumber();
28333
+ switch (field) {
28334
+ case 1:
28335
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28336
+ msg.setSourceSystem(value);
28337
+ break;
28338
+ case 2:
28339
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28340
+ msg.setAccountId(value);
28341
+ break;
28342
+ case 3:
28343
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28344
+ msg.setPrincipalId(value);
28345
+ break;
28346
+ case 4:
28347
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28348
+ msg.setPrincipalName(value);
28349
+ break;
28350
+ case 5:
28351
+ var value = /** @type {!proto.gateway.web.v1.AIFundingMode} */ (reader.readEnum());
28352
+ msg.setFundingMode(value);
28353
+ break;
28354
+ case 6:
28355
+ var value = new proto.gateway.web.v1.EntitlementWindow;
28356
+ reader.readMessage(value,proto.gateway.web.v1.EntitlementWindow.deserializeBinaryFromReader);
28357
+ msg.addWindows(value);
28358
+ break;
28359
+ case 7:
28360
+ var value = new google_protobuf_timestamp_pb.Timestamp;
28361
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
28362
+ msg.setEventTime(value);
28363
+ break;
28364
+ case 8:
28365
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28366
+ msg.setCreditsBalanceRaw(value);
28367
+ break;
28368
+ case 9:
28369
+ var value = /** @type {boolean} */ (reader.readBool());
28370
+ msg.setCreditsUnlimited(value);
28371
+ break;
28372
+ case 10:
28373
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28374
+ msg.setPlanType(value);
28375
+ break;
28376
+ case 11:
28377
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28378
+ msg.setSeatTier(value);
28379
+ break;
28380
+ case 12:
28381
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28382
+ msg.setEvidenceSource(value);
28383
+ break;
28384
+ default:
28385
+ reader.skipField();
28386
+ break;
28387
+ }
28388
+ }
28389
+ return msg;
28390
+ };
28391
+
28392
+
28393
+ /**
28394
+ * Serializes the message to binary data (in protobuf wire format).
28395
+ * @return {!Uint8Array}
28396
+ */
28397
+ proto.gateway.web.v1.SeatEntitlement.prototype.serializeBinary = function() {
28398
+ var writer = new jspb.BinaryWriter();
28399
+ proto.gateway.web.v1.SeatEntitlement.serializeBinaryToWriter(this, writer);
28400
+ return writer.getResultBuffer();
28401
+ };
28402
+
28403
+
28404
+ /**
28405
+ * Serializes the given message to binary data (in protobuf wire
28406
+ * format), writing to the given BinaryWriter.
28407
+ * @param {!proto.gateway.web.v1.SeatEntitlement} message
28408
+ * @param {!jspb.BinaryWriter} writer
28409
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28410
+ */
28411
+ proto.gateway.web.v1.SeatEntitlement.serializeBinaryToWriter = function(message, writer) {
28412
+ var f = undefined;
28413
+ f = message.getSourceSystem();
28414
+ if (f.length > 0) {
28415
+ writer.writeString(
28416
+ 1,
28417
+ f
28418
+ );
28419
+ }
28420
+ f = message.getAccountId();
28421
+ if (f.length > 0) {
28422
+ writer.writeString(
28423
+ 2,
28424
+ f
28425
+ );
28426
+ }
28427
+ f = message.getPrincipalId();
28428
+ if (f.length > 0) {
28429
+ writer.writeString(
28430
+ 3,
28431
+ f
28432
+ );
28433
+ }
28434
+ f = message.getPrincipalName();
28435
+ if (f.length > 0) {
28436
+ writer.writeString(
28437
+ 4,
28438
+ f
28439
+ );
28440
+ }
28441
+ f = message.getFundingMode();
28442
+ if (f !== 0.0) {
28443
+ writer.writeEnum(
28444
+ 5,
28445
+ f
28446
+ );
28447
+ }
28448
+ f = message.getWindowsList();
28449
+ if (f.length > 0) {
28450
+ writer.writeRepeatedMessage(
28451
+ 6,
28452
+ f,
28453
+ proto.gateway.web.v1.EntitlementWindow.serializeBinaryToWriter
28454
+ );
28455
+ }
28456
+ f = message.getEventTime();
28457
+ if (f != null) {
28458
+ writer.writeMessage(
28459
+ 7,
28460
+ f,
28461
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
28462
+ );
28463
+ }
28464
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
28465
+ if (f != null) {
28466
+ writer.writeString(
28467
+ 8,
28468
+ f
28469
+ );
28470
+ }
28471
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 9));
28472
+ if (f != null) {
28473
+ writer.writeBool(
28474
+ 9,
28475
+ f
28476
+ );
28477
+ }
28478
+ f = message.getPlanType();
28479
+ if (f.length > 0) {
28480
+ writer.writeString(
28481
+ 10,
28482
+ f
28483
+ );
28484
+ }
28485
+ f = message.getSeatTier();
28486
+ if (f.length > 0) {
28487
+ writer.writeString(
28488
+ 11,
28489
+ f
28490
+ );
28491
+ }
28492
+ f = message.getEvidenceSource();
28493
+ if (f.length > 0) {
28494
+ writer.writeString(
28495
+ 12,
28496
+ f
28497
+ );
28498
+ }
28499
+ };
28500
+
28501
+
28502
+ /**
28503
+ * optional string source_system = 1;
28504
+ * @return {string}
28505
+ */
28506
+ proto.gateway.web.v1.SeatEntitlement.prototype.getSourceSystem = function() {
28507
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
28508
+ };
28509
+
28510
+
28511
+ /**
28512
+ * @param {string} value
28513
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28514
+ */
28515
+ proto.gateway.web.v1.SeatEntitlement.prototype.setSourceSystem = function(value) {
28516
+ return jspb.Message.setProto3StringField(this, 1, value);
28517
+ };
28518
+
28519
+
28520
+ /**
28521
+ * optional string account_id = 2;
28522
+ * @return {string}
28523
+ */
28524
+ proto.gateway.web.v1.SeatEntitlement.prototype.getAccountId = function() {
28525
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
28526
+ };
28527
+
28528
+
28529
+ /**
28530
+ * @param {string} value
28531
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28532
+ */
28533
+ proto.gateway.web.v1.SeatEntitlement.prototype.setAccountId = function(value) {
28534
+ return jspb.Message.setProto3StringField(this, 2, value);
28535
+ };
28536
+
28537
+
28538
+ /**
28539
+ * optional string principal_id = 3;
28540
+ * @return {string}
28541
+ */
28542
+ proto.gateway.web.v1.SeatEntitlement.prototype.getPrincipalId = function() {
28543
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
28544
+ };
28545
+
28546
+
28547
+ /**
28548
+ * @param {string} value
28549
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28550
+ */
28551
+ proto.gateway.web.v1.SeatEntitlement.prototype.setPrincipalId = function(value) {
28552
+ return jspb.Message.setProto3StringField(this, 3, value);
28553
+ };
28554
+
28555
+
28556
+ /**
28557
+ * optional string principal_name = 4;
28558
+ * @return {string}
28559
+ */
28560
+ proto.gateway.web.v1.SeatEntitlement.prototype.getPrincipalName = function() {
28561
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
28562
+ };
28563
+
28564
+
28565
+ /**
28566
+ * @param {string} value
28567
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28568
+ */
28569
+ proto.gateway.web.v1.SeatEntitlement.prototype.setPrincipalName = function(value) {
28570
+ return jspb.Message.setProto3StringField(this, 4, value);
28571
+ };
28572
+
28573
+
28574
+ /**
28575
+ * optional AIFundingMode funding_mode = 5;
28576
+ * @return {!proto.gateway.web.v1.AIFundingMode}
28577
+ */
28578
+ proto.gateway.web.v1.SeatEntitlement.prototype.getFundingMode = function() {
28579
+ return /** @type {!proto.gateway.web.v1.AIFundingMode} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
28580
+ };
28581
+
28582
+
28583
+ /**
28584
+ * @param {!proto.gateway.web.v1.AIFundingMode} value
28585
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28586
+ */
28587
+ proto.gateway.web.v1.SeatEntitlement.prototype.setFundingMode = function(value) {
28588
+ return jspb.Message.setProto3EnumField(this, 5, value);
28589
+ };
28590
+
28591
+
28592
+ /**
28593
+ * repeated EntitlementWindow windows = 6;
28594
+ * @return {!Array<!proto.gateway.web.v1.EntitlementWindow>}
28595
+ */
28596
+ proto.gateway.web.v1.SeatEntitlement.prototype.getWindowsList = function() {
28597
+ return /** @type{!Array<!proto.gateway.web.v1.EntitlementWindow>} */ (
28598
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.EntitlementWindow, 6));
28599
+ };
28600
+
28601
+
28602
+ /**
28603
+ * @param {!Array<!proto.gateway.web.v1.EntitlementWindow>} value
28604
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28605
+ */
28606
+ proto.gateway.web.v1.SeatEntitlement.prototype.setWindowsList = function(value) {
28607
+ return jspb.Message.setRepeatedWrapperField(this, 6, value);
28608
+ };
28609
+
28610
+
28611
+ /**
28612
+ * @param {!proto.gateway.web.v1.EntitlementWindow=} opt_value
28613
+ * @param {number=} opt_index
28614
+ * @return {!proto.gateway.web.v1.EntitlementWindow}
28615
+ */
28616
+ proto.gateway.web.v1.SeatEntitlement.prototype.addWindows = function(opt_value, opt_index) {
28617
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.gateway.web.v1.EntitlementWindow, opt_index);
28618
+ };
28619
+
28620
+
28621
+ /**
28622
+ * Clears the list making it empty but non-null.
28623
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28624
+ */
28625
+ proto.gateway.web.v1.SeatEntitlement.prototype.clearWindowsList = function() {
28626
+ return this.setWindowsList([]);
28627
+ };
28628
+
28629
+
28630
+ /**
28631
+ * optional google.protobuf.Timestamp event_time = 7;
28632
+ * @return {?proto.google.protobuf.Timestamp}
28633
+ */
28634
+ proto.gateway.web.v1.SeatEntitlement.prototype.getEventTime = function() {
28635
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
28636
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
28637
+ };
28638
+
28639
+
28640
+ /**
28641
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
28642
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28643
+ */
28644
+ proto.gateway.web.v1.SeatEntitlement.prototype.setEventTime = function(value) {
28645
+ return jspb.Message.setWrapperField(this, 7, value);
28646
+ };
28647
+
28648
+
28649
+ /**
28650
+ * Clears the message field making it undefined.
28651
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28652
+ */
28653
+ proto.gateway.web.v1.SeatEntitlement.prototype.clearEventTime = function() {
28654
+ return this.setEventTime(undefined);
28655
+ };
28656
+
28657
+
28658
+ /**
28659
+ * Returns whether this field is set.
28660
+ * @return {boolean}
28661
+ */
28662
+ proto.gateway.web.v1.SeatEntitlement.prototype.hasEventTime = function() {
28663
+ return jspb.Message.getField(this, 7) != null;
28664
+ };
28665
+
28666
+
28667
+ /**
28668
+ * optional string credits_balance_raw = 8;
28669
+ * @return {string}
28670
+ */
28671
+ proto.gateway.web.v1.SeatEntitlement.prototype.getCreditsBalanceRaw = function() {
28672
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
28673
+ };
28674
+
28675
+
28676
+ /**
28677
+ * @param {string} value
28678
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28679
+ */
28680
+ proto.gateway.web.v1.SeatEntitlement.prototype.setCreditsBalanceRaw = function(value) {
28681
+ return jspb.Message.setField(this, 8, value);
28682
+ };
28683
+
28684
+
28685
+ /**
28686
+ * Clears the field making it undefined.
28687
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28688
+ */
28689
+ proto.gateway.web.v1.SeatEntitlement.prototype.clearCreditsBalanceRaw = function() {
28690
+ return jspb.Message.setField(this, 8, undefined);
28691
+ };
28692
+
28693
+
28694
+ /**
28695
+ * Returns whether this field is set.
28696
+ * @return {boolean}
28697
+ */
28698
+ proto.gateway.web.v1.SeatEntitlement.prototype.hasCreditsBalanceRaw = function() {
28699
+ return jspb.Message.getField(this, 8) != null;
28700
+ };
28701
+
28702
+
28703
+ /**
28704
+ * optional bool credits_unlimited = 9;
28705
+ * @return {boolean}
28706
+ */
28707
+ proto.gateway.web.v1.SeatEntitlement.prototype.getCreditsUnlimited = function() {
28708
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
28709
+ };
28710
+
28711
+
28712
+ /**
28713
+ * @param {boolean} value
28714
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28715
+ */
28716
+ proto.gateway.web.v1.SeatEntitlement.prototype.setCreditsUnlimited = function(value) {
28717
+ return jspb.Message.setField(this, 9, value);
28718
+ };
28719
+
28720
+
28721
+ /**
28722
+ * Clears the field making it undefined.
28723
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28724
+ */
28725
+ proto.gateway.web.v1.SeatEntitlement.prototype.clearCreditsUnlimited = function() {
28726
+ return jspb.Message.setField(this, 9, undefined);
28727
+ };
28728
+
28729
+
28730
+ /**
28731
+ * Returns whether this field is set.
28732
+ * @return {boolean}
28733
+ */
28734
+ proto.gateway.web.v1.SeatEntitlement.prototype.hasCreditsUnlimited = function() {
28735
+ return jspb.Message.getField(this, 9) != null;
28736
+ };
28737
+
28738
+
28739
+ /**
28740
+ * optional string plan_type = 10;
28741
+ * @return {string}
28742
+ */
28743
+ proto.gateway.web.v1.SeatEntitlement.prototype.getPlanType = function() {
28744
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
28745
+ };
28746
+
28747
+
28748
+ /**
28749
+ * @param {string} value
28750
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28751
+ */
28752
+ proto.gateway.web.v1.SeatEntitlement.prototype.setPlanType = function(value) {
28753
+ return jspb.Message.setProto3StringField(this, 10, value);
28754
+ };
28755
+
28756
+
28757
+ /**
28758
+ * optional string seat_tier = 11;
28759
+ * @return {string}
28760
+ */
28761
+ proto.gateway.web.v1.SeatEntitlement.prototype.getSeatTier = function() {
28762
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
28763
+ };
28764
+
28765
+
28766
+ /**
28767
+ * @param {string} value
28768
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28769
+ */
28770
+ proto.gateway.web.v1.SeatEntitlement.prototype.setSeatTier = function(value) {
28771
+ return jspb.Message.setProto3StringField(this, 11, value);
28772
+ };
28773
+
28774
+
28775
+ /**
28776
+ * optional string evidence_source = 12;
28777
+ * @return {string}
28778
+ */
28779
+ proto.gateway.web.v1.SeatEntitlement.prototype.getEvidenceSource = function() {
28780
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
28781
+ };
28782
+
28783
+
28784
+ /**
28785
+ * @param {string} value
28786
+ * @return {!proto.gateway.web.v1.SeatEntitlement} returns this
28787
+ */
28788
+ proto.gateway.web.v1.SeatEntitlement.prototype.setEvidenceSource = function(value) {
28789
+ return jspb.Message.setProto3StringField(this, 12, value);
28790
+ };
28791
+
28792
+
28793
+
28794
+
28795
+
28796
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28797
+ /**
28798
+ * Creates an object representation of this proto.
28799
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28800
+ * Optional fields that are not set will be set to undefined.
28801
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28802
+ * For the list of reserved names please see:
28803
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28804
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28805
+ * JSPB instance for transitional soy proto support:
28806
+ * http://goto/soy-param-migration
28807
+ * @return {!Object}
28808
+ */
28809
+ proto.gateway.web.v1.EntitlementWindow.prototype.toObject = function(opt_includeInstance) {
28810
+ return proto.gateway.web.v1.EntitlementWindow.toObject(opt_includeInstance, this);
28811
+ };
28812
+
28813
+
28814
+ /**
28815
+ * Static version of the {@see toObject} method.
28816
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28817
+ * the JSPB instance for transitional soy proto support:
28818
+ * http://goto/soy-param-migration
28819
+ * @param {!proto.gateway.web.v1.EntitlementWindow} msg The msg instance to transform.
28820
+ * @return {!Object}
28821
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28822
+ */
28823
+ proto.gateway.web.v1.EntitlementWindow.toObject = function(includeInstance, msg) {
28824
+ var f, obj = {
28825
+ kind: jspb.Message.getFieldWithDefault(msg, 1, ""),
28826
+ usedPct: (f = jspb.Message.getOptionalFloatingPointField(msg, 2)) == null ? undefined : f,
28827
+ resetsAt: (f = msg.getResetsAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
28828
+ role: jspb.Message.getFieldWithDefault(msg, 4, 0),
28829
+ windowSeconds: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f
28830
+ };
28831
+
28832
+ if (includeInstance) {
28833
+ obj.$jspbMessageInstance = msg;
28834
+ }
28835
+ return obj;
28836
+ };
28837
+ }
28838
+
28839
+
28840
+ /**
28841
+ * Deserializes binary data (in protobuf wire format).
28842
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
28843
+ * @return {!proto.gateway.web.v1.EntitlementWindow}
28844
+ */
28845
+ proto.gateway.web.v1.EntitlementWindow.deserializeBinary = function(bytes) {
28846
+ var reader = new jspb.BinaryReader(bytes);
28847
+ var msg = new proto.gateway.web.v1.EntitlementWindow;
28848
+ return proto.gateway.web.v1.EntitlementWindow.deserializeBinaryFromReader(msg, reader);
28849
+ };
28850
+
28851
+
28852
+ /**
28853
+ * Deserializes binary data (in protobuf wire format) from the
28854
+ * given reader into the given message object.
28855
+ * @param {!proto.gateway.web.v1.EntitlementWindow} msg The message object to deserialize into.
28856
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
28857
+ * @return {!proto.gateway.web.v1.EntitlementWindow}
28858
+ */
28859
+ proto.gateway.web.v1.EntitlementWindow.deserializeBinaryFromReader = function(msg, reader) {
28860
+ while (reader.nextField()) {
28861
+ if (reader.isEndGroup()) {
28862
+ break;
28863
+ }
28864
+ var field = reader.getFieldNumber();
28865
+ switch (field) {
28866
+ case 1:
28867
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
28868
+ msg.setKind(value);
28869
+ break;
28870
+ case 2:
28871
+ var value = /** @type {number} */ (reader.readDouble());
28872
+ msg.setUsedPct(value);
28873
+ break;
28874
+ case 3:
28875
+ var value = new google_protobuf_timestamp_pb.Timestamp;
28876
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
28877
+ msg.setResetsAt(value);
28878
+ break;
28879
+ case 4:
28880
+ var value = /** @type {!proto.gateway.web.v1.AIEntitlementRole} */ (reader.readEnum());
28881
+ msg.setRole(value);
28882
+ break;
28883
+ case 5:
28884
+ var value = /** @type {number} */ (reader.readUint32());
28885
+ msg.setWindowSeconds(value);
28886
+ break;
28887
+ default:
28888
+ reader.skipField();
28889
+ break;
28890
+ }
28891
+ }
28892
+ return msg;
28893
+ };
28894
+
28895
+
28896
+ /**
28897
+ * Serializes the message to binary data (in protobuf wire format).
28898
+ * @return {!Uint8Array}
28899
+ */
28900
+ proto.gateway.web.v1.EntitlementWindow.prototype.serializeBinary = function() {
28901
+ var writer = new jspb.BinaryWriter();
28902
+ proto.gateway.web.v1.EntitlementWindow.serializeBinaryToWriter(this, writer);
28903
+ return writer.getResultBuffer();
28904
+ };
28905
+
28906
+
28907
+ /**
28908
+ * Serializes the given message to binary data (in protobuf wire
28909
+ * format), writing to the given BinaryWriter.
28910
+ * @param {!proto.gateway.web.v1.EntitlementWindow} message
28911
+ * @param {!jspb.BinaryWriter} writer
28912
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28913
+ */
28914
+ proto.gateway.web.v1.EntitlementWindow.serializeBinaryToWriter = function(message, writer) {
28915
+ var f = undefined;
28916
+ f = message.getKind();
28917
+ if (f.length > 0) {
28918
+ writer.writeString(
28919
+ 1,
28920
+ f
28921
+ );
28922
+ }
28923
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
28924
+ if (f != null) {
28925
+ writer.writeDouble(
28926
+ 2,
28927
+ f
28928
+ );
28929
+ }
28930
+ f = message.getResetsAt();
28931
+ if (f != null) {
28932
+ writer.writeMessage(
28933
+ 3,
28934
+ f,
28935
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
28936
+ );
28937
+ }
28938
+ f = message.getRole();
28939
+ if (f !== 0.0) {
28940
+ writer.writeEnum(
28941
+ 4,
28942
+ f
28943
+ );
28944
+ }
28945
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
28946
+ if (f != null) {
28947
+ writer.writeUint32(
28948
+ 5,
28949
+ f
28950
+ );
28951
+ }
28952
+ };
28953
+
28954
+
28955
+ /**
28956
+ * optional string kind = 1;
28957
+ * @return {string}
28958
+ */
28959
+ proto.gateway.web.v1.EntitlementWindow.prototype.getKind = function() {
28960
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
28961
+ };
28962
+
28963
+
28964
+ /**
28965
+ * @param {string} value
28966
+ * @return {!proto.gateway.web.v1.EntitlementWindow} returns this
28967
+ */
28968
+ proto.gateway.web.v1.EntitlementWindow.prototype.setKind = function(value) {
28969
+ return jspb.Message.setProto3StringField(this, 1, value);
28970
+ };
28971
+
28972
+
28973
+ /**
28974
+ * optional double used_pct = 2;
28975
+ * @return {number}
28976
+ */
28977
+ proto.gateway.web.v1.EntitlementWindow.prototype.getUsedPct = function() {
28978
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
28979
+ };
28980
+
28981
+
28982
+ /**
28983
+ * @param {number} value
28984
+ * @return {!proto.gateway.web.v1.EntitlementWindow} returns this
28985
+ */
28986
+ proto.gateway.web.v1.EntitlementWindow.prototype.setUsedPct = function(value) {
28987
+ return jspb.Message.setField(this, 2, value);
28988
+ };
28989
+
28990
+
28991
+ /**
28992
+ * Clears the field making it undefined.
28993
+ * @return {!proto.gateway.web.v1.EntitlementWindow} returns this
28994
+ */
28995
+ proto.gateway.web.v1.EntitlementWindow.prototype.clearUsedPct = function() {
28996
+ return jspb.Message.setField(this, 2, undefined);
28997
+ };
28998
+
28999
+
29000
+ /**
29001
+ * Returns whether this field is set.
29002
+ * @return {boolean}
29003
+ */
29004
+ proto.gateway.web.v1.EntitlementWindow.prototype.hasUsedPct = function() {
29005
+ return jspb.Message.getField(this, 2) != null;
29006
+ };
29007
+
29008
+
29009
+ /**
29010
+ * optional google.protobuf.Timestamp resets_at = 3;
29011
+ * @return {?proto.google.protobuf.Timestamp}
29012
+ */
29013
+ proto.gateway.web.v1.EntitlementWindow.prototype.getResetsAt = function() {
29014
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
29015
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
29016
+ };
29017
+
29018
+
29019
+ /**
29020
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
29021
+ * @return {!proto.gateway.web.v1.EntitlementWindow} returns this
29022
+ */
29023
+ proto.gateway.web.v1.EntitlementWindow.prototype.setResetsAt = function(value) {
29024
+ return jspb.Message.setWrapperField(this, 3, value);
29025
+ };
29026
+
29027
+
29028
+ /**
29029
+ * Clears the message field making it undefined.
29030
+ * @return {!proto.gateway.web.v1.EntitlementWindow} returns this
29031
+ */
29032
+ proto.gateway.web.v1.EntitlementWindow.prototype.clearResetsAt = function() {
29033
+ return this.setResetsAt(undefined);
29034
+ };
29035
+
29036
+
29037
+ /**
29038
+ * Returns whether this field is set.
29039
+ * @return {boolean}
29040
+ */
29041
+ proto.gateway.web.v1.EntitlementWindow.prototype.hasResetsAt = function() {
29042
+ return jspb.Message.getField(this, 3) != null;
29043
+ };
29044
+
29045
+
29046
+ /**
29047
+ * optional AIEntitlementRole role = 4;
29048
+ * @return {!proto.gateway.web.v1.AIEntitlementRole}
29049
+ */
29050
+ proto.gateway.web.v1.EntitlementWindow.prototype.getRole = function() {
29051
+ return /** @type {!proto.gateway.web.v1.AIEntitlementRole} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
29052
+ };
29053
+
29054
+
29055
+ /**
29056
+ * @param {!proto.gateway.web.v1.AIEntitlementRole} value
29057
+ * @return {!proto.gateway.web.v1.EntitlementWindow} returns this
29058
+ */
29059
+ proto.gateway.web.v1.EntitlementWindow.prototype.setRole = function(value) {
29060
+ return jspb.Message.setProto3EnumField(this, 4, value);
29061
+ };
29062
+
29063
+
29064
+ /**
29065
+ * optional uint32 window_seconds = 5;
29066
+ * @return {number}
29067
+ */
29068
+ proto.gateway.web.v1.EntitlementWindow.prototype.getWindowSeconds = function() {
29069
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
29070
+ };
29071
+
29072
+
29073
+ /**
29074
+ * @param {number} value
29075
+ * @return {!proto.gateway.web.v1.EntitlementWindow} returns this
29076
+ */
29077
+ proto.gateway.web.v1.EntitlementWindow.prototype.setWindowSeconds = function(value) {
29078
+ return jspb.Message.setField(this, 5, value);
29079
+ };
29080
+
29081
+
29082
+ /**
29083
+ * Clears the field making it undefined.
29084
+ * @return {!proto.gateway.web.v1.EntitlementWindow} returns this
29085
+ */
29086
+ proto.gateway.web.v1.EntitlementWindow.prototype.clearWindowSeconds = function() {
29087
+ return jspb.Message.setField(this, 5, undefined);
29088
+ };
29089
+
29090
+
29091
+ /**
29092
+ * Returns whether this field is set.
29093
+ * @return {boolean}
29094
+ */
29095
+ proto.gateway.web.v1.EntitlementWindow.prototype.hasWindowSeconds = function() {
29096
+ return jspb.Message.getField(this, 5) != null;
29097
+ };
29098
+
29099
+
29100
+ /**
29101
+ * @enum {number}
29102
+ */
29103
+ proto.gateway.web.v1.SessionSort = {
29104
+ SESSION_SORT_RECENCY: 0,
29105
+ SESSION_SORT_COST: 1,
29106
+ SESSION_SORT_TOKENS: 2,
29107
+ SESSION_SORT_TURNS: 3,
29108
+ SESSION_SORT_TOOLS: 4
29109
+ };
29110
+
29111
+ /**
29112
+ * @enum {number}
29113
+ */
29114
+ proto.gateway.web.v1.AISessionEventKind = {
29115
+ AI_SESSION_EVENT_KIND_UNSPECIFIED: 0,
29116
+ AI_SESSION_EVENT_KIND_SESSION_START: 1,
29117
+ AI_SESSION_EVENT_KIND_TURN_START: 2,
29118
+ AI_SESSION_EVENT_KIND_USER_MESSAGE: 3,
29119
+ AI_SESSION_EVENT_KIND_ASSISTANT_MESSAGE: 4,
29120
+ AI_SESSION_EVENT_KIND_MODEL_CALL: 5,
29121
+ AI_SESSION_EVENT_KIND_TOOL_CALL: 6,
29122
+ AI_SESSION_EVENT_KIND_TOOL_RESULT: 7,
29123
+ AI_SESSION_EVENT_KIND_TOOL_DECISION: 8,
29124
+ AI_SESSION_EVENT_KIND_COMPACTION: 9,
29125
+ AI_SESSION_EVENT_KIND_ERROR: 10
29126
+ };
29127
+
29128
+ /**
29129
+ * @enum {number}
29130
+ */
29131
+ proto.gateway.web.v1.AIPrincipalKind = {
29132
+ AI_PRINCIPAL_KIND_UNSPECIFIED: 0,
29133
+ AI_PRINCIPAL_KIND_USER: 1,
29134
+ AI_PRINCIPAL_KIND_API_KEY: 2
29135
+ };
29136
+
29137
+ /**
29138
+ * @enum {number}
29139
+ */
29140
+ proto.gateway.web.v1.AIGitAction = {
29141
+ AI_GIT_ACTION_UNSPECIFIED: 0,
29142
+ AI_GIT_ACTION_BRANCH_CREATE: 1,
29143
+ AI_GIT_ACTION_COMMIT: 2,
29144
+ AI_GIT_ACTION_PUSH: 3,
29145
+ AI_GIT_ACTION_PULL_REQUEST_CREATE: 4,
29146
+ AI_GIT_ACTION_PULL_REQUEST_MERGE: 5,
29147
+ AI_GIT_ACTION_PULL_REQUEST_COMMENT: 6,
29148
+ AI_GIT_ACTION_OTHER: 7
29149
+ };
29150
+
29151
+ /**
29152
+ * @enum {number}
29153
+ */
29154
+ proto.gateway.web.v1.AIGitOutcome = {
29155
+ AI_GIT_OUTCOME_UNSPECIFIED: 0,
29156
+ AI_GIT_OUTCOME_ATTEMPTED: 1,
29157
+ AI_GIT_OUTCOME_CONFIRMED: 2,
29158
+ AI_GIT_OUTCOME_FAILED: 3
29159
+ };
29160
+
29161
+ /**
29162
+ * @enum {number}
29163
+ */
29164
+ proto.gateway.web.v1.AIGitActivityDimension = {
29165
+ AI_GIT_ACTIVITY_DIMENSION_UNSPECIFIED: 0,
29166
+ AI_GIT_ACTIVITY_DIMENSION_SOURCE_SYSTEM: 1,
29167
+ AI_GIT_ACTIVITY_DIMENSION_REPOSITORY: 2,
29168
+ AI_GIT_ACTIVITY_DIMENSION_ACTION: 3,
29169
+ AI_GIT_ACTIVITY_DIMENSION_OUTCOME: 4,
29170
+ AI_GIT_ACTIVITY_DIMENSION_SESSION: 5
29171
+ };
29172
+
29173
+ /**
29174
+ * @enum {number}
29175
+ */
29176
+ proto.gateway.web.v1.AITokenActivityDimension = {
29177
+ AI_TOKEN_ACTIVITY_DIMENSION_UNSPECIFIED: 0,
29178
+ AI_TOKEN_ACTIVITY_DIMENSION_MODEL: 1,
29179
+ AI_TOKEN_ACTIVITY_DIMENSION_PROVIDER: 2,
29180
+ AI_TOKEN_ACTIVITY_DIMENSION_SOURCE_SYSTEM: 3,
29181
+ AI_TOKEN_ACTIVITY_DIMENSION_USER: 4,
29182
+ AI_TOKEN_ACTIVITY_DIMENSION_API_KEY: 5
29183
+ };
29184
+
29185
+ /**
29186
+ * @enum {number}
29187
+ */
29188
+ proto.gateway.web.v1.AIResourceDimension = {
29189
+ AI_RESOURCE_DIMENSION_UNSPECIFIED: 0,
29190
+ AI_RESOURCE_DIMENSION_SKILL: 1,
29191
+ AI_RESOURCE_DIMENSION_TOOL: 2,
29192
+ AI_RESOURCE_DIMENSION_FILE: 3,
29193
+ AI_RESOURCE_DIMENSION_URL: 4,
29194
+ AI_RESOURCE_DIMENSION_COMMAND: 5
29195
+ };
29196
+
29197
+ /**
29198
+ * @enum {number}
29199
+ */
29200
+ proto.gateway.web.v1.AIFileLifecycle = {
29201
+ AI_FILE_LIFECYCLE_UNSPECIFIED: 0,
29202
+ AI_FILE_LIFECYCLE_UNLANDED: 1,
29203
+ AI_FILE_LIFECYCLE_CHANGED_SINCE_COMMIT: 2,
29204
+ AI_FILE_LIFECYCLE_COMMITTED_NOT_PUSHED: 3,
29205
+ AI_FILE_LIFECYCLE_PUSHED: 4,
29206
+ AI_FILE_LIFECYCLE_DISCARDED: 5
29207
+ };
29208
+
29209
+ /**
29210
+ * @enum {number}
29211
+ */
29212
+ proto.gateway.web.v1.AIFileTier = {
29213
+ AI_FILE_TIER_UNSPECIFIED: 0,
29214
+ AI_FILE_TIER_ACTIVE: 1,
29215
+ AI_FILE_TIER_OPEN: 2,
29216
+ AI_FILE_TIER_STALE: 3,
29217
+ AI_FILE_TIER_ABANDONED_HORIZON: 4
29218
+ };
29219
+
29220
+ /**
29221
+ * @enum {number}
29222
+ */
29223
+ proto.gateway.web.v1.AIFileConfidence = {
29224
+ AI_FILE_CONFIDENCE_UNSPECIFIED: 0,
29225
+ AI_FILE_CONFIDENCE_OBSERVED: 1,
29226
+ AI_FILE_CONFIDENCE_INFERRED: 2
29227
+ };
29228
+
29229
+ /**
29230
+ * @enum {number}
27503
29231
  */
27504
29232
  proto.gateway.web.v1.AIFileGroupBy = {
27505
29233
  AI_FILE_GROUP_BY_UNSPECIFIED: 0,
@@ -27508,4 +29236,24 @@ proto.gateway.web.v1.AIFileGroupBy = {
27508
29236
  AI_FILE_GROUP_BY_SESSION: 3
27509
29237
  };
27510
29238
 
29239
+ /**
29240
+ * @enum {number}
29241
+ */
29242
+ proto.gateway.web.v1.AIFundingMode = {
29243
+ AI_FUNDING_MODE_UNSPECIFIED: 0,
29244
+ AI_FUNDING_MODE_SUBSCRIPTION: 1,
29245
+ AI_FUNDING_MODE_PREPAID_CREDITS: 2,
29246
+ AI_FUNDING_MODE_API_METERED: 3,
29247
+ AI_FUNDING_MODE_UNKNOWN: 4
29248
+ };
29249
+
29250
+ /**
29251
+ * @enum {number}
29252
+ */
29253
+ proto.gateway.web.v1.AIEntitlementRole = {
29254
+ AI_ENTITLEMENT_ROLE_UNSPECIFIED: 0,
29255
+ AI_ENTITLEMENT_ROLE_ALLOWANCE: 1,
29256
+ AI_ENTITLEMENT_ROLE_SPEND_CAP: 2
29257
+ };
29258
+
27511
29259
  goog.object.extend(exports, proto.gateway.web.v1);