@sniipwebmaster/email-import-service-client-grpcweb 0.2.1686 → 0.2.1696

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.
@@ -15,6 +15,8 @@ grpc.web = require('grpc-web');
15
15
  var google_api_annotations_pb = require('./google/api/annotations_pb.js')
16
16
 
17
17
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
18
+
19
+ var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js')
18
20
  const proto = {};
19
21
  proto.sniipemailimportapi = require('./service_pb.js');
20
22
 
@@ -255,6 +257,61 @@ proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.getC
255
257
  };
256
258
 
257
259
 
260
+ /**
261
+ * @const
262
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
263
+ * !proto.sniipemailimportapi.HandleMicrosoftWebhookRequest,
264
+ * !proto.google.protobuf.StringValue>}
265
+ */
266
+ const methodInfo_SniipEmailImportAPIService_HandleMicrosoftWebhook = new grpc.web.AbstractClientBase.MethodInfo(
267
+ google_protobuf_wrappers_pb.StringValue,
268
+ /** @param {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest} request */
269
+ function(request) {
270
+ return request.serializeBinary();
271
+ },
272
+ google_protobuf_wrappers_pb.StringValue.deserializeBinary
273
+ );
274
+
275
+
276
+ /**
277
+ * @param {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest} request The
278
+ * request proto
279
+ * @param {?Object<string, string>} metadata User defined
280
+ * call metadata
281
+ * @param {function(?grpc.web.Error, ?proto.google.protobuf.StringValue)}
282
+ * callback The callback function(error, response)
283
+ * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.StringValue>|undefined}
284
+ * The XHR Node Readable Stream
285
+ */
286
+ proto.sniipemailimportapi.SniipEmailImportAPIServiceClient.prototype.handleMicrosoftWebhook =
287
+ function(request, metadata, callback) {
288
+ return this.client_.rpcCall(this.hostname_ +
289
+ '/sniipemailimportapi.SniipEmailImportAPIService/HandleMicrosoftWebhook',
290
+ request,
291
+ metadata || {},
292
+ methodInfo_SniipEmailImportAPIService_HandleMicrosoftWebhook,
293
+ callback);
294
+ };
295
+
296
+
297
+ /**
298
+ * @param {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest} request The
299
+ * request proto
300
+ * @param {?Object<string, string>} metadata User defined
301
+ * call metadata
302
+ * @return {!Promise<!proto.google.protobuf.StringValue>}
303
+ * A native promise that resolves to the response
304
+ */
305
+ proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.handleMicrosoftWebhook =
306
+ function(request, metadata) {
307
+ return this.client_.unaryCall(this.hostname_ +
308
+ '/sniipemailimportapi.SniipEmailImportAPIService/HandleMicrosoftWebhook',
309
+ request,
310
+ metadata || {},
311
+ methodInfo_SniipEmailImportAPIService_HandleMicrosoftWebhook);
312
+ };
313
+
314
+
258
315
  /**
259
316
  * @const
260
317
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
@@ -11,18 +11,22 @@ var global = Function('return this')();
11
11
 
12
12
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
13
13
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
14
+ var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
14
15
  goog.exportSymbol('proto.sniipemailimportapi.AuthRequest', null, global);
15
16
  goog.exportSymbol('proto.sniipemailimportapi.AuthResponse', null, global);
16
17
  goog.exportSymbol('proto.sniipemailimportapi.AutomaticSyncRequest', null, global);
17
18
  goog.exportSymbol('proto.sniipemailimportapi.ConnectedEmail', null, global);
18
19
  goog.exportSymbol('proto.sniipemailimportapi.EmailProviders', null, global);
19
20
  goog.exportSymbol('proto.sniipemailimportapi.GetConnectedEmailsResponse', null, global);
21
+ goog.exportSymbol('proto.sniipemailimportapi.HandleMicrosoftWebhookRequest', null, global);
20
22
  goog.exportSymbol('proto.sniipemailimportapi.HandleMsAuthRediecrtionRequest', null, global);
21
23
  goog.exportSymbol('proto.sniipemailimportapi.InitAuthRequest', null, global);
22
24
  goog.exportSymbol('proto.sniipemailimportapi.InitAuthResponse', null, global);
23
25
  goog.exportSymbol('proto.sniipemailimportapi.InitAuthorizationRequest', null, global);
24
26
  goog.exportSymbol('proto.sniipemailimportapi.MakeAuthRequestRequest', null, global);
25
27
  goog.exportSymbol('proto.sniipemailimportapi.ManuallySyncRequest', null, global);
28
+ goog.exportSymbol('proto.sniipemailimportapi.MicrosoftNotification', null, global);
29
+ goog.exportSymbol('proto.sniipemailimportapi.MicrosoftNotificationRequest', null, global);
26
30
  goog.exportSymbol('proto.sniipemailimportapi.RefreshTokenRequest', null, global);
27
31
  goog.exportSymbol('proto.sniipemailimportapi.RemoveTokenRequest', null, global);
28
32
  goog.exportSymbol('proto.sniipemailimportapi.RequestSyncSuccess', null, global);
@@ -1475,6 +1479,209 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.setAussiesusingsn
1475
1479
 
1476
1480
 
1477
1481
 
1482
+ /**
1483
+ * Generated by JsPbCodeGenerator.
1484
+ * @param {Array=} opt_data Optional initial data array, typically from a
1485
+ * server response, or constructed directly in Javascript. The array is used
1486
+ * in place and becomes part of the constructed object. It is not cloned.
1487
+ * If no data is provided, the constructed object will be empty, but still
1488
+ * valid.
1489
+ * @extends {jspb.Message}
1490
+ * @constructor
1491
+ */
1492
+ proto.sniipemailimportapi.HandleMicrosoftWebhookRequest = function(opt_data) {
1493
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1494
+ };
1495
+ goog.inherits(proto.sniipemailimportapi.HandleMicrosoftWebhookRequest, jspb.Message);
1496
+ if (goog.DEBUG && !COMPILED) {
1497
+ proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.displayName = 'proto.sniipemailimportapi.HandleMicrosoftWebhookRequest';
1498
+ }
1499
+
1500
+
1501
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1502
+ /**
1503
+ * Creates an object representation of this proto suitable for use in Soy templates.
1504
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1505
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1506
+ * For the list of reserved names please see:
1507
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1508
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1509
+ * for transitional soy proto support: http://goto/soy-param-migration
1510
+ * @return {!Object}
1511
+ */
1512
+ proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.toObject = function(opt_includeInstance) {
1513
+ return proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.toObject(opt_includeInstance, this);
1514
+ };
1515
+
1516
+
1517
+ /**
1518
+ * Static version of the {@see toObject} method.
1519
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1520
+ * instance for transitional soy proto support:
1521
+ * http://goto/soy-param-migration
1522
+ * @param {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest} msg The msg instance to transform.
1523
+ * @return {!Object}
1524
+ */
1525
+ proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.toObject = function(includeInstance, msg) {
1526
+ var f, obj = {
1527
+ data: (f = msg.getData()) && proto.sniipemailimportapi.MicrosoftNotificationRequest.toObject(includeInstance, f),
1528
+ validationtoken: msg.getValidationtoken()
1529
+ };
1530
+
1531
+ if (includeInstance) {
1532
+ obj.$jspbMessageInstance = msg;
1533
+ }
1534
+ return obj;
1535
+ };
1536
+ }
1537
+
1538
+
1539
+ /**
1540
+ * Deserializes binary data (in protobuf wire format).
1541
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1542
+ * @return {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest}
1543
+ */
1544
+ proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.deserializeBinary = function(bytes) {
1545
+ var reader = new jspb.BinaryReader(bytes);
1546
+ var msg = new proto.sniipemailimportapi.HandleMicrosoftWebhookRequest;
1547
+ return proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.deserializeBinaryFromReader(msg, reader);
1548
+ };
1549
+
1550
+
1551
+ /**
1552
+ * Deserializes binary data (in protobuf wire format) from the
1553
+ * given reader into the given message object.
1554
+ * @param {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest} msg The message object to deserialize into.
1555
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1556
+ * @return {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest}
1557
+ */
1558
+ proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.deserializeBinaryFromReader = function(msg, reader) {
1559
+ while (reader.nextField()) {
1560
+ if (reader.isEndGroup()) {
1561
+ break;
1562
+ }
1563
+ var field = reader.getFieldNumber();
1564
+ switch (field) {
1565
+ case 1:
1566
+ var value = new proto.sniipemailimportapi.MicrosoftNotificationRequest;
1567
+ reader.readMessage(value,proto.sniipemailimportapi.MicrosoftNotificationRequest.deserializeBinaryFromReader);
1568
+ msg.setData(value);
1569
+ break;
1570
+ case 2:
1571
+ var value = /** @type {string} */ (reader.readString());
1572
+ msg.setValidationtoken(value);
1573
+ break;
1574
+ default:
1575
+ reader.skipField();
1576
+ break;
1577
+ }
1578
+ }
1579
+ return msg;
1580
+ };
1581
+
1582
+
1583
+ /**
1584
+ * Class method variant: serializes the given message to binary data
1585
+ * (in protobuf wire format), writing to the given BinaryWriter.
1586
+ * @param {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest} message
1587
+ * @param {!jspb.BinaryWriter} writer
1588
+ */
1589
+ proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.serializeBinaryToWriter = function(message, writer) {
1590
+ message.serializeBinaryToWriter(writer);
1591
+ };
1592
+
1593
+
1594
+ /**
1595
+ * Serializes the message to binary data (in protobuf wire format).
1596
+ * @return {!Uint8Array}
1597
+ */
1598
+ proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.serializeBinary = function() {
1599
+ var writer = new jspb.BinaryWriter();
1600
+ this.serializeBinaryToWriter(writer);
1601
+ return writer.getResultBuffer();
1602
+ };
1603
+
1604
+
1605
+ /**
1606
+ * Serializes the message to binary data (in protobuf wire format),
1607
+ * writing to the given BinaryWriter.
1608
+ * @param {!jspb.BinaryWriter} writer
1609
+ */
1610
+ proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.serializeBinaryToWriter = function (writer) {
1611
+ var f = undefined;
1612
+ f = this.getData();
1613
+ if (f != null) {
1614
+ writer.writeMessage(
1615
+ 1,
1616
+ f,
1617
+ proto.sniipemailimportapi.MicrosoftNotificationRequest.serializeBinaryToWriter
1618
+ );
1619
+ }
1620
+ f = this.getValidationtoken();
1621
+ if (f.length > 0) {
1622
+ writer.writeString(
1623
+ 2,
1624
+ f
1625
+ );
1626
+ }
1627
+ };
1628
+
1629
+
1630
+ /**
1631
+ * Creates a deep clone of this proto. No data is shared with the original.
1632
+ * @return {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest} The clone.
1633
+ */
1634
+ proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.cloneMessage = function() {
1635
+ return /** @type {!proto.sniipemailimportapi.HandleMicrosoftWebhookRequest} */ (jspb.Message.cloneMessage(this));
1636
+ };
1637
+
1638
+
1639
+ /**
1640
+ * optional MicrosoftNotificationRequest data = 1;
1641
+ * @return {proto.sniipemailimportapi.MicrosoftNotificationRequest}
1642
+ */
1643
+ proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.getData = function() {
1644
+ return /** @type{proto.sniipemailimportapi.MicrosoftNotificationRequest} */ (
1645
+ jspb.Message.getWrapperField(this, proto.sniipemailimportapi.MicrosoftNotificationRequest, 1));
1646
+ };
1647
+
1648
+
1649
+ /** @param {proto.sniipemailimportapi.MicrosoftNotificationRequest|undefined} value */
1650
+ proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.setData = function(value) {
1651
+ jspb.Message.setWrapperField(this, 1, value);
1652
+ };
1653
+
1654
+
1655
+ proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.clearData = function() {
1656
+ this.setData(undefined);
1657
+ };
1658
+
1659
+
1660
+ /**
1661
+ * Returns whether this field is set.
1662
+ * @return{!boolean}
1663
+ */
1664
+ proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.hasData = function() {
1665
+ return jspb.Message.getField(this, 1) != null;
1666
+ };
1667
+
1668
+
1669
+ /**
1670
+ * optional string validationToken = 2;
1671
+ * @return {string}
1672
+ */
1673
+ proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.getValidationtoken = function() {
1674
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
1675
+ };
1676
+
1677
+
1678
+ /** @param {string} value */
1679
+ proto.sniipemailimportapi.HandleMicrosoftWebhookRequest.prototype.setValidationtoken = function(value) {
1680
+ jspb.Message.setField(this, 2, value);
1681
+ };
1682
+
1683
+
1684
+
1478
1685
  /**
1479
1686
  * Generated by JsPbCodeGenerator.
1480
1687
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2634,6 +2841,343 @@ proto.sniipemailimportapi.ManuallySyncRequest.prototype.hasData = function() {
2634
2841
 
2635
2842
 
2636
2843
 
2844
+ /**
2845
+ * Generated by JsPbCodeGenerator.
2846
+ * @param {Array=} opt_data Optional initial data array, typically from a
2847
+ * server response, or constructed directly in Javascript. The array is used
2848
+ * in place and becomes part of the constructed object. It is not cloned.
2849
+ * If no data is provided, the constructed object will be empty, but still
2850
+ * valid.
2851
+ * @extends {jspb.Message}
2852
+ * @constructor
2853
+ */
2854
+ proto.sniipemailimportapi.MicrosoftNotification = function(opt_data) {
2855
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2856
+ };
2857
+ goog.inherits(proto.sniipemailimportapi.MicrosoftNotification, jspb.Message);
2858
+ if (goog.DEBUG && !COMPILED) {
2859
+ proto.sniipemailimportapi.MicrosoftNotification.displayName = 'proto.sniipemailimportapi.MicrosoftNotification';
2860
+ }
2861
+
2862
+
2863
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2864
+ /**
2865
+ * Creates an object representation of this proto suitable for use in Soy templates.
2866
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2867
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2868
+ * For the list of reserved names please see:
2869
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2870
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2871
+ * for transitional soy proto support: http://goto/soy-param-migration
2872
+ * @return {!Object}
2873
+ */
2874
+ proto.sniipemailimportapi.MicrosoftNotification.prototype.toObject = function(opt_includeInstance) {
2875
+ return proto.sniipemailimportapi.MicrosoftNotification.toObject(opt_includeInstance, this);
2876
+ };
2877
+
2878
+
2879
+ /**
2880
+ * Static version of the {@see toObject} method.
2881
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
2882
+ * instance for transitional soy proto support:
2883
+ * http://goto/soy-param-migration
2884
+ * @param {!proto.sniipemailimportapi.MicrosoftNotification} msg The msg instance to transform.
2885
+ * @return {!Object}
2886
+ */
2887
+ proto.sniipemailimportapi.MicrosoftNotification.toObject = function(includeInstance, msg) {
2888
+ var f, obj = {
2889
+ subscriptionid: msg.getSubscriptionid()
2890
+ };
2891
+
2892
+ if (includeInstance) {
2893
+ obj.$jspbMessageInstance = msg;
2894
+ }
2895
+ return obj;
2896
+ };
2897
+ }
2898
+
2899
+
2900
+ /**
2901
+ * Deserializes binary data (in protobuf wire format).
2902
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2903
+ * @return {!proto.sniipemailimportapi.MicrosoftNotification}
2904
+ */
2905
+ proto.sniipemailimportapi.MicrosoftNotification.deserializeBinary = function(bytes) {
2906
+ var reader = new jspb.BinaryReader(bytes);
2907
+ var msg = new proto.sniipemailimportapi.MicrosoftNotification;
2908
+ return proto.sniipemailimportapi.MicrosoftNotification.deserializeBinaryFromReader(msg, reader);
2909
+ };
2910
+
2911
+
2912
+ /**
2913
+ * Deserializes binary data (in protobuf wire format) from the
2914
+ * given reader into the given message object.
2915
+ * @param {!proto.sniipemailimportapi.MicrosoftNotification} msg The message object to deserialize into.
2916
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2917
+ * @return {!proto.sniipemailimportapi.MicrosoftNotification}
2918
+ */
2919
+ proto.sniipemailimportapi.MicrosoftNotification.deserializeBinaryFromReader = function(msg, reader) {
2920
+ while (reader.nextField()) {
2921
+ if (reader.isEndGroup()) {
2922
+ break;
2923
+ }
2924
+ var field = reader.getFieldNumber();
2925
+ switch (field) {
2926
+ case 1:
2927
+ var value = /** @type {string} */ (reader.readString());
2928
+ msg.setSubscriptionid(value);
2929
+ break;
2930
+ default:
2931
+ reader.skipField();
2932
+ break;
2933
+ }
2934
+ }
2935
+ return msg;
2936
+ };
2937
+
2938
+
2939
+ /**
2940
+ * Class method variant: serializes the given message to binary data
2941
+ * (in protobuf wire format), writing to the given BinaryWriter.
2942
+ * @param {!proto.sniipemailimportapi.MicrosoftNotification} message
2943
+ * @param {!jspb.BinaryWriter} writer
2944
+ */
2945
+ proto.sniipemailimportapi.MicrosoftNotification.serializeBinaryToWriter = function(message, writer) {
2946
+ message.serializeBinaryToWriter(writer);
2947
+ };
2948
+
2949
+
2950
+ /**
2951
+ * Serializes the message to binary data (in protobuf wire format).
2952
+ * @return {!Uint8Array}
2953
+ */
2954
+ proto.sniipemailimportapi.MicrosoftNotification.prototype.serializeBinary = function() {
2955
+ var writer = new jspb.BinaryWriter();
2956
+ this.serializeBinaryToWriter(writer);
2957
+ return writer.getResultBuffer();
2958
+ };
2959
+
2960
+
2961
+ /**
2962
+ * Serializes the message to binary data (in protobuf wire format),
2963
+ * writing to the given BinaryWriter.
2964
+ * @param {!jspb.BinaryWriter} writer
2965
+ */
2966
+ proto.sniipemailimportapi.MicrosoftNotification.prototype.serializeBinaryToWriter = function (writer) {
2967
+ var f = undefined;
2968
+ f = this.getSubscriptionid();
2969
+ if (f.length > 0) {
2970
+ writer.writeString(
2971
+ 1,
2972
+ f
2973
+ );
2974
+ }
2975
+ };
2976
+
2977
+
2978
+ /**
2979
+ * Creates a deep clone of this proto. No data is shared with the original.
2980
+ * @return {!proto.sniipemailimportapi.MicrosoftNotification} The clone.
2981
+ */
2982
+ proto.sniipemailimportapi.MicrosoftNotification.prototype.cloneMessage = function() {
2983
+ return /** @type {!proto.sniipemailimportapi.MicrosoftNotification} */ (jspb.Message.cloneMessage(this));
2984
+ };
2985
+
2986
+
2987
+ /**
2988
+ * optional string subscriptionId = 1;
2989
+ * @return {string}
2990
+ */
2991
+ proto.sniipemailimportapi.MicrosoftNotification.prototype.getSubscriptionid = function() {
2992
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
2993
+ };
2994
+
2995
+
2996
+ /** @param {string} value */
2997
+ proto.sniipemailimportapi.MicrosoftNotification.prototype.setSubscriptionid = function(value) {
2998
+ jspb.Message.setField(this, 1, value);
2999
+ };
3000
+
3001
+
3002
+
3003
+ /**
3004
+ * Generated by JsPbCodeGenerator.
3005
+ * @param {Array=} opt_data Optional initial data array, typically from a
3006
+ * server response, or constructed directly in Javascript. The array is used
3007
+ * in place and becomes part of the constructed object. It is not cloned.
3008
+ * If no data is provided, the constructed object will be empty, but still
3009
+ * valid.
3010
+ * @extends {jspb.Message}
3011
+ * @constructor
3012
+ */
3013
+ proto.sniipemailimportapi.MicrosoftNotificationRequest = function(opt_data) {
3014
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sniipemailimportapi.MicrosoftNotificationRequest.repeatedFields_, null);
3015
+ };
3016
+ goog.inherits(proto.sniipemailimportapi.MicrosoftNotificationRequest, jspb.Message);
3017
+ if (goog.DEBUG && !COMPILED) {
3018
+ proto.sniipemailimportapi.MicrosoftNotificationRequest.displayName = 'proto.sniipemailimportapi.MicrosoftNotificationRequest';
3019
+ }
3020
+ /**
3021
+ * List of repeated fields within this message type.
3022
+ * @private {!Array<number>}
3023
+ * @const
3024
+ */
3025
+ proto.sniipemailimportapi.MicrosoftNotificationRequest.repeatedFields_ = [1];
3026
+
3027
+
3028
+
3029
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3030
+ /**
3031
+ * Creates an object representation of this proto suitable for use in Soy templates.
3032
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3033
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3034
+ * For the list of reserved names please see:
3035
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
3036
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
3037
+ * for transitional soy proto support: http://goto/soy-param-migration
3038
+ * @return {!Object}
3039
+ */
3040
+ proto.sniipemailimportapi.MicrosoftNotificationRequest.prototype.toObject = function(opt_includeInstance) {
3041
+ return proto.sniipemailimportapi.MicrosoftNotificationRequest.toObject(opt_includeInstance, this);
3042
+ };
3043
+
3044
+
3045
+ /**
3046
+ * Static version of the {@see toObject} method.
3047
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
3048
+ * instance for transitional soy proto support:
3049
+ * http://goto/soy-param-migration
3050
+ * @param {!proto.sniipemailimportapi.MicrosoftNotificationRequest} msg The msg instance to transform.
3051
+ * @return {!Object}
3052
+ */
3053
+ proto.sniipemailimportapi.MicrosoftNotificationRequest.toObject = function(includeInstance, msg) {
3054
+ var f, obj = {
3055
+ valueList: jspb.Message.toObjectList(msg.getValueList(),
3056
+ proto.sniipemailimportapi.MicrosoftNotification.toObject, includeInstance)
3057
+ };
3058
+
3059
+ if (includeInstance) {
3060
+ obj.$jspbMessageInstance = msg;
3061
+ }
3062
+ return obj;
3063
+ };
3064
+ }
3065
+
3066
+
3067
+ /**
3068
+ * Deserializes binary data (in protobuf wire format).
3069
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3070
+ * @return {!proto.sniipemailimportapi.MicrosoftNotificationRequest}
3071
+ */
3072
+ proto.sniipemailimportapi.MicrosoftNotificationRequest.deserializeBinary = function(bytes) {
3073
+ var reader = new jspb.BinaryReader(bytes);
3074
+ var msg = new proto.sniipemailimportapi.MicrosoftNotificationRequest;
3075
+ return proto.sniipemailimportapi.MicrosoftNotificationRequest.deserializeBinaryFromReader(msg, reader);
3076
+ };
3077
+
3078
+
3079
+ /**
3080
+ * Deserializes binary data (in protobuf wire format) from the
3081
+ * given reader into the given message object.
3082
+ * @param {!proto.sniipemailimportapi.MicrosoftNotificationRequest} msg The message object to deserialize into.
3083
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3084
+ * @return {!proto.sniipemailimportapi.MicrosoftNotificationRequest}
3085
+ */
3086
+ proto.sniipemailimportapi.MicrosoftNotificationRequest.deserializeBinaryFromReader = function(msg, reader) {
3087
+ while (reader.nextField()) {
3088
+ if (reader.isEndGroup()) {
3089
+ break;
3090
+ }
3091
+ var field = reader.getFieldNumber();
3092
+ switch (field) {
3093
+ case 1:
3094
+ var value = new proto.sniipemailimportapi.MicrosoftNotification;
3095
+ reader.readMessage(value,proto.sniipemailimportapi.MicrosoftNotification.deserializeBinaryFromReader);
3096
+ msg.getValueList().push(value);
3097
+ msg.setValueList(msg.getValueList());
3098
+ break;
3099
+ default:
3100
+ reader.skipField();
3101
+ break;
3102
+ }
3103
+ }
3104
+ return msg;
3105
+ };
3106
+
3107
+
3108
+ /**
3109
+ * Class method variant: serializes the given message to binary data
3110
+ * (in protobuf wire format), writing to the given BinaryWriter.
3111
+ * @param {!proto.sniipemailimportapi.MicrosoftNotificationRequest} message
3112
+ * @param {!jspb.BinaryWriter} writer
3113
+ */
3114
+ proto.sniipemailimportapi.MicrosoftNotificationRequest.serializeBinaryToWriter = function(message, writer) {
3115
+ message.serializeBinaryToWriter(writer);
3116
+ };
3117
+
3118
+
3119
+ /**
3120
+ * Serializes the message to binary data (in protobuf wire format).
3121
+ * @return {!Uint8Array}
3122
+ */
3123
+ proto.sniipemailimportapi.MicrosoftNotificationRequest.prototype.serializeBinary = function() {
3124
+ var writer = new jspb.BinaryWriter();
3125
+ this.serializeBinaryToWriter(writer);
3126
+ return writer.getResultBuffer();
3127
+ };
3128
+
3129
+
3130
+ /**
3131
+ * Serializes the message to binary data (in protobuf wire format),
3132
+ * writing to the given BinaryWriter.
3133
+ * @param {!jspb.BinaryWriter} writer
3134
+ */
3135
+ proto.sniipemailimportapi.MicrosoftNotificationRequest.prototype.serializeBinaryToWriter = function (writer) {
3136
+ var f = undefined;
3137
+ f = this.getValueList();
3138
+ if (f.length > 0) {
3139
+ writer.writeRepeatedMessage(
3140
+ 1,
3141
+ f,
3142
+ proto.sniipemailimportapi.MicrosoftNotification.serializeBinaryToWriter
3143
+ );
3144
+ }
3145
+ };
3146
+
3147
+
3148
+ /**
3149
+ * Creates a deep clone of this proto. No data is shared with the original.
3150
+ * @return {!proto.sniipemailimportapi.MicrosoftNotificationRequest} The clone.
3151
+ */
3152
+ proto.sniipemailimportapi.MicrosoftNotificationRequest.prototype.cloneMessage = function() {
3153
+ return /** @type {!proto.sniipemailimportapi.MicrosoftNotificationRequest} */ (jspb.Message.cloneMessage(this));
3154
+ };
3155
+
3156
+
3157
+ /**
3158
+ * repeated MicrosoftNotification value = 1;
3159
+ * If you change this array by adding, removing or replacing elements, or if you
3160
+ * replace the array itself, then you must call the setter to update it.
3161
+ * @return {!Array.<!proto.sniipemailimportapi.MicrosoftNotification>}
3162
+ */
3163
+ proto.sniipemailimportapi.MicrosoftNotificationRequest.prototype.getValueList = function() {
3164
+ return /** @type{!Array.<!proto.sniipemailimportapi.MicrosoftNotification>} */ (
3165
+ jspb.Message.getRepeatedWrapperField(this, proto.sniipemailimportapi.MicrosoftNotification, 1));
3166
+ };
3167
+
3168
+
3169
+ /** @param {Array.<!proto.sniipemailimportapi.MicrosoftNotification>} value */
3170
+ proto.sniipemailimportapi.MicrosoftNotificationRequest.prototype.setValueList = function(value) {
3171
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
3172
+ };
3173
+
3174
+
3175
+ proto.sniipemailimportapi.MicrosoftNotificationRequest.prototype.clearValueList = function() {
3176
+ this.setValueList([]);
3177
+ };
3178
+
3179
+
3180
+
2637
3181
  /**
2638
3182
  * Generated by JsPbCodeGenerator.
2639
3183
  * @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.1686",
3
+ "version": "0.2.1696",
4
4
  "description": "email-import-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",