@sniipwebmaster/email-import-service-client-grpcweb 0.2.1377 → 0.2.1394
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.
|
@@ -255,6 +255,61 @@ proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.getC
|
|
|
255
255
|
};
|
|
256
256
|
|
|
257
257
|
|
|
258
|
+
/**
|
|
259
|
+
* @const
|
|
260
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
261
|
+
* !proto.sniipemailimportapi.InitAuthorizationRequest,
|
|
262
|
+
* !proto.sniipemailimportapi.InitAuthResponse>}
|
|
263
|
+
*/
|
|
264
|
+
const methodInfo_SniipEmailImportAPIService_InitAuthorization = new grpc.web.AbstractClientBase.MethodInfo(
|
|
265
|
+
proto.sniipemailimportapi.InitAuthResponse,
|
|
266
|
+
/** @param {!proto.sniipemailimportapi.InitAuthorizationRequest} request */
|
|
267
|
+
function(request) {
|
|
268
|
+
return request.serializeBinary();
|
|
269
|
+
},
|
|
270
|
+
proto.sniipemailimportapi.InitAuthResponse.deserializeBinary
|
|
271
|
+
);
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* @param {!proto.sniipemailimportapi.InitAuthorizationRequest} request The
|
|
276
|
+
* request proto
|
|
277
|
+
* @param {?Object<string, string>} metadata User defined
|
|
278
|
+
* call metadata
|
|
279
|
+
* @param {function(?grpc.web.Error, ?proto.sniipemailimportapi.InitAuthResponse)}
|
|
280
|
+
* callback The callback function(error, response)
|
|
281
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniipemailimportapi.InitAuthResponse>|undefined}
|
|
282
|
+
* The XHR Node Readable Stream
|
|
283
|
+
*/
|
|
284
|
+
proto.sniipemailimportapi.SniipEmailImportAPIServiceClient.prototype.initAuthorization =
|
|
285
|
+
function(request, metadata, callback) {
|
|
286
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
287
|
+
'/sniipemailimportapi.SniipEmailImportAPIService/InitAuthorization',
|
|
288
|
+
request,
|
|
289
|
+
metadata || {},
|
|
290
|
+
methodInfo_SniipEmailImportAPIService_InitAuthorization,
|
|
291
|
+
callback);
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* @param {!proto.sniipemailimportapi.InitAuthorizationRequest} request The
|
|
297
|
+
* request proto
|
|
298
|
+
* @param {?Object<string, string>} metadata User defined
|
|
299
|
+
* call metadata
|
|
300
|
+
* @return {!Promise<!proto.sniipemailimportapi.InitAuthResponse>}
|
|
301
|
+
* A native promise that resolves to the response
|
|
302
|
+
*/
|
|
303
|
+
proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.initAuthorization =
|
|
304
|
+
function(request, metadata) {
|
|
305
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
306
|
+
'/sniipemailimportapi.SniipEmailImportAPIService/InitAuthorization',
|
|
307
|
+
request,
|
|
308
|
+
metadata || {},
|
|
309
|
+
methodInfo_SniipEmailImportAPIService_InitAuthorization);
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
|
|
258
313
|
/**
|
|
259
314
|
* @const
|
|
260
315
|
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
@@ -17,6 +17,9 @@ goog.exportSymbol('proto.sniipemailimportapi.AutomaticSyncRequest', null, global
|
|
|
17
17
|
goog.exportSymbol('proto.sniipemailimportapi.ConnectedEmail', null, global);
|
|
18
18
|
goog.exportSymbol('proto.sniipemailimportapi.EmailProviders', null, global);
|
|
19
19
|
goog.exportSymbol('proto.sniipemailimportapi.GetConnectedEmailsResponse', null, global);
|
|
20
|
+
goog.exportSymbol('proto.sniipemailimportapi.InitAuthRequest', null, global);
|
|
21
|
+
goog.exportSymbol('proto.sniipemailimportapi.InitAuthResponse', null, global);
|
|
22
|
+
goog.exportSymbol('proto.sniipemailimportapi.InitAuthorizationRequest', null, global);
|
|
20
23
|
goog.exportSymbol('proto.sniipemailimportapi.MakeAuthRequestRequest', null, global);
|
|
21
24
|
goog.exportSymbol('proto.sniipemailimportapi.ManuallySyncRequest', null, global);
|
|
22
25
|
goog.exportSymbol('proto.sniipemailimportapi.RefreshTokenRequest', null, global);
|
|
@@ -1525,6 +1528,573 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.setAussiesusingsn
|
|
|
1525
1528
|
|
|
1526
1529
|
|
|
1527
1530
|
|
|
1531
|
+
/**
|
|
1532
|
+
* Generated by JsPbCodeGenerator.
|
|
1533
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1534
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1535
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1536
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1537
|
+
* valid.
|
|
1538
|
+
* @extends {jspb.Message}
|
|
1539
|
+
* @constructor
|
|
1540
|
+
*/
|
|
1541
|
+
proto.sniipemailimportapi.InitAuthRequest = function(opt_data) {
|
|
1542
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1543
|
+
};
|
|
1544
|
+
goog.inherits(proto.sniipemailimportapi.InitAuthRequest, jspb.Message);
|
|
1545
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1546
|
+
proto.sniipemailimportapi.InitAuthRequest.displayName = 'proto.sniipemailimportapi.InitAuthRequest';
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1551
|
+
/**
|
|
1552
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1553
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1554
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1555
|
+
* For the list of reserved names please see:
|
|
1556
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1557
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1558
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1559
|
+
* @return {!Object}
|
|
1560
|
+
*/
|
|
1561
|
+
proto.sniipemailimportapi.InitAuthRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1562
|
+
return proto.sniipemailimportapi.InitAuthRequest.toObject(opt_includeInstance, this);
|
|
1563
|
+
};
|
|
1564
|
+
|
|
1565
|
+
|
|
1566
|
+
/**
|
|
1567
|
+
* Static version of the {@see toObject} method.
|
|
1568
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1569
|
+
* instance for transitional soy proto support:
|
|
1570
|
+
* http://goto/soy-param-migration
|
|
1571
|
+
* @param {!proto.sniipemailimportapi.InitAuthRequest} msg The msg instance to transform.
|
|
1572
|
+
* @return {!Object}
|
|
1573
|
+
*/
|
|
1574
|
+
proto.sniipemailimportapi.InitAuthRequest.toObject = function(includeInstance, msg) {
|
|
1575
|
+
var f, obj = {
|
|
1576
|
+
provider: msg.getProvider(),
|
|
1577
|
+
isreconnection: msg.getIsreconnection()
|
|
1578
|
+
};
|
|
1579
|
+
|
|
1580
|
+
if (includeInstance) {
|
|
1581
|
+
obj.$jspbMessageInstance = msg;
|
|
1582
|
+
}
|
|
1583
|
+
return obj;
|
|
1584
|
+
};
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
/**
|
|
1589
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1590
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1591
|
+
* @return {!proto.sniipemailimportapi.InitAuthRequest}
|
|
1592
|
+
*/
|
|
1593
|
+
proto.sniipemailimportapi.InitAuthRequest.deserializeBinary = function(bytes) {
|
|
1594
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1595
|
+
var msg = new proto.sniipemailimportapi.InitAuthRequest;
|
|
1596
|
+
return proto.sniipemailimportapi.InitAuthRequest.deserializeBinaryFromReader(msg, reader);
|
|
1597
|
+
};
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1602
|
+
* given reader into the given message object.
|
|
1603
|
+
* @param {!proto.sniipemailimportapi.InitAuthRequest} msg The message object to deserialize into.
|
|
1604
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1605
|
+
* @return {!proto.sniipemailimportapi.InitAuthRequest}
|
|
1606
|
+
*/
|
|
1607
|
+
proto.sniipemailimportapi.InitAuthRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1608
|
+
while (reader.nextField()) {
|
|
1609
|
+
if (reader.isEndGroup()) {
|
|
1610
|
+
break;
|
|
1611
|
+
}
|
|
1612
|
+
var field = reader.getFieldNumber();
|
|
1613
|
+
switch (field) {
|
|
1614
|
+
case 1:
|
|
1615
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1616
|
+
msg.setProvider(value);
|
|
1617
|
+
break;
|
|
1618
|
+
case 2:
|
|
1619
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1620
|
+
msg.setIsreconnection(value);
|
|
1621
|
+
break;
|
|
1622
|
+
default:
|
|
1623
|
+
reader.skipField();
|
|
1624
|
+
break;
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
return msg;
|
|
1628
|
+
};
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
/**
|
|
1632
|
+
* Class method variant: serializes the given message to binary data
|
|
1633
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1634
|
+
* @param {!proto.sniipemailimportapi.InitAuthRequest} message
|
|
1635
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1636
|
+
*/
|
|
1637
|
+
proto.sniipemailimportapi.InitAuthRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1638
|
+
message.serializeBinaryToWriter(writer);
|
|
1639
|
+
};
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
/**
|
|
1643
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1644
|
+
* @return {!Uint8Array}
|
|
1645
|
+
*/
|
|
1646
|
+
proto.sniipemailimportapi.InitAuthRequest.prototype.serializeBinary = function() {
|
|
1647
|
+
var writer = new jspb.BinaryWriter();
|
|
1648
|
+
this.serializeBinaryToWriter(writer);
|
|
1649
|
+
return writer.getResultBuffer();
|
|
1650
|
+
};
|
|
1651
|
+
|
|
1652
|
+
|
|
1653
|
+
/**
|
|
1654
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1655
|
+
* writing to the given BinaryWriter.
|
|
1656
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1657
|
+
*/
|
|
1658
|
+
proto.sniipemailimportapi.InitAuthRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
1659
|
+
var f = undefined;
|
|
1660
|
+
f = this.getProvider();
|
|
1661
|
+
if (f.length > 0) {
|
|
1662
|
+
writer.writeString(
|
|
1663
|
+
1,
|
|
1664
|
+
f
|
|
1665
|
+
);
|
|
1666
|
+
}
|
|
1667
|
+
f = this.getIsreconnection();
|
|
1668
|
+
if (f) {
|
|
1669
|
+
writer.writeBool(
|
|
1670
|
+
2,
|
|
1671
|
+
f
|
|
1672
|
+
);
|
|
1673
|
+
}
|
|
1674
|
+
};
|
|
1675
|
+
|
|
1676
|
+
|
|
1677
|
+
/**
|
|
1678
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1679
|
+
* @return {!proto.sniipemailimportapi.InitAuthRequest} The clone.
|
|
1680
|
+
*/
|
|
1681
|
+
proto.sniipemailimportapi.InitAuthRequest.prototype.cloneMessage = function() {
|
|
1682
|
+
return /** @type {!proto.sniipemailimportapi.InitAuthRequest} */ (jspb.Message.cloneMessage(this));
|
|
1683
|
+
};
|
|
1684
|
+
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* optional string provider = 1;
|
|
1688
|
+
* @return {string}
|
|
1689
|
+
*/
|
|
1690
|
+
proto.sniipemailimportapi.InitAuthRequest.prototype.getProvider = function() {
|
|
1691
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
|
|
1692
|
+
};
|
|
1693
|
+
|
|
1694
|
+
|
|
1695
|
+
/** @param {string} value */
|
|
1696
|
+
proto.sniipemailimportapi.InitAuthRequest.prototype.setProvider = function(value) {
|
|
1697
|
+
jspb.Message.setField(this, 1, value);
|
|
1698
|
+
};
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
/**
|
|
1702
|
+
* optional bool isReconnection = 2;
|
|
1703
|
+
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
|
1704
|
+
* You should avoid comparisons like {@code val === true/false} in those cases.
|
|
1705
|
+
* @return {boolean}
|
|
1706
|
+
*/
|
|
1707
|
+
proto.sniipemailimportapi.InitAuthRequest.prototype.getIsreconnection = function() {
|
|
1708
|
+
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 2, false));
|
|
1709
|
+
};
|
|
1710
|
+
|
|
1711
|
+
|
|
1712
|
+
/** @param {boolean} value */
|
|
1713
|
+
proto.sniipemailimportapi.InitAuthRequest.prototype.setIsreconnection = function(value) {
|
|
1714
|
+
jspb.Message.setField(this, 2, value);
|
|
1715
|
+
};
|
|
1716
|
+
|
|
1717
|
+
|
|
1718
|
+
|
|
1719
|
+
/**
|
|
1720
|
+
* Generated by JsPbCodeGenerator.
|
|
1721
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1722
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1723
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1724
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1725
|
+
* valid.
|
|
1726
|
+
* @extends {jspb.Message}
|
|
1727
|
+
* @constructor
|
|
1728
|
+
*/
|
|
1729
|
+
proto.sniipemailimportapi.InitAuthResponse = function(opt_data) {
|
|
1730
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1731
|
+
};
|
|
1732
|
+
goog.inherits(proto.sniipemailimportapi.InitAuthResponse, jspb.Message);
|
|
1733
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1734
|
+
proto.sniipemailimportapi.InitAuthResponse.displayName = 'proto.sniipemailimportapi.InitAuthResponse';
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1739
|
+
/**
|
|
1740
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1741
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1742
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1743
|
+
* For the list of reserved names please see:
|
|
1744
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1745
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1746
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1747
|
+
* @return {!Object}
|
|
1748
|
+
*/
|
|
1749
|
+
proto.sniipemailimportapi.InitAuthResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1750
|
+
return proto.sniipemailimportapi.InitAuthResponse.toObject(opt_includeInstance, this);
|
|
1751
|
+
};
|
|
1752
|
+
|
|
1753
|
+
|
|
1754
|
+
/**
|
|
1755
|
+
* Static version of the {@see toObject} method.
|
|
1756
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1757
|
+
* instance for transitional soy proto support:
|
|
1758
|
+
* http://goto/soy-param-migration
|
|
1759
|
+
* @param {!proto.sniipemailimportapi.InitAuthResponse} msg The msg instance to transform.
|
|
1760
|
+
* @return {!Object}
|
|
1761
|
+
*/
|
|
1762
|
+
proto.sniipemailimportapi.InitAuthResponse.toObject = function(includeInstance, msg) {
|
|
1763
|
+
var f, obj = {
|
|
1764
|
+
responsecode: (f = msg.getResponsecode()) && proto.sniipemailimportapi.ResponseCode.toObject(includeInstance, f),
|
|
1765
|
+
authorizationurl: msg.getAuthorizationurl()
|
|
1766
|
+
};
|
|
1767
|
+
|
|
1768
|
+
if (includeInstance) {
|
|
1769
|
+
obj.$jspbMessageInstance = msg;
|
|
1770
|
+
}
|
|
1771
|
+
return obj;
|
|
1772
|
+
};
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
|
|
1776
|
+
/**
|
|
1777
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1778
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1779
|
+
* @return {!proto.sniipemailimportapi.InitAuthResponse}
|
|
1780
|
+
*/
|
|
1781
|
+
proto.sniipemailimportapi.InitAuthResponse.deserializeBinary = function(bytes) {
|
|
1782
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1783
|
+
var msg = new proto.sniipemailimportapi.InitAuthResponse;
|
|
1784
|
+
return proto.sniipemailimportapi.InitAuthResponse.deserializeBinaryFromReader(msg, reader);
|
|
1785
|
+
};
|
|
1786
|
+
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1790
|
+
* given reader into the given message object.
|
|
1791
|
+
* @param {!proto.sniipemailimportapi.InitAuthResponse} msg The message object to deserialize into.
|
|
1792
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1793
|
+
* @return {!proto.sniipemailimportapi.InitAuthResponse}
|
|
1794
|
+
*/
|
|
1795
|
+
proto.sniipemailimportapi.InitAuthResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1796
|
+
while (reader.nextField()) {
|
|
1797
|
+
if (reader.isEndGroup()) {
|
|
1798
|
+
break;
|
|
1799
|
+
}
|
|
1800
|
+
var field = reader.getFieldNumber();
|
|
1801
|
+
switch (field) {
|
|
1802
|
+
case 1:
|
|
1803
|
+
var value = new proto.sniipemailimportapi.ResponseCode;
|
|
1804
|
+
reader.readMessage(value,proto.sniipemailimportapi.ResponseCode.deserializeBinaryFromReader);
|
|
1805
|
+
msg.setResponsecode(value);
|
|
1806
|
+
break;
|
|
1807
|
+
case 2:
|
|
1808
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1809
|
+
msg.setAuthorizationurl(value);
|
|
1810
|
+
break;
|
|
1811
|
+
default:
|
|
1812
|
+
reader.skipField();
|
|
1813
|
+
break;
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
return msg;
|
|
1817
|
+
};
|
|
1818
|
+
|
|
1819
|
+
|
|
1820
|
+
/**
|
|
1821
|
+
* Class method variant: serializes the given message to binary data
|
|
1822
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1823
|
+
* @param {!proto.sniipemailimportapi.InitAuthResponse} message
|
|
1824
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1825
|
+
*/
|
|
1826
|
+
proto.sniipemailimportapi.InitAuthResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1827
|
+
message.serializeBinaryToWriter(writer);
|
|
1828
|
+
};
|
|
1829
|
+
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1833
|
+
* @return {!Uint8Array}
|
|
1834
|
+
*/
|
|
1835
|
+
proto.sniipemailimportapi.InitAuthResponse.prototype.serializeBinary = function() {
|
|
1836
|
+
var writer = new jspb.BinaryWriter();
|
|
1837
|
+
this.serializeBinaryToWriter(writer);
|
|
1838
|
+
return writer.getResultBuffer();
|
|
1839
|
+
};
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
/**
|
|
1843
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1844
|
+
* writing to the given BinaryWriter.
|
|
1845
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1846
|
+
*/
|
|
1847
|
+
proto.sniipemailimportapi.InitAuthResponse.prototype.serializeBinaryToWriter = function (writer) {
|
|
1848
|
+
var f = undefined;
|
|
1849
|
+
f = this.getResponsecode();
|
|
1850
|
+
if (f != null) {
|
|
1851
|
+
writer.writeMessage(
|
|
1852
|
+
1,
|
|
1853
|
+
f,
|
|
1854
|
+
proto.sniipemailimportapi.ResponseCode.serializeBinaryToWriter
|
|
1855
|
+
);
|
|
1856
|
+
}
|
|
1857
|
+
f = this.getAuthorizationurl();
|
|
1858
|
+
if (f.length > 0) {
|
|
1859
|
+
writer.writeString(
|
|
1860
|
+
2,
|
|
1861
|
+
f
|
|
1862
|
+
);
|
|
1863
|
+
}
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
/**
|
|
1868
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1869
|
+
* @return {!proto.sniipemailimportapi.InitAuthResponse} The clone.
|
|
1870
|
+
*/
|
|
1871
|
+
proto.sniipemailimportapi.InitAuthResponse.prototype.cloneMessage = function() {
|
|
1872
|
+
return /** @type {!proto.sniipemailimportapi.InitAuthResponse} */ (jspb.Message.cloneMessage(this));
|
|
1873
|
+
};
|
|
1874
|
+
|
|
1875
|
+
|
|
1876
|
+
/**
|
|
1877
|
+
* optional ResponseCode responseCode = 1;
|
|
1878
|
+
* @return {proto.sniipemailimportapi.ResponseCode}
|
|
1879
|
+
*/
|
|
1880
|
+
proto.sniipemailimportapi.InitAuthResponse.prototype.getResponsecode = function() {
|
|
1881
|
+
return /** @type{proto.sniipemailimportapi.ResponseCode} */ (
|
|
1882
|
+
jspb.Message.getWrapperField(this, proto.sniipemailimportapi.ResponseCode, 1));
|
|
1883
|
+
};
|
|
1884
|
+
|
|
1885
|
+
|
|
1886
|
+
/** @param {proto.sniipemailimportapi.ResponseCode|undefined} value */
|
|
1887
|
+
proto.sniipemailimportapi.InitAuthResponse.prototype.setResponsecode = function(value) {
|
|
1888
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
1889
|
+
};
|
|
1890
|
+
|
|
1891
|
+
|
|
1892
|
+
proto.sniipemailimportapi.InitAuthResponse.prototype.clearResponsecode = function() {
|
|
1893
|
+
this.setResponsecode(undefined);
|
|
1894
|
+
};
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
/**
|
|
1898
|
+
* Returns whether this field is set.
|
|
1899
|
+
* @return{!boolean}
|
|
1900
|
+
*/
|
|
1901
|
+
proto.sniipemailimportapi.InitAuthResponse.prototype.hasResponsecode = function() {
|
|
1902
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1903
|
+
};
|
|
1904
|
+
|
|
1905
|
+
|
|
1906
|
+
/**
|
|
1907
|
+
* optional string authorizationUrl = 2;
|
|
1908
|
+
* @return {string}
|
|
1909
|
+
*/
|
|
1910
|
+
proto.sniipemailimportapi.InitAuthResponse.prototype.getAuthorizationurl = function() {
|
|
1911
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
1912
|
+
};
|
|
1913
|
+
|
|
1914
|
+
|
|
1915
|
+
/** @param {string} value */
|
|
1916
|
+
proto.sniipemailimportapi.InitAuthResponse.prototype.setAuthorizationurl = function(value) {
|
|
1917
|
+
jspb.Message.setField(this, 2, value);
|
|
1918
|
+
};
|
|
1919
|
+
|
|
1920
|
+
|
|
1921
|
+
|
|
1922
|
+
/**
|
|
1923
|
+
* Generated by JsPbCodeGenerator.
|
|
1924
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1925
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1926
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1927
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1928
|
+
* valid.
|
|
1929
|
+
* @extends {jspb.Message}
|
|
1930
|
+
* @constructor
|
|
1931
|
+
*/
|
|
1932
|
+
proto.sniipemailimportapi.InitAuthorizationRequest = function(opt_data) {
|
|
1933
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1934
|
+
};
|
|
1935
|
+
goog.inherits(proto.sniipemailimportapi.InitAuthorizationRequest, jspb.Message);
|
|
1936
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1937
|
+
proto.sniipemailimportapi.InitAuthorizationRequest.displayName = 'proto.sniipemailimportapi.InitAuthorizationRequest';
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
|
|
1941
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1942
|
+
/**
|
|
1943
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1944
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1945
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1946
|
+
* For the list of reserved names please see:
|
|
1947
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1948
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1949
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1950
|
+
* @return {!Object}
|
|
1951
|
+
*/
|
|
1952
|
+
proto.sniipemailimportapi.InitAuthorizationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1953
|
+
return proto.sniipemailimportapi.InitAuthorizationRequest.toObject(opt_includeInstance, this);
|
|
1954
|
+
};
|
|
1955
|
+
|
|
1956
|
+
|
|
1957
|
+
/**
|
|
1958
|
+
* Static version of the {@see toObject} method.
|
|
1959
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1960
|
+
* instance for transitional soy proto support:
|
|
1961
|
+
* http://goto/soy-param-migration
|
|
1962
|
+
* @param {!proto.sniipemailimportapi.InitAuthorizationRequest} msg The msg instance to transform.
|
|
1963
|
+
* @return {!Object}
|
|
1964
|
+
*/
|
|
1965
|
+
proto.sniipemailimportapi.InitAuthorizationRequest.toObject = function(includeInstance, msg) {
|
|
1966
|
+
var f, obj = {
|
|
1967
|
+
data: (f = msg.getData()) && proto.sniipemailimportapi.InitAuthRequest.toObject(includeInstance, f)
|
|
1968
|
+
};
|
|
1969
|
+
|
|
1970
|
+
if (includeInstance) {
|
|
1971
|
+
obj.$jspbMessageInstance = msg;
|
|
1972
|
+
}
|
|
1973
|
+
return obj;
|
|
1974
|
+
};
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
|
|
1978
|
+
/**
|
|
1979
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1980
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1981
|
+
* @return {!proto.sniipemailimportapi.InitAuthorizationRequest}
|
|
1982
|
+
*/
|
|
1983
|
+
proto.sniipemailimportapi.InitAuthorizationRequest.deserializeBinary = function(bytes) {
|
|
1984
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1985
|
+
var msg = new proto.sniipemailimportapi.InitAuthorizationRequest;
|
|
1986
|
+
return proto.sniipemailimportapi.InitAuthorizationRequest.deserializeBinaryFromReader(msg, reader);
|
|
1987
|
+
};
|
|
1988
|
+
|
|
1989
|
+
|
|
1990
|
+
/**
|
|
1991
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1992
|
+
* given reader into the given message object.
|
|
1993
|
+
* @param {!proto.sniipemailimportapi.InitAuthorizationRequest} msg The message object to deserialize into.
|
|
1994
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1995
|
+
* @return {!proto.sniipemailimportapi.InitAuthorizationRequest}
|
|
1996
|
+
*/
|
|
1997
|
+
proto.sniipemailimportapi.InitAuthorizationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1998
|
+
while (reader.nextField()) {
|
|
1999
|
+
if (reader.isEndGroup()) {
|
|
2000
|
+
break;
|
|
2001
|
+
}
|
|
2002
|
+
var field = reader.getFieldNumber();
|
|
2003
|
+
switch (field) {
|
|
2004
|
+
case 1:
|
|
2005
|
+
var value = new proto.sniipemailimportapi.InitAuthRequest;
|
|
2006
|
+
reader.readMessage(value,proto.sniipemailimportapi.InitAuthRequest.deserializeBinaryFromReader);
|
|
2007
|
+
msg.setData(value);
|
|
2008
|
+
break;
|
|
2009
|
+
default:
|
|
2010
|
+
reader.skipField();
|
|
2011
|
+
break;
|
|
2012
|
+
}
|
|
2013
|
+
}
|
|
2014
|
+
return msg;
|
|
2015
|
+
};
|
|
2016
|
+
|
|
2017
|
+
|
|
2018
|
+
/**
|
|
2019
|
+
* Class method variant: serializes the given message to binary data
|
|
2020
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
2021
|
+
* @param {!proto.sniipemailimportapi.InitAuthorizationRequest} message
|
|
2022
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2023
|
+
*/
|
|
2024
|
+
proto.sniipemailimportapi.InitAuthorizationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2025
|
+
message.serializeBinaryToWriter(writer);
|
|
2026
|
+
};
|
|
2027
|
+
|
|
2028
|
+
|
|
2029
|
+
/**
|
|
2030
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2031
|
+
* @return {!Uint8Array}
|
|
2032
|
+
*/
|
|
2033
|
+
proto.sniipemailimportapi.InitAuthorizationRequest.prototype.serializeBinary = function() {
|
|
2034
|
+
var writer = new jspb.BinaryWriter();
|
|
2035
|
+
this.serializeBinaryToWriter(writer);
|
|
2036
|
+
return writer.getResultBuffer();
|
|
2037
|
+
};
|
|
2038
|
+
|
|
2039
|
+
|
|
2040
|
+
/**
|
|
2041
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
2042
|
+
* writing to the given BinaryWriter.
|
|
2043
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2044
|
+
*/
|
|
2045
|
+
proto.sniipemailimportapi.InitAuthorizationRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
2046
|
+
var f = undefined;
|
|
2047
|
+
f = this.getData();
|
|
2048
|
+
if (f != null) {
|
|
2049
|
+
writer.writeMessage(
|
|
2050
|
+
1,
|
|
2051
|
+
f,
|
|
2052
|
+
proto.sniipemailimportapi.InitAuthRequest.serializeBinaryToWriter
|
|
2053
|
+
);
|
|
2054
|
+
}
|
|
2055
|
+
};
|
|
2056
|
+
|
|
2057
|
+
|
|
2058
|
+
/**
|
|
2059
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
2060
|
+
* @return {!proto.sniipemailimportapi.InitAuthorizationRequest} The clone.
|
|
2061
|
+
*/
|
|
2062
|
+
proto.sniipemailimportapi.InitAuthorizationRequest.prototype.cloneMessage = function() {
|
|
2063
|
+
return /** @type {!proto.sniipemailimportapi.InitAuthorizationRequest} */ (jspb.Message.cloneMessage(this));
|
|
2064
|
+
};
|
|
2065
|
+
|
|
2066
|
+
|
|
2067
|
+
/**
|
|
2068
|
+
* optional InitAuthRequest data = 1;
|
|
2069
|
+
* @return {proto.sniipemailimportapi.InitAuthRequest}
|
|
2070
|
+
*/
|
|
2071
|
+
proto.sniipemailimportapi.InitAuthorizationRequest.prototype.getData = function() {
|
|
2072
|
+
return /** @type{proto.sniipemailimportapi.InitAuthRequest} */ (
|
|
2073
|
+
jspb.Message.getWrapperField(this, proto.sniipemailimportapi.InitAuthRequest, 1));
|
|
2074
|
+
};
|
|
2075
|
+
|
|
2076
|
+
|
|
2077
|
+
/** @param {proto.sniipemailimportapi.InitAuthRequest|undefined} value */
|
|
2078
|
+
proto.sniipemailimportapi.InitAuthorizationRequest.prototype.setData = function(value) {
|
|
2079
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
2080
|
+
};
|
|
2081
|
+
|
|
2082
|
+
|
|
2083
|
+
proto.sniipemailimportapi.InitAuthorizationRequest.prototype.clearData = function() {
|
|
2084
|
+
this.setData(undefined);
|
|
2085
|
+
};
|
|
2086
|
+
|
|
2087
|
+
|
|
2088
|
+
/**
|
|
2089
|
+
* Returns whether this field is set.
|
|
2090
|
+
* @return{!boolean}
|
|
2091
|
+
*/
|
|
2092
|
+
proto.sniipemailimportapi.InitAuthorizationRequest.prototype.hasData = function() {
|
|
2093
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2094
|
+
};
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
|
|
1528
2098
|
/**
|
|
1529
2099
|
* Generated by JsPbCodeGenerator.
|
|
1530
2100
|
* @param {Array=} opt_data Optional initial data array, typically from a
|