protobuf-platform 1.2.475 → 1.2.476

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.2.475",
3
+ "version": "1.2.476",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -8,6 +8,7 @@ service User {
8
8
  rpc signUp(RegistrationRequest) returns (LoggedInResponse);
9
9
  rpc signIn(LoginRequest) returns (LoggedInResponse);
10
10
  rpc loginOrCreateTelegram(TelegramLoginRequest) returns (LoggedInResponse);
11
+ rpc loginOrCreateTelegramOidc(TelegramOidcLoginRequest) returns (LoggedInResponse);
11
12
  rpc loginOrCreateGoogle(GoogleLoginRequest) returns (LoggedInResponse);
12
13
  rpc loginOrCreateApple(AppleLoginRequest) returns (LoggedInResponse);
13
14
  rpc loginOrCreateX(XLoginRequest) returns (LoggedInResponse);
@@ -297,6 +298,28 @@ message GoogleLoginRequest {
297
298
  // Gateway IP-derived country; distinct from profile country.
298
299
  optional string ip_country = 17;
299
300
  }
301
+ message TelegramOidcLoginRequest {
302
+ string code = 1;
303
+ string redirect_uri = 2;
304
+ string code_verifier = 3;
305
+ string nonce = 4;
306
+ optional string user_ip = 5;
307
+ optional string device = 6;
308
+ optional string country = 7;
309
+ optional string city = 8;
310
+ optional string timezone = 9;
311
+ optional string locale = 10;
312
+ optional int32 affiliate_id = 11;
313
+ optional string affiliate_info = 12;
314
+ optional string promo_code = 13;
315
+ optional string seon_session = 14;
316
+ optional string request_id = 15;
317
+ optional string correlation_id = 16;
318
+ optional string user_agent = 17;
319
+ optional string antifraud_session = 18;
320
+ // Gateway IP-derived country; distinct from profile country.
321
+ optional string ip_country = 19;
322
+ }
300
323
  message AppleLoginRequest {
301
324
  string code = 1;
302
325
  string redirect_uri = 2;
@@ -1280,6 +1280,17 @@ function deserialize_user_TelegramLoginRequest(buffer_arg) {
1280
1280
  return user_pb.TelegramLoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
1281
1281
  }
1282
1282
 
1283
+ function serialize_user_TelegramOidcLoginRequest(arg) {
1284
+ if (!(arg instanceof user_pb.TelegramOidcLoginRequest)) {
1285
+ throw new Error('Expected argument of type user.TelegramOidcLoginRequest');
1286
+ }
1287
+ return Buffer.from(arg.serializeBinary());
1288
+ }
1289
+
1290
+ function deserialize_user_TelegramOidcLoginRequest(buffer_arg) {
1291
+ return user_pb.TelegramOidcLoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
1292
+ }
1293
+
1283
1294
  function serialize_user_TournamentRulesInfoResponse(arg) {
1284
1295
  if (!(arg instanceof user_pb.TournamentRulesInfoResponse)) {
1285
1296
  throw new Error('Expected argument of type user.TournamentRulesInfoResponse');
@@ -1855,6 +1866,17 @@ signUp: {
1855
1866
  responseSerialize: serialize_user_LoggedInResponse,
1856
1867
  responseDeserialize: deserialize_user_LoggedInResponse,
1857
1868
  },
1869
+ loginOrCreateTelegramOidc: {
1870
+ path: '/user.User/loginOrCreateTelegramOidc',
1871
+ requestStream: false,
1872
+ responseStream: false,
1873
+ requestType: user_pb.TelegramOidcLoginRequest,
1874
+ responseType: user_pb.LoggedInResponse,
1875
+ requestSerialize: serialize_user_TelegramOidcLoginRequest,
1876
+ requestDeserialize: deserialize_user_TelegramOidcLoginRequest,
1877
+ responseSerialize: serialize_user_LoggedInResponse,
1878
+ responseDeserialize: deserialize_user_LoggedInResponse,
1879
+ },
1858
1880
  loginOrCreateGoogle: {
1859
1881
  path: '/user.User/loginOrCreateGoogle',
1860
1882
  requestStream: false,
package/user/user_pb.js CHANGED
@@ -163,6 +163,7 @@ goog.exportSymbol('proto.user.SumSubDocumentRequest.RequestCase', null, global);
163
163
  goog.exportSymbol('proto.user.SumSubResponse', null, global);
164
164
  goog.exportSymbol('proto.user.SyncUserKycProviderStatusRequest', null, global);
165
165
  goog.exportSymbol('proto.user.TelegramLoginRequest', null, global);
166
+ goog.exportSymbol('proto.user.TelegramOidcLoginRequest', null, global);
166
167
  goog.exportSymbol('proto.user.TournamentRulesInfoResponse', null, global);
167
168
  goog.exportSymbol('proto.user.UpdateKycRequirementPresetRequest', null, global);
168
169
  goog.exportSymbol('proto.user.UpdateKycRuleDefinitionRequest', null, global);
@@ -472,6 +473,27 @@ if (goog.DEBUG && !COMPILED) {
472
473
  */
473
474
  proto.user.GoogleLoginRequest.displayName = 'proto.user.GoogleLoginRequest';
474
475
  }
476
+ /**
477
+ * Generated by JsPbCodeGenerator.
478
+ * @param {Array=} opt_data Optional initial data array, typically from a
479
+ * server response, or constructed directly in Javascript. The array is used
480
+ * in place and becomes part of the constructed object. It is not cloned.
481
+ * If no data is provided, the constructed object will be empty, but still
482
+ * valid.
483
+ * @extends {jspb.Message}
484
+ * @constructor
485
+ */
486
+ proto.user.TelegramOidcLoginRequest = function(opt_data) {
487
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
488
+ };
489
+ goog.inherits(proto.user.TelegramOidcLoginRequest, jspb.Message);
490
+ if (goog.DEBUG && !COMPILED) {
491
+ /**
492
+ * @public
493
+ * @override
494
+ */
495
+ proto.user.TelegramOidcLoginRequest.displayName = 'proto.user.TelegramOidcLoginRequest';
496
+ }
475
497
  /**
476
498
  * Generated by JsPbCodeGenerator.
477
499
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -10947,6 +10969,946 @@ proto.user.GoogleLoginRequest.prototype.hasIpCountry = function() {
10947
10969
 
10948
10970
 
10949
10971
 
10972
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10973
+ /**
10974
+ * Creates an object representation of this proto.
10975
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10976
+ * Optional fields that are not set will be set to undefined.
10977
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10978
+ * For the list of reserved names please see:
10979
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10980
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10981
+ * JSPB instance for transitional soy proto support:
10982
+ * http://goto/soy-param-migration
10983
+ * @return {!Object}
10984
+ */
10985
+ proto.user.TelegramOidcLoginRequest.prototype.toObject = function(opt_includeInstance) {
10986
+ return proto.user.TelegramOidcLoginRequest.toObject(opt_includeInstance, this);
10987
+ };
10988
+
10989
+
10990
+ /**
10991
+ * Static version of the {@see toObject} method.
10992
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10993
+ * the JSPB instance for transitional soy proto support:
10994
+ * http://goto/soy-param-migration
10995
+ * @param {!proto.user.TelegramOidcLoginRequest} msg The msg instance to transform.
10996
+ * @return {!Object}
10997
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10998
+ */
10999
+ proto.user.TelegramOidcLoginRequest.toObject = function(includeInstance, msg) {
11000
+ var f, obj = {
11001
+ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
11002
+ redirectUri: jspb.Message.getFieldWithDefault(msg, 2, ""),
11003
+ codeVerifier: jspb.Message.getFieldWithDefault(msg, 3, ""),
11004
+ nonce: jspb.Message.getFieldWithDefault(msg, 4, ""),
11005
+ userIp: jspb.Message.getFieldWithDefault(msg, 5, ""),
11006
+ device: jspb.Message.getFieldWithDefault(msg, 6, ""),
11007
+ country: jspb.Message.getFieldWithDefault(msg, 7, ""),
11008
+ city: jspb.Message.getFieldWithDefault(msg, 8, ""),
11009
+ timezone: jspb.Message.getFieldWithDefault(msg, 9, ""),
11010
+ locale: jspb.Message.getFieldWithDefault(msg, 10, ""),
11011
+ affiliateId: jspb.Message.getFieldWithDefault(msg, 11, 0),
11012
+ affiliateInfo: jspb.Message.getFieldWithDefault(msg, 12, ""),
11013
+ promoCode: jspb.Message.getFieldWithDefault(msg, 13, ""),
11014
+ seonSession: jspb.Message.getFieldWithDefault(msg, 14, ""),
11015
+ requestId: jspb.Message.getFieldWithDefault(msg, 15, ""),
11016
+ correlationId: jspb.Message.getFieldWithDefault(msg, 16, ""),
11017
+ userAgent: jspb.Message.getFieldWithDefault(msg, 17, ""),
11018
+ antifraudSession: jspb.Message.getFieldWithDefault(msg, 18, ""),
11019
+ ipCountry: jspb.Message.getFieldWithDefault(msg, 19, "")
11020
+ };
11021
+
11022
+ if (includeInstance) {
11023
+ obj.$jspbMessageInstance = msg;
11024
+ }
11025
+ return obj;
11026
+ };
11027
+ }
11028
+
11029
+
11030
+ /**
11031
+ * Deserializes binary data (in protobuf wire format).
11032
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11033
+ * @return {!proto.user.TelegramOidcLoginRequest}
11034
+ */
11035
+ proto.user.TelegramOidcLoginRequest.deserializeBinary = function(bytes) {
11036
+ var reader = new jspb.BinaryReader(bytes);
11037
+ var msg = new proto.user.TelegramOidcLoginRequest;
11038
+ return proto.user.TelegramOidcLoginRequest.deserializeBinaryFromReader(msg, reader);
11039
+ };
11040
+
11041
+
11042
+ /**
11043
+ * Deserializes binary data (in protobuf wire format) from the
11044
+ * given reader into the given message object.
11045
+ * @param {!proto.user.TelegramOidcLoginRequest} msg The message object to deserialize into.
11046
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11047
+ * @return {!proto.user.TelegramOidcLoginRequest}
11048
+ */
11049
+ proto.user.TelegramOidcLoginRequest.deserializeBinaryFromReader = function(msg, reader) {
11050
+ while (reader.nextField()) {
11051
+ if (reader.isEndGroup()) {
11052
+ break;
11053
+ }
11054
+ var field = reader.getFieldNumber();
11055
+ switch (field) {
11056
+ case 1:
11057
+ var value = /** @type {string} */ (reader.readString());
11058
+ msg.setCode(value);
11059
+ break;
11060
+ case 2:
11061
+ var value = /** @type {string} */ (reader.readString());
11062
+ msg.setRedirectUri(value);
11063
+ break;
11064
+ case 3:
11065
+ var value = /** @type {string} */ (reader.readString());
11066
+ msg.setCodeVerifier(value);
11067
+ break;
11068
+ case 4:
11069
+ var value = /** @type {string} */ (reader.readString());
11070
+ msg.setNonce(value);
11071
+ break;
11072
+ case 5:
11073
+ var value = /** @type {string} */ (reader.readString());
11074
+ msg.setUserIp(value);
11075
+ break;
11076
+ case 6:
11077
+ var value = /** @type {string} */ (reader.readString());
11078
+ msg.setDevice(value);
11079
+ break;
11080
+ case 7:
11081
+ var value = /** @type {string} */ (reader.readString());
11082
+ msg.setCountry(value);
11083
+ break;
11084
+ case 8:
11085
+ var value = /** @type {string} */ (reader.readString());
11086
+ msg.setCity(value);
11087
+ break;
11088
+ case 9:
11089
+ var value = /** @type {string} */ (reader.readString());
11090
+ msg.setTimezone(value);
11091
+ break;
11092
+ case 10:
11093
+ var value = /** @type {string} */ (reader.readString());
11094
+ msg.setLocale(value);
11095
+ break;
11096
+ case 11:
11097
+ var value = /** @type {number} */ (reader.readInt32());
11098
+ msg.setAffiliateId(value);
11099
+ break;
11100
+ case 12:
11101
+ var value = /** @type {string} */ (reader.readString());
11102
+ msg.setAffiliateInfo(value);
11103
+ break;
11104
+ case 13:
11105
+ var value = /** @type {string} */ (reader.readString());
11106
+ msg.setPromoCode(value);
11107
+ break;
11108
+ case 14:
11109
+ var value = /** @type {string} */ (reader.readString());
11110
+ msg.setSeonSession(value);
11111
+ break;
11112
+ case 15:
11113
+ var value = /** @type {string} */ (reader.readString());
11114
+ msg.setRequestId(value);
11115
+ break;
11116
+ case 16:
11117
+ var value = /** @type {string} */ (reader.readString());
11118
+ msg.setCorrelationId(value);
11119
+ break;
11120
+ case 17:
11121
+ var value = /** @type {string} */ (reader.readString());
11122
+ msg.setUserAgent(value);
11123
+ break;
11124
+ case 18:
11125
+ var value = /** @type {string} */ (reader.readString());
11126
+ msg.setAntifraudSession(value);
11127
+ break;
11128
+ case 19:
11129
+ var value = /** @type {string} */ (reader.readString());
11130
+ msg.setIpCountry(value);
11131
+ break;
11132
+ default:
11133
+ reader.skipField();
11134
+ break;
11135
+ }
11136
+ }
11137
+ return msg;
11138
+ };
11139
+
11140
+
11141
+ /**
11142
+ * Serializes the message to binary data (in protobuf wire format).
11143
+ * @return {!Uint8Array}
11144
+ */
11145
+ proto.user.TelegramOidcLoginRequest.prototype.serializeBinary = function() {
11146
+ var writer = new jspb.BinaryWriter();
11147
+ proto.user.TelegramOidcLoginRequest.serializeBinaryToWriter(this, writer);
11148
+ return writer.getResultBuffer();
11149
+ };
11150
+
11151
+
11152
+ /**
11153
+ * Serializes the given message to binary data (in protobuf wire
11154
+ * format), writing to the given BinaryWriter.
11155
+ * @param {!proto.user.TelegramOidcLoginRequest} message
11156
+ * @param {!jspb.BinaryWriter} writer
11157
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11158
+ */
11159
+ proto.user.TelegramOidcLoginRequest.serializeBinaryToWriter = function(message, writer) {
11160
+ var f = undefined;
11161
+ f = message.getCode();
11162
+ if (f.length > 0) {
11163
+ writer.writeString(
11164
+ 1,
11165
+ f
11166
+ );
11167
+ }
11168
+ f = message.getRedirectUri();
11169
+ if (f.length > 0) {
11170
+ writer.writeString(
11171
+ 2,
11172
+ f
11173
+ );
11174
+ }
11175
+ f = message.getCodeVerifier();
11176
+ if (f.length > 0) {
11177
+ writer.writeString(
11178
+ 3,
11179
+ f
11180
+ );
11181
+ }
11182
+ f = message.getNonce();
11183
+ if (f.length > 0) {
11184
+ writer.writeString(
11185
+ 4,
11186
+ f
11187
+ );
11188
+ }
11189
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
11190
+ if (f != null) {
11191
+ writer.writeString(
11192
+ 5,
11193
+ f
11194
+ );
11195
+ }
11196
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
11197
+ if (f != null) {
11198
+ writer.writeString(
11199
+ 6,
11200
+ f
11201
+ );
11202
+ }
11203
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
11204
+ if (f != null) {
11205
+ writer.writeString(
11206
+ 7,
11207
+ f
11208
+ );
11209
+ }
11210
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
11211
+ if (f != null) {
11212
+ writer.writeString(
11213
+ 8,
11214
+ f
11215
+ );
11216
+ }
11217
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
11218
+ if (f != null) {
11219
+ writer.writeString(
11220
+ 9,
11221
+ f
11222
+ );
11223
+ }
11224
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
11225
+ if (f != null) {
11226
+ writer.writeString(
11227
+ 10,
11228
+ f
11229
+ );
11230
+ }
11231
+ f = /** @type {number} */ (jspb.Message.getField(message, 11));
11232
+ if (f != null) {
11233
+ writer.writeInt32(
11234
+ 11,
11235
+ f
11236
+ );
11237
+ }
11238
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
11239
+ if (f != null) {
11240
+ writer.writeString(
11241
+ 12,
11242
+ f
11243
+ );
11244
+ }
11245
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
11246
+ if (f != null) {
11247
+ writer.writeString(
11248
+ 13,
11249
+ f
11250
+ );
11251
+ }
11252
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
11253
+ if (f != null) {
11254
+ writer.writeString(
11255
+ 14,
11256
+ f
11257
+ );
11258
+ }
11259
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
11260
+ if (f != null) {
11261
+ writer.writeString(
11262
+ 15,
11263
+ f
11264
+ );
11265
+ }
11266
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
11267
+ if (f != null) {
11268
+ writer.writeString(
11269
+ 16,
11270
+ f
11271
+ );
11272
+ }
11273
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
11274
+ if (f != null) {
11275
+ writer.writeString(
11276
+ 17,
11277
+ f
11278
+ );
11279
+ }
11280
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
11281
+ if (f != null) {
11282
+ writer.writeString(
11283
+ 18,
11284
+ f
11285
+ );
11286
+ }
11287
+ f = /** @type {string} */ (jspb.Message.getField(message, 19));
11288
+ if (f != null) {
11289
+ writer.writeString(
11290
+ 19,
11291
+ f
11292
+ );
11293
+ }
11294
+ };
11295
+
11296
+
11297
+ /**
11298
+ * optional string code = 1;
11299
+ * @return {string}
11300
+ */
11301
+ proto.user.TelegramOidcLoginRequest.prototype.getCode = function() {
11302
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11303
+ };
11304
+
11305
+
11306
+ /**
11307
+ * @param {string} value
11308
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11309
+ */
11310
+ proto.user.TelegramOidcLoginRequest.prototype.setCode = function(value) {
11311
+ return jspb.Message.setProto3StringField(this, 1, value);
11312
+ };
11313
+
11314
+
11315
+ /**
11316
+ * optional string redirect_uri = 2;
11317
+ * @return {string}
11318
+ */
11319
+ proto.user.TelegramOidcLoginRequest.prototype.getRedirectUri = function() {
11320
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11321
+ };
11322
+
11323
+
11324
+ /**
11325
+ * @param {string} value
11326
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11327
+ */
11328
+ proto.user.TelegramOidcLoginRequest.prototype.setRedirectUri = function(value) {
11329
+ return jspb.Message.setProto3StringField(this, 2, value);
11330
+ };
11331
+
11332
+
11333
+ /**
11334
+ * optional string code_verifier = 3;
11335
+ * @return {string}
11336
+ */
11337
+ proto.user.TelegramOidcLoginRequest.prototype.getCodeVerifier = function() {
11338
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
11339
+ };
11340
+
11341
+
11342
+ /**
11343
+ * @param {string} value
11344
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11345
+ */
11346
+ proto.user.TelegramOidcLoginRequest.prototype.setCodeVerifier = function(value) {
11347
+ return jspb.Message.setProto3StringField(this, 3, value);
11348
+ };
11349
+
11350
+
11351
+ /**
11352
+ * optional string nonce = 4;
11353
+ * @return {string}
11354
+ */
11355
+ proto.user.TelegramOidcLoginRequest.prototype.getNonce = function() {
11356
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
11357
+ };
11358
+
11359
+
11360
+ /**
11361
+ * @param {string} value
11362
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11363
+ */
11364
+ proto.user.TelegramOidcLoginRequest.prototype.setNonce = function(value) {
11365
+ return jspb.Message.setProto3StringField(this, 4, value);
11366
+ };
11367
+
11368
+
11369
+ /**
11370
+ * optional string user_ip = 5;
11371
+ * @return {string}
11372
+ */
11373
+ proto.user.TelegramOidcLoginRequest.prototype.getUserIp = function() {
11374
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
11375
+ };
11376
+
11377
+
11378
+ /**
11379
+ * @param {string} value
11380
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11381
+ */
11382
+ proto.user.TelegramOidcLoginRequest.prototype.setUserIp = function(value) {
11383
+ return jspb.Message.setField(this, 5, value);
11384
+ };
11385
+
11386
+
11387
+ /**
11388
+ * Clears the field making it undefined.
11389
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11390
+ */
11391
+ proto.user.TelegramOidcLoginRequest.prototype.clearUserIp = function() {
11392
+ return jspb.Message.setField(this, 5, undefined);
11393
+ };
11394
+
11395
+
11396
+ /**
11397
+ * Returns whether this field is set.
11398
+ * @return {boolean}
11399
+ */
11400
+ proto.user.TelegramOidcLoginRequest.prototype.hasUserIp = function() {
11401
+ return jspb.Message.getField(this, 5) != null;
11402
+ };
11403
+
11404
+
11405
+ /**
11406
+ * optional string device = 6;
11407
+ * @return {string}
11408
+ */
11409
+ proto.user.TelegramOidcLoginRequest.prototype.getDevice = function() {
11410
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
11411
+ };
11412
+
11413
+
11414
+ /**
11415
+ * @param {string} value
11416
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11417
+ */
11418
+ proto.user.TelegramOidcLoginRequest.prototype.setDevice = function(value) {
11419
+ return jspb.Message.setField(this, 6, value);
11420
+ };
11421
+
11422
+
11423
+ /**
11424
+ * Clears the field making it undefined.
11425
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11426
+ */
11427
+ proto.user.TelegramOidcLoginRequest.prototype.clearDevice = function() {
11428
+ return jspb.Message.setField(this, 6, undefined);
11429
+ };
11430
+
11431
+
11432
+ /**
11433
+ * Returns whether this field is set.
11434
+ * @return {boolean}
11435
+ */
11436
+ proto.user.TelegramOidcLoginRequest.prototype.hasDevice = function() {
11437
+ return jspb.Message.getField(this, 6) != null;
11438
+ };
11439
+
11440
+
11441
+ /**
11442
+ * optional string country = 7;
11443
+ * @return {string}
11444
+ */
11445
+ proto.user.TelegramOidcLoginRequest.prototype.getCountry = function() {
11446
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
11447
+ };
11448
+
11449
+
11450
+ /**
11451
+ * @param {string} value
11452
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11453
+ */
11454
+ proto.user.TelegramOidcLoginRequest.prototype.setCountry = function(value) {
11455
+ return jspb.Message.setField(this, 7, value);
11456
+ };
11457
+
11458
+
11459
+ /**
11460
+ * Clears the field making it undefined.
11461
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11462
+ */
11463
+ proto.user.TelegramOidcLoginRequest.prototype.clearCountry = function() {
11464
+ return jspb.Message.setField(this, 7, undefined);
11465
+ };
11466
+
11467
+
11468
+ /**
11469
+ * Returns whether this field is set.
11470
+ * @return {boolean}
11471
+ */
11472
+ proto.user.TelegramOidcLoginRequest.prototype.hasCountry = function() {
11473
+ return jspb.Message.getField(this, 7) != null;
11474
+ };
11475
+
11476
+
11477
+ /**
11478
+ * optional string city = 8;
11479
+ * @return {string}
11480
+ */
11481
+ proto.user.TelegramOidcLoginRequest.prototype.getCity = function() {
11482
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
11483
+ };
11484
+
11485
+
11486
+ /**
11487
+ * @param {string} value
11488
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11489
+ */
11490
+ proto.user.TelegramOidcLoginRequest.prototype.setCity = function(value) {
11491
+ return jspb.Message.setField(this, 8, value);
11492
+ };
11493
+
11494
+
11495
+ /**
11496
+ * Clears the field making it undefined.
11497
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11498
+ */
11499
+ proto.user.TelegramOidcLoginRequest.prototype.clearCity = function() {
11500
+ return jspb.Message.setField(this, 8, undefined);
11501
+ };
11502
+
11503
+
11504
+ /**
11505
+ * Returns whether this field is set.
11506
+ * @return {boolean}
11507
+ */
11508
+ proto.user.TelegramOidcLoginRequest.prototype.hasCity = function() {
11509
+ return jspb.Message.getField(this, 8) != null;
11510
+ };
11511
+
11512
+
11513
+ /**
11514
+ * optional string timezone = 9;
11515
+ * @return {string}
11516
+ */
11517
+ proto.user.TelegramOidcLoginRequest.prototype.getTimezone = function() {
11518
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
11519
+ };
11520
+
11521
+
11522
+ /**
11523
+ * @param {string} value
11524
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11525
+ */
11526
+ proto.user.TelegramOidcLoginRequest.prototype.setTimezone = function(value) {
11527
+ return jspb.Message.setField(this, 9, value);
11528
+ };
11529
+
11530
+
11531
+ /**
11532
+ * Clears the field making it undefined.
11533
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11534
+ */
11535
+ proto.user.TelegramOidcLoginRequest.prototype.clearTimezone = function() {
11536
+ return jspb.Message.setField(this, 9, undefined);
11537
+ };
11538
+
11539
+
11540
+ /**
11541
+ * Returns whether this field is set.
11542
+ * @return {boolean}
11543
+ */
11544
+ proto.user.TelegramOidcLoginRequest.prototype.hasTimezone = function() {
11545
+ return jspb.Message.getField(this, 9) != null;
11546
+ };
11547
+
11548
+
11549
+ /**
11550
+ * optional string locale = 10;
11551
+ * @return {string}
11552
+ */
11553
+ proto.user.TelegramOidcLoginRequest.prototype.getLocale = function() {
11554
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
11555
+ };
11556
+
11557
+
11558
+ /**
11559
+ * @param {string} value
11560
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11561
+ */
11562
+ proto.user.TelegramOidcLoginRequest.prototype.setLocale = function(value) {
11563
+ return jspb.Message.setField(this, 10, value);
11564
+ };
11565
+
11566
+
11567
+ /**
11568
+ * Clears the field making it undefined.
11569
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11570
+ */
11571
+ proto.user.TelegramOidcLoginRequest.prototype.clearLocale = function() {
11572
+ return jspb.Message.setField(this, 10, undefined);
11573
+ };
11574
+
11575
+
11576
+ /**
11577
+ * Returns whether this field is set.
11578
+ * @return {boolean}
11579
+ */
11580
+ proto.user.TelegramOidcLoginRequest.prototype.hasLocale = function() {
11581
+ return jspb.Message.getField(this, 10) != null;
11582
+ };
11583
+
11584
+
11585
+ /**
11586
+ * optional int32 affiliate_id = 11;
11587
+ * @return {number}
11588
+ */
11589
+ proto.user.TelegramOidcLoginRequest.prototype.getAffiliateId = function() {
11590
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
11591
+ };
11592
+
11593
+
11594
+ /**
11595
+ * @param {number} value
11596
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11597
+ */
11598
+ proto.user.TelegramOidcLoginRequest.prototype.setAffiliateId = function(value) {
11599
+ return jspb.Message.setField(this, 11, value);
11600
+ };
11601
+
11602
+
11603
+ /**
11604
+ * Clears the field making it undefined.
11605
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11606
+ */
11607
+ proto.user.TelegramOidcLoginRequest.prototype.clearAffiliateId = function() {
11608
+ return jspb.Message.setField(this, 11, undefined);
11609
+ };
11610
+
11611
+
11612
+ /**
11613
+ * Returns whether this field is set.
11614
+ * @return {boolean}
11615
+ */
11616
+ proto.user.TelegramOidcLoginRequest.prototype.hasAffiliateId = function() {
11617
+ return jspb.Message.getField(this, 11) != null;
11618
+ };
11619
+
11620
+
11621
+ /**
11622
+ * optional string affiliate_info = 12;
11623
+ * @return {string}
11624
+ */
11625
+ proto.user.TelegramOidcLoginRequest.prototype.getAffiliateInfo = function() {
11626
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
11627
+ };
11628
+
11629
+
11630
+ /**
11631
+ * @param {string} value
11632
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11633
+ */
11634
+ proto.user.TelegramOidcLoginRequest.prototype.setAffiliateInfo = function(value) {
11635
+ return jspb.Message.setField(this, 12, value);
11636
+ };
11637
+
11638
+
11639
+ /**
11640
+ * Clears the field making it undefined.
11641
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11642
+ */
11643
+ proto.user.TelegramOidcLoginRequest.prototype.clearAffiliateInfo = function() {
11644
+ return jspb.Message.setField(this, 12, undefined);
11645
+ };
11646
+
11647
+
11648
+ /**
11649
+ * Returns whether this field is set.
11650
+ * @return {boolean}
11651
+ */
11652
+ proto.user.TelegramOidcLoginRequest.prototype.hasAffiliateInfo = function() {
11653
+ return jspb.Message.getField(this, 12) != null;
11654
+ };
11655
+
11656
+
11657
+ /**
11658
+ * optional string promo_code = 13;
11659
+ * @return {string}
11660
+ */
11661
+ proto.user.TelegramOidcLoginRequest.prototype.getPromoCode = function() {
11662
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
11663
+ };
11664
+
11665
+
11666
+ /**
11667
+ * @param {string} value
11668
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11669
+ */
11670
+ proto.user.TelegramOidcLoginRequest.prototype.setPromoCode = function(value) {
11671
+ return jspb.Message.setField(this, 13, value);
11672
+ };
11673
+
11674
+
11675
+ /**
11676
+ * Clears the field making it undefined.
11677
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11678
+ */
11679
+ proto.user.TelegramOidcLoginRequest.prototype.clearPromoCode = function() {
11680
+ return jspb.Message.setField(this, 13, undefined);
11681
+ };
11682
+
11683
+
11684
+ /**
11685
+ * Returns whether this field is set.
11686
+ * @return {boolean}
11687
+ */
11688
+ proto.user.TelegramOidcLoginRequest.prototype.hasPromoCode = function() {
11689
+ return jspb.Message.getField(this, 13) != null;
11690
+ };
11691
+
11692
+
11693
+ /**
11694
+ * optional string seon_session = 14;
11695
+ * @return {string}
11696
+ */
11697
+ proto.user.TelegramOidcLoginRequest.prototype.getSeonSession = function() {
11698
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
11699
+ };
11700
+
11701
+
11702
+ /**
11703
+ * @param {string} value
11704
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11705
+ */
11706
+ proto.user.TelegramOidcLoginRequest.prototype.setSeonSession = function(value) {
11707
+ return jspb.Message.setField(this, 14, value);
11708
+ };
11709
+
11710
+
11711
+ /**
11712
+ * Clears the field making it undefined.
11713
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11714
+ */
11715
+ proto.user.TelegramOidcLoginRequest.prototype.clearSeonSession = function() {
11716
+ return jspb.Message.setField(this, 14, undefined);
11717
+ };
11718
+
11719
+
11720
+ /**
11721
+ * Returns whether this field is set.
11722
+ * @return {boolean}
11723
+ */
11724
+ proto.user.TelegramOidcLoginRequest.prototype.hasSeonSession = function() {
11725
+ return jspb.Message.getField(this, 14) != null;
11726
+ };
11727
+
11728
+
11729
+ /**
11730
+ * optional string request_id = 15;
11731
+ * @return {string}
11732
+ */
11733
+ proto.user.TelegramOidcLoginRequest.prototype.getRequestId = function() {
11734
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
11735
+ };
11736
+
11737
+
11738
+ /**
11739
+ * @param {string} value
11740
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11741
+ */
11742
+ proto.user.TelegramOidcLoginRequest.prototype.setRequestId = function(value) {
11743
+ return jspb.Message.setField(this, 15, value);
11744
+ };
11745
+
11746
+
11747
+ /**
11748
+ * Clears the field making it undefined.
11749
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11750
+ */
11751
+ proto.user.TelegramOidcLoginRequest.prototype.clearRequestId = function() {
11752
+ return jspb.Message.setField(this, 15, undefined);
11753
+ };
11754
+
11755
+
11756
+ /**
11757
+ * Returns whether this field is set.
11758
+ * @return {boolean}
11759
+ */
11760
+ proto.user.TelegramOidcLoginRequest.prototype.hasRequestId = function() {
11761
+ return jspb.Message.getField(this, 15) != null;
11762
+ };
11763
+
11764
+
11765
+ /**
11766
+ * optional string correlation_id = 16;
11767
+ * @return {string}
11768
+ */
11769
+ proto.user.TelegramOidcLoginRequest.prototype.getCorrelationId = function() {
11770
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
11771
+ };
11772
+
11773
+
11774
+ /**
11775
+ * @param {string} value
11776
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11777
+ */
11778
+ proto.user.TelegramOidcLoginRequest.prototype.setCorrelationId = function(value) {
11779
+ return jspb.Message.setField(this, 16, value);
11780
+ };
11781
+
11782
+
11783
+ /**
11784
+ * Clears the field making it undefined.
11785
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11786
+ */
11787
+ proto.user.TelegramOidcLoginRequest.prototype.clearCorrelationId = function() {
11788
+ return jspb.Message.setField(this, 16, undefined);
11789
+ };
11790
+
11791
+
11792
+ /**
11793
+ * Returns whether this field is set.
11794
+ * @return {boolean}
11795
+ */
11796
+ proto.user.TelegramOidcLoginRequest.prototype.hasCorrelationId = function() {
11797
+ return jspb.Message.getField(this, 16) != null;
11798
+ };
11799
+
11800
+
11801
+ /**
11802
+ * optional string user_agent = 17;
11803
+ * @return {string}
11804
+ */
11805
+ proto.user.TelegramOidcLoginRequest.prototype.getUserAgent = function() {
11806
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
11807
+ };
11808
+
11809
+
11810
+ /**
11811
+ * @param {string} value
11812
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11813
+ */
11814
+ proto.user.TelegramOidcLoginRequest.prototype.setUserAgent = function(value) {
11815
+ return jspb.Message.setField(this, 17, value);
11816
+ };
11817
+
11818
+
11819
+ /**
11820
+ * Clears the field making it undefined.
11821
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11822
+ */
11823
+ proto.user.TelegramOidcLoginRequest.prototype.clearUserAgent = function() {
11824
+ return jspb.Message.setField(this, 17, undefined);
11825
+ };
11826
+
11827
+
11828
+ /**
11829
+ * Returns whether this field is set.
11830
+ * @return {boolean}
11831
+ */
11832
+ proto.user.TelegramOidcLoginRequest.prototype.hasUserAgent = function() {
11833
+ return jspb.Message.getField(this, 17) != null;
11834
+ };
11835
+
11836
+
11837
+ /**
11838
+ * optional string antifraud_session = 18;
11839
+ * @return {string}
11840
+ */
11841
+ proto.user.TelegramOidcLoginRequest.prototype.getAntifraudSession = function() {
11842
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
11843
+ };
11844
+
11845
+
11846
+ /**
11847
+ * @param {string} value
11848
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11849
+ */
11850
+ proto.user.TelegramOidcLoginRequest.prototype.setAntifraudSession = function(value) {
11851
+ return jspb.Message.setField(this, 18, value);
11852
+ };
11853
+
11854
+
11855
+ /**
11856
+ * Clears the field making it undefined.
11857
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11858
+ */
11859
+ proto.user.TelegramOidcLoginRequest.prototype.clearAntifraudSession = function() {
11860
+ return jspb.Message.setField(this, 18, undefined);
11861
+ };
11862
+
11863
+
11864
+ /**
11865
+ * Returns whether this field is set.
11866
+ * @return {boolean}
11867
+ */
11868
+ proto.user.TelegramOidcLoginRequest.prototype.hasAntifraudSession = function() {
11869
+ return jspb.Message.getField(this, 18) != null;
11870
+ };
11871
+
11872
+
11873
+ /**
11874
+ * optional string ip_country = 19;
11875
+ * @return {string}
11876
+ */
11877
+ proto.user.TelegramOidcLoginRequest.prototype.getIpCountry = function() {
11878
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
11879
+ };
11880
+
11881
+
11882
+ /**
11883
+ * @param {string} value
11884
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11885
+ */
11886
+ proto.user.TelegramOidcLoginRequest.prototype.setIpCountry = function(value) {
11887
+ return jspb.Message.setField(this, 19, value);
11888
+ };
11889
+
11890
+
11891
+ /**
11892
+ * Clears the field making it undefined.
11893
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11894
+ */
11895
+ proto.user.TelegramOidcLoginRequest.prototype.clearIpCountry = function() {
11896
+ return jspb.Message.setField(this, 19, undefined);
11897
+ };
11898
+
11899
+
11900
+ /**
11901
+ * Returns whether this field is set.
11902
+ * @return {boolean}
11903
+ */
11904
+ proto.user.TelegramOidcLoginRequest.prototype.hasIpCountry = function() {
11905
+ return jspb.Message.getField(this, 19) != null;
11906
+ };
11907
+
11908
+
11909
+
11910
+
11911
+
10950
11912
  if (jspb.Message.GENERATE_TO_OBJECT) {
10951
11913
  /**
10952
11914
  * Creates an object representation of this proto.