protobuf-platform 1.0.13 → 1.0.15
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 +1 -0
- package/user/user_pb.js +49 -1
package/package.json
CHANGED
package/user/user.proto
CHANGED
package/user/user_pb.js
CHANGED
@@ -1100,7 +1100,8 @@ proto.user.LoginRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1100
1100
|
proto.user.LoginRequest.toObject = function(includeInstance, msg) {
|
1101
1101
|
var f, obj = {
|
1102
1102
|
email: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1103
|
-
password: jspb.Message.getFieldWithDefault(msg, 2, "")
|
1103
|
+
password: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1104
|
+
isAdmin: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
1104
1105
|
};
|
1105
1106
|
|
1106
1107
|
if (includeInstance) {
|
@@ -1145,6 +1146,10 @@ proto.user.LoginRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1145
1146
|
var value = /** @type {string} */ (reader.readString());
|
1146
1147
|
msg.setPassword(value);
|
1147
1148
|
break;
|
1149
|
+
case 5:
|
1150
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1151
|
+
msg.setIsAdmin(value);
|
1152
|
+
break;
|
1148
1153
|
default:
|
1149
1154
|
reader.skipField();
|
1150
1155
|
break;
|
@@ -1188,6 +1193,13 @@ proto.user.LoginRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1188
1193
|
f
|
1189
1194
|
);
|
1190
1195
|
}
|
1196
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
1197
|
+
if (f != null) {
|
1198
|
+
writer.writeInt32(
|
1199
|
+
5,
|
1200
|
+
f
|
1201
|
+
);
|
1202
|
+
}
|
1191
1203
|
};
|
1192
1204
|
|
1193
1205
|
|
@@ -1227,6 +1239,42 @@ proto.user.LoginRequest.prototype.setPassword = function(value) {
|
|
1227
1239
|
};
|
1228
1240
|
|
1229
1241
|
|
1242
|
+
/**
|
1243
|
+
* optional int32 is_admin = 5;
|
1244
|
+
* @return {number}
|
1245
|
+
*/
|
1246
|
+
proto.user.LoginRequest.prototype.getIsAdmin = function() {
|
1247
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
1248
|
+
};
|
1249
|
+
|
1250
|
+
|
1251
|
+
/**
|
1252
|
+
* @param {number} value
|
1253
|
+
* @return {!proto.user.LoginRequest} returns this
|
1254
|
+
*/
|
1255
|
+
proto.user.LoginRequest.prototype.setIsAdmin = function(value) {
|
1256
|
+
return jspb.Message.setField(this, 5, value);
|
1257
|
+
};
|
1258
|
+
|
1259
|
+
|
1260
|
+
/**
|
1261
|
+
* Clears the field making it undefined.
|
1262
|
+
* @return {!proto.user.LoginRequest} returns this
|
1263
|
+
*/
|
1264
|
+
proto.user.LoginRequest.prototype.clearIsAdmin = function() {
|
1265
|
+
return jspb.Message.setField(this, 5, undefined);
|
1266
|
+
};
|
1267
|
+
|
1268
|
+
|
1269
|
+
/**
|
1270
|
+
* Returns whether this field is set.
|
1271
|
+
* @return {boolean}
|
1272
|
+
*/
|
1273
|
+
proto.user.LoginRequest.prototype.hasIsAdmin = function() {
|
1274
|
+
return jspb.Message.getField(this, 5) != null;
|
1275
|
+
};
|
1276
|
+
|
1277
|
+
|
1230
1278
|
|
1231
1279
|
|
1232
1280
|
|