protobuf-platform 1.2.216 → 1.2.219

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.216",
3
+ "version": "1.2.219",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
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;
@@ -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.