protobuf-platform 1.0.140 → 1.0.141

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
@@ -56,6 +56,7 @@ service Game {
56
56
  rpc cancelFreeSpins(FreeSpinStatusRequest) returns (FreeSpinCampaignResponse);
57
57
  //Cross Services
58
58
  rpc getGamesByUuids(GamesUuids) returns (GamePoorItemsResponse);
59
+ rpc getGamesByIds(GamesIds) returns (GamePoorItemsResponse);
59
60
  rpc getGameScopesByIds(ScopeRequest) returns (ScopeResponse);
60
61
  rpc getCounterScopes(ScopeRequest) returns (ScopeResponse);
61
62
  //Wager lists
@@ -400,6 +401,9 @@ message UserBalanceGameSessionRequest {
400
401
  message GamesUuids {
401
402
  string game_uuids = 1;
402
403
  }
404
+ message GamesIds {
405
+ repeated int32 game_ids = 1;
406
+ }
403
407
  message GamePoorItemsResponse {
404
408
  repeated GameItem items = 1;
405
409
  }
@@ -224,6 +224,17 @@ function deserialize_game_GameStatusResponse(buffer_arg) {
224
224
  return game_pb.GameStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
225
225
  }
226
226
 
227
+ function serialize_game_GamesIds(arg) {
228
+ if (!(arg instanceof game_pb.GamesIds)) {
229
+ throw new Error('Expected argument of type game.GamesIds');
230
+ }
231
+ return Buffer.from(arg.serializeBinary());
232
+ }
233
+
234
+ function deserialize_game_GamesIds(buffer_arg) {
235
+ return game_pb.GamesIds.deserializeBinary(new Uint8Array(buffer_arg));
236
+ }
237
+
227
238
  function serialize_game_GamesPriorityRequest(arg) {
228
239
  if (!(arg instanceof game_pb.GamesPriorityRequest)) {
229
240
  throw new Error('Expected argument of type game.GamesPriorityRequest');
@@ -1169,6 +1180,17 @@ getGamesByUuids: {
1169
1180
  responseSerialize: serialize_game_GamePoorItemsResponse,
1170
1181
  responseDeserialize: deserialize_game_GamePoorItemsResponse,
1171
1182
  },
1183
+ getGamesByIds: {
1184
+ path: '/game.Game/getGamesByIds',
1185
+ requestStream: false,
1186
+ responseStream: false,
1187
+ requestType: game_pb.GamesIds,
1188
+ responseType: game_pb.GamePoorItemsResponse,
1189
+ requestSerialize: serialize_game_GamesIds,
1190
+ requestDeserialize: deserialize_game_GamesIds,
1191
+ responseSerialize: serialize_game_GamePoorItemsResponse,
1192
+ responseDeserialize: deserialize_game_GamePoorItemsResponse,
1193
+ },
1172
1194
  getGameScopesByIds: {
1173
1195
  path: '/game.Game/getGameScopesByIds',
1174
1196
  requestStream: false,
package/game/game_pb.js CHANGED
@@ -51,6 +51,7 @@ goog.exportSymbol('proto.game.GameRequest.RequestCase', null, global);
51
51
  goog.exportSymbol('proto.game.GameResponse', null, global);
52
52
  goog.exportSymbol('proto.game.GameSearchRequest', null, global);
53
53
  goog.exportSymbol('proto.game.GameStatusResponse', null, global);
54
+ goog.exportSymbol('proto.game.GamesIds', null, global);
54
55
  goog.exportSymbol('proto.game.GamesPriorityRequest', null, global);
55
56
  goog.exportSymbol('proto.game.GamesUuids', null, global);
56
57
  goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
@@ -1338,6 +1339,27 @@ if (goog.DEBUG && !COMPILED) {
1338
1339
  */
1339
1340
  proto.game.GamesUuids.displayName = 'proto.game.GamesUuids';
1340
1341
  }
1342
+ /**
1343
+ * Generated by JsPbCodeGenerator.
1344
+ * @param {Array=} opt_data Optional initial data array, typically from a
1345
+ * server response, or constructed directly in Javascript. The array is used
1346
+ * in place and becomes part of the constructed object. It is not cloned.
1347
+ * If no data is provided, the constructed object will be empty, but still
1348
+ * valid.
1349
+ * @extends {jspb.Message}
1350
+ * @constructor
1351
+ */
1352
+ proto.game.GamesIds = function(opt_data) {
1353
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GamesIds.repeatedFields_, null);
1354
+ };
1355
+ goog.inherits(proto.game.GamesIds, jspb.Message);
1356
+ if (goog.DEBUG && !COMPILED) {
1357
+ /**
1358
+ * @public
1359
+ * @override
1360
+ */
1361
+ proto.game.GamesIds.displayName = 'proto.game.GamesIds';
1362
+ }
1341
1363
  /**
1342
1364
  * Generated by JsPbCodeGenerator.
1343
1365
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -16776,6 +16798,164 @@ proto.game.GamesUuids.prototype.setGameUuids = function(value) {
16776
16798
 
16777
16799
 
16778
16800
 
16801
+ /**
16802
+ * List of repeated fields within this message type.
16803
+ * @private {!Array<number>}
16804
+ * @const
16805
+ */
16806
+ proto.game.GamesIds.repeatedFields_ = [1];
16807
+
16808
+
16809
+
16810
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16811
+ /**
16812
+ * Creates an object representation of this proto.
16813
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16814
+ * Optional fields that are not set will be set to undefined.
16815
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16816
+ * For the list of reserved names please see:
16817
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16818
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16819
+ * JSPB instance for transitional soy proto support:
16820
+ * http://goto/soy-param-migration
16821
+ * @return {!Object}
16822
+ */
16823
+ proto.game.GamesIds.prototype.toObject = function(opt_includeInstance) {
16824
+ return proto.game.GamesIds.toObject(opt_includeInstance, this);
16825
+ };
16826
+
16827
+
16828
+ /**
16829
+ * Static version of the {@see toObject} method.
16830
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16831
+ * the JSPB instance for transitional soy proto support:
16832
+ * http://goto/soy-param-migration
16833
+ * @param {!proto.game.GamesIds} msg The msg instance to transform.
16834
+ * @return {!Object}
16835
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16836
+ */
16837
+ proto.game.GamesIds.toObject = function(includeInstance, msg) {
16838
+ var f, obj = {
16839
+ gameIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
16840
+ };
16841
+
16842
+ if (includeInstance) {
16843
+ obj.$jspbMessageInstance = msg;
16844
+ }
16845
+ return obj;
16846
+ };
16847
+ }
16848
+
16849
+
16850
+ /**
16851
+ * Deserializes binary data (in protobuf wire format).
16852
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16853
+ * @return {!proto.game.GamesIds}
16854
+ */
16855
+ proto.game.GamesIds.deserializeBinary = function(bytes) {
16856
+ var reader = new jspb.BinaryReader(bytes);
16857
+ var msg = new proto.game.GamesIds;
16858
+ return proto.game.GamesIds.deserializeBinaryFromReader(msg, reader);
16859
+ };
16860
+
16861
+
16862
+ /**
16863
+ * Deserializes binary data (in protobuf wire format) from the
16864
+ * given reader into the given message object.
16865
+ * @param {!proto.game.GamesIds} msg The message object to deserialize into.
16866
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16867
+ * @return {!proto.game.GamesIds}
16868
+ */
16869
+ proto.game.GamesIds.deserializeBinaryFromReader = function(msg, reader) {
16870
+ while (reader.nextField()) {
16871
+ if (reader.isEndGroup()) {
16872
+ break;
16873
+ }
16874
+ var field = reader.getFieldNumber();
16875
+ switch (field) {
16876
+ case 1:
16877
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
16878
+ for (var i = 0; i < values.length; i++) {
16879
+ msg.addGameIds(values[i]);
16880
+ }
16881
+ break;
16882
+ default:
16883
+ reader.skipField();
16884
+ break;
16885
+ }
16886
+ }
16887
+ return msg;
16888
+ };
16889
+
16890
+
16891
+ /**
16892
+ * Serializes the message to binary data (in protobuf wire format).
16893
+ * @return {!Uint8Array}
16894
+ */
16895
+ proto.game.GamesIds.prototype.serializeBinary = function() {
16896
+ var writer = new jspb.BinaryWriter();
16897
+ proto.game.GamesIds.serializeBinaryToWriter(this, writer);
16898
+ return writer.getResultBuffer();
16899
+ };
16900
+
16901
+
16902
+ /**
16903
+ * Serializes the given message to binary data (in protobuf wire
16904
+ * format), writing to the given BinaryWriter.
16905
+ * @param {!proto.game.GamesIds} message
16906
+ * @param {!jspb.BinaryWriter} writer
16907
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16908
+ */
16909
+ proto.game.GamesIds.serializeBinaryToWriter = function(message, writer) {
16910
+ var f = undefined;
16911
+ f = message.getGameIdsList();
16912
+ if (f.length > 0) {
16913
+ writer.writePackedInt32(
16914
+ 1,
16915
+ f
16916
+ );
16917
+ }
16918
+ };
16919
+
16920
+
16921
+ /**
16922
+ * repeated int32 game_ids = 1;
16923
+ * @return {!Array<number>}
16924
+ */
16925
+ proto.game.GamesIds.prototype.getGameIdsList = function() {
16926
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
16927
+ };
16928
+
16929
+
16930
+ /**
16931
+ * @param {!Array<number>} value
16932
+ * @return {!proto.game.GamesIds} returns this
16933
+ */
16934
+ proto.game.GamesIds.prototype.setGameIdsList = function(value) {
16935
+ return jspb.Message.setField(this, 1, value || []);
16936
+ };
16937
+
16938
+
16939
+ /**
16940
+ * @param {number} value
16941
+ * @param {number=} opt_index
16942
+ * @return {!proto.game.GamesIds} returns this
16943
+ */
16944
+ proto.game.GamesIds.prototype.addGameIds = function(value, opt_index) {
16945
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
16946
+ };
16947
+
16948
+
16949
+ /**
16950
+ * Clears the list making it empty but non-null.
16951
+ * @return {!proto.game.GamesIds} returns this
16952
+ */
16953
+ proto.game.GamesIds.prototype.clearGameIdsList = function() {
16954
+ return this.setGameIdsList([]);
16955
+ };
16956
+
16957
+
16958
+
16779
16959
  /**
16780
16960
  * List of repeated fields within this message type.
16781
16961
  * @private {!Array<number>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.140",
3
+ "version": "1.0.141",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {