@sniipwebmaster/email-import-service-client-grpcweb 0.2.530 → 0.2.539

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.
@@ -310,5 +310,60 @@ proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.remo
310
310
  };
311
311
 
312
312
 
313
+ /**
314
+ * @const
315
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
316
+ * !proto.sniipemailimportapi.UpdateAutomaticSyncRequest,
317
+ * !proto.sniipemailimportapi.ResponseCode>}
318
+ */
319
+ const methodInfo_SniipEmailImportAPIService_UpdateAutomaticSync = new grpc.web.AbstractClientBase.MethodInfo(
320
+ proto.sniipemailimportapi.ResponseCode,
321
+ /** @param {!proto.sniipemailimportapi.UpdateAutomaticSyncRequest} request */
322
+ function(request) {
323
+ return request.serializeBinary();
324
+ },
325
+ proto.sniipemailimportapi.ResponseCode.deserializeBinary
326
+ );
327
+
328
+
329
+ /**
330
+ * @param {!proto.sniipemailimportapi.UpdateAutomaticSyncRequest} request The
331
+ * request proto
332
+ * @param {?Object<string, string>} metadata User defined
333
+ * call metadata
334
+ * @param {function(?grpc.web.Error, ?proto.sniipemailimportapi.ResponseCode)}
335
+ * callback The callback function(error, response)
336
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipemailimportapi.ResponseCode>|undefined}
337
+ * The XHR Node Readable Stream
338
+ */
339
+ proto.sniipemailimportapi.SniipEmailImportAPIServiceClient.prototype.updateAutomaticSync =
340
+ function(request, metadata, callback) {
341
+ return this.client_.rpcCall(this.hostname_ +
342
+ '/sniipemailimportapi.SniipEmailImportAPIService/UpdateAutomaticSync',
343
+ request,
344
+ metadata || {},
345
+ methodInfo_SniipEmailImportAPIService_UpdateAutomaticSync,
346
+ callback);
347
+ };
348
+
349
+
350
+ /**
351
+ * @param {!proto.sniipemailimportapi.UpdateAutomaticSyncRequest} request The
352
+ * request proto
353
+ * @param {?Object<string, string>} metadata User defined
354
+ * call metadata
355
+ * @return {!Promise<!proto.sniipemailimportapi.ResponseCode>}
356
+ * A native promise that resolves to the response
357
+ */
358
+ proto.sniipemailimportapi.SniipEmailImportAPIServicePromiseClient.prototype.updateAutomaticSync =
359
+ function(request, metadata) {
360
+ return this.client_.unaryCall(this.hostname_ +
361
+ '/sniipemailimportapi.SniipEmailImportAPIService/UpdateAutomaticSync',
362
+ request,
363
+ metadata || {},
364
+ methodInfo_SniipEmailImportAPIService_UpdateAutomaticSync);
365
+ };
366
+
367
+
313
368
  module.exports = proto.sniipemailimportapi;
314
369
 
@@ -13,12 +13,14 @@ 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
14
  goog.exportSymbol('proto.sniipemailimportapi.AuthRequest', null, global);
15
15
  goog.exportSymbol('proto.sniipemailimportapi.AuthResponse', null, global);
16
+ goog.exportSymbol('proto.sniipemailimportapi.AutomaticSyncRequest', null, global);
16
17
  goog.exportSymbol('proto.sniipemailimportapi.GetConnectedEmailsResponse', null, global);
17
18
  goog.exportSymbol('proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage', null, global);
18
19
  goog.exportSymbol('proto.sniipemailimportapi.MakeAuthRequestRequest', null, global);
19
20
  goog.exportSymbol('proto.sniipemailimportapi.RemoveTokenRequest', null, global);
20
21
  goog.exportSymbol('proto.sniipemailimportapi.ResponseCode', null, global);
21
22
  goog.exportSymbol('proto.sniipemailimportapi.RevokeRequest', null, global);
23
+ goog.exportSymbol('proto.sniipemailimportapi.UpdateAutomaticSyncRequest', null, global);
22
24
 
23
25
  /**
24
26
  * Generated by JsPbCodeGenerator.
@@ -463,6 +465,194 @@ proto.sniipemailimportapi.AuthResponse.prototype.setRefreshtoken = function(valu
463
465
 
464
466
 
465
467
 
468
+ /**
469
+ * Generated by JsPbCodeGenerator.
470
+ * @param {Array=} opt_data Optional initial data array, typically from a
471
+ * server response, or constructed directly in Javascript. The array is used
472
+ * in place and becomes part of the constructed object. It is not cloned.
473
+ * If no data is provided, the constructed object will be empty, but still
474
+ * valid.
475
+ * @extends {jspb.Message}
476
+ * @constructor
477
+ */
478
+ proto.sniipemailimportapi.AutomaticSyncRequest = function(opt_data) {
479
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
480
+ };
481
+ goog.inherits(proto.sniipemailimportapi.AutomaticSyncRequest, jspb.Message);
482
+ if (goog.DEBUG && !COMPILED) {
483
+ proto.sniipemailimportapi.AutomaticSyncRequest.displayName = 'proto.sniipemailimportapi.AutomaticSyncRequest';
484
+ }
485
+
486
+
487
+ if (jspb.Message.GENERATE_TO_OBJECT) {
488
+ /**
489
+ * Creates an object representation of this proto suitable for use in Soy templates.
490
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
491
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
492
+ * For the list of reserved names please see:
493
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
494
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
495
+ * for transitional soy proto support: http://goto/soy-param-migration
496
+ * @return {!Object}
497
+ */
498
+ proto.sniipemailimportapi.AutomaticSyncRequest.prototype.toObject = function(opt_includeInstance) {
499
+ return proto.sniipemailimportapi.AutomaticSyncRequest.toObject(opt_includeInstance, this);
500
+ };
501
+
502
+
503
+ /**
504
+ * Static version of the {@see toObject} method.
505
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
506
+ * instance for transitional soy proto support:
507
+ * http://goto/soy-param-migration
508
+ * @param {!proto.sniipemailimportapi.AutomaticSyncRequest} msg The msg instance to transform.
509
+ * @return {!Object}
510
+ */
511
+ proto.sniipemailimportapi.AutomaticSyncRequest.toObject = function(includeInstance, msg) {
512
+ var f, obj = {
513
+ tokenid: msg.getTokenid(),
514
+ automaticsync: msg.getAutomaticsync()
515
+ };
516
+
517
+ if (includeInstance) {
518
+ obj.$jspbMessageInstance = msg;
519
+ }
520
+ return obj;
521
+ };
522
+ }
523
+
524
+
525
+ /**
526
+ * Deserializes binary data (in protobuf wire format).
527
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
528
+ * @return {!proto.sniipemailimportapi.AutomaticSyncRequest}
529
+ */
530
+ proto.sniipemailimportapi.AutomaticSyncRequest.deserializeBinary = function(bytes) {
531
+ var reader = new jspb.BinaryReader(bytes);
532
+ var msg = new proto.sniipemailimportapi.AutomaticSyncRequest;
533
+ return proto.sniipemailimportapi.AutomaticSyncRequest.deserializeBinaryFromReader(msg, reader);
534
+ };
535
+
536
+
537
+ /**
538
+ * Deserializes binary data (in protobuf wire format) from the
539
+ * given reader into the given message object.
540
+ * @param {!proto.sniipemailimportapi.AutomaticSyncRequest} msg The message object to deserialize into.
541
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
542
+ * @return {!proto.sniipemailimportapi.AutomaticSyncRequest}
543
+ */
544
+ proto.sniipemailimportapi.AutomaticSyncRequest.deserializeBinaryFromReader = function(msg, reader) {
545
+ while (reader.nextField()) {
546
+ if (reader.isEndGroup()) {
547
+ break;
548
+ }
549
+ var field = reader.getFieldNumber();
550
+ switch (field) {
551
+ case 1:
552
+ var value = /** @type {number} */ (reader.readInt64());
553
+ msg.setTokenid(value);
554
+ break;
555
+ case 2:
556
+ var value = /** @type {boolean} */ (reader.readBool());
557
+ msg.setAutomaticsync(value);
558
+ break;
559
+ default:
560
+ reader.skipField();
561
+ break;
562
+ }
563
+ }
564
+ return msg;
565
+ };
566
+
567
+
568
+ /**
569
+ * Class method variant: serializes the given message to binary data
570
+ * (in protobuf wire format), writing to the given BinaryWriter.
571
+ * @param {!proto.sniipemailimportapi.AutomaticSyncRequest} message
572
+ * @param {!jspb.BinaryWriter} writer
573
+ */
574
+ proto.sniipemailimportapi.AutomaticSyncRequest.serializeBinaryToWriter = function(message, writer) {
575
+ message.serializeBinaryToWriter(writer);
576
+ };
577
+
578
+
579
+ /**
580
+ * Serializes the message to binary data (in protobuf wire format).
581
+ * @return {!Uint8Array}
582
+ */
583
+ proto.sniipemailimportapi.AutomaticSyncRequest.prototype.serializeBinary = function() {
584
+ var writer = new jspb.BinaryWriter();
585
+ this.serializeBinaryToWriter(writer);
586
+ return writer.getResultBuffer();
587
+ };
588
+
589
+
590
+ /**
591
+ * Serializes the message to binary data (in protobuf wire format),
592
+ * writing to the given BinaryWriter.
593
+ * @param {!jspb.BinaryWriter} writer
594
+ */
595
+ proto.sniipemailimportapi.AutomaticSyncRequest.prototype.serializeBinaryToWriter = function (writer) {
596
+ var f = undefined;
597
+ f = this.getTokenid();
598
+ if (f !== 0) {
599
+ writer.writeInt64(
600
+ 1,
601
+ f
602
+ );
603
+ }
604
+ f = this.getAutomaticsync();
605
+ if (f) {
606
+ writer.writeBool(
607
+ 2,
608
+ f
609
+ );
610
+ }
611
+ };
612
+
613
+
614
+ /**
615
+ * Creates a deep clone of this proto. No data is shared with the original.
616
+ * @return {!proto.sniipemailimportapi.AutomaticSyncRequest} The clone.
617
+ */
618
+ proto.sniipemailimportapi.AutomaticSyncRequest.prototype.cloneMessage = function() {
619
+ return /** @type {!proto.sniipemailimportapi.AutomaticSyncRequest} */ (jspb.Message.cloneMessage(this));
620
+ };
621
+
622
+
623
+ /**
624
+ * optional int64 tokenId = 1;
625
+ * @return {number}
626
+ */
627
+ proto.sniipemailimportapi.AutomaticSyncRequest.prototype.getTokenid = function() {
628
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
629
+ };
630
+
631
+
632
+ /** @param {number} value */
633
+ proto.sniipemailimportapi.AutomaticSyncRequest.prototype.setTokenid = function(value) {
634
+ jspb.Message.setField(this, 1, value);
635
+ };
636
+
637
+
638
+ /**
639
+ * optional bool automaticSync = 2;
640
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
641
+ * You should avoid comparisons like {@code val === true/false} in those cases.
642
+ * @return {boolean}
643
+ */
644
+ proto.sniipemailimportapi.AutomaticSyncRequest.prototype.getAutomaticsync = function() {
645
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 2, false));
646
+ };
647
+
648
+
649
+ /** @param {boolean} value */
650
+ proto.sniipemailimportapi.AutomaticSyncRequest.prototype.setAutomaticsync = function(value) {
651
+ jspb.Message.setField(this, 2, value);
652
+ };
653
+
654
+
655
+
466
656
  /**
467
657
  * Generated by JsPbCodeGenerator.
468
658
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1677,4 +1867,180 @@ proto.sniipemailimportapi.RevokeRequest.prototype.setTokenid = function(value) {
1677
1867
  };
1678
1868
 
1679
1869
 
1870
+
1871
+ /**
1872
+ * Generated by JsPbCodeGenerator.
1873
+ * @param {Array=} opt_data Optional initial data array, typically from a
1874
+ * server response, or constructed directly in Javascript. The array is used
1875
+ * in place and becomes part of the constructed object. It is not cloned.
1876
+ * If no data is provided, the constructed object will be empty, but still
1877
+ * valid.
1878
+ * @extends {jspb.Message}
1879
+ * @constructor
1880
+ */
1881
+ proto.sniipemailimportapi.UpdateAutomaticSyncRequest = function(opt_data) {
1882
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1883
+ };
1884
+ goog.inherits(proto.sniipemailimportapi.UpdateAutomaticSyncRequest, jspb.Message);
1885
+ if (goog.DEBUG && !COMPILED) {
1886
+ proto.sniipemailimportapi.UpdateAutomaticSyncRequest.displayName = 'proto.sniipemailimportapi.UpdateAutomaticSyncRequest';
1887
+ }
1888
+
1889
+
1890
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1891
+ /**
1892
+ * Creates an object representation of this proto suitable for use in Soy templates.
1893
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1894
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1895
+ * For the list of reserved names please see:
1896
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1897
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1898
+ * for transitional soy proto support: http://goto/soy-param-migration
1899
+ * @return {!Object}
1900
+ */
1901
+ proto.sniipemailimportapi.UpdateAutomaticSyncRequest.prototype.toObject = function(opt_includeInstance) {
1902
+ return proto.sniipemailimportapi.UpdateAutomaticSyncRequest.toObject(opt_includeInstance, this);
1903
+ };
1904
+
1905
+
1906
+ /**
1907
+ * Static version of the {@see toObject} method.
1908
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1909
+ * instance for transitional soy proto support:
1910
+ * http://goto/soy-param-migration
1911
+ * @param {!proto.sniipemailimportapi.UpdateAutomaticSyncRequest} msg The msg instance to transform.
1912
+ * @return {!Object}
1913
+ */
1914
+ proto.sniipemailimportapi.UpdateAutomaticSyncRequest.toObject = function(includeInstance, msg) {
1915
+ var f, obj = {
1916
+ data: (f = msg.getData()) && proto.sniipemailimportapi.AutomaticSyncRequest.toObject(includeInstance, f)
1917
+ };
1918
+
1919
+ if (includeInstance) {
1920
+ obj.$jspbMessageInstance = msg;
1921
+ }
1922
+ return obj;
1923
+ };
1924
+ }
1925
+
1926
+
1927
+ /**
1928
+ * Deserializes binary data (in protobuf wire format).
1929
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1930
+ * @return {!proto.sniipemailimportapi.UpdateAutomaticSyncRequest}
1931
+ */
1932
+ proto.sniipemailimportapi.UpdateAutomaticSyncRequest.deserializeBinary = function(bytes) {
1933
+ var reader = new jspb.BinaryReader(bytes);
1934
+ var msg = new proto.sniipemailimportapi.UpdateAutomaticSyncRequest;
1935
+ return proto.sniipemailimportapi.UpdateAutomaticSyncRequest.deserializeBinaryFromReader(msg, reader);
1936
+ };
1937
+
1938
+
1939
+ /**
1940
+ * Deserializes binary data (in protobuf wire format) from the
1941
+ * given reader into the given message object.
1942
+ * @param {!proto.sniipemailimportapi.UpdateAutomaticSyncRequest} msg The message object to deserialize into.
1943
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1944
+ * @return {!proto.sniipemailimportapi.UpdateAutomaticSyncRequest}
1945
+ */
1946
+ proto.sniipemailimportapi.UpdateAutomaticSyncRequest.deserializeBinaryFromReader = function(msg, reader) {
1947
+ while (reader.nextField()) {
1948
+ if (reader.isEndGroup()) {
1949
+ break;
1950
+ }
1951
+ var field = reader.getFieldNumber();
1952
+ switch (field) {
1953
+ case 1:
1954
+ var value = new proto.sniipemailimportapi.AutomaticSyncRequest;
1955
+ reader.readMessage(value,proto.sniipemailimportapi.AutomaticSyncRequest.deserializeBinaryFromReader);
1956
+ msg.setData(value);
1957
+ break;
1958
+ default:
1959
+ reader.skipField();
1960
+ break;
1961
+ }
1962
+ }
1963
+ return msg;
1964
+ };
1965
+
1966
+
1967
+ /**
1968
+ * Class method variant: serializes the given message to binary data
1969
+ * (in protobuf wire format), writing to the given BinaryWriter.
1970
+ * @param {!proto.sniipemailimportapi.UpdateAutomaticSyncRequest} message
1971
+ * @param {!jspb.BinaryWriter} writer
1972
+ */
1973
+ proto.sniipemailimportapi.UpdateAutomaticSyncRequest.serializeBinaryToWriter = function(message, writer) {
1974
+ message.serializeBinaryToWriter(writer);
1975
+ };
1976
+
1977
+
1978
+ /**
1979
+ * Serializes the message to binary data (in protobuf wire format).
1980
+ * @return {!Uint8Array}
1981
+ */
1982
+ proto.sniipemailimportapi.UpdateAutomaticSyncRequest.prototype.serializeBinary = function() {
1983
+ var writer = new jspb.BinaryWriter();
1984
+ this.serializeBinaryToWriter(writer);
1985
+ return writer.getResultBuffer();
1986
+ };
1987
+
1988
+
1989
+ /**
1990
+ * Serializes the message to binary data (in protobuf wire format),
1991
+ * writing to the given BinaryWriter.
1992
+ * @param {!jspb.BinaryWriter} writer
1993
+ */
1994
+ proto.sniipemailimportapi.UpdateAutomaticSyncRequest.prototype.serializeBinaryToWriter = function (writer) {
1995
+ var f = undefined;
1996
+ f = this.getData();
1997
+ if (f != null) {
1998
+ writer.writeMessage(
1999
+ 1,
2000
+ f,
2001
+ proto.sniipemailimportapi.AutomaticSyncRequest.serializeBinaryToWriter
2002
+ );
2003
+ }
2004
+ };
2005
+
2006
+
2007
+ /**
2008
+ * Creates a deep clone of this proto. No data is shared with the original.
2009
+ * @return {!proto.sniipemailimportapi.UpdateAutomaticSyncRequest} The clone.
2010
+ */
2011
+ proto.sniipemailimportapi.UpdateAutomaticSyncRequest.prototype.cloneMessage = function() {
2012
+ return /** @type {!proto.sniipemailimportapi.UpdateAutomaticSyncRequest} */ (jspb.Message.cloneMessage(this));
2013
+ };
2014
+
2015
+
2016
+ /**
2017
+ * optional AutomaticSyncRequest data = 1;
2018
+ * @return {proto.sniipemailimportapi.AutomaticSyncRequest}
2019
+ */
2020
+ proto.sniipemailimportapi.UpdateAutomaticSyncRequest.prototype.getData = function() {
2021
+ return /** @type{proto.sniipemailimportapi.AutomaticSyncRequest} */ (
2022
+ jspb.Message.getWrapperField(this, proto.sniipemailimportapi.AutomaticSyncRequest, 1));
2023
+ };
2024
+
2025
+
2026
+ /** @param {proto.sniipemailimportapi.AutomaticSyncRequest|undefined} value */
2027
+ proto.sniipemailimportapi.UpdateAutomaticSyncRequest.prototype.setData = function(value) {
2028
+ jspb.Message.setWrapperField(this, 1, value);
2029
+ };
2030
+
2031
+
2032
+ proto.sniipemailimportapi.UpdateAutomaticSyncRequest.prototype.clearData = function() {
2033
+ this.setData(undefined);
2034
+ };
2035
+
2036
+
2037
+ /**
2038
+ * Returns whether this field is set.
2039
+ * @return{!boolean}
2040
+ */
2041
+ proto.sniipemailimportapi.UpdateAutomaticSyncRequest.prototype.hasData = function() {
2042
+ return jspb.Message.getField(this, 1) != null;
2043
+ };
2044
+
2045
+
1680
2046
  goog.object.extend(exports, proto.sniipemailimportapi);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/email-import-service-client-grpcweb",
3
- "version": "0.2.530",
3
+ "version": "0.2.539",
4
4
  "description": "email-import-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",