@sniipwebmaster/email-import-service-client-grpcweb 0.2.1403 → 0.2.1421

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.HandleMsAuthRediecrtionRequest,
262
+ * !proto.sniipemailimportapi.ResponseCode>}
263
+ */
264
+ const methodInfo_SniipEmailImportAPIService_HandleMsAuthRediecrtion = new grpc.web.AbstractClientBase.MethodInfo(
265
+ proto.sniipemailimportapi.ResponseCode,
266
+ /** @param {!proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest} request */
267
+ function(request) {
268
+ return request.serializeBinary();
269
+ },
270
+ proto.sniipemailimportapi.ResponseCode.deserializeBinary
271
+ );
272
+
273
+
274
+ /**
275
+ * @param {!proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest} request The
276
+ * request proto
277
+ * @param {?Object<string, string>} metadata User defined
278
+ * call metadata
279
+ * @param {function(?grpc.web.Error, ?proto.sniipemailimportapi.ResponseCode)}
280
+ * callback The callback function(error, response)
281
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipemailimportapi.ResponseCode>|undefined}
282
+ * The XHR Node Readable Stream
283
+ */
284
+ proto.sniipemailimportapi.SniipEmailImportAPIServiceClient.prototype.handleMsAuthRediecrtion =
285
+ function(request, metadata, callback) {
286
+ return this.client_.rpcCall(this.hostname_ +
287
+ '/sniipemailimportapi.SniipEmailImportAPIService/HandleMsAuthRediecrtion',
288
+ request,
289
+ metadata || {},
290
+ methodInfo_SniipEmailImportAPIService_HandleMsAuthRediecrtion,
291
+ callback);
292
+ };
293
+
294
+
295
+ /**
296
+ * @param {!proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest} request The
297
+ * request proto
298
+ * @param {?Object<string, string>} metadata User defined
299
+ * call metadata
300
+ * @return {!Promise<!proto.sniipemailimportapi.ResponseCode>}
301
+ * A native promise that resolves to the response
302
+ */
303
+ proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.handleMsAuthRediecrtion =
304
+ function(request, metadata) {
305
+ return this.client_.unaryCall(this.hostname_ +
306
+ '/sniipemailimportapi.SniipEmailImportAPIService/HandleMsAuthRediecrtion',
307
+ request,
308
+ metadata || {},
309
+ methodInfo_SniipEmailImportAPIService_HandleMsAuthRediecrtion);
310
+ };
311
+
312
+
258
313
  /**
259
314
  * @const
260
315
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
@@ -17,6 +17,7 @@ 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.HandleMsAuthRediecrtionRequest', null, global);
20
21
  goog.exportSymbol('proto.sniipemailimportapi.InitAuthRequest', null, global);
21
22
  goog.exportSymbol('proto.sniipemailimportapi.InitAuthResponse', null, global);
22
23
  goog.exportSymbol('proto.sniipemailimportapi.InitAuthorizationRequest', null, global);
@@ -1528,6 +1529,246 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.setAussiesusingsn
1528
1529
 
1529
1530
 
1530
1531
 
1532
+ /**
1533
+ * Generated by JsPbCodeGenerator.
1534
+ * @param {Array=} opt_data Optional initial data array, typically from a
1535
+ * server response, or constructed directly in Javascript. The array is used
1536
+ * in place and becomes part of the constructed object. It is not cloned.
1537
+ * If no data is provided, the constructed object will be empty, but still
1538
+ * valid.
1539
+ * @extends {jspb.Message}
1540
+ * @constructor
1541
+ */
1542
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest = function(opt_data) {
1543
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1544
+ };
1545
+ goog.inherits(proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest, jspb.Message);
1546
+ if (goog.DEBUG && !COMPILED) {
1547
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.displayName = 'proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest';
1548
+ }
1549
+
1550
+
1551
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1552
+ /**
1553
+ * Creates an object representation of this proto suitable for use in Soy templates.
1554
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1555
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1556
+ * For the list of reserved names please see:
1557
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1558
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1559
+ * for transitional soy proto support: http://goto/soy-param-migration
1560
+ * @return {!Object}
1561
+ */
1562
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.prototype.toObject = function(opt_includeInstance) {
1563
+ return proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.toObject(opt_includeInstance, this);
1564
+ };
1565
+
1566
+
1567
+ /**
1568
+ * Static version of the {@see toObject} method.
1569
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1570
+ * instance for transitional soy proto support:
1571
+ * http://goto/soy-param-migration
1572
+ * @param {!proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest} msg The msg instance to transform.
1573
+ * @return {!Object}
1574
+ */
1575
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.toObject = function(includeInstance, msg) {
1576
+ var f, obj = {
1577
+ code: msg.getCode(),
1578
+ error: msg.getError(),
1579
+ errorDescription: msg.getErrorDescription(),
1580
+ state: msg.getState()
1581
+ };
1582
+
1583
+ if (includeInstance) {
1584
+ obj.$jspbMessageInstance = msg;
1585
+ }
1586
+ return obj;
1587
+ };
1588
+ }
1589
+
1590
+
1591
+ /**
1592
+ * Deserializes binary data (in protobuf wire format).
1593
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1594
+ * @return {!proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest}
1595
+ */
1596
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.deserializeBinary = function(bytes) {
1597
+ var reader = new jspb.BinaryReader(bytes);
1598
+ var msg = new proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest;
1599
+ return proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.deserializeBinaryFromReader(msg, reader);
1600
+ };
1601
+
1602
+
1603
+ /**
1604
+ * Deserializes binary data (in protobuf wire format) from the
1605
+ * given reader into the given message object.
1606
+ * @param {!proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest} msg The message object to deserialize into.
1607
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1608
+ * @return {!proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest}
1609
+ */
1610
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.deserializeBinaryFromReader = function(msg, reader) {
1611
+ while (reader.nextField()) {
1612
+ if (reader.isEndGroup()) {
1613
+ break;
1614
+ }
1615
+ var field = reader.getFieldNumber();
1616
+ switch (field) {
1617
+ case 1:
1618
+ var value = /** @type {string} */ (reader.readString());
1619
+ msg.setCode(value);
1620
+ break;
1621
+ case 2:
1622
+ var value = /** @type {string} */ (reader.readString());
1623
+ msg.setError(value);
1624
+ break;
1625
+ case 3:
1626
+ var value = /** @type {string} */ (reader.readString());
1627
+ msg.setErrorDescription(value);
1628
+ break;
1629
+ case 4:
1630
+ var value = /** @type {string} */ (reader.readString());
1631
+ msg.setState(value);
1632
+ break;
1633
+ default:
1634
+ reader.skipField();
1635
+ break;
1636
+ }
1637
+ }
1638
+ return msg;
1639
+ };
1640
+
1641
+
1642
+ /**
1643
+ * Class method variant: serializes the given message to binary data
1644
+ * (in protobuf wire format), writing to the given BinaryWriter.
1645
+ * @param {!proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest} message
1646
+ * @param {!jspb.BinaryWriter} writer
1647
+ */
1648
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.serializeBinaryToWriter = function(message, writer) {
1649
+ message.serializeBinaryToWriter(writer);
1650
+ };
1651
+
1652
+
1653
+ /**
1654
+ * Serializes the message to binary data (in protobuf wire format).
1655
+ * @return {!Uint8Array}
1656
+ */
1657
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.prototype.serializeBinary = function() {
1658
+ var writer = new jspb.BinaryWriter();
1659
+ this.serializeBinaryToWriter(writer);
1660
+ return writer.getResultBuffer();
1661
+ };
1662
+
1663
+
1664
+ /**
1665
+ * Serializes the message to binary data (in protobuf wire format),
1666
+ * writing to the given BinaryWriter.
1667
+ * @param {!jspb.BinaryWriter} writer
1668
+ */
1669
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.prototype.serializeBinaryToWriter = function (writer) {
1670
+ var f = undefined;
1671
+ f = this.getCode();
1672
+ if (f.length > 0) {
1673
+ writer.writeString(
1674
+ 1,
1675
+ f
1676
+ );
1677
+ }
1678
+ f = this.getError();
1679
+ if (f.length > 0) {
1680
+ writer.writeString(
1681
+ 2,
1682
+ f
1683
+ );
1684
+ }
1685
+ f = this.getErrorDescription();
1686
+ if (f.length > 0) {
1687
+ writer.writeString(
1688
+ 3,
1689
+ f
1690
+ );
1691
+ }
1692
+ f = this.getState();
1693
+ if (f.length > 0) {
1694
+ writer.writeString(
1695
+ 4,
1696
+ f
1697
+ );
1698
+ }
1699
+ };
1700
+
1701
+
1702
+ /**
1703
+ * Creates a deep clone of this proto. No data is shared with the original.
1704
+ * @return {!proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest} The clone.
1705
+ */
1706
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.prototype.cloneMessage = function() {
1707
+ return /** @type {!proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest} */ (jspb.Message.cloneMessage(this));
1708
+ };
1709
+
1710
+
1711
+ /**
1712
+ * optional string code = 1;
1713
+ * @return {string}
1714
+ */
1715
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.prototype.getCode = function() {
1716
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
1717
+ };
1718
+
1719
+
1720
+ /** @param {string} value */
1721
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.prototype.setCode = function(value) {
1722
+ jspb.Message.setField(this, 1, value);
1723
+ };
1724
+
1725
+
1726
+ /**
1727
+ * optional string error = 2;
1728
+ * @return {string}
1729
+ */
1730
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.prototype.getError = function() {
1731
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
1732
+ };
1733
+
1734
+
1735
+ /** @param {string} value */
1736
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.prototype.setError = function(value) {
1737
+ jspb.Message.setField(this, 2, value);
1738
+ };
1739
+
1740
+
1741
+ /**
1742
+ * optional string error_description = 3;
1743
+ * @return {string}
1744
+ */
1745
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.prototype.getErrorDescription = function() {
1746
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
1747
+ };
1748
+
1749
+
1750
+ /** @param {string} value */
1751
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.prototype.setErrorDescription = function(value) {
1752
+ jspb.Message.setField(this, 3, value);
1753
+ };
1754
+
1755
+
1756
+ /**
1757
+ * optional string state = 4;
1758
+ * @return {string}
1759
+ */
1760
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.prototype.getState = function() {
1761
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
1762
+ };
1763
+
1764
+
1765
+ /** @param {string} value */
1766
+ proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest.prototype.setState = function(value) {
1767
+ jspb.Message.setField(this, 4, value);
1768
+ };
1769
+
1770
+
1771
+
1531
1772
  /**
1532
1773
  * Generated by JsPbCodeGenerator.
1533
1774
  * @param {Array=} opt_data Optional initial data array, typically from a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/email-import-service-client-grpcweb",
3
- "version": "0.2.1403",
3
+ "version": "0.2.1421",
4
4
  "description": "email-import-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",