@miradorlabs/web-grpc 2.29.0 → 2.30.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.
@@ -27,6 +27,9 @@ var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/commo
27
27
  goog.object.extend(proto, proto_gateway_common_v1_status_pb);
28
28
  goog.exportSymbol('proto.gateway.web.v1.AddDemoProjectRequest', null, global);
29
29
  goog.exportSymbol('proto.gateway.web.v1.AddDemoProjectResponse', null, global);
30
+ goog.exportSymbol('proto.gateway.web.v1.AuthorizeCliLoginRequest', null, global);
31
+ goog.exportSymbol('proto.gateway.web.v1.AuthorizeCliLoginResponse', null, global);
32
+ goog.exportSymbol('proto.gateway.web.v1.CliSession', null, global);
30
33
  goog.exportSymbol('proto.gateway.web.v1.CreateOrganizationRequest', null, global);
31
34
  goog.exportSymbol('proto.gateway.web.v1.CreateOrganizationResponse', null, global);
32
35
  goog.exportSymbol('proto.gateway.web.v1.CreateProjectRequest', null, global);
@@ -45,6 +48,8 @@ goog.exportSymbol('proto.gateway.web.v1.Invitation', null, global);
45
48
  goog.exportSymbol('proto.gateway.web.v1.InvitationStatus', null, global);
46
49
  goog.exportSymbol('proto.gateway.web.v1.InviteUserRequest', null, global);
47
50
  goog.exportSymbol('proto.gateway.web.v1.InviteUserResponse', null, global);
51
+ goog.exportSymbol('proto.gateway.web.v1.ListCliSessionsRequest', null, global);
52
+ goog.exportSymbol('proto.gateway.web.v1.ListCliSessionsResponse', null, global);
48
53
  goog.exportSymbol('proto.gateway.web.v1.ListInvitationsRequest', null, global);
49
54
  goog.exportSymbol('proto.gateway.web.v1.ListInvitationsResponse', null, global);
50
55
  goog.exportSymbol('proto.gateway.web.v1.ListProjectsRequest', null, global);
@@ -74,6 +79,8 @@ goog.exportSymbol('proto.gateway.web.v1.RemoveUserRequest', null, global);
74
79
  goog.exportSymbol('proto.gateway.web.v1.RemoveUserResponse', null, global);
75
80
  goog.exportSymbol('proto.gateway.web.v1.ResendInviteRequest', null, global);
76
81
  goog.exportSymbol('proto.gateway.web.v1.ResendInviteResponse', null, global);
82
+ goog.exportSymbol('proto.gateway.web.v1.RevokeCliSessionRequest', null, global);
83
+ goog.exportSymbol('proto.gateway.web.v1.RevokeCliSessionResponse', null, global);
77
84
  goog.exportSymbol('proto.gateway.web.v1.RevokeInvitationRequest', null, global);
78
85
  goog.exportSymbol('proto.gateway.web.v1.RevokeInvitationResponse', null, global);
79
86
  goog.exportSymbol('proto.gateway.web.v1.ServerApiKey', null, global);
@@ -1486,6 +1493,153 @@ if (goog.DEBUG && !COMPILED) {
1486
1493
  */
1487
1494
  proto.gateway.web.v1.ProjectStats.displayName = 'proto.gateway.web.v1.ProjectStats';
1488
1495
  }
1496
+ /**
1497
+ * Generated by JsPbCodeGenerator.
1498
+ * @param {Array=} opt_data Optional initial data array, typically from a
1499
+ * server response, or constructed directly in Javascript. The array is used
1500
+ * in place and becomes part of the constructed object. It is not cloned.
1501
+ * If no data is provided, the constructed object will be empty, but still
1502
+ * valid.
1503
+ * @extends {jspb.Message}
1504
+ * @constructor
1505
+ */
1506
+ proto.gateway.web.v1.AuthorizeCliLoginRequest = function(opt_data) {
1507
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1508
+ };
1509
+ goog.inherits(proto.gateway.web.v1.AuthorizeCliLoginRequest, jspb.Message);
1510
+ if (goog.DEBUG && !COMPILED) {
1511
+ /**
1512
+ * @public
1513
+ * @override
1514
+ */
1515
+ proto.gateway.web.v1.AuthorizeCliLoginRequest.displayName = 'proto.gateway.web.v1.AuthorizeCliLoginRequest';
1516
+ }
1517
+ /**
1518
+ * Generated by JsPbCodeGenerator.
1519
+ * @param {Array=} opt_data Optional initial data array, typically from a
1520
+ * server response, or constructed directly in Javascript. The array is used
1521
+ * in place and becomes part of the constructed object. It is not cloned.
1522
+ * If no data is provided, the constructed object will be empty, but still
1523
+ * valid.
1524
+ * @extends {jspb.Message}
1525
+ * @constructor
1526
+ */
1527
+ proto.gateway.web.v1.AuthorizeCliLoginResponse = function(opt_data) {
1528
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1529
+ };
1530
+ goog.inherits(proto.gateway.web.v1.AuthorizeCliLoginResponse, jspb.Message);
1531
+ if (goog.DEBUG && !COMPILED) {
1532
+ /**
1533
+ * @public
1534
+ * @override
1535
+ */
1536
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.displayName = 'proto.gateway.web.v1.AuthorizeCliLoginResponse';
1537
+ }
1538
+ /**
1539
+ * Generated by JsPbCodeGenerator.
1540
+ * @param {Array=} opt_data Optional initial data array, typically from a
1541
+ * server response, or constructed directly in Javascript. The array is used
1542
+ * in place and becomes part of the constructed object. It is not cloned.
1543
+ * If no data is provided, the constructed object will be empty, but still
1544
+ * valid.
1545
+ * @extends {jspb.Message}
1546
+ * @constructor
1547
+ */
1548
+ proto.gateway.web.v1.ListCliSessionsRequest = function(opt_data) {
1549
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1550
+ };
1551
+ goog.inherits(proto.gateway.web.v1.ListCliSessionsRequest, jspb.Message);
1552
+ if (goog.DEBUG && !COMPILED) {
1553
+ /**
1554
+ * @public
1555
+ * @override
1556
+ */
1557
+ proto.gateway.web.v1.ListCliSessionsRequest.displayName = 'proto.gateway.web.v1.ListCliSessionsRequest';
1558
+ }
1559
+ /**
1560
+ * Generated by JsPbCodeGenerator.
1561
+ * @param {Array=} opt_data Optional initial data array, typically from a
1562
+ * server response, or constructed directly in Javascript. The array is used
1563
+ * in place and becomes part of the constructed object. It is not cloned.
1564
+ * If no data is provided, the constructed object will be empty, but still
1565
+ * valid.
1566
+ * @extends {jspb.Message}
1567
+ * @constructor
1568
+ */
1569
+ proto.gateway.web.v1.ListCliSessionsResponse = function(opt_data) {
1570
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListCliSessionsResponse.repeatedFields_, null);
1571
+ };
1572
+ goog.inherits(proto.gateway.web.v1.ListCliSessionsResponse, jspb.Message);
1573
+ if (goog.DEBUG && !COMPILED) {
1574
+ /**
1575
+ * @public
1576
+ * @override
1577
+ */
1578
+ proto.gateway.web.v1.ListCliSessionsResponse.displayName = 'proto.gateway.web.v1.ListCliSessionsResponse';
1579
+ }
1580
+ /**
1581
+ * Generated by JsPbCodeGenerator.
1582
+ * @param {Array=} opt_data Optional initial data array, typically from a
1583
+ * server response, or constructed directly in Javascript. The array is used
1584
+ * in place and becomes part of the constructed object. It is not cloned.
1585
+ * If no data is provided, the constructed object will be empty, but still
1586
+ * valid.
1587
+ * @extends {jspb.Message}
1588
+ * @constructor
1589
+ */
1590
+ proto.gateway.web.v1.CliSession = function(opt_data) {
1591
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1592
+ };
1593
+ goog.inherits(proto.gateway.web.v1.CliSession, jspb.Message);
1594
+ if (goog.DEBUG && !COMPILED) {
1595
+ /**
1596
+ * @public
1597
+ * @override
1598
+ */
1599
+ proto.gateway.web.v1.CliSession.displayName = 'proto.gateway.web.v1.CliSession';
1600
+ }
1601
+ /**
1602
+ * Generated by JsPbCodeGenerator.
1603
+ * @param {Array=} opt_data Optional initial data array, typically from a
1604
+ * server response, or constructed directly in Javascript. The array is used
1605
+ * in place and becomes part of the constructed object. It is not cloned.
1606
+ * If no data is provided, the constructed object will be empty, but still
1607
+ * valid.
1608
+ * @extends {jspb.Message}
1609
+ * @constructor
1610
+ */
1611
+ proto.gateway.web.v1.RevokeCliSessionRequest = function(opt_data) {
1612
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1613
+ };
1614
+ goog.inherits(proto.gateway.web.v1.RevokeCliSessionRequest, jspb.Message);
1615
+ if (goog.DEBUG && !COMPILED) {
1616
+ /**
1617
+ * @public
1618
+ * @override
1619
+ */
1620
+ proto.gateway.web.v1.RevokeCliSessionRequest.displayName = 'proto.gateway.web.v1.RevokeCliSessionRequest';
1621
+ }
1622
+ /**
1623
+ * Generated by JsPbCodeGenerator.
1624
+ * @param {Array=} opt_data Optional initial data array, typically from a
1625
+ * server response, or constructed directly in Javascript. The array is used
1626
+ * in place and becomes part of the constructed object. It is not cloned.
1627
+ * If no data is provided, the constructed object will be empty, but still
1628
+ * valid.
1629
+ * @extends {jspb.Message}
1630
+ * @constructor
1631
+ */
1632
+ proto.gateway.web.v1.RevokeCliSessionResponse = function(opt_data) {
1633
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1634
+ };
1635
+ goog.inherits(proto.gateway.web.v1.RevokeCliSessionResponse, jspb.Message);
1636
+ if (goog.DEBUG && !COMPILED) {
1637
+ /**
1638
+ * @public
1639
+ * @override
1640
+ */
1641
+ proto.gateway.web.v1.RevokeCliSessionResponse.displayName = 'proto.gateway.web.v1.RevokeCliSessionResponse';
1642
+ }
1489
1643
 
1490
1644
 
1491
1645
 
@@ -15346,6 +15500,1423 @@ proto.gateway.web.v1.ProjectStats.prototype.hasLastUpdatedAt = function() {
15346
15500
  };
15347
15501
 
15348
15502
 
15503
+
15504
+
15505
+
15506
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15507
+ /**
15508
+ * Creates an object representation of this proto.
15509
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15510
+ * Optional fields that are not set will be set to undefined.
15511
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15512
+ * For the list of reserved names please see:
15513
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15514
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15515
+ * JSPB instance for transitional soy proto support:
15516
+ * http://goto/soy-param-migration
15517
+ * @return {!Object}
15518
+ */
15519
+ proto.gateway.web.v1.AuthorizeCliLoginRequest.prototype.toObject = function(opt_includeInstance) {
15520
+ return proto.gateway.web.v1.AuthorizeCliLoginRequest.toObject(opt_includeInstance, this);
15521
+ };
15522
+
15523
+
15524
+ /**
15525
+ * Static version of the {@see toObject} method.
15526
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15527
+ * the JSPB instance for transitional soy proto support:
15528
+ * http://goto/soy-param-migration
15529
+ * @param {!proto.gateway.web.v1.AuthorizeCliLoginRequest} msg The msg instance to transform.
15530
+ * @return {!Object}
15531
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15532
+ */
15533
+ proto.gateway.web.v1.AuthorizeCliLoginRequest.toObject = function(includeInstance, msg) {
15534
+ var f, obj = {
15535
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
15536
+ codeChallenge: jspb.Message.getFieldWithDefault(msg, 2, ""),
15537
+ redirectPort: jspb.Message.getFieldWithDefault(msg, 3, 0),
15538
+ label: jspb.Message.getFieldWithDefault(msg, 4, "")
15539
+ };
15540
+
15541
+ if (includeInstance) {
15542
+ obj.$jspbMessageInstance = msg;
15543
+ }
15544
+ return obj;
15545
+ };
15546
+ }
15547
+
15548
+
15549
+ /**
15550
+ * Deserializes binary data (in protobuf wire format).
15551
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15552
+ * @return {!proto.gateway.web.v1.AuthorizeCliLoginRequest}
15553
+ */
15554
+ proto.gateway.web.v1.AuthorizeCliLoginRequest.deserializeBinary = function(bytes) {
15555
+ var reader = new jspb.BinaryReader(bytes);
15556
+ var msg = new proto.gateway.web.v1.AuthorizeCliLoginRequest;
15557
+ return proto.gateway.web.v1.AuthorizeCliLoginRequest.deserializeBinaryFromReader(msg, reader);
15558
+ };
15559
+
15560
+
15561
+ /**
15562
+ * Deserializes binary data (in protobuf wire format) from the
15563
+ * given reader into the given message object.
15564
+ * @param {!proto.gateway.web.v1.AuthorizeCliLoginRequest} msg The message object to deserialize into.
15565
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15566
+ * @return {!proto.gateway.web.v1.AuthorizeCliLoginRequest}
15567
+ */
15568
+ proto.gateway.web.v1.AuthorizeCliLoginRequest.deserializeBinaryFromReader = function(msg, reader) {
15569
+ while (reader.nextField()) {
15570
+ if (reader.isEndGroup()) {
15571
+ break;
15572
+ }
15573
+ var field = reader.getFieldNumber();
15574
+ switch (field) {
15575
+ case 1:
15576
+ var value = /** @type {string} */ (reader.readString());
15577
+ msg.setOrganizationId(value);
15578
+ break;
15579
+ case 2:
15580
+ var value = /** @type {string} */ (reader.readString());
15581
+ msg.setCodeChallenge(value);
15582
+ break;
15583
+ case 3:
15584
+ var value = /** @type {number} */ (reader.readInt32());
15585
+ msg.setRedirectPort(value);
15586
+ break;
15587
+ case 4:
15588
+ var value = /** @type {string} */ (reader.readString());
15589
+ msg.setLabel(value);
15590
+ break;
15591
+ default:
15592
+ reader.skipField();
15593
+ break;
15594
+ }
15595
+ }
15596
+ return msg;
15597
+ };
15598
+
15599
+
15600
+ /**
15601
+ * Serializes the message to binary data (in protobuf wire format).
15602
+ * @return {!Uint8Array}
15603
+ */
15604
+ proto.gateway.web.v1.AuthorizeCliLoginRequest.prototype.serializeBinary = function() {
15605
+ var writer = new jspb.BinaryWriter();
15606
+ proto.gateway.web.v1.AuthorizeCliLoginRequest.serializeBinaryToWriter(this, writer);
15607
+ return writer.getResultBuffer();
15608
+ };
15609
+
15610
+
15611
+ /**
15612
+ * Serializes the given message to binary data (in protobuf wire
15613
+ * format), writing to the given BinaryWriter.
15614
+ * @param {!proto.gateway.web.v1.AuthorizeCliLoginRequest} message
15615
+ * @param {!jspb.BinaryWriter} writer
15616
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15617
+ */
15618
+ proto.gateway.web.v1.AuthorizeCliLoginRequest.serializeBinaryToWriter = function(message, writer) {
15619
+ var f = undefined;
15620
+ f = message.getOrganizationId();
15621
+ if (f.length > 0) {
15622
+ writer.writeString(
15623
+ 1,
15624
+ f
15625
+ );
15626
+ }
15627
+ f = message.getCodeChallenge();
15628
+ if (f.length > 0) {
15629
+ writer.writeString(
15630
+ 2,
15631
+ f
15632
+ );
15633
+ }
15634
+ f = message.getRedirectPort();
15635
+ if (f !== 0) {
15636
+ writer.writeInt32(
15637
+ 3,
15638
+ f
15639
+ );
15640
+ }
15641
+ f = message.getLabel();
15642
+ if (f.length > 0) {
15643
+ writer.writeString(
15644
+ 4,
15645
+ f
15646
+ );
15647
+ }
15648
+ };
15649
+
15650
+
15651
+ /**
15652
+ * optional string organization_id = 1;
15653
+ * @return {string}
15654
+ */
15655
+ proto.gateway.web.v1.AuthorizeCliLoginRequest.prototype.getOrganizationId = function() {
15656
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15657
+ };
15658
+
15659
+
15660
+ /**
15661
+ * @param {string} value
15662
+ * @return {!proto.gateway.web.v1.AuthorizeCliLoginRequest} returns this
15663
+ */
15664
+ proto.gateway.web.v1.AuthorizeCliLoginRequest.prototype.setOrganizationId = function(value) {
15665
+ return jspb.Message.setProto3StringField(this, 1, value);
15666
+ };
15667
+
15668
+
15669
+ /**
15670
+ * optional string code_challenge = 2;
15671
+ * @return {string}
15672
+ */
15673
+ proto.gateway.web.v1.AuthorizeCliLoginRequest.prototype.getCodeChallenge = function() {
15674
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
15675
+ };
15676
+
15677
+
15678
+ /**
15679
+ * @param {string} value
15680
+ * @return {!proto.gateway.web.v1.AuthorizeCliLoginRequest} returns this
15681
+ */
15682
+ proto.gateway.web.v1.AuthorizeCliLoginRequest.prototype.setCodeChallenge = function(value) {
15683
+ return jspb.Message.setProto3StringField(this, 2, value);
15684
+ };
15685
+
15686
+
15687
+ /**
15688
+ * optional int32 redirect_port = 3;
15689
+ * @return {number}
15690
+ */
15691
+ proto.gateway.web.v1.AuthorizeCliLoginRequest.prototype.getRedirectPort = function() {
15692
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
15693
+ };
15694
+
15695
+
15696
+ /**
15697
+ * @param {number} value
15698
+ * @return {!proto.gateway.web.v1.AuthorizeCliLoginRequest} returns this
15699
+ */
15700
+ proto.gateway.web.v1.AuthorizeCliLoginRequest.prototype.setRedirectPort = function(value) {
15701
+ return jspb.Message.setProto3IntField(this, 3, value);
15702
+ };
15703
+
15704
+
15705
+ /**
15706
+ * optional string label = 4;
15707
+ * @return {string}
15708
+ */
15709
+ proto.gateway.web.v1.AuthorizeCliLoginRequest.prototype.getLabel = function() {
15710
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
15711
+ };
15712
+
15713
+
15714
+ /**
15715
+ * @param {string} value
15716
+ * @return {!proto.gateway.web.v1.AuthorizeCliLoginRequest} returns this
15717
+ */
15718
+ proto.gateway.web.v1.AuthorizeCliLoginRequest.prototype.setLabel = function(value) {
15719
+ return jspb.Message.setProto3StringField(this, 4, value);
15720
+ };
15721
+
15722
+
15723
+
15724
+
15725
+
15726
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15727
+ /**
15728
+ * Creates an object representation of this proto.
15729
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15730
+ * Optional fields that are not set will be set to undefined.
15731
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15732
+ * For the list of reserved names please see:
15733
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15734
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15735
+ * JSPB instance for transitional soy proto support:
15736
+ * http://goto/soy-param-migration
15737
+ * @return {!Object}
15738
+ */
15739
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.prototype.toObject = function(opt_includeInstance) {
15740
+ return proto.gateway.web.v1.AuthorizeCliLoginResponse.toObject(opt_includeInstance, this);
15741
+ };
15742
+
15743
+
15744
+ /**
15745
+ * Static version of the {@see toObject} method.
15746
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15747
+ * the JSPB instance for transitional soy proto support:
15748
+ * http://goto/soy-param-migration
15749
+ * @param {!proto.gateway.web.v1.AuthorizeCliLoginResponse} msg The msg instance to transform.
15750
+ * @return {!Object}
15751
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15752
+ */
15753
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.toObject = function(includeInstance, msg) {
15754
+ var f, obj = {
15755
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
15756
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
15757
+ expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
15758
+ };
15759
+
15760
+ if (includeInstance) {
15761
+ obj.$jspbMessageInstance = msg;
15762
+ }
15763
+ return obj;
15764
+ };
15765
+ }
15766
+
15767
+
15768
+ /**
15769
+ * Deserializes binary data (in protobuf wire format).
15770
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15771
+ * @return {!proto.gateway.web.v1.AuthorizeCliLoginResponse}
15772
+ */
15773
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.deserializeBinary = function(bytes) {
15774
+ var reader = new jspb.BinaryReader(bytes);
15775
+ var msg = new proto.gateway.web.v1.AuthorizeCliLoginResponse;
15776
+ return proto.gateway.web.v1.AuthorizeCliLoginResponse.deserializeBinaryFromReader(msg, reader);
15777
+ };
15778
+
15779
+
15780
+ /**
15781
+ * Deserializes binary data (in protobuf wire format) from the
15782
+ * given reader into the given message object.
15783
+ * @param {!proto.gateway.web.v1.AuthorizeCliLoginResponse} msg The message object to deserialize into.
15784
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15785
+ * @return {!proto.gateway.web.v1.AuthorizeCliLoginResponse}
15786
+ */
15787
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.deserializeBinaryFromReader = function(msg, reader) {
15788
+ while (reader.nextField()) {
15789
+ if (reader.isEndGroup()) {
15790
+ break;
15791
+ }
15792
+ var field = reader.getFieldNumber();
15793
+ switch (field) {
15794
+ case 1:
15795
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
15796
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
15797
+ msg.setStatus(value);
15798
+ break;
15799
+ case 2:
15800
+ var value = /** @type {string} */ (reader.readString());
15801
+ msg.setCode(value);
15802
+ break;
15803
+ case 3:
15804
+ var value = new google_protobuf_timestamp_pb.Timestamp;
15805
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
15806
+ msg.setExpiresAt(value);
15807
+ break;
15808
+ default:
15809
+ reader.skipField();
15810
+ break;
15811
+ }
15812
+ }
15813
+ return msg;
15814
+ };
15815
+
15816
+
15817
+ /**
15818
+ * Serializes the message to binary data (in protobuf wire format).
15819
+ * @return {!Uint8Array}
15820
+ */
15821
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.prototype.serializeBinary = function() {
15822
+ var writer = new jspb.BinaryWriter();
15823
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.serializeBinaryToWriter(this, writer);
15824
+ return writer.getResultBuffer();
15825
+ };
15826
+
15827
+
15828
+ /**
15829
+ * Serializes the given message to binary data (in protobuf wire
15830
+ * format), writing to the given BinaryWriter.
15831
+ * @param {!proto.gateway.web.v1.AuthorizeCliLoginResponse} message
15832
+ * @param {!jspb.BinaryWriter} writer
15833
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15834
+ */
15835
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.serializeBinaryToWriter = function(message, writer) {
15836
+ var f = undefined;
15837
+ f = message.getStatus();
15838
+ if (f != null) {
15839
+ writer.writeMessage(
15840
+ 1,
15841
+ f,
15842
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
15843
+ );
15844
+ }
15845
+ f = message.getCode();
15846
+ if (f.length > 0) {
15847
+ writer.writeString(
15848
+ 2,
15849
+ f
15850
+ );
15851
+ }
15852
+ f = message.getExpiresAt();
15853
+ if (f != null) {
15854
+ writer.writeMessage(
15855
+ 3,
15856
+ f,
15857
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
15858
+ );
15859
+ }
15860
+ };
15861
+
15862
+
15863
+ /**
15864
+ * optional gateway.common.v1.ResponseStatus status = 1;
15865
+ * @return {?proto.gateway.common.v1.ResponseStatus}
15866
+ */
15867
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.prototype.getStatus = function() {
15868
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
15869
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
15870
+ };
15871
+
15872
+
15873
+ /**
15874
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
15875
+ * @return {!proto.gateway.web.v1.AuthorizeCliLoginResponse} returns this
15876
+ */
15877
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.prototype.setStatus = function(value) {
15878
+ return jspb.Message.setWrapperField(this, 1, value);
15879
+ };
15880
+
15881
+
15882
+ /**
15883
+ * Clears the message field making it undefined.
15884
+ * @return {!proto.gateway.web.v1.AuthorizeCliLoginResponse} returns this
15885
+ */
15886
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.prototype.clearStatus = function() {
15887
+ return this.setStatus(undefined);
15888
+ };
15889
+
15890
+
15891
+ /**
15892
+ * Returns whether this field is set.
15893
+ * @return {boolean}
15894
+ */
15895
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.prototype.hasStatus = function() {
15896
+ return jspb.Message.getField(this, 1) != null;
15897
+ };
15898
+
15899
+
15900
+ /**
15901
+ * optional string code = 2;
15902
+ * @return {string}
15903
+ */
15904
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.prototype.getCode = function() {
15905
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
15906
+ };
15907
+
15908
+
15909
+ /**
15910
+ * @param {string} value
15911
+ * @return {!proto.gateway.web.v1.AuthorizeCliLoginResponse} returns this
15912
+ */
15913
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.prototype.setCode = function(value) {
15914
+ return jspb.Message.setProto3StringField(this, 2, value);
15915
+ };
15916
+
15917
+
15918
+ /**
15919
+ * optional google.protobuf.Timestamp expires_at = 3;
15920
+ * @return {?proto.google.protobuf.Timestamp}
15921
+ */
15922
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.prototype.getExpiresAt = function() {
15923
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
15924
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
15925
+ };
15926
+
15927
+
15928
+ /**
15929
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
15930
+ * @return {!proto.gateway.web.v1.AuthorizeCliLoginResponse} returns this
15931
+ */
15932
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.prototype.setExpiresAt = function(value) {
15933
+ return jspb.Message.setWrapperField(this, 3, value);
15934
+ };
15935
+
15936
+
15937
+ /**
15938
+ * Clears the message field making it undefined.
15939
+ * @return {!proto.gateway.web.v1.AuthorizeCliLoginResponse} returns this
15940
+ */
15941
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.prototype.clearExpiresAt = function() {
15942
+ return this.setExpiresAt(undefined);
15943
+ };
15944
+
15945
+
15946
+ /**
15947
+ * Returns whether this field is set.
15948
+ * @return {boolean}
15949
+ */
15950
+ proto.gateway.web.v1.AuthorizeCliLoginResponse.prototype.hasExpiresAt = function() {
15951
+ return jspb.Message.getField(this, 3) != null;
15952
+ };
15953
+
15954
+
15955
+
15956
+
15957
+
15958
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15959
+ /**
15960
+ * Creates an object representation of this proto.
15961
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15962
+ * Optional fields that are not set will be set to undefined.
15963
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15964
+ * For the list of reserved names please see:
15965
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15966
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15967
+ * JSPB instance for transitional soy proto support:
15968
+ * http://goto/soy-param-migration
15969
+ * @return {!Object}
15970
+ */
15971
+ proto.gateway.web.v1.ListCliSessionsRequest.prototype.toObject = function(opt_includeInstance) {
15972
+ return proto.gateway.web.v1.ListCliSessionsRequest.toObject(opt_includeInstance, this);
15973
+ };
15974
+
15975
+
15976
+ /**
15977
+ * Static version of the {@see toObject} method.
15978
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15979
+ * the JSPB instance for transitional soy proto support:
15980
+ * http://goto/soy-param-migration
15981
+ * @param {!proto.gateway.web.v1.ListCliSessionsRequest} msg The msg instance to transform.
15982
+ * @return {!Object}
15983
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15984
+ */
15985
+ proto.gateway.web.v1.ListCliSessionsRequest.toObject = function(includeInstance, msg) {
15986
+ var f, obj = {
15987
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, "")
15988
+ };
15989
+
15990
+ if (includeInstance) {
15991
+ obj.$jspbMessageInstance = msg;
15992
+ }
15993
+ return obj;
15994
+ };
15995
+ }
15996
+
15997
+
15998
+ /**
15999
+ * Deserializes binary data (in protobuf wire format).
16000
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16001
+ * @return {!proto.gateway.web.v1.ListCliSessionsRequest}
16002
+ */
16003
+ proto.gateway.web.v1.ListCliSessionsRequest.deserializeBinary = function(bytes) {
16004
+ var reader = new jspb.BinaryReader(bytes);
16005
+ var msg = new proto.gateway.web.v1.ListCliSessionsRequest;
16006
+ return proto.gateway.web.v1.ListCliSessionsRequest.deserializeBinaryFromReader(msg, reader);
16007
+ };
16008
+
16009
+
16010
+ /**
16011
+ * Deserializes binary data (in protobuf wire format) from the
16012
+ * given reader into the given message object.
16013
+ * @param {!proto.gateway.web.v1.ListCliSessionsRequest} msg The message object to deserialize into.
16014
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16015
+ * @return {!proto.gateway.web.v1.ListCliSessionsRequest}
16016
+ */
16017
+ proto.gateway.web.v1.ListCliSessionsRequest.deserializeBinaryFromReader = function(msg, reader) {
16018
+ while (reader.nextField()) {
16019
+ if (reader.isEndGroup()) {
16020
+ break;
16021
+ }
16022
+ var field = reader.getFieldNumber();
16023
+ switch (field) {
16024
+ case 1:
16025
+ var value = /** @type {string} */ (reader.readString());
16026
+ msg.setOrganizationId(value);
16027
+ break;
16028
+ default:
16029
+ reader.skipField();
16030
+ break;
16031
+ }
16032
+ }
16033
+ return msg;
16034
+ };
16035
+
16036
+
16037
+ /**
16038
+ * Serializes the message to binary data (in protobuf wire format).
16039
+ * @return {!Uint8Array}
16040
+ */
16041
+ proto.gateway.web.v1.ListCliSessionsRequest.prototype.serializeBinary = function() {
16042
+ var writer = new jspb.BinaryWriter();
16043
+ proto.gateway.web.v1.ListCliSessionsRequest.serializeBinaryToWriter(this, writer);
16044
+ return writer.getResultBuffer();
16045
+ };
16046
+
16047
+
16048
+ /**
16049
+ * Serializes the given message to binary data (in protobuf wire
16050
+ * format), writing to the given BinaryWriter.
16051
+ * @param {!proto.gateway.web.v1.ListCliSessionsRequest} message
16052
+ * @param {!jspb.BinaryWriter} writer
16053
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16054
+ */
16055
+ proto.gateway.web.v1.ListCliSessionsRequest.serializeBinaryToWriter = function(message, writer) {
16056
+ var f = undefined;
16057
+ f = message.getOrganizationId();
16058
+ if (f.length > 0) {
16059
+ writer.writeString(
16060
+ 1,
16061
+ f
16062
+ );
16063
+ }
16064
+ };
16065
+
16066
+
16067
+ /**
16068
+ * optional string organization_id = 1;
16069
+ * @return {string}
16070
+ */
16071
+ proto.gateway.web.v1.ListCliSessionsRequest.prototype.getOrganizationId = function() {
16072
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16073
+ };
16074
+
16075
+
16076
+ /**
16077
+ * @param {string} value
16078
+ * @return {!proto.gateway.web.v1.ListCliSessionsRequest} returns this
16079
+ */
16080
+ proto.gateway.web.v1.ListCliSessionsRequest.prototype.setOrganizationId = function(value) {
16081
+ return jspb.Message.setProto3StringField(this, 1, value);
16082
+ };
16083
+
16084
+
16085
+
16086
+ /**
16087
+ * List of repeated fields within this message type.
16088
+ * @private {!Array<number>}
16089
+ * @const
16090
+ */
16091
+ proto.gateway.web.v1.ListCliSessionsResponse.repeatedFields_ = [2];
16092
+
16093
+
16094
+
16095
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16096
+ /**
16097
+ * Creates an object representation of this proto.
16098
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16099
+ * Optional fields that are not set will be set to undefined.
16100
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16101
+ * For the list of reserved names please see:
16102
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16103
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16104
+ * JSPB instance for transitional soy proto support:
16105
+ * http://goto/soy-param-migration
16106
+ * @return {!Object}
16107
+ */
16108
+ proto.gateway.web.v1.ListCliSessionsResponse.prototype.toObject = function(opt_includeInstance) {
16109
+ return proto.gateway.web.v1.ListCliSessionsResponse.toObject(opt_includeInstance, this);
16110
+ };
16111
+
16112
+
16113
+ /**
16114
+ * Static version of the {@see toObject} method.
16115
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16116
+ * the JSPB instance for transitional soy proto support:
16117
+ * http://goto/soy-param-migration
16118
+ * @param {!proto.gateway.web.v1.ListCliSessionsResponse} msg The msg instance to transform.
16119
+ * @return {!Object}
16120
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16121
+ */
16122
+ proto.gateway.web.v1.ListCliSessionsResponse.toObject = function(includeInstance, msg) {
16123
+ var f, obj = {
16124
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
16125
+ sessionsList: jspb.Message.toObjectList(msg.getSessionsList(),
16126
+ proto.gateway.web.v1.CliSession.toObject, includeInstance)
16127
+ };
16128
+
16129
+ if (includeInstance) {
16130
+ obj.$jspbMessageInstance = msg;
16131
+ }
16132
+ return obj;
16133
+ };
16134
+ }
16135
+
16136
+
16137
+ /**
16138
+ * Deserializes binary data (in protobuf wire format).
16139
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16140
+ * @return {!proto.gateway.web.v1.ListCliSessionsResponse}
16141
+ */
16142
+ proto.gateway.web.v1.ListCliSessionsResponse.deserializeBinary = function(bytes) {
16143
+ var reader = new jspb.BinaryReader(bytes);
16144
+ var msg = new proto.gateway.web.v1.ListCliSessionsResponse;
16145
+ return proto.gateway.web.v1.ListCliSessionsResponse.deserializeBinaryFromReader(msg, reader);
16146
+ };
16147
+
16148
+
16149
+ /**
16150
+ * Deserializes binary data (in protobuf wire format) from the
16151
+ * given reader into the given message object.
16152
+ * @param {!proto.gateway.web.v1.ListCliSessionsResponse} msg The message object to deserialize into.
16153
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16154
+ * @return {!proto.gateway.web.v1.ListCliSessionsResponse}
16155
+ */
16156
+ proto.gateway.web.v1.ListCliSessionsResponse.deserializeBinaryFromReader = function(msg, reader) {
16157
+ while (reader.nextField()) {
16158
+ if (reader.isEndGroup()) {
16159
+ break;
16160
+ }
16161
+ var field = reader.getFieldNumber();
16162
+ switch (field) {
16163
+ case 1:
16164
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
16165
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
16166
+ msg.setStatus(value);
16167
+ break;
16168
+ case 2:
16169
+ var value = new proto.gateway.web.v1.CliSession;
16170
+ reader.readMessage(value,proto.gateway.web.v1.CliSession.deserializeBinaryFromReader);
16171
+ msg.addSessions(value);
16172
+ break;
16173
+ default:
16174
+ reader.skipField();
16175
+ break;
16176
+ }
16177
+ }
16178
+ return msg;
16179
+ };
16180
+
16181
+
16182
+ /**
16183
+ * Serializes the message to binary data (in protobuf wire format).
16184
+ * @return {!Uint8Array}
16185
+ */
16186
+ proto.gateway.web.v1.ListCliSessionsResponse.prototype.serializeBinary = function() {
16187
+ var writer = new jspb.BinaryWriter();
16188
+ proto.gateway.web.v1.ListCliSessionsResponse.serializeBinaryToWriter(this, writer);
16189
+ return writer.getResultBuffer();
16190
+ };
16191
+
16192
+
16193
+ /**
16194
+ * Serializes the given message to binary data (in protobuf wire
16195
+ * format), writing to the given BinaryWriter.
16196
+ * @param {!proto.gateway.web.v1.ListCliSessionsResponse} message
16197
+ * @param {!jspb.BinaryWriter} writer
16198
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16199
+ */
16200
+ proto.gateway.web.v1.ListCliSessionsResponse.serializeBinaryToWriter = function(message, writer) {
16201
+ var f = undefined;
16202
+ f = message.getStatus();
16203
+ if (f != null) {
16204
+ writer.writeMessage(
16205
+ 1,
16206
+ f,
16207
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
16208
+ );
16209
+ }
16210
+ f = message.getSessionsList();
16211
+ if (f.length > 0) {
16212
+ writer.writeRepeatedMessage(
16213
+ 2,
16214
+ f,
16215
+ proto.gateway.web.v1.CliSession.serializeBinaryToWriter
16216
+ );
16217
+ }
16218
+ };
16219
+
16220
+
16221
+ /**
16222
+ * optional gateway.common.v1.ResponseStatus status = 1;
16223
+ * @return {?proto.gateway.common.v1.ResponseStatus}
16224
+ */
16225
+ proto.gateway.web.v1.ListCliSessionsResponse.prototype.getStatus = function() {
16226
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
16227
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
16228
+ };
16229
+
16230
+
16231
+ /**
16232
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
16233
+ * @return {!proto.gateway.web.v1.ListCliSessionsResponse} returns this
16234
+ */
16235
+ proto.gateway.web.v1.ListCliSessionsResponse.prototype.setStatus = function(value) {
16236
+ return jspb.Message.setWrapperField(this, 1, value);
16237
+ };
16238
+
16239
+
16240
+ /**
16241
+ * Clears the message field making it undefined.
16242
+ * @return {!proto.gateway.web.v1.ListCliSessionsResponse} returns this
16243
+ */
16244
+ proto.gateway.web.v1.ListCliSessionsResponse.prototype.clearStatus = function() {
16245
+ return this.setStatus(undefined);
16246
+ };
16247
+
16248
+
16249
+ /**
16250
+ * Returns whether this field is set.
16251
+ * @return {boolean}
16252
+ */
16253
+ proto.gateway.web.v1.ListCliSessionsResponse.prototype.hasStatus = function() {
16254
+ return jspb.Message.getField(this, 1) != null;
16255
+ };
16256
+
16257
+
16258
+ /**
16259
+ * repeated CliSession sessions = 2;
16260
+ * @return {!Array<!proto.gateway.web.v1.CliSession>}
16261
+ */
16262
+ proto.gateway.web.v1.ListCliSessionsResponse.prototype.getSessionsList = function() {
16263
+ return /** @type{!Array<!proto.gateway.web.v1.CliSession>} */ (
16264
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.CliSession, 2));
16265
+ };
16266
+
16267
+
16268
+ /**
16269
+ * @param {!Array<!proto.gateway.web.v1.CliSession>} value
16270
+ * @return {!proto.gateway.web.v1.ListCliSessionsResponse} returns this
16271
+ */
16272
+ proto.gateway.web.v1.ListCliSessionsResponse.prototype.setSessionsList = function(value) {
16273
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
16274
+ };
16275
+
16276
+
16277
+ /**
16278
+ * @param {!proto.gateway.web.v1.CliSession=} opt_value
16279
+ * @param {number=} opt_index
16280
+ * @return {!proto.gateway.web.v1.CliSession}
16281
+ */
16282
+ proto.gateway.web.v1.ListCliSessionsResponse.prototype.addSessions = function(opt_value, opt_index) {
16283
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.CliSession, opt_index);
16284
+ };
16285
+
16286
+
16287
+ /**
16288
+ * Clears the list making it empty but non-null.
16289
+ * @return {!proto.gateway.web.v1.ListCliSessionsResponse} returns this
16290
+ */
16291
+ proto.gateway.web.v1.ListCliSessionsResponse.prototype.clearSessionsList = function() {
16292
+ return this.setSessionsList([]);
16293
+ };
16294
+
16295
+
16296
+
16297
+
16298
+
16299
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16300
+ /**
16301
+ * Creates an object representation of this proto.
16302
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16303
+ * Optional fields that are not set will be set to undefined.
16304
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16305
+ * For the list of reserved names please see:
16306
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16307
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16308
+ * JSPB instance for transitional soy proto support:
16309
+ * http://goto/soy-param-migration
16310
+ * @return {!Object}
16311
+ */
16312
+ proto.gateway.web.v1.CliSession.prototype.toObject = function(opt_includeInstance) {
16313
+ return proto.gateway.web.v1.CliSession.toObject(opt_includeInstance, this);
16314
+ };
16315
+
16316
+
16317
+ /**
16318
+ * Static version of the {@see toObject} method.
16319
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16320
+ * the JSPB instance for transitional soy proto support:
16321
+ * http://goto/soy-param-migration
16322
+ * @param {!proto.gateway.web.v1.CliSession} msg The msg instance to transform.
16323
+ * @return {!Object}
16324
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16325
+ */
16326
+ proto.gateway.web.v1.CliSession.toObject = function(includeInstance, msg) {
16327
+ var f, obj = {
16328
+ sessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
16329
+ label: jspb.Message.getFieldWithDefault(msg, 2, ""),
16330
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
16331
+ lastUsedAt: (f = msg.getLastUsedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
16332
+ expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
16333
+ };
16334
+
16335
+ if (includeInstance) {
16336
+ obj.$jspbMessageInstance = msg;
16337
+ }
16338
+ return obj;
16339
+ };
16340
+ }
16341
+
16342
+
16343
+ /**
16344
+ * Deserializes binary data (in protobuf wire format).
16345
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16346
+ * @return {!proto.gateway.web.v1.CliSession}
16347
+ */
16348
+ proto.gateway.web.v1.CliSession.deserializeBinary = function(bytes) {
16349
+ var reader = new jspb.BinaryReader(bytes);
16350
+ var msg = new proto.gateway.web.v1.CliSession;
16351
+ return proto.gateway.web.v1.CliSession.deserializeBinaryFromReader(msg, reader);
16352
+ };
16353
+
16354
+
16355
+ /**
16356
+ * Deserializes binary data (in protobuf wire format) from the
16357
+ * given reader into the given message object.
16358
+ * @param {!proto.gateway.web.v1.CliSession} msg The message object to deserialize into.
16359
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16360
+ * @return {!proto.gateway.web.v1.CliSession}
16361
+ */
16362
+ proto.gateway.web.v1.CliSession.deserializeBinaryFromReader = function(msg, reader) {
16363
+ while (reader.nextField()) {
16364
+ if (reader.isEndGroup()) {
16365
+ break;
16366
+ }
16367
+ var field = reader.getFieldNumber();
16368
+ switch (field) {
16369
+ case 1:
16370
+ var value = /** @type {string} */ (reader.readString());
16371
+ msg.setSessionId(value);
16372
+ break;
16373
+ case 2:
16374
+ var value = /** @type {string} */ (reader.readString());
16375
+ msg.setLabel(value);
16376
+ break;
16377
+ case 3:
16378
+ var value = new google_protobuf_timestamp_pb.Timestamp;
16379
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
16380
+ msg.setCreatedAt(value);
16381
+ break;
16382
+ case 4:
16383
+ var value = new google_protobuf_timestamp_pb.Timestamp;
16384
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
16385
+ msg.setLastUsedAt(value);
16386
+ break;
16387
+ case 5:
16388
+ var value = new google_protobuf_timestamp_pb.Timestamp;
16389
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
16390
+ msg.setExpiresAt(value);
16391
+ break;
16392
+ default:
16393
+ reader.skipField();
16394
+ break;
16395
+ }
16396
+ }
16397
+ return msg;
16398
+ };
16399
+
16400
+
16401
+ /**
16402
+ * Serializes the message to binary data (in protobuf wire format).
16403
+ * @return {!Uint8Array}
16404
+ */
16405
+ proto.gateway.web.v1.CliSession.prototype.serializeBinary = function() {
16406
+ var writer = new jspb.BinaryWriter();
16407
+ proto.gateway.web.v1.CliSession.serializeBinaryToWriter(this, writer);
16408
+ return writer.getResultBuffer();
16409
+ };
16410
+
16411
+
16412
+ /**
16413
+ * Serializes the given message to binary data (in protobuf wire
16414
+ * format), writing to the given BinaryWriter.
16415
+ * @param {!proto.gateway.web.v1.CliSession} message
16416
+ * @param {!jspb.BinaryWriter} writer
16417
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16418
+ */
16419
+ proto.gateway.web.v1.CliSession.serializeBinaryToWriter = function(message, writer) {
16420
+ var f = undefined;
16421
+ f = message.getSessionId();
16422
+ if (f.length > 0) {
16423
+ writer.writeString(
16424
+ 1,
16425
+ f
16426
+ );
16427
+ }
16428
+ f = message.getLabel();
16429
+ if (f.length > 0) {
16430
+ writer.writeString(
16431
+ 2,
16432
+ f
16433
+ );
16434
+ }
16435
+ f = message.getCreatedAt();
16436
+ if (f != null) {
16437
+ writer.writeMessage(
16438
+ 3,
16439
+ f,
16440
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
16441
+ );
16442
+ }
16443
+ f = message.getLastUsedAt();
16444
+ if (f != null) {
16445
+ writer.writeMessage(
16446
+ 4,
16447
+ f,
16448
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
16449
+ );
16450
+ }
16451
+ f = message.getExpiresAt();
16452
+ if (f != null) {
16453
+ writer.writeMessage(
16454
+ 5,
16455
+ f,
16456
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
16457
+ );
16458
+ }
16459
+ };
16460
+
16461
+
16462
+ /**
16463
+ * optional string session_id = 1;
16464
+ * @return {string}
16465
+ */
16466
+ proto.gateway.web.v1.CliSession.prototype.getSessionId = function() {
16467
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16468
+ };
16469
+
16470
+
16471
+ /**
16472
+ * @param {string} value
16473
+ * @return {!proto.gateway.web.v1.CliSession} returns this
16474
+ */
16475
+ proto.gateway.web.v1.CliSession.prototype.setSessionId = function(value) {
16476
+ return jspb.Message.setProto3StringField(this, 1, value);
16477
+ };
16478
+
16479
+
16480
+ /**
16481
+ * optional string label = 2;
16482
+ * @return {string}
16483
+ */
16484
+ proto.gateway.web.v1.CliSession.prototype.getLabel = function() {
16485
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
16486
+ };
16487
+
16488
+
16489
+ /**
16490
+ * @param {string} value
16491
+ * @return {!proto.gateway.web.v1.CliSession} returns this
16492
+ */
16493
+ proto.gateway.web.v1.CliSession.prototype.setLabel = function(value) {
16494
+ return jspb.Message.setProto3StringField(this, 2, value);
16495
+ };
16496
+
16497
+
16498
+ /**
16499
+ * optional google.protobuf.Timestamp created_at = 3;
16500
+ * @return {?proto.google.protobuf.Timestamp}
16501
+ */
16502
+ proto.gateway.web.v1.CliSession.prototype.getCreatedAt = function() {
16503
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
16504
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
16505
+ };
16506
+
16507
+
16508
+ /**
16509
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
16510
+ * @return {!proto.gateway.web.v1.CliSession} returns this
16511
+ */
16512
+ proto.gateway.web.v1.CliSession.prototype.setCreatedAt = function(value) {
16513
+ return jspb.Message.setWrapperField(this, 3, value);
16514
+ };
16515
+
16516
+
16517
+ /**
16518
+ * Clears the message field making it undefined.
16519
+ * @return {!proto.gateway.web.v1.CliSession} returns this
16520
+ */
16521
+ proto.gateway.web.v1.CliSession.prototype.clearCreatedAt = function() {
16522
+ return this.setCreatedAt(undefined);
16523
+ };
16524
+
16525
+
16526
+ /**
16527
+ * Returns whether this field is set.
16528
+ * @return {boolean}
16529
+ */
16530
+ proto.gateway.web.v1.CliSession.prototype.hasCreatedAt = function() {
16531
+ return jspb.Message.getField(this, 3) != null;
16532
+ };
16533
+
16534
+
16535
+ /**
16536
+ * optional google.protobuf.Timestamp last_used_at = 4;
16537
+ * @return {?proto.google.protobuf.Timestamp}
16538
+ */
16539
+ proto.gateway.web.v1.CliSession.prototype.getLastUsedAt = function() {
16540
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
16541
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
16542
+ };
16543
+
16544
+
16545
+ /**
16546
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
16547
+ * @return {!proto.gateway.web.v1.CliSession} returns this
16548
+ */
16549
+ proto.gateway.web.v1.CliSession.prototype.setLastUsedAt = function(value) {
16550
+ return jspb.Message.setWrapperField(this, 4, value);
16551
+ };
16552
+
16553
+
16554
+ /**
16555
+ * Clears the message field making it undefined.
16556
+ * @return {!proto.gateway.web.v1.CliSession} returns this
16557
+ */
16558
+ proto.gateway.web.v1.CliSession.prototype.clearLastUsedAt = function() {
16559
+ return this.setLastUsedAt(undefined);
16560
+ };
16561
+
16562
+
16563
+ /**
16564
+ * Returns whether this field is set.
16565
+ * @return {boolean}
16566
+ */
16567
+ proto.gateway.web.v1.CliSession.prototype.hasLastUsedAt = function() {
16568
+ return jspb.Message.getField(this, 4) != null;
16569
+ };
16570
+
16571
+
16572
+ /**
16573
+ * optional google.protobuf.Timestamp expires_at = 5;
16574
+ * @return {?proto.google.protobuf.Timestamp}
16575
+ */
16576
+ proto.gateway.web.v1.CliSession.prototype.getExpiresAt = function() {
16577
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
16578
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
16579
+ };
16580
+
16581
+
16582
+ /**
16583
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
16584
+ * @return {!proto.gateway.web.v1.CliSession} returns this
16585
+ */
16586
+ proto.gateway.web.v1.CliSession.prototype.setExpiresAt = function(value) {
16587
+ return jspb.Message.setWrapperField(this, 5, value);
16588
+ };
16589
+
16590
+
16591
+ /**
16592
+ * Clears the message field making it undefined.
16593
+ * @return {!proto.gateway.web.v1.CliSession} returns this
16594
+ */
16595
+ proto.gateway.web.v1.CliSession.prototype.clearExpiresAt = function() {
16596
+ return this.setExpiresAt(undefined);
16597
+ };
16598
+
16599
+
16600
+ /**
16601
+ * Returns whether this field is set.
16602
+ * @return {boolean}
16603
+ */
16604
+ proto.gateway.web.v1.CliSession.prototype.hasExpiresAt = function() {
16605
+ return jspb.Message.getField(this, 5) != null;
16606
+ };
16607
+
16608
+
16609
+
16610
+
16611
+
16612
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16613
+ /**
16614
+ * Creates an object representation of this proto.
16615
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16616
+ * Optional fields that are not set will be set to undefined.
16617
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16618
+ * For the list of reserved names please see:
16619
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16620
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16621
+ * JSPB instance for transitional soy proto support:
16622
+ * http://goto/soy-param-migration
16623
+ * @return {!Object}
16624
+ */
16625
+ proto.gateway.web.v1.RevokeCliSessionRequest.prototype.toObject = function(opt_includeInstance) {
16626
+ return proto.gateway.web.v1.RevokeCliSessionRequest.toObject(opt_includeInstance, this);
16627
+ };
16628
+
16629
+
16630
+ /**
16631
+ * Static version of the {@see toObject} method.
16632
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16633
+ * the JSPB instance for transitional soy proto support:
16634
+ * http://goto/soy-param-migration
16635
+ * @param {!proto.gateway.web.v1.RevokeCliSessionRequest} msg The msg instance to transform.
16636
+ * @return {!Object}
16637
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16638
+ */
16639
+ proto.gateway.web.v1.RevokeCliSessionRequest.toObject = function(includeInstance, msg) {
16640
+ var f, obj = {
16641
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
16642
+ sessionId: jspb.Message.getFieldWithDefault(msg, 2, "")
16643
+ };
16644
+
16645
+ if (includeInstance) {
16646
+ obj.$jspbMessageInstance = msg;
16647
+ }
16648
+ return obj;
16649
+ };
16650
+ }
16651
+
16652
+
16653
+ /**
16654
+ * Deserializes binary data (in protobuf wire format).
16655
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16656
+ * @return {!proto.gateway.web.v1.RevokeCliSessionRequest}
16657
+ */
16658
+ proto.gateway.web.v1.RevokeCliSessionRequest.deserializeBinary = function(bytes) {
16659
+ var reader = new jspb.BinaryReader(bytes);
16660
+ var msg = new proto.gateway.web.v1.RevokeCliSessionRequest;
16661
+ return proto.gateway.web.v1.RevokeCliSessionRequest.deserializeBinaryFromReader(msg, reader);
16662
+ };
16663
+
16664
+
16665
+ /**
16666
+ * Deserializes binary data (in protobuf wire format) from the
16667
+ * given reader into the given message object.
16668
+ * @param {!proto.gateway.web.v1.RevokeCliSessionRequest} msg The message object to deserialize into.
16669
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16670
+ * @return {!proto.gateway.web.v1.RevokeCliSessionRequest}
16671
+ */
16672
+ proto.gateway.web.v1.RevokeCliSessionRequest.deserializeBinaryFromReader = function(msg, reader) {
16673
+ while (reader.nextField()) {
16674
+ if (reader.isEndGroup()) {
16675
+ break;
16676
+ }
16677
+ var field = reader.getFieldNumber();
16678
+ switch (field) {
16679
+ case 1:
16680
+ var value = /** @type {string} */ (reader.readString());
16681
+ msg.setOrganizationId(value);
16682
+ break;
16683
+ case 2:
16684
+ var value = /** @type {string} */ (reader.readString());
16685
+ msg.setSessionId(value);
16686
+ break;
16687
+ default:
16688
+ reader.skipField();
16689
+ break;
16690
+ }
16691
+ }
16692
+ return msg;
16693
+ };
16694
+
16695
+
16696
+ /**
16697
+ * Serializes the message to binary data (in protobuf wire format).
16698
+ * @return {!Uint8Array}
16699
+ */
16700
+ proto.gateway.web.v1.RevokeCliSessionRequest.prototype.serializeBinary = function() {
16701
+ var writer = new jspb.BinaryWriter();
16702
+ proto.gateway.web.v1.RevokeCliSessionRequest.serializeBinaryToWriter(this, writer);
16703
+ return writer.getResultBuffer();
16704
+ };
16705
+
16706
+
16707
+ /**
16708
+ * Serializes the given message to binary data (in protobuf wire
16709
+ * format), writing to the given BinaryWriter.
16710
+ * @param {!proto.gateway.web.v1.RevokeCliSessionRequest} message
16711
+ * @param {!jspb.BinaryWriter} writer
16712
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16713
+ */
16714
+ proto.gateway.web.v1.RevokeCliSessionRequest.serializeBinaryToWriter = function(message, writer) {
16715
+ var f = undefined;
16716
+ f = message.getOrganizationId();
16717
+ if (f.length > 0) {
16718
+ writer.writeString(
16719
+ 1,
16720
+ f
16721
+ );
16722
+ }
16723
+ f = message.getSessionId();
16724
+ if (f.length > 0) {
16725
+ writer.writeString(
16726
+ 2,
16727
+ f
16728
+ );
16729
+ }
16730
+ };
16731
+
16732
+
16733
+ /**
16734
+ * optional string organization_id = 1;
16735
+ * @return {string}
16736
+ */
16737
+ proto.gateway.web.v1.RevokeCliSessionRequest.prototype.getOrganizationId = function() {
16738
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16739
+ };
16740
+
16741
+
16742
+ /**
16743
+ * @param {string} value
16744
+ * @return {!proto.gateway.web.v1.RevokeCliSessionRequest} returns this
16745
+ */
16746
+ proto.gateway.web.v1.RevokeCliSessionRequest.prototype.setOrganizationId = function(value) {
16747
+ return jspb.Message.setProto3StringField(this, 1, value);
16748
+ };
16749
+
16750
+
16751
+ /**
16752
+ * optional string session_id = 2;
16753
+ * @return {string}
16754
+ */
16755
+ proto.gateway.web.v1.RevokeCliSessionRequest.prototype.getSessionId = function() {
16756
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
16757
+ };
16758
+
16759
+
16760
+ /**
16761
+ * @param {string} value
16762
+ * @return {!proto.gateway.web.v1.RevokeCliSessionRequest} returns this
16763
+ */
16764
+ proto.gateway.web.v1.RevokeCliSessionRequest.prototype.setSessionId = function(value) {
16765
+ return jspb.Message.setProto3StringField(this, 2, value);
16766
+ };
16767
+
16768
+
16769
+
16770
+
16771
+
16772
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16773
+ /**
16774
+ * Creates an object representation of this proto.
16775
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16776
+ * Optional fields that are not set will be set to undefined.
16777
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16778
+ * For the list of reserved names please see:
16779
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16780
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16781
+ * JSPB instance for transitional soy proto support:
16782
+ * http://goto/soy-param-migration
16783
+ * @return {!Object}
16784
+ */
16785
+ proto.gateway.web.v1.RevokeCliSessionResponse.prototype.toObject = function(opt_includeInstance) {
16786
+ return proto.gateway.web.v1.RevokeCliSessionResponse.toObject(opt_includeInstance, this);
16787
+ };
16788
+
16789
+
16790
+ /**
16791
+ * Static version of the {@see toObject} method.
16792
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16793
+ * the JSPB instance for transitional soy proto support:
16794
+ * http://goto/soy-param-migration
16795
+ * @param {!proto.gateway.web.v1.RevokeCliSessionResponse} msg The msg instance to transform.
16796
+ * @return {!Object}
16797
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16798
+ */
16799
+ proto.gateway.web.v1.RevokeCliSessionResponse.toObject = function(includeInstance, msg) {
16800
+ var f, obj = {
16801
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
16802
+ };
16803
+
16804
+ if (includeInstance) {
16805
+ obj.$jspbMessageInstance = msg;
16806
+ }
16807
+ return obj;
16808
+ };
16809
+ }
16810
+
16811
+
16812
+ /**
16813
+ * Deserializes binary data (in protobuf wire format).
16814
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16815
+ * @return {!proto.gateway.web.v1.RevokeCliSessionResponse}
16816
+ */
16817
+ proto.gateway.web.v1.RevokeCliSessionResponse.deserializeBinary = function(bytes) {
16818
+ var reader = new jspb.BinaryReader(bytes);
16819
+ var msg = new proto.gateway.web.v1.RevokeCliSessionResponse;
16820
+ return proto.gateway.web.v1.RevokeCliSessionResponse.deserializeBinaryFromReader(msg, reader);
16821
+ };
16822
+
16823
+
16824
+ /**
16825
+ * Deserializes binary data (in protobuf wire format) from the
16826
+ * given reader into the given message object.
16827
+ * @param {!proto.gateway.web.v1.RevokeCliSessionResponse} msg The message object to deserialize into.
16828
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16829
+ * @return {!proto.gateway.web.v1.RevokeCliSessionResponse}
16830
+ */
16831
+ proto.gateway.web.v1.RevokeCliSessionResponse.deserializeBinaryFromReader = function(msg, reader) {
16832
+ while (reader.nextField()) {
16833
+ if (reader.isEndGroup()) {
16834
+ break;
16835
+ }
16836
+ var field = reader.getFieldNumber();
16837
+ switch (field) {
16838
+ case 1:
16839
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
16840
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
16841
+ msg.setStatus(value);
16842
+ break;
16843
+ default:
16844
+ reader.skipField();
16845
+ break;
16846
+ }
16847
+ }
16848
+ return msg;
16849
+ };
16850
+
16851
+
16852
+ /**
16853
+ * Serializes the message to binary data (in protobuf wire format).
16854
+ * @return {!Uint8Array}
16855
+ */
16856
+ proto.gateway.web.v1.RevokeCliSessionResponse.prototype.serializeBinary = function() {
16857
+ var writer = new jspb.BinaryWriter();
16858
+ proto.gateway.web.v1.RevokeCliSessionResponse.serializeBinaryToWriter(this, writer);
16859
+ return writer.getResultBuffer();
16860
+ };
16861
+
16862
+
16863
+ /**
16864
+ * Serializes the given message to binary data (in protobuf wire
16865
+ * format), writing to the given BinaryWriter.
16866
+ * @param {!proto.gateway.web.v1.RevokeCliSessionResponse} message
16867
+ * @param {!jspb.BinaryWriter} writer
16868
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16869
+ */
16870
+ proto.gateway.web.v1.RevokeCliSessionResponse.serializeBinaryToWriter = function(message, writer) {
16871
+ var f = undefined;
16872
+ f = message.getStatus();
16873
+ if (f != null) {
16874
+ writer.writeMessage(
16875
+ 1,
16876
+ f,
16877
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
16878
+ );
16879
+ }
16880
+ };
16881
+
16882
+
16883
+ /**
16884
+ * optional gateway.common.v1.ResponseStatus status = 1;
16885
+ * @return {?proto.gateway.common.v1.ResponseStatus}
16886
+ */
16887
+ proto.gateway.web.v1.RevokeCliSessionResponse.prototype.getStatus = function() {
16888
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
16889
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
16890
+ };
16891
+
16892
+
16893
+ /**
16894
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
16895
+ * @return {!proto.gateway.web.v1.RevokeCliSessionResponse} returns this
16896
+ */
16897
+ proto.gateway.web.v1.RevokeCliSessionResponse.prototype.setStatus = function(value) {
16898
+ return jspb.Message.setWrapperField(this, 1, value);
16899
+ };
16900
+
16901
+
16902
+ /**
16903
+ * Clears the message field making it undefined.
16904
+ * @return {!proto.gateway.web.v1.RevokeCliSessionResponse} returns this
16905
+ */
16906
+ proto.gateway.web.v1.RevokeCliSessionResponse.prototype.clearStatus = function() {
16907
+ return this.setStatus(undefined);
16908
+ };
16909
+
16910
+
16911
+ /**
16912
+ * Returns whether this field is set.
16913
+ * @return {boolean}
16914
+ */
16915
+ proto.gateway.web.v1.RevokeCliSessionResponse.prototype.hasStatus = function() {
16916
+ return jspb.Message.getField(this, 1) != null;
16917
+ };
16918
+
16919
+
15349
16920
  /**
15350
16921
  * @enum {number}
15351
16922
  */