protobuf-platform 1.2.475 → 1.2.478

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.478",
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,29 @@ 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
+ string preset_code = 20;
323
+ }
300
324
  message AppleLoginRequest {
301
325
  string code = 1;
302
326
  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,976 @@ 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
+ presetCode: jspb.Message.getFieldWithDefault(msg, 20, "")
11021
+ };
11022
+
11023
+ if (includeInstance) {
11024
+ obj.$jspbMessageInstance = msg;
11025
+ }
11026
+ return obj;
11027
+ };
11028
+ }
11029
+
11030
+
11031
+ /**
11032
+ * Deserializes binary data (in protobuf wire format).
11033
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11034
+ * @return {!proto.user.TelegramOidcLoginRequest}
11035
+ */
11036
+ proto.user.TelegramOidcLoginRequest.deserializeBinary = function(bytes) {
11037
+ var reader = new jspb.BinaryReader(bytes);
11038
+ var msg = new proto.user.TelegramOidcLoginRequest;
11039
+ return proto.user.TelegramOidcLoginRequest.deserializeBinaryFromReader(msg, reader);
11040
+ };
11041
+
11042
+
11043
+ /**
11044
+ * Deserializes binary data (in protobuf wire format) from the
11045
+ * given reader into the given message object.
11046
+ * @param {!proto.user.TelegramOidcLoginRequest} msg The message object to deserialize into.
11047
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11048
+ * @return {!proto.user.TelegramOidcLoginRequest}
11049
+ */
11050
+ proto.user.TelegramOidcLoginRequest.deserializeBinaryFromReader = function(msg, reader) {
11051
+ while (reader.nextField()) {
11052
+ if (reader.isEndGroup()) {
11053
+ break;
11054
+ }
11055
+ var field = reader.getFieldNumber();
11056
+ switch (field) {
11057
+ case 1:
11058
+ var value = /** @type {string} */ (reader.readString());
11059
+ msg.setCode(value);
11060
+ break;
11061
+ case 2:
11062
+ var value = /** @type {string} */ (reader.readString());
11063
+ msg.setRedirectUri(value);
11064
+ break;
11065
+ case 3:
11066
+ var value = /** @type {string} */ (reader.readString());
11067
+ msg.setCodeVerifier(value);
11068
+ break;
11069
+ case 4:
11070
+ var value = /** @type {string} */ (reader.readString());
11071
+ msg.setNonce(value);
11072
+ break;
11073
+ case 5:
11074
+ var value = /** @type {string} */ (reader.readString());
11075
+ msg.setUserIp(value);
11076
+ break;
11077
+ case 6:
11078
+ var value = /** @type {string} */ (reader.readString());
11079
+ msg.setDevice(value);
11080
+ break;
11081
+ case 7:
11082
+ var value = /** @type {string} */ (reader.readString());
11083
+ msg.setCountry(value);
11084
+ break;
11085
+ case 8:
11086
+ var value = /** @type {string} */ (reader.readString());
11087
+ msg.setCity(value);
11088
+ break;
11089
+ case 9:
11090
+ var value = /** @type {string} */ (reader.readString());
11091
+ msg.setTimezone(value);
11092
+ break;
11093
+ case 10:
11094
+ var value = /** @type {string} */ (reader.readString());
11095
+ msg.setLocale(value);
11096
+ break;
11097
+ case 11:
11098
+ var value = /** @type {number} */ (reader.readInt32());
11099
+ msg.setAffiliateId(value);
11100
+ break;
11101
+ case 12:
11102
+ var value = /** @type {string} */ (reader.readString());
11103
+ msg.setAffiliateInfo(value);
11104
+ break;
11105
+ case 13:
11106
+ var value = /** @type {string} */ (reader.readString());
11107
+ msg.setPromoCode(value);
11108
+ break;
11109
+ case 14:
11110
+ var value = /** @type {string} */ (reader.readString());
11111
+ msg.setSeonSession(value);
11112
+ break;
11113
+ case 15:
11114
+ var value = /** @type {string} */ (reader.readString());
11115
+ msg.setRequestId(value);
11116
+ break;
11117
+ case 16:
11118
+ var value = /** @type {string} */ (reader.readString());
11119
+ msg.setCorrelationId(value);
11120
+ break;
11121
+ case 17:
11122
+ var value = /** @type {string} */ (reader.readString());
11123
+ msg.setUserAgent(value);
11124
+ break;
11125
+ case 18:
11126
+ var value = /** @type {string} */ (reader.readString());
11127
+ msg.setAntifraudSession(value);
11128
+ break;
11129
+ case 19:
11130
+ var value = /** @type {string} */ (reader.readString());
11131
+ msg.setIpCountry(value);
11132
+ break;
11133
+ case 20:
11134
+ var value = /** @type {string} */ (reader.readString());
11135
+ msg.setPresetCode(value);
11136
+ break;
11137
+ default:
11138
+ reader.skipField();
11139
+ break;
11140
+ }
11141
+ }
11142
+ return msg;
11143
+ };
11144
+
11145
+
11146
+ /**
11147
+ * Serializes the message to binary data (in protobuf wire format).
11148
+ * @return {!Uint8Array}
11149
+ */
11150
+ proto.user.TelegramOidcLoginRequest.prototype.serializeBinary = function() {
11151
+ var writer = new jspb.BinaryWriter();
11152
+ proto.user.TelegramOidcLoginRequest.serializeBinaryToWriter(this, writer);
11153
+ return writer.getResultBuffer();
11154
+ };
11155
+
11156
+
11157
+ /**
11158
+ * Serializes the given message to binary data (in protobuf wire
11159
+ * format), writing to the given BinaryWriter.
11160
+ * @param {!proto.user.TelegramOidcLoginRequest} message
11161
+ * @param {!jspb.BinaryWriter} writer
11162
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11163
+ */
11164
+ proto.user.TelegramOidcLoginRequest.serializeBinaryToWriter = function(message, writer) {
11165
+ var f = undefined;
11166
+ f = message.getCode();
11167
+ if (f.length > 0) {
11168
+ writer.writeString(
11169
+ 1,
11170
+ f
11171
+ );
11172
+ }
11173
+ f = message.getRedirectUri();
11174
+ if (f.length > 0) {
11175
+ writer.writeString(
11176
+ 2,
11177
+ f
11178
+ );
11179
+ }
11180
+ f = message.getCodeVerifier();
11181
+ if (f.length > 0) {
11182
+ writer.writeString(
11183
+ 3,
11184
+ f
11185
+ );
11186
+ }
11187
+ f = message.getNonce();
11188
+ if (f.length > 0) {
11189
+ writer.writeString(
11190
+ 4,
11191
+ f
11192
+ );
11193
+ }
11194
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
11195
+ if (f != null) {
11196
+ writer.writeString(
11197
+ 5,
11198
+ f
11199
+ );
11200
+ }
11201
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
11202
+ if (f != null) {
11203
+ writer.writeString(
11204
+ 6,
11205
+ f
11206
+ );
11207
+ }
11208
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
11209
+ if (f != null) {
11210
+ writer.writeString(
11211
+ 7,
11212
+ f
11213
+ );
11214
+ }
11215
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
11216
+ if (f != null) {
11217
+ writer.writeString(
11218
+ 8,
11219
+ f
11220
+ );
11221
+ }
11222
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
11223
+ if (f != null) {
11224
+ writer.writeString(
11225
+ 9,
11226
+ f
11227
+ );
11228
+ }
11229
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
11230
+ if (f != null) {
11231
+ writer.writeString(
11232
+ 10,
11233
+ f
11234
+ );
11235
+ }
11236
+ f = /** @type {number} */ (jspb.Message.getField(message, 11));
11237
+ if (f != null) {
11238
+ writer.writeInt32(
11239
+ 11,
11240
+ f
11241
+ );
11242
+ }
11243
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
11244
+ if (f != null) {
11245
+ writer.writeString(
11246
+ 12,
11247
+ f
11248
+ );
11249
+ }
11250
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
11251
+ if (f != null) {
11252
+ writer.writeString(
11253
+ 13,
11254
+ f
11255
+ );
11256
+ }
11257
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
11258
+ if (f != null) {
11259
+ writer.writeString(
11260
+ 14,
11261
+ f
11262
+ );
11263
+ }
11264
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
11265
+ if (f != null) {
11266
+ writer.writeString(
11267
+ 15,
11268
+ f
11269
+ );
11270
+ }
11271
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
11272
+ if (f != null) {
11273
+ writer.writeString(
11274
+ 16,
11275
+ f
11276
+ );
11277
+ }
11278
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
11279
+ if (f != null) {
11280
+ writer.writeString(
11281
+ 17,
11282
+ f
11283
+ );
11284
+ }
11285
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
11286
+ if (f != null) {
11287
+ writer.writeString(
11288
+ 18,
11289
+ f
11290
+ );
11291
+ }
11292
+ f = /** @type {string} */ (jspb.Message.getField(message, 19));
11293
+ if (f != null) {
11294
+ writer.writeString(
11295
+ 19,
11296
+ f
11297
+ );
11298
+ }
11299
+ f = message.getPresetCode();
11300
+ if (f.length > 0) {
11301
+ writer.writeString(
11302
+ 20,
11303
+ f
11304
+ );
11305
+ }
11306
+ };
11307
+
11308
+
11309
+ /**
11310
+ * optional string code = 1;
11311
+ * @return {string}
11312
+ */
11313
+ proto.user.TelegramOidcLoginRequest.prototype.getCode = function() {
11314
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11315
+ };
11316
+
11317
+
11318
+ /**
11319
+ * @param {string} value
11320
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11321
+ */
11322
+ proto.user.TelegramOidcLoginRequest.prototype.setCode = function(value) {
11323
+ return jspb.Message.setProto3StringField(this, 1, value);
11324
+ };
11325
+
11326
+
11327
+ /**
11328
+ * optional string redirect_uri = 2;
11329
+ * @return {string}
11330
+ */
11331
+ proto.user.TelegramOidcLoginRequest.prototype.getRedirectUri = function() {
11332
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11333
+ };
11334
+
11335
+
11336
+ /**
11337
+ * @param {string} value
11338
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11339
+ */
11340
+ proto.user.TelegramOidcLoginRequest.prototype.setRedirectUri = function(value) {
11341
+ return jspb.Message.setProto3StringField(this, 2, value);
11342
+ };
11343
+
11344
+
11345
+ /**
11346
+ * optional string code_verifier = 3;
11347
+ * @return {string}
11348
+ */
11349
+ proto.user.TelegramOidcLoginRequest.prototype.getCodeVerifier = function() {
11350
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
11351
+ };
11352
+
11353
+
11354
+ /**
11355
+ * @param {string} value
11356
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11357
+ */
11358
+ proto.user.TelegramOidcLoginRequest.prototype.setCodeVerifier = function(value) {
11359
+ return jspb.Message.setProto3StringField(this, 3, value);
11360
+ };
11361
+
11362
+
11363
+ /**
11364
+ * optional string nonce = 4;
11365
+ * @return {string}
11366
+ */
11367
+ proto.user.TelegramOidcLoginRequest.prototype.getNonce = function() {
11368
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
11369
+ };
11370
+
11371
+
11372
+ /**
11373
+ * @param {string} value
11374
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11375
+ */
11376
+ proto.user.TelegramOidcLoginRequest.prototype.setNonce = function(value) {
11377
+ return jspb.Message.setProto3StringField(this, 4, value);
11378
+ };
11379
+
11380
+
11381
+ /**
11382
+ * optional string user_ip = 5;
11383
+ * @return {string}
11384
+ */
11385
+ proto.user.TelegramOidcLoginRequest.prototype.getUserIp = function() {
11386
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
11387
+ };
11388
+
11389
+
11390
+ /**
11391
+ * @param {string} value
11392
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11393
+ */
11394
+ proto.user.TelegramOidcLoginRequest.prototype.setUserIp = function(value) {
11395
+ return jspb.Message.setField(this, 5, value);
11396
+ };
11397
+
11398
+
11399
+ /**
11400
+ * Clears the field making it undefined.
11401
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11402
+ */
11403
+ proto.user.TelegramOidcLoginRequest.prototype.clearUserIp = function() {
11404
+ return jspb.Message.setField(this, 5, undefined);
11405
+ };
11406
+
11407
+
11408
+ /**
11409
+ * Returns whether this field is set.
11410
+ * @return {boolean}
11411
+ */
11412
+ proto.user.TelegramOidcLoginRequest.prototype.hasUserIp = function() {
11413
+ return jspb.Message.getField(this, 5) != null;
11414
+ };
11415
+
11416
+
11417
+ /**
11418
+ * optional string device = 6;
11419
+ * @return {string}
11420
+ */
11421
+ proto.user.TelegramOidcLoginRequest.prototype.getDevice = function() {
11422
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
11423
+ };
11424
+
11425
+
11426
+ /**
11427
+ * @param {string} value
11428
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11429
+ */
11430
+ proto.user.TelegramOidcLoginRequest.prototype.setDevice = function(value) {
11431
+ return jspb.Message.setField(this, 6, value);
11432
+ };
11433
+
11434
+
11435
+ /**
11436
+ * Clears the field making it undefined.
11437
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11438
+ */
11439
+ proto.user.TelegramOidcLoginRequest.prototype.clearDevice = function() {
11440
+ return jspb.Message.setField(this, 6, undefined);
11441
+ };
11442
+
11443
+
11444
+ /**
11445
+ * Returns whether this field is set.
11446
+ * @return {boolean}
11447
+ */
11448
+ proto.user.TelegramOidcLoginRequest.prototype.hasDevice = function() {
11449
+ return jspb.Message.getField(this, 6) != null;
11450
+ };
11451
+
11452
+
11453
+ /**
11454
+ * optional string country = 7;
11455
+ * @return {string}
11456
+ */
11457
+ proto.user.TelegramOidcLoginRequest.prototype.getCountry = function() {
11458
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
11459
+ };
11460
+
11461
+
11462
+ /**
11463
+ * @param {string} value
11464
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11465
+ */
11466
+ proto.user.TelegramOidcLoginRequest.prototype.setCountry = function(value) {
11467
+ return jspb.Message.setField(this, 7, value);
11468
+ };
11469
+
11470
+
11471
+ /**
11472
+ * Clears the field making it undefined.
11473
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11474
+ */
11475
+ proto.user.TelegramOidcLoginRequest.prototype.clearCountry = function() {
11476
+ return jspb.Message.setField(this, 7, undefined);
11477
+ };
11478
+
11479
+
11480
+ /**
11481
+ * Returns whether this field is set.
11482
+ * @return {boolean}
11483
+ */
11484
+ proto.user.TelegramOidcLoginRequest.prototype.hasCountry = function() {
11485
+ return jspb.Message.getField(this, 7) != null;
11486
+ };
11487
+
11488
+
11489
+ /**
11490
+ * optional string city = 8;
11491
+ * @return {string}
11492
+ */
11493
+ proto.user.TelegramOidcLoginRequest.prototype.getCity = function() {
11494
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
11495
+ };
11496
+
11497
+
11498
+ /**
11499
+ * @param {string} value
11500
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11501
+ */
11502
+ proto.user.TelegramOidcLoginRequest.prototype.setCity = function(value) {
11503
+ return jspb.Message.setField(this, 8, value);
11504
+ };
11505
+
11506
+
11507
+ /**
11508
+ * Clears the field making it undefined.
11509
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11510
+ */
11511
+ proto.user.TelegramOidcLoginRequest.prototype.clearCity = function() {
11512
+ return jspb.Message.setField(this, 8, undefined);
11513
+ };
11514
+
11515
+
11516
+ /**
11517
+ * Returns whether this field is set.
11518
+ * @return {boolean}
11519
+ */
11520
+ proto.user.TelegramOidcLoginRequest.prototype.hasCity = function() {
11521
+ return jspb.Message.getField(this, 8) != null;
11522
+ };
11523
+
11524
+
11525
+ /**
11526
+ * optional string timezone = 9;
11527
+ * @return {string}
11528
+ */
11529
+ proto.user.TelegramOidcLoginRequest.prototype.getTimezone = function() {
11530
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
11531
+ };
11532
+
11533
+
11534
+ /**
11535
+ * @param {string} value
11536
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11537
+ */
11538
+ proto.user.TelegramOidcLoginRequest.prototype.setTimezone = function(value) {
11539
+ return jspb.Message.setField(this, 9, value);
11540
+ };
11541
+
11542
+
11543
+ /**
11544
+ * Clears the field making it undefined.
11545
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11546
+ */
11547
+ proto.user.TelegramOidcLoginRequest.prototype.clearTimezone = function() {
11548
+ return jspb.Message.setField(this, 9, undefined);
11549
+ };
11550
+
11551
+
11552
+ /**
11553
+ * Returns whether this field is set.
11554
+ * @return {boolean}
11555
+ */
11556
+ proto.user.TelegramOidcLoginRequest.prototype.hasTimezone = function() {
11557
+ return jspb.Message.getField(this, 9) != null;
11558
+ };
11559
+
11560
+
11561
+ /**
11562
+ * optional string locale = 10;
11563
+ * @return {string}
11564
+ */
11565
+ proto.user.TelegramOidcLoginRequest.prototype.getLocale = function() {
11566
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
11567
+ };
11568
+
11569
+
11570
+ /**
11571
+ * @param {string} value
11572
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11573
+ */
11574
+ proto.user.TelegramOidcLoginRequest.prototype.setLocale = function(value) {
11575
+ return jspb.Message.setField(this, 10, value);
11576
+ };
11577
+
11578
+
11579
+ /**
11580
+ * Clears the field making it undefined.
11581
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11582
+ */
11583
+ proto.user.TelegramOidcLoginRequest.prototype.clearLocale = function() {
11584
+ return jspb.Message.setField(this, 10, undefined);
11585
+ };
11586
+
11587
+
11588
+ /**
11589
+ * Returns whether this field is set.
11590
+ * @return {boolean}
11591
+ */
11592
+ proto.user.TelegramOidcLoginRequest.prototype.hasLocale = function() {
11593
+ return jspb.Message.getField(this, 10) != null;
11594
+ };
11595
+
11596
+
11597
+ /**
11598
+ * optional int32 affiliate_id = 11;
11599
+ * @return {number}
11600
+ */
11601
+ proto.user.TelegramOidcLoginRequest.prototype.getAffiliateId = function() {
11602
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
11603
+ };
11604
+
11605
+
11606
+ /**
11607
+ * @param {number} value
11608
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11609
+ */
11610
+ proto.user.TelegramOidcLoginRequest.prototype.setAffiliateId = function(value) {
11611
+ return jspb.Message.setField(this, 11, value);
11612
+ };
11613
+
11614
+
11615
+ /**
11616
+ * Clears the field making it undefined.
11617
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11618
+ */
11619
+ proto.user.TelegramOidcLoginRequest.prototype.clearAffiliateId = function() {
11620
+ return jspb.Message.setField(this, 11, undefined);
11621
+ };
11622
+
11623
+
11624
+ /**
11625
+ * Returns whether this field is set.
11626
+ * @return {boolean}
11627
+ */
11628
+ proto.user.TelegramOidcLoginRequest.prototype.hasAffiliateId = function() {
11629
+ return jspb.Message.getField(this, 11) != null;
11630
+ };
11631
+
11632
+
11633
+ /**
11634
+ * optional string affiliate_info = 12;
11635
+ * @return {string}
11636
+ */
11637
+ proto.user.TelegramOidcLoginRequest.prototype.getAffiliateInfo = function() {
11638
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
11639
+ };
11640
+
11641
+
11642
+ /**
11643
+ * @param {string} value
11644
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11645
+ */
11646
+ proto.user.TelegramOidcLoginRequest.prototype.setAffiliateInfo = function(value) {
11647
+ return jspb.Message.setField(this, 12, value);
11648
+ };
11649
+
11650
+
11651
+ /**
11652
+ * Clears the field making it undefined.
11653
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11654
+ */
11655
+ proto.user.TelegramOidcLoginRequest.prototype.clearAffiliateInfo = function() {
11656
+ return jspb.Message.setField(this, 12, undefined);
11657
+ };
11658
+
11659
+
11660
+ /**
11661
+ * Returns whether this field is set.
11662
+ * @return {boolean}
11663
+ */
11664
+ proto.user.TelegramOidcLoginRequest.prototype.hasAffiliateInfo = function() {
11665
+ return jspb.Message.getField(this, 12) != null;
11666
+ };
11667
+
11668
+
11669
+ /**
11670
+ * optional string promo_code = 13;
11671
+ * @return {string}
11672
+ */
11673
+ proto.user.TelegramOidcLoginRequest.prototype.getPromoCode = function() {
11674
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
11675
+ };
11676
+
11677
+
11678
+ /**
11679
+ * @param {string} value
11680
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11681
+ */
11682
+ proto.user.TelegramOidcLoginRequest.prototype.setPromoCode = function(value) {
11683
+ return jspb.Message.setField(this, 13, value);
11684
+ };
11685
+
11686
+
11687
+ /**
11688
+ * Clears the field making it undefined.
11689
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11690
+ */
11691
+ proto.user.TelegramOidcLoginRequest.prototype.clearPromoCode = function() {
11692
+ return jspb.Message.setField(this, 13, undefined);
11693
+ };
11694
+
11695
+
11696
+ /**
11697
+ * Returns whether this field is set.
11698
+ * @return {boolean}
11699
+ */
11700
+ proto.user.TelegramOidcLoginRequest.prototype.hasPromoCode = function() {
11701
+ return jspb.Message.getField(this, 13) != null;
11702
+ };
11703
+
11704
+
11705
+ /**
11706
+ * optional string seon_session = 14;
11707
+ * @return {string}
11708
+ */
11709
+ proto.user.TelegramOidcLoginRequest.prototype.getSeonSession = function() {
11710
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
11711
+ };
11712
+
11713
+
11714
+ /**
11715
+ * @param {string} value
11716
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11717
+ */
11718
+ proto.user.TelegramOidcLoginRequest.prototype.setSeonSession = function(value) {
11719
+ return jspb.Message.setField(this, 14, value);
11720
+ };
11721
+
11722
+
11723
+ /**
11724
+ * Clears the field making it undefined.
11725
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11726
+ */
11727
+ proto.user.TelegramOidcLoginRequest.prototype.clearSeonSession = function() {
11728
+ return jspb.Message.setField(this, 14, undefined);
11729
+ };
11730
+
11731
+
11732
+ /**
11733
+ * Returns whether this field is set.
11734
+ * @return {boolean}
11735
+ */
11736
+ proto.user.TelegramOidcLoginRequest.prototype.hasSeonSession = function() {
11737
+ return jspb.Message.getField(this, 14) != null;
11738
+ };
11739
+
11740
+
11741
+ /**
11742
+ * optional string request_id = 15;
11743
+ * @return {string}
11744
+ */
11745
+ proto.user.TelegramOidcLoginRequest.prototype.getRequestId = function() {
11746
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
11747
+ };
11748
+
11749
+
11750
+ /**
11751
+ * @param {string} value
11752
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11753
+ */
11754
+ proto.user.TelegramOidcLoginRequest.prototype.setRequestId = function(value) {
11755
+ return jspb.Message.setField(this, 15, value);
11756
+ };
11757
+
11758
+
11759
+ /**
11760
+ * Clears the field making it undefined.
11761
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11762
+ */
11763
+ proto.user.TelegramOidcLoginRequest.prototype.clearRequestId = function() {
11764
+ return jspb.Message.setField(this, 15, undefined);
11765
+ };
11766
+
11767
+
11768
+ /**
11769
+ * Returns whether this field is set.
11770
+ * @return {boolean}
11771
+ */
11772
+ proto.user.TelegramOidcLoginRequest.prototype.hasRequestId = function() {
11773
+ return jspb.Message.getField(this, 15) != null;
11774
+ };
11775
+
11776
+
11777
+ /**
11778
+ * optional string correlation_id = 16;
11779
+ * @return {string}
11780
+ */
11781
+ proto.user.TelegramOidcLoginRequest.prototype.getCorrelationId = function() {
11782
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
11783
+ };
11784
+
11785
+
11786
+ /**
11787
+ * @param {string} value
11788
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11789
+ */
11790
+ proto.user.TelegramOidcLoginRequest.prototype.setCorrelationId = function(value) {
11791
+ return jspb.Message.setField(this, 16, value);
11792
+ };
11793
+
11794
+
11795
+ /**
11796
+ * Clears the field making it undefined.
11797
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11798
+ */
11799
+ proto.user.TelegramOidcLoginRequest.prototype.clearCorrelationId = function() {
11800
+ return jspb.Message.setField(this, 16, undefined);
11801
+ };
11802
+
11803
+
11804
+ /**
11805
+ * Returns whether this field is set.
11806
+ * @return {boolean}
11807
+ */
11808
+ proto.user.TelegramOidcLoginRequest.prototype.hasCorrelationId = function() {
11809
+ return jspb.Message.getField(this, 16) != null;
11810
+ };
11811
+
11812
+
11813
+ /**
11814
+ * optional string user_agent = 17;
11815
+ * @return {string}
11816
+ */
11817
+ proto.user.TelegramOidcLoginRequest.prototype.getUserAgent = function() {
11818
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
11819
+ };
11820
+
11821
+
11822
+ /**
11823
+ * @param {string} value
11824
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11825
+ */
11826
+ proto.user.TelegramOidcLoginRequest.prototype.setUserAgent = function(value) {
11827
+ return jspb.Message.setField(this, 17, value);
11828
+ };
11829
+
11830
+
11831
+ /**
11832
+ * Clears the field making it undefined.
11833
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11834
+ */
11835
+ proto.user.TelegramOidcLoginRequest.prototype.clearUserAgent = function() {
11836
+ return jspb.Message.setField(this, 17, undefined);
11837
+ };
11838
+
11839
+
11840
+ /**
11841
+ * Returns whether this field is set.
11842
+ * @return {boolean}
11843
+ */
11844
+ proto.user.TelegramOidcLoginRequest.prototype.hasUserAgent = function() {
11845
+ return jspb.Message.getField(this, 17) != null;
11846
+ };
11847
+
11848
+
11849
+ /**
11850
+ * optional string antifraud_session = 18;
11851
+ * @return {string}
11852
+ */
11853
+ proto.user.TelegramOidcLoginRequest.prototype.getAntifraudSession = function() {
11854
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
11855
+ };
11856
+
11857
+
11858
+ /**
11859
+ * @param {string} value
11860
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11861
+ */
11862
+ proto.user.TelegramOidcLoginRequest.prototype.setAntifraudSession = function(value) {
11863
+ return jspb.Message.setField(this, 18, value);
11864
+ };
11865
+
11866
+
11867
+ /**
11868
+ * Clears the field making it undefined.
11869
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11870
+ */
11871
+ proto.user.TelegramOidcLoginRequest.prototype.clearAntifraudSession = function() {
11872
+ return jspb.Message.setField(this, 18, undefined);
11873
+ };
11874
+
11875
+
11876
+ /**
11877
+ * Returns whether this field is set.
11878
+ * @return {boolean}
11879
+ */
11880
+ proto.user.TelegramOidcLoginRequest.prototype.hasAntifraudSession = function() {
11881
+ return jspb.Message.getField(this, 18) != null;
11882
+ };
11883
+
11884
+
11885
+ /**
11886
+ * optional string ip_country = 19;
11887
+ * @return {string}
11888
+ */
11889
+ proto.user.TelegramOidcLoginRequest.prototype.getIpCountry = function() {
11890
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
11891
+ };
11892
+
11893
+
11894
+ /**
11895
+ * @param {string} value
11896
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11897
+ */
11898
+ proto.user.TelegramOidcLoginRequest.prototype.setIpCountry = function(value) {
11899
+ return jspb.Message.setField(this, 19, value);
11900
+ };
11901
+
11902
+
11903
+ /**
11904
+ * Clears the field making it undefined.
11905
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11906
+ */
11907
+ proto.user.TelegramOidcLoginRequest.prototype.clearIpCountry = function() {
11908
+ return jspb.Message.setField(this, 19, undefined);
11909
+ };
11910
+
11911
+
11912
+ /**
11913
+ * Returns whether this field is set.
11914
+ * @return {boolean}
11915
+ */
11916
+ proto.user.TelegramOidcLoginRequest.prototype.hasIpCountry = function() {
11917
+ return jspb.Message.getField(this, 19) != null;
11918
+ };
11919
+
11920
+
11921
+ /**
11922
+ * optional string preset_code = 20;
11923
+ * @return {string}
11924
+ */
11925
+ proto.user.TelegramOidcLoginRequest.prototype.getPresetCode = function() {
11926
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
11927
+ };
11928
+
11929
+
11930
+ /**
11931
+ * @param {string} value
11932
+ * @return {!proto.user.TelegramOidcLoginRequest} returns this
11933
+ */
11934
+ proto.user.TelegramOidcLoginRequest.prototype.setPresetCode = function(value) {
11935
+ return jspb.Message.setProto3StringField(this, 20, value);
11936
+ };
11937
+
11938
+
11939
+
11940
+
11941
+
10950
11942
  if (jspb.Message.GENERATE_TO_OBJECT) {
10951
11943
  /**
10952
11944
  * Creates an object representation of this proto.