@miradorlabs/web-grpc 3.6.0 → 3.7.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.
@@ -110,6 +110,7 @@ goog.exportSymbol('proto.gateway.web.v1.SeatEntitlement', null, global);
110
110
  goog.exportSymbol('proto.gateway.web.v1.SessionFileChange', null, global);
111
111
  goog.exportSymbol('proto.gateway.web.v1.SessionFileChanges', null, global);
112
112
  goog.exportSymbol('proto.gateway.web.v1.SessionFileChangesRequest', null, global);
113
+ goog.exportSymbol('proto.gateway.web.v1.SessionGitBucket', null, global);
113
114
  goog.exportSymbol('proto.gateway.web.v1.SessionModelUsage', null, global);
114
115
  goog.exportSymbol('proto.gateway.web.v1.SessionPagination', null, global);
115
116
  goog.exportSymbol('proto.gateway.web.v1.SessionPromptAnchor', null, global);
@@ -117,6 +118,9 @@ goog.exportSymbol('proto.gateway.web.v1.SessionSort', null, global);
117
118
  goog.exportSymbol('proto.gateway.web.v1.SessionTimelinePoint', null, global);
118
119
  goog.exportSymbol('proto.gateway.web.v1.SessionTokenTimeline', null, global);
119
120
  goog.exportSymbol('proto.gateway.web.v1.SessionTokenTimelineRequest', null, global);
121
+ goog.exportSymbol('proto.gateway.web.v1.SessionUsageBucket', null, global);
122
+ goog.exportSymbol('proto.gateway.web.v1.SessionUsageTrendRequest', null, global);
123
+ goog.exportSymbol('proto.gateway.web.v1.SessionUsageTrendResponse', null, global);
120
124
  goog.exportSymbol('proto.gateway.web.v1.SessionsSnapshot', null, global);
121
125
  goog.exportSymbol('proto.gateway.web.v1.SnapshotCompleted', null, global);
122
126
  goog.exportSymbol('proto.gateway.web.v1.StreamEntitlementsRequest', null, global);
@@ -1514,6 +1518,90 @@ if (goog.DEBUG && !COMPILED) {
1514
1518
  */
1515
1519
  proto.gateway.web.v1.ModelActivityPrincipal.displayName = 'proto.gateway.web.v1.ModelActivityPrincipal';
1516
1520
  }
1521
+ /**
1522
+ * Generated by JsPbCodeGenerator.
1523
+ * @param {Array=} opt_data Optional initial data array, typically from a
1524
+ * server response, or constructed directly in Javascript. The array is used
1525
+ * in place and becomes part of the constructed object. It is not cloned.
1526
+ * If no data is provided, the constructed object will be empty, but still
1527
+ * valid.
1528
+ * @extends {jspb.Message}
1529
+ * @constructor
1530
+ */
1531
+ proto.gateway.web.v1.SessionUsageTrendRequest = function(opt_data) {
1532
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.SessionUsageTrendRequest.repeatedFields_, null);
1533
+ };
1534
+ goog.inherits(proto.gateway.web.v1.SessionUsageTrendRequest, jspb.Message);
1535
+ if (goog.DEBUG && !COMPILED) {
1536
+ /**
1537
+ * @public
1538
+ * @override
1539
+ */
1540
+ proto.gateway.web.v1.SessionUsageTrendRequest.displayName = 'proto.gateway.web.v1.SessionUsageTrendRequest';
1541
+ }
1542
+ /**
1543
+ * Generated by JsPbCodeGenerator.
1544
+ * @param {Array=} opt_data Optional initial data array, typically from a
1545
+ * server response, or constructed directly in Javascript. The array is used
1546
+ * in place and becomes part of the constructed object. It is not cloned.
1547
+ * If no data is provided, the constructed object will be empty, but still
1548
+ * valid.
1549
+ * @extends {jspb.Message}
1550
+ * @constructor
1551
+ */
1552
+ proto.gateway.web.v1.SessionUsageTrendResponse = function(opt_data) {
1553
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.SessionUsageTrendResponse.repeatedFields_, null);
1554
+ };
1555
+ goog.inherits(proto.gateway.web.v1.SessionUsageTrendResponse, jspb.Message);
1556
+ if (goog.DEBUG && !COMPILED) {
1557
+ /**
1558
+ * @public
1559
+ * @override
1560
+ */
1561
+ proto.gateway.web.v1.SessionUsageTrendResponse.displayName = 'proto.gateway.web.v1.SessionUsageTrendResponse';
1562
+ }
1563
+ /**
1564
+ * Generated by JsPbCodeGenerator.
1565
+ * @param {Array=} opt_data Optional initial data array, typically from a
1566
+ * server response, or constructed directly in Javascript. The array is used
1567
+ * in place and becomes part of the constructed object. It is not cloned.
1568
+ * If no data is provided, the constructed object will be empty, but still
1569
+ * valid.
1570
+ * @extends {jspb.Message}
1571
+ * @constructor
1572
+ */
1573
+ proto.gateway.web.v1.SessionUsageBucket = function(opt_data) {
1574
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1575
+ };
1576
+ goog.inherits(proto.gateway.web.v1.SessionUsageBucket, jspb.Message);
1577
+ if (goog.DEBUG && !COMPILED) {
1578
+ /**
1579
+ * @public
1580
+ * @override
1581
+ */
1582
+ proto.gateway.web.v1.SessionUsageBucket.displayName = 'proto.gateway.web.v1.SessionUsageBucket';
1583
+ }
1584
+ /**
1585
+ * Generated by JsPbCodeGenerator.
1586
+ * @param {Array=} opt_data Optional initial data array, typically from a
1587
+ * server response, or constructed directly in Javascript. The array is used
1588
+ * in place and becomes part of the constructed object. It is not cloned.
1589
+ * If no data is provided, the constructed object will be empty, but still
1590
+ * valid.
1591
+ * @extends {jspb.Message}
1592
+ * @constructor
1593
+ */
1594
+ proto.gateway.web.v1.SessionGitBucket = function(opt_data) {
1595
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1596
+ };
1597
+ goog.inherits(proto.gateway.web.v1.SessionGitBucket, jspb.Message);
1598
+ if (goog.DEBUG && !COMPILED) {
1599
+ /**
1600
+ * @public
1601
+ * @override
1602
+ */
1603
+ proto.gateway.web.v1.SessionGitBucket.displayName = 'proto.gateway.web.v1.SessionGitBucket';
1604
+ }
1517
1605
  /**
1518
1606
  * Generated by JsPbCodeGenerator.
1519
1607
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -24108,6 +24196,1148 @@ proto.gateway.web.v1.ModelActivityPrincipal.prototype.setCostUsd = function(valu
24108
24196
 
24109
24197
 
24110
24198
 
24199
+ /**
24200
+ * List of repeated fields within this message type.
24201
+ * @private {!Array<number>}
24202
+ * @const
24203
+ */
24204
+ proto.gateway.web.v1.SessionUsageTrendRequest.repeatedFields_ = [4];
24205
+
24206
+
24207
+
24208
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24209
+ /**
24210
+ * Creates an object representation of this proto.
24211
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24212
+ * Optional fields that are not set will be set to undefined.
24213
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24214
+ * For the list of reserved names please see:
24215
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24216
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24217
+ * JSPB instance for transitional soy proto support:
24218
+ * http://goto/soy-param-migration
24219
+ * @return {!Object}
24220
+ */
24221
+ proto.gateway.web.v1.SessionUsageTrendRequest.prototype.toObject = function(opt_includeInstance) {
24222
+ return proto.gateway.web.v1.SessionUsageTrendRequest.toObject(opt_includeInstance, this);
24223
+ };
24224
+
24225
+
24226
+ /**
24227
+ * Static version of the {@see toObject} method.
24228
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24229
+ * the JSPB instance for transitional soy proto support:
24230
+ * http://goto/soy-param-migration
24231
+ * @param {!proto.gateway.web.v1.SessionUsageTrendRequest} msg The msg instance to transform.
24232
+ * @return {!Object}
24233
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24234
+ */
24235
+ proto.gateway.web.v1.SessionUsageTrendRequest.toObject = function(includeInstance, msg) {
24236
+ var f, obj = {
24237
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
24238
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
24239
+ sourceSystem: jspb.Message.getFieldWithDefault(msg, 3, ""),
24240
+ sessionIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
24241
+ bucketSeconds: jspb.Message.getFieldWithDefault(msg, 5, 0)
24242
+ };
24243
+
24244
+ if (includeInstance) {
24245
+ obj.$jspbMessageInstance = msg;
24246
+ }
24247
+ return obj;
24248
+ };
24249
+ }
24250
+
24251
+
24252
+ /**
24253
+ * Deserializes binary data (in protobuf wire format).
24254
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
24255
+ * @return {!proto.gateway.web.v1.SessionUsageTrendRequest}
24256
+ */
24257
+ proto.gateway.web.v1.SessionUsageTrendRequest.deserializeBinary = function(bytes) {
24258
+ var reader = new jspb.BinaryReader(bytes);
24259
+ var msg = new proto.gateway.web.v1.SessionUsageTrendRequest;
24260
+ return proto.gateway.web.v1.SessionUsageTrendRequest.deserializeBinaryFromReader(msg, reader);
24261
+ };
24262
+
24263
+
24264
+ /**
24265
+ * Deserializes binary data (in protobuf wire format) from the
24266
+ * given reader into the given message object.
24267
+ * @param {!proto.gateway.web.v1.SessionUsageTrendRequest} msg The message object to deserialize into.
24268
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24269
+ * @return {!proto.gateway.web.v1.SessionUsageTrendRequest}
24270
+ */
24271
+ proto.gateway.web.v1.SessionUsageTrendRequest.deserializeBinaryFromReader = function(msg, reader) {
24272
+ while (reader.nextField()) {
24273
+ if (reader.isEndGroup()) {
24274
+ break;
24275
+ }
24276
+ var field = reader.getFieldNumber();
24277
+ switch (field) {
24278
+ case 1:
24279
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
24280
+ msg.setOrganizationId(value);
24281
+ break;
24282
+ case 2:
24283
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
24284
+ msg.setProjectId(value);
24285
+ break;
24286
+ case 3:
24287
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
24288
+ msg.setSourceSystem(value);
24289
+ break;
24290
+ case 4:
24291
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
24292
+ msg.addSessionIds(value);
24293
+ break;
24294
+ case 5:
24295
+ var value = /** @type {number} */ (reader.readUint32());
24296
+ msg.setBucketSeconds(value);
24297
+ break;
24298
+ default:
24299
+ reader.skipField();
24300
+ break;
24301
+ }
24302
+ }
24303
+ return msg;
24304
+ };
24305
+
24306
+
24307
+ /**
24308
+ * Serializes the message to binary data (in protobuf wire format).
24309
+ * @return {!Uint8Array}
24310
+ */
24311
+ proto.gateway.web.v1.SessionUsageTrendRequest.prototype.serializeBinary = function() {
24312
+ var writer = new jspb.BinaryWriter();
24313
+ proto.gateway.web.v1.SessionUsageTrendRequest.serializeBinaryToWriter(this, writer);
24314
+ return writer.getResultBuffer();
24315
+ };
24316
+
24317
+
24318
+ /**
24319
+ * Serializes the given message to binary data (in protobuf wire
24320
+ * format), writing to the given BinaryWriter.
24321
+ * @param {!proto.gateway.web.v1.SessionUsageTrendRequest} message
24322
+ * @param {!jspb.BinaryWriter} writer
24323
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24324
+ */
24325
+ proto.gateway.web.v1.SessionUsageTrendRequest.serializeBinaryToWriter = function(message, writer) {
24326
+ var f = undefined;
24327
+ f = message.getOrganizationId();
24328
+ if (f.length > 0) {
24329
+ writer.writeString(
24330
+ 1,
24331
+ f
24332
+ );
24333
+ }
24334
+ f = message.getProjectId();
24335
+ if (f.length > 0) {
24336
+ writer.writeString(
24337
+ 2,
24338
+ f
24339
+ );
24340
+ }
24341
+ f = message.getSourceSystem();
24342
+ if (f.length > 0) {
24343
+ writer.writeString(
24344
+ 3,
24345
+ f
24346
+ );
24347
+ }
24348
+ f = message.getSessionIdsList();
24349
+ if (f.length > 0) {
24350
+ writer.writeRepeatedString(
24351
+ 4,
24352
+ f
24353
+ );
24354
+ }
24355
+ f = message.getBucketSeconds();
24356
+ if (f !== 0) {
24357
+ writer.writeUint32(
24358
+ 5,
24359
+ f
24360
+ );
24361
+ }
24362
+ };
24363
+
24364
+
24365
+ /**
24366
+ * optional string organization_id = 1;
24367
+ * @return {string}
24368
+ */
24369
+ proto.gateway.web.v1.SessionUsageTrendRequest.prototype.getOrganizationId = function() {
24370
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
24371
+ };
24372
+
24373
+
24374
+ /**
24375
+ * @param {string} value
24376
+ * @return {!proto.gateway.web.v1.SessionUsageTrendRequest} returns this
24377
+ */
24378
+ proto.gateway.web.v1.SessionUsageTrendRequest.prototype.setOrganizationId = function(value) {
24379
+ return jspb.Message.setProto3StringField(this, 1, value);
24380
+ };
24381
+
24382
+
24383
+ /**
24384
+ * optional string project_id = 2;
24385
+ * @return {string}
24386
+ */
24387
+ proto.gateway.web.v1.SessionUsageTrendRequest.prototype.getProjectId = function() {
24388
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
24389
+ };
24390
+
24391
+
24392
+ /**
24393
+ * @param {string} value
24394
+ * @return {!proto.gateway.web.v1.SessionUsageTrendRequest} returns this
24395
+ */
24396
+ proto.gateway.web.v1.SessionUsageTrendRequest.prototype.setProjectId = function(value) {
24397
+ return jspb.Message.setProto3StringField(this, 2, value);
24398
+ };
24399
+
24400
+
24401
+ /**
24402
+ * optional string source_system = 3;
24403
+ * @return {string}
24404
+ */
24405
+ proto.gateway.web.v1.SessionUsageTrendRequest.prototype.getSourceSystem = function() {
24406
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
24407
+ };
24408
+
24409
+
24410
+ /**
24411
+ * @param {string} value
24412
+ * @return {!proto.gateway.web.v1.SessionUsageTrendRequest} returns this
24413
+ */
24414
+ proto.gateway.web.v1.SessionUsageTrendRequest.prototype.setSourceSystem = function(value) {
24415
+ return jspb.Message.setProto3StringField(this, 3, value);
24416
+ };
24417
+
24418
+
24419
+ /**
24420
+ * repeated string session_ids = 4;
24421
+ * @return {!Array<string>}
24422
+ */
24423
+ proto.gateway.web.v1.SessionUsageTrendRequest.prototype.getSessionIdsList = function() {
24424
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
24425
+ };
24426
+
24427
+
24428
+ /**
24429
+ * @param {!Array<string>} value
24430
+ * @return {!proto.gateway.web.v1.SessionUsageTrendRequest} returns this
24431
+ */
24432
+ proto.gateway.web.v1.SessionUsageTrendRequest.prototype.setSessionIdsList = function(value) {
24433
+ return jspb.Message.setField(this, 4, value || []);
24434
+ };
24435
+
24436
+
24437
+ /**
24438
+ * @param {string} value
24439
+ * @param {number=} opt_index
24440
+ * @return {!proto.gateway.web.v1.SessionUsageTrendRequest} returns this
24441
+ */
24442
+ proto.gateway.web.v1.SessionUsageTrendRequest.prototype.addSessionIds = function(value, opt_index) {
24443
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
24444
+ };
24445
+
24446
+
24447
+ /**
24448
+ * Clears the list making it empty but non-null.
24449
+ * @return {!proto.gateway.web.v1.SessionUsageTrendRequest} returns this
24450
+ */
24451
+ proto.gateway.web.v1.SessionUsageTrendRequest.prototype.clearSessionIdsList = function() {
24452
+ return this.setSessionIdsList([]);
24453
+ };
24454
+
24455
+
24456
+ /**
24457
+ * optional uint32 bucket_seconds = 5;
24458
+ * @return {number}
24459
+ */
24460
+ proto.gateway.web.v1.SessionUsageTrendRequest.prototype.getBucketSeconds = function() {
24461
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
24462
+ };
24463
+
24464
+
24465
+ /**
24466
+ * @param {number} value
24467
+ * @return {!proto.gateway.web.v1.SessionUsageTrendRequest} returns this
24468
+ */
24469
+ proto.gateway.web.v1.SessionUsageTrendRequest.prototype.setBucketSeconds = function(value) {
24470
+ return jspb.Message.setProto3IntField(this, 5, value);
24471
+ };
24472
+
24473
+
24474
+
24475
+ /**
24476
+ * List of repeated fields within this message type.
24477
+ * @private {!Array<number>}
24478
+ * @const
24479
+ */
24480
+ proto.gateway.web.v1.SessionUsageTrendResponse.repeatedFields_ = [3,4];
24481
+
24482
+
24483
+
24484
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24485
+ /**
24486
+ * Creates an object representation of this proto.
24487
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24488
+ * Optional fields that are not set will be set to undefined.
24489
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24490
+ * For the list of reserved names please see:
24491
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24492
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24493
+ * JSPB instance for transitional soy proto support:
24494
+ * http://goto/soy-param-migration
24495
+ * @return {!Object}
24496
+ */
24497
+ proto.gateway.web.v1.SessionUsageTrendResponse.prototype.toObject = function(opt_includeInstance) {
24498
+ return proto.gateway.web.v1.SessionUsageTrendResponse.toObject(opt_includeInstance, this);
24499
+ };
24500
+
24501
+
24502
+ /**
24503
+ * Static version of the {@see toObject} method.
24504
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24505
+ * the JSPB instance for transitional soy proto support:
24506
+ * http://goto/soy-param-migration
24507
+ * @param {!proto.gateway.web.v1.SessionUsageTrendResponse} msg The msg instance to transform.
24508
+ * @return {!Object}
24509
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24510
+ */
24511
+ proto.gateway.web.v1.SessionUsageTrendResponse.toObject = function(includeInstance, msg) {
24512
+ var f, obj = {
24513
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
24514
+ bucketSeconds: jspb.Message.getFieldWithDefault(msg, 2, 0),
24515
+ bucketsList: jspb.Message.toObjectList(msg.getBucketsList(),
24516
+ proto.gateway.web.v1.SessionUsageBucket.toObject, includeInstance),
24517
+ gitBucketsList: jspb.Message.toObjectList(msg.getGitBucketsList(),
24518
+ proto.gateway.web.v1.SessionGitBucket.toObject, includeInstance)
24519
+ };
24520
+
24521
+ if (includeInstance) {
24522
+ obj.$jspbMessageInstance = msg;
24523
+ }
24524
+ return obj;
24525
+ };
24526
+ }
24527
+
24528
+
24529
+ /**
24530
+ * Deserializes binary data (in protobuf wire format).
24531
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
24532
+ * @return {!proto.gateway.web.v1.SessionUsageTrendResponse}
24533
+ */
24534
+ proto.gateway.web.v1.SessionUsageTrendResponse.deserializeBinary = function(bytes) {
24535
+ var reader = new jspb.BinaryReader(bytes);
24536
+ var msg = new proto.gateway.web.v1.SessionUsageTrendResponse;
24537
+ return proto.gateway.web.v1.SessionUsageTrendResponse.deserializeBinaryFromReader(msg, reader);
24538
+ };
24539
+
24540
+
24541
+ /**
24542
+ * Deserializes binary data (in protobuf wire format) from the
24543
+ * given reader into the given message object.
24544
+ * @param {!proto.gateway.web.v1.SessionUsageTrendResponse} msg The message object to deserialize into.
24545
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24546
+ * @return {!proto.gateway.web.v1.SessionUsageTrendResponse}
24547
+ */
24548
+ proto.gateway.web.v1.SessionUsageTrendResponse.deserializeBinaryFromReader = function(msg, reader) {
24549
+ while (reader.nextField()) {
24550
+ if (reader.isEndGroup()) {
24551
+ break;
24552
+ }
24553
+ var field = reader.getFieldNumber();
24554
+ switch (field) {
24555
+ case 1:
24556
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
24557
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
24558
+ msg.setStatus(value);
24559
+ break;
24560
+ case 2:
24561
+ var value = /** @type {number} */ (reader.readUint32());
24562
+ msg.setBucketSeconds(value);
24563
+ break;
24564
+ case 3:
24565
+ var value = new proto.gateway.web.v1.SessionUsageBucket;
24566
+ reader.readMessage(value,proto.gateway.web.v1.SessionUsageBucket.deserializeBinaryFromReader);
24567
+ msg.addBuckets(value);
24568
+ break;
24569
+ case 4:
24570
+ var value = new proto.gateway.web.v1.SessionGitBucket;
24571
+ reader.readMessage(value,proto.gateway.web.v1.SessionGitBucket.deserializeBinaryFromReader);
24572
+ msg.addGitBuckets(value);
24573
+ break;
24574
+ default:
24575
+ reader.skipField();
24576
+ break;
24577
+ }
24578
+ }
24579
+ return msg;
24580
+ };
24581
+
24582
+
24583
+ /**
24584
+ * Serializes the message to binary data (in protobuf wire format).
24585
+ * @return {!Uint8Array}
24586
+ */
24587
+ proto.gateway.web.v1.SessionUsageTrendResponse.prototype.serializeBinary = function() {
24588
+ var writer = new jspb.BinaryWriter();
24589
+ proto.gateway.web.v1.SessionUsageTrendResponse.serializeBinaryToWriter(this, writer);
24590
+ return writer.getResultBuffer();
24591
+ };
24592
+
24593
+
24594
+ /**
24595
+ * Serializes the given message to binary data (in protobuf wire
24596
+ * format), writing to the given BinaryWriter.
24597
+ * @param {!proto.gateway.web.v1.SessionUsageTrendResponse} message
24598
+ * @param {!jspb.BinaryWriter} writer
24599
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24600
+ */
24601
+ proto.gateway.web.v1.SessionUsageTrendResponse.serializeBinaryToWriter = function(message, writer) {
24602
+ var f = undefined;
24603
+ f = message.getStatus();
24604
+ if (f != null) {
24605
+ writer.writeMessage(
24606
+ 1,
24607
+ f,
24608
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
24609
+ );
24610
+ }
24611
+ f = message.getBucketSeconds();
24612
+ if (f !== 0) {
24613
+ writer.writeUint32(
24614
+ 2,
24615
+ f
24616
+ );
24617
+ }
24618
+ f = message.getBucketsList();
24619
+ if (f.length > 0) {
24620
+ writer.writeRepeatedMessage(
24621
+ 3,
24622
+ f,
24623
+ proto.gateway.web.v1.SessionUsageBucket.serializeBinaryToWriter
24624
+ );
24625
+ }
24626
+ f = message.getGitBucketsList();
24627
+ if (f.length > 0) {
24628
+ writer.writeRepeatedMessage(
24629
+ 4,
24630
+ f,
24631
+ proto.gateway.web.v1.SessionGitBucket.serializeBinaryToWriter
24632
+ );
24633
+ }
24634
+ };
24635
+
24636
+
24637
+ /**
24638
+ * optional gateway.common.v1.ResponseStatus status = 1;
24639
+ * @return {?proto.gateway.common.v1.ResponseStatus}
24640
+ */
24641
+ proto.gateway.web.v1.SessionUsageTrendResponse.prototype.getStatus = function() {
24642
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
24643
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
24644
+ };
24645
+
24646
+
24647
+ /**
24648
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
24649
+ * @return {!proto.gateway.web.v1.SessionUsageTrendResponse} returns this
24650
+ */
24651
+ proto.gateway.web.v1.SessionUsageTrendResponse.prototype.setStatus = function(value) {
24652
+ return jspb.Message.setWrapperField(this, 1, value);
24653
+ };
24654
+
24655
+
24656
+ /**
24657
+ * Clears the message field making it undefined.
24658
+ * @return {!proto.gateway.web.v1.SessionUsageTrendResponse} returns this
24659
+ */
24660
+ proto.gateway.web.v1.SessionUsageTrendResponse.prototype.clearStatus = function() {
24661
+ return this.setStatus(undefined);
24662
+ };
24663
+
24664
+
24665
+ /**
24666
+ * Returns whether this field is set.
24667
+ * @return {boolean}
24668
+ */
24669
+ proto.gateway.web.v1.SessionUsageTrendResponse.prototype.hasStatus = function() {
24670
+ return jspb.Message.getField(this, 1) != null;
24671
+ };
24672
+
24673
+
24674
+ /**
24675
+ * optional uint32 bucket_seconds = 2;
24676
+ * @return {number}
24677
+ */
24678
+ proto.gateway.web.v1.SessionUsageTrendResponse.prototype.getBucketSeconds = function() {
24679
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
24680
+ };
24681
+
24682
+
24683
+ /**
24684
+ * @param {number} value
24685
+ * @return {!proto.gateway.web.v1.SessionUsageTrendResponse} returns this
24686
+ */
24687
+ proto.gateway.web.v1.SessionUsageTrendResponse.prototype.setBucketSeconds = function(value) {
24688
+ return jspb.Message.setProto3IntField(this, 2, value);
24689
+ };
24690
+
24691
+
24692
+ /**
24693
+ * repeated SessionUsageBucket buckets = 3;
24694
+ * @return {!Array<!proto.gateway.web.v1.SessionUsageBucket>}
24695
+ */
24696
+ proto.gateway.web.v1.SessionUsageTrendResponse.prototype.getBucketsList = function() {
24697
+ return /** @type{!Array<!proto.gateway.web.v1.SessionUsageBucket>} */ (
24698
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SessionUsageBucket, 3));
24699
+ };
24700
+
24701
+
24702
+ /**
24703
+ * @param {!Array<!proto.gateway.web.v1.SessionUsageBucket>} value
24704
+ * @return {!proto.gateway.web.v1.SessionUsageTrendResponse} returns this
24705
+ */
24706
+ proto.gateway.web.v1.SessionUsageTrendResponse.prototype.setBucketsList = function(value) {
24707
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
24708
+ };
24709
+
24710
+
24711
+ /**
24712
+ * @param {!proto.gateway.web.v1.SessionUsageBucket=} opt_value
24713
+ * @param {number=} opt_index
24714
+ * @return {!proto.gateway.web.v1.SessionUsageBucket}
24715
+ */
24716
+ proto.gateway.web.v1.SessionUsageTrendResponse.prototype.addBuckets = function(opt_value, opt_index) {
24717
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gateway.web.v1.SessionUsageBucket, opt_index);
24718
+ };
24719
+
24720
+
24721
+ /**
24722
+ * Clears the list making it empty but non-null.
24723
+ * @return {!proto.gateway.web.v1.SessionUsageTrendResponse} returns this
24724
+ */
24725
+ proto.gateway.web.v1.SessionUsageTrendResponse.prototype.clearBucketsList = function() {
24726
+ return this.setBucketsList([]);
24727
+ };
24728
+
24729
+
24730
+ /**
24731
+ * repeated SessionGitBucket git_buckets = 4;
24732
+ * @return {!Array<!proto.gateway.web.v1.SessionGitBucket>}
24733
+ */
24734
+ proto.gateway.web.v1.SessionUsageTrendResponse.prototype.getGitBucketsList = function() {
24735
+ return /** @type{!Array<!proto.gateway.web.v1.SessionGitBucket>} */ (
24736
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SessionGitBucket, 4));
24737
+ };
24738
+
24739
+
24740
+ /**
24741
+ * @param {!Array<!proto.gateway.web.v1.SessionGitBucket>} value
24742
+ * @return {!proto.gateway.web.v1.SessionUsageTrendResponse} returns this
24743
+ */
24744
+ proto.gateway.web.v1.SessionUsageTrendResponse.prototype.setGitBucketsList = function(value) {
24745
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
24746
+ };
24747
+
24748
+
24749
+ /**
24750
+ * @param {!proto.gateway.web.v1.SessionGitBucket=} opt_value
24751
+ * @param {number=} opt_index
24752
+ * @return {!proto.gateway.web.v1.SessionGitBucket}
24753
+ */
24754
+ proto.gateway.web.v1.SessionUsageTrendResponse.prototype.addGitBuckets = function(opt_value, opt_index) {
24755
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.gateway.web.v1.SessionGitBucket, opt_index);
24756
+ };
24757
+
24758
+
24759
+ /**
24760
+ * Clears the list making it empty but non-null.
24761
+ * @return {!proto.gateway.web.v1.SessionUsageTrendResponse} returns this
24762
+ */
24763
+ proto.gateway.web.v1.SessionUsageTrendResponse.prototype.clearGitBucketsList = function() {
24764
+ return this.setGitBucketsList([]);
24765
+ };
24766
+
24767
+
24768
+
24769
+
24770
+
24771
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24772
+ /**
24773
+ * Creates an object representation of this proto.
24774
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24775
+ * Optional fields that are not set will be set to undefined.
24776
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24777
+ * For the list of reserved names please see:
24778
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24779
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24780
+ * JSPB instance for transitional soy proto support:
24781
+ * http://goto/soy-param-migration
24782
+ * @return {!Object}
24783
+ */
24784
+ proto.gateway.web.v1.SessionUsageBucket.prototype.toObject = function(opt_includeInstance) {
24785
+ return proto.gateway.web.v1.SessionUsageBucket.toObject(opt_includeInstance, this);
24786
+ };
24787
+
24788
+
24789
+ /**
24790
+ * Static version of the {@see toObject} method.
24791
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24792
+ * the JSPB instance for transitional soy proto support:
24793
+ * http://goto/soy-param-migration
24794
+ * @param {!proto.gateway.web.v1.SessionUsageBucket} msg The msg instance to transform.
24795
+ * @return {!Object}
24796
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24797
+ */
24798
+ proto.gateway.web.v1.SessionUsageBucket.toObject = function(includeInstance, msg) {
24799
+ var f, obj = {
24800
+ bucketStart: (f = msg.getBucketStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
24801
+ model: jspb.Message.getFieldWithDefault(msg, 2, ""),
24802
+ modelCalls: jspb.Message.getFieldWithDefault(msg, 3, 0),
24803
+ inputTokens: jspb.Message.getFieldWithDefault(msg, 4, 0),
24804
+ outputTokens: jspb.Message.getFieldWithDefault(msg, 5, 0),
24805
+ cacheReadTokens: jspb.Message.getFieldWithDefault(msg, 6, 0),
24806
+ cacheWriteTokens: jspb.Message.getFieldWithDefault(msg, 7, 0),
24807
+ costUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0)
24808
+ };
24809
+
24810
+ if (includeInstance) {
24811
+ obj.$jspbMessageInstance = msg;
24812
+ }
24813
+ return obj;
24814
+ };
24815
+ }
24816
+
24817
+
24818
+ /**
24819
+ * Deserializes binary data (in protobuf wire format).
24820
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
24821
+ * @return {!proto.gateway.web.v1.SessionUsageBucket}
24822
+ */
24823
+ proto.gateway.web.v1.SessionUsageBucket.deserializeBinary = function(bytes) {
24824
+ var reader = new jspb.BinaryReader(bytes);
24825
+ var msg = new proto.gateway.web.v1.SessionUsageBucket;
24826
+ return proto.gateway.web.v1.SessionUsageBucket.deserializeBinaryFromReader(msg, reader);
24827
+ };
24828
+
24829
+
24830
+ /**
24831
+ * Deserializes binary data (in protobuf wire format) from the
24832
+ * given reader into the given message object.
24833
+ * @param {!proto.gateway.web.v1.SessionUsageBucket} msg The message object to deserialize into.
24834
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24835
+ * @return {!proto.gateway.web.v1.SessionUsageBucket}
24836
+ */
24837
+ proto.gateway.web.v1.SessionUsageBucket.deserializeBinaryFromReader = function(msg, reader) {
24838
+ while (reader.nextField()) {
24839
+ if (reader.isEndGroup()) {
24840
+ break;
24841
+ }
24842
+ var field = reader.getFieldNumber();
24843
+ switch (field) {
24844
+ case 1:
24845
+ var value = new google_protobuf_timestamp_pb.Timestamp;
24846
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
24847
+ msg.setBucketStart(value);
24848
+ break;
24849
+ case 2:
24850
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
24851
+ msg.setModel(value);
24852
+ break;
24853
+ case 3:
24854
+ var value = /** @type {number} */ (reader.readUint64());
24855
+ msg.setModelCalls(value);
24856
+ break;
24857
+ case 4:
24858
+ var value = /** @type {number} */ (reader.readUint64());
24859
+ msg.setInputTokens(value);
24860
+ break;
24861
+ case 5:
24862
+ var value = /** @type {number} */ (reader.readUint64());
24863
+ msg.setOutputTokens(value);
24864
+ break;
24865
+ case 6:
24866
+ var value = /** @type {number} */ (reader.readUint64());
24867
+ msg.setCacheReadTokens(value);
24868
+ break;
24869
+ case 7:
24870
+ var value = /** @type {number} */ (reader.readUint64());
24871
+ msg.setCacheWriteTokens(value);
24872
+ break;
24873
+ case 8:
24874
+ var value = /** @type {number} */ (reader.readDouble());
24875
+ msg.setCostUsd(value);
24876
+ break;
24877
+ default:
24878
+ reader.skipField();
24879
+ break;
24880
+ }
24881
+ }
24882
+ return msg;
24883
+ };
24884
+
24885
+
24886
+ /**
24887
+ * Serializes the message to binary data (in protobuf wire format).
24888
+ * @return {!Uint8Array}
24889
+ */
24890
+ proto.gateway.web.v1.SessionUsageBucket.prototype.serializeBinary = function() {
24891
+ var writer = new jspb.BinaryWriter();
24892
+ proto.gateway.web.v1.SessionUsageBucket.serializeBinaryToWriter(this, writer);
24893
+ return writer.getResultBuffer();
24894
+ };
24895
+
24896
+
24897
+ /**
24898
+ * Serializes the given message to binary data (in protobuf wire
24899
+ * format), writing to the given BinaryWriter.
24900
+ * @param {!proto.gateway.web.v1.SessionUsageBucket} message
24901
+ * @param {!jspb.BinaryWriter} writer
24902
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24903
+ */
24904
+ proto.gateway.web.v1.SessionUsageBucket.serializeBinaryToWriter = function(message, writer) {
24905
+ var f = undefined;
24906
+ f = message.getBucketStart();
24907
+ if (f != null) {
24908
+ writer.writeMessage(
24909
+ 1,
24910
+ f,
24911
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
24912
+ );
24913
+ }
24914
+ f = message.getModel();
24915
+ if (f.length > 0) {
24916
+ writer.writeString(
24917
+ 2,
24918
+ f
24919
+ );
24920
+ }
24921
+ f = message.getModelCalls();
24922
+ if (f !== 0) {
24923
+ writer.writeUint64(
24924
+ 3,
24925
+ f
24926
+ );
24927
+ }
24928
+ f = message.getInputTokens();
24929
+ if (f !== 0) {
24930
+ writer.writeUint64(
24931
+ 4,
24932
+ f
24933
+ );
24934
+ }
24935
+ f = message.getOutputTokens();
24936
+ if (f !== 0) {
24937
+ writer.writeUint64(
24938
+ 5,
24939
+ f
24940
+ );
24941
+ }
24942
+ f = message.getCacheReadTokens();
24943
+ if (f !== 0) {
24944
+ writer.writeUint64(
24945
+ 6,
24946
+ f
24947
+ );
24948
+ }
24949
+ f = message.getCacheWriteTokens();
24950
+ if (f !== 0) {
24951
+ writer.writeUint64(
24952
+ 7,
24953
+ f
24954
+ );
24955
+ }
24956
+ f = message.getCostUsd();
24957
+ if (f !== 0.0) {
24958
+ writer.writeDouble(
24959
+ 8,
24960
+ f
24961
+ );
24962
+ }
24963
+ };
24964
+
24965
+
24966
+ /**
24967
+ * optional google.protobuf.Timestamp bucket_start = 1;
24968
+ * @return {?proto.google.protobuf.Timestamp}
24969
+ */
24970
+ proto.gateway.web.v1.SessionUsageBucket.prototype.getBucketStart = function() {
24971
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
24972
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
24973
+ };
24974
+
24975
+
24976
+ /**
24977
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
24978
+ * @return {!proto.gateway.web.v1.SessionUsageBucket} returns this
24979
+ */
24980
+ proto.gateway.web.v1.SessionUsageBucket.prototype.setBucketStart = function(value) {
24981
+ return jspb.Message.setWrapperField(this, 1, value);
24982
+ };
24983
+
24984
+
24985
+ /**
24986
+ * Clears the message field making it undefined.
24987
+ * @return {!proto.gateway.web.v1.SessionUsageBucket} returns this
24988
+ */
24989
+ proto.gateway.web.v1.SessionUsageBucket.prototype.clearBucketStart = function() {
24990
+ return this.setBucketStart(undefined);
24991
+ };
24992
+
24993
+
24994
+ /**
24995
+ * Returns whether this field is set.
24996
+ * @return {boolean}
24997
+ */
24998
+ proto.gateway.web.v1.SessionUsageBucket.prototype.hasBucketStart = function() {
24999
+ return jspb.Message.getField(this, 1) != null;
25000
+ };
25001
+
25002
+
25003
+ /**
25004
+ * optional string model = 2;
25005
+ * @return {string}
25006
+ */
25007
+ proto.gateway.web.v1.SessionUsageBucket.prototype.getModel = function() {
25008
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
25009
+ };
25010
+
25011
+
25012
+ /**
25013
+ * @param {string} value
25014
+ * @return {!proto.gateway.web.v1.SessionUsageBucket} returns this
25015
+ */
25016
+ proto.gateway.web.v1.SessionUsageBucket.prototype.setModel = function(value) {
25017
+ return jspb.Message.setProto3StringField(this, 2, value);
25018
+ };
25019
+
25020
+
25021
+ /**
25022
+ * optional uint64 model_calls = 3;
25023
+ * @return {number}
25024
+ */
25025
+ proto.gateway.web.v1.SessionUsageBucket.prototype.getModelCalls = function() {
25026
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
25027
+ };
25028
+
25029
+
25030
+ /**
25031
+ * @param {number} value
25032
+ * @return {!proto.gateway.web.v1.SessionUsageBucket} returns this
25033
+ */
25034
+ proto.gateway.web.v1.SessionUsageBucket.prototype.setModelCalls = function(value) {
25035
+ return jspb.Message.setProto3IntField(this, 3, value);
25036
+ };
25037
+
25038
+
25039
+ /**
25040
+ * optional uint64 input_tokens = 4;
25041
+ * @return {number}
25042
+ */
25043
+ proto.gateway.web.v1.SessionUsageBucket.prototype.getInputTokens = function() {
25044
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
25045
+ };
25046
+
25047
+
25048
+ /**
25049
+ * @param {number} value
25050
+ * @return {!proto.gateway.web.v1.SessionUsageBucket} returns this
25051
+ */
25052
+ proto.gateway.web.v1.SessionUsageBucket.prototype.setInputTokens = function(value) {
25053
+ return jspb.Message.setProto3IntField(this, 4, value);
25054
+ };
25055
+
25056
+
25057
+ /**
25058
+ * optional uint64 output_tokens = 5;
25059
+ * @return {number}
25060
+ */
25061
+ proto.gateway.web.v1.SessionUsageBucket.prototype.getOutputTokens = function() {
25062
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
25063
+ };
25064
+
25065
+
25066
+ /**
25067
+ * @param {number} value
25068
+ * @return {!proto.gateway.web.v1.SessionUsageBucket} returns this
25069
+ */
25070
+ proto.gateway.web.v1.SessionUsageBucket.prototype.setOutputTokens = function(value) {
25071
+ return jspb.Message.setProto3IntField(this, 5, value);
25072
+ };
25073
+
25074
+
25075
+ /**
25076
+ * optional uint64 cache_read_tokens = 6;
25077
+ * @return {number}
25078
+ */
25079
+ proto.gateway.web.v1.SessionUsageBucket.prototype.getCacheReadTokens = function() {
25080
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
25081
+ };
25082
+
25083
+
25084
+ /**
25085
+ * @param {number} value
25086
+ * @return {!proto.gateway.web.v1.SessionUsageBucket} returns this
25087
+ */
25088
+ proto.gateway.web.v1.SessionUsageBucket.prototype.setCacheReadTokens = function(value) {
25089
+ return jspb.Message.setProto3IntField(this, 6, value);
25090
+ };
25091
+
25092
+
25093
+ /**
25094
+ * optional uint64 cache_write_tokens = 7;
25095
+ * @return {number}
25096
+ */
25097
+ proto.gateway.web.v1.SessionUsageBucket.prototype.getCacheWriteTokens = function() {
25098
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
25099
+ };
25100
+
25101
+
25102
+ /**
25103
+ * @param {number} value
25104
+ * @return {!proto.gateway.web.v1.SessionUsageBucket} returns this
25105
+ */
25106
+ proto.gateway.web.v1.SessionUsageBucket.prototype.setCacheWriteTokens = function(value) {
25107
+ return jspb.Message.setProto3IntField(this, 7, value);
25108
+ };
25109
+
25110
+
25111
+ /**
25112
+ * optional double cost_usd = 8;
25113
+ * @return {number}
25114
+ */
25115
+ proto.gateway.web.v1.SessionUsageBucket.prototype.getCostUsd = function() {
25116
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
25117
+ };
25118
+
25119
+
25120
+ /**
25121
+ * @param {number} value
25122
+ * @return {!proto.gateway.web.v1.SessionUsageBucket} returns this
25123
+ */
25124
+ proto.gateway.web.v1.SessionUsageBucket.prototype.setCostUsd = function(value) {
25125
+ return jspb.Message.setProto3FloatField(this, 8, value);
25126
+ };
25127
+
25128
+
25129
+
25130
+
25131
+
25132
+ if (jspb.Message.GENERATE_TO_OBJECT) {
25133
+ /**
25134
+ * Creates an object representation of this proto.
25135
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
25136
+ * Optional fields that are not set will be set to undefined.
25137
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25138
+ * For the list of reserved names please see:
25139
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25140
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25141
+ * JSPB instance for transitional soy proto support:
25142
+ * http://goto/soy-param-migration
25143
+ * @return {!Object}
25144
+ */
25145
+ proto.gateway.web.v1.SessionGitBucket.prototype.toObject = function(opt_includeInstance) {
25146
+ return proto.gateway.web.v1.SessionGitBucket.toObject(opt_includeInstance, this);
25147
+ };
25148
+
25149
+
25150
+ /**
25151
+ * Static version of the {@see toObject} method.
25152
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25153
+ * the JSPB instance for transitional soy proto support:
25154
+ * http://goto/soy-param-migration
25155
+ * @param {!proto.gateway.web.v1.SessionGitBucket} msg The msg instance to transform.
25156
+ * @return {!Object}
25157
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25158
+ */
25159
+ proto.gateway.web.v1.SessionGitBucket.toObject = function(includeInstance, msg) {
25160
+ var f, obj = {
25161
+ bucketStart: (f = msg.getBucketStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
25162
+ action: jspb.Message.getFieldWithDefault(msg, 2, ""),
25163
+ count: jspb.Message.getFieldWithDefault(msg, 3, 0)
25164
+ };
25165
+
25166
+ if (includeInstance) {
25167
+ obj.$jspbMessageInstance = msg;
25168
+ }
25169
+ return obj;
25170
+ };
25171
+ }
25172
+
25173
+
25174
+ /**
25175
+ * Deserializes binary data (in protobuf wire format).
25176
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
25177
+ * @return {!proto.gateway.web.v1.SessionGitBucket}
25178
+ */
25179
+ proto.gateway.web.v1.SessionGitBucket.deserializeBinary = function(bytes) {
25180
+ var reader = new jspb.BinaryReader(bytes);
25181
+ var msg = new proto.gateway.web.v1.SessionGitBucket;
25182
+ return proto.gateway.web.v1.SessionGitBucket.deserializeBinaryFromReader(msg, reader);
25183
+ };
25184
+
25185
+
25186
+ /**
25187
+ * Deserializes binary data (in protobuf wire format) from the
25188
+ * given reader into the given message object.
25189
+ * @param {!proto.gateway.web.v1.SessionGitBucket} msg The message object to deserialize into.
25190
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25191
+ * @return {!proto.gateway.web.v1.SessionGitBucket}
25192
+ */
25193
+ proto.gateway.web.v1.SessionGitBucket.deserializeBinaryFromReader = function(msg, reader) {
25194
+ while (reader.nextField()) {
25195
+ if (reader.isEndGroup()) {
25196
+ break;
25197
+ }
25198
+ var field = reader.getFieldNumber();
25199
+ switch (field) {
25200
+ case 1:
25201
+ var value = new google_protobuf_timestamp_pb.Timestamp;
25202
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
25203
+ msg.setBucketStart(value);
25204
+ break;
25205
+ case 2:
25206
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
25207
+ msg.setAction(value);
25208
+ break;
25209
+ case 3:
25210
+ var value = /** @type {number} */ (reader.readUint64());
25211
+ msg.setCount(value);
25212
+ break;
25213
+ default:
25214
+ reader.skipField();
25215
+ break;
25216
+ }
25217
+ }
25218
+ return msg;
25219
+ };
25220
+
25221
+
25222
+ /**
25223
+ * Serializes the message to binary data (in protobuf wire format).
25224
+ * @return {!Uint8Array}
25225
+ */
25226
+ proto.gateway.web.v1.SessionGitBucket.prototype.serializeBinary = function() {
25227
+ var writer = new jspb.BinaryWriter();
25228
+ proto.gateway.web.v1.SessionGitBucket.serializeBinaryToWriter(this, writer);
25229
+ return writer.getResultBuffer();
25230
+ };
25231
+
25232
+
25233
+ /**
25234
+ * Serializes the given message to binary data (in protobuf wire
25235
+ * format), writing to the given BinaryWriter.
25236
+ * @param {!proto.gateway.web.v1.SessionGitBucket} message
25237
+ * @param {!jspb.BinaryWriter} writer
25238
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25239
+ */
25240
+ proto.gateway.web.v1.SessionGitBucket.serializeBinaryToWriter = function(message, writer) {
25241
+ var f = undefined;
25242
+ f = message.getBucketStart();
25243
+ if (f != null) {
25244
+ writer.writeMessage(
25245
+ 1,
25246
+ f,
25247
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
25248
+ );
25249
+ }
25250
+ f = message.getAction();
25251
+ if (f.length > 0) {
25252
+ writer.writeString(
25253
+ 2,
25254
+ f
25255
+ );
25256
+ }
25257
+ f = message.getCount();
25258
+ if (f !== 0) {
25259
+ writer.writeUint64(
25260
+ 3,
25261
+ f
25262
+ );
25263
+ }
25264
+ };
25265
+
25266
+
25267
+ /**
25268
+ * optional google.protobuf.Timestamp bucket_start = 1;
25269
+ * @return {?proto.google.protobuf.Timestamp}
25270
+ */
25271
+ proto.gateway.web.v1.SessionGitBucket.prototype.getBucketStart = function() {
25272
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
25273
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
25274
+ };
25275
+
25276
+
25277
+ /**
25278
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
25279
+ * @return {!proto.gateway.web.v1.SessionGitBucket} returns this
25280
+ */
25281
+ proto.gateway.web.v1.SessionGitBucket.prototype.setBucketStart = function(value) {
25282
+ return jspb.Message.setWrapperField(this, 1, value);
25283
+ };
25284
+
25285
+
25286
+ /**
25287
+ * Clears the message field making it undefined.
25288
+ * @return {!proto.gateway.web.v1.SessionGitBucket} returns this
25289
+ */
25290
+ proto.gateway.web.v1.SessionGitBucket.prototype.clearBucketStart = function() {
25291
+ return this.setBucketStart(undefined);
25292
+ };
25293
+
25294
+
25295
+ /**
25296
+ * Returns whether this field is set.
25297
+ * @return {boolean}
25298
+ */
25299
+ proto.gateway.web.v1.SessionGitBucket.prototype.hasBucketStart = function() {
25300
+ return jspb.Message.getField(this, 1) != null;
25301
+ };
25302
+
25303
+
25304
+ /**
25305
+ * optional string action = 2;
25306
+ * @return {string}
25307
+ */
25308
+ proto.gateway.web.v1.SessionGitBucket.prototype.getAction = function() {
25309
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
25310
+ };
25311
+
25312
+
25313
+ /**
25314
+ * @param {string} value
25315
+ * @return {!proto.gateway.web.v1.SessionGitBucket} returns this
25316
+ */
25317
+ proto.gateway.web.v1.SessionGitBucket.prototype.setAction = function(value) {
25318
+ return jspb.Message.setProto3StringField(this, 2, value);
25319
+ };
25320
+
25321
+
25322
+ /**
25323
+ * optional uint64 count = 3;
25324
+ * @return {number}
25325
+ */
25326
+ proto.gateway.web.v1.SessionGitBucket.prototype.getCount = function() {
25327
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
25328
+ };
25329
+
25330
+
25331
+ /**
25332
+ * @param {number} value
25333
+ * @return {!proto.gateway.web.v1.SessionGitBucket} returns this
25334
+ */
25335
+ proto.gateway.web.v1.SessionGitBucket.prototype.setCount = function(value) {
25336
+ return jspb.Message.setProto3IntField(this, 3, value);
25337
+ };
25338
+
25339
+
25340
+
24111
25341
 
24112
25342
 
24113
25343
  if (jspb.Message.GENERATE_TO_OBJECT) {