@miradorlabs/web-grpc 3.20.0 → 3.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -107,6 +107,11 @@ goog.exportSymbol('proto.gateway.web.v1.ProjectOverviewRequest', null, global);
107
107
  goog.exportSymbol('proto.gateway.web.v1.ProjectOverviewSlice', null, global);
108
108
  goog.exportSymbol('proto.gateway.web.v1.ProjectOverviewTotals', null, global);
109
109
  goog.exportSymbol('proto.gateway.web.v1.ProjectSessionRef', null, global);
110
+ goog.exportSymbol('proto.gateway.web.v1.ProjectSummaries', null, global);
111
+ goog.exportSymbol('proto.gateway.web.v1.ProjectSummariesRequest', null, global);
112
+ goog.exportSymbol('proto.gateway.web.v1.ProjectSummary', null, global);
113
+ goog.exportSymbol('proto.gateway.web.v1.ProjectSummaryActor', null, global);
114
+ goog.exportSymbol('proto.gateway.web.v1.ProjectUsageBucket', null, global);
110
115
  goog.exportSymbol('proto.gateway.web.v1.ResourceRanking', null, global);
111
116
  goog.exportSymbol('proto.gateway.web.v1.ResourceRankingsRequest', null, global);
112
117
  goog.exportSymbol('proto.gateway.web.v1.ResourceRankingsResponse', null, global);
@@ -1419,6 +1424,111 @@ if (goog.DEBUG && !COMPILED) {
1419
1424
  */
1420
1425
  proto.gateway.web.v1.ProjectOverviewSlice.displayName = 'proto.gateway.web.v1.ProjectOverviewSlice';
1421
1426
  }
1427
+ /**
1428
+ * Generated by JsPbCodeGenerator.
1429
+ * @param {Array=} opt_data Optional initial data array, typically from a
1430
+ * server response, or constructed directly in Javascript. The array is used
1431
+ * in place and becomes part of the constructed object. It is not cloned.
1432
+ * If no data is provided, the constructed object will be empty, but still
1433
+ * valid.
1434
+ * @extends {jspb.Message}
1435
+ * @constructor
1436
+ */
1437
+ proto.gateway.web.v1.ProjectUsageBucket = function(opt_data) {
1438
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1439
+ };
1440
+ goog.inherits(proto.gateway.web.v1.ProjectUsageBucket, jspb.Message);
1441
+ if (goog.DEBUG && !COMPILED) {
1442
+ /**
1443
+ * @public
1444
+ * @override
1445
+ */
1446
+ proto.gateway.web.v1.ProjectUsageBucket.displayName = 'proto.gateway.web.v1.ProjectUsageBucket';
1447
+ }
1448
+ /**
1449
+ * Generated by JsPbCodeGenerator.
1450
+ * @param {Array=} opt_data Optional initial data array, typically from a
1451
+ * server response, or constructed directly in Javascript. The array is used
1452
+ * in place and becomes part of the constructed object. It is not cloned.
1453
+ * If no data is provided, the constructed object will be empty, but still
1454
+ * valid.
1455
+ * @extends {jspb.Message}
1456
+ * @constructor
1457
+ */
1458
+ proto.gateway.web.v1.ProjectSummariesRequest = function(opt_data) {
1459
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ProjectSummariesRequest.repeatedFields_, null);
1460
+ };
1461
+ goog.inherits(proto.gateway.web.v1.ProjectSummariesRequest, jspb.Message);
1462
+ if (goog.DEBUG && !COMPILED) {
1463
+ /**
1464
+ * @public
1465
+ * @override
1466
+ */
1467
+ proto.gateway.web.v1.ProjectSummariesRequest.displayName = 'proto.gateway.web.v1.ProjectSummariesRequest';
1468
+ }
1469
+ /**
1470
+ * Generated by JsPbCodeGenerator.
1471
+ * @param {Array=} opt_data Optional initial data array, typically from a
1472
+ * server response, or constructed directly in Javascript. The array is used
1473
+ * in place and becomes part of the constructed object. It is not cloned.
1474
+ * If no data is provided, the constructed object will be empty, but still
1475
+ * valid.
1476
+ * @extends {jspb.Message}
1477
+ * @constructor
1478
+ */
1479
+ proto.gateway.web.v1.ProjectSummaries = function(opt_data) {
1480
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ProjectSummaries.repeatedFields_, null);
1481
+ };
1482
+ goog.inherits(proto.gateway.web.v1.ProjectSummaries, jspb.Message);
1483
+ if (goog.DEBUG && !COMPILED) {
1484
+ /**
1485
+ * @public
1486
+ * @override
1487
+ */
1488
+ proto.gateway.web.v1.ProjectSummaries.displayName = 'proto.gateway.web.v1.ProjectSummaries';
1489
+ }
1490
+ /**
1491
+ * Generated by JsPbCodeGenerator.
1492
+ * @param {Array=} opt_data Optional initial data array, typically from a
1493
+ * server response, or constructed directly in Javascript. The array is used
1494
+ * in place and becomes part of the constructed object. It is not cloned.
1495
+ * If no data is provided, the constructed object will be empty, but still
1496
+ * valid.
1497
+ * @extends {jspb.Message}
1498
+ * @constructor
1499
+ */
1500
+ proto.gateway.web.v1.ProjectSummary = function(opt_data) {
1501
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ProjectSummary.repeatedFields_, null);
1502
+ };
1503
+ goog.inherits(proto.gateway.web.v1.ProjectSummary, jspb.Message);
1504
+ if (goog.DEBUG && !COMPILED) {
1505
+ /**
1506
+ * @public
1507
+ * @override
1508
+ */
1509
+ proto.gateway.web.v1.ProjectSummary.displayName = 'proto.gateway.web.v1.ProjectSummary';
1510
+ }
1511
+ /**
1512
+ * Generated by JsPbCodeGenerator.
1513
+ * @param {Array=} opt_data Optional initial data array, typically from a
1514
+ * server response, or constructed directly in Javascript. The array is used
1515
+ * in place and becomes part of the constructed object. It is not cloned.
1516
+ * If no data is provided, the constructed object will be empty, but still
1517
+ * valid.
1518
+ * @extends {jspb.Message}
1519
+ * @constructor
1520
+ */
1521
+ proto.gateway.web.v1.ProjectSummaryActor = function(opt_data) {
1522
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1523
+ };
1524
+ goog.inherits(proto.gateway.web.v1.ProjectSummaryActor, jspb.Message);
1525
+ if (goog.DEBUG && !COMPILED) {
1526
+ /**
1527
+ * @public
1528
+ * @override
1529
+ */
1530
+ proto.gateway.web.v1.ProjectSummaryActor.displayName = 'proto.gateway.web.v1.ProjectSummaryActor';
1531
+ }
1422
1532
  /**
1423
1533
  * Generated by JsPbCodeGenerator.
1424
1534
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -21435,7 +21545,7 @@ proto.gateway.web.v1.ProjectOverviewRequest.prototype.setTopSessions = function(
21435
21545
  * @private {!Array<number>}
21436
21546
  * @const
21437
21547
  */
21438
- proto.gateway.web.v1.ProjectOverview.repeatedFields_ = [2,3,4,5,6];
21548
+ proto.gateway.web.v1.ProjectOverview.repeatedFields_ = [2,3,4,5,6,7];
21439
21549
 
21440
21550
 
21441
21551
 
@@ -21477,8 +21587,10 @@ bySourceList: jspb.Message.toObjectList(msg.getBySourceList(),
21477
21587
  proto.gateway.web.v1.ProjectOverviewSlice.toObject, includeInstance),
21478
21588
  topSessionsList: jspb.Message.toObjectList(msg.getTopSessionsList(),
21479
21589
  proto.gateway.web.v1.ProjectSessionRef.toObject, includeInstance),
21480
- byEffortList: jspb.Message.toObjectList(msg.getByEffortList(),
21481
- proto.gateway.web.v1.ProjectOverviewSlice.toObject, includeInstance)
21590
+ bucketsList: jspb.Message.toObjectList(msg.getBucketsList(),
21591
+ proto.gateway.web.v1.ProjectUsageBucket.toObject, includeInstance),
21592
+ priorList: jspb.Message.toObjectList(msg.getPriorList(),
21593
+ proto.gateway.web.v1.ProjectUsageBucket.toObject, includeInstance)
21482
21594
  };
21483
21595
 
21484
21596
  if (includeInstance) {
@@ -21541,9 +21653,14 @@ proto.gateway.web.v1.ProjectOverview.deserializeBinaryFromReader = function(msg,
21541
21653
  msg.addTopSessions(value);
21542
21654
  break;
21543
21655
  case 6:
21544
- var value = new proto.gateway.web.v1.ProjectOverviewSlice;
21545
- reader.readMessage(value,proto.gateway.web.v1.ProjectOverviewSlice.deserializeBinaryFromReader);
21546
- msg.addByEffort(value);
21656
+ var value = new proto.gateway.web.v1.ProjectUsageBucket;
21657
+ reader.readMessage(value,proto.gateway.web.v1.ProjectUsageBucket.deserializeBinaryFromReader);
21658
+ msg.addBuckets(value);
21659
+ break;
21660
+ case 7:
21661
+ var value = new proto.gateway.web.v1.ProjectUsageBucket;
21662
+ reader.readMessage(value,proto.gateway.web.v1.ProjectUsageBucket.deserializeBinaryFromReader);
21663
+ msg.addPrior(value);
21547
21664
  break;
21548
21665
  default:
21549
21666
  reader.skipField();
@@ -21614,12 +21731,20 @@ proto.gateway.web.v1.ProjectOverview.serializeBinaryToWriter = function(message,
21614
21731
  proto.gateway.web.v1.ProjectSessionRef.serializeBinaryToWriter
21615
21732
  );
21616
21733
  }
21617
- f = message.getByEffortList();
21734
+ f = message.getBucketsList();
21618
21735
  if (f.length > 0) {
21619
21736
  writer.writeRepeatedMessage(
21620
21737
  6,
21621
21738
  f,
21622
- proto.gateway.web.v1.ProjectOverviewSlice.serializeBinaryToWriter
21739
+ proto.gateway.web.v1.ProjectUsageBucket.serializeBinaryToWriter
21740
+ );
21741
+ }
21742
+ f = message.getPriorList();
21743
+ if (f.length > 0) {
21744
+ writer.writeRepeatedMessage(
21745
+ 7,
21746
+ f,
21747
+ proto.gateway.web.v1.ProjectUsageBucket.serializeBinaryToWriter
21623
21748
  );
21624
21749
  }
21625
21750
  };
@@ -21815,31 +21940,69 @@ proto.gateway.web.v1.ProjectOverview.prototype.clearTopSessionsList = function()
21815
21940
 
21816
21941
 
21817
21942
  /**
21818
- * repeated ProjectOverviewSlice by_effort = 6;
21819
- * @return {!Array<!proto.gateway.web.v1.ProjectOverviewSlice>}
21943
+ * repeated ProjectUsageBucket buckets = 6;
21944
+ * @return {!Array<!proto.gateway.web.v1.ProjectUsageBucket>}
21820
21945
  */
21821
- proto.gateway.web.v1.ProjectOverview.prototype.getByEffortList = function() {
21822
- return /** @type{!Array<!proto.gateway.web.v1.ProjectOverviewSlice>} */ (
21823
- jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ProjectOverviewSlice, 6));
21946
+ proto.gateway.web.v1.ProjectOverview.prototype.getBucketsList = function() {
21947
+ return /** @type{!Array<!proto.gateway.web.v1.ProjectUsageBucket>} */ (
21948
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ProjectUsageBucket, 6));
21824
21949
  };
21825
21950
 
21826
21951
 
21827
21952
  /**
21828
- * @param {!Array<!proto.gateway.web.v1.ProjectOverviewSlice>} value
21953
+ * @param {!Array<!proto.gateway.web.v1.ProjectUsageBucket>} value
21829
21954
  * @return {!proto.gateway.web.v1.ProjectOverview} returns this
21830
21955
  */
21831
- proto.gateway.web.v1.ProjectOverview.prototype.setByEffortList = function(value) {
21956
+ proto.gateway.web.v1.ProjectOverview.prototype.setBucketsList = function(value) {
21832
21957
  return jspb.Message.setRepeatedWrapperField(this, 6, value);
21833
21958
  };
21834
21959
 
21835
21960
 
21836
21961
  /**
21837
- * @param {!proto.gateway.web.v1.ProjectOverviewSlice=} opt_value
21962
+ * @param {!proto.gateway.web.v1.ProjectUsageBucket=} opt_value
21838
21963
  * @param {number=} opt_index
21839
- * @return {!proto.gateway.web.v1.ProjectOverviewSlice}
21964
+ * @return {!proto.gateway.web.v1.ProjectUsageBucket}
21965
+ */
21966
+ proto.gateway.web.v1.ProjectOverview.prototype.addBuckets = function(opt_value, opt_index) {
21967
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.gateway.web.v1.ProjectUsageBucket, opt_index);
21968
+ };
21969
+
21970
+
21971
+ /**
21972
+ * Clears the list making it empty but non-null.
21973
+ * @return {!proto.gateway.web.v1.ProjectOverview} returns this
21974
+ */
21975
+ proto.gateway.web.v1.ProjectOverview.prototype.clearBucketsList = function() {
21976
+ return this.setBucketsList([]);
21977
+ };
21978
+
21979
+
21980
+ /**
21981
+ * repeated ProjectUsageBucket prior = 7;
21982
+ * @return {!Array<!proto.gateway.web.v1.ProjectUsageBucket>}
21983
+ */
21984
+ proto.gateway.web.v1.ProjectOverview.prototype.getPriorList = function() {
21985
+ return /** @type{!Array<!proto.gateway.web.v1.ProjectUsageBucket>} */ (
21986
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ProjectUsageBucket, 7));
21987
+ };
21988
+
21989
+
21990
+ /**
21991
+ * @param {!Array<!proto.gateway.web.v1.ProjectUsageBucket>} value
21992
+ * @return {!proto.gateway.web.v1.ProjectOverview} returns this
21993
+ */
21994
+ proto.gateway.web.v1.ProjectOverview.prototype.setPriorList = function(value) {
21995
+ return jspb.Message.setRepeatedWrapperField(this, 7, value);
21996
+ };
21997
+
21998
+
21999
+ /**
22000
+ * @param {!proto.gateway.web.v1.ProjectUsageBucket=} opt_value
22001
+ * @param {number=} opt_index
22002
+ * @return {!proto.gateway.web.v1.ProjectUsageBucket}
21840
22003
  */
21841
- proto.gateway.web.v1.ProjectOverview.prototype.addByEffort = function(opt_value, opt_index) {
21842
- return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.gateway.web.v1.ProjectOverviewSlice, opt_index);
22004
+ proto.gateway.web.v1.ProjectOverview.prototype.addPrior = function(opt_value, opt_index) {
22005
+ return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.gateway.web.v1.ProjectUsageBucket, opt_index);
21843
22006
  };
21844
22007
 
21845
22008
 
@@ -21847,8 +22010,8 @@ proto.gateway.web.v1.ProjectOverview.prototype.addByEffort = function(opt_value,
21847
22010
  * Clears the list making it empty but non-null.
21848
22011
  * @return {!proto.gateway.web.v1.ProjectOverview} returns this
21849
22012
  */
21850
- proto.gateway.web.v1.ProjectOverview.prototype.clearByEffortList = function() {
21851
- return this.setByEffortList([]);
22013
+ proto.gateway.web.v1.ProjectOverview.prototype.clearPriorList = function() {
22014
+ return this.setPriorList([]);
21852
22015
  };
21853
22016
 
21854
22017
 
@@ -22706,6 +22869,1488 @@ proto.gateway.web.v1.ProjectOverviewSlice.prototype.setSubscriptionCostUsd = fun
22706
22869
 
22707
22870
 
22708
22871
 
22872
+ if (jspb.Message.GENERATE_TO_OBJECT) {
22873
+ /**
22874
+ * Creates an object representation of this proto.
22875
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
22876
+ * Optional fields that are not set will be set to undefined.
22877
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
22878
+ * For the list of reserved names please see:
22879
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
22880
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
22881
+ * JSPB instance for transitional soy proto support:
22882
+ * http://goto/soy-param-migration
22883
+ * @return {!Object}
22884
+ */
22885
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.toObject = function(opt_includeInstance) {
22886
+ return proto.gateway.web.v1.ProjectUsageBucket.toObject(opt_includeInstance, this);
22887
+ };
22888
+
22889
+
22890
+ /**
22891
+ * Static version of the {@see toObject} method.
22892
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
22893
+ * the JSPB instance for transitional soy proto support:
22894
+ * http://goto/soy-param-migration
22895
+ * @param {!proto.gateway.web.v1.ProjectUsageBucket} msg The msg instance to transform.
22896
+ * @return {!Object}
22897
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22898
+ */
22899
+ proto.gateway.web.v1.ProjectUsageBucket.toObject = function(includeInstance, msg) {
22900
+ var f, obj = {
22901
+ startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
22902
+ model: jspb.Message.getFieldWithDefault(msg, 2, ""),
22903
+ provider: jspb.Message.getFieldWithDefault(msg, 3, ""),
22904
+ sourceSystem: jspb.Message.getFieldWithDefault(msg, 4, ""),
22905
+ fundingMode: jspb.Message.getFieldWithDefault(msg, 5, 0),
22906
+ modelCalls: jspb.Message.getFieldWithDefault(msg, 6, 0),
22907
+ inputTokens: jspb.Message.getFieldWithDefault(msg, 7, 0),
22908
+ outputTokens: jspb.Message.getFieldWithDefault(msg, 8, 0),
22909
+ cacheReadTokens: jspb.Message.getFieldWithDefault(msg, 9, 0),
22910
+ cacheWriteTokens: jspb.Message.getFieldWithDefault(msg, 10, 0),
22911
+ costUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0)
22912
+ };
22913
+
22914
+ if (includeInstance) {
22915
+ obj.$jspbMessageInstance = msg;
22916
+ }
22917
+ return obj;
22918
+ };
22919
+ }
22920
+
22921
+
22922
+ /**
22923
+ * Deserializes binary data (in protobuf wire format).
22924
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
22925
+ * @return {!proto.gateway.web.v1.ProjectUsageBucket}
22926
+ */
22927
+ proto.gateway.web.v1.ProjectUsageBucket.deserializeBinary = function(bytes) {
22928
+ var reader = new jspb.BinaryReader(bytes);
22929
+ var msg = new proto.gateway.web.v1.ProjectUsageBucket;
22930
+ return proto.gateway.web.v1.ProjectUsageBucket.deserializeBinaryFromReader(msg, reader);
22931
+ };
22932
+
22933
+
22934
+ /**
22935
+ * Deserializes binary data (in protobuf wire format) from the
22936
+ * given reader into the given message object.
22937
+ * @param {!proto.gateway.web.v1.ProjectUsageBucket} msg The message object to deserialize into.
22938
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
22939
+ * @return {!proto.gateway.web.v1.ProjectUsageBucket}
22940
+ */
22941
+ proto.gateway.web.v1.ProjectUsageBucket.deserializeBinaryFromReader = function(msg, reader) {
22942
+ while (reader.nextField()) {
22943
+ if (reader.isEndGroup()) {
22944
+ break;
22945
+ }
22946
+ var field = reader.getFieldNumber();
22947
+ switch (field) {
22948
+ case 1:
22949
+ var value = new google_protobuf_timestamp_pb.Timestamp;
22950
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
22951
+ msg.setStartTime(value);
22952
+ break;
22953
+ case 2:
22954
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
22955
+ msg.setModel(value);
22956
+ break;
22957
+ case 3:
22958
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
22959
+ msg.setProvider(value);
22960
+ break;
22961
+ case 4:
22962
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
22963
+ msg.setSourceSystem(value);
22964
+ break;
22965
+ case 5:
22966
+ var value = /** @type {!proto.gateway.web.v1.AIFundingMode} */ (reader.readEnum());
22967
+ msg.setFundingMode(value);
22968
+ break;
22969
+ case 6:
22970
+ var value = /** @type {number} */ (reader.readUint64());
22971
+ msg.setModelCalls(value);
22972
+ break;
22973
+ case 7:
22974
+ var value = /** @type {number} */ (reader.readUint64());
22975
+ msg.setInputTokens(value);
22976
+ break;
22977
+ case 8:
22978
+ var value = /** @type {number} */ (reader.readUint64());
22979
+ msg.setOutputTokens(value);
22980
+ break;
22981
+ case 9:
22982
+ var value = /** @type {number} */ (reader.readUint64());
22983
+ msg.setCacheReadTokens(value);
22984
+ break;
22985
+ case 10:
22986
+ var value = /** @type {number} */ (reader.readUint64());
22987
+ msg.setCacheWriteTokens(value);
22988
+ break;
22989
+ case 11:
22990
+ var value = /** @type {number} */ (reader.readDouble());
22991
+ msg.setCostUsd(value);
22992
+ break;
22993
+ default:
22994
+ reader.skipField();
22995
+ break;
22996
+ }
22997
+ }
22998
+ return msg;
22999
+ };
23000
+
23001
+
23002
+ /**
23003
+ * Serializes the message to binary data (in protobuf wire format).
23004
+ * @return {!Uint8Array}
23005
+ */
23006
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.serializeBinary = function() {
23007
+ var writer = new jspb.BinaryWriter();
23008
+ proto.gateway.web.v1.ProjectUsageBucket.serializeBinaryToWriter(this, writer);
23009
+ return writer.getResultBuffer();
23010
+ };
23011
+
23012
+
23013
+ /**
23014
+ * Serializes the given message to binary data (in protobuf wire
23015
+ * format), writing to the given BinaryWriter.
23016
+ * @param {!proto.gateway.web.v1.ProjectUsageBucket} message
23017
+ * @param {!jspb.BinaryWriter} writer
23018
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23019
+ */
23020
+ proto.gateway.web.v1.ProjectUsageBucket.serializeBinaryToWriter = function(message, writer) {
23021
+ var f = undefined;
23022
+ f = message.getStartTime();
23023
+ if (f != null) {
23024
+ writer.writeMessage(
23025
+ 1,
23026
+ f,
23027
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
23028
+ );
23029
+ }
23030
+ f = message.getModel();
23031
+ if (f.length > 0) {
23032
+ writer.writeString(
23033
+ 2,
23034
+ f
23035
+ );
23036
+ }
23037
+ f = message.getProvider();
23038
+ if (f.length > 0) {
23039
+ writer.writeString(
23040
+ 3,
23041
+ f
23042
+ );
23043
+ }
23044
+ f = message.getSourceSystem();
23045
+ if (f.length > 0) {
23046
+ writer.writeString(
23047
+ 4,
23048
+ f
23049
+ );
23050
+ }
23051
+ f = message.getFundingMode();
23052
+ if (f !== 0.0) {
23053
+ writer.writeEnum(
23054
+ 5,
23055
+ f
23056
+ );
23057
+ }
23058
+ f = message.getModelCalls();
23059
+ if (f !== 0) {
23060
+ writer.writeUint64(
23061
+ 6,
23062
+ f
23063
+ );
23064
+ }
23065
+ f = message.getInputTokens();
23066
+ if (f !== 0) {
23067
+ writer.writeUint64(
23068
+ 7,
23069
+ f
23070
+ );
23071
+ }
23072
+ f = message.getOutputTokens();
23073
+ if (f !== 0) {
23074
+ writer.writeUint64(
23075
+ 8,
23076
+ f
23077
+ );
23078
+ }
23079
+ f = message.getCacheReadTokens();
23080
+ if (f !== 0) {
23081
+ writer.writeUint64(
23082
+ 9,
23083
+ f
23084
+ );
23085
+ }
23086
+ f = message.getCacheWriteTokens();
23087
+ if (f !== 0) {
23088
+ writer.writeUint64(
23089
+ 10,
23090
+ f
23091
+ );
23092
+ }
23093
+ f = message.getCostUsd();
23094
+ if (f !== 0.0) {
23095
+ writer.writeDouble(
23096
+ 11,
23097
+ f
23098
+ );
23099
+ }
23100
+ };
23101
+
23102
+
23103
+ /**
23104
+ * optional google.protobuf.Timestamp start_time = 1;
23105
+ * @return {?proto.google.protobuf.Timestamp}
23106
+ */
23107
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.getStartTime = function() {
23108
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
23109
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
23110
+ };
23111
+
23112
+
23113
+ /**
23114
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
23115
+ * @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
23116
+ */
23117
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.setStartTime = function(value) {
23118
+ return jspb.Message.setWrapperField(this, 1, value);
23119
+ };
23120
+
23121
+
23122
+ /**
23123
+ * Clears the message field making it undefined.
23124
+ * @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
23125
+ */
23126
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.clearStartTime = function() {
23127
+ return this.setStartTime(undefined);
23128
+ };
23129
+
23130
+
23131
+ /**
23132
+ * Returns whether this field is set.
23133
+ * @return {boolean}
23134
+ */
23135
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.hasStartTime = function() {
23136
+ return jspb.Message.getField(this, 1) != null;
23137
+ };
23138
+
23139
+
23140
+ /**
23141
+ * optional string model = 2;
23142
+ * @return {string}
23143
+ */
23144
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.getModel = function() {
23145
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
23146
+ };
23147
+
23148
+
23149
+ /**
23150
+ * @param {string} value
23151
+ * @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
23152
+ */
23153
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.setModel = function(value) {
23154
+ return jspb.Message.setProto3StringField(this, 2, value);
23155
+ };
23156
+
23157
+
23158
+ /**
23159
+ * optional string provider = 3;
23160
+ * @return {string}
23161
+ */
23162
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.getProvider = function() {
23163
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
23164
+ };
23165
+
23166
+
23167
+ /**
23168
+ * @param {string} value
23169
+ * @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
23170
+ */
23171
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.setProvider = function(value) {
23172
+ return jspb.Message.setProto3StringField(this, 3, value);
23173
+ };
23174
+
23175
+
23176
+ /**
23177
+ * optional string source_system = 4;
23178
+ * @return {string}
23179
+ */
23180
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.getSourceSystem = function() {
23181
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
23182
+ };
23183
+
23184
+
23185
+ /**
23186
+ * @param {string} value
23187
+ * @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
23188
+ */
23189
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.setSourceSystem = function(value) {
23190
+ return jspb.Message.setProto3StringField(this, 4, value);
23191
+ };
23192
+
23193
+
23194
+ /**
23195
+ * optional AIFundingMode funding_mode = 5;
23196
+ * @return {!proto.gateway.web.v1.AIFundingMode}
23197
+ */
23198
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.getFundingMode = function() {
23199
+ return /** @type {!proto.gateway.web.v1.AIFundingMode} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
23200
+ };
23201
+
23202
+
23203
+ /**
23204
+ * @param {!proto.gateway.web.v1.AIFundingMode} value
23205
+ * @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
23206
+ */
23207
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.setFundingMode = function(value) {
23208
+ return jspb.Message.setProto3EnumField(this, 5, value);
23209
+ };
23210
+
23211
+
23212
+ /**
23213
+ * optional uint64 model_calls = 6;
23214
+ * @return {number}
23215
+ */
23216
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.getModelCalls = function() {
23217
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
23218
+ };
23219
+
23220
+
23221
+ /**
23222
+ * @param {number} value
23223
+ * @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
23224
+ */
23225
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.setModelCalls = function(value) {
23226
+ return jspb.Message.setProto3IntField(this, 6, value);
23227
+ };
23228
+
23229
+
23230
+ /**
23231
+ * optional uint64 input_tokens = 7;
23232
+ * @return {number}
23233
+ */
23234
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.getInputTokens = function() {
23235
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
23236
+ };
23237
+
23238
+
23239
+ /**
23240
+ * @param {number} value
23241
+ * @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
23242
+ */
23243
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.setInputTokens = function(value) {
23244
+ return jspb.Message.setProto3IntField(this, 7, value);
23245
+ };
23246
+
23247
+
23248
+ /**
23249
+ * optional uint64 output_tokens = 8;
23250
+ * @return {number}
23251
+ */
23252
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.getOutputTokens = function() {
23253
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
23254
+ };
23255
+
23256
+
23257
+ /**
23258
+ * @param {number} value
23259
+ * @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
23260
+ */
23261
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.setOutputTokens = function(value) {
23262
+ return jspb.Message.setProto3IntField(this, 8, value);
23263
+ };
23264
+
23265
+
23266
+ /**
23267
+ * optional uint64 cache_read_tokens = 9;
23268
+ * @return {number}
23269
+ */
23270
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.getCacheReadTokens = function() {
23271
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
23272
+ };
23273
+
23274
+
23275
+ /**
23276
+ * @param {number} value
23277
+ * @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
23278
+ */
23279
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.setCacheReadTokens = function(value) {
23280
+ return jspb.Message.setProto3IntField(this, 9, value);
23281
+ };
23282
+
23283
+
23284
+ /**
23285
+ * optional uint64 cache_write_tokens = 10;
23286
+ * @return {number}
23287
+ */
23288
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.getCacheWriteTokens = function() {
23289
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
23290
+ };
23291
+
23292
+
23293
+ /**
23294
+ * @param {number} value
23295
+ * @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
23296
+ */
23297
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.setCacheWriteTokens = function(value) {
23298
+ return jspb.Message.setProto3IntField(this, 10, value);
23299
+ };
23300
+
23301
+
23302
+ /**
23303
+ * optional double cost_usd = 11;
23304
+ * @return {number}
23305
+ */
23306
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.getCostUsd = function() {
23307
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0));
23308
+ };
23309
+
23310
+
23311
+ /**
23312
+ * @param {number} value
23313
+ * @return {!proto.gateway.web.v1.ProjectUsageBucket} returns this
23314
+ */
23315
+ proto.gateway.web.v1.ProjectUsageBucket.prototype.setCostUsd = function(value) {
23316
+ return jspb.Message.setProto3FloatField(this, 11, value);
23317
+ };
23318
+
23319
+
23320
+
23321
+ /**
23322
+ * List of repeated fields within this message type.
23323
+ * @private {!Array<number>}
23324
+ * @const
23325
+ */
23326
+ proto.gateway.web.v1.ProjectSummariesRequest.repeatedFields_ = [2];
23327
+
23328
+
23329
+
23330
+ if (jspb.Message.GENERATE_TO_OBJECT) {
23331
+ /**
23332
+ * Creates an object representation of this proto.
23333
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
23334
+ * Optional fields that are not set will be set to undefined.
23335
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
23336
+ * For the list of reserved names please see:
23337
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
23338
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
23339
+ * JSPB instance for transitional soy proto support:
23340
+ * http://goto/soy-param-migration
23341
+ * @return {!Object}
23342
+ */
23343
+ proto.gateway.web.v1.ProjectSummariesRequest.prototype.toObject = function(opt_includeInstance) {
23344
+ return proto.gateway.web.v1.ProjectSummariesRequest.toObject(opt_includeInstance, this);
23345
+ };
23346
+
23347
+
23348
+ /**
23349
+ * Static version of the {@see toObject} method.
23350
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
23351
+ * the JSPB instance for transitional soy proto support:
23352
+ * http://goto/soy-param-migration
23353
+ * @param {!proto.gateway.web.v1.ProjectSummariesRequest} msg The msg instance to transform.
23354
+ * @return {!Object}
23355
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23356
+ */
23357
+ proto.gateway.web.v1.ProjectSummariesRequest.toObject = function(includeInstance, msg) {
23358
+ var f, obj = {
23359
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
23360
+ projectIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
23361
+ activeAfter: (f = msg.getActiveAfter()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
23362
+ };
23363
+
23364
+ if (includeInstance) {
23365
+ obj.$jspbMessageInstance = msg;
23366
+ }
23367
+ return obj;
23368
+ };
23369
+ }
23370
+
23371
+
23372
+ /**
23373
+ * Deserializes binary data (in protobuf wire format).
23374
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
23375
+ * @return {!proto.gateway.web.v1.ProjectSummariesRequest}
23376
+ */
23377
+ proto.gateway.web.v1.ProjectSummariesRequest.deserializeBinary = function(bytes) {
23378
+ var reader = new jspb.BinaryReader(bytes);
23379
+ var msg = new proto.gateway.web.v1.ProjectSummariesRequest;
23380
+ return proto.gateway.web.v1.ProjectSummariesRequest.deserializeBinaryFromReader(msg, reader);
23381
+ };
23382
+
23383
+
23384
+ /**
23385
+ * Deserializes binary data (in protobuf wire format) from the
23386
+ * given reader into the given message object.
23387
+ * @param {!proto.gateway.web.v1.ProjectSummariesRequest} msg The message object to deserialize into.
23388
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23389
+ * @return {!proto.gateway.web.v1.ProjectSummariesRequest}
23390
+ */
23391
+ proto.gateway.web.v1.ProjectSummariesRequest.deserializeBinaryFromReader = function(msg, reader) {
23392
+ while (reader.nextField()) {
23393
+ if (reader.isEndGroup()) {
23394
+ break;
23395
+ }
23396
+ var field = reader.getFieldNumber();
23397
+ switch (field) {
23398
+ case 1:
23399
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
23400
+ msg.setOrganizationId(value);
23401
+ break;
23402
+ case 2:
23403
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
23404
+ msg.addProjectIds(value);
23405
+ break;
23406
+ case 3:
23407
+ var value = new google_protobuf_timestamp_pb.Timestamp;
23408
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
23409
+ msg.setActiveAfter(value);
23410
+ break;
23411
+ default:
23412
+ reader.skipField();
23413
+ break;
23414
+ }
23415
+ }
23416
+ return msg;
23417
+ };
23418
+
23419
+
23420
+ /**
23421
+ * Serializes the message to binary data (in protobuf wire format).
23422
+ * @return {!Uint8Array}
23423
+ */
23424
+ proto.gateway.web.v1.ProjectSummariesRequest.prototype.serializeBinary = function() {
23425
+ var writer = new jspb.BinaryWriter();
23426
+ proto.gateway.web.v1.ProjectSummariesRequest.serializeBinaryToWriter(this, writer);
23427
+ return writer.getResultBuffer();
23428
+ };
23429
+
23430
+
23431
+ /**
23432
+ * Serializes the given message to binary data (in protobuf wire
23433
+ * format), writing to the given BinaryWriter.
23434
+ * @param {!proto.gateway.web.v1.ProjectSummariesRequest} message
23435
+ * @param {!jspb.BinaryWriter} writer
23436
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23437
+ */
23438
+ proto.gateway.web.v1.ProjectSummariesRequest.serializeBinaryToWriter = function(message, writer) {
23439
+ var f = undefined;
23440
+ f = message.getOrganizationId();
23441
+ if (f.length > 0) {
23442
+ writer.writeString(
23443
+ 1,
23444
+ f
23445
+ );
23446
+ }
23447
+ f = message.getProjectIdsList();
23448
+ if (f.length > 0) {
23449
+ writer.writeRepeatedString(
23450
+ 2,
23451
+ f
23452
+ );
23453
+ }
23454
+ f = message.getActiveAfter();
23455
+ if (f != null) {
23456
+ writer.writeMessage(
23457
+ 3,
23458
+ f,
23459
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
23460
+ );
23461
+ }
23462
+ };
23463
+
23464
+
23465
+ /**
23466
+ * optional string organization_id = 1;
23467
+ * @return {string}
23468
+ */
23469
+ proto.gateway.web.v1.ProjectSummariesRequest.prototype.getOrganizationId = function() {
23470
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
23471
+ };
23472
+
23473
+
23474
+ /**
23475
+ * @param {string} value
23476
+ * @return {!proto.gateway.web.v1.ProjectSummariesRequest} returns this
23477
+ */
23478
+ proto.gateway.web.v1.ProjectSummariesRequest.prototype.setOrganizationId = function(value) {
23479
+ return jspb.Message.setProto3StringField(this, 1, value);
23480
+ };
23481
+
23482
+
23483
+ /**
23484
+ * repeated string project_ids = 2;
23485
+ * @return {!Array<string>}
23486
+ */
23487
+ proto.gateway.web.v1.ProjectSummariesRequest.prototype.getProjectIdsList = function() {
23488
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
23489
+ };
23490
+
23491
+
23492
+ /**
23493
+ * @param {!Array<string>} value
23494
+ * @return {!proto.gateway.web.v1.ProjectSummariesRequest} returns this
23495
+ */
23496
+ proto.gateway.web.v1.ProjectSummariesRequest.prototype.setProjectIdsList = function(value) {
23497
+ return jspb.Message.setField(this, 2, value || []);
23498
+ };
23499
+
23500
+
23501
+ /**
23502
+ * @param {string} value
23503
+ * @param {number=} opt_index
23504
+ * @return {!proto.gateway.web.v1.ProjectSummariesRequest} returns this
23505
+ */
23506
+ proto.gateway.web.v1.ProjectSummariesRequest.prototype.addProjectIds = function(value, opt_index) {
23507
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
23508
+ };
23509
+
23510
+
23511
+ /**
23512
+ * Clears the list making it empty but non-null.
23513
+ * @return {!proto.gateway.web.v1.ProjectSummariesRequest} returns this
23514
+ */
23515
+ proto.gateway.web.v1.ProjectSummariesRequest.prototype.clearProjectIdsList = function() {
23516
+ return this.setProjectIdsList([]);
23517
+ };
23518
+
23519
+
23520
+ /**
23521
+ * optional google.protobuf.Timestamp active_after = 3;
23522
+ * @return {?proto.google.protobuf.Timestamp}
23523
+ */
23524
+ proto.gateway.web.v1.ProjectSummariesRequest.prototype.getActiveAfter = function() {
23525
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
23526
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
23527
+ };
23528
+
23529
+
23530
+ /**
23531
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
23532
+ * @return {!proto.gateway.web.v1.ProjectSummariesRequest} returns this
23533
+ */
23534
+ proto.gateway.web.v1.ProjectSummariesRequest.prototype.setActiveAfter = function(value) {
23535
+ return jspb.Message.setWrapperField(this, 3, value);
23536
+ };
23537
+
23538
+
23539
+ /**
23540
+ * Clears the message field making it undefined.
23541
+ * @return {!proto.gateway.web.v1.ProjectSummariesRequest} returns this
23542
+ */
23543
+ proto.gateway.web.v1.ProjectSummariesRequest.prototype.clearActiveAfter = function() {
23544
+ return this.setActiveAfter(undefined);
23545
+ };
23546
+
23547
+
23548
+ /**
23549
+ * Returns whether this field is set.
23550
+ * @return {boolean}
23551
+ */
23552
+ proto.gateway.web.v1.ProjectSummariesRequest.prototype.hasActiveAfter = function() {
23553
+ return jspb.Message.getField(this, 3) != null;
23554
+ };
23555
+
23556
+
23557
+
23558
+ /**
23559
+ * List of repeated fields within this message type.
23560
+ * @private {!Array<number>}
23561
+ * @const
23562
+ */
23563
+ proto.gateway.web.v1.ProjectSummaries.repeatedFields_ = [1];
23564
+
23565
+
23566
+
23567
+ if (jspb.Message.GENERATE_TO_OBJECT) {
23568
+ /**
23569
+ * Creates an object representation of this proto.
23570
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
23571
+ * Optional fields that are not set will be set to undefined.
23572
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
23573
+ * For the list of reserved names please see:
23574
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
23575
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
23576
+ * JSPB instance for transitional soy proto support:
23577
+ * http://goto/soy-param-migration
23578
+ * @return {!Object}
23579
+ */
23580
+ proto.gateway.web.v1.ProjectSummaries.prototype.toObject = function(opt_includeInstance) {
23581
+ return proto.gateway.web.v1.ProjectSummaries.toObject(opt_includeInstance, this);
23582
+ };
23583
+
23584
+
23585
+ /**
23586
+ * Static version of the {@see toObject} method.
23587
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
23588
+ * the JSPB instance for transitional soy proto support:
23589
+ * http://goto/soy-param-migration
23590
+ * @param {!proto.gateway.web.v1.ProjectSummaries} msg The msg instance to transform.
23591
+ * @return {!Object}
23592
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23593
+ */
23594
+ proto.gateway.web.v1.ProjectSummaries.toObject = function(includeInstance, msg) {
23595
+ var f, obj = {
23596
+ projectsList: jspb.Message.toObjectList(msg.getProjectsList(),
23597
+ proto.gateway.web.v1.ProjectSummary.toObject, includeInstance)
23598
+ };
23599
+
23600
+ if (includeInstance) {
23601
+ obj.$jspbMessageInstance = msg;
23602
+ }
23603
+ return obj;
23604
+ };
23605
+ }
23606
+
23607
+
23608
+ /**
23609
+ * Deserializes binary data (in protobuf wire format).
23610
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
23611
+ * @return {!proto.gateway.web.v1.ProjectSummaries}
23612
+ */
23613
+ proto.gateway.web.v1.ProjectSummaries.deserializeBinary = function(bytes) {
23614
+ var reader = new jspb.BinaryReader(bytes);
23615
+ var msg = new proto.gateway.web.v1.ProjectSummaries;
23616
+ return proto.gateway.web.v1.ProjectSummaries.deserializeBinaryFromReader(msg, reader);
23617
+ };
23618
+
23619
+
23620
+ /**
23621
+ * Deserializes binary data (in protobuf wire format) from the
23622
+ * given reader into the given message object.
23623
+ * @param {!proto.gateway.web.v1.ProjectSummaries} msg The message object to deserialize into.
23624
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23625
+ * @return {!proto.gateway.web.v1.ProjectSummaries}
23626
+ */
23627
+ proto.gateway.web.v1.ProjectSummaries.deserializeBinaryFromReader = function(msg, reader) {
23628
+ while (reader.nextField()) {
23629
+ if (reader.isEndGroup()) {
23630
+ break;
23631
+ }
23632
+ var field = reader.getFieldNumber();
23633
+ switch (field) {
23634
+ case 1:
23635
+ var value = new proto.gateway.web.v1.ProjectSummary;
23636
+ reader.readMessage(value,proto.gateway.web.v1.ProjectSummary.deserializeBinaryFromReader);
23637
+ msg.addProjects(value);
23638
+ break;
23639
+ default:
23640
+ reader.skipField();
23641
+ break;
23642
+ }
23643
+ }
23644
+ return msg;
23645
+ };
23646
+
23647
+
23648
+ /**
23649
+ * Serializes the message to binary data (in protobuf wire format).
23650
+ * @return {!Uint8Array}
23651
+ */
23652
+ proto.gateway.web.v1.ProjectSummaries.prototype.serializeBinary = function() {
23653
+ var writer = new jspb.BinaryWriter();
23654
+ proto.gateway.web.v1.ProjectSummaries.serializeBinaryToWriter(this, writer);
23655
+ return writer.getResultBuffer();
23656
+ };
23657
+
23658
+
23659
+ /**
23660
+ * Serializes the given message to binary data (in protobuf wire
23661
+ * format), writing to the given BinaryWriter.
23662
+ * @param {!proto.gateway.web.v1.ProjectSummaries} message
23663
+ * @param {!jspb.BinaryWriter} writer
23664
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23665
+ */
23666
+ proto.gateway.web.v1.ProjectSummaries.serializeBinaryToWriter = function(message, writer) {
23667
+ var f = undefined;
23668
+ f = message.getProjectsList();
23669
+ if (f.length > 0) {
23670
+ writer.writeRepeatedMessage(
23671
+ 1,
23672
+ f,
23673
+ proto.gateway.web.v1.ProjectSummary.serializeBinaryToWriter
23674
+ );
23675
+ }
23676
+ };
23677
+
23678
+
23679
+ /**
23680
+ * repeated ProjectSummary projects = 1;
23681
+ * @return {!Array<!proto.gateway.web.v1.ProjectSummary>}
23682
+ */
23683
+ proto.gateway.web.v1.ProjectSummaries.prototype.getProjectsList = function() {
23684
+ return /** @type{!Array<!proto.gateway.web.v1.ProjectSummary>} */ (
23685
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ProjectSummary, 1));
23686
+ };
23687
+
23688
+
23689
+ /**
23690
+ * @param {!Array<!proto.gateway.web.v1.ProjectSummary>} value
23691
+ * @return {!proto.gateway.web.v1.ProjectSummaries} returns this
23692
+ */
23693
+ proto.gateway.web.v1.ProjectSummaries.prototype.setProjectsList = function(value) {
23694
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
23695
+ };
23696
+
23697
+
23698
+ /**
23699
+ * @param {!proto.gateway.web.v1.ProjectSummary=} opt_value
23700
+ * @param {number=} opt_index
23701
+ * @return {!proto.gateway.web.v1.ProjectSummary}
23702
+ */
23703
+ proto.gateway.web.v1.ProjectSummaries.prototype.addProjects = function(opt_value, opt_index) {
23704
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.ProjectSummary, opt_index);
23705
+ };
23706
+
23707
+
23708
+ /**
23709
+ * Clears the list making it empty but non-null.
23710
+ * @return {!proto.gateway.web.v1.ProjectSummaries} returns this
23711
+ */
23712
+ proto.gateway.web.v1.ProjectSummaries.prototype.clearProjectsList = function() {
23713
+ return this.setProjectsList([]);
23714
+ };
23715
+
23716
+
23717
+
23718
+ /**
23719
+ * List of repeated fields within this message type.
23720
+ * @private {!Array<number>}
23721
+ * @const
23722
+ */
23723
+ proto.gateway.web.v1.ProjectSummary.repeatedFields_ = [8,9];
23724
+
23725
+
23726
+
23727
+ if (jspb.Message.GENERATE_TO_OBJECT) {
23728
+ /**
23729
+ * Creates an object representation of this proto.
23730
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
23731
+ * Optional fields that are not set will be set to undefined.
23732
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
23733
+ * For the list of reserved names please see:
23734
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
23735
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
23736
+ * JSPB instance for transitional soy proto support:
23737
+ * http://goto/soy-param-migration
23738
+ * @return {!Object}
23739
+ */
23740
+ proto.gateway.web.v1.ProjectSummary.prototype.toObject = function(opt_includeInstance) {
23741
+ return proto.gateway.web.v1.ProjectSummary.toObject(opt_includeInstance, this);
23742
+ };
23743
+
23744
+
23745
+ /**
23746
+ * Static version of the {@see toObject} method.
23747
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
23748
+ * the JSPB instance for transitional soy proto support:
23749
+ * http://goto/soy-param-migration
23750
+ * @param {!proto.gateway.web.v1.ProjectSummary} msg The msg instance to transform.
23751
+ * @return {!Object}
23752
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23753
+ */
23754
+ proto.gateway.web.v1.ProjectSummary.toObject = function(includeInstance, msg) {
23755
+ var f, obj = {
23756
+ projectId: jspb.Message.getFieldWithDefault(msg, 1, ""),
23757
+ sessions: jspb.Message.getFieldWithDefault(msg, 2, 0),
23758
+ pullRequestsMerged: jspb.Message.getFieldWithDefault(msg, 3, 0),
23759
+ repositories: jspb.Message.getFieldWithDefault(msg, 4, 0),
23760
+ sessionTokens: jspb.Message.getFieldWithDefault(msg, 5, 0),
23761
+ unpricedTokens: jspb.Message.getFieldWithDefault(msg, 6, 0),
23762
+ lastActivityAt: (f = msg.getLastActivityAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
23763
+ actorsList: jspb.Message.toObjectList(msg.getActorsList(),
23764
+ proto.gateway.web.v1.ProjectSummaryActor.toObject, includeInstance),
23765
+ byModelList: jspb.Message.toObjectList(msg.getByModelList(),
23766
+ proto.gateway.web.v1.ProjectOverviewSlice.toObject, includeInstance)
23767
+ };
23768
+
23769
+ if (includeInstance) {
23770
+ obj.$jspbMessageInstance = msg;
23771
+ }
23772
+ return obj;
23773
+ };
23774
+ }
23775
+
23776
+
23777
+ /**
23778
+ * Deserializes binary data (in protobuf wire format).
23779
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
23780
+ * @return {!proto.gateway.web.v1.ProjectSummary}
23781
+ */
23782
+ proto.gateway.web.v1.ProjectSummary.deserializeBinary = function(bytes) {
23783
+ var reader = new jspb.BinaryReader(bytes);
23784
+ var msg = new proto.gateway.web.v1.ProjectSummary;
23785
+ return proto.gateway.web.v1.ProjectSummary.deserializeBinaryFromReader(msg, reader);
23786
+ };
23787
+
23788
+
23789
+ /**
23790
+ * Deserializes binary data (in protobuf wire format) from the
23791
+ * given reader into the given message object.
23792
+ * @param {!proto.gateway.web.v1.ProjectSummary} msg The message object to deserialize into.
23793
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23794
+ * @return {!proto.gateway.web.v1.ProjectSummary}
23795
+ */
23796
+ proto.gateway.web.v1.ProjectSummary.deserializeBinaryFromReader = function(msg, reader) {
23797
+ while (reader.nextField()) {
23798
+ if (reader.isEndGroup()) {
23799
+ break;
23800
+ }
23801
+ var field = reader.getFieldNumber();
23802
+ switch (field) {
23803
+ case 1:
23804
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
23805
+ msg.setProjectId(value);
23806
+ break;
23807
+ case 2:
23808
+ var value = /** @type {number} */ (reader.readUint64());
23809
+ msg.setSessions(value);
23810
+ break;
23811
+ case 3:
23812
+ var value = /** @type {number} */ (reader.readUint64());
23813
+ msg.setPullRequestsMerged(value);
23814
+ break;
23815
+ case 4:
23816
+ var value = /** @type {number} */ (reader.readUint64());
23817
+ msg.setRepositories(value);
23818
+ break;
23819
+ case 5:
23820
+ var value = /** @type {number} */ (reader.readUint64());
23821
+ msg.setSessionTokens(value);
23822
+ break;
23823
+ case 6:
23824
+ var value = /** @type {number} */ (reader.readUint64());
23825
+ msg.setUnpricedTokens(value);
23826
+ break;
23827
+ case 7:
23828
+ var value = new google_protobuf_timestamp_pb.Timestamp;
23829
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
23830
+ msg.setLastActivityAt(value);
23831
+ break;
23832
+ case 8:
23833
+ var value = new proto.gateway.web.v1.ProjectSummaryActor;
23834
+ reader.readMessage(value,proto.gateway.web.v1.ProjectSummaryActor.deserializeBinaryFromReader);
23835
+ msg.addActors(value);
23836
+ break;
23837
+ case 9:
23838
+ var value = new proto.gateway.web.v1.ProjectOverviewSlice;
23839
+ reader.readMessage(value,proto.gateway.web.v1.ProjectOverviewSlice.deserializeBinaryFromReader);
23840
+ msg.addByModel(value);
23841
+ break;
23842
+ default:
23843
+ reader.skipField();
23844
+ break;
23845
+ }
23846
+ }
23847
+ return msg;
23848
+ };
23849
+
23850
+
23851
+ /**
23852
+ * Serializes the message to binary data (in protobuf wire format).
23853
+ * @return {!Uint8Array}
23854
+ */
23855
+ proto.gateway.web.v1.ProjectSummary.prototype.serializeBinary = function() {
23856
+ var writer = new jspb.BinaryWriter();
23857
+ proto.gateway.web.v1.ProjectSummary.serializeBinaryToWriter(this, writer);
23858
+ return writer.getResultBuffer();
23859
+ };
23860
+
23861
+
23862
+ /**
23863
+ * Serializes the given message to binary data (in protobuf wire
23864
+ * format), writing to the given BinaryWriter.
23865
+ * @param {!proto.gateway.web.v1.ProjectSummary} message
23866
+ * @param {!jspb.BinaryWriter} writer
23867
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23868
+ */
23869
+ proto.gateway.web.v1.ProjectSummary.serializeBinaryToWriter = function(message, writer) {
23870
+ var f = undefined;
23871
+ f = message.getProjectId();
23872
+ if (f.length > 0) {
23873
+ writer.writeString(
23874
+ 1,
23875
+ f
23876
+ );
23877
+ }
23878
+ f = message.getSessions();
23879
+ if (f !== 0) {
23880
+ writer.writeUint64(
23881
+ 2,
23882
+ f
23883
+ );
23884
+ }
23885
+ f = message.getPullRequestsMerged();
23886
+ if (f !== 0) {
23887
+ writer.writeUint64(
23888
+ 3,
23889
+ f
23890
+ );
23891
+ }
23892
+ f = message.getRepositories();
23893
+ if (f !== 0) {
23894
+ writer.writeUint64(
23895
+ 4,
23896
+ f
23897
+ );
23898
+ }
23899
+ f = message.getSessionTokens();
23900
+ if (f !== 0) {
23901
+ writer.writeUint64(
23902
+ 5,
23903
+ f
23904
+ );
23905
+ }
23906
+ f = message.getUnpricedTokens();
23907
+ if (f !== 0) {
23908
+ writer.writeUint64(
23909
+ 6,
23910
+ f
23911
+ );
23912
+ }
23913
+ f = message.getLastActivityAt();
23914
+ if (f != null) {
23915
+ writer.writeMessage(
23916
+ 7,
23917
+ f,
23918
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
23919
+ );
23920
+ }
23921
+ f = message.getActorsList();
23922
+ if (f.length > 0) {
23923
+ writer.writeRepeatedMessage(
23924
+ 8,
23925
+ f,
23926
+ proto.gateway.web.v1.ProjectSummaryActor.serializeBinaryToWriter
23927
+ );
23928
+ }
23929
+ f = message.getByModelList();
23930
+ if (f.length > 0) {
23931
+ writer.writeRepeatedMessage(
23932
+ 9,
23933
+ f,
23934
+ proto.gateway.web.v1.ProjectOverviewSlice.serializeBinaryToWriter
23935
+ );
23936
+ }
23937
+ };
23938
+
23939
+
23940
+ /**
23941
+ * optional string project_id = 1;
23942
+ * @return {string}
23943
+ */
23944
+ proto.gateway.web.v1.ProjectSummary.prototype.getProjectId = function() {
23945
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
23946
+ };
23947
+
23948
+
23949
+ /**
23950
+ * @param {string} value
23951
+ * @return {!proto.gateway.web.v1.ProjectSummary} returns this
23952
+ */
23953
+ proto.gateway.web.v1.ProjectSummary.prototype.setProjectId = function(value) {
23954
+ return jspb.Message.setProto3StringField(this, 1, value);
23955
+ };
23956
+
23957
+
23958
+ /**
23959
+ * optional uint64 sessions = 2;
23960
+ * @return {number}
23961
+ */
23962
+ proto.gateway.web.v1.ProjectSummary.prototype.getSessions = function() {
23963
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
23964
+ };
23965
+
23966
+
23967
+ /**
23968
+ * @param {number} value
23969
+ * @return {!proto.gateway.web.v1.ProjectSummary} returns this
23970
+ */
23971
+ proto.gateway.web.v1.ProjectSummary.prototype.setSessions = function(value) {
23972
+ return jspb.Message.setProto3IntField(this, 2, value);
23973
+ };
23974
+
23975
+
23976
+ /**
23977
+ * optional uint64 pull_requests_merged = 3;
23978
+ * @return {number}
23979
+ */
23980
+ proto.gateway.web.v1.ProjectSummary.prototype.getPullRequestsMerged = function() {
23981
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
23982
+ };
23983
+
23984
+
23985
+ /**
23986
+ * @param {number} value
23987
+ * @return {!proto.gateway.web.v1.ProjectSummary} returns this
23988
+ */
23989
+ proto.gateway.web.v1.ProjectSummary.prototype.setPullRequestsMerged = function(value) {
23990
+ return jspb.Message.setProto3IntField(this, 3, value);
23991
+ };
23992
+
23993
+
23994
+ /**
23995
+ * optional uint64 repositories = 4;
23996
+ * @return {number}
23997
+ */
23998
+ proto.gateway.web.v1.ProjectSummary.prototype.getRepositories = function() {
23999
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
24000
+ };
24001
+
24002
+
24003
+ /**
24004
+ * @param {number} value
24005
+ * @return {!proto.gateway.web.v1.ProjectSummary} returns this
24006
+ */
24007
+ proto.gateway.web.v1.ProjectSummary.prototype.setRepositories = function(value) {
24008
+ return jspb.Message.setProto3IntField(this, 4, value);
24009
+ };
24010
+
24011
+
24012
+ /**
24013
+ * optional uint64 session_tokens = 5;
24014
+ * @return {number}
24015
+ */
24016
+ proto.gateway.web.v1.ProjectSummary.prototype.getSessionTokens = function() {
24017
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
24018
+ };
24019
+
24020
+
24021
+ /**
24022
+ * @param {number} value
24023
+ * @return {!proto.gateway.web.v1.ProjectSummary} returns this
24024
+ */
24025
+ proto.gateway.web.v1.ProjectSummary.prototype.setSessionTokens = function(value) {
24026
+ return jspb.Message.setProto3IntField(this, 5, value);
24027
+ };
24028
+
24029
+
24030
+ /**
24031
+ * optional uint64 unpriced_tokens = 6;
24032
+ * @return {number}
24033
+ */
24034
+ proto.gateway.web.v1.ProjectSummary.prototype.getUnpricedTokens = function() {
24035
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
24036
+ };
24037
+
24038
+
24039
+ /**
24040
+ * @param {number} value
24041
+ * @return {!proto.gateway.web.v1.ProjectSummary} returns this
24042
+ */
24043
+ proto.gateway.web.v1.ProjectSummary.prototype.setUnpricedTokens = function(value) {
24044
+ return jspb.Message.setProto3IntField(this, 6, value);
24045
+ };
24046
+
24047
+
24048
+ /**
24049
+ * optional google.protobuf.Timestamp last_activity_at = 7;
24050
+ * @return {?proto.google.protobuf.Timestamp}
24051
+ */
24052
+ proto.gateway.web.v1.ProjectSummary.prototype.getLastActivityAt = function() {
24053
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
24054
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
24055
+ };
24056
+
24057
+
24058
+ /**
24059
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
24060
+ * @return {!proto.gateway.web.v1.ProjectSummary} returns this
24061
+ */
24062
+ proto.gateway.web.v1.ProjectSummary.prototype.setLastActivityAt = function(value) {
24063
+ return jspb.Message.setWrapperField(this, 7, value);
24064
+ };
24065
+
24066
+
24067
+ /**
24068
+ * Clears the message field making it undefined.
24069
+ * @return {!proto.gateway.web.v1.ProjectSummary} returns this
24070
+ */
24071
+ proto.gateway.web.v1.ProjectSummary.prototype.clearLastActivityAt = function() {
24072
+ return this.setLastActivityAt(undefined);
24073
+ };
24074
+
24075
+
24076
+ /**
24077
+ * Returns whether this field is set.
24078
+ * @return {boolean}
24079
+ */
24080
+ proto.gateway.web.v1.ProjectSummary.prototype.hasLastActivityAt = function() {
24081
+ return jspb.Message.getField(this, 7) != null;
24082
+ };
24083
+
24084
+
24085
+ /**
24086
+ * repeated ProjectSummaryActor actors = 8;
24087
+ * @return {!Array<!proto.gateway.web.v1.ProjectSummaryActor>}
24088
+ */
24089
+ proto.gateway.web.v1.ProjectSummary.prototype.getActorsList = function() {
24090
+ return /** @type{!Array<!proto.gateway.web.v1.ProjectSummaryActor>} */ (
24091
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ProjectSummaryActor, 8));
24092
+ };
24093
+
24094
+
24095
+ /**
24096
+ * @param {!Array<!proto.gateway.web.v1.ProjectSummaryActor>} value
24097
+ * @return {!proto.gateway.web.v1.ProjectSummary} returns this
24098
+ */
24099
+ proto.gateway.web.v1.ProjectSummary.prototype.setActorsList = function(value) {
24100
+ return jspb.Message.setRepeatedWrapperField(this, 8, value);
24101
+ };
24102
+
24103
+
24104
+ /**
24105
+ * @param {!proto.gateway.web.v1.ProjectSummaryActor=} opt_value
24106
+ * @param {number=} opt_index
24107
+ * @return {!proto.gateway.web.v1.ProjectSummaryActor}
24108
+ */
24109
+ proto.gateway.web.v1.ProjectSummary.prototype.addActors = function(opt_value, opt_index) {
24110
+ return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.gateway.web.v1.ProjectSummaryActor, opt_index);
24111
+ };
24112
+
24113
+
24114
+ /**
24115
+ * Clears the list making it empty but non-null.
24116
+ * @return {!proto.gateway.web.v1.ProjectSummary} returns this
24117
+ */
24118
+ proto.gateway.web.v1.ProjectSummary.prototype.clearActorsList = function() {
24119
+ return this.setActorsList([]);
24120
+ };
24121
+
24122
+
24123
+ /**
24124
+ * repeated ProjectOverviewSlice by_model = 9;
24125
+ * @return {!Array<!proto.gateway.web.v1.ProjectOverviewSlice>}
24126
+ */
24127
+ proto.gateway.web.v1.ProjectSummary.prototype.getByModelList = function() {
24128
+ return /** @type{!Array<!proto.gateway.web.v1.ProjectOverviewSlice>} */ (
24129
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ProjectOverviewSlice, 9));
24130
+ };
24131
+
24132
+
24133
+ /**
24134
+ * @param {!Array<!proto.gateway.web.v1.ProjectOverviewSlice>} value
24135
+ * @return {!proto.gateway.web.v1.ProjectSummary} returns this
24136
+ */
24137
+ proto.gateway.web.v1.ProjectSummary.prototype.setByModelList = function(value) {
24138
+ return jspb.Message.setRepeatedWrapperField(this, 9, value);
24139
+ };
24140
+
24141
+
24142
+ /**
24143
+ * @param {!proto.gateway.web.v1.ProjectOverviewSlice=} opt_value
24144
+ * @param {number=} opt_index
24145
+ * @return {!proto.gateway.web.v1.ProjectOverviewSlice}
24146
+ */
24147
+ proto.gateway.web.v1.ProjectSummary.prototype.addByModel = function(opt_value, opt_index) {
24148
+ return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.gateway.web.v1.ProjectOverviewSlice, opt_index);
24149
+ };
24150
+
24151
+
24152
+ /**
24153
+ * Clears the list making it empty but non-null.
24154
+ * @return {!proto.gateway.web.v1.ProjectSummary} returns this
24155
+ */
24156
+ proto.gateway.web.v1.ProjectSummary.prototype.clearByModelList = function() {
24157
+ return this.setByModelList([]);
24158
+ };
24159
+
24160
+
24161
+
24162
+
24163
+
24164
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24165
+ /**
24166
+ * Creates an object representation of this proto.
24167
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24168
+ * Optional fields that are not set will be set to undefined.
24169
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24170
+ * For the list of reserved names please see:
24171
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24172
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24173
+ * JSPB instance for transitional soy proto support:
24174
+ * http://goto/soy-param-migration
24175
+ * @return {!Object}
24176
+ */
24177
+ proto.gateway.web.v1.ProjectSummaryActor.prototype.toObject = function(opt_includeInstance) {
24178
+ return proto.gateway.web.v1.ProjectSummaryActor.toObject(opt_includeInstance, this);
24179
+ };
24180
+
24181
+
24182
+ /**
24183
+ * Static version of the {@see toObject} method.
24184
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24185
+ * the JSPB instance for transitional soy proto support:
24186
+ * http://goto/soy-param-migration
24187
+ * @param {!proto.gateway.web.v1.ProjectSummaryActor} msg The msg instance to transform.
24188
+ * @return {!Object}
24189
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24190
+ */
24191
+ proto.gateway.web.v1.ProjectSummaryActor.toObject = function(includeInstance, msg) {
24192
+ var f, obj = {
24193
+ sourceSystem: jspb.Message.getFieldWithDefault(msg, 1, ""),
24194
+ userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
24195
+ apiKeyId: jspb.Message.getFieldWithDefault(msg, 3, "")
24196
+ };
24197
+
24198
+ if (includeInstance) {
24199
+ obj.$jspbMessageInstance = msg;
24200
+ }
24201
+ return obj;
24202
+ };
24203
+ }
24204
+
24205
+
24206
+ /**
24207
+ * Deserializes binary data (in protobuf wire format).
24208
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
24209
+ * @return {!proto.gateway.web.v1.ProjectSummaryActor}
24210
+ */
24211
+ proto.gateway.web.v1.ProjectSummaryActor.deserializeBinary = function(bytes) {
24212
+ var reader = new jspb.BinaryReader(bytes);
24213
+ var msg = new proto.gateway.web.v1.ProjectSummaryActor;
24214
+ return proto.gateway.web.v1.ProjectSummaryActor.deserializeBinaryFromReader(msg, reader);
24215
+ };
24216
+
24217
+
24218
+ /**
24219
+ * Deserializes binary data (in protobuf wire format) from the
24220
+ * given reader into the given message object.
24221
+ * @param {!proto.gateway.web.v1.ProjectSummaryActor} msg The message object to deserialize into.
24222
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24223
+ * @return {!proto.gateway.web.v1.ProjectSummaryActor}
24224
+ */
24225
+ proto.gateway.web.v1.ProjectSummaryActor.deserializeBinaryFromReader = function(msg, reader) {
24226
+ while (reader.nextField()) {
24227
+ if (reader.isEndGroup()) {
24228
+ break;
24229
+ }
24230
+ var field = reader.getFieldNumber();
24231
+ switch (field) {
24232
+ case 1:
24233
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
24234
+ msg.setSourceSystem(value);
24235
+ break;
24236
+ case 2:
24237
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
24238
+ msg.setUserId(value);
24239
+ break;
24240
+ case 3:
24241
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
24242
+ msg.setApiKeyId(value);
24243
+ break;
24244
+ default:
24245
+ reader.skipField();
24246
+ break;
24247
+ }
24248
+ }
24249
+ return msg;
24250
+ };
24251
+
24252
+
24253
+ /**
24254
+ * Serializes the message to binary data (in protobuf wire format).
24255
+ * @return {!Uint8Array}
24256
+ */
24257
+ proto.gateway.web.v1.ProjectSummaryActor.prototype.serializeBinary = function() {
24258
+ var writer = new jspb.BinaryWriter();
24259
+ proto.gateway.web.v1.ProjectSummaryActor.serializeBinaryToWriter(this, writer);
24260
+ return writer.getResultBuffer();
24261
+ };
24262
+
24263
+
24264
+ /**
24265
+ * Serializes the given message to binary data (in protobuf wire
24266
+ * format), writing to the given BinaryWriter.
24267
+ * @param {!proto.gateway.web.v1.ProjectSummaryActor} message
24268
+ * @param {!jspb.BinaryWriter} writer
24269
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24270
+ */
24271
+ proto.gateway.web.v1.ProjectSummaryActor.serializeBinaryToWriter = function(message, writer) {
24272
+ var f = undefined;
24273
+ f = message.getSourceSystem();
24274
+ if (f.length > 0) {
24275
+ writer.writeString(
24276
+ 1,
24277
+ f
24278
+ );
24279
+ }
24280
+ f = message.getUserId();
24281
+ if (f.length > 0) {
24282
+ writer.writeString(
24283
+ 2,
24284
+ f
24285
+ );
24286
+ }
24287
+ f = message.getApiKeyId();
24288
+ if (f.length > 0) {
24289
+ writer.writeString(
24290
+ 3,
24291
+ f
24292
+ );
24293
+ }
24294
+ };
24295
+
24296
+
24297
+ /**
24298
+ * optional string source_system = 1;
24299
+ * @return {string}
24300
+ */
24301
+ proto.gateway.web.v1.ProjectSummaryActor.prototype.getSourceSystem = function() {
24302
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
24303
+ };
24304
+
24305
+
24306
+ /**
24307
+ * @param {string} value
24308
+ * @return {!proto.gateway.web.v1.ProjectSummaryActor} returns this
24309
+ */
24310
+ proto.gateway.web.v1.ProjectSummaryActor.prototype.setSourceSystem = function(value) {
24311
+ return jspb.Message.setProto3StringField(this, 1, value);
24312
+ };
24313
+
24314
+
24315
+ /**
24316
+ * optional string user_id = 2;
24317
+ * @return {string}
24318
+ */
24319
+ proto.gateway.web.v1.ProjectSummaryActor.prototype.getUserId = function() {
24320
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
24321
+ };
24322
+
24323
+
24324
+ /**
24325
+ * @param {string} value
24326
+ * @return {!proto.gateway.web.v1.ProjectSummaryActor} returns this
24327
+ */
24328
+ proto.gateway.web.v1.ProjectSummaryActor.prototype.setUserId = function(value) {
24329
+ return jspb.Message.setProto3StringField(this, 2, value);
24330
+ };
24331
+
24332
+
24333
+ /**
24334
+ * optional string api_key_id = 3;
24335
+ * @return {string}
24336
+ */
24337
+ proto.gateway.web.v1.ProjectSummaryActor.prototype.getApiKeyId = function() {
24338
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
24339
+ };
24340
+
24341
+
24342
+ /**
24343
+ * @param {string} value
24344
+ * @return {!proto.gateway.web.v1.ProjectSummaryActor} returns this
24345
+ */
24346
+ proto.gateway.web.v1.ProjectSummaryActor.prototype.setApiKeyId = function(value) {
24347
+ return jspb.Message.setProto3StringField(this, 3, value);
24348
+ };
24349
+
24350
+
24351
+
24352
+
24353
+
22709
24354
  if (jspb.Message.GENERATE_TO_OBJECT) {
22710
24355
  /**
22711
24356
  * Creates an object representation of this proto.