protobuf-platform 1.2.215 → 1.2.217
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/bet/bet.proto +7 -6
- package/bet/bet_pb.js +175 -19
- package/package.json +1 -1
- package/user/user.proto +12 -0
- package/user/user_grpc_pb.js +22 -0
- package/user/user_pb.js +536 -0
package/bet/bet.proto
CHANGED
|
@@ -170,12 +170,13 @@ message WinRateItem {
|
|
|
170
170
|
float amount = 1;
|
|
171
171
|
string game_title = 2;
|
|
172
172
|
string game_image = 3;
|
|
173
|
-
string game_provider = 4;
|
|
174
|
-
string game_slug = 5;
|
|
175
|
-
string provider_slug = 6;
|
|
176
|
-
string user_nickname = 7;
|
|
177
|
-
string currency = 8;
|
|
178
|
-
float multiplier = 9;
|
|
173
|
+
optional string game_provider = 4;
|
|
174
|
+
optional string game_slug = 5;
|
|
175
|
+
optional string provider_slug = 6;
|
|
176
|
+
optional string user_nickname = 7;
|
|
177
|
+
optional string currency = 8;
|
|
178
|
+
optional float multiplier = 9;
|
|
179
|
+
optional int32 has_demo = 10;
|
|
179
180
|
}
|
|
180
181
|
message WinRatesResponse {
|
|
181
182
|
repeated WinRateItem items = 1;
|
package/bet/bet_pb.js
CHANGED
|
@@ -6715,7 +6715,8 @@ proto.bet.WinRateItem.toObject = function(includeInstance, msg) {
|
|
|
6715
6715
|
providerSlug: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
6716
6716
|
userNickname: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
6717
6717
|
currency: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
6718
|
-
multiplier: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0)
|
|
6718
|
+
multiplier: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
|
|
6719
|
+
hasDemo: jspb.Message.getFieldWithDefault(msg, 10, 0)
|
|
6719
6720
|
};
|
|
6720
6721
|
|
|
6721
6722
|
if (includeInstance) {
|
|
@@ -6788,6 +6789,10 @@ proto.bet.WinRateItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
6788
6789
|
var value = /** @type {number} */ (reader.readFloat());
|
|
6789
6790
|
msg.setMultiplier(value);
|
|
6790
6791
|
break;
|
|
6792
|
+
case 10:
|
|
6793
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6794
|
+
msg.setHasDemo(value);
|
|
6795
|
+
break;
|
|
6791
6796
|
default:
|
|
6792
6797
|
reader.skipField();
|
|
6793
6798
|
break;
|
|
@@ -6838,48 +6843,55 @@ proto.bet.WinRateItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
6838
6843
|
f
|
|
6839
6844
|
);
|
|
6840
6845
|
}
|
|
6841
|
-
f =
|
|
6842
|
-
if (f
|
|
6846
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
6847
|
+
if (f != null) {
|
|
6843
6848
|
writer.writeString(
|
|
6844
6849
|
4,
|
|
6845
6850
|
f
|
|
6846
6851
|
);
|
|
6847
6852
|
}
|
|
6848
|
-
f =
|
|
6849
|
-
if (f
|
|
6853
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
6854
|
+
if (f != null) {
|
|
6850
6855
|
writer.writeString(
|
|
6851
6856
|
5,
|
|
6852
6857
|
f
|
|
6853
6858
|
);
|
|
6854
6859
|
}
|
|
6855
|
-
f =
|
|
6856
|
-
if (f
|
|
6860
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
6861
|
+
if (f != null) {
|
|
6857
6862
|
writer.writeString(
|
|
6858
6863
|
6,
|
|
6859
6864
|
f
|
|
6860
6865
|
);
|
|
6861
6866
|
}
|
|
6862
|
-
f =
|
|
6863
|
-
if (f
|
|
6867
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
6868
|
+
if (f != null) {
|
|
6864
6869
|
writer.writeString(
|
|
6865
6870
|
7,
|
|
6866
6871
|
f
|
|
6867
6872
|
);
|
|
6868
6873
|
}
|
|
6869
|
-
f =
|
|
6870
|
-
if (f
|
|
6874
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
|
6875
|
+
if (f != null) {
|
|
6871
6876
|
writer.writeString(
|
|
6872
6877
|
8,
|
|
6873
6878
|
f
|
|
6874
6879
|
);
|
|
6875
6880
|
}
|
|
6876
|
-
f =
|
|
6877
|
-
if (f
|
|
6881
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 9));
|
|
6882
|
+
if (f != null) {
|
|
6878
6883
|
writer.writeFloat(
|
|
6879
6884
|
9,
|
|
6880
6885
|
f
|
|
6881
6886
|
);
|
|
6882
6887
|
}
|
|
6888
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 10));
|
|
6889
|
+
if (f != null) {
|
|
6890
|
+
writer.writeInt32(
|
|
6891
|
+
10,
|
|
6892
|
+
f
|
|
6893
|
+
);
|
|
6894
|
+
}
|
|
6883
6895
|
};
|
|
6884
6896
|
|
|
6885
6897
|
|
|
@@ -6951,7 +6963,25 @@ proto.bet.WinRateItem.prototype.getGameProvider = function() {
|
|
|
6951
6963
|
* @return {!proto.bet.WinRateItem} returns this
|
|
6952
6964
|
*/
|
|
6953
6965
|
proto.bet.WinRateItem.prototype.setGameProvider = function(value) {
|
|
6954
|
-
return jspb.Message.
|
|
6966
|
+
return jspb.Message.setField(this, 4, value);
|
|
6967
|
+
};
|
|
6968
|
+
|
|
6969
|
+
|
|
6970
|
+
/**
|
|
6971
|
+
* Clears the field making it undefined.
|
|
6972
|
+
* @return {!proto.bet.WinRateItem} returns this
|
|
6973
|
+
*/
|
|
6974
|
+
proto.bet.WinRateItem.prototype.clearGameProvider = function() {
|
|
6975
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
6976
|
+
};
|
|
6977
|
+
|
|
6978
|
+
|
|
6979
|
+
/**
|
|
6980
|
+
* Returns whether this field is set.
|
|
6981
|
+
* @return {boolean}
|
|
6982
|
+
*/
|
|
6983
|
+
proto.bet.WinRateItem.prototype.hasGameProvider = function() {
|
|
6984
|
+
return jspb.Message.getField(this, 4) != null;
|
|
6955
6985
|
};
|
|
6956
6986
|
|
|
6957
6987
|
|
|
@@ -6969,7 +6999,25 @@ proto.bet.WinRateItem.prototype.getGameSlug = function() {
|
|
|
6969
6999
|
* @return {!proto.bet.WinRateItem} returns this
|
|
6970
7000
|
*/
|
|
6971
7001
|
proto.bet.WinRateItem.prototype.setGameSlug = function(value) {
|
|
6972
|
-
return jspb.Message.
|
|
7002
|
+
return jspb.Message.setField(this, 5, value);
|
|
7003
|
+
};
|
|
7004
|
+
|
|
7005
|
+
|
|
7006
|
+
/**
|
|
7007
|
+
* Clears the field making it undefined.
|
|
7008
|
+
* @return {!proto.bet.WinRateItem} returns this
|
|
7009
|
+
*/
|
|
7010
|
+
proto.bet.WinRateItem.prototype.clearGameSlug = function() {
|
|
7011
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
7012
|
+
};
|
|
7013
|
+
|
|
7014
|
+
|
|
7015
|
+
/**
|
|
7016
|
+
* Returns whether this field is set.
|
|
7017
|
+
* @return {boolean}
|
|
7018
|
+
*/
|
|
7019
|
+
proto.bet.WinRateItem.prototype.hasGameSlug = function() {
|
|
7020
|
+
return jspb.Message.getField(this, 5) != null;
|
|
6973
7021
|
};
|
|
6974
7022
|
|
|
6975
7023
|
|
|
@@ -6987,7 +7035,25 @@ proto.bet.WinRateItem.prototype.getProviderSlug = function() {
|
|
|
6987
7035
|
* @return {!proto.bet.WinRateItem} returns this
|
|
6988
7036
|
*/
|
|
6989
7037
|
proto.bet.WinRateItem.prototype.setProviderSlug = function(value) {
|
|
6990
|
-
return jspb.Message.
|
|
7038
|
+
return jspb.Message.setField(this, 6, value);
|
|
7039
|
+
};
|
|
7040
|
+
|
|
7041
|
+
|
|
7042
|
+
/**
|
|
7043
|
+
* Clears the field making it undefined.
|
|
7044
|
+
* @return {!proto.bet.WinRateItem} returns this
|
|
7045
|
+
*/
|
|
7046
|
+
proto.bet.WinRateItem.prototype.clearProviderSlug = function() {
|
|
7047
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
7048
|
+
};
|
|
7049
|
+
|
|
7050
|
+
|
|
7051
|
+
/**
|
|
7052
|
+
* Returns whether this field is set.
|
|
7053
|
+
* @return {boolean}
|
|
7054
|
+
*/
|
|
7055
|
+
proto.bet.WinRateItem.prototype.hasProviderSlug = function() {
|
|
7056
|
+
return jspb.Message.getField(this, 6) != null;
|
|
6991
7057
|
};
|
|
6992
7058
|
|
|
6993
7059
|
|
|
@@ -7005,7 +7071,25 @@ proto.bet.WinRateItem.prototype.getUserNickname = function() {
|
|
|
7005
7071
|
* @return {!proto.bet.WinRateItem} returns this
|
|
7006
7072
|
*/
|
|
7007
7073
|
proto.bet.WinRateItem.prototype.setUserNickname = function(value) {
|
|
7008
|
-
return jspb.Message.
|
|
7074
|
+
return jspb.Message.setField(this, 7, value);
|
|
7075
|
+
};
|
|
7076
|
+
|
|
7077
|
+
|
|
7078
|
+
/**
|
|
7079
|
+
* Clears the field making it undefined.
|
|
7080
|
+
* @return {!proto.bet.WinRateItem} returns this
|
|
7081
|
+
*/
|
|
7082
|
+
proto.bet.WinRateItem.prototype.clearUserNickname = function() {
|
|
7083
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
7084
|
+
};
|
|
7085
|
+
|
|
7086
|
+
|
|
7087
|
+
/**
|
|
7088
|
+
* Returns whether this field is set.
|
|
7089
|
+
* @return {boolean}
|
|
7090
|
+
*/
|
|
7091
|
+
proto.bet.WinRateItem.prototype.hasUserNickname = function() {
|
|
7092
|
+
return jspb.Message.getField(this, 7) != null;
|
|
7009
7093
|
};
|
|
7010
7094
|
|
|
7011
7095
|
|
|
@@ -7023,7 +7107,25 @@ proto.bet.WinRateItem.prototype.getCurrency = function() {
|
|
|
7023
7107
|
* @return {!proto.bet.WinRateItem} returns this
|
|
7024
7108
|
*/
|
|
7025
7109
|
proto.bet.WinRateItem.prototype.setCurrency = function(value) {
|
|
7026
|
-
return jspb.Message.
|
|
7110
|
+
return jspb.Message.setField(this, 8, value);
|
|
7111
|
+
};
|
|
7112
|
+
|
|
7113
|
+
|
|
7114
|
+
/**
|
|
7115
|
+
* Clears the field making it undefined.
|
|
7116
|
+
* @return {!proto.bet.WinRateItem} returns this
|
|
7117
|
+
*/
|
|
7118
|
+
proto.bet.WinRateItem.prototype.clearCurrency = function() {
|
|
7119
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
7120
|
+
};
|
|
7121
|
+
|
|
7122
|
+
|
|
7123
|
+
/**
|
|
7124
|
+
* Returns whether this field is set.
|
|
7125
|
+
* @return {boolean}
|
|
7126
|
+
*/
|
|
7127
|
+
proto.bet.WinRateItem.prototype.hasCurrency = function() {
|
|
7128
|
+
return jspb.Message.getField(this, 8) != null;
|
|
7027
7129
|
};
|
|
7028
7130
|
|
|
7029
7131
|
|
|
@@ -7041,7 +7143,61 @@ proto.bet.WinRateItem.prototype.getMultiplier = function() {
|
|
|
7041
7143
|
* @return {!proto.bet.WinRateItem} returns this
|
|
7042
7144
|
*/
|
|
7043
7145
|
proto.bet.WinRateItem.prototype.setMultiplier = function(value) {
|
|
7044
|
-
return jspb.Message.
|
|
7146
|
+
return jspb.Message.setField(this, 9, value);
|
|
7147
|
+
};
|
|
7148
|
+
|
|
7149
|
+
|
|
7150
|
+
/**
|
|
7151
|
+
* Clears the field making it undefined.
|
|
7152
|
+
* @return {!proto.bet.WinRateItem} returns this
|
|
7153
|
+
*/
|
|
7154
|
+
proto.bet.WinRateItem.prototype.clearMultiplier = function() {
|
|
7155
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
7156
|
+
};
|
|
7157
|
+
|
|
7158
|
+
|
|
7159
|
+
/**
|
|
7160
|
+
* Returns whether this field is set.
|
|
7161
|
+
* @return {boolean}
|
|
7162
|
+
*/
|
|
7163
|
+
proto.bet.WinRateItem.prototype.hasMultiplier = function() {
|
|
7164
|
+
return jspb.Message.getField(this, 9) != null;
|
|
7165
|
+
};
|
|
7166
|
+
|
|
7167
|
+
|
|
7168
|
+
/**
|
|
7169
|
+
* optional int32 has_demo = 10;
|
|
7170
|
+
* @return {number}
|
|
7171
|
+
*/
|
|
7172
|
+
proto.bet.WinRateItem.prototype.getHasDemo = function() {
|
|
7173
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
7174
|
+
};
|
|
7175
|
+
|
|
7176
|
+
|
|
7177
|
+
/**
|
|
7178
|
+
* @param {number} value
|
|
7179
|
+
* @return {!proto.bet.WinRateItem} returns this
|
|
7180
|
+
*/
|
|
7181
|
+
proto.bet.WinRateItem.prototype.setHasDemo = function(value) {
|
|
7182
|
+
return jspb.Message.setField(this, 10, value);
|
|
7183
|
+
};
|
|
7184
|
+
|
|
7185
|
+
|
|
7186
|
+
/**
|
|
7187
|
+
* Clears the field making it undefined.
|
|
7188
|
+
* @return {!proto.bet.WinRateItem} returns this
|
|
7189
|
+
*/
|
|
7190
|
+
proto.bet.WinRateItem.prototype.clearHasDemo = function() {
|
|
7191
|
+
return jspb.Message.setField(this, 10, undefined);
|
|
7192
|
+
};
|
|
7193
|
+
|
|
7194
|
+
|
|
7195
|
+
/**
|
|
7196
|
+
* Returns whether this field is set.
|
|
7197
|
+
* @return {boolean}
|
|
7198
|
+
*/
|
|
7199
|
+
proto.bet.WinRateItem.prototype.hasHasDemo = function() {
|
|
7200
|
+
return jspb.Message.getField(this, 10) != null;
|
|
7045
7201
|
};
|
|
7046
7202
|
|
|
7047
7203
|
|
package/package.json
CHANGED
package/user/user.proto
CHANGED
|
@@ -7,6 +7,7 @@ service User {
|
|
|
7
7
|
//Fetch settings for particular service
|
|
8
8
|
rpc signUp(RegistrationRequest) returns (LoggedInResponse);
|
|
9
9
|
rpc signIn(LoginRequest) returns (LoggedInResponse);
|
|
10
|
+
rpc loginOrCreateTelegram(TelegramLoginRequest) returns (LoggedInResponse);
|
|
10
11
|
rpc confirmUserTwoFa(ConfirmTwoFaRequest) returns (LoggedInResponse);
|
|
11
12
|
rpc getUserData(UserDataRequest) returns (UserDataResponse);
|
|
12
13
|
rpc getUserBalance(UserDataRequest) returns (UserDataResponse);
|
|
@@ -166,6 +167,17 @@ message LoginRequest {
|
|
|
166
167
|
optional string city = 7;
|
|
167
168
|
optional int32 two_fa = 8;
|
|
168
169
|
}
|
|
170
|
+
message TelegramLoginRequest {
|
|
171
|
+
string telegram_user_id = 1;
|
|
172
|
+
optional string username = 2;
|
|
173
|
+
optional string first_name = 3;
|
|
174
|
+
optional string last_name = 4;
|
|
175
|
+
optional string language_code = 5;
|
|
176
|
+
optional string user_ip = 6;
|
|
177
|
+
optional string device = 7;
|
|
178
|
+
optional string country = 8;
|
|
179
|
+
optional string city = 9;
|
|
180
|
+
}
|
|
169
181
|
message ConfirmTwoFaRequest {
|
|
170
182
|
string code = 1;
|
|
171
183
|
string temp_token = 2;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -466,6 +466,17 @@ function deserialize_user_SumSubResponse(buffer_arg) {
|
|
|
466
466
|
return user_pb.SumSubResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
+
function serialize_user_TelegramLoginRequest(arg) {
|
|
470
|
+
if (!(arg instanceof user_pb.TelegramLoginRequest)) {
|
|
471
|
+
throw new Error('Expected argument of type user.TelegramLoginRequest');
|
|
472
|
+
}
|
|
473
|
+
return Buffer.from(arg.serializeBinary());
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
function deserialize_user_TelegramLoginRequest(buffer_arg) {
|
|
477
|
+
return user_pb.TelegramLoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
478
|
+
}
|
|
479
|
+
|
|
469
480
|
function serialize_user_TournamentRulesInfoResponse(arg) {
|
|
470
481
|
if (!(arg instanceof user_pb.TournamentRulesInfoResponse)) {
|
|
471
482
|
throw new Error('Expected argument of type user.TournamentRulesInfoResponse');
|
|
@@ -733,6 +744,17 @@ signUp: {
|
|
|
733
744
|
responseSerialize: serialize_user_LoggedInResponse,
|
|
734
745
|
responseDeserialize: deserialize_user_LoggedInResponse,
|
|
735
746
|
},
|
|
747
|
+
loginOrCreateTelegram: {
|
|
748
|
+
path: '/user.User/loginOrCreateTelegram',
|
|
749
|
+
requestStream: false,
|
|
750
|
+
responseStream: false,
|
|
751
|
+
requestType: user_pb.TelegramLoginRequest,
|
|
752
|
+
responseType: user_pb.LoggedInResponse,
|
|
753
|
+
requestSerialize: serialize_user_TelegramLoginRequest,
|
|
754
|
+
requestDeserialize: deserialize_user_TelegramLoginRequest,
|
|
755
|
+
responseSerialize: serialize_user_LoggedInResponse,
|
|
756
|
+
responseDeserialize: deserialize_user_LoggedInResponse,
|
|
757
|
+
},
|
|
736
758
|
confirmUserTwoFa: {
|
|
737
759
|
path: '/user.User/confirmUserTwoFa',
|
|
738
760
|
requestStream: false,
|
package/user/user_pb.js
CHANGED
|
@@ -81,6 +81,7 @@ goog.exportSymbol('proto.user.SumSubDocumentItemRequest', null, global);
|
|
|
81
81
|
goog.exportSymbol('proto.user.SumSubDocumentRequest', null, global);
|
|
82
82
|
goog.exportSymbol('proto.user.SumSubDocumentRequest.RequestCase', null, global);
|
|
83
83
|
goog.exportSymbol('proto.user.SumSubResponse', null, global);
|
|
84
|
+
goog.exportSymbol('proto.user.TelegramLoginRequest', null, global);
|
|
84
85
|
goog.exportSymbol('proto.user.TournamentRulesInfoResponse', null, global);
|
|
85
86
|
goog.exportSymbol('proto.user.UserActionRequest', null, global);
|
|
86
87
|
goog.exportSymbol('proto.user.UserActionResponse', null, global);
|
|
@@ -315,6 +316,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
315
316
|
*/
|
|
316
317
|
proto.user.LoginRequest.displayName = 'proto.user.LoginRequest';
|
|
317
318
|
}
|
|
319
|
+
/**
|
|
320
|
+
* Generated by JsPbCodeGenerator.
|
|
321
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
322
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
323
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
324
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
325
|
+
* valid.
|
|
326
|
+
* @extends {jspb.Message}
|
|
327
|
+
* @constructor
|
|
328
|
+
*/
|
|
329
|
+
proto.user.TelegramLoginRequest = function(opt_data) {
|
|
330
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
331
|
+
};
|
|
332
|
+
goog.inherits(proto.user.TelegramLoginRequest, jspb.Message);
|
|
333
|
+
if (goog.DEBUG && !COMPILED) {
|
|
334
|
+
/**
|
|
335
|
+
* @public
|
|
336
|
+
* @override
|
|
337
|
+
*/
|
|
338
|
+
proto.user.TelegramLoginRequest.displayName = 'proto.user.TelegramLoginRequest';
|
|
339
|
+
}
|
|
318
340
|
/**
|
|
319
341
|
* Generated by JsPbCodeGenerator.
|
|
320
342
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -6333,6 +6355,520 @@ proto.user.LoginRequest.prototype.hasTwoFa = function() {
|
|
|
6333
6355
|
|
|
6334
6356
|
|
|
6335
6357
|
|
|
6358
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6359
|
+
/**
|
|
6360
|
+
* Creates an object representation of this proto.
|
|
6361
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6362
|
+
* Optional fields that are not set will be set to undefined.
|
|
6363
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6364
|
+
* For the list of reserved names please see:
|
|
6365
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6366
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6367
|
+
* JSPB instance for transitional soy proto support:
|
|
6368
|
+
* http://goto/soy-param-migration
|
|
6369
|
+
* @return {!Object}
|
|
6370
|
+
*/
|
|
6371
|
+
proto.user.TelegramLoginRequest.prototype.toObject = function(opt_includeInstance) {
|
|
6372
|
+
return proto.user.TelegramLoginRequest.toObject(opt_includeInstance, this);
|
|
6373
|
+
};
|
|
6374
|
+
|
|
6375
|
+
|
|
6376
|
+
/**
|
|
6377
|
+
* Static version of the {@see toObject} method.
|
|
6378
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6379
|
+
* the JSPB instance for transitional soy proto support:
|
|
6380
|
+
* http://goto/soy-param-migration
|
|
6381
|
+
* @param {!proto.user.TelegramLoginRequest} msg The msg instance to transform.
|
|
6382
|
+
* @return {!Object}
|
|
6383
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6384
|
+
*/
|
|
6385
|
+
proto.user.TelegramLoginRequest.toObject = function(includeInstance, msg) {
|
|
6386
|
+
var f, obj = {
|
|
6387
|
+
telegramUserId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6388
|
+
username: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6389
|
+
firstName: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
6390
|
+
lastName: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
6391
|
+
languageCode: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
6392
|
+
userIp: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
6393
|
+
device: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
6394
|
+
country: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
6395
|
+
city: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
6396
|
+
};
|
|
6397
|
+
|
|
6398
|
+
if (includeInstance) {
|
|
6399
|
+
obj.$jspbMessageInstance = msg;
|
|
6400
|
+
}
|
|
6401
|
+
return obj;
|
|
6402
|
+
};
|
|
6403
|
+
}
|
|
6404
|
+
|
|
6405
|
+
|
|
6406
|
+
/**
|
|
6407
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6408
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6409
|
+
* @return {!proto.user.TelegramLoginRequest}
|
|
6410
|
+
*/
|
|
6411
|
+
proto.user.TelegramLoginRequest.deserializeBinary = function(bytes) {
|
|
6412
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6413
|
+
var msg = new proto.user.TelegramLoginRequest;
|
|
6414
|
+
return proto.user.TelegramLoginRequest.deserializeBinaryFromReader(msg, reader);
|
|
6415
|
+
};
|
|
6416
|
+
|
|
6417
|
+
|
|
6418
|
+
/**
|
|
6419
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6420
|
+
* given reader into the given message object.
|
|
6421
|
+
* @param {!proto.user.TelegramLoginRequest} msg The message object to deserialize into.
|
|
6422
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6423
|
+
* @return {!proto.user.TelegramLoginRequest}
|
|
6424
|
+
*/
|
|
6425
|
+
proto.user.TelegramLoginRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
6426
|
+
while (reader.nextField()) {
|
|
6427
|
+
if (reader.isEndGroup()) {
|
|
6428
|
+
break;
|
|
6429
|
+
}
|
|
6430
|
+
var field = reader.getFieldNumber();
|
|
6431
|
+
switch (field) {
|
|
6432
|
+
case 1:
|
|
6433
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6434
|
+
msg.setTelegramUserId(value);
|
|
6435
|
+
break;
|
|
6436
|
+
case 2:
|
|
6437
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6438
|
+
msg.setUsername(value);
|
|
6439
|
+
break;
|
|
6440
|
+
case 3:
|
|
6441
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6442
|
+
msg.setFirstName(value);
|
|
6443
|
+
break;
|
|
6444
|
+
case 4:
|
|
6445
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6446
|
+
msg.setLastName(value);
|
|
6447
|
+
break;
|
|
6448
|
+
case 5:
|
|
6449
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6450
|
+
msg.setLanguageCode(value);
|
|
6451
|
+
break;
|
|
6452
|
+
case 6:
|
|
6453
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6454
|
+
msg.setUserIp(value);
|
|
6455
|
+
break;
|
|
6456
|
+
case 7:
|
|
6457
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6458
|
+
msg.setDevice(value);
|
|
6459
|
+
break;
|
|
6460
|
+
case 8:
|
|
6461
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6462
|
+
msg.setCountry(value);
|
|
6463
|
+
break;
|
|
6464
|
+
case 9:
|
|
6465
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6466
|
+
msg.setCity(value);
|
|
6467
|
+
break;
|
|
6468
|
+
default:
|
|
6469
|
+
reader.skipField();
|
|
6470
|
+
break;
|
|
6471
|
+
}
|
|
6472
|
+
}
|
|
6473
|
+
return msg;
|
|
6474
|
+
};
|
|
6475
|
+
|
|
6476
|
+
|
|
6477
|
+
/**
|
|
6478
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6479
|
+
* @return {!Uint8Array}
|
|
6480
|
+
*/
|
|
6481
|
+
proto.user.TelegramLoginRequest.prototype.serializeBinary = function() {
|
|
6482
|
+
var writer = new jspb.BinaryWriter();
|
|
6483
|
+
proto.user.TelegramLoginRequest.serializeBinaryToWriter(this, writer);
|
|
6484
|
+
return writer.getResultBuffer();
|
|
6485
|
+
};
|
|
6486
|
+
|
|
6487
|
+
|
|
6488
|
+
/**
|
|
6489
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6490
|
+
* format), writing to the given BinaryWriter.
|
|
6491
|
+
* @param {!proto.user.TelegramLoginRequest} message
|
|
6492
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6493
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6494
|
+
*/
|
|
6495
|
+
proto.user.TelegramLoginRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6496
|
+
var f = undefined;
|
|
6497
|
+
f = message.getTelegramUserId();
|
|
6498
|
+
if (f.length > 0) {
|
|
6499
|
+
writer.writeString(
|
|
6500
|
+
1,
|
|
6501
|
+
f
|
|
6502
|
+
);
|
|
6503
|
+
}
|
|
6504
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
6505
|
+
if (f != null) {
|
|
6506
|
+
writer.writeString(
|
|
6507
|
+
2,
|
|
6508
|
+
f
|
|
6509
|
+
);
|
|
6510
|
+
}
|
|
6511
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
6512
|
+
if (f != null) {
|
|
6513
|
+
writer.writeString(
|
|
6514
|
+
3,
|
|
6515
|
+
f
|
|
6516
|
+
);
|
|
6517
|
+
}
|
|
6518
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
6519
|
+
if (f != null) {
|
|
6520
|
+
writer.writeString(
|
|
6521
|
+
4,
|
|
6522
|
+
f
|
|
6523
|
+
);
|
|
6524
|
+
}
|
|
6525
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
6526
|
+
if (f != null) {
|
|
6527
|
+
writer.writeString(
|
|
6528
|
+
5,
|
|
6529
|
+
f
|
|
6530
|
+
);
|
|
6531
|
+
}
|
|
6532
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
6533
|
+
if (f != null) {
|
|
6534
|
+
writer.writeString(
|
|
6535
|
+
6,
|
|
6536
|
+
f
|
|
6537
|
+
);
|
|
6538
|
+
}
|
|
6539
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
6540
|
+
if (f != null) {
|
|
6541
|
+
writer.writeString(
|
|
6542
|
+
7,
|
|
6543
|
+
f
|
|
6544
|
+
);
|
|
6545
|
+
}
|
|
6546
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
|
6547
|
+
if (f != null) {
|
|
6548
|
+
writer.writeString(
|
|
6549
|
+
8,
|
|
6550
|
+
f
|
|
6551
|
+
);
|
|
6552
|
+
}
|
|
6553
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
|
6554
|
+
if (f != null) {
|
|
6555
|
+
writer.writeString(
|
|
6556
|
+
9,
|
|
6557
|
+
f
|
|
6558
|
+
);
|
|
6559
|
+
}
|
|
6560
|
+
};
|
|
6561
|
+
|
|
6562
|
+
|
|
6563
|
+
/**
|
|
6564
|
+
* optional string telegram_user_id = 1;
|
|
6565
|
+
* @return {string}
|
|
6566
|
+
*/
|
|
6567
|
+
proto.user.TelegramLoginRequest.prototype.getTelegramUserId = function() {
|
|
6568
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6569
|
+
};
|
|
6570
|
+
|
|
6571
|
+
|
|
6572
|
+
/**
|
|
6573
|
+
* @param {string} value
|
|
6574
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6575
|
+
*/
|
|
6576
|
+
proto.user.TelegramLoginRequest.prototype.setTelegramUserId = function(value) {
|
|
6577
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6578
|
+
};
|
|
6579
|
+
|
|
6580
|
+
|
|
6581
|
+
/**
|
|
6582
|
+
* optional string username = 2;
|
|
6583
|
+
* @return {string}
|
|
6584
|
+
*/
|
|
6585
|
+
proto.user.TelegramLoginRequest.prototype.getUsername = function() {
|
|
6586
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
6587
|
+
};
|
|
6588
|
+
|
|
6589
|
+
|
|
6590
|
+
/**
|
|
6591
|
+
* @param {string} value
|
|
6592
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6593
|
+
*/
|
|
6594
|
+
proto.user.TelegramLoginRequest.prototype.setUsername = function(value) {
|
|
6595
|
+
return jspb.Message.setField(this, 2, value);
|
|
6596
|
+
};
|
|
6597
|
+
|
|
6598
|
+
|
|
6599
|
+
/**
|
|
6600
|
+
* Clears the field making it undefined.
|
|
6601
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6602
|
+
*/
|
|
6603
|
+
proto.user.TelegramLoginRequest.prototype.clearUsername = function() {
|
|
6604
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
6605
|
+
};
|
|
6606
|
+
|
|
6607
|
+
|
|
6608
|
+
/**
|
|
6609
|
+
* Returns whether this field is set.
|
|
6610
|
+
* @return {boolean}
|
|
6611
|
+
*/
|
|
6612
|
+
proto.user.TelegramLoginRequest.prototype.hasUsername = function() {
|
|
6613
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6614
|
+
};
|
|
6615
|
+
|
|
6616
|
+
|
|
6617
|
+
/**
|
|
6618
|
+
* optional string first_name = 3;
|
|
6619
|
+
* @return {string}
|
|
6620
|
+
*/
|
|
6621
|
+
proto.user.TelegramLoginRequest.prototype.getFirstName = function() {
|
|
6622
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
6623
|
+
};
|
|
6624
|
+
|
|
6625
|
+
|
|
6626
|
+
/**
|
|
6627
|
+
* @param {string} value
|
|
6628
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6629
|
+
*/
|
|
6630
|
+
proto.user.TelegramLoginRequest.prototype.setFirstName = function(value) {
|
|
6631
|
+
return jspb.Message.setField(this, 3, value);
|
|
6632
|
+
};
|
|
6633
|
+
|
|
6634
|
+
|
|
6635
|
+
/**
|
|
6636
|
+
* Clears the field making it undefined.
|
|
6637
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6638
|
+
*/
|
|
6639
|
+
proto.user.TelegramLoginRequest.prototype.clearFirstName = function() {
|
|
6640
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
6641
|
+
};
|
|
6642
|
+
|
|
6643
|
+
|
|
6644
|
+
/**
|
|
6645
|
+
* Returns whether this field is set.
|
|
6646
|
+
* @return {boolean}
|
|
6647
|
+
*/
|
|
6648
|
+
proto.user.TelegramLoginRequest.prototype.hasFirstName = function() {
|
|
6649
|
+
return jspb.Message.getField(this, 3) != null;
|
|
6650
|
+
};
|
|
6651
|
+
|
|
6652
|
+
|
|
6653
|
+
/**
|
|
6654
|
+
* optional string last_name = 4;
|
|
6655
|
+
* @return {string}
|
|
6656
|
+
*/
|
|
6657
|
+
proto.user.TelegramLoginRequest.prototype.getLastName = function() {
|
|
6658
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
6659
|
+
};
|
|
6660
|
+
|
|
6661
|
+
|
|
6662
|
+
/**
|
|
6663
|
+
* @param {string} value
|
|
6664
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6665
|
+
*/
|
|
6666
|
+
proto.user.TelegramLoginRequest.prototype.setLastName = function(value) {
|
|
6667
|
+
return jspb.Message.setField(this, 4, value);
|
|
6668
|
+
};
|
|
6669
|
+
|
|
6670
|
+
|
|
6671
|
+
/**
|
|
6672
|
+
* Clears the field making it undefined.
|
|
6673
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6674
|
+
*/
|
|
6675
|
+
proto.user.TelegramLoginRequest.prototype.clearLastName = function() {
|
|
6676
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
6677
|
+
};
|
|
6678
|
+
|
|
6679
|
+
|
|
6680
|
+
/**
|
|
6681
|
+
* Returns whether this field is set.
|
|
6682
|
+
* @return {boolean}
|
|
6683
|
+
*/
|
|
6684
|
+
proto.user.TelegramLoginRequest.prototype.hasLastName = function() {
|
|
6685
|
+
return jspb.Message.getField(this, 4) != null;
|
|
6686
|
+
};
|
|
6687
|
+
|
|
6688
|
+
|
|
6689
|
+
/**
|
|
6690
|
+
* optional string language_code = 5;
|
|
6691
|
+
* @return {string}
|
|
6692
|
+
*/
|
|
6693
|
+
proto.user.TelegramLoginRequest.prototype.getLanguageCode = function() {
|
|
6694
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
6695
|
+
};
|
|
6696
|
+
|
|
6697
|
+
|
|
6698
|
+
/**
|
|
6699
|
+
* @param {string} value
|
|
6700
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6701
|
+
*/
|
|
6702
|
+
proto.user.TelegramLoginRequest.prototype.setLanguageCode = function(value) {
|
|
6703
|
+
return jspb.Message.setField(this, 5, value);
|
|
6704
|
+
};
|
|
6705
|
+
|
|
6706
|
+
|
|
6707
|
+
/**
|
|
6708
|
+
* Clears the field making it undefined.
|
|
6709
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6710
|
+
*/
|
|
6711
|
+
proto.user.TelegramLoginRequest.prototype.clearLanguageCode = function() {
|
|
6712
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
6713
|
+
};
|
|
6714
|
+
|
|
6715
|
+
|
|
6716
|
+
/**
|
|
6717
|
+
* Returns whether this field is set.
|
|
6718
|
+
* @return {boolean}
|
|
6719
|
+
*/
|
|
6720
|
+
proto.user.TelegramLoginRequest.prototype.hasLanguageCode = function() {
|
|
6721
|
+
return jspb.Message.getField(this, 5) != null;
|
|
6722
|
+
};
|
|
6723
|
+
|
|
6724
|
+
|
|
6725
|
+
/**
|
|
6726
|
+
* optional string user_ip = 6;
|
|
6727
|
+
* @return {string}
|
|
6728
|
+
*/
|
|
6729
|
+
proto.user.TelegramLoginRequest.prototype.getUserIp = function() {
|
|
6730
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
6731
|
+
};
|
|
6732
|
+
|
|
6733
|
+
|
|
6734
|
+
/**
|
|
6735
|
+
* @param {string} value
|
|
6736
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6737
|
+
*/
|
|
6738
|
+
proto.user.TelegramLoginRequest.prototype.setUserIp = function(value) {
|
|
6739
|
+
return jspb.Message.setField(this, 6, value);
|
|
6740
|
+
};
|
|
6741
|
+
|
|
6742
|
+
|
|
6743
|
+
/**
|
|
6744
|
+
* Clears the field making it undefined.
|
|
6745
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6746
|
+
*/
|
|
6747
|
+
proto.user.TelegramLoginRequest.prototype.clearUserIp = function() {
|
|
6748
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
6749
|
+
};
|
|
6750
|
+
|
|
6751
|
+
|
|
6752
|
+
/**
|
|
6753
|
+
* Returns whether this field is set.
|
|
6754
|
+
* @return {boolean}
|
|
6755
|
+
*/
|
|
6756
|
+
proto.user.TelegramLoginRequest.prototype.hasUserIp = function() {
|
|
6757
|
+
return jspb.Message.getField(this, 6) != null;
|
|
6758
|
+
};
|
|
6759
|
+
|
|
6760
|
+
|
|
6761
|
+
/**
|
|
6762
|
+
* optional string device = 7;
|
|
6763
|
+
* @return {string}
|
|
6764
|
+
*/
|
|
6765
|
+
proto.user.TelegramLoginRequest.prototype.getDevice = function() {
|
|
6766
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
6767
|
+
};
|
|
6768
|
+
|
|
6769
|
+
|
|
6770
|
+
/**
|
|
6771
|
+
* @param {string} value
|
|
6772
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6773
|
+
*/
|
|
6774
|
+
proto.user.TelegramLoginRequest.prototype.setDevice = function(value) {
|
|
6775
|
+
return jspb.Message.setField(this, 7, value);
|
|
6776
|
+
};
|
|
6777
|
+
|
|
6778
|
+
|
|
6779
|
+
/**
|
|
6780
|
+
* Clears the field making it undefined.
|
|
6781
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6782
|
+
*/
|
|
6783
|
+
proto.user.TelegramLoginRequest.prototype.clearDevice = function() {
|
|
6784
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
6785
|
+
};
|
|
6786
|
+
|
|
6787
|
+
|
|
6788
|
+
/**
|
|
6789
|
+
* Returns whether this field is set.
|
|
6790
|
+
* @return {boolean}
|
|
6791
|
+
*/
|
|
6792
|
+
proto.user.TelegramLoginRequest.prototype.hasDevice = function() {
|
|
6793
|
+
return jspb.Message.getField(this, 7) != null;
|
|
6794
|
+
};
|
|
6795
|
+
|
|
6796
|
+
|
|
6797
|
+
/**
|
|
6798
|
+
* optional string country = 8;
|
|
6799
|
+
* @return {string}
|
|
6800
|
+
*/
|
|
6801
|
+
proto.user.TelegramLoginRequest.prototype.getCountry = function() {
|
|
6802
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
6803
|
+
};
|
|
6804
|
+
|
|
6805
|
+
|
|
6806
|
+
/**
|
|
6807
|
+
* @param {string} value
|
|
6808
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6809
|
+
*/
|
|
6810
|
+
proto.user.TelegramLoginRequest.prototype.setCountry = function(value) {
|
|
6811
|
+
return jspb.Message.setField(this, 8, value);
|
|
6812
|
+
};
|
|
6813
|
+
|
|
6814
|
+
|
|
6815
|
+
/**
|
|
6816
|
+
* Clears the field making it undefined.
|
|
6817
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6818
|
+
*/
|
|
6819
|
+
proto.user.TelegramLoginRequest.prototype.clearCountry = function() {
|
|
6820
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
6821
|
+
};
|
|
6822
|
+
|
|
6823
|
+
|
|
6824
|
+
/**
|
|
6825
|
+
* Returns whether this field is set.
|
|
6826
|
+
* @return {boolean}
|
|
6827
|
+
*/
|
|
6828
|
+
proto.user.TelegramLoginRequest.prototype.hasCountry = function() {
|
|
6829
|
+
return jspb.Message.getField(this, 8) != null;
|
|
6830
|
+
};
|
|
6831
|
+
|
|
6832
|
+
|
|
6833
|
+
/**
|
|
6834
|
+
* optional string city = 9;
|
|
6835
|
+
* @return {string}
|
|
6836
|
+
*/
|
|
6837
|
+
proto.user.TelegramLoginRequest.prototype.getCity = function() {
|
|
6838
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
6839
|
+
};
|
|
6840
|
+
|
|
6841
|
+
|
|
6842
|
+
/**
|
|
6843
|
+
* @param {string} value
|
|
6844
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6845
|
+
*/
|
|
6846
|
+
proto.user.TelegramLoginRequest.prototype.setCity = function(value) {
|
|
6847
|
+
return jspb.Message.setField(this, 9, value);
|
|
6848
|
+
};
|
|
6849
|
+
|
|
6850
|
+
|
|
6851
|
+
/**
|
|
6852
|
+
* Clears the field making it undefined.
|
|
6853
|
+
* @return {!proto.user.TelegramLoginRequest} returns this
|
|
6854
|
+
*/
|
|
6855
|
+
proto.user.TelegramLoginRequest.prototype.clearCity = function() {
|
|
6856
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
6857
|
+
};
|
|
6858
|
+
|
|
6859
|
+
|
|
6860
|
+
/**
|
|
6861
|
+
* Returns whether this field is set.
|
|
6862
|
+
* @return {boolean}
|
|
6863
|
+
*/
|
|
6864
|
+
proto.user.TelegramLoginRequest.prototype.hasCity = function() {
|
|
6865
|
+
return jspb.Message.getField(this, 9) != null;
|
|
6866
|
+
};
|
|
6867
|
+
|
|
6868
|
+
|
|
6869
|
+
|
|
6870
|
+
|
|
6871
|
+
|
|
6336
6872
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6337
6873
|
/**
|
|
6338
6874
|
* Creates an object representation of this proto.
|