protobuf-platform 1.1.13 → 1.1.14
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 +6 -1
- package/game/game_grpc_pb.js +3 -3
- package/game/game_pb.js +270 -1
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -52,7 +52,7 @@ service Game {
|
|
52
52
|
rpc updateGamesInBunch(GamesBunchRequest) returns (GameStatusResponse);
|
53
53
|
rpc addGamesIntoTournament(TournamentGamesRequest) returns (GameStatusResponse);
|
54
54
|
rpc removeGamesFromTournament(TournamentGamesRequest) returns (GameStatusResponse);
|
55
|
-
rpc fetchGamesFromTournament(
|
55
|
+
rpc fetchGamesFromTournament(PaginationRequest) returns (GameItemsResponse);
|
56
56
|
//Vendor
|
57
57
|
rpc processedVendorActionCallback(VendorActionRequest) returns (VendorActionResponse);
|
58
58
|
rpc getIntegratorSettings(IntegratorSettingsRequest) returns (IntegratorSettingsResponse);
|
@@ -104,6 +104,7 @@ message PaginationRequest {
|
|
104
104
|
optional GameSearchRequest game_search_params = 4;
|
105
105
|
optional WagerSearchRequest wager_search_params = 5;
|
106
106
|
optional CashBackSearchRequest cash_back_search_params = 6;
|
107
|
+
optional TournamentSearchRequest tournament_search_params = 7;
|
107
108
|
}
|
108
109
|
message GameSearchRequest {
|
109
110
|
optional int32 is_active = 1;
|
@@ -130,6 +131,10 @@ message CashBackSearchRequest {
|
|
130
131
|
optional string game_title = 2;
|
131
132
|
repeated int32 cashback_ids = 3;
|
132
133
|
}
|
134
|
+
message TournamentSearchRequest {
|
135
|
+
optional int32 tournament_id = 1;
|
136
|
+
optional string game_title = 2;
|
137
|
+
}
|
133
138
|
//Media
|
134
139
|
message File { bytes media = 1; }
|
135
140
|
message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
package/game/game_grpc_pb.js
CHANGED
@@ -1357,10 +1357,10 @@ parseGames: {
|
|
1357
1357
|
path: '/game.Game/fetchGamesFromTournament',
|
1358
1358
|
requestStream: false,
|
1359
1359
|
responseStream: false,
|
1360
|
-
requestType: game_pb.
|
1360
|
+
requestType: game_pb.PaginationRequest,
|
1361
1361
|
responseType: game_pb.GameItemsResponse,
|
1362
|
-
requestSerialize:
|
1363
|
-
requestDeserialize:
|
1362
|
+
requestSerialize: serialize_game_PaginationRequest,
|
1363
|
+
requestDeserialize: deserialize_game_PaginationRequest,
|
1364
1364
|
responseSerialize: serialize_game_GameItemsResponse,
|
1365
1365
|
responseDeserialize: deserialize_game_GameItemsResponse,
|
1366
1366
|
},
|
package/game/game_pb.js
CHANGED
@@ -113,6 +113,7 @@ 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
115
|
goog.exportSymbol('proto.game.TournamentGamesRequest', null, global);
|
116
|
+
goog.exportSymbol('proto.game.TournamentSearchRequest', null, global);
|
116
117
|
goog.exportSymbol('proto.game.UserBalanceGameSessionRequest', null, global);
|
117
118
|
goog.exportSymbol('proto.game.VendorActionRequest', null, global);
|
118
119
|
goog.exportSymbol('proto.game.VendorActionResponse', null, global);
|
@@ -248,6 +249,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
248
249
|
*/
|
249
250
|
proto.game.CashBackSearchRequest.displayName = 'proto.game.CashBackSearchRequest';
|
250
251
|
}
|
252
|
+
/**
|
253
|
+
* Generated by JsPbCodeGenerator.
|
254
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
255
|
+
* server response, or constructed directly in Javascript. The array is used
|
256
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
257
|
+
* If no data is provided, the constructed object will be empty, but still
|
258
|
+
* valid.
|
259
|
+
* @extends {jspb.Message}
|
260
|
+
* @constructor
|
261
|
+
*/
|
262
|
+
proto.game.TournamentSearchRequest = function(opt_data) {
|
263
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
264
|
+
};
|
265
|
+
goog.inherits(proto.game.TournamentSearchRequest, jspb.Message);
|
266
|
+
if (goog.DEBUG && !COMPILED) {
|
267
|
+
/**
|
268
|
+
* @public
|
269
|
+
* @override
|
270
|
+
*/
|
271
|
+
proto.game.TournamentSearchRequest.displayName = 'proto.game.TournamentSearchRequest';
|
272
|
+
}
|
251
273
|
/**
|
252
274
|
* Generated by JsPbCodeGenerator.
|
253
275
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -2435,7 +2457,8 @@ proto.game.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
2435
2457
|
adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
2436
2458
|
gameSearchParams: (f = msg.getGameSearchParams()) && proto.game.GameSearchRequest.toObject(includeInstance, f),
|
2437
2459
|
wagerSearchParams: (f = msg.getWagerSearchParams()) && proto.game.WagerSearchRequest.toObject(includeInstance, f),
|
2438
|
-
cashBackSearchParams: (f = msg.getCashBackSearchParams()) && proto.game.CashBackSearchRequest.toObject(includeInstance, f)
|
2460
|
+
cashBackSearchParams: (f = msg.getCashBackSearchParams()) && proto.game.CashBackSearchRequest.toObject(includeInstance, f),
|
2461
|
+
tournamentSearchParams: (f = msg.getTournamentSearchParams()) && proto.game.TournamentSearchRequest.toObject(includeInstance, f)
|
2439
2462
|
};
|
2440
2463
|
|
2441
2464
|
if (includeInstance) {
|
@@ -2499,6 +2522,11 @@ proto.game.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
2499
2522
|
reader.readMessage(value,proto.game.CashBackSearchRequest.deserializeBinaryFromReader);
|
2500
2523
|
msg.setCashBackSearchParams(value);
|
2501
2524
|
break;
|
2525
|
+
case 7:
|
2526
|
+
var value = new proto.game.TournamentSearchRequest;
|
2527
|
+
reader.readMessage(value,proto.game.TournamentSearchRequest.deserializeBinaryFromReader);
|
2528
|
+
msg.setTournamentSearchParams(value);
|
2529
|
+
break;
|
2502
2530
|
default:
|
2503
2531
|
reader.skipField();
|
2504
2532
|
break;
|
@@ -2573,6 +2601,14 @@ proto.game.PaginationRequest.serializeBinaryToWriter = function(message, writer)
|
|
2573
2601
|
proto.game.CashBackSearchRequest.serializeBinaryToWriter
|
2574
2602
|
);
|
2575
2603
|
}
|
2604
|
+
f = message.getTournamentSearchParams();
|
2605
|
+
if (f != null) {
|
2606
|
+
writer.writeMessage(
|
2607
|
+
7,
|
2608
|
+
f,
|
2609
|
+
proto.game.TournamentSearchRequest.serializeBinaryToWriter
|
2610
|
+
);
|
2611
|
+
}
|
2576
2612
|
};
|
2577
2613
|
|
2578
2614
|
|
@@ -2759,6 +2795,43 @@ proto.game.PaginationRequest.prototype.hasCashBackSearchParams = function() {
|
|
2759
2795
|
};
|
2760
2796
|
|
2761
2797
|
|
2798
|
+
/**
|
2799
|
+
* optional TournamentSearchRequest tournament_search_params = 7;
|
2800
|
+
* @return {?proto.game.TournamentSearchRequest}
|
2801
|
+
*/
|
2802
|
+
proto.game.PaginationRequest.prototype.getTournamentSearchParams = function() {
|
2803
|
+
return /** @type{?proto.game.TournamentSearchRequest} */ (
|
2804
|
+
jspb.Message.getWrapperField(this, proto.game.TournamentSearchRequest, 7));
|
2805
|
+
};
|
2806
|
+
|
2807
|
+
|
2808
|
+
/**
|
2809
|
+
* @param {?proto.game.TournamentSearchRequest|undefined} value
|
2810
|
+
* @return {!proto.game.PaginationRequest} returns this
|
2811
|
+
*/
|
2812
|
+
proto.game.PaginationRequest.prototype.setTournamentSearchParams = function(value) {
|
2813
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
2814
|
+
};
|
2815
|
+
|
2816
|
+
|
2817
|
+
/**
|
2818
|
+
* Clears the message field making it undefined.
|
2819
|
+
* @return {!proto.game.PaginationRequest} returns this
|
2820
|
+
*/
|
2821
|
+
proto.game.PaginationRequest.prototype.clearTournamentSearchParams = function() {
|
2822
|
+
return this.setTournamentSearchParams(undefined);
|
2823
|
+
};
|
2824
|
+
|
2825
|
+
|
2826
|
+
/**
|
2827
|
+
* Returns whether this field is set.
|
2828
|
+
* @return {boolean}
|
2829
|
+
*/
|
2830
|
+
proto.game.PaginationRequest.prototype.hasTournamentSearchParams = function() {
|
2831
|
+
return jspb.Message.getField(this, 7) != null;
|
2832
|
+
};
|
2833
|
+
|
2834
|
+
|
2762
2835
|
|
2763
2836
|
/**
|
2764
2837
|
* List of repeated fields within this message type.
|
@@ -4014,6 +4087,202 @@ proto.game.CashBackSearchRequest.prototype.clearCashbackIdsList = function() {
|
|
4014
4087
|
|
4015
4088
|
|
4016
4089
|
|
4090
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4091
|
+
/**
|
4092
|
+
* Creates an object representation of this proto.
|
4093
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
4094
|
+
* Optional fields that are not set will be set to undefined.
|
4095
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
4096
|
+
* For the list of reserved names please see:
|
4097
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
4098
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
4099
|
+
* JSPB instance for transitional soy proto support:
|
4100
|
+
* http://goto/soy-param-migration
|
4101
|
+
* @return {!Object}
|
4102
|
+
*/
|
4103
|
+
proto.game.TournamentSearchRequest.prototype.toObject = function(opt_includeInstance) {
|
4104
|
+
return proto.game.TournamentSearchRequest.toObject(opt_includeInstance, this);
|
4105
|
+
};
|
4106
|
+
|
4107
|
+
|
4108
|
+
/**
|
4109
|
+
* Static version of the {@see toObject} method.
|
4110
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
4111
|
+
* the JSPB instance for transitional soy proto support:
|
4112
|
+
* http://goto/soy-param-migration
|
4113
|
+
* @param {!proto.game.TournamentSearchRequest} msg The msg instance to transform.
|
4114
|
+
* @return {!Object}
|
4115
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4116
|
+
*/
|
4117
|
+
proto.game.TournamentSearchRequest.toObject = function(includeInstance, msg) {
|
4118
|
+
var f, obj = {
|
4119
|
+
tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
4120
|
+
gameTitle: jspb.Message.getFieldWithDefault(msg, 2, "")
|
4121
|
+
};
|
4122
|
+
|
4123
|
+
if (includeInstance) {
|
4124
|
+
obj.$jspbMessageInstance = msg;
|
4125
|
+
}
|
4126
|
+
return obj;
|
4127
|
+
};
|
4128
|
+
}
|
4129
|
+
|
4130
|
+
|
4131
|
+
/**
|
4132
|
+
* Deserializes binary data (in protobuf wire format).
|
4133
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
4134
|
+
* @return {!proto.game.TournamentSearchRequest}
|
4135
|
+
*/
|
4136
|
+
proto.game.TournamentSearchRequest.deserializeBinary = function(bytes) {
|
4137
|
+
var reader = new jspb.BinaryReader(bytes);
|
4138
|
+
var msg = new proto.game.TournamentSearchRequest;
|
4139
|
+
return proto.game.TournamentSearchRequest.deserializeBinaryFromReader(msg, reader);
|
4140
|
+
};
|
4141
|
+
|
4142
|
+
|
4143
|
+
/**
|
4144
|
+
* Deserializes binary data (in protobuf wire format) from the
|
4145
|
+
* given reader into the given message object.
|
4146
|
+
* @param {!proto.game.TournamentSearchRequest} msg The message object to deserialize into.
|
4147
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
4148
|
+
* @return {!proto.game.TournamentSearchRequest}
|
4149
|
+
*/
|
4150
|
+
proto.game.TournamentSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
4151
|
+
while (reader.nextField()) {
|
4152
|
+
if (reader.isEndGroup()) {
|
4153
|
+
break;
|
4154
|
+
}
|
4155
|
+
var field = reader.getFieldNumber();
|
4156
|
+
switch (field) {
|
4157
|
+
case 1:
|
4158
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4159
|
+
msg.setTournamentId(value);
|
4160
|
+
break;
|
4161
|
+
case 2:
|
4162
|
+
var value = /** @type {string} */ (reader.readString());
|
4163
|
+
msg.setGameTitle(value);
|
4164
|
+
break;
|
4165
|
+
default:
|
4166
|
+
reader.skipField();
|
4167
|
+
break;
|
4168
|
+
}
|
4169
|
+
}
|
4170
|
+
return msg;
|
4171
|
+
};
|
4172
|
+
|
4173
|
+
|
4174
|
+
/**
|
4175
|
+
* Serializes the message to binary data (in protobuf wire format).
|
4176
|
+
* @return {!Uint8Array}
|
4177
|
+
*/
|
4178
|
+
proto.game.TournamentSearchRequest.prototype.serializeBinary = function() {
|
4179
|
+
var writer = new jspb.BinaryWriter();
|
4180
|
+
proto.game.TournamentSearchRequest.serializeBinaryToWriter(this, writer);
|
4181
|
+
return writer.getResultBuffer();
|
4182
|
+
};
|
4183
|
+
|
4184
|
+
|
4185
|
+
/**
|
4186
|
+
* Serializes the given message to binary data (in protobuf wire
|
4187
|
+
* format), writing to the given BinaryWriter.
|
4188
|
+
* @param {!proto.game.TournamentSearchRequest} message
|
4189
|
+
* @param {!jspb.BinaryWriter} writer
|
4190
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4191
|
+
*/
|
4192
|
+
proto.game.TournamentSearchRequest.serializeBinaryToWriter = function(message, writer) {
|
4193
|
+
var f = undefined;
|
4194
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
4195
|
+
if (f != null) {
|
4196
|
+
writer.writeInt32(
|
4197
|
+
1,
|
4198
|
+
f
|
4199
|
+
);
|
4200
|
+
}
|
4201
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
4202
|
+
if (f != null) {
|
4203
|
+
writer.writeString(
|
4204
|
+
2,
|
4205
|
+
f
|
4206
|
+
);
|
4207
|
+
}
|
4208
|
+
};
|
4209
|
+
|
4210
|
+
|
4211
|
+
/**
|
4212
|
+
* optional int32 tournament_id = 1;
|
4213
|
+
* @return {number}
|
4214
|
+
*/
|
4215
|
+
proto.game.TournamentSearchRequest.prototype.getTournamentId = function() {
|
4216
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
4217
|
+
};
|
4218
|
+
|
4219
|
+
|
4220
|
+
/**
|
4221
|
+
* @param {number} value
|
4222
|
+
* @return {!proto.game.TournamentSearchRequest} returns this
|
4223
|
+
*/
|
4224
|
+
proto.game.TournamentSearchRequest.prototype.setTournamentId = function(value) {
|
4225
|
+
return jspb.Message.setField(this, 1, value);
|
4226
|
+
};
|
4227
|
+
|
4228
|
+
|
4229
|
+
/**
|
4230
|
+
* Clears the field making it undefined.
|
4231
|
+
* @return {!proto.game.TournamentSearchRequest} returns this
|
4232
|
+
*/
|
4233
|
+
proto.game.TournamentSearchRequest.prototype.clearTournamentId = function() {
|
4234
|
+
return jspb.Message.setField(this, 1, undefined);
|
4235
|
+
};
|
4236
|
+
|
4237
|
+
|
4238
|
+
/**
|
4239
|
+
* Returns whether this field is set.
|
4240
|
+
* @return {boolean}
|
4241
|
+
*/
|
4242
|
+
proto.game.TournamentSearchRequest.prototype.hasTournamentId = function() {
|
4243
|
+
return jspb.Message.getField(this, 1) != null;
|
4244
|
+
};
|
4245
|
+
|
4246
|
+
|
4247
|
+
/**
|
4248
|
+
* optional string game_title = 2;
|
4249
|
+
* @return {string}
|
4250
|
+
*/
|
4251
|
+
proto.game.TournamentSearchRequest.prototype.getGameTitle = function() {
|
4252
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
4253
|
+
};
|
4254
|
+
|
4255
|
+
|
4256
|
+
/**
|
4257
|
+
* @param {string} value
|
4258
|
+
* @return {!proto.game.TournamentSearchRequest} returns this
|
4259
|
+
*/
|
4260
|
+
proto.game.TournamentSearchRequest.prototype.setGameTitle = function(value) {
|
4261
|
+
return jspb.Message.setField(this, 2, value);
|
4262
|
+
};
|
4263
|
+
|
4264
|
+
|
4265
|
+
/**
|
4266
|
+
* Clears the field making it undefined.
|
4267
|
+
* @return {!proto.game.TournamentSearchRequest} returns this
|
4268
|
+
*/
|
4269
|
+
proto.game.TournamentSearchRequest.prototype.clearGameTitle = function() {
|
4270
|
+
return jspb.Message.setField(this, 2, undefined);
|
4271
|
+
};
|
4272
|
+
|
4273
|
+
|
4274
|
+
/**
|
4275
|
+
* Returns whether this field is set.
|
4276
|
+
* @return {boolean}
|
4277
|
+
*/
|
4278
|
+
proto.game.TournamentSearchRequest.prototype.hasGameTitle = function() {
|
4279
|
+
return jspb.Message.getField(this, 2) != null;
|
4280
|
+
};
|
4281
|
+
|
4282
|
+
|
4283
|
+
|
4284
|
+
|
4285
|
+
|
4017
4286
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4018
4287
|
/**
|
4019
4288
|
* Creates an object representation of this proto.
|