protobuf-platform 1.0.14 → 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 -1
- package/user/user_pb.js +50 -50
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -29,11 +29,11 @@ message LoggedInResponse {
|
|
29
29
|
string public_id = 2;
|
30
30
|
string currency = 3;
|
31
31
|
string country = 4;
|
32
|
-
optional int32 is_admin = 5;
|
33
32
|
}
|
34
33
|
message LoginRequest {
|
35
34
|
string email = 1;
|
36
35
|
string password = 2;
|
36
|
+
optional int32 is_admin = 5;
|
37
37
|
}
|
38
38
|
message UserDataRequest {
|
39
39
|
int32 id = 1;
|
package/user/user_pb.js
CHANGED
@@ -882,8 +882,7 @@ proto.user.LoggedInResponse.toObject = function(includeInstance, msg) {
|
|
882
882
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
883
883
|
publicId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
884
884
|
currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
885
|
-
country: jspb.Message.getFieldWithDefault(msg, 4, "")
|
886
|
-
isAdmin: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
885
|
+
country: jspb.Message.getFieldWithDefault(msg, 4, "")
|
887
886
|
};
|
888
887
|
|
889
888
|
if (includeInstance) {
|
@@ -936,10 +935,6 @@ proto.user.LoggedInResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
936
935
|
var value = /** @type {string} */ (reader.readString());
|
937
936
|
msg.setCountry(value);
|
938
937
|
break;
|
939
|
-
case 5:
|
940
|
-
var value = /** @type {number} */ (reader.readInt32());
|
941
|
-
msg.setIsAdmin(value);
|
942
|
-
break;
|
943
938
|
default:
|
944
939
|
reader.skipField();
|
945
940
|
break;
|
@@ -997,13 +992,6 @@ proto.user.LoggedInResponse.serializeBinaryToWriter = function(message, writer)
|
|
997
992
|
f
|
998
993
|
);
|
999
994
|
}
|
1000
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
1001
|
-
if (f != null) {
|
1002
|
-
writer.writeInt32(
|
1003
|
-
5,
|
1004
|
-
f
|
1005
|
-
);
|
1006
|
-
}
|
1007
995
|
};
|
1008
996
|
|
1009
997
|
|
@@ -1079,42 +1067,6 @@ proto.user.LoggedInResponse.prototype.setCountry = function(value) {
|
|
1079
1067
|
};
|
1080
1068
|
|
1081
1069
|
|
1082
|
-
/**
|
1083
|
-
* optional int32 is_admin = 5;
|
1084
|
-
* @return {number}
|
1085
|
-
*/
|
1086
|
-
proto.user.LoggedInResponse.prototype.getIsAdmin = function() {
|
1087
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
1088
|
-
};
|
1089
|
-
|
1090
|
-
|
1091
|
-
/**
|
1092
|
-
* @param {number} value
|
1093
|
-
* @return {!proto.user.LoggedInResponse} returns this
|
1094
|
-
*/
|
1095
|
-
proto.user.LoggedInResponse.prototype.setIsAdmin = function(value) {
|
1096
|
-
return jspb.Message.setField(this, 5, value);
|
1097
|
-
};
|
1098
|
-
|
1099
|
-
|
1100
|
-
/**
|
1101
|
-
* Clears the field making it undefined.
|
1102
|
-
* @return {!proto.user.LoggedInResponse} returns this
|
1103
|
-
*/
|
1104
|
-
proto.user.LoggedInResponse.prototype.clearIsAdmin = function() {
|
1105
|
-
return jspb.Message.setField(this, 5, undefined);
|
1106
|
-
};
|
1107
|
-
|
1108
|
-
|
1109
|
-
/**
|
1110
|
-
* Returns whether this field is set.
|
1111
|
-
* @return {boolean}
|
1112
|
-
*/
|
1113
|
-
proto.user.LoggedInResponse.prototype.hasIsAdmin = function() {
|
1114
|
-
return jspb.Message.getField(this, 5) != null;
|
1115
|
-
};
|
1116
|
-
|
1117
|
-
|
1118
1070
|
|
1119
1071
|
|
1120
1072
|
|
@@ -1148,7 +1100,8 @@ proto.user.LoginRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1148
1100
|
proto.user.LoginRequest.toObject = function(includeInstance, msg) {
|
1149
1101
|
var f, obj = {
|
1150
1102
|
email: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1151
|
-
password: jspb.Message.getFieldWithDefault(msg, 2, "")
|
1103
|
+
password: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
1104
|
+
isAdmin: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
1152
1105
|
};
|
1153
1106
|
|
1154
1107
|
if (includeInstance) {
|
@@ -1193,6 +1146,10 @@ proto.user.LoginRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1193
1146
|
var value = /** @type {string} */ (reader.readString());
|
1194
1147
|
msg.setPassword(value);
|
1195
1148
|
break;
|
1149
|
+
case 5:
|
1150
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1151
|
+
msg.setIsAdmin(value);
|
1152
|
+
break;
|
1196
1153
|
default:
|
1197
1154
|
reader.skipField();
|
1198
1155
|
break;
|
@@ -1236,6 +1193,13 @@ proto.user.LoginRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1236
1193
|
f
|
1237
1194
|
);
|
1238
1195
|
}
|
1196
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
1197
|
+
if (f != null) {
|
1198
|
+
writer.writeInt32(
|
1199
|
+
5,
|
1200
|
+
f
|
1201
|
+
);
|
1202
|
+
}
|
1239
1203
|
};
|
1240
1204
|
|
1241
1205
|
|
@@ -1275,6 +1239,42 @@ proto.user.LoginRequest.prototype.setPassword = function(value) {
|
|
1275
1239
|
};
|
1276
1240
|
|
1277
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
|
+
|
1278
1278
|
|
1279
1279
|
|
1280
1280
|
|