protobuf-platform 1.0.151 → 1.0.153
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 +11 -1
- package/game/game_grpc_pb.js +22 -0
- package/game/game_pb.js +204 -1
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -68,11 +68,18 @@ service Game {
|
|
68
68
|
rpc getArrayWagerList(PaginationRequest) returns (WagerListItemsResponse);
|
69
69
|
rpc addGamesIntoWagerList(WagerListGamesRequest) returns (GameStatusResponse);
|
70
70
|
rpc removeGamesFromWagerList(WagerListGamesRequest) returns (GameStatusResponse);
|
71
|
+
rpc fetchGamesFromWagerList(PaginationRequest) returns (GameItemsResponse);
|
72
|
+
rpc notProcessedGamesInWagerList(PaginationRequest) returns (GameItemsResponse);
|
71
73
|
}
|
72
74
|
|
73
75
|
message PingRequest { string ping = 1; }
|
74
76
|
message PongResponse { string pong = 1; }
|
75
|
-
message PaginationRequest {
|
77
|
+
message PaginationRequest {
|
78
|
+
int32 limit = 1;
|
79
|
+
int32 offset = 2;
|
80
|
+
optional GameSearchRequest game_search_params = 3;
|
81
|
+
optional WagerSearchRequest wager_search_params = 4;
|
82
|
+
}
|
76
83
|
message GameSearchRequest {
|
77
84
|
optional bool is_active = 1;
|
78
85
|
optional bool is_deactivated = 2;
|
@@ -87,6 +94,9 @@ message GameSearchRequest {
|
|
87
94
|
optional string user_geo = 11;
|
88
95
|
optional bool admin_side = 12;
|
89
96
|
}
|
97
|
+
message WagerSearchRequest {
|
98
|
+
int32 wager_id = 1;
|
99
|
+
}
|
90
100
|
//Media
|
91
101
|
message File { bytes media = 1; }
|
92
102
|
message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
package/game/game_grpc_pb.js
CHANGED
@@ -1313,6 +1313,28 @@ readSingleWagerList: {
|
|
1313
1313
|
responseSerialize: serialize_game_GameStatusResponse,
|
1314
1314
|
responseDeserialize: deserialize_game_GameStatusResponse,
|
1315
1315
|
},
|
1316
|
+
fetchGamesFromWagerList: {
|
1317
|
+
path: '/game.Game/fetchGamesFromWagerList',
|
1318
|
+
requestStream: false,
|
1319
|
+
responseStream: false,
|
1320
|
+
requestType: game_pb.PaginationRequest,
|
1321
|
+
responseType: game_pb.GameItemsResponse,
|
1322
|
+
requestSerialize: serialize_game_PaginationRequest,
|
1323
|
+
requestDeserialize: deserialize_game_PaginationRequest,
|
1324
|
+
responseSerialize: serialize_game_GameItemsResponse,
|
1325
|
+
responseDeserialize: deserialize_game_GameItemsResponse,
|
1326
|
+
},
|
1327
|
+
notProcessedGamesInWagerList: {
|
1328
|
+
path: '/game.Game/notProcessedGamesInWagerList',
|
1329
|
+
requestStream: false,
|
1330
|
+
responseStream: false,
|
1331
|
+
requestType: game_pb.PaginationRequest,
|
1332
|
+
responseType: game_pb.GameItemsResponse,
|
1333
|
+
requestSerialize: serialize_game_PaginationRequest,
|
1334
|
+
requestDeserialize: deserialize_game_PaginationRequest,
|
1335
|
+
responseSerialize: serialize_game_GameItemsResponse,
|
1336
|
+
responseDeserialize: deserialize_game_GameItemsResponse,
|
1337
|
+
},
|
1316
1338
|
};
|
1317
1339
|
|
1318
1340
|
exports.GameClient = grpc.makeGenericClientConstructor(GameService);
|
package/game/game_pb.js
CHANGED
@@ -101,6 +101,7 @@ goog.exportSymbol('proto.game.WagerListItem', null, global);
|
|
101
101
|
goog.exportSymbol('proto.game.WagerListItemsResponse', null, global);
|
102
102
|
goog.exportSymbol('proto.game.WagerListRequest', null, global);
|
103
103
|
goog.exportSymbol('proto.game.WagerListResponse', null, global);
|
104
|
+
goog.exportSymbol('proto.game.WagerSearchRequest', null, global);
|
104
105
|
/**
|
105
106
|
* Generated by JsPbCodeGenerator.
|
106
107
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -185,6 +186,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
185
186
|
*/
|
186
187
|
proto.game.GameSearchRequest.displayName = 'proto.game.GameSearchRequest';
|
187
188
|
}
|
189
|
+
/**
|
190
|
+
* Generated by JsPbCodeGenerator.
|
191
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
192
|
+
* server response, or constructed directly in Javascript. The array is used
|
193
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
194
|
+
* If no data is provided, the constructed object will be empty, but still
|
195
|
+
* valid.
|
196
|
+
* @extends {jspb.Message}
|
197
|
+
* @constructor
|
198
|
+
*/
|
199
|
+
proto.game.WagerSearchRequest = function(opt_data) {
|
200
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
201
|
+
};
|
202
|
+
goog.inherits(proto.game.WagerSearchRequest, jspb.Message);
|
203
|
+
if (goog.DEBUG && !COMPILED) {
|
204
|
+
/**
|
205
|
+
* @public
|
206
|
+
* @override
|
207
|
+
*/
|
208
|
+
proto.game.WagerSearchRequest.displayName = 'proto.game.WagerSearchRequest';
|
209
|
+
}
|
188
210
|
/**
|
189
211
|
* Generated by JsPbCodeGenerator.
|
190
212
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -1970,7 +1992,8 @@ proto.game.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
1970
1992
|
var f, obj = {
|
1971
1993
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1972
1994
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1973
|
-
gameSearchParams: (f = msg.getGameSearchParams()) && proto.game.GameSearchRequest.toObject(includeInstance, f)
|
1995
|
+
gameSearchParams: (f = msg.getGameSearchParams()) && proto.game.GameSearchRequest.toObject(includeInstance, f),
|
1996
|
+
wagerSearchParams: (f = msg.getWagerSearchParams()) && proto.game.WagerSearchRequest.toObject(includeInstance, f)
|
1974
1997
|
};
|
1975
1998
|
|
1976
1999
|
if (includeInstance) {
|
@@ -2020,6 +2043,11 @@ proto.game.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
2020
2043
|
reader.readMessage(value,proto.game.GameSearchRequest.deserializeBinaryFromReader);
|
2021
2044
|
msg.setGameSearchParams(value);
|
2022
2045
|
break;
|
2046
|
+
case 4:
|
2047
|
+
var value = new proto.game.WagerSearchRequest;
|
2048
|
+
reader.readMessage(value,proto.game.WagerSearchRequest.deserializeBinaryFromReader);
|
2049
|
+
msg.setWagerSearchParams(value);
|
2050
|
+
break;
|
2023
2051
|
default:
|
2024
2052
|
reader.skipField();
|
2025
2053
|
break;
|
@@ -2071,6 +2099,14 @@ proto.game.PaginationRequest.serializeBinaryToWriter = function(message, writer)
|
|
2071
2099
|
proto.game.GameSearchRequest.serializeBinaryToWriter
|
2072
2100
|
);
|
2073
2101
|
}
|
2102
|
+
f = message.getWagerSearchParams();
|
2103
|
+
if (f != null) {
|
2104
|
+
writer.writeMessage(
|
2105
|
+
4,
|
2106
|
+
f,
|
2107
|
+
proto.game.WagerSearchRequest.serializeBinaryToWriter
|
2108
|
+
);
|
2109
|
+
}
|
2074
2110
|
};
|
2075
2111
|
|
2076
2112
|
|
@@ -2147,6 +2183,43 @@ proto.game.PaginationRequest.prototype.hasGameSearchParams = function() {
|
|
2147
2183
|
};
|
2148
2184
|
|
2149
2185
|
|
2186
|
+
/**
|
2187
|
+
* optional WagerSearchRequest wager_search_params = 4;
|
2188
|
+
* @return {?proto.game.WagerSearchRequest}
|
2189
|
+
*/
|
2190
|
+
proto.game.PaginationRequest.prototype.getWagerSearchParams = function() {
|
2191
|
+
return /** @type{?proto.game.WagerSearchRequest} */ (
|
2192
|
+
jspb.Message.getWrapperField(this, proto.game.WagerSearchRequest, 4));
|
2193
|
+
};
|
2194
|
+
|
2195
|
+
|
2196
|
+
/**
|
2197
|
+
* @param {?proto.game.WagerSearchRequest|undefined} value
|
2198
|
+
* @return {!proto.game.PaginationRequest} returns this
|
2199
|
+
*/
|
2200
|
+
proto.game.PaginationRequest.prototype.setWagerSearchParams = function(value) {
|
2201
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
2202
|
+
};
|
2203
|
+
|
2204
|
+
|
2205
|
+
/**
|
2206
|
+
* Clears the message field making it undefined.
|
2207
|
+
* @return {!proto.game.PaginationRequest} returns this
|
2208
|
+
*/
|
2209
|
+
proto.game.PaginationRequest.prototype.clearWagerSearchParams = function() {
|
2210
|
+
return this.setWagerSearchParams(undefined);
|
2211
|
+
};
|
2212
|
+
|
2213
|
+
|
2214
|
+
/**
|
2215
|
+
* Returns whether this field is set.
|
2216
|
+
* @return {boolean}
|
2217
|
+
*/
|
2218
|
+
proto.game.PaginationRequest.prototype.hasWagerSearchParams = function() {
|
2219
|
+
return jspb.Message.getField(this, 4) != null;
|
2220
|
+
};
|
2221
|
+
|
2222
|
+
|
2150
2223
|
|
2151
2224
|
/**
|
2152
2225
|
* List of repeated fields within this message type.
|
@@ -2846,6 +2919,136 @@ proto.game.GameSearchRequest.prototype.hasAdminSide = function() {
|
|
2846
2919
|
|
2847
2920
|
|
2848
2921
|
|
2922
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2923
|
+
/**
|
2924
|
+
* Creates an object representation of this proto.
|
2925
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2926
|
+
* Optional fields that are not set will be set to undefined.
|
2927
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2928
|
+
* For the list of reserved names please see:
|
2929
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2930
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2931
|
+
* JSPB instance for transitional soy proto support:
|
2932
|
+
* http://goto/soy-param-migration
|
2933
|
+
* @return {!Object}
|
2934
|
+
*/
|
2935
|
+
proto.game.WagerSearchRequest.prototype.toObject = function(opt_includeInstance) {
|
2936
|
+
return proto.game.WagerSearchRequest.toObject(opt_includeInstance, this);
|
2937
|
+
};
|
2938
|
+
|
2939
|
+
|
2940
|
+
/**
|
2941
|
+
* Static version of the {@see toObject} method.
|
2942
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2943
|
+
* the JSPB instance for transitional soy proto support:
|
2944
|
+
* http://goto/soy-param-migration
|
2945
|
+
* @param {!proto.game.WagerSearchRequest} msg The msg instance to transform.
|
2946
|
+
* @return {!Object}
|
2947
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2948
|
+
*/
|
2949
|
+
proto.game.WagerSearchRequest.toObject = function(includeInstance, msg) {
|
2950
|
+
var f, obj = {
|
2951
|
+
wagerId: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
2952
|
+
};
|
2953
|
+
|
2954
|
+
if (includeInstance) {
|
2955
|
+
obj.$jspbMessageInstance = msg;
|
2956
|
+
}
|
2957
|
+
return obj;
|
2958
|
+
};
|
2959
|
+
}
|
2960
|
+
|
2961
|
+
|
2962
|
+
/**
|
2963
|
+
* Deserializes binary data (in protobuf wire format).
|
2964
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2965
|
+
* @return {!proto.game.WagerSearchRequest}
|
2966
|
+
*/
|
2967
|
+
proto.game.WagerSearchRequest.deserializeBinary = function(bytes) {
|
2968
|
+
var reader = new jspb.BinaryReader(bytes);
|
2969
|
+
var msg = new proto.game.WagerSearchRequest;
|
2970
|
+
return proto.game.WagerSearchRequest.deserializeBinaryFromReader(msg, reader);
|
2971
|
+
};
|
2972
|
+
|
2973
|
+
|
2974
|
+
/**
|
2975
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2976
|
+
* given reader into the given message object.
|
2977
|
+
* @param {!proto.game.WagerSearchRequest} msg The message object to deserialize into.
|
2978
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2979
|
+
* @return {!proto.game.WagerSearchRequest}
|
2980
|
+
*/
|
2981
|
+
proto.game.WagerSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2982
|
+
while (reader.nextField()) {
|
2983
|
+
if (reader.isEndGroup()) {
|
2984
|
+
break;
|
2985
|
+
}
|
2986
|
+
var field = reader.getFieldNumber();
|
2987
|
+
switch (field) {
|
2988
|
+
case 1:
|
2989
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2990
|
+
msg.setWagerId(value);
|
2991
|
+
break;
|
2992
|
+
default:
|
2993
|
+
reader.skipField();
|
2994
|
+
break;
|
2995
|
+
}
|
2996
|
+
}
|
2997
|
+
return msg;
|
2998
|
+
};
|
2999
|
+
|
3000
|
+
|
3001
|
+
/**
|
3002
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3003
|
+
* @return {!Uint8Array}
|
3004
|
+
*/
|
3005
|
+
proto.game.WagerSearchRequest.prototype.serializeBinary = function() {
|
3006
|
+
var writer = new jspb.BinaryWriter();
|
3007
|
+
proto.game.WagerSearchRequest.serializeBinaryToWriter(this, writer);
|
3008
|
+
return writer.getResultBuffer();
|
3009
|
+
};
|
3010
|
+
|
3011
|
+
|
3012
|
+
/**
|
3013
|
+
* Serializes the given message to binary data (in protobuf wire
|
3014
|
+
* format), writing to the given BinaryWriter.
|
3015
|
+
* @param {!proto.game.WagerSearchRequest} message
|
3016
|
+
* @param {!jspb.BinaryWriter} writer
|
3017
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3018
|
+
*/
|
3019
|
+
proto.game.WagerSearchRequest.serializeBinaryToWriter = function(message, writer) {
|
3020
|
+
var f = undefined;
|
3021
|
+
f = message.getWagerId();
|
3022
|
+
if (f !== 0) {
|
3023
|
+
writer.writeInt32(
|
3024
|
+
1,
|
3025
|
+
f
|
3026
|
+
);
|
3027
|
+
}
|
3028
|
+
};
|
3029
|
+
|
3030
|
+
|
3031
|
+
/**
|
3032
|
+
* optional int32 wager_id = 1;
|
3033
|
+
* @return {number}
|
3034
|
+
*/
|
3035
|
+
proto.game.WagerSearchRequest.prototype.getWagerId = function() {
|
3036
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
3037
|
+
};
|
3038
|
+
|
3039
|
+
|
3040
|
+
/**
|
3041
|
+
* @param {number} value
|
3042
|
+
* @return {!proto.game.WagerSearchRequest} returns this
|
3043
|
+
*/
|
3044
|
+
proto.game.WagerSearchRequest.prototype.setWagerId = function(value) {
|
3045
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
3046
|
+
};
|
3047
|
+
|
3048
|
+
|
3049
|
+
|
3050
|
+
|
3051
|
+
|
2849
3052
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2850
3053
|
/**
|
2851
3054
|
* Creates an object representation of this proto.
|