protobuf-platform 1.0.278 → 1.0.279
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 +1 -1
- package/user/user.proto +3 -0
- package/user/user_pb.js +145 -1
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -112,6 +112,9 @@ message LoginRequest {
|
|
112
112
|
string password = 2;
|
113
113
|
optional int32 is_admin = 3;
|
114
114
|
optional string user_ip = 4;
|
115
|
+
optional string device = 5;
|
116
|
+
optional string country = 6;
|
117
|
+
optional string city = 7;
|
115
118
|
}
|
116
119
|
message UserDataRequest {
|
117
120
|
int32 id = 1;
|
package/user/user_pb.js
CHANGED
@@ -3909,7 +3909,10 @@ proto.user.LoginRequest.toObject = function(includeInstance, msg) {
|
|
3909
3909
|
email: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
3910
3910
|
password: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
3911
3911
|
isAdmin: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
3912
|
-
userIp: jspb.Message.getFieldWithDefault(msg, 4, "")
|
3912
|
+
userIp: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
3913
|
+
device: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
3914
|
+
country: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
3915
|
+
city: jspb.Message.getFieldWithDefault(msg, 7, "")
|
3913
3916
|
};
|
3914
3917
|
|
3915
3918
|
if (includeInstance) {
|
@@ -3962,6 +3965,18 @@ proto.user.LoginRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3962
3965
|
var value = /** @type {string} */ (reader.readString());
|
3963
3966
|
msg.setUserIp(value);
|
3964
3967
|
break;
|
3968
|
+
case 5:
|
3969
|
+
var value = /** @type {string} */ (reader.readString());
|
3970
|
+
msg.setDevice(value);
|
3971
|
+
break;
|
3972
|
+
case 6:
|
3973
|
+
var value = /** @type {string} */ (reader.readString());
|
3974
|
+
msg.setCountry(value);
|
3975
|
+
break;
|
3976
|
+
case 7:
|
3977
|
+
var value = /** @type {string} */ (reader.readString());
|
3978
|
+
msg.setCity(value);
|
3979
|
+
break;
|
3965
3980
|
default:
|
3966
3981
|
reader.skipField();
|
3967
3982
|
break;
|
@@ -4019,6 +4034,27 @@ proto.user.LoginRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4019
4034
|
f
|
4020
4035
|
);
|
4021
4036
|
}
|
4037
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
4038
|
+
if (f != null) {
|
4039
|
+
writer.writeString(
|
4040
|
+
5,
|
4041
|
+
f
|
4042
|
+
);
|
4043
|
+
}
|
4044
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
4045
|
+
if (f != null) {
|
4046
|
+
writer.writeString(
|
4047
|
+
6,
|
4048
|
+
f
|
4049
|
+
);
|
4050
|
+
}
|
4051
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
4052
|
+
if (f != null) {
|
4053
|
+
writer.writeString(
|
4054
|
+
7,
|
4055
|
+
f
|
4056
|
+
);
|
4057
|
+
}
|
4022
4058
|
};
|
4023
4059
|
|
4024
4060
|
|
@@ -4130,6 +4166,114 @@ proto.user.LoginRequest.prototype.hasUserIp = function() {
|
|
4130
4166
|
};
|
4131
4167
|
|
4132
4168
|
|
4169
|
+
/**
|
4170
|
+
* optional string device = 5;
|
4171
|
+
* @return {string}
|
4172
|
+
*/
|
4173
|
+
proto.user.LoginRequest.prototype.getDevice = function() {
|
4174
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
4175
|
+
};
|
4176
|
+
|
4177
|
+
|
4178
|
+
/**
|
4179
|
+
* @param {string} value
|
4180
|
+
* @return {!proto.user.LoginRequest} returns this
|
4181
|
+
*/
|
4182
|
+
proto.user.LoginRequest.prototype.setDevice = function(value) {
|
4183
|
+
return jspb.Message.setField(this, 5, value);
|
4184
|
+
};
|
4185
|
+
|
4186
|
+
|
4187
|
+
/**
|
4188
|
+
* Clears the field making it undefined.
|
4189
|
+
* @return {!proto.user.LoginRequest} returns this
|
4190
|
+
*/
|
4191
|
+
proto.user.LoginRequest.prototype.clearDevice = function() {
|
4192
|
+
return jspb.Message.setField(this, 5, undefined);
|
4193
|
+
};
|
4194
|
+
|
4195
|
+
|
4196
|
+
/**
|
4197
|
+
* Returns whether this field is set.
|
4198
|
+
* @return {boolean}
|
4199
|
+
*/
|
4200
|
+
proto.user.LoginRequest.prototype.hasDevice = function() {
|
4201
|
+
return jspb.Message.getField(this, 5) != null;
|
4202
|
+
};
|
4203
|
+
|
4204
|
+
|
4205
|
+
/**
|
4206
|
+
* optional string country = 6;
|
4207
|
+
* @return {string}
|
4208
|
+
*/
|
4209
|
+
proto.user.LoginRequest.prototype.getCountry = function() {
|
4210
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
4211
|
+
};
|
4212
|
+
|
4213
|
+
|
4214
|
+
/**
|
4215
|
+
* @param {string} value
|
4216
|
+
* @return {!proto.user.LoginRequest} returns this
|
4217
|
+
*/
|
4218
|
+
proto.user.LoginRequest.prototype.setCountry = function(value) {
|
4219
|
+
return jspb.Message.setField(this, 6, value);
|
4220
|
+
};
|
4221
|
+
|
4222
|
+
|
4223
|
+
/**
|
4224
|
+
* Clears the field making it undefined.
|
4225
|
+
* @return {!proto.user.LoginRequest} returns this
|
4226
|
+
*/
|
4227
|
+
proto.user.LoginRequest.prototype.clearCountry = function() {
|
4228
|
+
return jspb.Message.setField(this, 6, undefined);
|
4229
|
+
};
|
4230
|
+
|
4231
|
+
|
4232
|
+
/**
|
4233
|
+
* Returns whether this field is set.
|
4234
|
+
* @return {boolean}
|
4235
|
+
*/
|
4236
|
+
proto.user.LoginRequest.prototype.hasCountry = function() {
|
4237
|
+
return jspb.Message.getField(this, 6) != null;
|
4238
|
+
};
|
4239
|
+
|
4240
|
+
|
4241
|
+
/**
|
4242
|
+
* optional string city = 7;
|
4243
|
+
* @return {string}
|
4244
|
+
*/
|
4245
|
+
proto.user.LoginRequest.prototype.getCity = function() {
|
4246
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
4247
|
+
};
|
4248
|
+
|
4249
|
+
|
4250
|
+
/**
|
4251
|
+
* @param {string} value
|
4252
|
+
* @return {!proto.user.LoginRequest} returns this
|
4253
|
+
*/
|
4254
|
+
proto.user.LoginRequest.prototype.setCity = function(value) {
|
4255
|
+
return jspb.Message.setField(this, 7, value);
|
4256
|
+
};
|
4257
|
+
|
4258
|
+
|
4259
|
+
/**
|
4260
|
+
* Clears the field making it undefined.
|
4261
|
+
* @return {!proto.user.LoginRequest} returns this
|
4262
|
+
*/
|
4263
|
+
proto.user.LoginRequest.prototype.clearCity = function() {
|
4264
|
+
return jspb.Message.setField(this, 7, undefined);
|
4265
|
+
};
|
4266
|
+
|
4267
|
+
|
4268
|
+
/**
|
4269
|
+
* Returns whether this field is set.
|
4270
|
+
* @return {boolean}
|
4271
|
+
*/
|
4272
|
+
proto.user.LoginRequest.prototype.hasCity = function() {
|
4273
|
+
return jspb.Message.getField(this, 7) != null;
|
4274
|
+
};
|
4275
|
+
|
4276
|
+
|
4133
4277
|
|
4134
4278
|
|
4135
4279
|
|