protobuf-platform 1.2.592 → 1.2.593

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/user/user_pb.js CHANGED
@@ -307,7 +307,9 @@ goog.exportSymbol('proto.user.VerificationStatus', null, global);
307
307
  goog.exportSymbol('proto.user.VerificationStatusItemsResponse', null, global);
308
308
  goog.exportSymbol('proto.user.VerifySmsResetPasswordCodeRequest', null, global);
309
309
  goog.exportSymbol('proto.user.VerifySmsResetPasswordCodeResponse', null, global);
310
+ goog.exportSymbol('proto.user.VkCommonIdLoginRequest', null, global);
310
311
  goog.exportSymbol('proto.user.XLoginRequest', null, global);
312
+ goog.exportSymbol('proto.user.YandexLoginRequest', null, global);
311
313
  /**
312
314
  * Generated by JsPbCodeGenerator.
313
315
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -623,6 +625,48 @@ if (goog.DEBUG && !COMPILED) {
623
625
  */
624
626
  proto.user.XLoginRequest.displayName = 'proto.user.XLoginRequest';
625
627
  }
628
+ /**
629
+ * Generated by JsPbCodeGenerator.
630
+ * @param {Array=} opt_data Optional initial data array, typically from a
631
+ * server response, or constructed directly in Javascript. The array is used
632
+ * in place and becomes part of the constructed object. It is not cloned.
633
+ * If no data is provided, the constructed object will be empty, but still
634
+ * valid.
635
+ * @extends {jspb.Message}
636
+ * @constructor
637
+ */
638
+ proto.user.YandexLoginRequest = function(opt_data) {
639
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
640
+ };
641
+ goog.inherits(proto.user.YandexLoginRequest, jspb.Message);
642
+ if (goog.DEBUG && !COMPILED) {
643
+ /**
644
+ * @public
645
+ * @override
646
+ */
647
+ proto.user.YandexLoginRequest.displayName = 'proto.user.YandexLoginRequest';
648
+ }
649
+ /**
650
+ * Generated by JsPbCodeGenerator.
651
+ * @param {Array=} opt_data Optional initial data array, typically from a
652
+ * server response, or constructed directly in Javascript. The array is used
653
+ * in place and becomes part of the constructed object. It is not cloned.
654
+ * If no data is provided, the constructed object will be empty, but still
655
+ * valid.
656
+ * @extends {jspb.Message}
657
+ * @constructor
658
+ */
659
+ proto.user.VkCommonIdLoginRequest = function(opt_data) {
660
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
661
+ };
662
+ goog.inherits(proto.user.VkCommonIdLoginRequest, jspb.Message);
663
+ if (goog.DEBUG && !COMPILED) {
664
+ /**
665
+ * @public
666
+ * @override
667
+ */
668
+ proto.user.VkCommonIdLoginRequest.displayName = 'proto.user.VkCommonIdLoginRequest';
669
+ }
626
670
  /**
627
671
  * Generated by JsPbCodeGenerator.
628
672
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -16057,6 +16101,1952 @@ proto.user.XLoginRequest.prototype.hasIpCountry = function() {
16057
16101
 
16058
16102
 
16059
16103
 
16104
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16105
+ /**
16106
+ * Creates an object representation of this proto.
16107
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16108
+ * Optional fields that are not set will be set to undefined.
16109
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16110
+ * For the list of reserved names please see:
16111
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16112
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16113
+ * JSPB instance for transitional soy proto support:
16114
+ * http://goto/soy-param-migration
16115
+ * @return {!Object}
16116
+ */
16117
+ proto.user.YandexLoginRequest.prototype.toObject = function(opt_includeInstance) {
16118
+ return proto.user.YandexLoginRequest.toObject(opt_includeInstance, this);
16119
+ };
16120
+
16121
+
16122
+ /**
16123
+ * Static version of the {@see toObject} method.
16124
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16125
+ * the JSPB instance for transitional soy proto support:
16126
+ * http://goto/soy-param-migration
16127
+ * @param {!proto.user.YandexLoginRequest} msg The msg instance to transform.
16128
+ * @return {!Object}
16129
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16130
+ */
16131
+ proto.user.YandexLoginRequest.toObject = function(includeInstance, msg) {
16132
+ var f, obj = {
16133
+ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
16134
+ redirectUri: jspb.Message.getFieldWithDefault(msg, 2, ""),
16135
+ codeVerifier: jspb.Message.getFieldWithDefault(msg, 3, ""),
16136
+ userIp: jspb.Message.getFieldWithDefault(msg, 4, ""),
16137
+ device: jspb.Message.getFieldWithDefault(msg, 5, ""),
16138
+ country: jspb.Message.getFieldWithDefault(msg, 6, ""),
16139
+ city: jspb.Message.getFieldWithDefault(msg, 7, ""),
16140
+ timezone: jspb.Message.getFieldWithDefault(msg, 8, ""),
16141
+ locale: jspb.Message.getFieldWithDefault(msg, 9, ""),
16142
+ affiliateId: jspb.Message.getFieldWithDefault(msg, 10, 0),
16143
+ affiliateInfo: jspb.Message.getFieldWithDefault(msg, 11, ""),
16144
+ promoCode: jspb.Message.getFieldWithDefault(msg, 12, ""),
16145
+ seonSession: jspb.Message.getFieldWithDefault(msg, 13, ""),
16146
+ requestId: jspb.Message.getFieldWithDefault(msg, 14, ""),
16147
+ correlationId: jspb.Message.getFieldWithDefault(msg, 15, ""),
16148
+ userAgent: jspb.Message.getFieldWithDefault(msg, 16, ""),
16149
+ antifraudSession: jspb.Message.getFieldWithDefault(msg, 17, ""),
16150
+ ipCountry: jspb.Message.getFieldWithDefault(msg, 18, ""),
16151
+ presetCode: jspb.Message.getFieldWithDefault(msg, 19, "")
16152
+ };
16153
+
16154
+ if (includeInstance) {
16155
+ obj.$jspbMessageInstance = msg;
16156
+ }
16157
+ return obj;
16158
+ };
16159
+ }
16160
+
16161
+
16162
+ /**
16163
+ * Deserializes binary data (in protobuf wire format).
16164
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16165
+ * @return {!proto.user.YandexLoginRequest}
16166
+ */
16167
+ proto.user.YandexLoginRequest.deserializeBinary = function(bytes) {
16168
+ var reader = new jspb.BinaryReader(bytes);
16169
+ var msg = new proto.user.YandexLoginRequest;
16170
+ return proto.user.YandexLoginRequest.deserializeBinaryFromReader(msg, reader);
16171
+ };
16172
+
16173
+
16174
+ /**
16175
+ * Deserializes binary data (in protobuf wire format) from the
16176
+ * given reader into the given message object.
16177
+ * @param {!proto.user.YandexLoginRequest} msg The message object to deserialize into.
16178
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16179
+ * @return {!proto.user.YandexLoginRequest}
16180
+ */
16181
+ proto.user.YandexLoginRequest.deserializeBinaryFromReader = function(msg, reader) {
16182
+ while (reader.nextField()) {
16183
+ if (reader.isEndGroup()) {
16184
+ break;
16185
+ }
16186
+ var field = reader.getFieldNumber();
16187
+ switch (field) {
16188
+ case 1:
16189
+ var value = /** @type {string} */ (reader.readString());
16190
+ msg.setCode(value);
16191
+ break;
16192
+ case 2:
16193
+ var value = /** @type {string} */ (reader.readString());
16194
+ msg.setRedirectUri(value);
16195
+ break;
16196
+ case 3:
16197
+ var value = /** @type {string} */ (reader.readString());
16198
+ msg.setCodeVerifier(value);
16199
+ break;
16200
+ case 4:
16201
+ var value = /** @type {string} */ (reader.readString());
16202
+ msg.setUserIp(value);
16203
+ break;
16204
+ case 5:
16205
+ var value = /** @type {string} */ (reader.readString());
16206
+ msg.setDevice(value);
16207
+ break;
16208
+ case 6:
16209
+ var value = /** @type {string} */ (reader.readString());
16210
+ msg.setCountry(value);
16211
+ break;
16212
+ case 7:
16213
+ var value = /** @type {string} */ (reader.readString());
16214
+ msg.setCity(value);
16215
+ break;
16216
+ case 8:
16217
+ var value = /** @type {string} */ (reader.readString());
16218
+ msg.setTimezone(value);
16219
+ break;
16220
+ case 9:
16221
+ var value = /** @type {string} */ (reader.readString());
16222
+ msg.setLocale(value);
16223
+ break;
16224
+ case 10:
16225
+ var value = /** @type {number} */ (reader.readInt32());
16226
+ msg.setAffiliateId(value);
16227
+ break;
16228
+ case 11:
16229
+ var value = /** @type {string} */ (reader.readString());
16230
+ msg.setAffiliateInfo(value);
16231
+ break;
16232
+ case 12:
16233
+ var value = /** @type {string} */ (reader.readString());
16234
+ msg.setPromoCode(value);
16235
+ break;
16236
+ case 13:
16237
+ var value = /** @type {string} */ (reader.readString());
16238
+ msg.setSeonSession(value);
16239
+ break;
16240
+ case 14:
16241
+ var value = /** @type {string} */ (reader.readString());
16242
+ msg.setRequestId(value);
16243
+ break;
16244
+ case 15:
16245
+ var value = /** @type {string} */ (reader.readString());
16246
+ msg.setCorrelationId(value);
16247
+ break;
16248
+ case 16:
16249
+ var value = /** @type {string} */ (reader.readString());
16250
+ msg.setUserAgent(value);
16251
+ break;
16252
+ case 17:
16253
+ var value = /** @type {string} */ (reader.readString());
16254
+ msg.setAntifraudSession(value);
16255
+ break;
16256
+ case 18:
16257
+ var value = /** @type {string} */ (reader.readString());
16258
+ msg.setIpCountry(value);
16259
+ break;
16260
+ case 19:
16261
+ var value = /** @type {string} */ (reader.readString());
16262
+ msg.setPresetCode(value);
16263
+ break;
16264
+ default:
16265
+ reader.skipField();
16266
+ break;
16267
+ }
16268
+ }
16269
+ return msg;
16270
+ };
16271
+
16272
+
16273
+ /**
16274
+ * Serializes the message to binary data (in protobuf wire format).
16275
+ * @return {!Uint8Array}
16276
+ */
16277
+ proto.user.YandexLoginRequest.prototype.serializeBinary = function() {
16278
+ var writer = new jspb.BinaryWriter();
16279
+ proto.user.YandexLoginRequest.serializeBinaryToWriter(this, writer);
16280
+ return writer.getResultBuffer();
16281
+ };
16282
+
16283
+
16284
+ /**
16285
+ * Serializes the given message to binary data (in protobuf wire
16286
+ * format), writing to the given BinaryWriter.
16287
+ * @param {!proto.user.YandexLoginRequest} message
16288
+ * @param {!jspb.BinaryWriter} writer
16289
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16290
+ */
16291
+ proto.user.YandexLoginRequest.serializeBinaryToWriter = function(message, writer) {
16292
+ var f = undefined;
16293
+ f = message.getCode();
16294
+ if (f.length > 0) {
16295
+ writer.writeString(
16296
+ 1,
16297
+ f
16298
+ );
16299
+ }
16300
+ f = message.getRedirectUri();
16301
+ if (f.length > 0) {
16302
+ writer.writeString(
16303
+ 2,
16304
+ f
16305
+ );
16306
+ }
16307
+ f = message.getCodeVerifier();
16308
+ if (f.length > 0) {
16309
+ writer.writeString(
16310
+ 3,
16311
+ f
16312
+ );
16313
+ }
16314
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
16315
+ if (f != null) {
16316
+ writer.writeString(
16317
+ 4,
16318
+ f
16319
+ );
16320
+ }
16321
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
16322
+ if (f != null) {
16323
+ writer.writeString(
16324
+ 5,
16325
+ f
16326
+ );
16327
+ }
16328
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
16329
+ if (f != null) {
16330
+ writer.writeString(
16331
+ 6,
16332
+ f
16333
+ );
16334
+ }
16335
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
16336
+ if (f != null) {
16337
+ writer.writeString(
16338
+ 7,
16339
+ f
16340
+ );
16341
+ }
16342
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
16343
+ if (f != null) {
16344
+ writer.writeString(
16345
+ 8,
16346
+ f
16347
+ );
16348
+ }
16349
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
16350
+ if (f != null) {
16351
+ writer.writeString(
16352
+ 9,
16353
+ f
16354
+ );
16355
+ }
16356
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
16357
+ if (f != null) {
16358
+ writer.writeInt32(
16359
+ 10,
16360
+ f
16361
+ );
16362
+ }
16363
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
16364
+ if (f != null) {
16365
+ writer.writeString(
16366
+ 11,
16367
+ f
16368
+ );
16369
+ }
16370
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
16371
+ if (f != null) {
16372
+ writer.writeString(
16373
+ 12,
16374
+ f
16375
+ );
16376
+ }
16377
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
16378
+ if (f != null) {
16379
+ writer.writeString(
16380
+ 13,
16381
+ f
16382
+ );
16383
+ }
16384
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
16385
+ if (f != null) {
16386
+ writer.writeString(
16387
+ 14,
16388
+ f
16389
+ );
16390
+ }
16391
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
16392
+ if (f != null) {
16393
+ writer.writeString(
16394
+ 15,
16395
+ f
16396
+ );
16397
+ }
16398
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
16399
+ if (f != null) {
16400
+ writer.writeString(
16401
+ 16,
16402
+ f
16403
+ );
16404
+ }
16405
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
16406
+ if (f != null) {
16407
+ writer.writeString(
16408
+ 17,
16409
+ f
16410
+ );
16411
+ }
16412
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
16413
+ if (f != null) {
16414
+ writer.writeString(
16415
+ 18,
16416
+ f
16417
+ );
16418
+ }
16419
+ f = /** @type {string} */ (jspb.Message.getField(message, 19));
16420
+ if (f != null) {
16421
+ writer.writeString(
16422
+ 19,
16423
+ f
16424
+ );
16425
+ }
16426
+ };
16427
+
16428
+
16429
+ /**
16430
+ * optional string code = 1;
16431
+ * @return {string}
16432
+ */
16433
+ proto.user.YandexLoginRequest.prototype.getCode = function() {
16434
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16435
+ };
16436
+
16437
+
16438
+ /**
16439
+ * @param {string} value
16440
+ * @return {!proto.user.YandexLoginRequest} returns this
16441
+ */
16442
+ proto.user.YandexLoginRequest.prototype.setCode = function(value) {
16443
+ return jspb.Message.setProto3StringField(this, 1, value);
16444
+ };
16445
+
16446
+
16447
+ /**
16448
+ * optional string redirect_uri = 2;
16449
+ * @return {string}
16450
+ */
16451
+ proto.user.YandexLoginRequest.prototype.getRedirectUri = function() {
16452
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
16453
+ };
16454
+
16455
+
16456
+ /**
16457
+ * @param {string} value
16458
+ * @return {!proto.user.YandexLoginRequest} returns this
16459
+ */
16460
+ proto.user.YandexLoginRequest.prototype.setRedirectUri = function(value) {
16461
+ return jspb.Message.setProto3StringField(this, 2, value);
16462
+ };
16463
+
16464
+
16465
+ /**
16466
+ * optional string code_verifier = 3;
16467
+ * @return {string}
16468
+ */
16469
+ proto.user.YandexLoginRequest.prototype.getCodeVerifier = function() {
16470
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
16471
+ };
16472
+
16473
+
16474
+ /**
16475
+ * @param {string} value
16476
+ * @return {!proto.user.YandexLoginRequest} returns this
16477
+ */
16478
+ proto.user.YandexLoginRequest.prototype.setCodeVerifier = function(value) {
16479
+ return jspb.Message.setProto3StringField(this, 3, value);
16480
+ };
16481
+
16482
+
16483
+ /**
16484
+ * optional string user_ip = 4;
16485
+ * @return {string}
16486
+ */
16487
+ proto.user.YandexLoginRequest.prototype.getUserIp = function() {
16488
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
16489
+ };
16490
+
16491
+
16492
+ /**
16493
+ * @param {string} value
16494
+ * @return {!proto.user.YandexLoginRequest} returns this
16495
+ */
16496
+ proto.user.YandexLoginRequest.prototype.setUserIp = function(value) {
16497
+ return jspb.Message.setField(this, 4, value);
16498
+ };
16499
+
16500
+
16501
+ /**
16502
+ * Clears the field making it undefined.
16503
+ * @return {!proto.user.YandexLoginRequest} returns this
16504
+ */
16505
+ proto.user.YandexLoginRequest.prototype.clearUserIp = function() {
16506
+ return jspb.Message.setField(this, 4, undefined);
16507
+ };
16508
+
16509
+
16510
+ /**
16511
+ * Returns whether this field is set.
16512
+ * @return {boolean}
16513
+ */
16514
+ proto.user.YandexLoginRequest.prototype.hasUserIp = function() {
16515
+ return jspb.Message.getField(this, 4) != null;
16516
+ };
16517
+
16518
+
16519
+ /**
16520
+ * optional string device = 5;
16521
+ * @return {string}
16522
+ */
16523
+ proto.user.YandexLoginRequest.prototype.getDevice = function() {
16524
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
16525
+ };
16526
+
16527
+
16528
+ /**
16529
+ * @param {string} value
16530
+ * @return {!proto.user.YandexLoginRequest} returns this
16531
+ */
16532
+ proto.user.YandexLoginRequest.prototype.setDevice = function(value) {
16533
+ return jspb.Message.setField(this, 5, value);
16534
+ };
16535
+
16536
+
16537
+ /**
16538
+ * Clears the field making it undefined.
16539
+ * @return {!proto.user.YandexLoginRequest} returns this
16540
+ */
16541
+ proto.user.YandexLoginRequest.prototype.clearDevice = function() {
16542
+ return jspb.Message.setField(this, 5, undefined);
16543
+ };
16544
+
16545
+
16546
+ /**
16547
+ * Returns whether this field is set.
16548
+ * @return {boolean}
16549
+ */
16550
+ proto.user.YandexLoginRequest.prototype.hasDevice = function() {
16551
+ return jspb.Message.getField(this, 5) != null;
16552
+ };
16553
+
16554
+
16555
+ /**
16556
+ * optional string country = 6;
16557
+ * @return {string}
16558
+ */
16559
+ proto.user.YandexLoginRequest.prototype.getCountry = function() {
16560
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
16561
+ };
16562
+
16563
+
16564
+ /**
16565
+ * @param {string} value
16566
+ * @return {!proto.user.YandexLoginRequest} returns this
16567
+ */
16568
+ proto.user.YandexLoginRequest.prototype.setCountry = function(value) {
16569
+ return jspb.Message.setField(this, 6, value);
16570
+ };
16571
+
16572
+
16573
+ /**
16574
+ * Clears the field making it undefined.
16575
+ * @return {!proto.user.YandexLoginRequest} returns this
16576
+ */
16577
+ proto.user.YandexLoginRequest.prototype.clearCountry = function() {
16578
+ return jspb.Message.setField(this, 6, undefined);
16579
+ };
16580
+
16581
+
16582
+ /**
16583
+ * Returns whether this field is set.
16584
+ * @return {boolean}
16585
+ */
16586
+ proto.user.YandexLoginRequest.prototype.hasCountry = function() {
16587
+ return jspb.Message.getField(this, 6) != null;
16588
+ };
16589
+
16590
+
16591
+ /**
16592
+ * optional string city = 7;
16593
+ * @return {string}
16594
+ */
16595
+ proto.user.YandexLoginRequest.prototype.getCity = function() {
16596
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
16597
+ };
16598
+
16599
+
16600
+ /**
16601
+ * @param {string} value
16602
+ * @return {!proto.user.YandexLoginRequest} returns this
16603
+ */
16604
+ proto.user.YandexLoginRequest.prototype.setCity = function(value) {
16605
+ return jspb.Message.setField(this, 7, value);
16606
+ };
16607
+
16608
+
16609
+ /**
16610
+ * Clears the field making it undefined.
16611
+ * @return {!proto.user.YandexLoginRequest} returns this
16612
+ */
16613
+ proto.user.YandexLoginRequest.prototype.clearCity = function() {
16614
+ return jspb.Message.setField(this, 7, undefined);
16615
+ };
16616
+
16617
+
16618
+ /**
16619
+ * Returns whether this field is set.
16620
+ * @return {boolean}
16621
+ */
16622
+ proto.user.YandexLoginRequest.prototype.hasCity = function() {
16623
+ return jspb.Message.getField(this, 7) != null;
16624
+ };
16625
+
16626
+
16627
+ /**
16628
+ * optional string timezone = 8;
16629
+ * @return {string}
16630
+ */
16631
+ proto.user.YandexLoginRequest.prototype.getTimezone = function() {
16632
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
16633
+ };
16634
+
16635
+
16636
+ /**
16637
+ * @param {string} value
16638
+ * @return {!proto.user.YandexLoginRequest} returns this
16639
+ */
16640
+ proto.user.YandexLoginRequest.prototype.setTimezone = function(value) {
16641
+ return jspb.Message.setField(this, 8, value);
16642
+ };
16643
+
16644
+
16645
+ /**
16646
+ * Clears the field making it undefined.
16647
+ * @return {!proto.user.YandexLoginRequest} returns this
16648
+ */
16649
+ proto.user.YandexLoginRequest.prototype.clearTimezone = function() {
16650
+ return jspb.Message.setField(this, 8, undefined);
16651
+ };
16652
+
16653
+
16654
+ /**
16655
+ * Returns whether this field is set.
16656
+ * @return {boolean}
16657
+ */
16658
+ proto.user.YandexLoginRequest.prototype.hasTimezone = function() {
16659
+ return jspb.Message.getField(this, 8) != null;
16660
+ };
16661
+
16662
+
16663
+ /**
16664
+ * optional string locale = 9;
16665
+ * @return {string}
16666
+ */
16667
+ proto.user.YandexLoginRequest.prototype.getLocale = function() {
16668
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
16669
+ };
16670
+
16671
+
16672
+ /**
16673
+ * @param {string} value
16674
+ * @return {!proto.user.YandexLoginRequest} returns this
16675
+ */
16676
+ proto.user.YandexLoginRequest.prototype.setLocale = function(value) {
16677
+ return jspb.Message.setField(this, 9, value);
16678
+ };
16679
+
16680
+
16681
+ /**
16682
+ * Clears the field making it undefined.
16683
+ * @return {!proto.user.YandexLoginRequest} returns this
16684
+ */
16685
+ proto.user.YandexLoginRequest.prototype.clearLocale = function() {
16686
+ return jspb.Message.setField(this, 9, undefined);
16687
+ };
16688
+
16689
+
16690
+ /**
16691
+ * Returns whether this field is set.
16692
+ * @return {boolean}
16693
+ */
16694
+ proto.user.YandexLoginRequest.prototype.hasLocale = function() {
16695
+ return jspb.Message.getField(this, 9) != null;
16696
+ };
16697
+
16698
+
16699
+ /**
16700
+ * optional int32 affiliate_id = 10;
16701
+ * @return {number}
16702
+ */
16703
+ proto.user.YandexLoginRequest.prototype.getAffiliateId = function() {
16704
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
16705
+ };
16706
+
16707
+
16708
+ /**
16709
+ * @param {number} value
16710
+ * @return {!proto.user.YandexLoginRequest} returns this
16711
+ */
16712
+ proto.user.YandexLoginRequest.prototype.setAffiliateId = function(value) {
16713
+ return jspb.Message.setField(this, 10, value);
16714
+ };
16715
+
16716
+
16717
+ /**
16718
+ * Clears the field making it undefined.
16719
+ * @return {!proto.user.YandexLoginRequest} returns this
16720
+ */
16721
+ proto.user.YandexLoginRequest.prototype.clearAffiliateId = function() {
16722
+ return jspb.Message.setField(this, 10, undefined);
16723
+ };
16724
+
16725
+
16726
+ /**
16727
+ * Returns whether this field is set.
16728
+ * @return {boolean}
16729
+ */
16730
+ proto.user.YandexLoginRequest.prototype.hasAffiliateId = function() {
16731
+ return jspb.Message.getField(this, 10) != null;
16732
+ };
16733
+
16734
+
16735
+ /**
16736
+ * optional string affiliate_info = 11;
16737
+ * @return {string}
16738
+ */
16739
+ proto.user.YandexLoginRequest.prototype.getAffiliateInfo = function() {
16740
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
16741
+ };
16742
+
16743
+
16744
+ /**
16745
+ * @param {string} value
16746
+ * @return {!proto.user.YandexLoginRequest} returns this
16747
+ */
16748
+ proto.user.YandexLoginRequest.prototype.setAffiliateInfo = function(value) {
16749
+ return jspb.Message.setField(this, 11, value);
16750
+ };
16751
+
16752
+
16753
+ /**
16754
+ * Clears the field making it undefined.
16755
+ * @return {!proto.user.YandexLoginRequest} returns this
16756
+ */
16757
+ proto.user.YandexLoginRequest.prototype.clearAffiliateInfo = function() {
16758
+ return jspb.Message.setField(this, 11, undefined);
16759
+ };
16760
+
16761
+
16762
+ /**
16763
+ * Returns whether this field is set.
16764
+ * @return {boolean}
16765
+ */
16766
+ proto.user.YandexLoginRequest.prototype.hasAffiliateInfo = function() {
16767
+ return jspb.Message.getField(this, 11) != null;
16768
+ };
16769
+
16770
+
16771
+ /**
16772
+ * optional string promo_code = 12;
16773
+ * @return {string}
16774
+ */
16775
+ proto.user.YandexLoginRequest.prototype.getPromoCode = function() {
16776
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
16777
+ };
16778
+
16779
+
16780
+ /**
16781
+ * @param {string} value
16782
+ * @return {!proto.user.YandexLoginRequest} returns this
16783
+ */
16784
+ proto.user.YandexLoginRequest.prototype.setPromoCode = function(value) {
16785
+ return jspb.Message.setField(this, 12, value);
16786
+ };
16787
+
16788
+
16789
+ /**
16790
+ * Clears the field making it undefined.
16791
+ * @return {!proto.user.YandexLoginRequest} returns this
16792
+ */
16793
+ proto.user.YandexLoginRequest.prototype.clearPromoCode = function() {
16794
+ return jspb.Message.setField(this, 12, undefined);
16795
+ };
16796
+
16797
+
16798
+ /**
16799
+ * Returns whether this field is set.
16800
+ * @return {boolean}
16801
+ */
16802
+ proto.user.YandexLoginRequest.prototype.hasPromoCode = function() {
16803
+ return jspb.Message.getField(this, 12) != null;
16804
+ };
16805
+
16806
+
16807
+ /**
16808
+ * optional string seon_session = 13;
16809
+ * @return {string}
16810
+ */
16811
+ proto.user.YandexLoginRequest.prototype.getSeonSession = function() {
16812
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
16813
+ };
16814
+
16815
+
16816
+ /**
16817
+ * @param {string} value
16818
+ * @return {!proto.user.YandexLoginRequest} returns this
16819
+ */
16820
+ proto.user.YandexLoginRequest.prototype.setSeonSession = function(value) {
16821
+ return jspb.Message.setField(this, 13, value);
16822
+ };
16823
+
16824
+
16825
+ /**
16826
+ * Clears the field making it undefined.
16827
+ * @return {!proto.user.YandexLoginRequest} returns this
16828
+ */
16829
+ proto.user.YandexLoginRequest.prototype.clearSeonSession = function() {
16830
+ return jspb.Message.setField(this, 13, undefined);
16831
+ };
16832
+
16833
+
16834
+ /**
16835
+ * Returns whether this field is set.
16836
+ * @return {boolean}
16837
+ */
16838
+ proto.user.YandexLoginRequest.prototype.hasSeonSession = function() {
16839
+ return jspb.Message.getField(this, 13) != null;
16840
+ };
16841
+
16842
+
16843
+ /**
16844
+ * optional string request_id = 14;
16845
+ * @return {string}
16846
+ */
16847
+ proto.user.YandexLoginRequest.prototype.getRequestId = function() {
16848
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
16849
+ };
16850
+
16851
+
16852
+ /**
16853
+ * @param {string} value
16854
+ * @return {!proto.user.YandexLoginRequest} returns this
16855
+ */
16856
+ proto.user.YandexLoginRequest.prototype.setRequestId = function(value) {
16857
+ return jspb.Message.setField(this, 14, value);
16858
+ };
16859
+
16860
+
16861
+ /**
16862
+ * Clears the field making it undefined.
16863
+ * @return {!proto.user.YandexLoginRequest} returns this
16864
+ */
16865
+ proto.user.YandexLoginRequest.prototype.clearRequestId = function() {
16866
+ return jspb.Message.setField(this, 14, undefined);
16867
+ };
16868
+
16869
+
16870
+ /**
16871
+ * Returns whether this field is set.
16872
+ * @return {boolean}
16873
+ */
16874
+ proto.user.YandexLoginRequest.prototype.hasRequestId = function() {
16875
+ return jspb.Message.getField(this, 14) != null;
16876
+ };
16877
+
16878
+
16879
+ /**
16880
+ * optional string correlation_id = 15;
16881
+ * @return {string}
16882
+ */
16883
+ proto.user.YandexLoginRequest.prototype.getCorrelationId = function() {
16884
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
16885
+ };
16886
+
16887
+
16888
+ /**
16889
+ * @param {string} value
16890
+ * @return {!proto.user.YandexLoginRequest} returns this
16891
+ */
16892
+ proto.user.YandexLoginRequest.prototype.setCorrelationId = function(value) {
16893
+ return jspb.Message.setField(this, 15, value);
16894
+ };
16895
+
16896
+
16897
+ /**
16898
+ * Clears the field making it undefined.
16899
+ * @return {!proto.user.YandexLoginRequest} returns this
16900
+ */
16901
+ proto.user.YandexLoginRequest.prototype.clearCorrelationId = function() {
16902
+ return jspb.Message.setField(this, 15, undefined);
16903
+ };
16904
+
16905
+
16906
+ /**
16907
+ * Returns whether this field is set.
16908
+ * @return {boolean}
16909
+ */
16910
+ proto.user.YandexLoginRequest.prototype.hasCorrelationId = function() {
16911
+ return jspb.Message.getField(this, 15) != null;
16912
+ };
16913
+
16914
+
16915
+ /**
16916
+ * optional string user_agent = 16;
16917
+ * @return {string}
16918
+ */
16919
+ proto.user.YandexLoginRequest.prototype.getUserAgent = function() {
16920
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
16921
+ };
16922
+
16923
+
16924
+ /**
16925
+ * @param {string} value
16926
+ * @return {!proto.user.YandexLoginRequest} returns this
16927
+ */
16928
+ proto.user.YandexLoginRequest.prototype.setUserAgent = function(value) {
16929
+ return jspb.Message.setField(this, 16, value);
16930
+ };
16931
+
16932
+
16933
+ /**
16934
+ * Clears the field making it undefined.
16935
+ * @return {!proto.user.YandexLoginRequest} returns this
16936
+ */
16937
+ proto.user.YandexLoginRequest.prototype.clearUserAgent = function() {
16938
+ return jspb.Message.setField(this, 16, undefined);
16939
+ };
16940
+
16941
+
16942
+ /**
16943
+ * Returns whether this field is set.
16944
+ * @return {boolean}
16945
+ */
16946
+ proto.user.YandexLoginRequest.prototype.hasUserAgent = function() {
16947
+ return jspb.Message.getField(this, 16) != null;
16948
+ };
16949
+
16950
+
16951
+ /**
16952
+ * optional string antifraud_session = 17;
16953
+ * @return {string}
16954
+ */
16955
+ proto.user.YandexLoginRequest.prototype.getAntifraudSession = function() {
16956
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
16957
+ };
16958
+
16959
+
16960
+ /**
16961
+ * @param {string} value
16962
+ * @return {!proto.user.YandexLoginRequest} returns this
16963
+ */
16964
+ proto.user.YandexLoginRequest.prototype.setAntifraudSession = function(value) {
16965
+ return jspb.Message.setField(this, 17, value);
16966
+ };
16967
+
16968
+
16969
+ /**
16970
+ * Clears the field making it undefined.
16971
+ * @return {!proto.user.YandexLoginRequest} returns this
16972
+ */
16973
+ proto.user.YandexLoginRequest.prototype.clearAntifraudSession = function() {
16974
+ return jspb.Message.setField(this, 17, undefined);
16975
+ };
16976
+
16977
+
16978
+ /**
16979
+ * Returns whether this field is set.
16980
+ * @return {boolean}
16981
+ */
16982
+ proto.user.YandexLoginRequest.prototype.hasAntifraudSession = function() {
16983
+ return jspb.Message.getField(this, 17) != null;
16984
+ };
16985
+
16986
+
16987
+ /**
16988
+ * optional string ip_country = 18;
16989
+ * @return {string}
16990
+ */
16991
+ proto.user.YandexLoginRequest.prototype.getIpCountry = function() {
16992
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
16993
+ };
16994
+
16995
+
16996
+ /**
16997
+ * @param {string} value
16998
+ * @return {!proto.user.YandexLoginRequest} returns this
16999
+ */
17000
+ proto.user.YandexLoginRequest.prototype.setIpCountry = function(value) {
17001
+ return jspb.Message.setField(this, 18, value);
17002
+ };
17003
+
17004
+
17005
+ /**
17006
+ * Clears the field making it undefined.
17007
+ * @return {!proto.user.YandexLoginRequest} returns this
17008
+ */
17009
+ proto.user.YandexLoginRequest.prototype.clearIpCountry = function() {
17010
+ return jspb.Message.setField(this, 18, undefined);
17011
+ };
17012
+
17013
+
17014
+ /**
17015
+ * Returns whether this field is set.
17016
+ * @return {boolean}
17017
+ */
17018
+ proto.user.YandexLoginRequest.prototype.hasIpCountry = function() {
17019
+ return jspb.Message.getField(this, 18) != null;
17020
+ };
17021
+
17022
+
17023
+ /**
17024
+ * optional string preset_code = 19;
17025
+ * @return {string}
17026
+ */
17027
+ proto.user.YandexLoginRequest.prototype.getPresetCode = function() {
17028
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
17029
+ };
17030
+
17031
+
17032
+ /**
17033
+ * @param {string} value
17034
+ * @return {!proto.user.YandexLoginRequest} returns this
17035
+ */
17036
+ proto.user.YandexLoginRequest.prototype.setPresetCode = function(value) {
17037
+ return jspb.Message.setField(this, 19, value);
17038
+ };
17039
+
17040
+
17041
+ /**
17042
+ * Clears the field making it undefined.
17043
+ * @return {!proto.user.YandexLoginRequest} returns this
17044
+ */
17045
+ proto.user.YandexLoginRequest.prototype.clearPresetCode = function() {
17046
+ return jspb.Message.setField(this, 19, undefined);
17047
+ };
17048
+
17049
+
17050
+ /**
17051
+ * Returns whether this field is set.
17052
+ * @return {boolean}
17053
+ */
17054
+ proto.user.YandexLoginRequest.prototype.hasPresetCode = function() {
17055
+ return jspb.Message.getField(this, 19) != null;
17056
+ };
17057
+
17058
+
17059
+
17060
+
17061
+
17062
+ if (jspb.Message.GENERATE_TO_OBJECT) {
17063
+ /**
17064
+ * Creates an object representation of this proto.
17065
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
17066
+ * Optional fields that are not set will be set to undefined.
17067
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
17068
+ * For the list of reserved names please see:
17069
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
17070
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
17071
+ * JSPB instance for transitional soy proto support:
17072
+ * http://goto/soy-param-migration
17073
+ * @return {!Object}
17074
+ */
17075
+ proto.user.VkCommonIdLoginRequest.prototype.toObject = function(opt_includeInstance) {
17076
+ return proto.user.VkCommonIdLoginRequest.toObject(opt_includeInstance, this);
17077
+ };
17078
+
17079
+
17080
+ /**
17081
+ * Static version of the {@see toObject} method.
17082
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
17083
+ * the JSPB instance for transitional soy proto support:
17084
+ * http://goto/soy-param-migration
17085
+ * @param {!proto.user.VkCommonIdLoginRequest} msg The msg instance to transform.
17086
+ * @return {!Object}
17087
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17088
+ */
17089
+ proto.user.VkCommonIdLoginRequest.toObject = function(includeInstance, msg) {
17090
+ var f, obj = {
17091
+ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
17092
+ redirectUri: jspb.Message.getFieldWithDefault(msg, 2, ""),
17093
+ codeVerifier: jspb.Message.getFieldWithDefault(msg, 3, ""),
17094
+ deviceId: jspb.Message.getFieldWithDefault(msg, 4, ""),
17095
+ userIp: jspb.Message.getFieldWithDefault(msg, 5, ""),
17096
+ device: jspb.Message.getFieldWithDefault(msg, 6, ""),
17097
+ country: jspb.Message.getFieldWithDefault(msg, 7, ""),
17098
+ city: jspb.Message.getFieldWithDefault(msg, 8, ""),
17099
+ timezone: jspb.Message.getFieldWithDefault(msg, 9, ""),
17100
+ locale: jspb.Message.getFieldWithDefault(msg, 10, ""),
17101
+ affiliateId: jspb.Message.getFieldWithDefault(msg, 11, 0),
17102
+ affiliateInfo: jspb.Message.getFieldWithDefault(msg, 12, ""),
17103
+ promoCode: jspb.Message.getFieldWithDefault(msg, 13, ""),
17104
+ seonSession: jspb.Message.getFieldWithDefault(msg, 14, ""),
17105
+ requestId: jspb.Message.getFieldWithDefault(msg, 15, ""),
17106
+ correlationId: jspb.Message.getFieldWithDefault(msg, 16, ""),
17107
+ userAgent: jspb.Message.getFieldWithDefault(msg, 17, ""),
17108
+ antifraudSession: jspb.Message.getFieldWithDefault(msg, 18, ""),
17109
+ ipCountry: jspb.Message.getFieldWithDefault(msg, 19, ""),
17110
+ presetCode: jspb.Message.getFieldWithDefault(msg, 20, "")
17111
+ };
17112
+
17113
+ if (includeInstance) {
17114
+ obj.$jspbMessageInstance = msg;
17115
+ }
17116
+ return obj;
17117
+ };
17118
+ }
17119
+
17120
+
17121
+ /**
17122
+ * Deserializes binary data (in protobuf wire format).
17123
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
17124
+ * @return {!proto.user.VkCommonIdLoginRequest}
17125
+ */
17126
+ proto.user.VkCommonIdLoginRequest.deserializeBinary = function(bytes) {
17127
+ var reader = new jspb.BinaryReader(bytes);
17128
+ var msg = new proto.user.VkCommonIdLoginRequest;
17129
+ return proto.user.VkCommonIdLoginRequest.deserializeBinaryFromReader(msg, reader);
17130
+ };
17131
+
17132
+
17133
+ /**
17134
+ * Deserializes binary data (in protobuf wire format) from the
17135
+ * given reader into the given message object.
17136
+ * @param {!proto.user.VkCommonIdLoginRequest} msg The message object to deserialize into.
17137
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
17138
+ * @return {!proto.user.VkCommonIdLoginRequest}
17139
+ */
17140
+ proto.user.VkCommonIdLoginRequest.deserializeBinaryFromReader = function(msg, reader) {
17141
+ while (reader.nextField()) {
17142
+ if (reader.isEndGroup()) {
17143
+ break;
17144
+ }
17145
+ var field = reader.getFieldNumber();
17146
+ switch (field) {
17147
+ case 1:
17148
+ var value = /** @type {string} */ (reader.readString());
17149
+ msg.setCode(value);
17150
+ break;
17151
+ case 2:
17152
+ var value = /** @type {string} */ (reader.readString());
17153
+ msg.setRedirectUri(value);
17154
+ break;
17155
+ case 3:
17156
+ var value = /** @type {string} */ (reader.readString());
17157
+ msg.setCodeVerifier(value);
17158
+ break;
17159
+ case 4:
17160
+ var value = /** @type {string} */ (reader.readString());
17161
+ msg.setDeviceId(value);
17162
+ break;
17163
+ case 5:
17164
+ var value = /** @type {string} */ (reader.readString());
17165
+ msg.setUserIp(value);
17166
+ break;
17167
+ case 6:
17168
+ var value = /** @type {string} */ (reader.readString());
17169
+ msg.setDevice(value);
17170
+ break;
17171
+ case 7:
17172
+ var value = /** @type {string} */ (reader.readString());
17173
+ msg.setCountry(value);
17174
+ break;
17175
+ case 8:
17176
+ var value = /** @type {string} */ (reader.readString());
17177
+ msg.setCity(value);
17178
+ break;
17179
+ case 9:
17180
+ var value = /** @type {string} */ (reader.readString());
17181
+ msg.setTimezone(value);
17182
+ break;
17183
+ case 10:
17184
+ var value = /** @type {string} */ (reader.readString());
17185
+ msg.setLocale(value);
17186
+ break;
17187
+ case 11:
17188
+ var value = /** @type {number} */ (reader.readInt32());
17189
+ msg.setAffiliateId(value);
17190
+ break;
17191
+ case 12:
17192
+ var value = /** @type {string} */ (reader.readString());
17193
+ msg.setAffiliateInfo(value);
17194
+ break;
17195
+ case 13:
17196
+ var value = /** @type {string} */ (reader.readString());
17197
+ msg.setPromoCode(value);
17198
+ break;
17199
+ case 14:
17200
+ var value = /** @type {string} */ (reader.readString());
17201
+ msg.setSeonSession(value);
17202
+ break;
17203
+ case 15:
17204
+ var value = /** @type {string} */ (reader.readString());
17205
+ msg.setRequestId(value);
17206
+ break;
17207
+ case 16:
17208
+ var value = /** @type {string} */ (reader.readString());
17209
+ msg.setCorrelationId(value);
17210
+ break;
17211
+ case 17:
17212
+ var value = /** @type {string} */ (reader.readString());
17213
+ msg.setUserAgent(value);
17214
+ break;
17215
+ case 18:
17216
+ var value = /** @type {string} */ (reader.readString());
17217
+ msg.setAntifraudSession(value);
17218
+ break;
17219
+ case 19:
17220
+ var value = /** @type {string} */ (reader.readString());
17221
+ msg.setIpCountry(value);
17222
+ break;
17223
+ case 20:
17224
+ var value = /** @type {string} */ (reader.readString());
17225
+ msg.setPresetCode(value);
17226
+ break;
17227
+ default:
17228
+ reader.skipField();
17229
+ break;
17230
+ }
17231
+ }
17232
+ return msg;
17233
+ };
17234
+
17235
+
17236
+ /**
17237
+ * Serializes the message to binary data (in protobuf wire format).
17238
+ * @return {!Uint8Array}
17239
+ */
17240
+ proto.user.VkCommonIdLoginRequest.prototype.serializeBinary = function() {
17241
+ var writer = new jspb.BinaryWriter();
17242
+ proto.user.VkCommonIdLoginRequest.serializeBinaryToWriter(this, writer);
17243
+ return writer.getResultBuffer();
17244
+ };
17245
+
17246
+
17247
+ /**
17248
+ * Serializes the given message to binary data (in protobuf wire
17249
+ * format), writing to the given BinaryWriter.
17250
+ * @param {!proto.user.VkCommonIdLoginRequest} message
17251
+ * @param {!jspb.BinaryWriter} writer
17252
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17253
+ */
17254
+ proto.user.VkCommonIdLoginRequest.serializeBinaryToWriter = function(message, writer) {
17255
+ var f = undefined;
17256
+ f = message.getCode();
17257
+ if (f.length > 0) {
17258
+ writer.writeString(
17259
+ 1,
17260
+ f
17261
+ );
17262
+ }
17263
+ f = message.getRedirectUri();
17264
+ if (f.length > 0) {
17265
+ writer.writeString(
17266
+ 2,
17267
+ f
17268
+ );
17269
+ }
17270
+ f = message.getCodeVerifier();
17271
+ if (f.length > 0) {
17272
+ writer.writeString(
17273
+ 3,
17274
+ f
17275
+ );
17276
+ }
17277
+ f = message.getDeviceId();
17278
+ if (f.length > 0) {
17279
+ writer.writeString(
17280
+ 4,
17281
+ f
17282
+ );
17283
+ }
17284
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
17285
+ if (f != null) {
17286
+ writer.writeString(
17287
+ 5,
17288
+ f
17289
+ );
17290
+ }
17291
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
17292
+ if (f != null) {
17293
+ writer.writeString(
17294
+ 6,
17295
+ f
17296
+ );
17297
+ }
17298
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
17299
+ if (f != null) {
17300
+ writer.writeString(
17301
+ 7,
17302
+ f
17303
+ );
17304
+ }
17305
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
17306
+ if (f != null) {
17307
+ writer.writeString(
17308
+ 8,
17309
+ f
17310
+ );
17311
+ }
17312
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
17313
+ if (f != null) {
17314
+ writer.writeString(
17315
+ 9,
17316
+ f
17317
+ );
17318
+ }
17319
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
17320
+ if (f != null) {
17321
+ writer.writeString(
17322
+ 10,
17323
+ f
17324
+ );
17325
+ }
17326
+ f = /** @type {number} */ (jspb.Message.getField(message, 11));
17327
+ if (f != null) {
17328
+ writer.writeInt32(
17329
+ 11,
17330
+ f
17331
+ );
17332
+ }
17333
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
17334
+ if (f != null) {
17335
+ writer.writeString(
17336
+ 12,
17337
+ f
17338
+ );
17339
+ }
17340
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
17341
+ if (f != null) {
17342
+ writer.writeString(
17343
+ 13,
17344
+ f
17345
+ );
17346
+ }
17347
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
17348
+ if (f != null) {
17349
+ writer.writeString(
17350
+ 14,
17351
+ f
17352
+ );
17353
+ }
17354
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
17355
+ if (f != null) {
17356
+ writer.writeString(
17357
+ 15,
17358
+ f
17359
+ );
17360
+ }
17361
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
17362
+ if (f != null) {
17363
+ writer.writeString(
17364
+ 16,
17365
+ f
17366
+ );
17367
+ }
17368
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
17369
+ if (f != null) {
17370
+ writer.writeString(
17371
+ 17,
17372
+ f
17373
+ );
17374
+ }
17375
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
17376
+ if (f != null) {
17377
+ writer.writeString(
17378
+ 18,
17379
+ f
17380
+ );
17381
+ }
17382
+ f = /** @type {string} */ (jspb.Message.getField(message, 19));
17383
+ if (f != null) {
17384
+ writer.writeString(
17385
+ 19,
17386
+ f
17387
+ );
17388
+ }
17389
+ f = /** @type {string} */ (jspb.Message.getField(message, 20));
17390
+ if (f != null) {
17391
+ writer.writeString(
17392
+ 20,
17393
+ f
17394
+ );
17395
+ }
17396
+ };
17397
+
17398
+
17399
+ /**
17400
+ * optional string code = 1;
17401
+ * @return {string}
17402
+ */
17403
+ proto.user.VkCommonIdLoginRequest.prototype.getCode = function() {
17404
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
17405
+ };
17406
+
17407
+
17408
+ /**
17409
+ * @param {string} value
17410
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17411
+ */
17412
+ proto.user.VkCommonIdLoginRequest.prototype.setCode = function(value) {
17413
+ return jspb.Message.setProto3StringField(this, 1, value);
17414
+ };
17415
+
17416
+
17417
+ /**
17418
+ * optional string redirect_uri = 2;
17419
+ * @return {string}
17420
+ */
17421
+ proto.user.VkCommonIdLoginRequest.prototype.getRedirectUri = function() {
17422
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
17423
+ };
17424
+
17425
+
17426
+ /**
17427
+ * @param {string} value
17428
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17429
+ */
17430
+ proto.user.VkCommonIdLoginRequest.prototype.setRedirectUri = function(value) {
17431
+ return jspb.Message.setProto3StringField(this, 2, value);
17432
+ };
17433
+
17434
+
17435
+ /**
17436
+ * optional string code_verifier = 3;
17437
+ * @return {string}
17438
+ */
17439
+ proto.user.VkCommonIdLoginRequest.prototype.getCodeVerifier = function() {
17440
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
17441
+ };
17442
+
17443
+
17444
+ /**
17445
+ * @param {string} value
17446
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17447
+ */
17448
+ proto.user.VkCommonIdLoginRequest.prototype.setCodeVerifier = function(value) {
17449
+ return jspb.Message.setProto3StringField(this, 3, value);
17450
+ };
17451
+
17452
+
17453
+ /**
17454
+ * optional string device_id = 4;
17455
+ * @return {string}
17456
+ */
17457
+ proto.user.VkCommonIdLoginRequest.prototype.getDeviceId = function() {
17458
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
17459
+ };
17460
+
17461
+
17462
+ /**
17463
+ * @param {string} value
17464
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17465
+ */
17466
+ proto.user.VkCommonIdLoginRequest.prototype.setDeviceId = function(value) {
17467
+ return jspb.Message.setProto3StringField(this, 4, value);
17468
+ };
17469
+
17470
+
17471
+ /**
17472
+ * optional string user_ip = 5;
17473
+ * @return {string}
17474
+ */
17475
+ proto.user.VkCommonIdLoginRequest.prototype.getUserIp = function() {
17476
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
17477
+ };
17478
+
17479
+
17480
+ /**
17481
+ * @param {string} value
17482
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17483
+ */
17484
+ proto.user.VkCommonIdLoginRequest.prototype.setUserIp = function(value) {
17485
+ return jspb.Message.setField(this, 5, value);
17486
+ };
17487
+
17488
+
17489
+ /**
17490
+ * Clears the field making it undefined.
17491
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17492
+ */
17493
+ proto.user.VkCommonIdLoginRequest.prototype.clearUserIp = function() {
17494
+ return jspb.Message.setField(this, 5, undefined);
17495
+ };
17496
+
17497
+
17498
+ /**
17499
+ * Returns whether this field is set.
17500
+ * @return {boolean}
17501
+ */
17502
+ proto.user.VkCommonIdLoginRequest.prototype.hasUserIp = function() {
17503
+ return jspb.Message.getField(this, 5) != null;
17504
+ };
17505
+
17506
+
17507
+ /**
17508
+ * optional string device = 6;
17509
+ * @return {string}
17510
+ */
17511
+ proto.user.VkCommonIdLoginRequest.prototype.getDevice = function() {
17512
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
17513
+ };
17514
+
17515
+
17516
+ /**
17517
+ * @param {string} value
17518
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17519
+ */
17520
+ proto.user.VkCommonIdLoginRequest.prototype.setDevice = function(value) {
17521
+ return jspb.Message.setField(this, 6, value);
17522
+ };
17523
+
17524
+
17525
+ /**
17526
+ * Clears the field making it undefined.
17527
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17528
+ */
17529
+ proto.user.VkCommonIdLoginRequest.prototype.clearDevice = function() {
17530
+ return jspb.Message.setField(this, 6, undefined);
17531
+ };
17532
+
17533
+
17534
+ /**
17535
+ * Returns whether this field is set.
17536
+ * @return {boolean}
17537
+ */
17538
+ proto.user.VkCommonIdLoginRequest.prototype.hasDevice = function() {
17539
+ return jspb.Message.getField(this, 6) != null;
17540
+ };
17541
+
17542
+
17543
+ /**
17544
+ * optional string country = 7;
17545
+ * @return {string}
17546
+ */
17547
+ proto.user.VkCommonIdLoginRequest.prototype.getCountry = function() {
17548
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
17549
+ };
17550
+
17551
+
17552
+ /**
17553
+ * @param {string} value
17554
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17555
+ */
17556
+ proto.user.VkCommonIdLoginRequest.prototype.setCountry = function(value) {
17557
+ return jspb.Message.setField(this, 7, value);
17558
+ };
17559
+
17560
+
17561
+ /**
17562
+ * Clears the field making it undefined.
17563
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17564
+ */
17565
+ proto.user.VkCommonIdLoginRequest.prototype.clearCountry = function() {
17566
+ return jspb.Message.setField(this, 7, undefined);
17567
+ };
17568
+
17569
+
17570
+ /**
17571
+ * Returns whether this field is set.
17572
+ * @return {boolean}
17573
+ */
17574
+ proto.user.VkCommonIdLoginRequest.prototype.hasCountry = function() {
17575
+ return jspb.Message.getField(this, 7) != null;
17576
+ };
17577
+
17578
+
17579
+ /**
17580
+ * optional string city = 8;
17581
+ * @return {string}
17582
+ */
17583
+ proto.user.VkCommonIdLoginRequest.prototype.getCity = function() {
17584
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
17585
+ };
17586
+
17587
+
17588
+ /**
17589
+ * @param {string} value
17590
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17591
+ */
17592
+ proto.user.VkCommonIdLoginRequest.prototype.setCity = function(value) {
17593
+ return jspb.Message.setField(this, 8, value);
17594
+ };
17595
+
17596
+
17597
+ /**
17598
+ * Clears the field making it undefined.
17599
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17600
+ */
17601
+ proto.user.VkCommonIdLoginRequest.prototype.clearCity = function() {
17602
+ return jspb.Message.setField(this, 8, undefined);
17603
+ };
17604
+
17605
+
17606
+ /**
17607
+ * Returns whether this field is set.
17608
+ * @return {boolean}
17609
+ */
17610
+ proto.user.VkCommonIdLoginRequest.prototype.hasCity = function() {
17611
+ return jspb.Message.getField(this, 8) != null;
17612
+ };
17613
+
17614
+
17615
+ /**
17616
+ * optional string timezone = 9;
17617
+ * @return {string}
17618
+ */
17619
+ proto.user.VkCommonIdLoginRequest.prototype.getTimezone = function() {
17620
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
17621
+ };
17622
+
17623
+
17624
+ /**
17625
+ * @param {string} value
17626
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17627
+ */
17628
+ proto.user.VkCommonIdLoginRequest.prototype.setTimezone = function(value) {
17629
+ return jspb.Message.setField(this, 9, value);
17630
+ };
17631
+
17632
+
17633
+ /**
17634
+ * Clears the field making it undefined.
17635
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17636
+ */
17637
+ proto.user.VkCommonIdLoginRequest.prototype.clearTimezone = function() {
17638
+ return jspb.Message.setField(this, 9, undefined);
17639
+ };
17640
+
17641
+
17642
+ /**
17643
+ * Returns whether this field is set.
17644
+ * @return {boolean}
17645
+ */
17646
+ proto.user.VkCommonIdLoginRequest.prototype.hasTimezone = function() {
17647
+ return jspb.Message.getField(this, 9) != null;
17648
+ };
17649
+
17650
+
17651
+ /**
17652
+ * optional string locale = 10;
17653
+ * @return {string}
17654
+ */
17655
+ proto.user.VkCommonIdLoginRequest.prototype.getLocale = function() {
17656
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
17657
+ };
17658
+
17659
+
17660
+ /**
17661
+ * @param {string} value
17662
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17663
+ */
17664
+ proto.user.VkCommonIdLoginRequest.prototype.setLocale = function(value) {
17665
+ return jspb.Message.setField(this, 10, value);
17666
+ };
17667
+
17668
+
17669
+ /**
17670
+ * Clears the field making it undefined.
17671
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17672
+ */
17673
+ proto.user.VkCommonIdLoginRequest.prototype.clearLocale = function() {
17674
+ return jspb.Message.setField(this, 10, undefined);
17675
+ };
17676
+
17677
+
17678
+ /**
17679
+ * Returns whether this field is set.
17680
+ * @return {boolean}
17681
+ */
17682
+ proto.user.VkCommonIdLoginRequest.prototype.hasLocale = function() {
17683
+ return jspb.Message.getField(this, 10) != null;
17684
+ };
17685
+
17686
+
17687
+ /**
17688
+ * optional int32 affiliate_id = 11;
17689
+ * @return {number}
17690
+ */
17691
+ proto.user.VkCommonIdLoginRequest.prototype.getAffiliateId = function() {
17692
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
17693
+ };
17694
+
17695
+
17696
+ /**
17697
+ * @param {number} value
17698
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17699
+ */
17700
+ proto.user.VkCommonIdLoginRequest.prototype.setAffiliateId = function(value) {
17701
+ return jspb.Message.setField(this, 11, value);
17702
+ };
17703
+
17704
+
17705
+ /**
17706
+ * Clears the field making it undefined.
17707
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17708
+ */
17709
+ proto.user.VkCommonIdLoginRequest.prototype.clearAffiliateId = function() {
17710
+ return jspb.Message.setField(this, 11, undefined);
17711
+ };
17712
+
17713
+
17714
+ /**
17715
+ * Returns whether this field is set.
17716
+ * @return {boolean}
17717
+ */
17718
+ proto.user.VkCommonIdLoginRequest.prototype.hasAffiliateId = function() {
17719
+ return jspb.Message.getField(this, 11) != null;
17720
+ };
17721
+
17722
+
17723
+ /**
17724
+ * optional string affiliate_info = 12;
17725
+ * @return {string}
17726
+ */
17727
+ proto.user.VkCommonIdLoginRequest.prototype.getAffiliateInfo = function() {
17728
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
17729
+ };
17730
+
17731
+
17732
+ /**
17733
+ * @param {string} value
17734
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17735
+ */
17736
+ proto.user.VkCommonIdLoginRequest.prototype.setAffiliateInfo = function(value) {
17737
+ return jspb.Message.setField(this, 12, value);
17738
+ };
17739
+
17740
+
17741
+ /**
17742
+ * Clears the field making it undefined.
17743
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17744
+ */
17745
+ proto.user.VkCommonIdLoginRequest.prototype.clearAffiliateInfo = function() {
17746
+ return jspb.Message.setField(this, 12, undefined);
17747
+ };
17748
+
17749
+
17750
+ /**
17751
+ * Returns whether this field is set.
17752
+ * @return {boolean}
17753
+ */
17754
+ proto.user.VkCommonIdLoginRequest.prototype.hasAffiliateInfo = function() {
17755
+ return jspb.Message.getField(this, 12) != null;
17756
+ };
17757
+
17758
+
17759
+ /**
17760
+ * optional string promo_code = 13;
17761
+ * @return {string}
17762
+ */
17763
+ proto.user.VkCommonIdLoginRequest.prototype.getPromoCode = function() {
17764
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
17765
+ };
17766
+
17767
+
17768
+ /**
17769
+ * @param {string} value
17770
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17771
+ */
17772
+ proto.user.VkCommonIdLoginRequest.prototype.setPromoCode = function(value) {
17773
+ return jspb.Message.setField(this, 13, value);
17774
+ };
17775
+
17776
+
17777
+ /**
17778
+ * Clears the field making it undefined.
17779
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17780
+ */
17781
+ proto.user.VkCommonIdLoginRequest.prototype.clearPromoCode = function() {
17782
+ return jspb.Message.setField(this, 13, undefined);
17783
+ };
17784
+
17785
+
17786
+ /**
17787
+ * Returns whether this field is set.
17788
+ * @return {boolean}
17789
+ */
17790
+ proto.user.VkCommonIdLoginRequest.prototype.hasPromoCode = function() {
17791
+ return jspb.Message.getField(this, 13) != null;
17792
+ };
17793
+
17794
+
17795
+ /**
17796
+ * optional string seon_session = 14;
17797
+ * @return {string}
17798
+ */
17799
+ proto.user.VkCommonIdLoginRequest.prototype.getSeonSession = function() {
17800
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
17801
+ };
17802
+
17803
+
17804
+ /**
17805
+ * @param {string} value
17806
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17807
+ */
17808
+ proto.user.VkCommonIdLoginRequest.prototype.setSeonSession = function(value) {
17809
+ return jspb.Message.setField(this, 14, value);
17810
+ };
17811
+
17812
+
17813
+ /**
17814
+ * Clears the field making it undefined.
17815
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17816
+ */
17817
+ proto.user.VkCommonIdLoginRequest.prototype.clearSeonSession = function() {
17818
+ return jspb.Message.setField(this, 14, undefined);
17819
+ };
17820
+
17821
+
17822
+ /**
17823
+ * Returns whether this field is set.
17824
+ * @return {boolean}
17825
+ */
17826
+ proto.user.VkCommonIdLoginRequest.prototype.hasSeonSession = function() {
17827
+ return jspb.Message.getField(this, 14) != null;
17828
+ };
17829
+
17830
+
17831
+ /**
17832
+ * optional string request_id = 15;
17833
+ * @return {string}
17834
+ */
17835
+ proto.user.VkCommonIdLoginRequest.prototype.getRequestId = function() {
17836
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
17837
+ };
17838
+
17839
+
17840
+ /**
17841
+ * @param {string} value
17842
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17843
+ */
17844
+ proto.user.VkCommonIdLoginRequest.prototype.setRequestId = function(value) {
17845
+ return jspb.Message.setField(this, 15, value);
17846
+ };
17847
+
17848
+
17849
+ /**
17850
+ * Clears the field making it undefined.
17851
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17852
+ */
17853
+ proto.user.VkCommonIdLoginRequest.prototype.clearRequestId = function() {
17854
+ return jspb.Message.setField(this, 15, undefined);
17855
+ };
17856
+
17857
+
17858
+ /**
17859
+ * Returns whether this field is set.
17860
+ * @return {boolean}
17861
+ */
17862
+ proto.user.VkCommonIdLoginRequest.prototype.hasRequestId = function() {
17863
+ return jspb.Message.getField(this, 15) != null;
17864
+ };
17865
+
17866
+
17867
+ /**
17868
+ * optional string correlation_id = 16;
17869
+ * @return {string}
17870
+ */
17871
+ proto.user.VkCommonIdLoginRequest.prototype.getCorrelationId = function() {
17872
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
17873
+ };
17874
+
17875
+
17876
+ /**
17877
+ * @param {string} value
17878
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17879
+ */
17880
+ proto.user.VkCommonIdLoginRequest.prototype.setCorrelationId = function(value) {
17881
+ return jspb.Message.setField(this, 16, value);
17882
+ };
17883
+
17884
+
17885
+ /**
17886
+ * Clears the field making it undefined.
17887
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17888
+ */
17889
+ proto.user.VkCommonIdLoginRequest.prototype.clearCorrelationId = function() {
17890
+ return jspb.Message.setField(this, 16, undefined);
17891
+ };
17892
+
17893
+
17894
+ /**
17895
+ * Returns whether this field is set.
17896
+ * @return {boolean}
17897
+ */
17898
+ proto.user.VkCommonIdLoginRequest.prototype.hasCorrelationId = function() {
17899
+ return jspb.Message.getField(this, 16) != null;
17900
+ };
17901
+
17902
+
17903
+ /**
17904
+ * optional string user_agent = 17;
17905
+ * @return {string}
17906
+ */
17907
+ proto.user.VkCommonIdLoginRequest.prototype.getUserAgent = function() {
17908
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
17909
+ };
17910
+
17911
+
17912
+ /**
17913
+ * @param {string} value
17914
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17915
+ */
17916
+ proto.user.VkCommonIdLoginRequest.prototype.setUserAgent = function(value) {
17917
+ return jspb.Message.setField(this, 17, value);
17918
+ };
17919
+
17920
+
17921
+ /**
17922
+ * Clears the field making it undefined.
17923
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17924
+ */
17925
+ proto.user.VkCommonIdLoginRequest.prototype.clearUserAgent = function() {
17926
+ return jspb.Message.setField(this, 17, undefined);
17927
+ };
17928
+
17929
+
17930
+ /**
17931
+ * Returns whether this field is set.
17932
+ * @return {boolean}
17933
+ */
17934
+ proto.user.VkCommonIdLoginRequest.prototype.hasUserAgent = function() {
17935
+ return jspb.Message.getField(this, 17) != null;
17936
+ };
17937
+
17938
+
17939
+ /**
17940
+ * optional string antifraud_session = 18;
17941
+ * @return {string}
17942
+ */
17943
+ proto.user.VkCommonIdLoginRequest.prototype.getAntifraudSession = function() {
17944
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
17945
+ };
17946
+
17947
+
17948
+ /**
17949
+ * @param {string} value
17950
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17951
+ */
17952
+ proto.user.VkCommonIdLoginRequest.prototype.setAntifraudSession = function(value) {
17953
+ return jspb.Message.setField(this, 18, value);
17954
+ };
17955
+
17956
+
17957
+ /**
17958
+ * Clears the field making it undefined.
17959
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17960
+ */
17961
+ proto.user.VkCommonIdLoginRequest.prototype.clearAntifraudSession = function() {
17962
+ return jspb.Message.setField(this, 18, undefined);
17963
+ };
17964
+
17965
+
17966
+ /**
17967
+ * Returns whether this field is set.
17968
+ * @return {boolean}
17969
+ */
17970
+ proto.user.VkCommonIdLoginRequest.prototype.hasAntifraudSession = function() {
17971
+ return jspb.Message.getField(this, 18) != null;
17972
+ };
17973
+
17974
+
17975
+ /**
17976
+ * optional string ip_country = 19;
17977
+ * @return {string}
17978
+ */
17979
+ proto.user.VkCommonIdLoginRequest.prototype.getIpCountry = function() {
17980
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
17981
+ };
17982
+
17983
+
17984
+ /**
17985
+ * @param {string} value
17986
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17987
+ */
17988
+ proto.user.VkCommonIdLoginRequest.prototype.setIpCountry = function(value) {
17989
+ return jspb.Message.setField(this, 19, value);
17990
+ };
17991
+
17992
+
17993
+ /**
17994
+ * Clears the field making it undefined.
17995
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17996
+ */
17997
+ proto.user.VkCommonIdLoginRequest.prototype.clearIpCountry = function() {
17998
+ return jspb.Message.setField(this, 19, undefined);
17999
+ };
18000
+
18001
+
18002
+ /**
18003
+ * Returns whether this field is set.
18004
+ * @return {boolean}
18005
+ */
18006
+ proto.user.VkCommonIdLoginRequest.prototype.hasIpCountry = function() {
18007
+ return jspb.Message.getField(this, 19) != null;
18008
+ };
18009
+
18010
+
18011
+ /**
18012
+ * optional string preset_code = 20;
18013
+ * @return {string}
18014
+ */
18015
+ proto.user.VkCommonIdLoginRequest.prototype.getPresetCode = function() {
18016
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
18017
+ };
18018
+
18019
+
18020
+ /**
18021
+ * @param {string} value
18022
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
18023
+ */
18024
+ proto.user.VkCommonIdLoginRequest.prototype.setPresetCode = function(value) {
18025
+ return jspb.Message.setField(this, 20, value);
18026
+ };
18027
+
18028
+
18029
+ /**
18030
+ * Clears the field making it undefined.
18031
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
18032
+ */
18033
+ proto.user.VkCommonIdLoginRequest.prototype.clearPresetCode = function() {
18034
+ return jspb.Message.setField(this, 20, undefined);
18035
+ };
18036
+
18037
+
18038
+ /**
18039
+ * Returns whether this field is set.
18040
+ * @return {boolean}
18041
+ */
18042
+ proto.user.VkCommonIdLoginRequest.prototype.hasPresetCode = function() {
18043
+ return jspb.Message.getField(this, 20) != null;
18044
+ };
18045
+
18046
+
18047
+
18048
+
18049
+
16060
18050
  if (jspb.Message.GENERATE_TO_OBJECT) {
16061
18051
  /**
16062
18052
  * Creates an object representation of this proto.