protobuf-platform 1.0.31 → 1.0.32

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/game/game.proto CHANGED
@@ -39,8 +39,9 @@ message CategoryRequest {
39
39
  oneof request {
40
40
  string one = 1;
41
41
  string two = 2;
42
- string three = 3;
42
+
43
43
  string four = 4;
44
+ string three = 3;
44
45
  }
45
46
  }
46
47
  message GetCategoryRequest {
package/game/game_pb.js CHANGED
@@ -921,7 +921,7 @@ proto.game.CategoryItem.prototype.hasImagePath = function() {
921
921
  * @private {!Array<!Array<number>>}
922
922
  * @const
923
923
  */
924
- proto.game.CategoryRequest.oneofGroups_ = [[1,2,3,4]];
924
+ proto.game.CategoryRequest.oneofGroups_ = [[1,2,4,3]];
925
925
 
926
926
  /**
927
927
  * @enum {number}
@@ -930,8 +930,8 @@ proto.game.CategoryRequest.RequestCase = {
930
930
  REQUEST_NOT_SET: 0,
931
931
  ONE: 1,
932
932
  TWO: 2,
933
- THREE: 3,
934
- FOUR: 4
933
+ FOUR: 4,
934
+ THREE: 3
935
935
  };
936
936
 
937
937
  /**
@@ -974,8 +974,8 @@ proto.game.CategoryRequest.toObject = function(includeInstance, msg) {
974
974
  var f, obj = {
975
975
  one: jspb.Message.getFieldWithDefault(msg, 1, ""),
976
976
  two: jspb.Message.getFieldWithDefault(msg, 2, ""),
977
- three: jspb.Message.getFieldWithDefault(msg, 3, ""),
978
- four: jspb.Message.getFieldWithDefault(msg, 4, "")
977
+ four: jspb.Message.getFieldWithDefault(msg, 4, ""),
978
+ three: jspb.Message.getFieldWithDefault(msg, 3, "")
979
979
  };
980
980
 
981
981
  if (includeInstance) {
@@ -1020,14 +1020,14 @@ proto.game.CategoryRequest.deserializeBinaryFromReader = function(msg, reader) {
1020
1020
  var value = /** @type {string} */ (reader.readString());
1021
1021
  msg.setTwo(value);
1022
1022
  break;
1023
- case 3:
1024
- var value = /** @type {string} */ (reader.readString());
1025
- msg.setThree(value);
1026
- break;
1027
1023
  case 4:
1028
1024
  var value = /** @type {string} */ (reader.readString());
1029
1025
  msg.setFour(value);
1030
1026
  break;
1027
+ case 3:
1028
+ var value = /** @type {string} */ (reader.readString());
1029
+ msg.setThree(value);
1030
+ break;
1031
1031
  default:
1032
1032
  reader.skipField();
1033
1033
  break;
@@ -1071,17 +1071,17 @@ proto.game.CategoryRequest.serializeBinaryToWriter = function(message, writer) {
1071
1071
  f
1072
1072
  );
1073
1073
  }
1074
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
1074
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
1075
1075
  if (f != null) {
1076
1076
  writer.writeString(
1077
- 3,
1077
+ 4,
1078
1078
  f
1079
1079
  );
1080
1080
  }
1081
- f = /** @type {string} */ (jspb.Message.getField(message, 4));
1081
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1082
1082
  if (f != null) {
1083
1083
  writer.writeString(
1084
- 4,
1084
+ 3,
1085
1085
  f
1086
1086
  );
1087
1087
  }
@@ -1161,11 +1161,11 @@ proto.game.CategoryRequest.prototype.hasTwo = function() {
1161
1161
 
1162
1162
 
1163
1163
  /**
1164
- * optional string three = 3;
1164
+ * optional string four = 4;
1165
1165
  * @return {string}
1166
1166
  */
1167
- proto.game.CategoryRequest.prototype.getThree = function() {
1168
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1167
+ proto.game.CategoryRequest.prototype.getFour = function() {
1168
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1169
1169
  };
1170
1170
 
1171
1171
 
@@ -1173,8 +1173,8 @@ proto.game.CategoryRequest.prototype.getThree = function() {
1173
1173
  * @param {string} value
1174
1174
  * @return {!proto.game.CategoryRequest} returns this
1175
1175
  */
1176
- proto.game.CategoryRequest.prototype.setThree = function(value) {
1177
- return jspb.Message.setOneofField(this, 3, proto.game.CategoryRequest.oneofGroups_[0], value);
1176
+ proto.game.CategoryRequest.prototype.setFour = function(value) {
1177
+ return jspb.Message.setOneofField(this, 4, proto.game.CategoryRequest.oneofGroups_[0], value);
1178
1178
  };
1179
1179
 
1180
1180
 
@@ -1182,8 +1182,8 @@ proto.game.CategoryRequest.prototype.setThree = function(value) {
1182
1182
  * Clears the field making it undefined.
1183
1183
  * @return {!proto.game.CategoryRequest} returns this
1184
1184
  */
1185
- proto.game.CategoryRequest.prototype.clearThree = function() {
1186
- return jspb.Message.setOneofField(this, 3, proto.game.CategoryRequest.oneofGroups_[0], undefined);
1185
+ proto.game.CategoryRequest.prototype.clearFour = function() {
1186
+ return jspb.Message.setOneofField(this, 4, proto.game.CategoryRequest.oneofGroups_[0], undefined);
1187
1187
  };
1188
1188
 
1189
1189
 
@@ -1191,17 +1191,17 @@ proto.game.CategoryRequest.prototype.clearThree = function() {
1191
1191
  * Returns whether this field is set.
1192
1192
  * @return {boolean}
1193
1193
  */
1194
- proto.game.CategoryRequest.prototype.hasThree = function() {
1195
- return jspb.Message.getField(this, 3) != null;
1194
+ proto.game.CategoryRequest.prototype.hasFour = function() {
1195
+ return jspb.Message.getField(this, 4) != null;
1196
1196
  };
1197
1197
 
1198
1198
 
1199
1199
  /**
1200
- * optional string four = 4;
1200
+ * optional string three = 3;
1201
1201
  * @return {string}
1202
1202
  */
1203
- proto.game.CategoryRequest.prototype.getFour = function() {
1204
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1203
+ proto.game.CategoryRequest.prototype.getThree = function() {
1204
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1205
1205
  };
1206
1206
 
1207
1207
 
@@ -1209,8 +1209,8 @@ proto.game.CategoryRequest.prototype.getFour = function() {
1209
1209
  * @param {string} value
1210
1210
  * @return {!proto.game.CategoryRequest} returns this
1211
1211
  */
1212
- proto.game.CategoryRequest.prototype.setFour = function(value) {
1213
- return jspb.Message.setOneofField(this, 4, proto.game.CategoryRequest.oneofGroups_[0], value);
1212
+ proto.game.CategoryRequest.prototype.setThree = function(value) {
1213
+ return jspb.Message.setOneofField(this, 3, proto.game.CategoryRequest.oneofGroups_[0], value);
1214
1214
  };
1215
1215
 
1216
1216
 
@@ -1218,8 +1218,8 @@ proto.game.CategoryRequest.prototype.setFour = function(value) {
1218
1218
  * Clears the field making it undefined.
1219
1219
  * @return {!proto.game.CategoryRequest} returns this
1220
1220
  */
1221
- proto.game.CategoryRequest.prototype.clearFour = function() {
1222
- return jspb.Message.setOneofField(this, 4, proto.game.CategoryRequest.oneofGroups_[0], undefined);
1221
+ proto.game.CategoryRequest.prototype.clearThree = function() {
1222
+ return jspb.Message.setOneofField(this, 3, proto.game.CategoryRequest.oneofGroups_[0], undefined);
1223
1223
  };
1224
1224
 
1225
1225
 
@@ -1227,8 +1227,8 @@ proto.game.CategoryRequest.prototype.clearFour = function() {
1227
1227
  * Returns whether this field is set.
1228
1228
  * @return {boolean}
1229
1229
  */
1230
- proto.game.CategoryRequest.prototype.hasFour = function() {
1231
- return jspb.Message.getField(this, 4) != null;
1230
+ proto.game.CategoryRequest.prototype.hasThree = function() {
1231
+ return jspb.Message.getField(this, 3) != null;
1232
1232
  };
1233
1233
 
1234
1234
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {