protobuf-platform 1.2.256 → 1.2.258

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.256",
3
+ "version": "1.2.258",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -8,6 +8,7 @@ service User {
8
8
  rpc signUp(RegistrationRequest) returns (LoggedInResponse);
9
9
  rpc signIn(LoginRequest) returns (LoggedInResponse);
10
10
  rpc loginOrCreateTelegram(TelegramLoginRequest) returns (LoggedInResponse);
11
+ rpc loginOrCreateGoogle(GoogleLoginRequest) returns (LoggedInResponse);
11
12
  rpc confirmUserTwoFa(ConfirmTwoFaRequest) returns (LoggedInResponse);
12
13
  rpc getUserData(UserDataRequest) returns (UserDataResponse);
13
14
  rpc getUserBalance(UserDataRequest) returns (UserDataResponse);
@@ -180,6 +181,23 @@ message TelegramLoginRequest {
180
181
  optional string country = 8;
181
182
  optional string city = 9;
182
183
  }
184
+ message GoogleLoginRequest {
185
+ string code = 1;
186
+ string redirect_uri = 2;
187
+ optional string user_ip = 3;
188
+ optional string device = 4;
189
+ optional string country = 5;
190
+ optional string city = 6;
191
+ optional string timezone = 7;
192
+ optional string locale = 8;
193
+ optional int32 affiliate_id = 9;
194
+ optional string affiliate_info = 10;
195
+ optional string promo_code = 11;
196
+ optional string seon_session = 12;
197
+ optional string request_id = 13;
198
+ optional string correlation_id = 14;
199
+ optional string user_agent = 15;
200
+ }
183
201
  message ConfirmTwoFaRequest {
184
202
  string code = 1;
185
203
  string temp_token = 2;
@@ -180,6 +180,17 @@ function deserialize_user_GetUserSegmentIdsRequest(buffer_arg) {
180
180
  return user_pb.GetUserSegmentIdsRequest.deserializeBinary(new Uint8Array(buffer_arg));
181
181
  }
182
182
 
183
+ function serialize_user_GoogleLoginRequest(arg) {
184
+ if (!(arg instanceof user_pb.GoogleLoginRequest)) {
185
+ throw new Error('Expected argument of type user.GoogleLoginRequest');
186
+ }
187
+ return Buffer.from(arg.serializeBinary());
188
+ }
189
+
190
+ function deserialize_user_GoogleLoginRequest(buffer_arg) {
191
+ return user_pb.GoogleLoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
192
+ }
193
+
183
194
  function serialize_user_LimitStatusResponse(arg) {
184
195
  if (!(arg instanceof user_pb.LimitStatusResponse)) {
185
196
  throw new Error('Expected argument of type user.LimitStatusResponse');
@@ -777,6 +788,17 @@ signUp: {
777
788
  responseSerialize: serialize_user_LoggedInResponse,
778
789
  responseDeserialize: deserialize_user_LoggedInResponse,
779
790
  },
791
+ loginOrCreateGoogle: {
792
+ path: '/user.User/loginOrCreateGoogle',
793
+ requestStream: false,
794
+ responseStream: false,
795
+ requestType: user_pb.GoogleLoginRequest,
796
+ responseType: user_pb.LoggedInResponse,
797
+ requestSerialize: serialize_user_GoogleLoginRequest,
798
+ requestDeserialize: deserialize_user_GoogleLoginRequest,
799
+ responseSerialize: serialize_user_LoggedInResponse,
800
+ responseDeserialize: deserialize_user_LoggedInResponse,
801
+ },
780
802
  confirmUserTwoFa: {
781
803
  path: '/user.User/confirmUserTwoFa',
782
804
  requestStream: false,
package/user/user_pb.js CHANGED
@@ -40,6 +40,7 @@ goog.exportSymbol('proto.user.GetSegmentRuleRequest', null, global);
40
40
  goog.exportSymbol('proto.user.GetSumSubApplicantRequest', null, global);
41
41
  goog.exportSymbol('proto.user.GetUserLimitsRequest', null, global);
42
42
  goog.exportSymbol('proto.user.GetUserSegmentIdsRequest', null, global);
43
+ goog.exportSymbol('proto.user.GoogleLoginRequest', null, global);
43
44
  goog.exportSymbol('proto.user.LimitStatusResponse', null, global);
44
45
  goog.exportSymbol('proto.user.LoggedInResponse', null, global);
45
46
  goog.exportSymbol('proto.user.LoginRequest', null, global);
@@ -339,6 +340,27 @@ if (goog.DEBUG && !COMPILED) {
339
340
  */
340
341
  proto.user.TelegramLoginRequest.displayName = 'proto.user.TelegramLoginRequest';
341
342
  }
343
+ /**
344
+ * Generated by JsPbCodeGenerator.
345
+ * @param {Array=} opt_data Optional initial data array, typically from a
346
+ * server response, or constructed directly in Javascript. The array is used
347
+ * in place and becomes part of the constructed object. It is not cloned.
348
+ * If no data is provided, the constructed object will be empty, but still
349
+ * valid.
350
+ * @extends {jspb.Message}
351
+ * @constructor
352
+ */
353
+ proto.user.GoogleLoginRequest = function(opt_data) {
354
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
355
+ };
356
+ goog.inherits(proto.user.GoogleLoginRequest, jspb.Message);
357
+ if (goog.DEBUG && !COMPILED) {
358
+ /**
359
+ * @public
360
+ * @override
361
+ */
362
+ proto.user.GoogleLoginRequest.displayName = 'proto.user.GoogleLoginRequest';
363
+ }
342
364
  /**
343
365
  * Generated by JsPbCodeGenerator.
344
366
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6961,6 +6983,790 @@ proto.user.TelegramLoginRequest.prototype.hasCity = function() {
6961
6983
 
6962
6984
 
6963
6985
 
6986
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6987
+ /**
6988
+ * Creates an object representation of this proto.
6989
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6990
+ * Optional fields that are not set will be set to undefined.
6991
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6992
+ * For the list of reserved names please see:
6993
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6994
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6995
+ * JSPB instance for transitional soy proto support:
6996
+ * http://goto/soy-param-migration
6997
+ * @return {!Object}
6998
+ */
6999
+ proto.user.GoogleLoginRequest.prototype.toObject = function(opt_includeInstance) {
7000
+ return proto.user.GoogleLoginRequest.toObject(opt_includeInstance, this);
7001
+ };
7002
+
7003
+
7004
+ /**
7005
+ * Static version of the {@see toObject} method.
7006
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7007
+ * the JSPB instance for transitional soy proto support:
7008
+ * http://goto/soy-param-migration
7009
+ * @param {!proto.user.GoogleLoginRequest} msg The msg instance to transform.
7010
+ * @return {!Object}
7011
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7012
+ */
7013
+ proto.user.GoogleLoginRequest.toObject = function(includeInstance, msg) {
7014
+ var f, obj = {
7015
+ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
7016
+ redirectUri: jspb.Message.getFieldWithDefault(msg, 2, ""),
7017
+ userIp: jspb.Message.getFieldWithDefault(msg, 3, ""),
7018
+ device: jspb.Message.getFieldWithDefault(msg, 4, ""),
7019
+ country: jspb.Message.getFieldWithDefault(msg, 5, ""),
7020
+ city: jspb.Message.getFieldWithDefault(msg, 6, ""),
7021
+ timezone: jspb.Message.getFieldWithDefault(msg, 7, ""),
7022
+ locale: jspb.Message.getFieldWithDefault(msg, 8, ""),
7023
+ affiliateId: jspb.Message.getFieldWithDefault(msg, 9, 0),
7024
+ affiliateInfo: jspb.Message.getFieldWithDefault(msg, 10, ""),
7025
+ promoCode: jspb.Message.getFieldWithDefault(msg, 11, ""),
7026
+ seonSession: jspb.Message.getFieldWithDefault(msg, 12, ""),
7027
+ requestId: jspb.Message.getFieldWithDefault(msg, 13, ""),
7028
+ correlationId: jspb.Message.getFieldWithDefault(msg, 14, ""),
7029
+ userAgent: jspb.Message.getFieldWithDefault(msg, 15, "")
7030
+ };
7031
+
7032
+ if (includeInstance) {
7033
+ obj.$jspbMessageInstance = msg;
7034
+ }
7035
+ return obj;
7036
+ };
7037
+ }
7038
+
7039
+
7040
+ /**
7041
+ * Deserializes binary data (in protobuf wire format).
7042
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7043
+ * @return {!proto.user.GoogleLoginRequest}
7044
+ */
7045
+ proto.user.GoogleLoginRequest.deserializeBinary = function(bytes) {
7046
+ var reader = new jspb.BinaryReader(bytes);
7047
+ var msg = new proto.user.GoogleLoginRequest;
7048
+ return proto.user.GoogleLoginRequest.deserializeBinaryFromReader(msg, reader);
7049
+ };
7050
+
7051
+
7052
+ /**
7053
+ * Deserializes binary data (in protobuf wire format) from the
7054
+ * given reader into the given message object.
7055
+ * @param {!proto.user.GoogleLoginRequest} msg The message object to deserialize into.
7056
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7057
+ * @return {!proto.user.GoogleLoginRequest}
7058
+ */
7059
+ proto.user.GoogleLoginRequest.deserializeBinaryFromReader = function(msg, reader) {
7060
+ while (reader.nextField()) {
7061
+ if (reader.isEndGroup()) {
7062
+ break;
7063
+ }
7064
+ var field = reader.getFieldNumber();
7065
+ switch (field) {
7066
+ case 1:
7067
+ var value = /** @type {string} */ (reader.readString());
7068
+ msg.setCode(value);
7069
+ break;
7070
+ case 2:
7071
+ var value = /** @type {string} */ (reader.readString());
7072
+ msg.setRedirectUri(value);
7073
+ break;
7074
+ case 3:
7075
+ var value = /** @type {string} */ (reader.readString());
7076
+ msg.setUserIp(value);
7077
+ break;
7078
+ case 4:
7079
+ var value = /** @type {string} */ (reader.readString());
7080
+ msg.setDevice(value);
7081
+ break;
7082
+ case 5:
7083
+ var value = /** @type {string} */ (reader.readString());
7084
+ msg.setCountry(value);
7085
+ break;
7086
+ case 6:
7087
+ var value = /** @type {string} */ (reader.readString());
7088
+ msg.setCity(value);
7089
+ break;
7090
+ case 7:
7091
+ var value = /** @type {string} */ (reader.readString());
7092
+ msg.setTimezone(value);
7093
+ break;
7094
+ case 8:
7095
+ var value = /** @type {string} */ (reader.readString());
7096
+ msg.setLocale(value);
7097
+ break;
7098
+ case 9:
7099
+ var value = /** @type {number} */ (reader.readInt32());
7100
+ msg.setAffiliateId(value);
7101
+ break;
7102
+ case 10:
7103
+ var value = /** @type {string} */ (reader.readString());
7104
+ msg.setAffiliateInfo(value);
7105
+ break;
7106
+ case 11:
7107
+ var value = /** @type {string} */ (reader.readString());
7108
+ msg.setPromoCode(value);
7109
+ break;
7110
+ case 12:
7111
+ var value = /** @type {string} */ (reader.readString());
7112
+ msg.setSeonSession(value);
7113
+ break;
7114
+ case 13:
7115
+ var value = /** @type {string} */ (reader.readString());
7116
+ msg.setRequestId(value);
7117
+ break;
7118
+ case 14:
7119
+ var value = /** @type {string} */ (reader.readString());
7120
+ msg.setCorrelationId(value);
7121
+ break;
7122
+ case 15:
7123
+ var value = /** @type {string} */ (reader.readString());
7124
+ msg.setUserAgent(value);
7125
+ break;
7126
+ default:
7127
+ reader.skipField();
7128
+ break;
7129
+ }
7130
+ }
7131
+ return msg;
7132
+ };
7133
+
7134
+
7135
+ /**
7136
+ * Serializes the message to binary data (in protobuf wire format).
7137
+ * @return {!Uint8Array}
7138
+ */
7139
+ proto.user.GoogleLoginRequest.prototype.serializeBinary = function() {
7140
+ var writer = new jspb.BinaryWriter();
7141
+ proto.user.GoogleLoginRequest.serializeBinaryToWriter(this, writer);
7142
+ return writer.getResultBuffer();
7143
+ };
7144
+
7145
+
7146
+ /**
7147
+ * Serializes the given message to binary data (in protobuf wire
7148
+ * format), writing to the given BinaryWriter.
7149
+ * @param {!proto.user.GoogleLoginRequest} message
7150
+ * @param {!jspb.BinaryWriter} writer
7151
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7152
+ */
7153
+ proto.user.GoogleLoginRequest.serializeBinaryToWriter = function(message, writer) {
7154
+ var f = undefined;
7155
+ f = message.getCode();
7156
+ if (f.length > 0) {
7157
+ writer.writeString(
7158
+ 1,
7159
+ f
7160
+ );
7161
+ }
7162
+ f = message.getRedirectUri();
7163
+ if (f.length > 0) {
7164
+ writer.writeString(
7165
+ 2,
7166
+ f
7167
+ );
7168
+ }
7169
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
7170
+ if (f != null) {
7171
+ writer.writeString(
7172
+ 3,
7173
+ f
7174
+ );
7175
+ }
7176
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
7177
+ if (f != null) {
7178
+ writer.writeString(
7179
+ 4,
7180
+ f
7181
+ );
7182
+ }
7183
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
7184
+ if (f != null) {
7185
+ writer.writeString(
7186
+ 5,
7187
+ f
7188
+ );
7189
+ }
7190
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
7191
+ if (f != null) {
7192
+ writer.writeString(
7193
+ 6,
7194
+ f
7195
+ );
7196
+ }
7197
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
7198
+ if (f != null) {
7199
+ writer.writeString(
7200
+ 7,
7201
+ f
7202
+ );
7203
+ }
7204
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
7205
+ if (f != null) {
7206
+ writer.writeString(
7207
+ 8,
7208
+ f
7209
+ );
7210
+ }
7211
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
7212
+ if (f != null) {
7213
+ writer.writeInt32(
7214
+ 9,
7215
+ f
7216
+ );
7217
+ }
7218
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
7219
+ if (f != null) {
7220
+ writer.writeString(
7221
+ 10,
7222
+ f
7223
+ );
7224
+ }
7225
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
7226
+ if (f != null) {
7227
+ writer.writeString(
7228
+ 11,
7229
+ f
7230
+ );
7231
+ }
7232
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
7233
+ if (f != null) {
7234
+ writer.writeString(
7235
+ 12,
7236
+ f
7237
+ );
7238
+ }
7239
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
7240
+ if (f != null) {
7241
+ writer.writeString(
7242
+ 13,
7243
+ f
7244
+ );
7245
+ }
7246
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
7247
+ if (f != null) {
7248
+ writer.writeString(
7249
+ 14,
7250
+ f
7251
+ );
7252
+ }
7253
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
7254
+ if (f != null) {
7255
+ writer.writeString(
7256
+ 15,
7257
+ f
7258
+ );
7259
+ }
7260
+ };
7261
+
7262
+
7263
+ /**
7264
+ * optional string code = 1;
7265
+ * @return {string}
7266
+ */
7267
+ proto.user.GoogleLoginRequest.prototype.getCode = function() {
7268
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7269
+ };
7270
+
7271
+
7272
+ /**
7273
+ * @param {string} value
7274
+ * @return {!proto.user.GoogleLoginRequest} returns this
7275
+ */
7276
+ proto.user.GoogleLoginRequest.prototype.setCode = function(value) {
7277
+ return jspb.Message.setProto3StringField(this, 1, value);
7278
+ };
7279
+
7280
+
7281
+ /**
7282
+ * optional string redirect_uri = 2;
7283
+ * @return {string}
7284
+ */
7285
+ proto.user.GoogleLoginRequest.prototype.getRedirectUri = function() {
7286
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7287
+ };
7288
+
7289
+
7290
+ /**
7291
+ * @param {string} value
7292
+ * @return {!proto.user.GoogleLoginRequest} returns this
7293
+ */
7294
+ proto.user.GoogleLoginRequest.prototype.setRedirectUri = function(value) {
7295
+ return jspb.Message.setProto3StringField(this, 2, value);
7296
+ };
7297
+
7298
+
7299
+ /**
7300
+ * optional string user_ip = 3;
7301
+ * @return {string}
7302
+ */
7303
+ proto.user.GoogleLoginRequest.prototype.getUserIp = function() {
7304
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7305
+ };
7306
+
7307
+
7308
+ /**
7309
+ * @param {string} value
7310
+ * @return {!proto.user.GoogleLoginRequest} returns this
7311
+ */
7312
+ proto.user.GoogleLoginRequest.prototype.setUserIp = function(value) {
7313
+ return jspb.Message.setField(this, 3, value);
7314
+ };
7315
+
7316
+
7317
+ /**
7318
+ * Clears the field making it undefined.
7319
+ * @return {!proto.user.GoogleLoginRequest} returns this
7320
+ */
7321
+ proto.user.GoogleLoginRequest.prototype.clearUserIp = function() {
7322
+ return jspb.Message.setField(this, 3, undefined);
7323
+ };
7324
+
7325
+
7326
+ /**
7327
+ * Returns whether this field is set.
7328
+ * @return {boolean}
7329
+ */
7330
+ proto.user.GoogleLoginRequest.prototype.hasUserIp = function() {
7331
+ return jspb.Message.getField(this, 3) != null;
7332
+ };
7333
+
7334
+
7335
+ /**
7336
+ * optional string device = 4;
7337
+ * @return {string}
7338
+ */
7339
+ proto.user.GoogleLoginRequest.prototype.getDevice = function() {
7340
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
7341
+ };
7342
+
7343
+
7344
+ /**
7345
+ * @param {string} value
7346
+ * @return {!proto.user.GoogleLoginRequest} returns this
7347
+ */
7348
+ proto.user.GoogleLoginRequest.prototype.setDevice = function(value) {
7349
+ return jspb.Message.setField(this, 4, value);
7350
+ };
7351
+
7352
+
7353
+ /**
7354
+ * Clears the field making it undefined.
7355
+ * @return {!proto.user.GoogleLoginRequest} returns this
7356
+ */
7357
+ proto.user.GoogleLoginRequest.prototype.clearDevice = function() {
7358
+ return jspb.Message.setField(this, 4, undefined);
7359
+ };
7360
+
7361
+
7362
+ /**
7363
+ * Returns whether this field is set.
7364
+ * @return {boolean}
7365
+ */
7366
+ proto.user.GoogleLoginRequest.prototype.hasDevice = function() {
7367
+ return jspb.Message.getField(this, 4) != null;
7368
+ };
7369
+
7370
+
7371
+ /**
7372
+ * optional string country = 5;
7373
+ * @return {string}
7374
+ */
7375
+ proto.user.GoogleLoginRequest.prototype.getCountry = function() {
7376
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
7377
+ };
7378
+
7379
+
7380
+ /**
7381
+ * @param {string} value
7382
+ * @return {!proto.user.GoogleLoginRequest} returns this
7383
+ */
7384
+ proto.user.GoogleLoginRequest.prototype.setCountry = function(value) {
7385
+ return jspb.Message.setField(this, 5, value);
7386
+ };
7387
+
7388
+
7389
+ /**
7390
+ * Clears the field making it undefined.
7391
+ * @return {!proto.user.GoogleLoginRequest} returns this
7392
+ */
7393
+ proto.user.GoogleLoginRequest.prototype.clearCountry = function() {
7394
+ return jspb.Message.setField(this, 5, undefined);
7395
+ };
7396
+
7397
+
7398
+ /**
7399
+ * Returns whether this field is set.
7400
+ * @return {boolean}
7401
+ */
7402
+ proto.user.GoogleLoginRequest.prototype.hasCountry = function() {
7403
+ return jspb.Message.getField(this, 5) != null;
7404
+ };
7405
+
7406
+
7407
+ /**
7408
+ * optional string city = 6;
7409
+ * @return {string}
7410
+ */
7411
+ proto.user.GoogleLoginRequest.prototype.getCity = function() {
7412
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
7413
+ };
7414
+
7415
+
7416
+ /**
7417
+ * @param {string} value
7418
+ * @return {!proto.user.GoogleLoginRequest} returns this
7419
+ */
7420
+ proto.user.GoogleLoginRequest.prototype.setCity = function(value) {
7421
+ return jspb.Message.setField(this, 6, value);
7422
+ };
7423
+
7424
+
7425
+ /**
7426
+ * Clears the field making it undefined.
7427
+ * @return {!proto.user.GoogleLoginRequest} returns this
7428
+ */
7429
+ proto.user.GoogleLoginRequest.prototype.clearCity = function() {
7430
+ return jspb.Message.setField(this, 6, undefined);
7431
+ };
7432
+
7433
+
7434
+ /**
7435
+ * Returns whether this field is set.
7436
+ * @return {boolean}
7437
+ */
7438
+ proto.user.GoogleLoginRequest.prototype.hasCity = function() {
7439
+ return jspb.Message.getField(this, 6) != null;
7440
+ };
7441
+
7442
+
7443
+ /**
7444
+ * optional string timezone = 7;
7445
+ * @return {string}
7446
+ */
7447
+ proto.user.GoogleLoginRequest.prototype.getTimezone = function() {
7448
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
7449
+ };
7450
+
7451
+
7452
+ /**
7453
+ * @param {string} value
7454
+ * @return {!proto.user.GoogleLoginRequest} returns this
7455
+ */
7456
+ proto.user.GoogleLoginRequest.prototype.setTimezone = function(value) {
7457
+ return jspb.Message.setField(this, 7, value);
7458
+ };
7459
+
7460
+
7461
+ /**
7462
+ * Clears the field making it undefined.
7463
+ * @return {!proto.user.GoogleLoginRequest} returns this
7464
+ */
7465
+ proto.user.GoogleLoginRequest.prototype.clearTimezone = function() {
7466
+ return jspb.Message.setField(this, 7, undefined);
7467
+ };
7468
+
7469
+
7470
+ /**
7471
+ * Returns whether this field is set.
7472
+ * @return {boolean}
7473
+ */
7474
+ proto.user.GoogleLoginRequest.prototype.hasTimezone = function() {
7475
+ return jspb.Message.getField(this, 7) != null;
7476
+ };
7477
+
7478
+
7479
+ /**
7480
+ * optional string locale = 8;
7481
+ * @return {string}
7482
+ */
7483
+ proto.user.GoogleLoginRequest.prototype.getLocale = function() {
7484
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
7485
+ };
7486
+
7487
+
7488
+ /**
7489
+ * @param {string} value
7490
+ * @return {!proto.user.GoogleLoginRequest} returns this
7491
+ */
7492
+ proto.user.GoogleLoginRequest.prototype.setLocale = function(value) {
7493
+ return jspb.Message.setField(this, 8, value);
7494
+ };
7495
+
7496
+
7497
+ /**
7498
+ * Clears the field making it undefined.
7499
+ * @return {!proto.user.GoogleLoginRequest} returns this
7500
+ */
7501
+ proto.user.GoogleLoginRequest.prototype.clearLocale = function() {
7502
+ return jspb.Message.setField(this, 8, undefined);
7503
+ };
7504
+
7505
+
7506
+ /**
7507
+ * Returns whether this field is set.
7508
+ * @return {boolean}
7509
+ */
7510
+ proto.user.GoogleLoginRequest.prototype.hasLocale = function() {
7511
+ return jspb.Message.getField(this, 8) != null;
7512
+ };
7513
+
7514
+
7515
+ /**
7516
+ * optional int32 affiliate_id = 9;
7517
+ * @return {number}
7518
+ */
7519
+ proto.user.GoogleLoginRequest.prototype.getAffiliateId = function() {
7520
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
7521
+ };
7522
+
7523
+
7524
+ /**
7525
+ * @param {number} value
7526
+ * @return {!proto.user.GoogleLoginRequest} returns this
7527
+ */
7528
+ proto.user.GoogleLoginRequest.prototype.setAffiliateId = function(value) {
7529
+ return jspb.Message.setField(this, 9, value);
7530
+ };
7531
+
7532
+
7533
+ /**
7534
+ * Clears the field making it undefined.
7535
+ * @return {!proto.user.GoogleLoginRequest} returns this
7536
+ */
7537
+ proto.user.GoogleLoginRequest.prototype.clearAffiliateId = function() {
7538
+ return jspb.Message.setField(this, 9, undefined);
7539
+ };
7540
+
7541
+
7542
+ /**
7543
+ * Returns whether this field is set.
7544
+ * @return {boolean}
7545
+ */
7546
+ proto.user.GoogleLoginRequest.prototype.hasAffiliateId = function() {
7547
+ return jspb.Message.getField(this, 9) != null;
7548
+ };
7549
+
7550
+
7551
+ /**
7552
+ * optional string affiliate_info = 10;
7553
+ * @return {string}
7554
+ */
7555
+ proto.user.GoogleLoginRequest.prototype.getAffiliateInfo = function() {
7556
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
7557
+ };
7558
+
7559
+
7560
+ /**
7561
+ * @param {string} value
7562
+ * @return {!proto.user.GoogleLoginRequest} returns this
7563
+ */
7564
+ proto.user.GoogleLoginRequest.prototype.setAffiliateInfo = function(value) {
7565
+ return jspb.Message.setField(this, 10, value);
7566
+ };
7567
+
7568
+
7569
+ /**
7570
+ * Clears the field making it undefined.
7571
+ * @return {!proto.user.GoogleLoginRequest} returns this
7572
+ */
7573
+ proto.user.GoogleLoginRequest.prototype.clearAffiliateInfo = function() {
7574
+ return jspb.Message.setField(this, 10, undefined);
7575
+ };
7576
+
7577
+
7578
+ /**
7579
+ * Returns whether this field is set.
7580
+ * @return {boolean}
7581
+ */
7582
+ proto.user.GoogleLoginRequest.prototype.hasAffiliateInfo = function() {
7583
+ return jspb.Message.getField(this, 10) != null;
7584
+ };
7585
+
7586
+
7587
+ /**
7588
+ * optional string promo_code = 11;
7589
+ * @return {string}
7590
+ */
7591
+ proto.user.GoogleLoginRequest.prototype.getPromoCode = function() {
7592
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
7593
+ };
7594
+
7595
+
7596
+ /**
7597
+ * @param {string} value
7598
+ * @return {!proto.user.GoogleLoginRequest} returns this
7599
+ */
7600
+ proto.user.GoogleLoginRequest.prototype.setPromoCode = function(value) {
7601
+ return jspb.Message.setField(this, 11, value);
7602
+ };
7603
+
7604
+
7605
+ /**
7606
+ * Clears the field making it undefined.
7607
+ * @return {!proto.user.GoogleLoginRequest} returns this
7608
+ */
7609
+ proto.user.GoogleLoginRequest.prototype.clearPromoCode = function() {
7610
+ return jspb.Message.setField(this, 11, undefined);
7611
+ };
7612
+
7613
+
7614
+ /**
7615
+ * Returns whether this field is set.
7616
+ * @return {boolean}
7617
+ */
7618
+ proto.user.GoogleLoginRequest.prototype.hasPromoCode = function() {
7619
+ return jspb.Message.getField(this, 11) != null;
7620
+ };
7621
+
7622
+
7623
+ /**
7624
+ * optional string seon_session = 12;
7625
+ * @return {string}
7626
+ */
7627
+ proto.user.GoogleLoginRequest.prototype.getSeonSession = function() {
7628
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
7629
+ };
7630
+
7631
+
7632
+ /**
7633
+ * @param {string} value
7634
+ * @return {!proto.user.GoogleLoginRequest} returns this
7635
+ */
7636
+ proto.user.GoogleLoginRequest.prototype.setSeonSession = function(value) {
7637
+ return jspb.Message.setField(this, 12, value);
7638
+ };
7639
+
7640
+
7641
+ /**
7642
+ * Clears the field making it undefined.
7643
+ * @return {!proto.user.GoogleLoginRequest} returns this
7644
+ */
7645
+ proto.user.GoogleLoginRequest.prototype.clearSeonSession = function() {
7646
+ return jspb.Message.setField(this, 12, undefined);
7647
+ };
7648
+
7649
+
7650
+ /**
7651
+ * Returns whether this field is set.
7652
+ * @return {boolean}
7653
+ */
7654
+ proto.user.GoogleLoginRequest.prototype.hasSeonSession = function() {
7655
+ return jspb.Message.getField(this, 12) != null;
7656
+ };
7657
+
7658
+
7659
+ /**
7660
+ * optional string request_id = 13;
7661
+ * @return {string}
7662
+ */
7663
+ proto.user.GoogleLoginRequest.prototype.getRequestId = function() {
7664
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
7665
+ };
7666
+
7667
+
7668
+ /**
7669
+ * @param {string} value
7670
+ * @return {!proto.user.GoogleLoginRequest} returns this
7671
+ */
7672
+ proto.user.GoogleLoginRequest.prototype.setRequestId = function(value) {
7673
+ return jspb.Message.setField(this, 13, value);
7674
+ };
7675
+
7676
+
7677
+ /**
7678
+ * Clears the field making it undefined.
7679
+ * @return {!proto.user.GoogleLoginRequest} returns this
7680
+ */
7681
+ proto.user.GoogleLoginRequest.prototype.clearRequestId = function() {
7682
+ return jspb.Message.setField(this, 13, undefined);
7683
+ };
7684
+
7685
+
7686
+ /**
7687
+ * Returns whether this field is set.
7688
+ * @return {boolean}
7689
+ */
7690
+ proto.user.GoogleLoginRequest.prototype.hasRequestId = function() {
7691
+ return jspb.Message.getField(this, 13) != null;
7692
+ };
7693
+
7694
+
7695
+ /**
7696
+ * optional string correlation_id = 14;
7697
+ * @return {string}
7698
+ */
7699
+ proto.user.GoogleLoginRequest.prototype.getCorrelationId = function() {
7700
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
7701
+ };
7702
+
7703
+
7704
+ /**
7705
+ * @param {string} value
7706
+ * @return {!proto.user.GoogleLoginRequest} returns this
7707
+ */
7708
+ proto.user.GoogleLoginRequest.prototype.setCorrelationId = function(value) {
7709
+ return jspb.Message.setField(this, 14, value);
7710
+ };
7711
+
7712
+
7713
+ /**
7714
+ * Clears the field making it undefined.
7715
+ * @return {!proto.user.GoogleLoginRequest} returns this
7716
+ */
7717
+ proto.user.GoogleLoginRequest.prototype.clearCorrelationId = function() {
7718
+ return jspb.Message.setField(this, 14, undefined);
7719
+ };
7720
+
7721
+
7722
+ /**
7723
+ * Returns whether this field is set.
7724
+ * @return {boolean}
7725
+ */
7726
+ proto.user.GoogleLoginRequest.prototype.hasCorrelationId = function() {
7727
+ return jspb.Message.getField(this, 14) != null;
7728
+ };
7729
+
7730
+
7731
+ /**
7732
+ * optional string user_agent = 15;
7733
+ * @return {string}
7734
+ */
7735
+ proto.user.GoogleLoginRequest.prototype.getUserAgent = function() {
7736
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
7737
+ };
7738
+
7739
+
7740
+ /**
7741
+ * @param {string} value
7742
+ * @return {!proto.user.GoogleLoginRequest} returns this
7743
+ */
7744
+ proto.user.GoogleLoginRequest.prototype.setUserAgent = function(value) {
7745
+ return jspb.Message.setField(this, 15, value);
7746
+ };
7747
+
7748
+
7749
+ /**
7750
+ * Clears the field making it undefined.
7751
+ * @return {!proto.user.GoogleLoginRequest} returns this
7752
+ */
7753
+ proto.user.GoogleLoginRequest.prototype.clearUserAgent = function() {
7754
+ return jspb.Message.setField(this, 15, undefined);
7755
+ };
7756
+
7757
+
7758
+ /**
7759
+ * Returns whether this field is set.
7760
+ * @return {boolean}
7761
+ */
7762
+ proto.user.GoogleLoginRequest.prototype.hasUserAgent = function() {
7763
+ return jspb.Message.getField(this, 15) != null;
7764
+ };
7765
+
7766
+
7767
+
7768
+
7769
+
6964
7770
  if (jspb.Message.GENERATE_TO_OBJECT) {
6965
7771
  /**
6966
7772
  * Creates an object representation of this proto.