protobuf-platform 1.0.157 → 1.0.159

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
@@ -45,8 +45,8 @@ service Game {
45
45
  rpc searchGamesByTags(SearchGamesIntoTagsRequest) returns (GameItemsResponse);
46
46
  rpc initGameSession(InitGameSessionRequest) returns (InitGameSessionResponse);
47
47
  rpc initDemoGameSession(InitDemoGameSessionRequest) returns (InitGameSessionResponse);
48
- rpc getCollectionsByGeo(GameRelationsRequest) returns (GameRelationsRequest);
49
- rpc getTagsByGeo(GameRelationsRequest) returns (GameRelationsRequest);
48
+ rpc getCollectionsByGeo(GameRelationsRequest) returns (GameRelationsResponse);
49
+ rpc getTagsByGeo(GameRelationsRequest) returns (GameRelationsResponse);
50
50
  //Vendor
51
51
  rpc processedVendorActionCallback(VendorActionRequest) returns (VendorActionResponse);
52
52
  rpc getIntegratorSettings(IntegratorSettingsRequest) returns (IntegratorSettingsResponse);
@@ -359,7 +359,7 @@ message GameRelationItem {
359
359
  }
360
360
  message GameGeo {
361
361
  string geo = 1;
362
- int32 geo_id = 2;
362
+ bool is_accepted = 2;
363
363
  }
364
364
  //Game CRUD | Responses
365
365
  message GameResponse {
@@ -213,6 +213,17 @@ function deserialize_game_GameRelationsRequest(buffer_arg) {
213
213
  return game_pb.GameRelationsRequest.deserializeBinary(new Uint8Array(buffer_arg));
214
214
  }
215
215
 
216
+ function serialize_game_GameRelationsResponse(arg) {
217
+ if (!(arg instanceof game_pb.GameRelationsResponse)) {
218
+ throw new Error('Expected argument of type game.GameRelationsResponse');
219
+ }
220
+ return Buffer.from(arg.serializeBinary());
221
+ }
222
+
223
+ function deserialize_game_GameRelationsResponse(buffer_arg) {
224
+ return game_pb.GameRelationsResponse.deserializeBinary(new Uint8Array(buffer_arg));
225
+ }
226
+
216
227
  function serialize_game_GameRequest(arg) {
217
228
  if (!(arg instanceof game_pb.GameRequest)) {
218
229
  throw new Error('Expected argument of type game.GameRequest');
@@ -1116,22 +1127,22 @@ parseGames: {
1116
1127
  requestStream: false,
1117
1128
  responseStream: false,
1118
1129
  requestType: game_pb.GameRelationsRequest,
1119
- responseType: game_pb.GameRelationsRequest,
1130
+ responseType: game_pb.GameRelationsResponse,
1120
1131
  requestSerialize: serialize_game_GameRelationsRequest,
1121
1132
  requestDeserialize: deserialize_game_GameRelationsRequest,
1122
- responseSerialize: serialize_game_GameRelationsRequest,
1123
- responseDeserialize: deserialize_game_GameRelationsRequest,
1133
+ responseSerialize: serialize_game_GameRelationsResponse,
1134
+ responseDeserialize: deserialize_game_GameRelationsResponse,
1124
1135
  },
1125
1136
  getTagsByGeo: {
1126
1137
  path: '/game.Game/getTagsByGeo',
1127
1138
  requestStream: false,
1128
1139
  responseStream: false,
1129
1140
  requestType: game_pb.GameRelationsRequest,
1130
- responseType: game_pb.GameRelationsRequest,
1141
+ responseType: game_pb.GameRelationsResponse,
1131
1142
  requestSerialize: serialize_game_GameRelationsRequest,
1132
1143
  requestDeserialize: deserialize_game_GameRelationsRequest,
1133
- responseSerialize: serialize_game_GameRelationsRequest,
1134
- responseDeserialize: deserialize_game_GameRelationsRequest,
1144
+ responseSerialize: serialize_game_GameRelationsResponse,
1145
+ responseDeserialize: deserialize_game_GameRelationsResponse,
1135
1146
  },
1136
1147
  // Vendor
1137
1148
  processedVendorActionCallback: {
package/game/game_pb.js CHANGED
@@ -14904,7 +14904,7 @@ proto.game.GameGeo.prototype.toObject = function(opt_includeInstance) {
14904
14904
  proto.game.GameGeo.toObject = function(includeInstance, msg) {
14905
14905
  var f, obj = {
14906
14906
  geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
14907
- geoId: jspb.Message.getFieldWithDefault(msg, 2, 0)
14907
+ isAccepted: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
14908
14908
  };
14909
14909
 
14910
14910
  if (includeInstance) {
@@ -14946,8 +14946,8 @@ proto.game.GameGeo.deserializeBinaryFromReader = function(msg, reader) {
14946
14946
  msg.setGeo(value);
14947
14947
  break;
14948
14948
  case 2:
14949
- var value = /** @type {number} */ (reader.readInt32());
14950
- msg.setGeoId(value);
14949
+ var value = /** @type {boolean} */ (reader.readBool());
14950
+ msg.setIsAccepted(value);
14951
14951
  break;
14952
14952
  default:
14953
14953
  reader.skipField();
@@ -14985,9 +14985,9 @@ proto.game.GameGeo.serializeBinaryToWriter = function(message, writer) {
14985
14985
  f
14986
14986
  );
14987
14987
  }
14988
- f = message.getGeoId();
14989
- if (f !== 0) {
14990
- writer.writeInt32(
14988
+ f = message.getIsAccepted();
14989
+ if (f) {
14990
+ writer.writeBool(
14991
14991
  2,
14992
14992
  f
14993
14993
  );
@@ -15014,20 +15014,20 @@ proto.game.GameGeo.prototype.setGeo = function(value) {
15014
15014
 
15015
15015
 
15016
15016
  /**
15017
- * optional int32 geo_id = 2;
15018
- * @return {number}
15017
+ * optional bool is_accepted = 2;
15018
+ * @return {boolean}
15019
15019
  */
15020
- proto.game.GameGeo.prototype.getGeoId = function() {
15021
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
15020
+ proto.game.GameGeo.prototype.getIsAccepted = function() {
15021
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
15022
15022
  };
15023
15023
 
15024
15024
 
15025
15025
  /**
15026
- * @param {number} value
15026
+ * @param {boolean} value
15027
15027
  * @return {!proto.game.GameGeo} returns this
15028
15028
  */
15029
- proto.game.GameGeo.prototype.setGeoId = function(value) {
15030
- return jspb.Message.setProto3IntField(this, 2, value);
15029
+ proto.game.GameGeo.prototype.setIsAccepted = function(value) {
15030
+ return jspb.Message.setProto3BooleanField(this, 2, value);
15031
15031
  };
15032
15032
 
15033
15033
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.157",
3
+ "version": "1.0.159",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {