@sniipwebmaster/email-import-service-client-grpcweb 0.2.658 → 0.2.667
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.
- package/dependancies/service_pb.js +429 -223
- package/package.json +1 -1
|
@@ -14,8 +14,9 @@ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb
|
|
|
14
14
|
goog.exportSymbol('proto.sniipemailimportapi.AuthRequest', null, global);
|
|
15
15
|
goog.exportSymbol('proto.sniipemailimportapi.AuthResponse', null, global);
|
|
16
16
|
goog.exportSymbol('proto.sniipemailimportapi.AutomaticSyncRequest', null, global);
|
|
17
|
+
goog.exportSymbol('proto.sniipemailimportapi.ConnectedEmail', null, global);
|
|
18
|
+
goog.exportSymbol('proto.sniipemailimportapi.EmailProviders', null, global);
|
|
17
19
|
goog.exportSymbol('proto.sniipemailimportapi.GetConnectedEmailsResponse', null, global);
|
|
18
|
-
goog.exportSymbol('proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage', null, global);
|
|
19
20
|
goog.exportSymbol('proto.sniipemailimportapi.MakeAuthRequestRequest', null, global);
|
|
20
21
|
goog.exportSymbol('proto.sniipemailimportapi.RemoveTokenRequest', null, global);
|
|
21
22
|
goog.exportSymbol('proto.sniipemailimportapi.ResponseCode', null, global);
|
|
@@ -663,20 +664,13 @@ proto.sniipemailimportapi.AutomaticSyncRequest.prototype.setAutomaticsync = func
|
|
|
663
664
|
* @extends {jspb.Message}
|
|
664
665
|
* @constructor
|
|
665
666
|
*/
|
|
666
|
-
proto.sniipemailimportapi.
|
|
667
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
667
|
+
proto.sniipemailimportapi.ConnectedEmail = function(opt_data) {
|
|
668
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
668
669
|
};
|
|
669
|
-
goog.inherits(proto.sniipemailimportapi.
|
|
670
|
+
goog.inherits(proto.sniipemailimportapi.ConnectedEmail, jspb.Message);
|
|
670
671
|
if (goog.DEBUG && !COMPILED) {
|
|
671
|
-
proto.sniipemailimportapi.
|
|
672
|
+
proto.sniipemailimportapi.ConnectedEmail.displayName = 'proto.sniipemailimportapi.ConnectedEmail';
|
|
672
673
|
}
|
|
673
|
-
/**
|
|
674
|
-
* List of repeated fields within this message type.
|
|
675
|
-
* @private {!Array<number>}
|
|
676
|
-
* @const
|
|
677
|
-
*/
|
|
678
|
-
proto.sniipemailimportapi.GetConnectedEmailsResponse.repeatedFields_ = [2];
|
|
679
|
-
|
|
680
674
|
|
|
681
675
|
|
|
682
676
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -690,8 +684,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
690
684
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
691
685
|
* @return {!Object}
|
|
692
686
|
*/
|
|
693
|
-
proto.sniipemailimportapi.
|
|
694
|
-
return proto.sniipemailimportapi.
|
|
687
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.toObject = function(opt_includeInstance) {
|
|
688
|
+
return proto.sniipemailimportapi.ConnectedEmail.toObject(opt_includeInstance, this);
|
|
695
689
|
};
|
|
696
690
|
|
|
697
691
|
|
|
@@ -700,15 +694,18 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.toObject = functi
|
|
|
700
694
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
701
695
|
* instance for transitional soy proto support:
|
|
702
696
|
* http://goto/soy-param-migration
|
|
703
|
-
* @param {!proto.sniipemailimportapi.
|
|
697
|
+
* @param {!proto.sniipemailimportapi.ConnectedEmail} msg The msg instance to transform.
|
|
704
698
|
* @return {!Object}
|
|
705
699
|
*/
|
|
706
|
-
proto.sniipemailimportapi.
|
|
700
|
+
proto.sniipemailimportapi.ConnectedEmail.toObject = function(includeInstance, msg) {
|
|
707
701
|
var f, obj = {
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
702
|
+
email: msg.getEmail(),
|
|
703
|
+
lastsyncedtime: msg.getLastsyncedtime(),
|
|
704
|
+
provider: msg.getProvider(),
|
|
705
|
+
tokenid: msg.getTokenid(),
|
|
706
|
+
automaticsync: msg.getAutomaticsync(),
|
|
707
|
+
lastrequesttime: msg.getLastrequesttime(),
|
|
708
|
+
syncinprogress: msg.getSyncinprogress()
|
|
712
709
|
};
|
|
713
710
|
|
|
714
711
|
if (includeInstance) {
|
|
@@ -722,23 +719,23 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.toObject = function(include
|
|
|
722
719
|
/**
|
|
723
720
|
* Deserializes binary data (in protobuf wire format).
|
|
724
721
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
725
|
-
* @return {!proto.sniipemailimportapi.
|
|
722
|
+
* @return {!proto.sniipemailimportapi.ConnectedEmail}
|
|
726
723
|
*/
|
|
727
|
-
proto.sniipemailimportapi.
|
|
724
|
+
proto.sniipemailimportapi.ConnectedEmail.deserializeBinary = function(bytes) {
|
|
728
725
|
var reader = new jspb.BinaryReader(bytes);
|
|
729
|
-
var msg = new proto.sniipemailimportapi.
|
|
730
|
-
return proto.sniipemailimportapi.
|
|
726
|
+
var msg = new proto.sniipemailimportapi.ConnectedEmail;
|
|
727
|
+
return proto.sniipemailimportapi.ConnectedEmail.deserializeBinaryFromReader(msg, reader);
|
|
731
728
|
};
|
|
732
729
|
|
|
733
730
|
|
|
734
731
|
/**
|
|
735
732
|
* Deserializes binary data (in protobuf wire format) from the
|
|
736
733
|
* given reader into the given message object.
|
|
737
|
-
* @param {!proto.sniipemailimportapi.
|
|
734
|
+
* @param {!proto.sniipemailimportapi.ConnectedEmail} msg The message object to deserialize into.
|
|
738
735
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
739
|
-
* @return {!proto.sniipemailimportapi.
|
|
736
|
+
* @return {!proto.sniipemailimportapi.ConnectedEmail}
|
|
740
737
|
*/
|
|
741
|
-
proto.sniipemailimportapi.
|
|
738
|
+
proto.sniipemailimportapi.ConnectedEmail.deserializeBinaryFromReader = function(msg, reader) {
|
|
742
739
|
while (reader.nextField()) {
|
|
743
740
|
if (reader.isEndGroup()) {
|
|
744
741
|
break;
|
|
@@ -746,19 +743,32 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.deserializeBinaryFromReader
|
|
|
746
743
|
var field = reader.getFieldNumber();
|
|
747
744
|
switch (field) {
|
|
748
745
|
case 1:
|
|
749
|
-
var value =
|
|
750
|
-
|
|
751
|
-
msg.setResponsecode(value);
|
|
746
|
+
var value = /** @type {string} */ (reader.readString());
|
|
747
|
+
msg.setEmail(value);
|
|
752
748
|
break;
|
|
753
749
|
case 2:
|
|
754
|
-
var value =
|
|
755
|
-
|
|
756
|
-
msg.getEmailsList().push(value);
|
|
757
|
-
msg.setEmailsList(msg.getEmailsList());
|
|
750
|
+
var value = /** @type {string} */ (reader.readString());
|
|
751
|
+
msg.setLastsyncedtime(value);
|
|
758
752
|
break;
|
|
759
753
|
case 3:
|
|
760
754
|
var value = /** @type {string} */ (reader.readString());
|
|
761
|
-
msg.
|
|
755
|
+
msg.setProvider(value);
|
|
756
|
+
break;
|
|
757
|
+
case 4:
|
|
758
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
759
|
+
msg.setTokenid(value);
|
|
760
|
+
break;
|
|
761
|
+
case 5:
|
|
762
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
763
|
+
msg.setAutomaticsync(value);
|
|
764
|
+
break;
|
|
765
|
+
case 6:
|
|
766
|
+
var value = /** @type {string} */ (reader.readString());
|
|
767
|
+
msg.setLastrequesttime(value);
|
|
768
|
+
break;
|
|
769
|
+
case 7:
|
|
770
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
771
|
+
msg.setSyncinprogress(value);
|
|
762
772
|
break;
|
|
763
773
|
default:
|
|
764
774
|
reader.skipField();
|
|
@@ -772,10 +782,10 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.deserializeBinaryFromReader
|
|
|
772
782
|
/**
|
|
773
783
|
* Class method variant: serializes the given message to binary data
|
|
774
784
|
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
775
|
-
* @param {!proto.sniipemailimportapi.
|
|
785
|
+
* @param {!proto.sniipemailimportapi.ConnectedEmail} message
|
|
776
786
|
* @param {!jspb.BinaryWriter} writer
|
|
777
787
|
*/
|
|
778
|
-
proto.sniipemailimportapi.
|
|
788
|
+
proto.sniipemailimportapi.ConnectedEmail.serializeBinaryToWriter = function(message, writer) {
|
|
779
789
|
message.serializeBinaryToWriter(writer);
|
|
780
790
|
};
|
|
781
791
|
|
|
@@ -784,7 +794,7 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.serializeBinaryToWriter = f
|
|
|
784
794
|
* Serializes the message to binary data (in protobuf wire format).
|
|
785
795
|
* @return {!Uint8Array}
|
|
786
796
|
*/
|
|
787
|
-
proto.sniipemailimportapi.
|
|
797
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.serializeBinary = function() {
|
|
788
798
|
var writer = new jspb.BinaryWriter();
|
|
789
799
|
this.serializeBinaryToWriter(writer);
|
|
790
800
|
return writer.getResultBuffer();
|
|
@@ -796,108 +806,175 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.serializeBinary =
|
|
|
796
806
|
* writing to the given BinaryWriter.
|
|
797
807
|
* @param {!jspb.BinaryWriter} writer
|
|
798
808
|
*/
|
|
799
|
-
proto.sniipemailimportapi.
|
|
809
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.serializeBinaryToWriter = function (writer) {
|
|
800
810
|
var f = undefined;
|
|
801
|
-
f = this.
|
|
802
|
-
if (f
|
|
803
|
-
writer.
|
|
811
|
+
f = this.getEmail();
|
|
812
|
+
if (f.length > 0) {
|
|
813
|
+
writer.writeString(
|
|
804
814
|
1,
|
|
805
|
-
f
|
|
806
|
-
proto.sniipemailimportapi.ResponseCode.serializeBinaryToWriter
|
|
815
|
+
f
|
|
807
816
|
);
|
|
808
817
|
}
|
|
809
|
-
f = this.
|
|
818
|
+
f = this.getLastsyncedtime();
|
|
810
819
|
if (f.length > 0) {
|
|
811
|
-
writer.
|
|
820
|
+
writer.writeString(
|
|
812
821
|
2,
|
|
813
|
-
f
|
|
814
|
-
proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.serializeBinaryToWriter
|
|
822
|
+
f
|
|
815
823
|
);
|
|
816
824
|
}
|
|
817
|
-
f = this.
|
|
825
|
+
f = this.getProvider();
|
|
818
826
|
if (f.length > 0) {
|
|
819
827
|
writer.writeString(
|
|
820
828
|
3,
|
|
821
829
|
f
|
|
822
830
|
);
|
|
823
831
|
}
|
|
832
|
+
f = this.getTokenid();
|
|
833
|
+
if (f !== 0) {
|
|
834
|
+
writer.writeInt64(
|
|
835
|
+
4,
|
|
836
|
+
f
|
|
837
|
+
);
|
|
838
|
+
}
|
|
839
|
+
f = this.getAutomaticsync();
|
|
840
|
+
if (f) {
|
|
841
|
+
writer.writeBool(
|
|
842
|
+
5,
|
|
843
|
+
f
|
|
844
|
+
);
|
|
845
|
+
}
|
|
846
|
+
f = this.getLastrequesttime();
|
|
847
|
+
if (f.length > 0) {
|
|
848
|
+
writer.writeString(
|
|
849
|
+
6,
|
|
850
|
+
f
|
|
851
|
+
);
|
|
852
|
+
}
|
|
853
|
+
f = this.getSyncinprogress();
|
|
854
|
+
if (f) {
|
|
855
|
+
writer.writeBool(
|
|
856
|
+
7,
|
|
857
|
+
f
|
|
858
|
+
);
|
|
859
|
+
}
|
|
824
860
|
};
|
|
825
861
|
|
|
826
862
|
|
|
827
863
|
/**
|
|
828
864
|
* Creates a deep clone of this proto. No data is shared with the original.
|
|
829
|
-
* @return {!proto.sniipemailimportapi.
|
|
865
|
+
* @return {!proto.sniipemailimportapi.ConnectedEmail} The clone.
|
|
830
866
|
*/
|
|
831
|
-
proto.sniipemailimportapi.
|
|
832
|
-
return /** @type {!proto.sniipemailimportapi.
|
|
867
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.cloneMessage = function() {
|
|
868
|
+
return /** @type {!proto.sniipemailimportapi.ConnectedEmail} */ (jspb.Message.cloneMessage(this));
|
|
833
869
|
};
|
|
834
870
|
|
|
835
871
|
|
|
836
872
|
/**
|
|
837
|
-
* optional
|
|
838
|
-
* @return {
|
|
873
|
+
* optional string email = 1;
|
|
874
|
+
* @return {string}
|
|
839
875
|
*/
|
|
840
|
-
proto.sniipemailimportapi.
|
|
841
|
-
return /** @type{
|
|
842
|
-
jspb.Message.getWrapperField(this, proto.sniipemailimportapi.ResponseCode, 1));
|
|
876
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.getEmail = function() {
|
|
877
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
|
|
843
878
|
};
|
|
844
879
|
|
|
845
880
|
|
|
846
|
-
/** @param {
|
|
847
|
-
proto.sniipemailimportapi.
|
|
848
|
-
jspb.Message.
|
|
881
|
+
/** @param {string} value */
|
|
882
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.setEmail = function(value) {
|
|
883
|
+
jspb.Message.setField(this, 1, value);
|
|
849
884
|
};
|
|
850
885
|
|
|
851
886
|
|
|
852
|
-
|
|
853
|
-
|
|
887
|
+
/**
|
|
888
|
+
* optional string lastSyncedTime = 2;
|
|
889
|
+
* @return {string}
|
|
890
|
+
*/
|
|
891
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.getLastsyncedtime = function() {
|
|
892
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
893
|
+
};
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
/** @param {string} value */
|
|
897
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.setLastsyncedtime = function(value) {
|
|
898
|
+
jspb.Message.setField(this, 2, value);
|
|
854
899
|
};
|
|
855
900
|
|
|
856
901
|
|
|
857
902
|
/**
|
|
858
|
-
*
|
|
859
|
-
* @return{
|
|
903
|
+
* optional string provider = 3;
|
|
904
|
+
* @return {string}
|
|
860
905
|
*/
|
|
861
|
-
proto.sniipemailimportapi.
|
|
862
|
-
return jspb.Message.
|
|
906
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.getProvider = function() {
|
|
907
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
|
|
908
|
+
};
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
/** @param {string} value */
|
|
912
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.setProvider = function(value) {
|
|
913
|
+
jspb.Message.setField(this, 3, value);
|
|
863
914
|
};
|
|
864
915
|
|
|
865
916
|
|
|
866
917
|
/**
|
|
867
|
-
*
|
|
868
|
-
*
|
|
869
|
-
* replace the array itself, then you must call the setter to update it.
|
|
870
|
-
* @return {!Array.<!proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage>}
|
|
918
|
+
* optional int64 tokenId = 4;
|
|
919
|
+
* @return {number}
|
|
871
920
|
*/
|
|
872
|
-
proto.sniipemailimportapi.
|
|
873
|
-
return /** @type{
|
|
874
|
-
jspb.Message.getRepeatedWrapperField(this, proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage, 2));
|
|
921
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.getTokenid = function() {
|
|
922
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
|
|
875
923
|
};
|
|
876
924
|
|
|
877
925
|
|
|
878
|
-
/** @param {
|
|
879
|
-
proto.sniipemailimportapi.
|
|
880
|
-
jspb.Message.
|
|
926
|
+
/** @param {number} value */
|
|
927
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.setTokenid = function(value) {
|
|
928
|
+
jspb.Message.setField(this, 4, value);
|
|
881
929
|
};
|
|
882
930
|
|
|
883
931
|
|
|
884
|
-
|
|
885
|
-
|
|
932
|
+
/**
|
|
933
|
+
* optional bool automaticSync = 5;
|
|
934
|
+
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
|
935
|
+
* You should avoid comparisons like {@code val === true/false} in those cases.
|
|
936
|
+
* @return {boolean}
|
|
937
|
+
*/
|
|
938
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.getAutomaticsync = function() {
|
|
939
|
+
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 5, false));
|
|
940
|
+
};
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
/** @param {boolean} value */
|
|
944
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.setAutomaticsync = function(value) {
|
|
945
|
+
jspb.Message.setField(this, 5, value);
|
|
886
946
|
};
|
|
887
947
|
|
|
888
948
|
|
|
889
949
|
/**
|
|
890
|
-
* optional string
|
|
950
|
+
* optional string lastRequestTime = 6;
|
|
891
951
|
* @return {string}
|
|
892
952
|
*/
|
|
893
|
-
proto.sniipemailimportapi.
|
|
894
|
-
return /** @type {string} */ (jspb.Message.getFieldProto3(this,
|
|
953
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.getLastrequesttime = function() {
|
|
954
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 6, ""));
|
|
895
955
|
};
|
|
896
956
|
|
|
897
957
|
|
|
898
958
|
/** @param {string} value */
|
|
899
|
-
proto.sniipemailimportapi.
|
|
900
|
-
jspb.Message.setField(this,
|
|
959
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.setLastrequesttime = function(value) {
|
|
960
|
+
jspb.Message.setField(this, 6, value);
|
|
961
|
+
};
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* optional bool syncInProgress = 7;
|
|
966
|
+
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
|
967
|
+
* You should avoid comparisons like {@code val === true/false} in those cases.
|
|
968
|
+
* @return {boolean}
|
|
969
|
+
*/
|
|
970
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.getSyncinprogress = function() {
|
|
971
|
+
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 7, false));
|
|
972
|
+
};
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
/** @param {boolean} value */
|
|
976
|
+
proto.sniipemailimportapi.ConnectedEmail.prototype.setSyncinprogress = function(value) {
|
|
977
|
+
jspb.Message.setField(this, 7, value);
|
|
901
978
|
};
|
|
902
979
|
|
|
903
980
|
|
|
@@ -912,13 +989,20 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.setAussiesusingsn
|
|
|
912
989
|
* @extends {jspb.Message}
|
|
913
990
|
* @constructor
|
|
914
991
|
*/
|
|
915
|
-
proto.sniipemailimportapi.
|
|
916
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
992
|
+
proto.sniipemailimportapi.EmailProviders = function(opt_data) {
|
|
993
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.sniipemailimportapi.EmailProviders.repeatedFields_, null);
|
|
917
994
|
};
|
|
918
|
-
goog.inherits(proto.sniipemailimportapi.
|
|
995
|
+
goog.inherits(proto.sniipemailimportapi.EmailProviders, jspb.Message);
|
|
919
996
|
if (goog.DEBUG && !COMPILED) {
|
|
920
|
-
proto.sniipemailimportapi.
|
|
997
|
+
proto.sniipemailimportapi.EmailProviders.displayName = 'proto.sniipemailimportapi.EmailProviders';
|
|
921
998
|
}
|
|
999
|
+
/**
|
|
1000
|
+
* List of repeated fields within this message type.
|
|
1001
|
+
* @private {!Array<number>}
|
|
1002
|
+
* @const
|
|
1003
|
+
*/
|
|
1004
|
+
proto.sniipemailimportapi.EmailProviders.repeatedFields_ = [2];
|
|
1005
|
+
|
|
922
1006
|
|
|
923
1007
|
|
|
924
1008
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -932,8 +1016,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
932
1016
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
933
1017
|
* @return {!Object}
|
|
934
1018
|
*/
|
|
935
|
-
proto.sniipemailimportapi.
|
|
936
|
-
return proto.sniipemailimportapi.
|
|
1019
|
+
proto.sniipemailimportapi.EmailProviders.prototype.toObject = function(opt_includeInstance) {
|
|
1020
|
+
return proto.sniipemailimportapi.EmailProviders.toObject(opt_includeInstance, this);
|
|
937
1021
|
};
|
|
938
1022
|
|
|
939
1023
|
|
|
@@ -942,18 +1026,14 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.prototype.toO
|
|
|
942
1026
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
943
1027
|
* instance for transitional soy proto support:
|
|
944
1028
|
* http://goto/soy-param-migration
|
|
945
|
-
* @param {!proto.sniipemailimportapi.
|
|
1029
|
+
* @param {!proto.sniipemailimportapi.EmailProviders} msg The msg instance to transform.
|
|
946
1030
|
* @return {!Object}
|
|
947
1031
|
*/
|
|
948
|
-
proto.sniipemailimportapi.
|
|
1032
|
+
proto.sniipemailimportapi.EmailProviders.toObject = function(includeInstance, msg) {
|
|
949
1033
|
var f, obj = {
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
tokenid: msg.getTokenid(),
|
|
954
|
-
automaticsync: msg.getAutomaticsync(),
|
|
955
|
-
lastrequesttime: msg.getLastrequesttime(),
|
|
956
|
-
syncinprogress: msg.getSyncinprogress()
|
|
1034
|
+
name: msg.getName(),
|
|
1035
|
+
emailsList: jspb.Message.toObjectList(msg.getEmailsList(),
|
|
1036
|
+
proto.sniipemailimportapi.ConnectedEmail.toObject, includeInstance)
|
|
957
1037
|
};
|
|
958
1038
|
|
|
959
1039
|
if (includeInstance) {
|
|
@@ -967,23 +1047,23 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.toObject = fu
|
|
|
967
1047
|
/**
|
|
968
1048
|
* Deserializes binary data (in protobuf wire format).
|
|
969
1049
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
970
|
-
* @return {!proto.sniipemailimportapi.
|
|
1050
|
+
* @return {!proto.sniipemailimportapi.EmailProviders}
|
|
971
1051
|
*/
|
|
972
|
-
proto.sniipemailimportapi.
|
|
1052
|
+
proto.sniipemailimportapi.EmailProviders.deserializeBinary = function(bytes) {
|
|
973
1053
|
var reader = new jspb.BinaryReader(bytes);
|
|
974
|
-
var msg = new proto.sniipemailimportapi.
|
|
975
|
-
return proto.sniipemailimportapi.
|
|
1054
|
+
var msg = new proto.sniipemailimportapi.EmailProviders;
|
|
1055
|
+
return proto.sniipemailimportapi.EmailProviders.deserializeBinaryFromReader(msg, reader);
|
|
976
1056
|
};
|
|
977
1057
|
|
|
978
1058
|
|
|
979
1059
|
/**
|
|
980
1060
|
* Deserializes binary data (in protobuf wire format) from the
|
|
981
1061
|
* given reader into the given message object.
|
|
982
|
-
* @param {!proto.sniipemailimportapi.
|
|
1062
|
+
* @param {!proto.sniipemailimportapi.EmailProviders} msg The message object to deserialize into.
|
|
983
1063
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
984
|
-
* @return {!proto.sniipemailimportapi.
|
|
1064
|
+
* @return {!proto.sniipemailimportapi.EmailProviders}
|
|
985
1065
|
*/
|
|
986
|
-
proto.sniipemailimportapi.
|
|
1066
|
+
proto.sniipemailimportapi.EmailProviders.deserializeBinaryFromReader = function(msg, reader) {
|
|
987
1067
|
while (reader.nextField()) {
|
|
988
1068
|
if (reader.isEndGroup()) {
|
|
989
1069
|
break;
|
|
@@ -992,31 +1072,13 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.deserializeBi
|
|
|
992
1072
|
switch (field) {
|
|
993
1073
|
case 1:
|
|
994
1074
|
var value = /** @type {string} */ (reader.readString());
|
|
995
|
-
msg.
|
|
1075
|
+
msg.setName(value);
|
|
996
1076
|
break;
|
|
997
1077
|
case 2:
|
|
998
|
-
var value =
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1003
|
-
msg.setProvider(value);
|
|
1004
|
-
break;
|
|
1005
|
-
case 4:
|
|
1006
|
-
var value = /** @type {number} */ (reader.readInt64());
|
|
1007
|
-
msg.setTokenid(value);
|
|
1008
|
-
break;
|
|
1009
|
-
case 5:
|
|
1010
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
1011
|
-
msg.setAutomaticsync(value);
|
|
1012
|
-
break;
|
|
1013
|
-
case 6:
|
|
1014
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1015
|
-
msg.setLastrequesttime(value);
|
|
1016
|
-
break;
|
|
1017
|
-
case 7:
|
|
1018
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
1019
|
-
msg.setSyncinprogress(value);
|
|
1078
|
+
var value = new proto.sniipemailimportapi.ConnectedEmail;
|
|
1079
|
+
reader.readMessage(value,proto.sniipemailimportapi.ConnectedEmail.deserializeBinaryFromReader);
|
|
1080
|
+
msg.getEmailsList().push(value);
|
|
1081
|
+
msg.setEmailsList(msg.getEmailsList());
|
|
1020
1082
|
break;
|
|
1021
1083
|
default:
|
|
1022
1084
|
reader.skipField();
|
|
@@ -1030,10 +1092,10 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.deserializeBi
|
|
|
1030
1092
|
/**
|
|
1031
1093
|
* Class method variant: serializes the given message to binary data
|
|
1032
1094
|
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1033
|
-
* @param {!proto.sniipemailimportapi.
|
|
1095
|
+
* @param {!proto.sniipemailimportapi.EmailProviders} message
|
|
1034
1096
|
* @param {!jspb.BinaryWriter} writer
|
|
1035
1097
|
*/
|
|
1036
|
-
proto.sniipemailimportapi.
|
|
1098
|
+
proto.sniipemailimportapi.EmailProviders.serializeBinaryToWriter = function(message, writer) {
|
|
1037
1099
|
message.serializeBinaryToWriter(writer);
|
|
1038
1100
|
};
|
|
1039
1101
|
|
|
@@ -1042,7 +1104,7 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.serializeBina
|
|
|
1042
1104
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1043
1105
|
* @return {!Uint8Array}
|
|
1044
1106
|
*/
|
|
1045
|
-
proto.sniipemailimportapi.
|
|
1107
|
+
proto.sniipemailimportapi.EmailProviders.prototype.serializeBinary = function() {
|
|
1046
1108
|
var writer = new jspb.BinaryWriter();
|
|
1047
1109
|
this.serializeBinaryToWriter(writer);
|
|
1048
1110
|
return writer.getResultBuffer();
|
|
@@ -1054,55 +1116,21 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.prototype.ser
|
|
|
1054
1116
|
* writing to the given BinaryWriter.
|
|
1055
1117
|
* @param {!jspb.BinaryWriter} writer
|
|
1056
1118
|
*/
|
|
1057
|
-
proto.sniipemailimportapi.
|
|
1119
|
+
proto.sniipemailimportapi.EmailProviders.prototype.serializeBinaryToWriter = function (writer) {
|
|
1058
1120
|
var f = undefined;
|
|
1059
|
-
f = this.
|
|
1121
|
+
f = this.getName();
|
|
1060
1122
|
if (f.length > 0) {
|
|
1061
1123
|
writer.writeString(
|
|
1062
1124
|
1,
|
|
1063
1125
|
f
|
|
1064
1126
|
);
|
|
1065
1127
|
}
|
|
1066
|
-
f = this.
|
|
1128
|
+
f = this.getEmailsList();
|
|
1067
1129
|
if (f.length > 0) {
|
|
1068
|
-
writer.
|
|
1130
|
+
writer.writeRepeatedMessage(
|
|
1069
1131
|
2,
|
|
1070
|
-
f
|
|
1071
|
-
|
|
1072
|
-
}
|
|
1073
|
-
f = this.getProvider();
|
|
1074
|
-
if (f.length > 0) {
|
|
1075
|
-
writer.writeString(
|
|
1076
|
-
3,
|
|
1077
|
-
f
|
|
1078
|
-
);
|
|
1079
|
-
}
|
|
1080
|
-
f = this.getTokenid();
|
|
1081
|
-
if (f !== 0) {
|
|
1082
|
-
writer.writeInt64(
|
|
1083
|
-
4,
|
|
1084
|
-
f
|
|
1085
|
-
);
|
|
1086
|
-
}
|
|
1087
|
-
f = this.getAutomaticsync();
|
|
1088
|
-
if (f) {
|
|
1089
|
-
writer.writeBool(
|
|
1090
|
-
5,
|
|
1091
|
-
f
|
|
1092
|
-
);
|
|
1093
|
-
}
|
|
1094
|
-
f = this.getLastrequesttime();
|
|
1095
|
-
if (f.length > 0) {
|
|
1096
|
-
writer.writeString(
|
|
1097
|
-
6,
|
|
1098
|
-
f
|
|
1099
|
-
);
|
|
1100
|
-
}
|
|
1101
|
-
f = this.getSyncinprogress();
|
|
1102
|
-
if (f) {
|
|
1103
|
-
writer.writeBool(
|
|
1104
|
-
7,
|
|
1105
|
-
f
|
|
1132
|
+
f,
|
|
1133
|
+
proto.sniipemailimportapi.ConnectedEmail.serializeBinaryToWriter
|
|
1106
1134
|
);
|
|
1107
1135
|
}
|
|
1108
1136
|
};
|
|
@@ -1110,119 +1138,297 @@ proto.sniipemailimportapi.GetConnectedEmailsResponse.EmailsMessage.prototype.ser
|
|
|
1110
1138
|
|
|
1111
1139
|
/**
|
|
1112
1140
|
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1113
|
-
* @return {!proto.sniipemailimportapi.
|
|
1141
|
+
* @return {!proto.sniipemailimportapi.EmailProviders} The clone.
|
|
1114
1142
|
*/
|
|
1115
|
-
proto.sniipemailimportapi.
|
|
1116
|
-
return /** @type {!proto.sniipemailimportapi.
|
|
1143
|
+
proto.sniipemailimportapi.EmailProviders.prototype.cloneMessage = function() {
|
|
1144
|
+
return /** @type {!proto.sniipemailimportapi.EmailProviders} */ (jspb.Message.cloneMessage(this));
|
|
1117
1145
|
};
|
|
1118
1146
|
|
|
1119
1147
|
|
|
1120
1148
|
/**
|
|
1121
|
-
* optional string
|
|
1149
|
+
* optional string name = 1;
|
|
1122
1150
|
* @return {string}
|
|
1123
1151
|
*/
|
|
1124
|
-
proto.sniipemailimportapi.
|
|
1152
|
+
proto.sniipemailimportapi.EmailProviders.prototype.getName = function() {
|
|
1125
1153
|
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
|
|
1126
1154
|
};
|
|
1127
1155
|
|
|
1128
1156
|
|
|
1129
1157
|
/** @param {string} value */
|
|
1130
|
-
proto.sniipemailimportapi.
|
|
1158
|
+
proto.sniipemailimportapi.EmailProviders.prototype.setName = function(value) {
|
|
1131
1159
|
jspb.Message.setField(this, 1, value);
|
|
1132
1160
|
};
|
|
1133
1161
|
|
|
1134
1162
|
|
|
1135
1163
|
/**
|
|
1136
|
-
*
|
|
1137
|
-
*
|
|
1164
|
+
* repeated ConnectedEmail emails = 2;
|
|
1165
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
1166
|
+
* replace the array itself, then you must call the setter to update it.
|
|
1167
|
+
* @return {!Array.<!proto.sniipemailimportapi.ConnectedEmail>}
|
|
1138
1168
|
*/
|
|
1139
|
-
proto.sniipemailimportapi.
|
|
1140
|
-
return /** @type
|
|
1169
|
+
proto.sniipemailimportapi.EmailProviders.prototype.getEmailsList = function() {
|
|
1170
|
+
return /** @type{!Array.<!proto.sniipemailimportapi.ConnectedEmail>} */ (
|
|
1171
|
+
jspb.Message.getRepeatedWrapperField(this, proto.sniipemailimportapi.ConnectedEmail, 2));
|
|
1141
1172
|
};
|
|
1142
1173
|
|
|
1143
1174
|
|
|
1144
|
-
/** @param {
|
|
1145
|
-
proto.sniipemailimportapi.
|
|
1146
|
-
jspb.Message.
|
|
1175
|
+
/** @param {Array.<!proto.sniipemailimportapi.ConnectedEmail>} value */
|
|
1176
|
+
proto.sniipemailimportapi.EmailProviders.prototype.setEmailsList = function(value) {
|
|
1177
|
+
jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
proto.sniipemailimportapi.EmailProviders.prototype.clearEmailsList = function() {
|
|
1182
|
+
this.setEmailsList([]);
|
|
1147
1183
|
};
|
|
1148
1184
|
|
|
1149
1185
|
|
|
1186
|
+
|
|
1150
1187
|
/**
|
|
1151
|
-
*
|
|
1152
|
-
* @
|
|
1188
|
+
* Generated by JsPbCodeGenerator.
|
|
1189
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1190
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1191
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1192
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1193
|
+
* valid.
|
|
1194
|
+
* @extends {jspb.Message}
|
|
1195
|
+
* @constructor
|
|
1153
1196
|
*/
|
|
1154
|
-
proto.sniipemailimportapi.GetConnectedEmailsResponse
|
|
1155
|
-
|
|
1197
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse = function(opt_data) {
|
|
1198
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.sniipemailimportapi.GetConnectedEmailsResponse.repeatedFields_, null);
|
|
1156
1199
|
};
|
|
1200
|
+
goog.inherits(proto.sniipemailimportapi.GetConnectedEmailsResponse, jspb.Message);
|
|
1201
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1202
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.displayName = 'proto.sniipemailimportapi.GetConnectedEmailsResponse';
|
|
1203
|
+
}
|
|
1204
|
+
/**
|
|
1205
|
+
* List of repeated fields within this message type.
|
|
1206
|
+
* @private {!Array<number>}
|
|
1207
|
+
* @const
|
|
1208
|
+
*/
|
|
1209
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.repeatedFields_ = [2];
|
|
1157
1210
|
|
|
1158
1211
|
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1212
|
+
|
|
1213
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1214
|
+
/**
|
|
1215
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1216
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1217
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1218
|
+
* For the list of reserved names please see:
|
|
1219
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1220
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1221
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1222
|
+
* @return {!Object}
|
|
1223
|
+
*/
|
|
1224
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1225
|
+
return proto.sniipemailimportapi.GetConnectedEmailsResponse.toObject(opt_includeInstance, this);
|
|
1162
1226
|
};
|
|
1163
1227
|
|
|
1164
1228
|
|
|
1165
1229
|
/**
|
|
1166
|
-
*
|
|
1167
|
-
* @
|
|
1230
|
+
* Static version of the {@see toObject} method.
|
|
1231
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1232
|
+
* instance for transitional soy proto support:
|
|
1233
|
+
* http://goto/soy-param-migration
|
|
1234
|
+
* @param {!proto.sniipemailimportapi.GetConnectedEmailsResponse} msg The msg instance to transform.
|
|
1235
|
+
* @return {!Object}
|
|
1168
1236
|
*/
|
|
1169
|
-
proto.sniipemailimportapi.GetConnectedEmailsResponse.
|
|
1170
|
-
|
|
1237
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.toObject = function(includeInstance, msg) {
|
|
1238
|
+
var f, obj = {
|
|
1239
|
+
responsecode: (f = msg.getResponsecode()) && proto.sniipemailimportapi.ResponseCode.toObject(includeInstance, f),
|
|
1240
|
+
providersList: jspb.Message.toObjectList(msg.getProvidersList(),
|
|
1241
|
+
proto.sniipemailimportapi.EmailProviders.toObject, includeInstance),
|
|
1242
|
+
aussiesusingsniip: msg.getAussiesusingsniip()
|
|
1243
|
+
};
|
|
1244
|
+
|
|
1245
|
+
if (includeInstance) {
|
|
1246
|
+
obj.$jspbMessageInstance = msg;
|
|
1247
|
+
}
|
|
1248
|
+
return obj;
|
|
1171
1249
|
};
|
|
1250
|
+
}
|
|
1172
1251
|
|
|
1173
1252
|
|
|
1174
|
-
/**
|
|
1175
|
-
|
|
1176
|
-
|
|
1253
|
+
/**
|
|
1254
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1255
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1256
|
+
* @return {!proto.sniipemailimportapi.GetConnectedEmailsResponse}
|
|
1257
|
+
*/
|
|
1258
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.deserializeBinary = function(bytes) {
|
|
1259
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1260
|
+
var msg = new proto.sniipemailimportapi.GetConnectedEmailsResponse;
|
|
1261
|
+
return proto.sniipemailimportapi.GetConnectedEmailsResponse.deserializeBinaryFromReader(msg, reader);
|
|
1177
1262
|
};
|
|
1178
1263
|
|
|
1179
1264
|
|
|
1180
1265
|
/**
|
|
1181
|
-
*
|
|
1182
|
-
*
|
|
1183
|
-
*
|
|
1184
|
-
* @
|
|
1266
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1267
|
+
* given reader into the given message object.
|
|
1268
|
+
* @param {!proto.sniipemailimportapi.GetConnectedEmailsResponse} msg The message object to deserialize into.
|
|
1269
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1270
|
+
* @return {!proto.sniipemailimportapi.GetConnectedEmailsResponse}
|
|
1185
1271
|
*/
|
|
1186
|
-
proto.sniipemailimportapi.GetConnectedEmailsResponse.
|
|
1187
|
-
|
|
1272
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1273
|
+
while (reader.nextField()) {
|
|
1274
|
+
if (reader.isEndGroup()) {
|
|
1275
|
+
break;
|
|
1276
|
+
}
|
|
1277
|
+
var field = reader.getFieldNumber();
|
|
1278
|
+
switch (field) {
|
|
1279
|
+
case 1:
|
|
1280
|
+
var value = new proto.sniipemailimportapi.ResponseCode;
|
|
1281
|
+
reader.readMessage(value,proto.sniipemailimportapi.ResponseCode.deserializeBinaryFromReader);
|
|
1282
|
+
msg.setResponsecode(value);
|
|
1283
|
+
break;
|
|
1284
|
+
case 2:
|
|
1285
|
+
var value = new proto.sniipemailimportapi.EmailProviders;
|
|
1286
|
+
reader.readMessage(value,proto.sniipemailimportapi.EmailProviders.deserializeBinaryFromReader);
|
|
1287
|
+
msg.getProvidersList().push(value);
|
|
1288
|
+
msg.setProvidersList(msg.getProvidersList());
|
|
1289
|
+
break;
|
|
1290
|
+
case 3:
|
|
1291
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1292
|
+
msg.setAussiesusingsniip(value);
|
|
1293
|
+
break;
|
|
1294
|
+
default:
|
|
1295
|
+
reader.skipField();
|
|
1296
|
+
break;
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
return msg;
|
|
1188
1300
|
};
|
|
1189
1301
|
|
|
1190
1302
|
|
|
1191
|
-
/**
|
|
1192
|
-
|
|
1193
|
-
|
|
1303
|
+
/**
|
|
1304
|
+
* Class method variant: serializes the given message to binary data
|
|
1305
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1306
|
+
* @param {!proto.sniipemailimportapi.GetConnectedEmailsResponse} message
|
|
1307
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1308
|
+
*/
|
|
1309
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1310
|
+
message.serializeBinaryToWriter(writer);
|
|
1194
1311
|
};
|
|
1195
1312
|
|
|
1196
1313
|
|
|
1197
1314
|
/**
|
|
1198
|
-
*
|
|
1199
|
-
* @return {
|
|
1315
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1316
|
+
* @return {!Uint8Array}
|
|
1200
1317
|
*/
|
|
1201
|
-
proto.sniipemailimportapi.GetConnectedEmailsResponse.
|
|
1202
|
-
|
|
1318
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.serializeBinary = function() {
|
|
1319
|
+
var writer = new jspb.BinaryWriter();
|
|
1320
|
+
this.serializeBinaryToWriter(writer);
|
|
1321
|
+
return writer.getResultBuffer();
|
|
1203
1322
|
};
|
|
1204
1323
|
|
|
1205
1324
|
|
|
1206
|
-
/**
|
|
1207
|
-
|
|
1208
|
-
|
|
1325
|
+
/**
|
|
1326
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1327
|
+
* writing to the given BinaryWriter.
|
|
1328
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1329
|
+
*/
|
|
1330
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.serializeBinaryToWriter = function (writer) {
|
|
1331
|
+
var f = undefined;
|
|
1332
|
+
f = this.getResponsecode();
|
|
1333
|
+
if (f != null) {
|
|
1334
|
+
writer.writeMessage(
|
|
1335
|
+
1,
|
|
1336
|
+
f,
|
|
1337
|
+
proto.sniipemailimportapi.ResponseCode.serializeBinaryToWriter
|
|
1338
|
+
);
|
|
1339
|
+
}
|
|
1340
|
+
f = this.getProvidersList();
|
|
1341
|
+
if (f.length > 0) {
|
|
1342
|
+
writer.writeRepeatedMessage(
|
|
1343
|
+
2,
|
|
1344
|
+
f,
|
|
1345
|
+
proto.sniipemailimportapi.EmailProviders.serializeBinaryToWriter
|
|
1346
|
+
);
|
|
1347
|
+
}
|
|
1348
|
+
f = this.getAussiesusingsniip();
|
|
1349
|
+
if (f.length > 0) {
|
|
1350
|
+
writer.writeString(
|
|
1351
|
+
3,
|
|
1352
|
+
f
|
|
1353
|
+
);
|
|
1354
|
+
}
|
|
1209
1355
|
};
|
|
1210
1356
|
|
|
1211
1357
|
|
|
1212
1358
|
/**
|
|
1213
|
-
*
|
|
1214
|
-
*
|
|
1215
|
-
* You should avoid comparisons like {@code val === true/false} in those cases.
|
|
1216
|
-
* @return {boolean}
|
|
1359
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1360
|
+
* @return {!proto.sniipemailimportapi.GetConnectedEmailsResponse} The clone.
|
|
1217
1361
|
*/
|
|
1218
|
-
proto.sniipemailimportapi.GetConnectedEmailsResponse.
|
|
1219
|
-
return /** @type {
|
|
1362
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.cloneMessage = function() {
|
|
1363
|
+
return /** @type {!proto.sniipemailimportapi.GetConnectedEmailsResponse} */ (jspb.Message.cloneMessage(this));
|
|
1220
1364
|
};
|
|
1221
1365
|
|
|
1222
1366
|
|
|
1223
|
-
/**
|
|
1224
|
-
|
|
1225
|
-
|
|
1367
|
+
/**
|
|
1368
|
+
* optional ResponseCode responseCode = 1;
|
|
1369
|
+
* @return {proto.sniipemailimportapi.ResponseCode}
|
|
1370
|
+
*/
|
|
1371
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.getResponsecode = function() {
|
|
1372
|
+
return /** @type{proto.sniipemailimportapi.ResponseCode} */ (
|
|
1373
|
+
jspb.Message.getWrapperField(this, proto.sniipemailimportapi.ResponseCode, 1));
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
/** @param {proto.sniipemailimportapi.ResponseCode|undefined} value */
|
|
1378
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.setResponsecode = function(value) {
|
|
1379
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
1380
|
+
};
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.clearResponsecode = function() {
|
|
1384
|
+
this.setResponsecode(undefined);
|
|
1385
|
+
};
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
* Returns whether this field is set.
|
|
1390
|
+
* @return{!boolean}
|
|
1391
|
+
*/
|
|
1392
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.hasResponsecode = function() {
|
|
1393
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1394
|
+
};
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* repeated EmailProviders providers = 2;
|
|
1399
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
1400
|
+
* replace the array itself, then you must call the setter to update it.
|
|
1401
|
+
* @return {!Array.<!proto.sniipemailimportapi.EmailProviders>}
|
|
1402
|
+
*/
|
|
1403
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.getProvidersList = function() {
|
|
1404
|
+
return /** @type{!Array.<!proto.sniipemailimportapi.EmailProviders>} */ (
|
|
1405
|
+
jspb.Message.getRepeatedWrapperField(this, proto.sniipemailimportapi.EmailProviders, 2));
|
|
1406
|
+
};
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
/** @param {Array.<!proto.sniipemailimportapi.EmailProviders>} value */
|
|
1410
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.setProvidersList = function(value) {
|
|
1411
|
+
jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
1412
|
+
};
|
|
1413
|
+
|
|
1414
|
+
|
|
1415
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.clearProvidersList = function() {
|
|
1416
|
+
this.setProvidersList([]);
|
|
1417
|
+
};
|
|
1418
|
+
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* optional string aussiesUsingSniip = 3;
|
|
1422
|
+
* @return {string}
|
|
1423
|
+
*/
|
|
1424
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.getAussiesusingsniip = function() {
|
|
1425
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
|
|
1426
|
+
};
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
/** @param {string} value */
|
|
1430
|
+
proto.sniipemailimportapi.GetConnectedEmailsResponse.prototype.setAussiesusingsniip = function(value) {
|
|
1431
|
+
jspb.Message.setField(this, 3, value);
|
|
1226
1432
|
};
|
|
1227
1433
|
|
|
1228
1434
|
|