protobuf-platform 1.2.592 → 1.2.594

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,1982 @@ 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
+ state: jspb.Message.getFieldWithDefault(msg, 21, "")
17112
+ };
17113
+
17114
+ if (includeInstance) {
17115
+ obj.$jspbMessageInstance = msg;
17116
+ }
17117
+ return obj;
17118
+ };
17119
+ }
17120
+
17121
+
17122
+ /**
17123
+ * Deserializes binary data (in protobuf wire format).
17124
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
17125
+ * @return {!proto.user.VkCommonIdLoginRequest}
17126
+ */
17127
+ proto.user.VkCommonIdLoginRequest.deserializeBinary = function(bytes) {
17128
+ var reader = new jspb.BinaryReader(bytes);
17129
+ var msg = new proto.user.VkCommonIdLoginRequest;
17130
+ return proto.user.VkCommonIdLoginRequest.deserializeBinaryFromReader(msg, reader);
17131
+ };
17132
+
17133
+
17134
+ /**
17135
+ * Deserializes binary data (in protobuf wire format) from the
17136
+ * given reader into the given message object.
17137
+ * @param {!proto.user.VkCommonIdLoginRequest} msg The message object to deserialize into.
17138
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
17139
+ * @return {!proto.user.VkCommonIdLoginRequest}
17140
+ */
17141
+ proto.user.VkCommonIdLoginRequest.deserializeBinaryFromReader = function(msg, reader) {
17142
+ while (reader.nextField()) {
17143
+ if (reader.isEndGroup()) {
17144
+ break;
17145
+ }
17146
+ var field = reader.getFieldNumber();
17147
+ switch (field) {
17148
+ case 1:
17149
+ var value = /** @type {string} */ (reader.readString());
17150
+ msg.setCode(value);
17151
+ break;
17152
+ case 2:
17153
+ var value = /** @type {string} */ (reader.readString());
17154
+ msg.setRedirectUri(value);
17155
+ break;
17156
+ case 3:
17157
+ var value = /** @type {string} */ (reader.readString());
17158
+ msg.setCodeVerifier(value);
17159
+ break;
17160
+ case 4:
17161
+ var value = /** @type {string} */ (reader.readString());
17162
+ msg.setDeviceId(value);
17163
+ break;
17164
+ case 5:
17165
+ var value = /** @type {string} */ (reader.readString());
17166
+ msg.setUserIp(value);
17167
+ break;
17168
+ case 6:
17169
+ var value = /** @type {string} */ (reader.readString());
17170
+ msg.setDevice(value);
17171
+ break;
17172
+ case 7:
17173
+ var value = /** @type {string} */ (reader.readString());
17174
+ msg.setCountry(value);
17175
+ break;
17176
+ case 8:
17177
+ var value = /** @type {string} */ (reader.readString());
17178
+ msg.setCity(value);
17179
+ break;
17180
+ case 9:
17181
+ var value = /** @type {string} */ (reader.readString());
17182
+ msg.setTimezone(value);
17183
+ break;
17184
+ case 10:
17185
+ var value = /** @type {string} */ (reader.readString());
17186
+ msg.setLocale(value);
17187
+ break;
17188
+ case 11:
17189
+ var value = /** @type {number} */ (reader.readInt32());
17190
+ msg.setAffiliateId(value);
17191
+ break;
17192
+ case 12:
17193
+ var value = /** @type {string} */ (reader.readString());
17194
+ msg.setAffiliateInfo(value);
17195
+ break;
17196
+ case 13:
17197
+ var value = /** @type {string} */ (reader.readString());
17198
+ msg.setPromoCode(value);
17199
+ break;
17200
+ case 14:
17201
+ var value = /** @type {string} */ (reader.readString());
17202
+ msg.setSeonSession(value);
17203
+ break;
17204
+ case 15:
17205
+ var value = /** @type {string} */ (reader.readString());
17206
+ msg.setRequestId(value);
17207
+ break;
17208
+ case 16:
17209
+ var value = /** @type {string} */ (reader.readString());
17210
+ msg.setCorrelationId(value);
17211
+ break;
17212
+ case 17:
17213
+ var value = /** @type {string} */ (reader.readString());
17214
+ msg.setUserAgent(value);
17215
+ break;
17216
+ case 18:
17217
+ var value = /** @type {string} */ (reader.readString());
17218
+ msg.setAntifraudSession(value);
17219
+ break;
17220
+ case 19:
17221
+ var value = /** @type {string} */ (reader.readString());
17222
+ msg.setIpCountry(value);
17223
+ break;
17224
+ case 20:
17225
+ var value = /** @type {string} */ (reader.readString());
17226
+ msg.setPresetCode(value);
17227
+ break;
17228
+ case 21:
17229
+ var value = /** @type {string} */ (reader.readString());
17230
+ msg.setState(value);
17231
+ break;
17232
+ default:
17233
+ reader.skipField();
17234
+ break;
17235
+ }
17236
+ }
17237
+ return msg;
17238
+ };
17239
+
17240
+
17241
+ /**
17242
+ * Serializes the message to binary data (in protobuf wire format).
17243
+ * @return {!Uint8Array}
17244
+ */
17245
+ proto.user.VkCommonIdLoginRequest.prototype.serializeBinary = function() {
17246
+ var writer = new jspb.BinaryWriter();
17247
+ proto.user.VkCommonIdLoginRequest.serializeBinaryToWriter(this, writer);
17248
+ return writer.getResultBuffer();
17249
+ };
17250
+
17251
+
17252
+ /**
17253
+ * Serializes the given message to binary data (in protobuf wire
17254
+ * format), writing to the given BinaryWriter.
17255
+ * @param {!proto.user.VkCommonIdLoginRequest} message
17256
+ * @param {!jspb.BinaryWriter} writer
17257
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17258
+ */
17259
+ proto.user.VkCommonIdLoginRequest.serializeBinaryToWriter = function(message, writer) {
17260
+ var f = undefined;
17261
+ f = message.getCode();
17262
+ if (f.length > 0) {
17263
+ writer.writeString(
17264
+ 1,
17265
+ f
17266
+ );
17267
+ }
17268
+ f = message.getRedirectUri();
17269
+ if (f.length > 0) {
17270
+ writer.writeString(
17271
+ 2,
17272
+ f
17273
+ );
17274
+ }
17275
+ f = message.getCodeVerifier();
17276
+ if (f.length > 0) {
17277
+ writer.writeString(
17278
+ 3,
17279
+ f
17280
+ );
17281
+ }
17282
+ f = message.getDeviceId();
17283
+ if (f.length > 0) {
17284
+ writer.writeString(
17285
+ 4,
17286
+ f
17287
+ );
17288
+ }
17289
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
17290
+ if (f != null) {
17291
+ writer.writeString(
17292
+ 5,
17293
+ f
17294
+ );
17295
+ }
17296
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
17297
+ if (f != null) {
17298
+ writer.writeString(
17299
+ 6,
17300
+ f
17301
+ );
17302
+ }
17303
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
17304
+ if (f != null) {
17305
+ writer.writeString(
17306
+ 7,
17307
+ f
17308
+ );
17309
+ }
17310
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
17311
+ if (f != null) {
17312
+ writer.writeString(
17313
+ 8,
17314
+ f
17315
+ );
17316
+ }
17317
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
17318
+ if (f != null) {
17319
+ writer.writeString(
17320
+ 9,
17321
+ f
17322
+ );
17323
+ }
17324
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
17325
+ if (f != null) {
17326
+ writer.writeString(
17327
+ 10,
17328
+ f
17329
+ );
17330
+ }
17331
+ f = /** @type {number} */ (jspb.Message.getField(message, 11));
17332
+ if (f != null) {
17333
+ writer.writeInt32(
17334
+ 11,
17335
+ f
17336
+ );
17337
+ }
17338
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
17339
+ if (f != null) {
17340
+ writer.writeString(
17341
+ 12,
17342
+ f
17343
+ );
17344
+ }
17345
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
17346
+ if (f != null) {
17347
+ writer.writeString(
17348
+ 13,
17349
+ f
17350
+ );
17351
+ }
17352
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
17353
+ if (f != null) {
17354
+ writer.writeString(
17355
+ 14,
17356
+ f
17357
+ );
17358
+ }
17359
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
17360
+ if (f != null) {
17361
+ writer.writeString(
17362
+ 15,
17363
+ f
17364
+ );
17365
+ }
17366
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
17367
+ if (f != null) {
17368
+ writer.writeString(
17369
+ 16,
17370
+ f
17371
+ );
17372
+ }
17373
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
17374
+ if (f != null) {
17375
+ writer.writeString(
17376
+ 17,
17377
+ f
17378
+ );
17379
+ }
17380
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
17381
+ if (f != null) {
17382
+ writer.writeString(
17383
+ 18,
17384
+ f
17385
+ );
17386
+ }
17387
+ f = /** @type {string} */ (jspb.Message.getField(message, 19));
17388
+ if (f != null) {
17389
+ writer.writeString(
17390
+ 19,
17391
+ f
17392
+ );
17393
+ }
17394
+ f = /** @type {string} */ (jspb.Message.getField(message, 20));
17395
+ if (f != null) {
17396
+ writer.writeString(
17397
+ 20,
17398
+ f
17399
+ );
17400
+ }
17401
+ f = message.getState();
17402
+ if (f.length > 0) {
17403
+ writer.writeString(
17404
+ 21,
17405
+ f
17406
+ );
17407
+ }
17408
+ };
17409
+
17410
+
17411
+ /**
17412
+ * optional string code = 1;
17413
+ * @return {string}
17414
+ */
17415
+ proto.user.VkCommonIdLoginRequest.prototype.getCode = function() {
17416
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
17417
+ };
17418
+
17419
+
17420
+ /**
17421
+ * @param {string} value
17422
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17423
+ */
17424
+ proto.user.VkCommonIdLoginRequest.prototype.setCode = function(value) {
17425
+ return jspb.Message.setProto3StringField(this, 1, value);
17426
+ };
17427
+
17428
+
17429
+ /**
17430
+ * optional string redirect_uri = 2;
17431
+ * @return {string}
17432
+ */
17433
+ proto.user.VkCommonIdLoginRequest.prototype.getRedirectUri = function() {
17434
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
17435
+ };
17436
+
17437
+
17438
+ /**
17439
+ * @param {string} value
17440
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17441
+ */
17442
+ proto.user.VkCommonIdLoginRequest.prototype.setRedirectUri = function(value) {
17443
+ return jspb.Message.setProto3StringField(this, 2, value);
17444
+ };
17445
+
17446
+
17447
+ /**
17448
+ * optional string code_verifier = 3;
17449
+ * @return {string}
17450
+ */
17451
+ proto.user.VkCommonIdLoginRequest.prototype.getCodeVerifier = function() {
17452
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
17453
+ };
17454
+
17455
+
17456
+ /**
17457
+ * @param {string} value
17458
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17459
+ */
17460
+ proto.user.VkCommonIdLoginRequest.prototype.setCodeVerifier = function(value) {
17461
+ return jspb.Message.setProto3StringField(this, 3, value);
17462
+ };
17463
+
17464
+
17465
+ /**
17466
+ * optional string device_id = 4;
17467
+ * @return {string}
17468
+ */
17469
+ proto.user.VkCommonIdLoginRequest.prototype.getDeviceId = function() {
17470
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
17471
+ };
17472
+
17473
+
17474
+ /**
17475
+ * @param {string} value
17476
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17477
+ */
17478
+ proto.user.VkCommonIdLoginRequest.prototype.setDeviceId = function(value) {
17479
+ return jspb.Message.setProto3StringField(this, 4, value);
17480
+ };
17481
+
17482
+
17483
+ /**
17484
+ * optional string user_ip = 5;
17485
+ * @return {string}
17486
+ */
17487
+ proto.user.VkCommonIdLoginRequest.prototype.getUserIp = function() {
17488
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
17489
+ };
17490
+
17491
+
17492
+ /**
17493
+ * @param {string} value
17494
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17495
+ */
17496
+ proto.user.VkCommonIdLoginRequest.prototype.setUserIp = function(value) {
17497
+ return jspb.Message.setField(this, 5, value);
17498
+ };
17499
+
17500
+
17501
+ /**
17502
+ * Clears the field making it undefined.
17503
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17504
+ */
17505
+ proto.user.VkCommonIdLoginRequest.prototype.clearUserIp = function() {
17506
+ return jspb.Message.setField(this, 5, undefined);
17507
+ };
17508
+
17509
+
17510
+ /**
17511
+ * Returns whether this field is set.
17512
+ * @return {boolean}
17513
+ */
17514
+ proto.user.VkCommonIdLoginRequest.prototype.hasUserIp = function() {
17515
+ return jspb.Message.getField(this, 5) != null;
17516
+ };
17517
+
17518
+
17519
+ /**
17520
+ * optional string device = 6;
17521
+ * @return {string}
17522
+ */
17523
+ proto.user.VkCommonIdLoginRequest.prototype.getDevice = function() {
17524
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
17525
+ };
17526
+
17527
+
17528
+ /**
17529
+ * @param {string} value
17530
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17531
+ */
17532
+ proto.user.VkCommonIdLoginRequest.prototype.setDevice = function(value) {
17533
+ return jspb.Message.setField(this, 6, value);
17534
+ };
17535
+
17536
+
17537
+ /**
17538
+ * Clears the field making it undefined.
17539
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17540
+ */
17541
+ proto.user.VkCommonIdLoginRequest.prototype.clearDevice = function() {
17542
+ return jspb.Message.setField(this, 6, undefined);
17543
+ };
17544
+
17545
+
17546
+ /**
17547
+ * Returns whether this field is set.
17548
+ * @return {boolean}
17549
+ */
17550
+ proto.user.VkCommonIdLoginRequest.prototype.hasDevice = function() {
17551
+ return jspb.Message.getField(this, 6) != null;
17552
+ };
17553
+
17554
+
17555
+ /**
17556
+ * optional string country = 7;
17557
+ * @return {string}
17558
+ */
17559
+ proto.user.VkCommonIdLoginRequest.prototype.getCountry = function() {
17560
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
17561
+ };
17562
+
17563
+
17564
+ /**
17565
+ * @param {string} value
17566
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17567
+ */
17568
+ proto.user.VkCommonIdLoginRequest.prototype.setCountry = function(value) {
17569
+ return jspb.Message.setField(this, 7, value);
17570
+ };
17571
+
17572
+
17573
+ /**
17574
+ * Clears the field making it undefined.
17575
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17576
+ */
17577
+ proto.user.VkCommonIdLoginRequest.prototype.clearCountry = function() {
17578
+ return jspb.Message.setField(this, 7, undefined);
17579
+ };
17580
+
17581
+
17582
+ /**
17583
+ * Returns whether this field is set.
17584
+ * @return {boolean}
17585
+ */
17586
+ proto.user.VkCommonIdLoginRequest.prototype.hasCountry = function() {
17587
+ return jspb.Message.getField(this, 7) != null;
17588
+ };
17589
+
17590
+
17591
+ /**
17592
+ * optional string city = 8;
17593
+ * @return {string}
17594
+ */
17595
+ proto.user.VkCommonIdLoginRequest.prototype.getCity = function() {
17596
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
17597
+ };
17598
+
17599
+
17600
+ /**
17601
+ * @param {string} value
17602
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17603
+ */
17604
+ proto.user.VkCommonIdLoginRequest.prototype.setCity = function(value) {
17605
+ return jspb.Message.setField(this, 8, value);
17606
+ };
17607
+
17608
+
17609
+ /**
17610
+ * Clears the field making it undefined.
17611
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17612
+ */
17613
+ proto.user.VkCommonIdLoginRequest.prototype.clearCity = function() {
17614
+ return jspb.Message.setField(this, 8, undefined);
17615
+ };
17616
+
17617
+
17618
+ /**
17619
+ * Returns whether this field is set.
17620
+ * @return {boolean}
17621
+ */
17622
+ proto.user.VkCommonIdLoginRequest.prototype.hasCity = function() {
17623
+ return jspb.Message.getField(this, 8) != null;
17624
+ };
17625
+
17626
+
17627
+ /**
17628
+ * optional string timezone = 9;
17629
+ * @return {string}
17630
+ */
17631
+ proto.user.VkCommonIdLoginRequest.prototype.getTimezone = function() {
17632
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
17633
+ };
17634
+
17635
+
17636
+ /**
17637
+ * @param {string} value
17638
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17639
+ */
17640
+ proto.user.VkCommonIdLoginRequest.prototype.setTimezone = function(value) {
17641
+ return jspb.Message.setField(this, 9, value);
17642
+ };
17643
+
17644
+
17645
+ /**
17646
+ * Clears the field making it undefined.
17647
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17648
+ */
17649
+ proto.user.VkCommonIdLoginRequest.prototype.clearTimezone = function() {
17650
+ return jspb.Message.setField(this, 9, undefined);
17651
+ };
17652
+
17653
+
17654
+ /**
17655
+ * Returns whether this field is set.
17656
+ * @return {boolean}
17657
+ */
17658
+ proto.user.VkCommonIdLoginRequest.prototype.hasTimezone = function() {
17659
+ return jspb.Message.getField(this, 9) != null;
17660
+ };
17661
+
17662
+
17663
+ /**
17664
+ * optional string locale = 10;
17665
+ * @return {string}
17666
+ */
17667
+ proto.user.VkCommonIdLoginRequest.prototype.getLocale = function() {
17668
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
17669
+ };
17670
+
17671
+
17672
+ /**
17673
+ * @param {string} value
17674
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17675
+ */
17676
+ proto.user.VkCommonIdLoginRequest.prototype.setLocale = function(value) {
17677
+ return jspb.Message.setField(this, 10, value);
17678
+ };
17679
+
17680
+
17681
+ /**
17682
+ * Clears the field making it undefined.
17683
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17684
+ */
17685
+ proto.user.VkCommonIdLoginRequest.prototype.clearLocale = function() {
17686
+ return jspb.Message.setField(this, 10, undefined);
17687
+ };
17688
+
17689
+
17690
+ /**
17691
+ * Returns whether this field is set.
17692
+ * @return {boolean}
17693
+ */
17694
+ proto.user.VkCommonIdLoginRequest.prototype.hasLocale = function() {
17695
+ return jspb.Message.getField(this, 10) != null;
17696
+ };
17697
+
17698
+
17699
+ /**
17700
+ * optional int32 affiliate_id = 11;
17701
+ * @return {number}
17702
+ */
17703
+ proto.user.VkCommonIdLoginRequest.prototype.getAffiliateId = function() {
17704
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
17705
+ };
17706
+
17707
+
17708
+ /**
17709
+ * @param {number} value
17710
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17711
+ */
17712
+ proto.user.VkCommonIdLoginRequest.prototype.setAffiliateId = function(value) {
17713
+ return jspb.Message.setField(this, 11, value);
17714
+ };
17715
+
17716
+
17717
+ /**
17718
+ * Clears the field making it undefined.
17719
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17720
+ */
17721
+ proto.user.VkCommonIdLoginRequest.prototype.clearAffiliateId = function() {
17722
+ return jspb.Message.setField(this, 11, undefined);
17723
+ };
17724
+
17725
+
17726
+ /**
17727
+ * Returns whether this field is set.
17728
+ * @return {boolean}
17729
+ */
17730
+ proto.user.VkCommonIdLoginRequest.prototype.hasAffiliateId = function() {
17731
+ return jspb.Message.getField(this, 11) != null;
17732
+ };
17733
+
17734
+
17735
+ /**
17736
+ * optional string affiliate_info = 12;
17737
+ * @return {string}
17738
+ */
17739
+ proto.user.VkCommonIdLoginRequest.prototype.getAffiliateInfo = function() {
17740
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
17741
+ };
17742
+
17743
+
17744
+ /**
17745
+ * @param {string} value
17746
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17747
+ */
17748
+ proto.user.VkCommonIdLoginRequest.prototype.setAffiliateInfo = function(value) {
17749
+ return jspb.Message.setField(this, 12, value);
17750
+ };
17751
+
17752
+
17753
+ /**
17754
+ * Clears the field making it undefined.
17755
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17756
+ */
17757
+ proto.user.VkCommonIdLoginRequest.prototype.clearAffiliateInfo = function() {
17758
+ return jspb.Message.setField(this, 12, undefined);
17759
+ };
17760
+
17761
+
17762
+ /**
17763
+ * Returns whether this field is set.
17764
+ * @return {boolean}
17765
+ */
17766
+ proto.user.VkCommonIdLoginRequest.prototype.hasAffiliateInfo = function() {
17767
+ return jspb.Message.getField(this, 12) != null;
17768
+ };
17769
+
17770
+
17771
+ /**
17772
+ * optional string promo_code = 13;
17773
+ * @return {string}
17774
+ */
17775
+ proto.user.VkCommonIdLoginRequest.prototype.getPromoCode = function() {
17776
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
17777
+ };
17778
+
17779
+
17780
+ /**
17781
+ * @param {string} value
17782
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17783
+ */
17784
+ proto.user.VkCommonIdLoginRequest.prototype.setPromoCode = function(value) {
17785
+ return jspb.Message.setField(this, 13, value);
17786
+ };
17787
+
17788
+
17789
+ /**
17790
+ * Clears the field making it undefined.
17791
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17792
+ */
17793
+ proto.user.VkCommonIdLoginRequest.prototype.clearPromoCode = function() {
17794
+ return jspb.Message.setField(this, 13, undefined);
17795
+ };
17796
+
17797
+
17798
+ /**
17799
+ * Returns whether this field is set.
17800
+ * @return {boolean}
17801
+ */
17802
+ proto.user.VkCommonIdLoginRequest.prototype.hasPromoCode = function() {
17803
+ return jspb.Message.getField(this, 13) != null;
17804
+ };
17805
+
17806
+
17807
+ /**
17808
+ * optional string seon_session = 14;
17809
+ * @return {string}
17810
+ */
17811
+ proto.user.VkCommonIdLoginRequest.prototype.getSeonSession = function() {
17812
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
17813
+ };
17814
+
17815
+
17816
+ /**
17817
+ * @param {string} value
17818
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17819
+ */
17820
+ proto.user.VkCommonIdLoginRequest.prototype.setSeonSession = function(value) {
17821
+ return jspb.Message.setField(this, 14, value);
17822
+ };
17823
+
17824
+
17825
+ /**
17826
+ * Clears the field making it undefined.
17827
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17828
+ */
17829
+ proto.user.VkCommonIdLoginRequest.prototype.clearSeonSession = function() {
17830
+ return jspb.Message.setField(this, 14, undefined);
17831
+ };
17832
+
17833
+
17834
+ /**
17835
+ * Returns whether this field is set.
17836
+ * @return {boolean}
17837
+ */
17838
+ proto.user.VkCommonIdLoginRequest.prototype.hasSeonSession = function() {
17839
+ return jspb.Message.getField(this, 14) != null;
17840
+ };
17841
+
17842
+
17843
+ /**
17844
+ * optional string request_id = 15;
17845
+ * @return {string}
17846
+ */
17847
+ proto.user.VkCommonIdLoginRequest.prototype.getRequestId = function() {
17848
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
17849
+ };
17850
+
17851
+
17852
+ /**
17853
+ * @param {string} value
17854
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17855
+ */
17856
+ proto.user.VkCommonIdLoginRequest.prototype.setRequestId = function(value) {
17857
+ return jspb.Message.setField(this, 15, value);
17858
+ };
17859
+
17860
+
17861
+ /**
17862
+ * Clears the field making it undefined.
17863
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17864
+ */
17865
+ proto.user.VkCommonIdLoginRequest.prototype.clearRequestId = function() {
17866
+ return jspb.Message.setField(this, 15, undefined);
17867
+ };
17868
+
17869
+
17870
+ /**
17871
+ * Returns whether this field is set.
17872
+ * @return {boolean}
17873
+ */
17874
+ proto.user.VkCommonIdLoginRequest.prototype.hasRequestId = function() {
17875
+ return jspb.Message.getField(this, 15) != null;
17876
+ };
17877
+
17878
+
17879
+ /**
17880
+ * optional string correlation_id = 16;
17881
+ * @return {string}
17882
+ */
17883
+ proto.user.VkCommonIdLoginRequest.prototype.getCorrelationId = function() {
17884
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
17885
+ };
17886
+
17887
+
17888
+ /**
17889
+ * @param {string} value
17890
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17891
+ */
17892
+ proto.user.VkCommonIdLoginRequest.prototype.setCorrelationId = function(value) {
17893
+ return jspb.Message.setField(this, 16, value);
17894
+ };
17895
+
17896
+
17897
+ /**
17898
+ * Clears the field making it undefined.
17899
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17900
+ */
17901
+ proto.user.VkCommonIdLoginRequest.prototype.clearCorrelationId = function() {
17902
+ return jspb.Message.setField(this, 16, undefined);
17903
+ };
17904
+
17905
+
17906
+ /**
17907
+ * Returns whether this field is set.
17908
+ * @return {boolean}
17909
+ */
17910
+ proto.user.VkCommonIdLoginRequest.prototype.hasCorrelationId = function() {
17911
+ return jspb.Message.getField(this, 16) != null;
17912
+ };
17913
+
17914
+
17915
+ /**
17916
+ * optional string user_agent = 17;
17917
+ * @return {string}
17918
+ */
17919
+ proto.user.VkCommonIdLoginRequest.prototype.getUserAgent = function() {
17920
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
17921
+ };
17922
+
17923
+
17924
+ /**
17925
+ * @param {string} value
17926
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17927
+ */
17928
+ proto.user.VkCommonIdLoginRequest.prototype.setUserAgent = function(value) {
17929
+ return jspb.Message.setField(this, 17, value);
17930
+ };
17931
+
17932
+
17933
+ /**
17934
+ * Clears the field making it undefined.
17935
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17936
+ */
17937
+ proto.user.VkCommonIdLoginRequest.prototype.clearUserAgent = function() {
17938
+ return jspb.Message.setField(this, 17, undefined);
17939
+ };
17940
+
17941
+
17942
+ /**
17943
+ * Returns whether this field is set.
17944
+ * @return {boolean}
17945
+ */
17946
+ proto.user.VkCommonIdLoginRequest.prototype.hasUserAgent = function() {
17947
+ return jspb.Message.getField(this, 17) != null;
17948
+ };
17949
+
17950
+
17951
+ /**
17952
+ * optional string antifraud_session = 18;
17953
+ * @return {string}
17954
+ */
17955
+ proto.user.VkCommonIdLoginRequest.prototype.getAntifraudSession = function() {
17956
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
17957
+ };
17958
+
17959
+
17960
+ /**
17961
+ * @param {string} value
17962
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17963
+ */
17964
+ proto.user.VkCommonIdLoginRequest.prototype.setAntifraudSession = function(value) {
17965
+ return jspb.Message.setField(this, 18, value);
17966
+ };
17967
+
17968
+
17969
+ /**
17970
+ * Clears the field making it undefined.
17971
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17972
+ */
17973
+ proto.user.VkCommonIdLoginRequest.prototype.clearAntifraudSession = function() {
17974
+ return jspb.Message.setField(this, 18, undefined);
17975
+ };
17976
+
17977
+
17978
+ /**
17979
+ * Returns whether this field is set.
17980
+ * @return {boolean}
17981
+ */
17982
+ proto.user.VkCommonIdLoginRequest.prototype.hasAntifraudSession = function() {
17983
+ return jspb.Message.getField(this, 18) != null;
17984
+ };
17985
+
17986
+
17987
+ /**
17988
+ * optional string ip_country = 19;
17989
+ * @return {string}
17990
+ */
17991
+ proto.user.VkCommonIdLoginRequest.prototype.getIpCountry = function() {
17992
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
17993
+ };
17994
+
17995
+
17996
+ /**
17997
+ * @param {string} value
17998
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
17999
+ */
18000
+ proto.user.VkCommonIdLoginRequest.prototype.setIpCountry = function(value) {
18001
+ return jspb.Message.setField(this, 19, value);
18002
+ };
18003
+
18004
+
18005
+ /**
18006
+ * Clears the field making it undefined.
18007
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
18008
+ */
18009
+ proto.user.VkCommonIdLoginRequest.prototype.clearIpCountry = function() {
18010
+ return jspb.Message.setField(this, 19, undefined);
18011
+ };
18012
+
18013
+
18014
+ /**
18015
+ * Returns whether this field is set.
18016
+ * @return {boolean}
18017
+ */
18018
+ proto.user.VkCommonIdLoginRequest.prototype.hasIpCountry = function() {
18019
+ return jspb.Message.getField(this, 19) != null;
18020
+ };
18021
+
18022
+
18023
+ /**
18024
+ * optional string preset_code = 20;
18025
+ * @return {string}
18026
+ */
18027
+ proto.user.VkCommonIdLoginRequest.prototype.getPresetCode = function() {
18028
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
18029
+ };
18030
+
18031
+
18032
+ /**
18033
+ * @param {string} value
18034
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
18035
+ */
18036
+ proto.user.VkCommonIdLoginRequest.prototype.setPresetCode = function(value) {
18037
+ return jspb.Message.setField(this, 20, value);
18038
+ };
18039
+
18040
+
18041
+ /**
18042
+ * Clears the field making it undefined.
18043
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
18044
+ */
18045
+ proto.user.VkCommonIdLoginRequest.prototype.clearPresetCode = function() {
18046
+ return jspb.Message.setField(this, 20, undefined);
18047
+ };
18048
+
18049
+
18050
+ /**
18051
+ * Returns whether this field is set.
18052
+ * @return {boolean}
18053
+ */
18054
+ proto.user.VkCommonIdLoginRequest.prototype.hasPresetCode = function() {
18055
+ return jspb.Message.getField(this, 20) != null;
18056
+ };
18057
+
18058
+
18059
+ /**
18060
+ * optional string state = 21;
18061
+ * @return {string}
18062
+ */
18063
+ proto.user.VkCommonIdLoginRequest.prototype.getState = function() {
18064
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
18065
+ };
18066
+
18067
+
18068
+ /**
18069
+ * @param {string} value
18070
+ * @return {!proto.user.VkCommonIdLoginRequest} returns this
18071
+ */
18072
+ proto.user.VkCommonIdLoginRequest.prototype.setState = function(value) {
18073
+ return jspb.Message.setProto3StringField(this, 21, value);
18074
+ };
18075
+
18076
+
18077
+
18078
+
18079
+
16060
18080
  if (jspb.Message.GENERATE_TO_OBJECT) {
16061
18081
  /**
16062
18082
  * Creates an object representation of this proto.