protobuf-platform 1.1.11 → 1.1.13

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
@@ -50,6 +50,9 @@ service Game {
50
50
  rpc getCollectionsByGeo(GameRelationsRequest) returns (GameRelationsResponse);
51
51
  rpc getTagsByGeo(GameRelationsRequest) returns (GameRelationsResponse);
52
52
  rpc updateGamesInBunch(GamesBunchRequest) returns (GameStatusResponse);
53
+ rpc addGamesIntoTournament(TournamentGamesRequest) returns (GameStatusResponse);
54
+ rpc removeGamesFromTournament(TournamentGamesRequest) returns (GameStatusResponse);
55
+ rpc fetchGamesFromTournament(TournamentGamesRequest) returns (GameItemsResponse);
53
56
  //Vendor
54
57
  rpc processedVendorActionCallback(VendorActionRequest) returns (VendorActionResponse);
55
58
  rpc getIntegratorSettings(IntegratorSettingsRequest) returns (IntegratorSettingsResponse);
@@ -508,6 +511,10 @@ message ScopeRequest {
508
511
  message ScopeResponse {
509
512
  string data = 1;
510
513
  }
514
+ message TournamentGamesRequest {
515
+ int32 tournament_id = 1;
516
+ repeated int32 game_ids = 2;
517
+ }
511
518
  //Free Spins
512
519
  message FreeSpinSettingsRequest {
513
520
  string game_uuid = 1;
@@ -774,6 +774,17 @@ function deserialize_game_TagStatusResponse(buffer_arg) {
774
774
  return game_pb.TagStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
775
775
  }
776
776
 
777
+ function serialize_game_TournamentGamesRequest(arg) {
778
+ if (!(arg instanceof game_pb.TournamentGamesRequest)) {
779
+ throw new Error('Expected argument of type game.TournamentGamesRequest');
780
+ }
781
+ return Buffer.from(arg.serializeBinary());
782
+ }
783
+
784
+ function deserialize_game_TournamentGamesRequest(buffer_arg) {
785
+ return game_pb.TournamentGamesRequest.deserializeBinary(new Uint8Array(buffer_arg));
786
+ }
787
+
777
788
  function serialize_game_VendorActionRequest(arg) {
778
789
  if (!(arg instanceof game_pb.VendorActionRequest)) {
779
790
  throw new Error('Expected argument of type game.VendorActionRequest');
@@ -1320,6 +1331,39 @@ parseGames: {
1320
1331
  responseSerialize: serialize_game_GameStatusResponse,
1321
1332
  responseDeserialize: deserialize_game_GameStatusResponse,
1322
1333
  },
1334
+ addGamesIntoTournament: {
1335
+ path: '/game.Game/addGamesIntoTournament',
1336
+ requestStream: false,
1337
+ responseStream: false,
1338
+ requestType: game_pb.TournamentGamesRequest,
1339
+ responseType: game_pb.GameStatusResponse,
1340
+ requestSerialize: serialize_game_TournamentGamesRequest,
1341
+ requestDeserialize: deserialize_game_TournamentGamesRequest,
1342
+ responseSerialize: serialize_game_GameStatusResponse,
1343
+ responseDeserialize: deserialize_game_GameStatusResponse,
1344
+ },
1345
+ removeGamesFromTournament: {
1346
+ path: '/game.Game/removeGamesFromTournament',
1347
+ requestStream: false,
1348
+ responseStream: false,
1349
+ requestType: game_pb.TournamentGamesRequest,
1350
+ responseType: game_pb.GameStatusResponse,
1351
+ requestSerialize: serialize_game_TournamentGamesRequest,
1352
+ requestDeserialize: deserialize_game_TournamentGamesRequest,
1353
+ responseSerialize: serialize_game_GameStatusResponse,
1354
+ responseDeserialize: deserialize_game_GameStatusResponse,
1355
+ },
1356
+ fetchGamesFromTournament: {
1357
+ path: '/game.Game/fetchGamesFromTournament',
1358
+ requestStream: false,
1359
+ responseStream: false,
1360
+ requestType: game_pb.TournamentGamesRequest,
1361
+ responseType: game_pb.GameItemsResponse,
1362
+ requestSerialize: serialize_game_TournamentGamesRequest,
1363
+ requestDeserialize: deserialize_game_TournamentGamesRequest,
1364
+ responseSerialize: serialize_game_GameItemsResponse,
1365
+ responseDeserialize: deserialize_game_GameItemsResponse,
1366
+ },
1323
1367
  // Vendor
1324
1368
  processedVendorActionCallback: {
1325
1369
  path: '/game.Game/processedVendorActionCallback',
package/game/game_pb.js CHANGED
@@ -112,6 +112,7 @@ goog.exportSymbol('proto.game.TagRequest', null, global);
112
112
  goog.exportSymbol('proto.game.TagRequest.RequestCase', null, global);
113
113
  goog.exportSymbol('proto.game.TagResponse', null, global);
114
114
  goog.exportSymbol('proto.game.TagStatusResponse', null, global);
115
+ goog.exportSymbol('proto.game.TournamentGamesRequest', null, global);
115
116
  goog.exportSymbol('proto.game.UserBalanceGameSessionRequest', null, global);
116
117
  goog.exportSymbol('proto.game.VendorActionRequest', null, global);
117
118
  goog.exportSymbol('proto.game.VendorActionResponse', null, global);
@@ -1633,6 +1634,27 @@ if (goog.DEBUG && !COMPILED) {
1633
1634
  */
1634
1635
  proto.game.ScopeResponse.displayName = 'proto.game.ScopeResponse';
1635
1636
  }
1637
+ /**
1638
+ * Generated by JsPbCodeGenerator.
1639
+ * @param {Array=} opt_data Optional initial data array, typically from a
1640
+ * server response, or constructed directly in Javascript. The array is used
1641
+ * in place and becomes part of the constructed object. It is not cloned.
1642
+ * If no data is provided, the constructed object will be empty, but still
1643
+ * valid.
1644
+ * @extends {jspb.Message}
1645
+ * @constructor
1646
+ */
1647
+ proto.game.TournamentGamesRequest = function(opt_data) {
1648
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.TournamentGamesRequest.repeatedFields_, null);
1649
+ };
1650
+ goog.inherits(proto.game.TournamentGamesRequest, jspb.Message);
1651
+ if (goog.DEBUG && !COMPILED) {
1652
+ /**
1653
+ * @public
1654
+ * @override
1655
+ */
1656
+ proto.game.TournamentGamesRequest.displayName = 'proto.game.TournamentGamesRequest';
1657
+ }
1636
1658
  /**
1637
1659
  * Generated by JsPbCodeGenerator.
1638
1660
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -21154,6 +21176,194 @@ proto.game.ScopeResponse.prototype.setData = function(value) {
21154
21176
 
21155
21177
 
21156
21178
 
21179
+ /**
21180
+ * List of repeated fields within this message type.
21181
+ * @private {!Array<number>}
21182
+ * @const
21183
+ */
21184
+ proto.game.TournamentGamesRequest.repeatedFields_ = [2];
21185
+
21186
+
21187
+
21188
+ if (jspb.Message.GENERATE_TO_OBJECT) {
21189
+ /**
21190
+ * Creates an object representation of this proto.
21191
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
21192
+ * Optional fields that are not set will be set to undefined.
21193
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
21194
+ * For the list of reserved names please see:
21195
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
21196
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
21197
+ * JSPB instance for transitional soy proto support:
21198
+ * http://goto/soy-param-migration
21199
+ * @return {!Object}
21200
+ */
21201
+ proto.game.TournamentGamesRequest.prototype.toObject = function(opt_includeInstance) {
21202
+ return proto.game.TournamentGamesRequest.toObject(opt_includeInstance, this);
21203
+ };
21204
+
21205
+
21206
+ /**
21207
+ * Static version of the {@see toObject} method.
21208
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
21209
+ * the JSPB instance for transitional soy proto support:
21210
+ * http://goto/soy-param-migration
21211
+ * @param {!proto.game.TournamentGamesRequest} msg The msg instance to transform.
21212
+ * @return {!Object}
21213
+ * @suppress {unusedLocalVariables} f is only used for nested messages
21214
+ */
21215
+ proto.game.TournamentGamesRequest.toObject = function(includeInstance, msg) {
21216
+ var f, obj = {
21217
+ tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
21218
+ gameIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
21219
+ };
21220
+
21221
+ if (includeInstance) {
21222
+ obj.$jspbMessageInstance = msg;
21223
+ }
21224
+ return obj;
21225
+ };
21226
+ }
21227
+
21228
+
21229
+ /**
21230
+ * Deserializes binary data (in protobuf wire format).
21231
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
21232
+ * @return {!proto.game.TournamentGamesRequest}
21233
+ */
21234
+ proto.game.TournamentGamesRequest.deserializeBinary = function(bytes) {
21235
+ var reader = new jspb.BinaryReader(bytes);
21236
+ var msg = new proto.game.TournamentGamesRequest;
21237
+ return proto.game.TournamentGamesRequest.deserializeBinaryFromReader(msg, reader);
21238
+ };
21239
+
21240
+
21241
+ /**
21242
+ * Deserializes binary data (in protobuf wire format) from the
21243
+ * given reader into the given message object.
21244
+ * @param {!proto.game.TournamentGamesRequest} msg The message object to deserialize into.
21245
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
21246
+ * @return {!proto.game.TournamentGamesRequest}
21247
+ */
21248
+ proto.game.TournamentGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
21249
+ while (reader.nextField()) {
21250
+ if (reader.isEndGroup()) {
21251
+ break;
21252
+ }
21253
+ var field = reader.getFieldNumber();
21254
+ switch (field) {
21255
+ case 1:
21256
+ var value = /** @type {number} */ (reader.readInt32());
21257
+ msg.setTournamentId(value);
21258
+ break;
21259
+ case 2:
21260
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
21261
+ for (var i = 0; i < values.length; i++) {
21262
+ msg.addGameIds(values[i]);
21263
+ }
21264
+ break;
21265
+ default:
21266
+ reader.skipField();
21267
+ break;
21268
+ }
21269
+ }
21270
+ return msg;
21271
+ };
21272
+
21273
+
21274
+ /**
21275
+ * Serializes the message to binary data (in protobuf wire format).
21276
+ * @return {!Uint8Array}
21277
+ */
21278
+ proto.game.TournamentGamesRequest.prototype.serializeBinary = function() {
21279
+ var writer = new jspb.BinaryWriter();
21280
+ proto.game.TournamentGamesRequest.serializeBinaryToWriter(this, writer);
21281
+ return writer.getResultBuffer();
21282
+ };
21283
+
21284
+
21285
+ /**
21286
+ * Serializes the given message to binary data (in protobuf wire
21287
+ * format), writing to the given BinaryWriter.
21288
+ * @param {!proto.game.TournamentGamesRequest} message
21289
+ * @param {!jspb.BinaryWriter} writer
21290
+ * @suppress {unusedLocalVariables} f is only used for nested messages
21291
+ */
21292
+ proto.game.TournamentGamesRequest.serializeBinaryToWriter = function(message, writer) {
21293
+ var f = undefined;
21294
+ f = message.getTournamentId();
21295
+ if (f !== 0) {
21296
+ writer.writeInt32(
21297
+ 1,
21298
+ f
21299
+ );
21300
+ }
21301
+ f = message.getGameIdsList();
21302
+ if (f.length > 0) {
21303
+ writer.writePackedInt32(
21304
+ 2,
21305
+ f
21306
+ );
21307
+ }
21308
+ };
21309
+
21310
+
21311
+ /**
21312
+ * optional int32 tournament_id = 1;
21313
+ * @return {number}
21314
+ */
21315
+ proto.game.TournamentGamesRequest.prototype.getTournamentId = function() {
21316
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
21317
+ };
21318
+
21319
+
21320
+ /**
21321
+ * @param {number} value
21322
+ * @return {!proto.game.TournamentGamesRequest} returns this
21323
+ */
21324
+ proto.game.TournamentGamesRequest.prototype.setTournamentId = function(value) {
21325
+ return jspb.Message.setProto3IntField(this, 1, value);
21326
+ };
21327
+
21328
+
21329
+ /**
21330
+ * repeated int32 game_ids = 2;
21331
+ * @return {!Array<number>}
21332
+ */
21333
+ proto.game.TournamentGamesRequest.prototype.getGameIdsList = function() {
21334
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
21335
+ };
21336
+
21337
+
21338
+ /**
21339
+ * @param {!Array<number>} value
21340
+ * @return {!proto.game.TournamentGamesRequest} returns this
21341
+ */
21342
+ proto.game.TournamentGamesRequest.prototype.setGameIdsList = function(value) {
21343
+ return jspb.Message.setField(this, 2, value || []);
21344
+ };
21345
+
21346
+
21347
+ /**
21348
+ * @param {number} value
21349
+ * @param {number=} opt_index
21350
+ * @return {!proto.game.TournamentGamesRequest} returns this
21351
+ */
21352
+ proto.game.TournamentGamesRequest.prototype.addGameIds = function(value, opt_index) {
21353
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
21354
+ };
21355
+
21356
+
21357
+ /**
21358
+ * Clears the list making it empty but non-null.
21359
+ * @return {!proto.game.TournamentGamesRequest} returns this
21360
+ */
21361
+ proto.game.TournamentGamesRequest.prototype.clearGameIdsList = function() {
21362
+ return this.setGameIdsList([]);
21363
+ };
21364
+
21365
+
21366
+
21157
21367
 
21158
21368
 
21159
21369
  if (jspb.Message.GENERATE_TO_OBJECT) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {