@sniipwebmaster/email-import-service-client-grpcweb 0.2.845 → 0.2.865
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.
|
@@ -365,6 +365,61 @@ proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.manu
|
|
|
365
365
|
};
|
|
366
366
|
|
|
367
367
|
|
|
368
|
+
/**
|
|
369
|
+
* @const
|
|
370
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
371
|
+
* !proto.sniipemailimportapi.RefreshTokenRequest,
|
|
372
|
+
* !proto.sniipemailimportapi.TokenRefreshResponse>}
|
|
373
|
+
*/
|
|
374
|
+
const methodInfo_SniipEmailImportAPIService_RefreshToken = new grpc.web.AbstractClientBase.MethodInfo(
|
|
375
|
+
proto.sniipemailimportapi.TokenRefreshResponse,
|
|
376
|
+
/** @param {!proto.sniipemailimportapi.RefreshTokenRequest} request */
|
|
377
|
+
function(request) {
|
|
378
|
+
return request.serializeBinary();
|
|
379
|
+
},
|
|
380
|
+
proto.sniipemailimportapi.TokenRefreshResponse.deserializeBinary
|
|
381
|
+
);
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* @param {!proto.sniipemailimportapi.RefreshTokenRequest} request The
|
|
386
|
+
* request proto
|
|
387
|
+
* @param {?Object<string, string>} metadata User defined
|
|
388
|
+
* call metadata
|
|
389
|
+
* @param {function(?grpc.web.Error, ?proto.sniipemailimportapi.TokenRefreshResponse)}
|
|
390
|
+
* callback The callback function(error, response)
|
|
391
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniipemailimportapi.TokenRefreshResponse>|undefined}
|
|
392
|
+
* The XHR Node Readable Stream
|
|
393
|
+
*/
|
|
394
|
+
proto.sniipemailimportapi.SniipEmailImportAPIServiceClient.prototype.refreshToken =
|
|
395
|
+
function(request, metadata, callback) {
|
|
396
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
397
|
+
'/sniipemailimportapi.SniipEmailImportAPIService/RefreshToken',
|
|
398
|
+
request,
|
|
399
|
+
metadata || {},
|
|
400
|
+
methodInfo_SniipEmailImportAPIService_RefreshToken,
|
|
401
|
+
callback);
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* @param {!proto.sniipemailimportapi.RefreshTokenRequest} request The
|
|
407
|
+
* request proto
|
|
408
|
+
* @param {?Object<string, string>} metadata User defined
|
|
409
|
+
* call metadata
|
|
410
|
+
* @return {!Promise<!proto.sniipemailimportapi.TokenRefreshResponse>}
|
|
411
|
+
* A native promise that resolves to the response
|
|
412
|
+
*/
|
|
413
|
+
proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.refreshToken =
|
|
414
|
+
function(request, metadata) {
|
|
415
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
416
|
+
'/sniipemailimportapi.SniipEmailImportAPIService/RefreshToken',
|
|
417
|
+
request,
|
|
418
|
+
metadata || {},
|
|
419
|
+
methodInfo_SniipEmailImportAPIService_RefreshToken);
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
|
|
368
423
|
/**
|
|
369
424
|
* @const
|
|
370
425
|
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
@@ -18,9 +18,12 @@ 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
20
|
goog.exportSymbol('proto.sniipemailimportapi.MakeAuthRequestRequest', null, global);
|
|
21
|
+
goog.exportSymbol('proto.sniipemailimportapi.RefreshTokenRequest', null, global);
|
|
21
22
|
goog.exportSymbol('proto.sniipemailimportapi.RemoveTokenRequest', null, global);
|
|
22
23
|
goog.exportSymbol('proto.sniipemailimportapi.ResponseCode', null, global);
|
|
23
24
|
goog.exportSymbol('proto.sniipemailimportapi.RevokeRequest', null, global);
|
|
25
|
+
goog.exportSymbol('proto.sniipemailimportapi.TokenRefreshRequest', null, global);
|
|
26
|
+
goog.exportSymbol('proto.sniipemailimportapi.TokenRefreshResponse', null, global);
|
|
24
27
|
goog.exportSymbol('proto.sniipemailimportapi.UpdateAutomaticSyncRequest', null, global);
|
|
25
28
|
|
|
26
29
|
/**
|
|
@@ -1609,6 +1612,182 @@ proto.sniipemailimportapi.MakeAuthRequestRequest.prototype.hasData = function()
|
|
|
1609
1612
|
|
|
1610
1613
|
|
|
1611
1614
|
|
|
1615
|
+
/**
|
|
1616
|
+
* Generated by JsPbCodeGenerator.
|
|
1617
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1618
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1619
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1620
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1621
|
+
* valid.
|
|
1622
|
+
* @extends {jspb.Message}
|
|
1623
|
+
* @constructor
|
|
1624
|
+
*/
|
|
1625
|
+
proto.sniipemailimportapi.RefreshTokenRequest = function(opt_data) {
|
|
1626
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1627
|
+
};
|
|
1628
|
+
goog.inherits(proto.sniipemailimportapi.RefreshTokenRequest, jspb.Message);
|
|
1629
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1630
|
+
proto.sniipemailimportapi.RefreshTokenRequest.displayName = 'proto.sniipemailimportapi.RefreshTokenRequest';
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
|
|
1634
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1635
|
+
/**
|
|
1636
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1637
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1638
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1639
|
+
* For the list of reserved names please see:
|
|
1640
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1641
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1642
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1643
|
+
* @return {!Object}
|
|
1644
|
+
*/
|
|
1645
|
+
proto.sniipemailimportapi.RefreshTokenRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1646
|
+
return proto.sniipemailimportapi.RefreshTokenRequest.toObject(opt_includeInstance, this);
|
|
1647
|
+
};
|
|
1648
|
+
|
|
1649
|
+
|
|
1650
|
+
/**
|
|
1651
|
+
* Static version of the {@see toObject} method.
|
|
1652
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1653
|
+
* instance for transitional soy proto support:
|
|
1654
|
+
* http://goto/soy-param-migration
|
|
1655
|
+
* @param {!proto.sniipemailimportapi.RefreshTokenRequest} msg The msg instance to transform.
|
|
1656
|
+
* @return {!Object}
|
|
1657
|
+
*/
|
|
1658
|
+
proto.sniipemailimportapi.RefreshTokenRequest.toObject = function(includeInstance, msg) {
|
|
1659
|
+
var f, obj = {
|
|
1660
|
+
data: (f = msg.getData()) && proto.sniipemailimportapi.TokenRefreshRequest.toObject(includeInstance, f)
|
|
1661
|
+
};
|
|
1662
|
+
|
|
1663
|
+
if (includeInstance) {
|
|
1664
|
+
obj.$jspbMessageInstance = msg;
|
|
1665
|
+
}
|
|
1666
|
+
return obj;
|
|
1667
|
+
};
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1673
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1674
|
+
* @return {!proto.sniipemailimportapi.RefreshTokenRequest}
|
|
1675
|
+
*/
|
|
1676
|
+
proto.sniipemailimportapi.RefreshTokenRequest.deserializeBinary = function(bytes) {
|
|
1677
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1678
|
+
var msg = new proto.sniipemailimportapi.RefreshTokenRequest;
|
|
1679
|
+
return proto.sniipemailimportapi.RefreshTokenRequest.deserializeBinaryFromReader(msg, reader);
|
|
1680
|
+
};
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
/**
|
|
1684
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1685
|
+
* given reader into the given message object.
|
|
1686
|
+
* @param {!proto.sniipemailimportapi.RefreshTokenRequest} msg The message object to deserialize into.
|
|
1687
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1688
|
+
* @return {!proto.sniipemailimportapi.RefreshTokenRequest}
|
|
1689
|
+
*/
|
|
1690
|
+
proto.sniipemailimportapi.RefreshTokenRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1691
|
+
while (reader.nextField()) {
|
|
1692
|
+
if (reader.isEndGroup()) {
|
|
1693
|
+
break;
|
|
1694
|
+
}
|
|
1695
|
+
var field = reader.getFieldNumber();
|
|
1696
|
+
switch (field) {
|
|
1697
|
+
case 1:
|
|
1698
|
+
var value = new proto.sniipemailimportapi.TokenRefreshRequest;
|
|
1699
|
+
reader.readMessage(value,proto.sniipemailimportapi.TokenRefreshRequest.deserializeBinaryFromReader);
|
|
1700
|
+
msg.setData(value);
|
|
1701
|
+
break;
|
|
1702
|
+
default:
|
|
1703
|
+
reader.skipField();
|
|
1704
|
+
break;
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
return msg;
|
|
1708
|
+
};
|
|
1709
|
+
|
|
1710
|
+
|
|
1711
|
+
/**
|
|
1712
|
+
* Class method variant: serializes the given message to binary data
|
|
1713
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1714
|
+
* @param {!proto.sniipemailimportapi.RefreshTokenRequest} message
|
|
1715
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1716
|
+
*/
|
|
1717
|
+
proto.sniipemailimportapi.RefreshTokenRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1718
|
+
message.serializeBinaryToWriter(writer);
|
|
1719
|
+
};
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
/**
|
|
1723
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1724
|
+
* @return {!Uint8Array}
|
|
1725
|
+
*/
|
|
1726
|
+
proto.sniipemailimportapi.RefreshTokenRequest.prototype.serializeBinary = function() {
|
|
1727
|
+
var writer = new jspb.BinaryWriter();
|
|
1728
|
+
this.serializeBinaryToWriter(writer);
|
|
1729
|
+
return writer.getResultBuffer();
|
|
1730
|
+
};
|
|
1731
|
+
|
|
1732
|
+
|
|
1733
|
+
/**
|
|
1734
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1735
|
+
* writing to the given BinaryWriter.
|
|
1736
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1737
|
+
*/
|
|
1738
|
+
proto.sniipemailimportapi.RefreshTokenRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
1739
|
+
var f = undefined;
|
|
1740
|
+
f = this.getData();
|
|
1741
|
+
if (f != null) {
|
|
1742
|
+
writer.writeMessage(
|
|
1743
|
+
1,
|
|
1744
|
+
f,
|
|
1745
|
+
proto.sniipemailimportapi.TokenRefreshRequest.serializeBinaryToWriter
|
|
1746
|
+
);
|
|
1747
|
+
}
|
|
1748
|
+
};
|
|
1749
|
+
|
|
1750
|
+
|
|
1751
|
+
/**
|
|
1752
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1753
|
+
* @return {!proto.sniipemailimportapi.RefreshTokenRequest} The clone.
|
|
1754
|
+
*/
|
|
1755
|
+
proto.sniipemailimportapi.RefreshTokenRequest.prototype.cloneMessage = function() {
|
|
1756
|
+
return /** @type {!proto.sniipemailimportapi.RefreshTokenRequest} */ (jspb.Message.cloneMessage(this));
|
|
1757
|
+
};
|
|
1758
|
+
|
|
1759
|
+
|
|
1760
|
+
/**
|
|
1761
|
+
* optional TokenRefreshRequest data = 1;
|
|
1762
|
+
* @return {proto.sniipemailimportapi.TokenRefreshRequest}
|
|
1763
|
+
*/
|
|
1764
|
+
proto.sniipemailimportapi.RefreshTokenRequest.prototype.getData = function() {
|
|
1765
|
+
return /** @type{proto.sniipemailimportapi.TokenRefreshRequest} */ (
|
|
1766
|
+
jspb.Message.getWrapperField(this, proto.sniipemailimportapi.TokenRefreshRequest, 1));
|
|
1767
|
+
};
|
|
1768
|
+
|
|
1769
|
+
|
|
1770
|
+
/** @param {proto.sniipemailimportapi.TokenRefreshRequest|undefined} value */
|
|
1771
|
+
proto.sniipemailimportapi.RefreshTokenRequest.prototype.setData = function(value) {
|
|
1772
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
1773
|
+
};
|
|
1774
|
+
|
|
1775
|
+
|
|
1776
|
+
proto.sniipemailimportapi.RefreshTokenRequest.prototype.clearData = function() {
|
|
1777
|
+
this.setData(undefined);
|
|
1778
|
+
};
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* Returns whether this field is set.
|
|
1783
|
+
* @return{!boolean}
|
|
1784
|
+
*/
|
|
1785
|
+
proto.sniipemailimportapi.RefreshTokenRequest.prototype.hasData = function() {
|
|
1786
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1787
|
+
};
|
|
1788
|
+
|
|
1789
|
+
|
|
1790
|
+
|
|
1612
1791
|
/**
|
|
1613
1792
|
* Generated by JsPbCodeGenerator.
|
|
1614
1793
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2130,6 +2309,395 @@ proto.sniipemailimportapi.RevokeRequest.prototype.setTokenid = function(value) {
|
|
|
2130
2309
|
|
|
2131
2310
|
|
|
2132
2311
|
|
|
2312
|
+
/**
|
|
2313
|
+
* Generated by JsPbCodeGenerator.
|
|
2314
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2315
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2316
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2317
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2318
|
+
* valid.
|
|
2319
|
+
* @extends {jspb.Message}
|
|
2320
|
+
* @constructor
|
|
2321
|
+
*/
|
|
2322
|
+
proto.sniipemailimportapi.TokenRefreshRequest = function(opt_data) {
|
|
2323
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2324
|
+
};
|
|
2325
|
+
goog.inherits(proto.sniipemailimportapi.TokenRefreshRequest, jspb.Message);
|
|
2326
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2327
|
+
proto.sniipemailimportapi.TokenRefreshRequest.displayName = 'proto.sniipemailimportapi.TokenRefreshRequest';
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
|
|
2331
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2332
|
+
/**
|
|
2333
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
2334
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2335
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2336
|
+
* For the list of reserved names please see:
|
|
2337
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
2338
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
2339
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
2340
|
+
* @return {!Object}
|
|
2341
|
+
*/
|
|
2342
|
+
proto.sniipemailimportapi.TokenRefreshRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2343
|
+
return proto.sniipemailimportapi.TokenRefreshRequest.toObject(opt_includeInstance, this);
|
|
2344
|
+
};
|
|
2345
|
+
|
|
2346
|
+
|
|
2347
|
+
/**
|
|
2348
|
+
* Static version of the {@see toObject} method.
|
|
2349
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
2350
|
+
* instance for transitional soy proto support:
|
|
2351
|
+
* http://goto/soy-param-migration
|
|
2352
|
+
* @param {!proto.sniipemailimportapi.TokenRefreshRequest} msg The msg instance to transform.
|
|
2353
|
+
* @return {!Object}
|
|
2354
|
+
*/
|
|
2355
|
+
proto.sniipemailimportapi.TokenRefreshRequest.toObject = function(includeInstance, msg) {
|
|
2356
|
+
var f, obj = {
|
|
2357
|
+
tokenid: msg.getTokenid()
|
|
2358
|
+
};
|
|
2359
|
+
|
|
2360
|
+
if (includeInstance) {
|
|
2361
|
+
obj.$jspbMessageInstance = msg;
|
|
2362
|
+
}
|
|
2363
|
+
return obj;
|
|
2364
|
+
};
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
|
|
2368
|
+
/**
|
|
2369
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2370
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2371
|
+
* @return {!proto.sniipemailimportapi.TokenRefreshRequest}
|
|
2372
|
+
*/
|
|
2373
|
+
proto.sniipemailimportapi.TokenRefreshRequest.deserializeBinary = function(bytes) {
|
|
2374
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2375
|
+
var msg = new proto.sniipemailimportapi.TokenRefreshRequest;
|
|
2376
|
+
return proto.sniipemailimportapi.TokenRefreshRequest.deserializeBinaryFromReader(msg, reader);
|
|
2377
|
+
};
|
|
2378
|
+
|
|
2379
|
+
|
|
2380
|
+
/**
|
|
2381
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2382
|
+
* given reader into the given message object.
|
|
2383
|
+
* @param {!proto.sniipemailimportapi.TokenRefreshRequest} msg The message object to deserialize into.
|
|
2384
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2385
|
+
* @return {!proto.sniipemailimportapi.TokenRefreshRequest}
|
|
2386
|
+
*/
|
|
2387
|
+
proto.sniipemailimportapi.TokenRefreshRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2388
|
+
while (reader.nextField()) {
|
|
2389
|
+
if (reader.isEndGroup()) {
|
|
2390
|
+
break;
|
|
2391
|
+
}
|
|
2392
|
+
var field = reader.getFieldNumber();
|
|
2393
|
+
switch (field) {
|
|
2394
|
+
case 1:
|
|
2395
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
2396
|
+
msg.setTokenid(value);
|
|
2397
|
+
break;
|
|
2398
|
+
default:
|
|
2399
|
+
reader.skipField();
|
|
2400
|
+
break;
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2403
|
+
return msg;
|
|
2404
|
+
};
|
|
2405
|
+
|
|
2406
|
+
|
|
2407
|
+
/**
|
|
2408
|
+
* Class method variant: serializes the given message to binary data
|
|
2409
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
2410
|
+
* @param {!proto.sniipemailimportapi.TokenRefreshRequest} message
|
|
2411
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2412
|
+
*/
|
|
2413
|
+
proto.sniipemailimportapi.TokenRefreshRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2414
|
+
message.serializeBinaryToWriter(writer);
|
|
2415
|
+
};
|
|
2416
|
+
|
|
2417
|
+
|
|
2418
|
+
/**
|
|
2419
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2420
|
+
* @return {!Uint8Array}
|
|
2421
|
+
*/
|
|
2422
|
+
proto.sniipemailimportapi.TokenRefreshRequest.prototype.serializeBinary = function() {
|
|
2423
|
+
var writer = new jspb.BinaryWriter();
|
|
2424
|
+
this.serializeBinaryToWriter(writer);
|
|
2425
|
+
return writer.getResultBuffer();
|
|
2426
|
+
};
|
|
2427
|
+
|
|
2428
|
+
|
|
2429
|
+
/**
|
|
2430
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
2431
|
+
* writing to the given BinaryWriter.
|
|
2432
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2433
|
+
*/
|
|
2434
|
+
proto.sniipemailimportapi.TokenRefreshRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
2435
|
+
var f = undefined;
|
|
2436
|
+
f = this.getTokenid();
|
|
2437
|
+
if (f !== 0) {
|
|
2438
|
+
writer.writeInt64(
|
|
2439
|
+
1,
|
|
2440
|
+
f
|
|
2441
|
+
);
|
|
2442
|
+
}
|
|
2443
|
+
};
|
|
2444
|
+
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
2448
|
+
* @return {!proto.sniipemailimportapi.TokenRefreshRequest} The clone.
|
|
2449
|
+
*/
|
|
2450
|
+
proto.sniipemailimportapi.TokenRefreshRequest.prototype.cloneMessage = function() {
|
|
2451
|
+
return /** @type {!proto.sniipemailimportapi.TokenRefreshRequest} */ (jspb.Message.cloneMessage(this));
|
|
2452
|
+
};
|
|
2453
|
+
|
|
2454
|
+
|
|
2455
|
+
/**
|
|
2456
|
+
* optional int64 tokenId = 1;
|
|
2457
|
+
* @return {number}
|
|
2458
|
+
*/
|
|
2459
|
+
proto.sniipemailimportapi.TokenRefreshRequest.prototype.getTokenid = function() {
|
|
2460
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
2461
|
+
};
|
|
2462
|
+
|
|
2463
|
+
|
|
2464
|
+
/** @param {number} value */
|
|
2465
|
+
proto.sniipemailimportapi.TokenRefreshRequest.prototype.setTokenid = function(value) {
|
|
2466
|
+
jspb.Message.setField(this, 1, value);
|
|
2467
|
+
};
|
|
2468
|
+
|
|
2469
|
+
|
|
2470
|
+
|
|
2471
|
+
/**
|
|
2472
|
+
* Generated by JsPbCodeGenerator.
|
|
2473
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2474
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2475
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2476
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2477
|
+
* valid.
|
|
2478
|
+
* @extends {jspb.Message}
|
|
2479
|
+
* @constructor
|
|
2480
|
+
*/
|
|
2481
|
+
proto.sniipemailimportapi.TokenRefreshResponse = function(opt_data) {
|
|
2482
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2483
|
+
};
|
|
2484
|
+
goog.inherits(proto.sniipemailimportapi.TokenRefreshResponse, jspb.Message);
|
|
2485
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2486
|
+
proto.sniipemailimportapi.TokenRefreshResponse.displayName = 'proto.sniipemailimportapi.TokenRefreshResponse';
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
|
|
2490
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2491
|
+
/**
|
|
2492
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
2493
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2494
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2495
|
+
* For the list of reserved names please see:
|
|
2496
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
2497
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
2498
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
2499
|
+
* @return {!Object}
|
|
2500
|
+
*/
|
|
2501
|
+
proto.sniipemailimportapi.TokenRefreshResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2502
|
+
return proto.sniipemailimportapi.TokenRefreshResponse.toObject(opt_includeInstance, this);
|
|
2503
|
+
};
|
|
2504
|
+
|
|
2505
|
+
|
|
2506
|
+
/**
|
|
2507
|
+
* Static version of the {@see toObject} method.
|
|
2508
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
2509
|
+
* instance for transitional soy proto support:
|
|
2510
|
+
* http://goto/soy-param-migration
|
|
2511
|
+
* @param {!proto.sniipemailimportapi.TokenRefreshResponse} msg The msg instance to transform.
|
|
2512
|
+
* @return {!Object}
|
|
2513
|
+
*/
|
|
2514
|
+
proto.sniipemailimportapi.TokenRefreshResponse.toObject = function(includeInstance, msg) {
|
|
2515
|
+
var f, obj = {
|
|
2516
|
+
responsecode: (f = msg.getResponsecode()) && proto.sniipemailimportapi.ResponseCode.toObject(includeInstance, f),
|
|
2517
|
+
tokenid: msg.getTokenid(),
|
|
2518
|
+
accesstoken: msg.getAccesstoken()
|
|
2519
|
+
};
|
|
2520
|
+
|
|
2521
|
+
if (includeInstance) {
|
|
2522
|
+
obj.$jspbMessageInstance = msg;
|
|
2523
|
+
}
|
|
2524
|
+
return obj;
|
|
2525
|
+
};
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2528
|
+
|
|
2529
|
+
/**
|
|
2530
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2531
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2532
|
+
* @return {!proto.sniipemailimportapi.TokenRefreshResponse}
|
|
2533
|
+
*/
|
|
2534
|
+
proto.sniipemailimportapi.TokenRefreshResponse.deserializeBinary = function(bytes) {
|
|
2535
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2536
|
+
var msg = new proto.sniipemailimportapi.TokenRefreshResponse;
|
|
2537
|
+
return proto.sniipemailimportapi.TokenRefreshResponse.deserializeBinaryFromReader(msg, reader);
|
|
2538
|
+
};
|
|
2539
|
+
|
|
2540
|
+
|
|
2541
|
+
/**
|
|
2542
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2543
|
+
* given reader into the given message object.
|
|
2544
|
+
* @param {!proto.sniipemailimportapi.TokenRefreshResponse} msg The message object to deserialize into.
|
|
2545
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2546
|
+
* @return {!proto.sniipemailimportapi.TokenRefreshResponse}
|
|
2547
|
+
*/
|
|
2548
|
+
proto.sniipemailimportapi.TokenRefreshResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2549
|
+
while (reader.nextField()) {
|
|
2550
|
+
if (reader.isEndGroup()) {
|
|
2551
|
+
break;
|
|
2552
|
+
}
|
|
2553
|
+
var field = reader.getFieldNumber();
|
|
2554
|
+
switch (field) {
|
|
2555
|
+
case 1:
|
|
2556
|
+
var value = new proto.sniipemailimportapi.ResponseCode;
|
|
2557
|
+
reader.readMessage(value,proto.sniipemailimportapi.ResponseCode.deserializeBinaryFromReader);
|
|
2558
|
+
msg.setResponsecode(value);
|
|
2559
|
+
break;
|
|
2560
|
+
case 2:
|
|
2561
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
2562
|
+
msg.setTokenid(value);
|
|
2563
|
+
break;
|
|
2564
|
+
case 3:
|
|
2565
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2566
|
+
msg.setAccesstoken(value);
|
|
2567
|
+
break;
|
|
2568
|
+
default:
|
|
2569
|
+
reader.skipField();
|
|
2570
|
+
break;
|
|
2571
|
+
}
|
|
2572
|
+
}
|
|
2573
|
+
return msg;
|
|
2574
|
+
};
|
|
2575
|
+
|
|
2576
|
+
|
|
2577
|
+
/**
|
|
2578
|
+
* Class method variant: serializes the given message to binary data
|
|
2579
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
2580
|
+
* @param {!proto.sniipemailimportapi.TokenRefreshResponse} message
|
|
2581
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2582
|
+
*/
|
|
2583
|
+
proto.sniipemailimportapi.TokenRefreshResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2584
|
+
message.serializeBinaryToWriter(writer);
|
|
2585
|
+
};
|
|
2586
|
+
|
|
2587
|
+
|
|
2588
|
+
/**
|
|
2589
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2590
|
+
* @return {!Uint8Array}
|
|
2591
|
+
*/
|
|
2592
|
+
proto.sniipemailimportapi.TokenRefreshResponse.prototype.serializeBinary = function() {
|
|
2593
|
+
var writer = new jspb.BinaryWriter();
|
|
2594
|
+
this.serializeBinaryToWriter(writer);
|
|
2595
|
+
return writer.getResultBuffer();
|
|
2596
|
+
};
|
|
2597
|
+
|
|
2598
|
+
|
|
2599
|
+
/**
|
|
2600
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
2601
|
+
* writing to the given BinaryWriter.
|
|
2602
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2603
|
+
*/
|
|
2604
|
+
proto.sniipemailimportapi.TokenRefreshResponse.prototype.serializeBinaryToWriter = function (writer) {
|
|
2605
|
+
var f = undefined;
|
|
2606
|
+
f = this.getResponsecode();
|
|
2607
|
+
if (f != null) {
|
|
2608
|
+
writer.writeMessage(
|
|
2609
|
+
1,
|
|
2610
|
+
f,
|
|
2611
|
+
proto.sniipemailimportapi.ResponseCode.serializeBinaryToWriter
|
|
2612
|
+
);
|
|
2613
|
+
}
|
|
2614
|
+
f = this.getTokenid();
|
|
2615
|
+
if (f !== 0) {
|
|
2616
|
+
writer.writeInt64(
|
|
2617
|
+
2,
|
|
2618
|
+
f
|
|
2619
|
+
);
|
|
2620
|
+
}
|
|
2621
|
+
f = this.getAccesstoken();
|
|
2622
|
+
if (f.length > 0) {
|
|
2623
|
+
writer.writeString(
|
|
2624
|
+
3,
|
|
2625
|
+
f
|
|
2626
|
+
);
|
|
2627
|
+
}
|
|
2628
|
+
};
|
|
2629
|
+
|
|
2630
|
+
|
|
2631
|
+
/**
|
|
2632
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
2633
|
+
* @return {!proto.sniipemailimportapi.TokenRefreshResponse} The clone.
|
|
2634
|
+
*/
|
|
2635
|
+
proto.sniipemailimportapi.TokenRefreshResponse.prototype.cloneMessage = function() {
|
|
2636
|
+
return /** @type {!proto.sniipemailimportapi.TokenRefreshResponse} */ (jspb.Message.cloneMessage(this));
|
|
2637
|
+
};
|
|
2638
|
+
|
|
2639
|
+
|
|
2640
|
+
/**
|
|
2641
|
+
* optional ResponseCode responseCode = 1;
|
|
2642
|
+
* @return {proto.sniipemailimportapi.ResponseCode}
|
|
2643
|
+
*/
|
|
2644
|
+
proto.sniipemailimportapi.TokenRefreshResponse.prototype.getResponsecode = function() {
|
|
2645
|
+
return /** @type{proto.sniipemailimportapi.ResponseCode} */ (
|
|
2646
|
+
jspb.Message.getWrapperField(this, proto.sniipemailimportapi.ResponseCode, 1));
|
|
2647
|
+
};
|
|
2648
|
+
|
|
2649
|
+
|
|
2650
|
+
/** @param {proto.sniipemailimportapi.ResponseCode|undefined} value */
|
|
2651
|
+
proto.sniipemailimportapi.TokenRefreshResponse.prototype.setResponsecode = function(value) {
|
|
2652
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
2653
|
+
};
|
|
2654
|
+
|
|
2655
|
+
|
|
2656
|
+
proto.sniipemailimportapi.TokenRefreshResponse.prototype.clearResponsecode = function() {
|
|
2657
|
+
this.setResponsecode(undefined);
|
|
2658
|
+
};
|
|
2659
|
+
|
|
2660
|
+
|
|
2661
|
+
/**
|
|
2662
|
+
* Returns whether this field is set.
|
|
2663
|
+
* @return{!boolean}
|
|
2664
|
+
*/
|
|
2665
|
+
proto.sniipemailimportapi.TokenRefreshResponse.prototype.hasResponsecode = function() {
|
|
2666
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2667
|
+
};
|
|
2668
|
+
|
|
2669
|
+
|
|
2670
|
+
/**
|
|
2671
|
+
* optional int64 tokenId = 2;
|
|
2672
|
+
* @return {number}
|
|
2673
|
+
*/
|
|
2674
|
+
proto.sniipemailimportapi.TokenRefreshResponse.prototype.getTokenid = function() {
|
|
2675
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
2676
|
+
};
|
|
2677
|
+
|
|
2678
|
+
|
|
2679
|
+
/** @param {number} value */
|
|
2680
|
+
proto.sniipemailimportapi.TokenRefreshResponse.prototype.setTokenid = function(value) {
|
|
2681
|
+
jspb.Message.setField(this, 2, value);
|
|
2682
|
+
};
|
|
2683
|
+
|
|
2684
|
+
|
|
2685
|
+
/**
|
|
2686
|
+
* optional string accessToken = 3;
|
|
2687
|
+
* @return {string}
|
|
2688
|
+
*/
|
|
2689
|
+
proto.sniipemailimportapi.TokenRefreshResponse.prototype.getAccesstoken = function() {
|
|
2690
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
|
|
2691
|
+
};
|
|
2692
|
+
|
|
2693
|
+
|
|
2694
|
+
/** @param {string} value */
|
|
2695
|
+
proto.sniipemailimportapi.TokenRefreshResponse.prototype.setAccesstoken = function(value) {
|
|
2696
|
+
jspb.Message.setField(this, 3, value);
|
|
2697
|
+
};
|
|
2698
|
+
|
|
2699
|
+
|
|
2700
|
+
|
|
2133
2701
|
/**
|
|
2134
2702
|
* Generated by JsPbCodeGenerator.
|
|
2135
2703
|
* @param {Array=} opt_data Optional initial data array, typically from a
|