@miradorlabs/web-grpc 4.38.0 → 4.39.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.
@@ -25,6 +25,10 @@ goog.exportSymbol('proto.gateway.web.v1.AuthorizeDesktopFreshSessionRequest', nu
25
25
  goog.exportSymbol('proto.gateway.web.v1.AuthorizeDesktopFreshSessionResponse', null, global);
26
26
  goog.exportSymbol('proto.gateway.web.v1.AuthorizeDesktopLoginRequest', null, global);
27
27
  goog.exportSymbol('proto.gateway.web.v1.AuthorizeDesktopLoginResponse', null, global);
28
+ goog.exportSymbol('proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest', null, global);
29
+ goog.exportSymbol('proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse', null, global);
30
+ goog.exportSymbol('proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest', null, global);
31
+ goog.exportSymbol('proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse', null, global);
28
32
  goog.exportSymbol('proto.gateway.web.v1.RevokeCliSessionFamilyRequest', null, global);
29
33
  goog.exportSymbol('proto.gateway.web.v1.RevokeCliSessionFamilyResponse', null, global);
30
34
  /**
@@ -153,6 +157,90 @@ if (goog.DEBUG && !COMPILED) {
153
157
  */
154
158
  proto.gateway.web.v1.RevokeCliSessionFamilyResponse.displayName = 'proto.gateway.web.v1.RevokeCliSessionFamilyResponse';
155
159
  }
160
+ /**
161
+ * Generated by JsPbCodeGenerator.
162
+ * @param {Array=} opt_data Optional initial data array, typically from a
163
+ * server response, or constructed directly in Javascript. The array is used
164
+ * in place and becomes part of the constructed object. It is not cloned.
165
+ * If no data is provided, the constructed object will be empty, but still
166
+ * valid.
167
+ * @extends {jspb.Message}
168
+ * @constructor
169
+ */
170
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest = function(opt_data) {
171
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
172
+ };
173
+ goog.inherits(proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest, jspb.Message);
174
+ if (goog.DEBUG && !COMPILED) {
175
+ /**
176
+ * @public
177
+ * @override
178
+ */
179
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest.displayName = 'proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest';
180
+ }
181
+ /**
182
+ * Generated by JsPbCodeGenerator.
183
+ * @param {Array=} opt_data Optional initial data array, typically from a
184
+ * server response, or constructed directly in Javascript. The array is used
185
+ * in place and becomes part of the constructed object. It is not cloned.
186
+ * If no data is provided, the constructed object will be empty, but still
187
+ * valid.
188
+ * @extends {jspb.Message}
189
+ * @constructor
190
+ */
191
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse = function(opt_data) {
192
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
193
+ };
194
+ goog.inherits(proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse, jspb.Message);
195
+ if (goog.DEBUG && !COMPILED) {
196
+ /**
197
+ * @public
198
+ * @override
199
+ */
200
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.displayName = 'proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse';
201
+ }
202
+ /**
203
+ * Generated by JsPbCodeGenerator.
204
+ * @param {Array=} opt_data Optional initial data array, typically from a
205
+ * server response, or constructed directly in Javascript. The array is used
206
+ * in place and becomes part of the constructed object. It is not cloned.
207
+ * If no data is provided, the constructed object will be empty, but still
208
+ * valid.
209
+ * @extends {jspb.Message}
210
+ * @constructor
211
+ */
212
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest = function(opt_data) {
213
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
214
+ };
215
+ goog.inherits(proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest, jspb.Message);
216
+ if (goog.DEBUG && !COMPILED) {
217
+ /**
218
+ * @public
219
+ * @override
220
+ */
221
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest.displayName = 'proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest';
222
+ }
223
+ /**
224
+ * Generated by JsPbCodeGenerator.
225
+ * @param {Array=} opt_data Optional initial data array, typically from a
226
+ * server response, or constructed directly in Javascript. The array is used
227
+ * in place and becomes part of the constructed object. It is not cloned.
228
+ * If no data is provided, the constructed object will be empty, but still
229
+ * valid.
230
+ * @extends {jspb.Message}
231
+ * @constructor
232
+ */
233
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse = function(opt_data) {
234
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
235
+ };
236
+ goog.inherits(proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse, jspb.Message);
237
+ if (goog.DEBUG && !COMPILED) {
238
+ /**
239
+ * @public
240
+ * @override
241
+ */
242
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.displayName = 'proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse';
243
+ }
156
244
 
157
245
 
158
246
 
@@ -1338,4 +1426,848 @@ proto.gateway.web.v1.RevokeCliSessionFamilyResponse.prototype.hasStatus = functi
1338
1426
  };
1339
1427
 
1340
1428
 
1429
+
1430
+
1431
+
1432
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1433
+ /**
1434
+ * Creates an object representation of this proto.
1435
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1436
+ * Optional fields that are not set will be set to undefined.
1437
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1438
+ * For the list of reserved names please see:
1439
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1440
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1441
+ * JSPB instance for transitional soy proto support:
1442
+ * http://goto/soy-param-migration
1443
+ * @return {!Object}
1444
+ */
1445
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest.prototype.toObject = function(opt_includeInstance) {
1446
+ return proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest.toObject(opt_includeInstance, this);
1447
+ };
1448
+
1449
+
1450
+ /**
1451
+ * Static version of the {@see toObject} method.
1452
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1453
+ * the JSPB instance for transitional soy proto support:
1454
+ * http://goto/soy-param-migration
1455
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest} msg The msg instance to transform.
1456
+ * @return {!Object}
1457
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1458
+ */
1459
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest.toObject = function(includeInstance, msg) {
1460
+ var f, obj = {
1461
+ codeChallenge: jspb.Message.getFieldWithDefault(msg, 1, ""),
1462
+ redirectPort: jspb.Message.getFieldWithDefault(msg, 2, 0),
1463
+ label: jspb.Message.getFieldWithDefault(msg, 3, "")
1464
+ };
1465
+
1466
+ if (includeInstance) {
1467
+ obj.$jspbMessageInstance = msg;
1468
+ }
1469
+ return obj;
1470
+ };
1471
+ }
1472
+
1473
+
1474
+ /**
1475
+ * Deserializes binary data (in protobuf wire format).
1476
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
1477
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest}
1478
+ */
1479
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest.deserializeBinary = function(bytes) {
1480
+ var reader = new jspb.BinaryReader(bytes);
1481
+ var msg = new proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest;
1482
+ return proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest.deserializeBinaryFromReader(msg, reader);
1483
+ };
1484
+
1485
+
1486
+ /**
1487
+ * Deserializes binary data (in protobuf wire format) from the
1488
+ * given reader into the given message object.
1489
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest} msg The message object to deserialize into.
1490
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1491
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest}
1492
+ */
1493
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest.deserializeBinaryFromReader = function(msg, reader) {
1494
+ while (reader.nextField()) {
1495
+ if (reader.isEndGroup()) {
1496
+ break;
1497
+ }
1498
+ var field = reader.getFieldNumber();
1499
+ switch (field) {
1500
+ case 1:
1501
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1502
+ msg.setCodeChallenge(value);
1503
+ break;
1504
+ case 2:
1505
+ var value = /** @type {number} */ (reader.readInt32());
1506
+ msg.setRedirectPort(value);
1507
+ break;
1508
+ case 3:
1509
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1510
+ msg.setLabel(value);
1511
+ break;
1512
+ default:
1513
+ reader.skipField();
1514
+ break;
1515
+ }
1516
+ }
1517
+ return msg;
1518
+ };
1519
+
1520
+
1521
+ /**
1522
+ * Serializes the message to binary data (in protobuf wire format).
1523
+ * @return {!Uint8Array}
1524
+ */
1525
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest.prototype.serializeBinary = function() {
1526
+ var writer = new jspb.BinaryWriter();
1527
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest.serializeBinaryToWriter(this, writer);
1528
+ return writer.getResultBuffer();
1529
+ };
1530
+
1531
+
1532
+ /**
1533
+ * Serializes the given message to binary data (in protobuf wire
1534
+ * format), writing to the given BinaryWriter.
1535
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest} message
1536
+ * @param {!jspb.BinaryWriter} writer
1537
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1538
+ */
1539
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest.serializeBinaryToWriter = function(message, writer) {
1540
+ var f = undefined;
1541
+ f = message.getCodeChallenge();
1542
+ if (f.length > 0) {
1543
+ writer.writeString(
1544
+ 1,
1545
+ f
1546
+ );
1547
+ }
1548
+ f = message.getRedirectPort();
1549
+ if (f !== 0) {
1550
+ writer.writeInt32(
1551
+ 2,
1552
+ f
1553
+ );
1554
+ }
1555
+ f = message.getLabel();
1556
+ if (f.length > 0) {
1557
+ writer.writeString(
1558
+ 3,
1559
+ f
1560
+ );
1561
+ }
1562
+ };
1563
+
1564
+
1565
+ /**
1566
+ * optional string code_challenge = 1;
1567
+ * @return {string}
1568
+ */
1569
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest.prototype.getCodeChallenge = function() {
1570
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1571
+ };
1572
+
1573
+
1574
+ /**
1575
+ * @param {string} value
1576
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest} returns this
1577
+ */
1578
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest.prototype.setCodeChallenge = function(value) {
1579
+ return jspb.Message.setProto3StringField(this, 1, value);
1580
+ };
1581
+
1582
+
1583
+ /**
1584
+ * optional int32 redirect_port = 2;
1585
+ * @return {number}
1586
+ */
1587
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest.prototype.getRedirectPort = function() {
1588
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1589
+ };
1590
+
1591
+
1592
+ /**
1593
+ * @param {number} value
1594
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest} returns this
1595
+ */
1596
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest.prototype.setRedirectPort = function(value) {
1597
+ return jspb.Message.setProto3IntField(this, 2, value);
1598
+ };
1599
+
1600
+
1601
+ /**
1602
+ * optional string label = 3;
1603
+ * @return {string}
1604
+ */
1605
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest.prototype.getLabel = function() {
1606
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1607
+ };
1608
+
1609
+
1610
+ /**
1611
+ * @param {string} value
1612
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest} returns this
1613
+ */
1614
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginRequest.prototype.setLabel = function(value) {
1615
+ return jspb.Message.setProto3StringField(this, 3, value);
1616
+ };
1617
+
1618
+
1619
+
1620
+
1621
+
1622
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1623
+ /**
1624
+ * Creates an object representation of this proto.
1625
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1626
+ * Optional fields that are not set will be set to undefined.
1627
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1628
+ * For the list of reserved names please see:
1629
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1630
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1631
+ * JSPB instance for transitional soy proto support:
1632
+ * http://goto/soy-param-migration
1633
+ * @return {!Object}
1634
+ */
1635
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.prototype.toObject = function(opt_includeInstance) {
1636
+ return proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.toObject(opt_includeInstance, this);
1637
+ };
1638
+
1639
+
1640
+ /**
1641
+ * Static version of the {@see toObject} method.
1642
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1643
+ * the JSPB instance for transitional soy proto support:
1644
+ * http://goto/soy-param-migration
1645
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse} msg The msg instance to transform.
1646
+ * @return {!Object}
1647
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1648
+ */
1649
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.toObject = function(includeInstance, msg) {
1650
+ var f, obj = {
1651
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
1652
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
1653
+ expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1654
+ };
1655
+
1656
+ if (includeInstance) {
1657
+ obj.$jspbMessageInstance = msg;
1658
+ }
1659
+ return obj;
1660
+ };
1661
+ }
1662
+
1663
+
1664
+ /**
1665
+ * Deserializes binary data (in protobuf wire format).
1666
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
1667
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse}
1668
+ */
1669
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.deserializeBinary = function(bytes) {
1670
+ var reader = new jspb.BinaryReader(bytes);
1671
+ var msg = new proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse;
1672
+ return proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.deserializeBinaryFromReader(msg, reader);
1673
+ };
1674
+
1675
+
1676
+ /**
1677
+ * Deserializes binary data (in protobuf wire format) from the
1678
+ * given reader into the given message object.
1679
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse} msg The message object to deserialize into.
1680
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1681
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse}
1682
+ */
1683
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.deserializeBinaryFromReader = function(msg, reader) {
1684
+ while (reader.nextField()) {
1685
+ if (reader.isEndGroup()) {
1686
+ break;
1687
+ }
1688
+ var field = reader.getFieldNumber();
1689
+ switch (field) {
1690
+ case 1:
1691
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
1692
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
1693
+ msg.setStatus(value);
1694
+ break;
1695
+ case 2:
1696
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1697
+ msg.setCode(value);
1698
+ break;
1699
+ case 3:
1700
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1701
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1702
+ msg.setExpiresAt(value);
1703
+ break;
1704
+ default:
1705
+ reader.skipField();
1706
+ break;
1707
+ }
1708
+ }
1709
+ return msg;
1710
+ };
1711
+
1712
+
1713
+ /**
1714
+ * Serializes the message to binary data (in protobuf wire format).
1715
+ * @return {!Uint8Array}
1716
+ */
1717
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.prototype.serializeBinary = function() {
1718
+ var writer = new jspb.BinaryWriter();
1719
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.serializeBinaryToWriter(this, writer);
1720
+ return writer.getResultBuffer();
1721
+ };
1722
+
1723
+
1724
+ /**
1725
+ * Serializes the given message to binary data (in protobuf wire
1726
+ * format), writing to the given BinaryWriter.
1727
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse} message
1728
+ * @param {!jspb.BinaryWriter} writer
1729
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1730
+ */
1731
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.serializeBinaryToWriter = function(message, writer) {
1732
+ var f = undefined;
1733
+ f = message.getStatus();
1734
+ if (f != null) {
1735
+ writer.writeMessage(
1736
+ 1,
1737
+ f,
1738
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
1739
+ );
1740
+ }
1741
+ f = message.getCode();
1742
+ if (f.length > 0) {
1743
+ writer.writeString(
1744
+ 2,
1745
+ f
1746
+ );
1747
+ }
1748
+ f = message.getExpiresAt();
1749
+ if (f != null) {
1750
+ writer.writeMessage(
1751
+ 3,
1752
+ f,
1753
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1754
+ );
1755
+ }
1756
+ };
1757
+
1758
+
1759
+ /**
1760
+ * optional gateway.common.v1.ResponseStatus status = 1;
1761
+ * @return {?proto.gateway.common.v1.ResponseStatus}
1762
+ */
1763
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.prototype.getStatus = function() {
1764
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
1765
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
1766
+ };
1767
+
1768
+
1769
+ /**
1770
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
1771
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse} returns this
1772
+ */
1773
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.prototype.setStatus = function(value) {
1774
+ return jspb.Message.setWrapperField(this, 1, value);
1775
+ };
1776
+
1777
+
1778
+ /**
1779
+ * Clears the message field making it undefined.
1780
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse} returns this
1781
+ */
1782
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.prototype.clearStatus = function() {
1783
+ return this.setStatus(undefined);
1784
+ };
1785
+
1786
+
1787
+ /**
1788
+ * Returns whether this field is set.
1789
+ * @return {boolean}
1790
+ */
1791
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.prototype.hasStatus = function() {
1792
+ return jspb.Message.getField(this, 1) != null;
1793
+ };
1794
+
1795
+
1796
+ /**
1797
+ * optional string code = 2;
1798
+ * @return {string}
1799
+ */
1800
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.prototype.getCode = function() {
1801
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1802
+ };
1803
+
1804
+
1805
+ /**
1806
+ * @param {string} value
1807
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse} returns this
1808
+ */
1809
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.prototype.setCode = function(value) {
1810
+ return jspb.Message.setProto3StringField(this, 2, value);
1811
+ };
1812
+
1813
+
1814
+ /**
1815
+ * optional google.protobuf.Timestamp expires_at = 3;
1816
+ * @return {?proto.google.protobuf.Timestamp}
1817
+ */
1818
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.prototype.getExpiresAt = function() {
1819
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1820
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
1821
+ };
1822
+
1823
+
1824
+ /**
1825
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1826
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse} returns this
1827
+ */
1828
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.prototype.setExpiresAt = function(value) {
1829
+ return jspb.Message.setWrapperField(this, 3, value);
1830
+ };
1831
+
1832
+
1833
+ /**
1834
+ * Clears the message field making it undefined.
1835
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse} returns this
1836
+ */
1837
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.prototype.clearExpiresAt = function() {
1838
+ return this.setExpiresAt(undefined);
1839
+ };
1840
+
1841
+
1842
+ /**
1843
+ * Returns whether this field is set.
1844
+ * @return {boolean}
1845
+ */
1846
+ proto.gateway.web.v1.AuthorizeDesktopUserLoginResponse.prototype.hasExpiresAt = function() {
1847
+ return jspb.Message.getField(this, 3) != null;
1848
+ };
1849
+
1850
+
1851
+
1852
+
1853
+
1854
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1855
+ /**
1856
+ * Creates an object representation of this proto.
1857
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1858
+ * Optional fields that are not set will be set to undefined.
1859
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1860
+ * For the list of reserved names please see:
1861
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1862
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1863
+ * JSPB instance for transitional soy proto support:
1864
+ * http://goto/soy-param-migration
1865
+ * @return {!Object}
1866
+ */
1867
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest.prototype.toObject = function(opt_includeInstance) {
1868
+ return proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest.toObject(opt_includeInstance, this);
1869
+ };
1870
+
1871
+
1872
+ /**
1873
+ * Static version of the {@see toObject} method.
1874
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1875
+ * the JSPB instance for transitional soy proto support:
1876
+ * http://goto/soy-param-migration
1877
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest} msg The msg instance to transform.
1878
+ * @return {!Object}
1879
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1880
+ */
1881
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest.toObject = function(includeInstance, msg) {
1882
+ var f, obj = {
1883
+ codeChallenge: jspb.Message.getFieldWithDefault(msg, 1, ""),
1884
+ redirectPort: jspb.Message.getFieldWithDefault(msg, 2, 0),
1885
+ label: jspb.Message.getFieldWithDefault(msg, 3, "")
1886
+ };
1887
+
1888
+ if (includeInstance) {
1889
+ obj.$jspbMessageInstance = msg;
1890
+ }
1891
+ return obj;
1892
+ };
1893
+ }
1894
+
1895
+
1896
+ /**
1897
+ * Deserializes binary data (in protobuf wire format).
1898
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
1899
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest}
1900
+ */
1901
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest.deserializeBinary = function(bytes) {
1902
+ var reader = new jspb.BinaryReader(bytes);
1903
+ var msg = new proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest;
1904
+ return proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest.deserializeBinaryFromReader(msg, reader);
1905
+ };
1906
+
1907
+
1908
+ /**
1909
+ * Deserializes binary data (in protobuf wire format) from the
1910
+ * given reader into the given message object.
1911
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest} msg The message object to deserialize into.
1912
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1913
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest}
1914
+ */
1915
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest.deserializeBinaryFromReader = function(msg, reader) {
1916
+ while (reader.nextField()) {
1917
+ if (reader.isEndGroup()) {
1918
+ break;
1919
+ }
1920
+ var field = reader.getFieldNumber();
1921
+ switch (field) {
1922
+ case 1:
1923
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1924
+ msg.setCodeChallenge(value);
1925
+ break;
1926
+ case 2:
1927
+ var value = /** @type {number} */ (reader.readInt32());
1928
+ msg.setRedirectPort(value);
1929
+ break;
1930
+ case 3:
1931
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1932
+ msg.setLabel(value);
1933
+ break;
1934
+ default:
1935
+ reader.skipField();
1936
+ break;
1937
+ }
1938
+ }
1939
+ return msg;
1940
+ };
1941
+
1942
+
1943
+ /**
1944
+ * Serializes the message to binary data (in protobuf wire format).
1945
+ * @return {!Uint8Array}
1946
+ */
1947
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest.prototype.serializeBinary = function() {
1948
+ var writer = new jspb.BinaryWriter();
1949
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest.serializeBinaryToWriter(this, writer);
1950
+ return writer.getResultBuffer();
1951
+ };
1952
+
1953
+
1954
+ /**
1955
+ * Serializes the given message to binary data (in protobuf wire
1956
+ * format), writing to the given BinaryWriter.
1957
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest} message
1958
+ * @param {!jspb.BinaryWriter} writer
1959
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1960
+ */
1961
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest.serializeBinaryToWriter = function(message, writer) {
1962
+ var f = undefined;
1963
+ f = message.getCodeChallenge();
1964
+ if (f.length > 0) {
1965
+ writer.writeString(
1966
+ 1,
1967
+ f
1968
+ );
1969
+ }
1970
+ f = message.getRedirectPort();
1971
+ if (f !== 0) {
1972
+ writer.writeInt32(
1973
+ 2,
1974
+ f
1975
+ );
1976
+ }
1977
+ f = message.getLabel();
1978
+ if (f.length > 0) {
1979
+ writer.writeString(
1980
+ 3,
1981
+ f
1982
+ );
1983
+ }
1984
+ };
1985
+
1986
+
1987
+ /**
1988
+ * optional string code_challenge = 1;
1989
+ * @return {string}
1990
+ */
1991
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest.prototype.getCodeChallenge = function() {
1992
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1993
+ };
1994
+
1995
+
1996
+ /**
1997
+ * @param {string} value
1998
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest} returns this
1999
+ */
2000
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest.prototype.setCodeChallenge = function(value) {
2001
+ return jspb.Message.setProto3StringField(this, 1, value);
2002
+ };
2003
+
2004
+
2005
+ /**
2006
+ * optional int32 redirect_port = 2;
2007
+ * @return {number}
2008
+ */
2009
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest.prototype.getRedirectPort = function() {
2010
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2011
+ };
2012
+
2013
+
2014
+ /**
2015
+ * @param {number} value
2016
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest} returns this
2017
+ */
2018
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest.prototype.setRedirectPort = function(value) {
2019
+ return jspb.Message.setProto3IntField(this, 2, value);
2020
+ };
2021
+
2022
+
2023
+ /**
2024
+ * optional string label = 3;
2025
+ * @return {string}
2026
+ */
2027
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest.prototype.getLabel = function() {
2028
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2029
+ };
2030
+
2031
+
2032
+ /**
2033
+ * @param {string} value
2034
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest} returns this
2035
+ */
2036
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionRequest.prototype.setLabel = function(value) {
2037
+ return jspb.Message.setProto3StringField(this, 3, value);
2038
+ };
2039
+
2040
+
2041
+
2042
+
2043
+
2044
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2045
+ /**
2046
+ * Creates an object representation of this proto.
2047
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2048
+ * Optional fields that are not set will be set to undefined.
2049
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2050
+ * For the list of reserved names please see:
2051
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2052
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2053
+ * JSPB instance for transitional soy proto support:
2054
+ * http://goto/soy-param-migration
2055
+ * @return {!Object}
2056
+ */
2057
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.prototype.toObject = function(opt_includeInstance) {
2058
+ return proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.toObject(opt_includeInstance, this);
2059
+ };
2060
+
2061
+
2062
+ /**
2063
+ * Static version of the {@see toObject} method.
2064
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2065
+ * the JSPB instance for transitional soy proto support:
2066
+ * http://goto/soy-param-migration
2067
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse} msg The msg instance to transform.
2068
+ * @return {!Object}
2069
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2070
+ */
2071
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.toObject = function(includeInstance, msg) {
2072
+ var f, obj = {
2073
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
2074
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
2075
+ expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
2076
+ };
2077
+
2078
+ if (includeInstance) {
2079
+ obj.$jspbMessageInstance = msg;
2080
+ }
2081
+ return obj;
2082
+ };
2083
+ }
2084
+
2085
+
2086
+ /**
2087
+ * Deserializes binary data (in protobuf wire format).
2088
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
2089
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse}
2090
+ */
2091
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.deserializeBinary = function(bytes) {
2092
+ var reader = new jspb.BinaryReader(bytes);
2093
+ var msg = new proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse;
2094
+ return proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.deserializeBinaryFromReader(msg, reader);
2095
+ };
2096
+
2097
+
2098
+ /**
2099
+ * Deserializes binary data (in protobuf wire format) from the
2100
+ * given reader into the given message object.
2101
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse} msg The message object to deserialize into.
2102
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2103
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse}
2104
+ */
2105
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.deserializeBinaryFromReader = function(msg, reader) {
2106
+ while (reader.nextField()) {
2107
+ if (reader.isEndGroup()) {
2108
+ break;
2109
+ }
2110
+ var field = reader.getFieldNumber();
2111
+ switch (field) {
2112
+ case 1:
2113
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
2114
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
2115
+ msg.setStatus(value);
2116
+ break;
2117
+ case 2:
2118
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2119
+ msg.setCode(value);
2120
+ break;
2121
+ case 3:
2122
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2123
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2124
+ msg.setExpiresAt(value);
2125
+ break;
2126
+ default:
2127
+ reader.skipField();
2128
+ break;
2129
+ }
2130
+ }
2131
+ return msg;
2132
+ };
2133
+
2134
+
2135
+ /**
2136
+ * Serializes the message to binary data (in protobuf wire format).
2137
+ * @return {!Uint8Array}
2138
+ */
2139
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.prototype.serializeBinary = function() {
2140
+ var writer = new jspb.BinaryWriter();
2141
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.serializeBinaryToWriter(this, writer);
2142
+ return writer.getResultBuffer();
2143
+ };
2144
+
2145
+
2146
+ /**
2147
+ * Serializes the given message to binary data (in protobuf wire
2148
+ * format), writing to the given BinaryWriter.
2149
+ * @param {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse} message
2150
+ * @param {!jspb.BinaryWriter} writer
2151
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2152
+ */
2153
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.serializeBinaryToWriter = function(message, writer) {
2154
+ var f = undefined;
2155
+ f = message.getStatus();
2156
+ if (f != null) {
2157
+ writer.writeMessage(
2158
+ 1,
2159
+ f,
2160
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
2161
+ );
2162
+ }
2163
+ f = message.getCode();
2164
+ if (f.length > 0) {
2165
+ writer.writeString(
2166
+ 2,
2167
+ f
2168
+ );
2169
+ }
2170
+ f = message.getExpiresAt();
2171
+ if (f != null) {
2172
+ writer.writeMessage(
2173
+ 3,
2174
+ f,
2175
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2176
+ );
2177
+ }
2178
+ };
2179
+
2180
+
2181
+ /**
2182
+ * optional gateway.common.v1.ResponseStatus status = 1;
2183
+ * @return {?proto.gateway.common.v1.ResponseStatus}
2184
+ */
2185
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.prototype.getStatus = function() {
2186
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
2187
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
2188
+ };
2189
+
2190
+
2191
+ /**
2192
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
2193
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse} returns this
2194
+ */
2195
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.prototype.setStatus = function(value) {
2196
+ return jspb.Message.setWrapperField(this, 1, value);
2197
+ };
2198
+
2199
+
2200
+ /**
2201
+ * Clears the message field making it undefined.
2202
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse} returns this
2203
+ */
2204
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.prototype.clearStatus = function() {
2205
+ return this.setStatus(undefined);
2206
+ };
2207
+
2208
+
2209
+ /**
2210
+ * Returns whether this field is set.
2211
+ * @return {boolean}
2212
+ */
2213
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.prototype.hasStatus = function() {
2214
+ return jspb.Message.getField(this, 1) != null;
2215
+ };
2216
+
2217
+
2218
+ /**
2219
+ * optional string code = 2;
2220
+ * @return {string}
2221
+ */
2222
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.prototype.getCode = function() {
2223
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2224
+ };
2225
+
2226
+
2227
+ /**
2228
+ * @param {string} value
2229
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse} returns this
2230
+ */
2231
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.prototype.setCode = function(value) {
2232
+ return jspb.Message.setProto3StringField(this, 2, value);
2233
+ };
2234
+
2235
+
2236
+ /**
2237
+ * optional google.protobuf.Timestamp expires_at = 3;
2238
+ * @return {?proto.google.protobuf.Timestamp}
2239
+ */
2240
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.prototype.getExpiresAt = function() {
2241
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2242
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
2243
+ };
2244
+
2245
+
2246
+ /**
2247
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2248
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse} returns this
2249
+ */
2250
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.prototype.setExpiresAt = function(value) {
2251
+ return jspb.Message.setWrapperField(this, 3, value);
2252
+ };
2253
+
2254
+
2255
+ /**
2256
+ * Clears the message field making it undefined.
2257
+ * @return {!proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse} returns this
2258
+ */
2259
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.prototype.clearExpiresAt = function() {
2260
+ return this.setExpiresAt(undefined);
2261
+ };
2262
+
2263
+
2264
+ /**
2265
+ * Returns whether this field is set.
2266
+ * @return {boolean}
2267
+ */
2268
+ proto.gateway.web.v1.AuthorizeDesktopUserFreshSessionResponse.prototype.hasExpiresAt = function() {
2269
+ return jspb.Message.getField(this, 3) != null;
2270
+ };
2271
+
2272
+
1341
2273
  goog.object.extend(exports, proto.gateway.web.v1);