protobuf-platform 1.1.31 → 1.1.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.1.31",
3
+ "version": "1.1.33",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -47,6 +47,9 @@ service User {
47
47
  rpc uploadSumSubDocument(stream SumSubDocumentRequest) returns (SumSubResponse);
48
48
  //Tournaments
49
49
  rpc getInfoForTournamentRules(UserDataRequest) returns (TournamentRulesInfoResponse);
50
+ //Confirmations
51
+ rpc attemptEmailConfirmation(EmailConfirmationRequest) returns (ConfirmationStatusResponse);
52
+ rpc setEmailConfirmed(EmailConfirmedRequest) returns (ConfirmationStatusResponse);
50
53
  }
51
54
  //Technical
52
55
  message PingRequest { string ping = 1; }
@@ -386,4 +389,14 @@ message TournamentRulesInfoResponse {
386
389
  optional int32 ranking_points = 5;
387
390
  optional int32 loyalty_points = 6;
388
391
  optional int32 coins = 7;
392
+ }
393
+ //Confirmations
394
+ message EmailConfirmationRequest {
395
+ int32 user_id = 1;
396
+ }
397
+ message ConfirmationStatusResponse {
398
+ string status = 1;
399
+ }
400
+ message EmailConfirmedRequest {
401
+ string token = 1;
389
402
  }
@@ -15,6 +15,17 @@ function deserialize_user_CategoryItemsResponse(buffer_arg) {
15
15
  return user_pb.CategoryItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
16
16
  }
17
17
 
18
+ function serialize_user_ConfirmationStatusResponse(arg) {
19
+ if (!(arg instanceof user_pb.ConfirmationStatusResponse)) {
20
+ throw new Error('Expected argument of type user.ConfirmationStatusResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_user_ConfirmationStatusResponse(buffer_arg) {
26
+ return user_pb.ConfirmationStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
18
29
  function serialize_user_DashboardRequest(arg) {
19
30
  if (!(arg instanceof user_pb.DashboardRequest)) {
20
31
  throw new Error('Expected argument of type user.DashboardRequest');
@@ -37,6 +48,28 @@ function deserialize_user_DashboardResponse(buffer_arg) {
37
48
  return user_pb.DashboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
38
49
  }
39
50
 
51
+ function serialize_user_EmailConfirmationRequest(arg) {
52
+ if (!(arg instanceof user_pb.EmailConfirmationRequest)) {
53
+ throw new Error('Expected argument of type user.EmailConfirmationRequest');
54
+ }
55
+ return Buffer.from(arg.serializeBinary());
56
+ }
57
+
58
+ function deserialize_user_EmailConfirmationRequest(buffer_arg) {
59
+ return user_pb.EmailConfirmationRequest.deserializeBinary(new Uint8Array(buffer_arg));
60
+ }
61
+
62
+ function serialize_user_EmailConfirmedRequest(arg) {
63
+ if (!(arg instanceof user_pb.EmailConfirmedRequest)) {
64
+ throw new Error('Expected argument of type user.EmailConfirmedRequest');
65
+ }
66
+ return Buffer.from(arg.serializeBinary());
67
+ }
68
+
69
+ function deserialize_user_EmailConfirmedRequest(buffer_arg) {
70
+ return user_pb.EmailConfirmedRequest.deserializeBinary(new Uint8Array(buffer_arg));
71
+ }
72
+
40
73
  function serialize_user_GetNoteRequest(arg) {
41
74
  if (!(arg instanceof user_pb.GetNoteRequest)) {
42
75
  throw new Error('Expected argument of type user.GetNoteRequest');
@@ -788,6 +821,29 @@ getInfoForTournamentRules: {
788
821
  responseSerialize: serialize_user_TournamentRulesInfoResponse,
789
822
  responseDeserialize: deserialize_user_TournamentRulesInfoResponse,
790
823
  },
824
+ // Confirmations
825
+ attemptEmailConfirmation: {
826
+ path: '/user.User/attemptEmailConfirmation',
827
+ requestStream: false,
828
+ responseStream: false,
829
+ requestType: user_pb.EmailConfirmationRequest,
830
+ responseType: user_pb.ConfirmationStatusResponse,
831
+ requestSerialize: serialize_user_EmailConfirmationRequest,
832
+ requestDeserialize: deserialize_user_EmailConfirmationRequest,
833
+ responseSerialize: serialize_user_ConfirmationStatusResponse,
834
+ responseDeserialize: deserialize_user_ConfirmationStatusResponse,
835
+ },
836
+ setEmailConfirmed: {
837
+ path: '/user.User/setEmailConfirmed',
838
+ requestStream: false,
839
+ responseStream: false,
840
+ requestType: user_pb.EmailConfirmedRequest,
841
+ responseType: user_pb.ConfirmationStatusResponse,
842
+ requestSerialize: serialize_user_EmailConfirmedRequest,
843
+ requestDeserialize: deserialize_user_EmailConfirmedRequest,
844
+ responseSerialize: serialize_user_ConfirmationStatusResponse,
845
+ responseDeserialize: deserialize_user_ConfirmationStatusResponse,
846
+ },
791
847
  };
792
848
 
793
849
  exports.UserClient = grpc.makeGenericClientConstructor(UserService);
package/user/user_pb.js CHANGED
@@ -23,8 +23,11 @@ var global = (function() {
23
23
 
24
24
  goog.exportSymbol('proto.user.CategoryItem', null, global);
25
25
  goog.exportSymbol('proto.user.CategoryItemsResponse', null, global);
26
+ goog.exportSymbol('proto.user.ConfirmationStatusResponse', null, global);
26
27
  goog.exportSymbol('proto.user.DashboardRequest', null, global);
27
28
  goog.exportSymbol('proto.user.DashboardResponse', null, global);
29
+ goog.exportSymbol('proto.user.EmailConfirmationRequest', null, global);
30
+ goog.exportSymbol('proto.user.EmailConfirmedRequest', null, global);
28
31
  goog.exportSymbol('proto.user.File', null, global);
29
32
  goog.exportSymbol('proto.user.GetNoteRequest', null, global);
30
33
  goog.exportSymbol('proto.user.GetRoleRequest', null, global);
@@ -1056,6 +1059,69 @@ if (goog.DEBUG && !COMPILED) {
1056
1059
  */
1057
1060
  proto.user.TournamentRulesInfoResponse.displayName = 'proto.user.TournamentRulesInfoResponse';
1058
1061
  }
1062
+ /**
1063
+ * Generated by JsPbCodeGenerator.
1064
+ * @param {Array=} opt_data Optional initial data array, typically from a
1065
+ * server response, or constructed directly in Javascript. The array is used
1066
+ * in place and becomes part of the constructed object. It is not cloned.
1067
+ * If no data is provided, the constructed object will be empty, but still
1068
+ * valid.
1069
+ * @extends {jspb.Message}
1070
+ * @constructor
1071
+ */
1072
+ proto.user.EmailConfirmationRequest = function(opt_data) {
1073
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1074
+ };
1075
+ goog.inherits(proto.user.EmailConfirmationRequest, jspb.Message);
1076
+ if (goog.DEBUG && !COMPILED) {
1077
+ /**
1078
+ * @public
1079
+ * @override
1080
+ */
1081
+ proto.user.EmailConfirmationRequest.displayName = 'proto.user.EmailConfirmationRequest';
1082
+ }
1083
+ /**
1084
+ * Generated by JsPbCodeGenerator.
1085
+ * @param {Array=} opt_data Optional initial data array, typically from a
1086
+ * server response, or constructed directly in Javascript. The array is used
1087
+ * in place and becomes part of the constructed object. It is not cloned.
1088
+ * If no data is provided, the constructed object will be empty, but still
1089
+ * valid.
1090
+ * @extends {jspb.Message}
1091
+ * @constructor
1092
+ */
1093
+ proto.user.ConfirmationStatusResponse = function(opt_data) {
1094
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1095
+ };
1096
+ goog.inherits(proto.user.ConfirmationStatusResponse, jspb.Message);
1097
+ if (goog.DEBUG && !COMPILED) {
1098
+ /**
1099
+ * @public
1100
+ * @override
1101
+ */
1102
+ proto.user.ConfirmationStatusResponse.displayName = 'proto.user.ConfirmationStatusResponse';
1103
+ }
1104
+ /**
1105
+ * Generated by JsPbCodeGenerator.
1106
+ * @param {Array=} opt_data Optional initial data array, typically from a
1107
+ * server response, or constructed directly in Javascript. The array is used
1108
+ * in place and becomes part of the constructed object. It is not cloned.
1109
+ * If no data is provided, the constructed object will be empty, but still
1110
+ * valid.
1111
+ * @extends {jspb.Message}
1112
+ * @constructor
1113
+ */
1114
+ proto.user.EmailConfirmedRequest = function(opt_data) {
1115
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1116
+ };
1117
+ goog.inherits(proto.user.EmailConfirmedRequest, jspb.Message);
1118
+ if (goog.DEBUG && !COMPILED) {
1119
+ /**
1120
+ * @public
1121
+ * @override
1122
+ */
1123
+ proto.user.EmailConfirmedRequest.displayName = 'proto.user.EmailConfirmedRequest';
1124
+ }
1059
1125
 
1060
1126
 
1061
1127
 
@@ -16503,4 +16569,394 @@ proto.user.TournamentRulesInfoResponse.prototype.hasCoins = function() {
16503
16569
  };
16504
16570
 
16505
16571
 
16572
+
16573
+
16574
+
16575
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16576
+ /**
16577
+ * Creates an object representation of this proto.
16578
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16579
+ * Optional fields that are not set will be set to undefined.
16580
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16581
+ * For the list of reserved names please see:
16582
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16583
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16584
+ * JSPB instance for transitional soy proto support:
16585
+ * http://goto/soy-param-migration
16586
+ * @return {!Object}
16587
+ */
16588
+ proto.user.EmailConfirmationRequest.prototype.toObject = function(opt_includeInstance) {
16589
+ return proto.user.EmailConfirmationRequest.toObject(opt_includeInstance, this);
16590
+ };
16591
+
16592
+
16593
+ /**
16594
+ * Static version of the {@see toObject} method.
16595
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16596
+ * the JSPB instance for transitional soy proto support:
16597
+ * http://goto/soy-param-migration
16598
+ * @param {!proto.user.EmailConfirmationRequest} msg The msg instance to transform.
16599
+ * @return {!Object}
16600
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16601
+ */
16602
+ proto.user.EmailConfirmationRequest.toObject = function(includeInstance, msg) {
16603
+ var f, obj = {
16604
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
16605
+ };
16606
+
16607
+ if (includeInstance) {
16608
+ obj.$jspbMessageInstance = msg;
16609
+ }
16610
+ return obj;
16611
+ };
16612
+ }
16613
+
16614
+
16615
+ /**
16616
+ * Deserializes binary data (in protobuf wire format).
16617
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16618
+ * @return {!proto.user.EmailConfirmationRequest}
16619
+ */
16620
+ proto.user.EmailConfirmationRequest.deserializeBinary = function(bytes) {
16621
+ var reader = new jspb.BinaryReader(bytes);
16622
+ var msg = new proto.user.EmailConfirmationRequest;
16623
+ return proto.user.EmailConfirmationRequest.deserializeBinaryFromReader(msg, reader);
16624
+ };
16625
+
16626
+
16627
+ /**
16628
+ * Deserializes binary data (in protobuf wire format) from the
16629
+ * given reader into the given message object.
16630
+ * @param {!proto.user.EmailConfirmationRequest} msg The message object to deserialize into.
16631
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16632
+ * @return {!proto.user.EmailConfirmationRequest}
16633
+ */
16634
+ proto.user.EmailConfirmationRequest.deserializeBinaryFromReader = function(msg, reader) {
16635
+ while (reader.nextField()) {
16636
+ if (reader.isEndGroup()) {
16637
+ break;
16638
+ }
16639
+ var field = reader.getFieldNumber();
16640
+ switch (field) {
16641
+ case 1:
16642
+ var value = /** @type {number} */ (reader.readInt32());
16643
+ msg.setUserId(value);
16644
+ break;
16645
+ default:
16646
+ reader.skipField();
16647
+ break;
16648
+ }
16649
+ }
16650
+ return msg;
16651
+ };
16652
+
16653
+
16654
+ /**
16655
+ * Serializes the message to binary data (in protobuf wire format).
16656
+ * @return {!Uint8Array}
16657
+ */
16658
+ proto.user.EmailConfirmationRequest.prototype.serializeBinary = function() {
16659
+ var writer = new jspb.BinaryWriter();
16660
+ proto.user.EmailConfirmationRequest.serializeBinaryToWriter(this, writer);
16661
+ return writer.getResultBuffer();
16662
+ };
16663
+
16664
+
16665
+ /**
16666
+ * Serializes the given message to binary data (in protobuf wire
16667
+ * format), writing to the given BinaryWriter.
16668
+ * @param {!proto.user.EmailConfirmationRequest} message
16669
+ * @param {!jspb.BinaryWriter} writer
16670
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16671
+ */
16672
+ proto.user.EmailConfirmationRequest.serializeBinaryToWriter = function(message, writer) {
16673
+ var f = undefined;
16674
+ f = message.getUserId();
16675
+ if (f !== 0) {
16676
+ writer.writeInt32(
16677
+ 1,
16678
+ f
16679
+ );
16680
+ }
16681
+ };
16682
+
16683
+
16684
+ /**
16685
+ * optional int32 user_id = 1;
16686
+ * @return {number}
16687
+ */
16688
+ proto.user.EmailConfirmationRequest.prototype.getUserId = function() {
16689
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
16690
+ };
16691
+
16692
+
16693
+ /**
16694
+ * @param {number} value
16695
+ * @return {!proto.user.EmailConfirmationRequest} returns this
16696
+ */
16697
+ proto.user.EmailConfirmationRequest.prototype.setUserId = function(value) {
16698
+ return jspb.Message.setProto3IntField(this, 1, value);
16699
+ };
16700
+
16701
+
16702
+
16703
+
16704
+
16705
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16706
+ /**
16707
+ * Creates an object representation of this proto.
16708
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16709
+ * Optional fields that are not set will be set to undefined.
16710
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16711
+ * For the list of reserved names please see:
16712
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16713
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16714
+ * JSPB instance for transitional soy proto support:
16715
+ * http://goto/soy-param-migration
16716
+ * @return {!Object}
16717
+ */
16718
+ proto.user.ConfirmationStatusResponse.prototype.toObject = function(opt_includeInstance) {
16719
+ return proto.user.ConfirmationStatusResponse.toObject(opt_includeInstance, this);
16720
+ };
16721
+
16722
+
16723
+ /**
16724
+ * Static version of the {@see toObject} method.
16725
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16726
+ * the JSPB instance for transitional soy proto support:
16727
+ * http://goto/soy-param-migration
16728
+ * @param {!proto.user.ConfirmationStatusResponse} msg The msg instance to transform.
16729
+ * @return {!Object}
16730
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16731
+ */
16732
+ proto.user.ConfirmationStatusResponse.toObject = function(includeInstance, msg) {
16733
+ var f, obj = {
16734
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
16735
+ };
16736
+
16737
+ if (includeInstance) {
16738
+ obj.$jspbMessageInstance = msg;
16739
+ }
16740
+ return obj;
16741
+ };
16742
+ }
16743
+
16744
+
16745
+ /**
16746
+ * Deserializes binary data (in protobuf wire format).
16747
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16748
+ * @return {!proto.user.ConfirmationStatusResponse}
16749
+ */
16750
+ proto.user.ConfirmationStatusResponse.deserializeBinary = function(bytes) {
16751
+ var reader = new jspb.BinaryReader(bytes);
16752
+ var msg = new proto.user.ConfirmationStatusResponse;
16753
+ return proto.user.ConfirmationStatusResponse.deserializeBinaryFromReader(msg, reader);
16754
+ };
16755
+
16756
+
16757
+ /**
16758
+ * Deserializes binary data (in protobuf wire format) from the
16759
+ * given reader into the given message object.
16760
+ * @param {!proto.user.ConfirmationStatusResponse} msg The message object to deserialize into.
16761
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16762
+ * @return {!proto.user.ConfirmationStatusResponse}
16763
+ */
16764
+ proto.user.ConfirmationStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
16765
+ while (reader.nextField()) {
16766
+ if (reader.isEndGroup()) {
16767
+ break;
16768
+ }
16769
+ var field = reader.getFieldNumber();
16770
+ switch (field) {
16771
+ case 1:
16772
+ var value = /** @type {string} */ (reader.readString());
16773
+ msg.setStatus(value);
16774
+ break;
16775
+ default:
16776
+ reader.skipField();
16777
+ break;
16778
+ }
16779
+ }
16780
+ return msg;
16781
+ };
16782
+
16783
+
16784
+ /**
16785
+ * Serializes the message to binary data (in protobuf wire format).
16786
+ * @return {!Uint8Array}
16787
+ */
16788
+ proto.user.ConfirmationStatusResponse.prototype.serializeBinary = function() {
16789
+ var writer = new jspb.BinaryWriter();
16790
+ proto.user.ConfirmationStatusResponse.serializeBinaryToWriter(this, writer);
16791
+ return writer.getResultBuffer();
16792
+ };
16793
+
16794
+
16795
+ /**
16796
+ * Serializes the given message to binary data (in protobuf wire
16797
+ * format), writing to the given BinaryWriter.
16798
+ * @param {!proto.user.ConfirmationStatusResponse} message
16799
+ * @param {!jspb.BinaryWriter} writer
16800
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16801
+ */
16802
+ proto.user.ConfirmationStatusResponse.serializeBinaryToWriter = function(message, writer) {
16803
+ var f = undefined;
16804
+ f = message.getStatus();
16805
+ if (f.length > 0) {
16806
+ writer.writeString(
16807
+ 1,
16808
+ f
16809
+ );
16810
+ }
16811
+ };
16812
+
16813
+
16814
+ /**
16815
+ * optional string status = 1;
16816
+ * @return {string}
16817
+ */
16818
+ proto.user.ConfirmationStatusResponse.prototype.getStatus = function() {
16819
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16820
+ };
16821
+
16822
+
16823
+ /**
16824
+ * @param {string} value
16825
+ * @return {!proto.user.ConfirmationStatusResponse} returns this
16826
+ */
16827
+ proto.user.ConfirmationStatusResponse.prototype.setStatus = function(value) {
16828
+ return jspb.Message.setProto3StringField(this, 1, value);
16829
+ };
16830
+
16831
+
16832
+
16833
+
16834
+
16835
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16836
+ /**
16837
+ * Creates an object representation of this proto.
16838
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16839
+ * Optional fields that are not set will be set to undefined.
16840
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16841
+ * For the list of reserved names please see:
16842
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16843
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16844
+ * JSPB instance for transitional soy proto support:
16845
+ * http://goto/soy-param-migration
16846
+ * @return {!Object}
16847
+ */
16848
+ proto.user.EmailConfirmedRequest.prototype.toObject = function(opt_includeInstance) {
16849
+ return proto.user.EmailConfirmedRequest.toObject(opt_includeInstance, this);
16850
+ };
16851
+
16852
+
16853
+ /**
16854
+ * Static version of the {@see toObject} method.
16855
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16856
+ * the JSPB instance for transitional soy proto support:
16857
+ * http://goto/soy-param-migration
16858
+ * @param {!proto.user.EmailConfirmedRequest} msg The msg instance to transform.
16859
+ * @return {!Object}
16860
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16861
+ */
16862
+ proto.user.EmailConfirmedRequest.toObject = function(includeInstance, msg) {
16863
+ var f, obj = {
16864
+ token: jspb.Message.getFieldWithDefault(msg, 1, "")
16865
+ };
16866
+
16867
+ if (includeInstance) {
16868
+ obj.$jspbMessageInstance = msg;
16869
+ }
16870
+ return obj;
16871
+ };
16872
+ }
16873
+
16874
+
16875
+ /**
16876
+ * Deserializes binary data (in protobuf wire format).
16877
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16878
+ * @return {!proto.user.EmailConfirmedRequest}
16879
+ */
16880
+ proto.user.EmailConfirmedRequest.deserializeBinary = function(bytes) {
16881
+ var reader = new jspb.BinaryReader(bytes);
16882
+ var msg = new proto.user.EmailConfirmedRequest;
16883
+ return proto.user.EmailConfirmedRequest.deserializeBinaryFromReader(msg, reader);
16884
+ };
16885
+
16886
+
16887
+ /**
16888
+ * Deserializes binary data (in protobuf wire format) from the
16889
+ * given reader into the given message object.
16890
+ * @param {!proto.user.EmailConfirmedRequest} msg The message object to deserialize into.
16891
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16892
+ * @return {!proto.user.EmailConfirmedRequest}
16893
+ */
16894
+ proto.user.EmailConfirmedRequest.deserializeBinaryFromReader = function(msg, reader) {
16895
+ while (reader.nextField()) {
16896
+ if (reader.isEndGroup()) {
16897
+ break;
16898
+ }
16899
+ var field = reader.getFieldNumber();
16900
+ switch (field) {
16901
+ case 1:
16902
+ var value = /** @type {string} */ (reader.readString());
16903
+ msg.setToken(value);
16904
+ break;
16905
+ default:
16906
+ reader.skipField();
16907
+ break;
16908
+ }
16909
+ }
16910
+ return msg;
16911
+ };
16912
+
16913
+
16914
+ /**
16915
+ * Serializes the message to binary data (in protobuf wire format).
16916
+ * @return {!Uint8Array}
16917
+ */
16918
+ proto.user.EmailConfirmedRequest.prototype.serializeBinary = function() {
16919
+ var writer = new jspb.BinaryWriter();
16920
+ proto.user.EmailConfirmedRequest.serializeBinaryToWriter(this, writer);
16921
+ return writer.getResultBuffer();
16922
+ };
16923
+
16924
+
16925
+ /**
16926
+ * Serializes the given message to binary data (in protobuf wire
16927
+ * format), writing to the given BinaryWriter.
16928
+ * @param {!proto.user.EmailConfirmedRequest} message
16929
+ * @param {!jspb.BinaryWriter} writer
16930
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16931
+ */
16932
+ proto.user.EmailConfirmedRequest.serializeBinaryToWriter = function(message, writer) {
16933
+ var f = undefined;
16934
+ f = message.getToken();
16935
+ if (f.length > 0) {
16936
+ writer.writeString(
16937
+ 1,
16938
+ f
16939
+ );
16940
+ }
16941
+ };
16942
+
16943
+
16944
+ /**
16945
+ * optional string token = 1;
16946
+ * @return {string}
16947
+ */
16948
+ proto.user.EmailConfirmedRequest.prototype.getToken = function() {
16949
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16950
+ };
16951
+
16952
+
16953
+ /**
16954
+ * @param {string} value
16955
+ * @return {!proto.user.EmailConfirmedRequest} returns this
16956
+ */
16957
+ proto.user.EmailConfirmedRequest.prototype.setToken = function(value) {
16958
+ return jspb.Message.setProto3StringField(this, 1, value);
16959
+ };
16960
+
16961
+
16506
16962
  goog.object.extend(exports, proto.user);