protobuf-platform 1.2.379 → 1.2.382

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.
@@ -1486,7 +1486,7 @@ proto.notification.PaginationRequest.prototype.hasMailTemplateSearchParams = fun
1486
1486
  * @private {!Array<number>}
1487
1487
  * @const
1488
1488
  */
1489
- proto.notification.NotificationSearchRequest.repeatedFields_ = [4];
1489
+ proto.notification.NotificationSearchRequest.repeatedFields_ = [4,10,11];
1490
1490
 
1491
1491
 
1492
1492
 
@@ -1527,7 +1527,9 @@ proto.notification.NotificationSearchRequest.toObject = function(includeInstance
1527
1527
  isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
1528
1528
  category: jspb.Message.getFieldWithDefault(msg, 7, ""),
1529
1529
  trigger: jspb.Message.getFieldWithDefault(msg, 8, ""),
1530
- search: jspb.Message.getFieldWithDefault(msg, 9, "")
1530
+ search: jspb.Message.getFieldWithDefault(msg, 9, ""),
1531
+ categoriesList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f,
1532
+ triggersList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f
1531
1533
  };
1532
1534
 
1533
1535
  if (includeInstance) {
@@ -1602,6 +1604,14 @@ proto.notification.NotificationSearchRequest.deserializeBinaryFromReader = funct
1602
1604
  var value = /** @type {string} */ (reader.readString());
1603
1605
  msg.setSearch(value);
1604
1606
  break;
1607
+ case 10:
1608
+ var value = /** @type {string} */ (reader.readString());
1609
+ msg.addCategories(value);
1610
+ break;
1611
+ case 11:
1612
+ var value = /** @type {string} */ (reader.readString());
1613
+ msg.addTriggers(value);
1614
+ break;
1605
1615
  default:
1606
1616
  reader.skipField();
1607
1617
  break;
@@ -1694,6 +1704,20 @@ proto.notification.NotificationSearchRequest.serializeBinaryToWriter = function(
1694
1704
  f
1695
1705
  );
1696
1706
  }
1707
+ f = message.getCategoriesList();
1708
+ if (f.length > 0) {
1709
+ writer.writeRepeatedString(
1710
+ 10,
1711
+ f
1712
+ );
1713
+ }
1714
+ f = message.getTriggersList();
1715
+ if (f.length > 0) {
1716
+ writer.writeRepeatedString(
1717
+ 11,
1718
+ f
1719
+ );
1720
+ }
1697
1721
  };
1698
1722
 
1699
1723
 
@@ -2022,6 +2046,80 @@ proto.notification.NotificationSearchRequest.prototype.hasSearch = function() {
2022
2046
  };
2023
2047
 
2024
2048
 
2049
+ /**
2050
+ * repeated string categories = 10;
2051
+ * @return {!Array<string>}
2052
+ */
2053
+ proto.notification.NotificationSearchRequest.prototype.getCategoriesList = function() {
2054
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 10));
2055
+ };
2056
+
2057
+
2058
+ /**
2059
+ * @param {!Array<string>} value
2060
+ * @return {!proto.notification.NotificationSearchRequest} returns this
2061
+ */
2062
+ proto.notification.NotificationSearchRequest.prototype.setCategoriesList = function(value) {
2063
+ return jspb.Message.setField(this, 10, value || []);
2064
+ };
2065
+
2066
+
2067
+ /**
2068
+ * @param {string} value
2069
+ * @param {number=} opt_index
2070
+ * @return {!proto.notification.NotificationSearchRequest} returns this
2071
+ */
2072
+ proto.notification.NotificationSearchRequest.prototype.addCategories = function(value, opt_index) {
2073
+ return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
2074
+ };
2075
+
2076
+
2077
+ /**
2078
+ * Clears the list making it empty but non-null.
2079
+ * @return {!proto.notification.NotificationSearchRequest} returns this
2080
+ */
2081
+ proto.notification.NotificationSearchRequest.prototype.clearCategoriesList = function() {
2082
+ return this.setCategoriesList([]);
2083
+ };
2084
+
2085
+
2086
+ /**
2087
+ * repeated string triggers = 11;
2088
+ * @return {!Array<string>}
2089
+ */
2090
+ proto.notification.NotificationSearchRequest.prototype.getTriggersList = function() {
2091
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 11));
2092
+ };
2093
+
2094
+
2095
+ /**
2096
+ * @param {!Array<string>} value
2097
+ * @return {!proto.notification.NotificationSearchRequest} returns this
2098
+ */
2099
+ proto.notification.NotificationSearchRequest.prototype.setTriggersList = function(value) {
2100
+ return jspb.Message.setField(this, 11, value || []);
2101
+ };
2102
+
2103
+
2104
+ /**
2105
+ * @param {string} value
2106
+ * @param {number=} opt_index
2107
+ * @return {!proto.notification.NotificationSearchRequest} returns this
2108
+ */
2109
+ proto.notification.NotificationSearchRequest.prototype.addTriggers = function(value, opt_index) {
2110
+ return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
2111
+ };
2112
+
2113
+
2114
+ /**
2115
+ * Clears the list making it empty but non-null.
2116
+ * @return {!proto.notification.NotificationSearchRequest} returns this
2117
+ */
2118
+ proto.notification.NotificationSearchRequest.prototype.clearTriggersList = function() {
2119
+ return this.setTriggersList([]);
2120
+ };
2121
+
2122
+
2025
2123
 
2026
2124
 
2027
2125
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.379",
3
+ "version": "1.2.382",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -29,6 +29,7 @@ service User {
29
29
  rpc updateSingleUser(UserRequest) returns (UserDataResponse);
30
30
  rpc updateUserPassword(UserPasswordRequest) returns (UserStatusResponse);
31
31
  rpc checkMissingProfileFields(CheckMissingProfileFieldsRequest) returns (CheckMissingProfileFieldsResponse);
32
+ rpc checkRegistrationFieldAvailability(CheckRegistrationFieldAvailabilityRequest) returns (CheckRegistrationFieldAvailabilityResponse);
32
33
  rpc updatePreDepositProfileFields(UpdatePreDepositProfileFieldsRequest) returns (UserStatusResponse);
33
34
  rpc setUserSelfExclusion(UserRequest) returns (UserStatusResponse);
34
35
  rpc updateUserBalanceAfterAction(UserActionRequest) returns (UserActionResponse);
@@ -454,6 +455,15 @@ message CheckMissingProfileFieldsRequest {
454
455
  message CheckMissingProfileFieldsResponse {
455
456
  repeated string missing_fields = 1;
456
457
  }
458
+ message CheckRegistrationFieldAvailabilityRequest {
459
+ string field = 1;
460
+ string value = 2;
461
+ }
462
+ message CheckRegistrationFieldAvailabilityResponse {
463
+ string field = 1;
464
+ string value = 2;
465
+ string status = 3;
466
+ }
457
467
  message UpdatePreDepositProfileFieldsRequest {
458
468
  int32 user_id = 1;
459
469
  optional string first_name = 2;
@@ -70,6 +70,28 @@ function deserialize_user_CheckMissingProfileFieldsResponse(buffer_arg) {
70
70
  return user_pb.CheckMissingProfileFieldsResponse.deserializeBinary(new Uint8Array(buffer_arg));
71
71
  }
72
72
 
73
+ function serialize_user_CheckRegistrationFieldAvailabilityRequest(arg) {
74
+ if (!(arg instanceof user_pb.CheckRegistrationFieldAvailabilityRequest)) {
75
+ throw new Error('Expected argument of type user.CheckRegistrationFieldAvailabilityRequest');
76
+ }
77
+ return Buffer.from(arg.serializeBinary());
78
+ }
79
+
80
+ function deserialize_user_CheckRegistrationFieldAvailabilityRequest(buffer_arg) {
81
+ return user_pb.CheckRegistrationFieldAvailabilityRequest.deserializeBinary(new Uint8Array(buffer_arg));
82
+ }
83
+
84
+ function serialize_user_CheckRegistrationFieldAvailabilityResponse(arg) {
85
+ if (!(arg instanceof user_pb.CheckRegistrationFieldAvailabilityResponse)) {
86
+ throw new Error('Expected argument of type user.CheckRegistrationFieldAvailabilityResponse');
87
+ }
88
+ return Buffer.from(arg.serializeBinary());
89
+ }
90
+
91
+ function deserialize_user_CheckRegistrationFieldAvailabilityResponse(buffer_arg) {
92
+ return user_pb.CheckRegistrationFieldAvailabilityResponse.deserializeBinary(new Uint8Array(buffer_arg));
93
+ }
94
+
73
95
  function serialize_user_CheckWithdrawalEligibilityRequest(arg) {
74
96
  if (!(arg instanceof user_pb.CheckWithdrawalEligibilityRequest)) {
75
97
  throw new Error('Expected argument of type user.CheckWithdrawalEligibilityRequest');
@@ -1692,6 +1714,17 @@ readListUsers: {
1692
1714
  responseSerialize: serialize_user_CheckMissingProfileFieldsResponse,
1693
1715
  responseDeserialize: deserialize_user_CheckMissingProfileFieldsResponse,
1694
1716
  },
1717
+ checkRegistrationFieldAvailability: {
1718
+ path: '/user.User/checkRegistrationFieldAvailability',
1719
+ requestStream: false,
1720
+ responseStream: false,
1721
+ requestType: user_pb.CheckRegistrationFieldAvailabilityRequest,
1722
+ responseType: user_pb.CheckRegistrationFieldAvailabilityResponse,
1723
+ requestSerialize: serialize_user_CheckRegistrationFieldAvailabilityRequest,
1724
+ requestDeserialize: deserialize_user_CheckRegistrationFieldAvailabilityRequest,
1725
+ responseSerialize: serialize_user_CheckRegistrationFieldAvailabilityResponse,
1726
+ responseDeserialize: deserialize_user_CheckRegistrationFieldAvailabilityResponse,
1727
+ },
1695
1728
  updatePreDepositProfileFields: {
1696
1729
  path: '/user.User/updatePreDepositProfileFields',
1697
1730
  requestStream: false,
package/user/user_pb.js CHANGED
@@ -30,6 +30,8 @@ goog.exportSymbol('proto.user.CategoryItem', null, global);
30
30
  goog.exportSymbol('proto.user.CategoryItemsResponse', null, global);
31
31
  goog.exportSymbol('proto.user.CheckMissingProfileFieldsRequest', null, global);
32
32
  goog.exportSymbol('proto.user.CheckMissingProfileFieldsResponse', null, global);
33
+ goog.exportSymbol('proto.user.CheckRegistrationFieldAvailabilityRequest', null, global);
34
+ goog.exportSymbol('proto.user.CheckRegistrationFieldAvailabilityResponse', null, global);
33
35
  goog.exportSymbol('proto.user.CheckWithdrawalEligibilityRequest', null, global);
34
36
  goog.exportSymbol('proto.user.CheckWithdrawalEligibilityResponse', null, global);
35
37
  goog.exportSymbol('proto.user.ConfirmTwoFaRequest', null, global);
@@ -916,6 +918,48 @@ if (goog.DEBUG && !COMPILED) {
916
918
  */
917
919
  proto.user.CheckMissingProfileFieldsResponse.displayName = 'proto.user.CheckMissingProfileFieldsResponse';
918
920
  }
921
+ /**
922
+ * Generated by JsPbCodeGenerator.
923
+ * @param {Array=} opt_data Optional initial data array, typically from a
924
+ * server response, or constructed directly in Javascript. The array is used
925
+ * in place and becomes part of the constructed object. It is not cloned.
926
+ * If no data is provided, the constructed object will be empty, but still
927
+ * valid.
928
+ * @extends {jspb.Message}
929
+ * @constructor
930
+ */
931
+ proto.user.CheckRegistrationFieldAvailabilityRequest = function(opt_data) {
932
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
933
+ };
934
+ goog.inherits(proto.user.CheckRegistrationFieldAvailabilityRequest, jspb.Message);
935
+ if (goog.DEBUG && !COMPILED) {
936
+ /**
937
+ * @public
938
+ * @override
939
+ */
940
+ proto.user.CheckRegistrationFieldAvailabilityRequest.displayName = 'proto.user.CheckRegistrationFieldAvailabilityRequest';
941
+ }
942
+ /**
943
+ * Generated by JsPbCodeGenerator.
944
+ * @param {Array=} opt_data Optional initial data array, typically from a
945
+ * server response, or constructed directly in Javascript. The array is used
946
+ * in place and becomes part of the constructed object. It is not cloned.
947
+ * If no data is provided, the constructed object will be empty, but still
948
+ * valid.
949
+ * @extends {jspb.Message}
950
+ * @constructor
951
+ */
952
+ proto.user.CheckRegistrationFieldAvailabilityResponse = function(opt_data) {
953
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
954
+ };
955
+ goog.inherits(proto.user.CheckRegistrationFieldAvailabilityResponse, jspb.Message);
956
+ if (goog.DEBUG && !COMPILED) {
957
+ /**
958
+ * @public
959
+ * @override
960
+ */
961
+ proto.user.CheckRegistrationFieldAvailabilityResponse.displayName = 'proto.user.CheckRegistrationFieldAvailabilityResponse';
962
+ }
919
963
  /**
920
964
  * Generated by JsPbCodeGenerator.
921
965
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -18676,6 +18720,356 @@ proto.user.CheckMissingProfileFieldsResponse.prototype.clearMissingFieldsList =
18676
18720
 
18677
18721
 
18678
18722
 
18723
+ if (jspb.Message.GENERATE_TO_OBJECT) {
18724
+ /**
18725
+ * Creates an object representation of this proto.
18726
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
18727
+ * Optional fields that are not set will be set to undefined.
18728
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
18729
+ * For the list of reserved names please see:
18730
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
18731
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
18732
+ * JSPB instance for transitional soy proto support:
18733
+ * http://goto/soy-param-migration
18734
+ * @return {!Object}
18735
+ */
18736
+ proto.user.CheckRegistrationFieldAvailabilityRequest.prototype.toObject = function(opt_includeInstance) {
18737
+ return proto.user.CheckRegistrationFieldAvailabilityRequest.toObject(opt_includeInstance, this);
18738
+ };
18739
+
18740
+
18741
+ /**
18742
+ * Static version of the {@see toObject} method.
18743
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
18744
+ * the JSPB instance for transitional soy proto support:
18745
+ * http://goto/soy-param-migration
18746
+ * @param {!proto.user.CheckRegistrationFieldAvailabilityRequest} msg The msg instance to transform.
18747
+ * @return {!Object}
18748
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18749
+ */
18750
+ proto.user.CheckRegistrationFieldAvailabilityRequest.toObject = function(includeInstance, msg) {
18751
+ var f, obj = {
18752
+ field: jspb.Message.getFieldWithDefault(msg, 1, ""),
18753
+ value: jspb.Message.getFieldWithDefault(msg, 2, "")
18754
+ };
18755
+
18756
+ if (includeInstance) {
18757
+ obj.$jspbMessageInstance = msg;
18758
+ }
18759
+ return obj;
18760
+ };
18761
+ }
18762
+
18763
+
18764
+ /**
18765
+ * Deserializes binary data (in protobuf wire format).
18766
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
18767
+ * @return {!proto.user.CheckRegistrationFieldAvailabilityRequest}
18768
+ */
18769
+ proto.user.CheckRegistrationFieldAvailabilityRequest.deserializeBinary = function(bytes) {
18770
+ var reader = new jspb.BinaryReader(bytes);
18771
+ var msg = new proto.user.CheckRegistrationFieldAvailabilityRequest;
18772
+ return proto.user.CheckRegistrationFieldAvailabilityRequest.deserializeBinaryFromReader(msg, reader);
18773
+ };
18774
+
18775
+
18776
+ /**
18777
+ * Deserializes binary data (in protobuf wire format) from the
18778
+ * given reader into the given message object.
18779
+ * @param {!proto.user.CheckRegistrationFieldAvailabilityRequest} msg The message object to deserialize into.
18780
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
18781
+ * @return {!proto.user.CheckRegistrationFieldAvailabilityRequest}
18782
+ */
18783
+ proto.user.CheckRegistrationFieldAvailabilityRequest.deserializeBinaryFromReader = function(msg, reader) {
18784
+ while (reader.nextField()) {
18785
+ if (reader.isEndGroup()) {
18786
+ break;
18787
+ }
18788
+ var field = reader.getFieldNumber();
18789
+ switch (field) {
18790
+ case 1:
18791
+ var value = /** @type {string} */ (reader.readString());
18792
+ msg.setField(value);
18793
+ break;
18794
+ case 2:
18795
+ var value = /** @type {string} */ (reader.readString());
18796
+ msg.setValue(value);
18797
+ break;
18798
+ default:
18799
+ reader.skipField();
18800
+ break;
18801
+ }
18802
+ }
18803
+ return msg;
18804
+ };
18805
+
18806
+
18807
+ /**
18808
+ * Serializes the message to binary data (in protobuf wire format).
18809
+ * @return {!Uint8Array}
18810
+ */
18811
+ proto.user.CheckRegistrationFieldAvailabilityRequest.prototype.serializeBinary = function() {
18812
+ var writer = new jspb.BinaryWriter();
18813
+ proto.user.CheckRegistrationFieldAvailabilityRequest.serializeBinaryToWriter(this, writer);
18814
+ return writer.getResultBuffer();
18815
+ };
18816
+
18817
+
18818
+ /**
18819
+ * Serializes the given message to binary data (in protobuf wire
18820
+ * format), writing to the given BinaryWriter.
18821
+ * @param {!proto.user.CheckRegistrationFieldAvailabilityRequest} message
18822
+ * @param {!jspb.BinaryWriter} writer
18823
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18824
+ */
18825
+ proto.user.CheckRegistrationFieldAvailabilityRequest.serializeBinaryToWriter = function(message, writer) {
18826
+ var f = undefined;
18827
+ f = message.getField();
18828
+ if (f.length > 0) {
18829
+ writer.writeString(
18830
+ 1,
18831
+ f
18832
+ );
18833
+ }
18834
+ f = message.getValue();
18835
+ if (f.length > 0) {
18836
+ writer.writeString(
18837
+ 2,
18838
+ f
18839
+ );
18840
+ }
18841
+ };
18842
+
18843
+
18844
+ /**
18845
+ * optional string field = 1;
18846
+ * @return {string}
18847
+ */
18848
+ proto.user.CheckRegistrationFieldAvailabilityRequest.prototype.getField = function() {
18849
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
18850
+ };
18851
+
18852
+
18853
+ /**
18854
+ * @param {string} value
18855
+ * @return {!proto.user.CheckRegistrationFieldAvailabilityRequest} returns this
18856
+ */
18857
+ proto.user.CheckRegistrationFieldAvailabilityRequest.prototype.setField = function(value) {
18858
+ return jspb.Message.setProto3StringField(this, 1, value);
18859
+ };
18860
+
18861
+
18862
+ /**
18863
+ * optional string value = 2;
18864
+ * @return {string}
18865
+ */
18866
+ proto.user.CheckRegistrationFieldAvailabilityRequest.prototype.getValue = function() {
18867
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
18868
+ };
18869
+
18870
+
18871
+ /**
18872
+ * @param {string} value
18873
+ * @return {!proto.user.CheckRegistrationFieldAvailabilityRequest} returns this
18874
+ */
18875
+ proto.user.CheckRegistrationFieldAvailabilityRequest.prototype.setValue = function(value) {
18876
+ return jspb.Message.setProto3StringField(this, 2, value);
18877
+ };
18878
+
18879
+
18880
+
18881
+
18882
+
18883
+ if (jspb.Message.GENERATE_TO_OBJECT) {
18884
+ /**
18885
+ * Creates an object representation of this proto.
18886
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
18887
+ * Optional fields that are not set will be set to undefined.
18888
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
18889
+ * For the list of reserved names please see:
18890
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
18891
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
18892
+ * JSPB instance for transitional soy proto support:
18893
+ * http://goto/soy-param-migration
18894
+ * @return {!Object}
18895
+ */
18896
+ proto.user.CheckRegistrationFieldAvailabilityResponse.prototype.toObject = function(opt_includeInstance) {
18897
+ return proto.user.CheckRegistrationFieldAvailabilityResponse.toObject(opt_includeInstance, this);
18898
+ };
18899
+
18900
+
18901
+ /**
18902
+ * Static version of the {@see toObject} method.
18903
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
18904
+ * the JSPB instance for transitional soy proto support:
18905
+ * http://goto/soy-param-migration
18906
+ * @param {!proto.user.CheckRegistrationFieldAvailabilityResponse} msg The msg instance to transform.
18907
+ * @return {!Object}
18908
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18909
+ */
18910
+ proto.user.CheckRegistrationFieldAvailabilityResponse.toObject = function(includeInstance, msg) {
18911
+ var f, obj = {
18912
+ field: jspb.Message.getFieldWithDefault(msg, 1, ""),
18913
+ value: jspb.Message.getFieldWithDefault(msg, 2, ""),
18914
+ status: jspb.Message.getFieldWithDefault(msg, 3, "")
18915
+ };
18916
+
18917
+ if (includeInstance) {
18918
+ obj.$jspbMessageInstance = msg;
18919
+ }
18920
+ return obj;
18921
+ };
18922
+ }
18923
+
18924
+
18925
+ /**
18926
+ * Deserializes binary data (in protobuf wire format).
18927
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
18928
+ * @return {!proto.user.CheckRegistrationFieldAvailabilityResponse}
18929
+ */
18930
+ proto.user.CheckRegistrationFieldAvailabilityResponse.deserializeBinary = function(bytes) {
18931
+ var reader = new jspb.BinaryReader(bytes);
18932
+ var msg = new proto.user.CheckRegistrationFieldAvailabilityResponse;
18933
+ return proto.user.CheckRegistrationFieldAvailabilityResponse.deserializeBinaryFromReader(msg, reader);
18934
+ };
18935
+
18936
+
18937
+ /**
18938
+ * Deserializes binary data (in protobuf wire format) from the
18939
+ * given reader into the given message object.
18940
+ * @param {!proto.user.CheckRegistrationFieldAvailabilityResponse} msg The message object to deserialize into.
18941
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
18942
+ * @return {!proto.user.CheckRegistrationFieldAvailabilityResponse}
18943
+ */
18944
+ proto.user.CheckRegistrationFieldAvailabilityResponse.deserializeBinaryFromReader = function(msg, reader) {
18945
+ while (reader.nextField()) {
18946
+ if (reader.isEndGroup()) {
18947
+ break;
18948
+ }
18949
+ var field = reader.getFieldNumber();
18950
+ switch (field) {
18951
+ case 1:
18952
+ var value = /** @type {string} */ (reader.readString());
18953
+ msg.setField(value);
18954
+ break;
18955
+ case 2:
18956
+ var value = /** @type {string} */ (reader.readString());
18957
+ msg.setValue(value);
18958
+ break;
18959
+ case 3:
18960
+ var value = /** @type {string} */ (reader.readString());
18961
+ msg.setStatus(value);
18962
+ break;
18963
+ default:
18964
+ reader.skipField();
18965
+ break;
18966
+ }
18967
+ }
18968
+ return msg;
18969
+ };
18970
+
18971
+
18972
+ /**
18973
+ * Serializes the message to binary data (in protobuf wire format).
18974
+ * @return {!Uint8Array}
18975
+ */
18976
+ proto.user.CheckRegistrationFieldAvailabilityResponse.prototype.serializeBinary = function() {
18977
+ var writer = new jspb.BinaryWriter();
18978
+ proto.user.CheckRegistrationFieldAvailabilityResponse.serializeBinaryToWriter(this, writer);
18979
+ return writer.getResultBuffer();
18980
+ };
18981
+
18982
+
18983
+ /**
18984
+ * Serializes the given message to binary data (in protobuf wire
18985
+ * format), writing to the given BinaryWriter.
18986
+ * @param {!proto.user.CheckRegistrationFieldAvailabilityResponse} message
18987
+ * @param {!jspb.BinaryWriter} writer
18988
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18989
+ */
18990
+ proto.user.CheckRegistrationFieldAvailabilityResponse.serializeBinaryToWriter = function(message, writer) {
18991
+ var f = undefined;
18992
+ f = message.getField();
18993
+ if (f.length > 0) {
18994
+ writer.writeString(
18995
+ 1,
18996
+ f
18997
+ );
18998
+ }
18999
+ f = message.getValue();
19000
+ if (f.length > 0) {
19001
+ writer.writeString(
19002
+ 2,
19003
+ f
19004
+ );
19005
+ }
19006
+ f = message.getStatus();
19007
+ if (f.length > 0) {
19008
+ writer.writeString(
19009
+ 3,
19010
+ f
19011
+ );
19012
+ }
19013
+ };
19014
+
19015
+
19016
+ /**
19017
+ * optional string field = 1;
19018
+ * @return {string}
19019
+ */
19020
+ proto.user.CheckRegistrationFieldAvailabilityResponse.prototype.getField = function() {
19021
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
19022
+ };
19023
+
19024
+
19025
+ /**
19026
+ * @param {string} value
19027
+ * @return {!proto.user.CheckRegistrationFieldAvailabilityResponse} returns this
19028
+ */
19029
+ proto.user.CheckRegistrationFieldAvailabilityResponse.prototype.setField = function(value) {
19030
+ return jspb.Message.setProto3StringField(this, 1, value);
19031
+ };
19032
+
19033
+
19034
+ /**
19035
+ * optional string value = 2;
19036
+ * @return {string}
19037
+ */
19038
+ proto.user.CheckRegistrationFieldAvailabilityResponse.prototype.getValue = function() {
19039
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
19040
+ };
19041
+
19042
+
19043
+ /**
19044
+ * @param {string} value
19045
+ * @return {!proto.user.CheckRegistrationFieldAvailabilityResponse} returns this
19046
+ */
19047
+ proto.user.CheckRegistrationFieldAvailabilityResponse.prototype.setValue = function(value) {
19048
+ return jspb.Message.setProto3StringField(this, 2, value);
19049
+ };
19050
+
19051
+
19052
+ /**
19053
+ * optional string status = 3;
19054
+ * @return {string}
19055
+ */
19056
+ proto.user.CheckRegistrationFieldAvailabilityResponse.prototype.getStatus = function() {
19057
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
19058
+ };
19059
+
19060
+
19061
+ /**
19062
+ * @param {string} value
19063
+ * @return {!proto.user.CheckRegistrationFieldAvailabilityResponse} returns this
19064
+ */
19065
+ proto.user.CheckRegistrationFieldAvailabilityResponse.prototype.setStatus = function(value) {
19066
+ return jspb.Message.setProto3StringField(this, 3, value);
19067
+ };
19068
+
19069
+
19070
+
19071
+
19072
+
18679
19073
  if (jspb.Message.GENERATE_TO_OBJECT) {
18680
19074
  /**
18681
19075
  * Creates an object representation of this proto.