protobuf-platform 1.0.150 → 1.0.152
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 +22 -1
- package/game/game_grpc_pb.js +33 -0
- package/game/game_pb.js +596 -1
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -52,6 +52,7 @@ service Game {
|
|
52
52
|
//Free Spins
|
53
53
|
rpc getFreeSpinsSettings(FreeSpinSettingsRequest) returns (FreeSpinSettingsResponse);
|
54
54
|
rpc setFreeSpins(FreeSpinCampaignRequest) returns (FreeSpinCampaignResponse);
|
55
|
+
rpc setFreeSpinsBonusCampaign(FreeSpinBonusCampaignRequest) returns (FreeSpinCampaignResponse);
|
55
56
|
rpc checkFreeSpins(FreeSpinStatusRequest) returns (FreeSpinCampaignResponse);
|
56
57
|
rpc cancelFreeSpins(FreeSpinStatusRequest) returns (FreeSpinCampaignResponse);
|
57
58
|
//Cross Services
|
@@ -67,11 +68,17 @@ service Game {
|
|
67
68
|
rpc getArrayWagerList(PaginationRequest) returns (WagerListItemsResponse);
|
68
69
|
rpc addGamesIntoWagerList(WagerListGamesRequest) returns (GameStatusResponse);
|
69
70
|
rpc removeGamesFromWagerList(WagerListGamesRequest) returns (GameStatusResponse);
|
71
|
+
rpc fetchGamesFromWagerList(PaginationRequest) returns (GameItemsResponse);
|
70
72
|
}
|
71
73
|
|
72
74
|
message PingRequest { string ping = 1; }
|
73
75
|
message PongResponse { string pong = 1; }
|
74
|
-
message PaginationRequest {
|
76
|
+
message PaginationRequest {
|
77
|
+
int32 limit = 1;
|
78
|
+
int32 offset = 2;
|
79
|
+
optional GameSearchRequest game_search_params = 3;
|
80
|
+
optional WagerSearchRequest wager_search_params = 4;
|
81
|
+
}
|
75
82
|
message GameSearchRequest {
|
76
83
|
optional bool is_active = 1;
|
77
84
|
optional bool is_deactivated = 2;
|
@@ -86,6 +93,9 @@ message GameSearchRequest {
|
|
86
93
|
optional string user_geo = 11;
|
87
94
|
optional bool admin_side = 12;
|
88
95
|
}
|
96
|
+
message WagerSearchRequest {
|
97
|
+
int32 wager_id = 1;
|
98
|
+
}
|
89
99
|
//Media
|
90
100
|
message File { bytes media = 1; }
|
91
101
|
message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
@@ -440,6 +450,17 @@ message FreeSpinCampaignRequest {
|
|
440
450
|
optional int32 total_bet_id = 12;
|
441
451
|
optional float spin_amount = 13;
|
442
452
|
}
|
453
|
+
message FreeSpinBonusCampaignRequest {
|
454
|
+
int32 game_id = 1;
|
455
|
+
string currency = 2;
|
456
|
+
string player_id = 3;
|
457
|
+
string player_name = 4;
|
458
|
+
int32 valid_from = 5;
|
459
|
+
int32 valid_until = 6;
|
460
|
+
int32 quantity = 7;
|
461
|
+
string freespin_id = 8;
|
462
|
+
float spin_amount = 9;
|
463
|
+
}
|
443
464
|
message FreeSpinStatusRequest {
|
444
465
|
string free_spin_id = 1;
|
445
466
|
}
|
package/game/game_grpc_pb.js
CHANGED
@@ -114,6 +114,17 @@ function deserialize_game_File(buffer_arg) {
|
|
114
114
|
return game_pb.File.deserializeBinary(new Uint8Array(buffer_arg));
|
115
115
|
}
|
116
116
|
|
117
|
+
function serialize_game_FreeSpinBonusCampaignRequest(arg) {
|
118
|
+
if (!(arg instanceof game_pb.FreeSpinBonusCampaignRequest)) {
|
119
|
+
throw new Error('Expected argument of type game.FreeSpinBonusCampaignRequest');
|
120
|
+
}
|
121
|
+
return Buffer.from(arg.serializeBinary());
|
122
|
+
}
|
123
|
+
|
124
|
+
function deserialize_game_FreeSpinBonusCampaignRequest(buffer_arg) {
|
125
|
+
return game_pb.FreeSpinBonusCampaignRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
126
|
+
}
|
127
|
+
|
117
128
|
function serialize_game_FreeSpinCampaignRequest(arg) {
|
118
129
|
if (!(arg instanceof game_pb.FreeSpinCampaignRequest)) {
|
119
130
|
throw new Error('Expected argument of type game.FreeSpinCampaignRequest');
|
@@ -1146,6 +1157,17 @@ getFreeSpinsSettings: {
|
|
1146
1157
|
responseSerialize: serialize_game_FreeSpinCampaignResponse,
|
1147
1158
|
responseDeserialize: deserialize_game_FreeSpinCampaignResponse,
|
1148
1159
|
},
|
1160
|
+
setFreeSpinsBonusCampaign: {
|
1161
|
+
path: '/game.Game/setFreeSpinsBonusCampaign',
|
1162
|
+
requestStream: false,
|
1163
|
+
responseStream: false,
|
1164
|
+
requestType: game_pb.FreeSpinBonusCampaignRequest,
|
1165
|
+
responseType: game_pb.FreeSpinCampaignResponse,
|
1166
|
+
requestSerialize: serialize_game_FreeSpinBonusCampaignRequest,
|
1167
|
+
requestDeserialize: deserialize_game_FreeSpinBonusCampaignRequest,
|
1168
|
+
responseSerialize: serialize_game_FreeSpinCampaignResponse,
|
1169
|
+
responseDeserialize: deserialize_game_FreeSpinCampaignResponse,
|
1170
|
+
},
|
1149
1171
|
checkFreeSpins: {
|
1150
1172
|
path: '/game.Game/checkFreeSpins',
|
1151
1173
|
requestStream: false,
|
@@ -1291,6 +1313,17 @@ readSingleWagerList: {
|
|
1291
1313
|
responseSerialize: serialize_game_GameStatusResponse,
|
1292
1314
|
responseDeserialize: deserialize_game_GameStatusResponse,
|
1293
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
|
+
},
|
1294
1327
|
};
|
1295
1328
|
|
1296
1329
|
exports.GameClient = grpc.makeGenericClientConstructor(GameService);
|
package/game/game_pb.js
CHANGED
@@ -37,6 +37,7 @@ goog.exportSymbol('proto.game.CollectionRequest.RequestCase', null, global);
|
|
37
37
|
goog.exportSymbol('proto.game.CollectionResponse', null, global);
|
38
38
|
goog.exportSymbol('proto.game.CollectionStatusResponse', null, global);
|
39
39
|
goog.exportSymbol('proto.game.File', null, global);
|
40
|
+
goog.exportSymbol('proto.game.FreeSpinBonusCampaignRequest', null, global);
|
40
41
|
goog.exportSymbol('proto.game.FreeSpinCampaignRequest', null, global);
|
41
42
|
goog.exportSymbol('proto.game.FreeSpinCampaignResponse', null, global);
|
42
43
|
goog.exportSymbol('proto.game.FreeSpinSettingsRequest', null, global);
|
@@ -100,6 +101,7 @@ goog.exportSymbol('proto.game.WagerListItem', null, global);
|
|
100
101
|
goog.exportSymbol('proto.game.WagerListItemsResponse', null, global);
|
101
102
|
goog.exportSymbol('proto.game.WagerListRequest', null, global);
|
102
103
|
goog.exportSymbol('proto.game.WagerListResponse', null, global);
|
104
|
+
goog.exportSymbol('proto.game.WagerSearchRequest', null, global);
|
103
105
|
/**
|
104
106
|
* Generated by JsPbCodeGenerator.
|
105
107
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -184,6 +186,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
184
186
|
*/
|
185
187
|
proto.game.GameSearchRequest.displayName = 'proto.game.GameSearchRequest';
|
186
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
|
+
}
|
187
210
|
/**
|
188
211
|
* Generated by JsPbCodeGenerator.
|
189
212
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -1486,6 +1509,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
1486
1509
|
*/
|
1487
1510
|
proto.game.FreeSpinCampaignRequest.displayName = 'proto.game.FreeSpinCampaignRequest';
|
1488
1511
|
}
|
1512
|
+
/**
|
1513
|
+
* Generated by JsPbCodeGenerator.
|
1514
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1515
|
+
* server response, or constructed directly in Javascript. The array is used
|
1516
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1517
|
+
* If no data is provided, the constructed object will be empty, but still
|
1518
|
+
* valid.
|
1519
|
+
* @extends {jspb.Message}
|
1520
|
+
* @constructor
|
1521
|
+
*/
|
1522
|
+
proto.game.FreeSpinBonusCampaignRequest = function(opt_data) {
|
1523
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1524
|
+
};
|
1525
|
+
goog.inherits(proto.game.FreeSpinBonusCampaignRequest, jspb.Message);
|
1526
|
+
if (goog.DEBUG && !COMPILED) {
|
1527
|
+
/**
|
1528
|
+
* @public
|
1529
|
+
* @override
|
1530
|
+
*/
|
1531
|
+
proto.game.FreeSpinBonusCampaignRequest.displayName = 'proto.game.FreeSpinBonusCampaignRequest';
|
1532
|
+
}
|
1489
1533
|
/**
|
1490
1534
|
* Generated by JsPbCodeGenerator.
|
1491
1535
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -1948,7 +1992,8 @@ proto.game.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
1948
1992
|
var f, obj = {
|
1949
1993
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1950
1994
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1951
|
-
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)
|
1952
1997
|
};
|
1953
1998
|
|
1954
1999
|
if (includeInstance) {
|
@@ -1998,6 +2043,11 @@ proto.game.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
1998
2043
|
reader.readMessage(value,proto.game.GameSearchRequest.deserializeBinaryFromReader);
|
1999
2044
|
msg.setGameSearchParams(value);
|
2000
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;
|
2001
2051
|
default:
|
2002
2052
|
reader.skipField();
|
2003
2053
|
break;
|
@@ -2049,6 +2099,14 @@ proto.game.PaginationRequest.serializeBinaryToWriter = function(message, writer)
|
|
2049
2099
|
proto.game.GameSearchRequest.serializeBinaryToWriter
|
2050
2100
|
);
|
2051
2101
|
}
|
2102
|
+
f = message.getWagerSearchParams();
|
2103
|
+
if (f != null) {
|
2104
|
+
writer.writeMessage(
|
2105
|
+
4,
|
2106
|
+
f,
|
2107
|
+
proto.game.WagerSearchRequest.serializeBinaryToWriter
|
2108
|
+
);
|
2109
|
+
}
|
2052
2110
|
};
|
2053
2111
|
|
2054
2112
|
|
@@ -2125,6 +2183,43 @@ proto.game.PaginationRequest.prototype.hasGameSearchParams = function() {
|
|
2125
2183
|
};
|
2126
2184
|
|
2127
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
|
+
|
2128
2223
|
|
2129
2224
|
/**
|
2130
2225
|
* List of repeated fields within this message type.
|
@@ -2824,6 +2919,136 @@ proto.game.GameSearchRequest.prototype.hasAdminSide = function() {
|
|
2824
2919
|
|
2825
2920
|
|
2826
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
|
+
|
2827
3052
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2828
3053
|
/**
|
2829
3054
|
* Creates an object representation of this proto.
|
@@ -18458,6 +18683,376 @@ proto.game.FreeSpinCampaignRequest.prototype.hasSpinAmount = function() {
|
|
18458
18683
|
|
18459
18684
|
|
18460
18685
|
|
18686
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
18687
|
+
/**
|
18688
|
+
* Creates an object representation of this proto.
|
18689
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
18690
|
+
* Optional fields that are not set will be set to undefined.
|
18691
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
18692
|
+
* For the list of reserved names please see:
|
18693
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
18694
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
18695
|
+
* JSPB instance for transitional soy proto support:
|
18696
|
+
* http://goto/soy-param-migration
|
18697
|
+
* @return {!Object}
|
18698
|
+
*/
|
18699
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.toObject = function(opt_includeInstance) {
|
18700
|
+
return proto.game.FreeSpinBonusCampaignRequest.toObject(opt_includeInstance, this);
|
18701
|
+
};
|
18702
|
+
|
18703
|
+
|
18704
|
+
/**
|
18705
|
+
* Static version of the {@see toObject} method.
|
18706
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
18707
|
+
* the JSPB instance for transitional soy proto support:
|
18708
|
+
* http://goto/soy-param-migration
|
18709
|
+
* @param {!proto.game.FreeSpinBonusCampaignRequest} msg The msg instance to transform.
|
18710
|
+
* @return {!Object}
|
18711
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
18712
|
+
*/
|
18713
|
+
proto.game.FreeSpinBonusCampaignRequest.toObject = function(includeInstance, msg) {
|
18714
|
+
var f, obj = {
|
18715
|
+
gameId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
18716
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
18717
|
+
playerId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
18718
|
+
playerName: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
18719
|
+
validFrom: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
18720
|
+
validUntil: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
18721
|
+
quantity: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
18722
|
+
freespinId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
18723
|
+
spinAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0)
|
18724
|
+
};
|
18725
|
+
|
18726
|
+
if (includeInstance) {
|
18727
|
+
obj.$jspbMessageInstance = msg;
|
18728
|
+
}
|
18729
|
+
return obj;
|
18730
|
+
};
|
18731
|
+
}
|
18732
|
+
|
18733
|
+
|
18734
|
+
/**
|
18735
|
+
* Deserializes binary data (in protobuf wire format).
|
18736
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
18737
|
+
* @return {!proto.game.FreeSpinBonusCampaignRequest}
|
18738
|
+
*/
|
18739
|
+
proto.game.FreeSpinBonusCampaignRequest.deserializeBinary = function(bytes) {
|
18740
|
+
var reader = new jspb.BinaryReader(bytes);
|
18741
|
+
var msg = new proto.game.FreeSpinBonusCampaignRequest;
|
18742
|
+
return proto.game.FreeSpinBonusCampaignRequest.deserializeBinaryFromReader(msg, reader);
|
18743
|
+
};
|
18744
|
+
|
18745
|
+
|
18746
|
+
/**
|
18747
|
+
* Deserializes binary data (in protobuf wire format) from the
|
18748
|
+
* given reader into the given message object.
|
18749
|
+
* @param {!proto.game.FreeSpinBonusCampaignRequest} msg The message object to deserialize into.
|
18750
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
18751
|
+
* @return {!proto.game.FreeSpinBonusCampaignRequest}
|
18752
|
+
*/
|
18753
|
+
proto.game.FreeSpinBonusCampaignRequest.deserializeBinaryFromReader = function(msg, reader) {
|
18754
|
+
while (reader.nextField()) {
|
18755
|
+
if (reader.isEndGroup()) {
|
18756
|
+
break;
|
18757
|
+
}
|
18758
|
+
var field = reader.getFieldNumber();
|
18759
|
+
switch (field) {
|
18760
|
+
case 1:
|
18761
|
+
var value = /** @type {number} */ (reader.readInt32());
|
18762
|
+
msg.setGameId(value);
|
18763
|
+
break;
|
18764
|
+
case 2:
|
18765
|
+
var value = /** @type {string} */ (reader.readString());
|
18766
|
+
msg.setCurrency(value);
|
18767
|
+
break;
|
18768
|
+
case 3:
|
18769
|
+
var value = /** @type {string} */ (reader.readString());
|
18770
|
+
msg.setPlayerId(value);
|
18771
|
+
break;
|
18772
|
+
case 4:
|
18773
|
+
var value = /** @type {string} */ (reader.readString());
|
18774
|
+
msg.setPlayerName(value);
|
18775
|
+
break;
|
18776
|
+
case 5:
|
18777
|
+
var value = /** @type {number} */ (reader.readInt32());
|
18778
|
+
msg.setValidFrom(value);
|
18779
|
+
break;
|
18780
|
+
case 6:
|
18781
|
+
var value = /** @type {number} */ (reader.readInt32());
|
18782
|
+
msg.setValidUntil(value);
|
18783
|
+
break;
|
18784
|
+
case 7:
|
18785
|
+
var value = /** @type {number} */ (reader.readInt32());
|
18786
|
+
msg.setQuantity(value);
|
18787
|
+
break;
|
18788
|
+
case 8:
|
18789
|
+
var value = /** @type {string} */ (reader.readString());
|
18790
|
+
msg.setFreespinId(value);
|
18791
|
+
break;
|
18792
|
+
case 9:
|
18793
|
+
var value = /** @type {number} */ (reader.readFloat());
|
18794
|
+
msg.setSpinAmount(value);
|
18795
|
+
break;
|
18796
|
+
default:
|
18797
|
+
reader.skipField();
|
18798
|
+
break;
|
18799
|
+
}
|
18800
|
+
}
|
18801
|
+
return msg;
|
18802
|
+
};
|
18803
|
+
|
18804
|
+
|
18805
|
+
/**
|
18806
|
+
* Serializes the message to binary data (in protobuf wire format).
|
18807
|
+
* @return {!Uint8Array}
|
18808
|
+
*/
|
18809
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.serializeBinary = function() {
|
18810
|
+
var writer = new jspb.BinaryWriter();
|
18811
|
+
proto.game.FreeSpinBonusCampaignRequest.serializeBinaryToWriter(this, writer);
|
18812
|
+
return writer.getResultBuffer();
|
18813
|
+
};
|
18814
|
+
|
18815
|
+
|
18816
|
+
/**
|
18817
|
+
* Serializes the given message to binary data (in protobuf wire
|
18818
|
+
* format), writing to the given BinaryWriter.
|
18819
|
+
* @param {!proto.game.FreeSpinBonusCampaignRequest} message
|
18820
|
+
* @param {!jspb.BinaryWriter} writer
|
18821
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
18822
|
+
*/
|
18823
|
+
proto.game.FreeSpinBonusCampaignRequest.serializeBinaryToWriter = function(message, writer) {
|
18824
|
+
var f = undefined;
|
18825
|
+
f = message.getGameId();
|
18826
|
+
if (f !== 0) {
|
18827
|
+
writer.writeInt32(
|
18828
|
+
1,
|
18829
|
+
f
|
18830
|
+
);
|
18831
|
+
}
|
18832
|
+
f = message.getCurrency();
|
18833
|
+
if (f.length > 0) {
|
18834
|
+
writer.writeString(
|
18835
|
+
2,
|
18836
|
+
f
|
18837
|
+
);
|
18838
|
+
}
|
18839
|
+
f = message.getPlayerId();
|
18840
|
+
if (f.length > 0) {
|
18841
|
+
writer.writeString(
|
18842
|
+
3,
|
18843
|
+
f
|
18844
|
+
);
|
18845
|
+
}
|
18846
|
+
f = message.getPlayerName();
|
18847
|
+
if (f.length > 0) {
|
18848
|
+
writer.writeString(
|
18849
|
+
4,
|
18850
|
+
f
|
18851
|
+
);
|
18852
|
+
}
|
18853
|
+
f = message.getValidFrom();
|
18854
|
+
if (f !== 0) {
|
18855
|
+
writer.writeInt32(
|
18856
|
+
5,
|
18857
|
+
f
|
18858
|
+
);
|
18859
|
+
}
|
18860
|
+
f = message.getValidUntil();
|
18861
|
+
if (f !== 0) {
|
18862
|
+
writer.writeInt32(
|
18863
|
+
6,
|
18864
|
+
f
|
18865
|
+
);
|
18866
|
+
}
|
18867
|
+
f = message.getQuantity();
|
18868
|
+
if (f !== 0) {
|
18869
|
+
writer.writeInt32(
|
18870
|
+
7,
|
18871
|
+
f
|
18872
|
+
);
|
18873
|
+
}
|
18874
|
+
f = message.getFreespinId();
|
18875
|
+
if (f.length > 0) {
|
18876
|
+
writer.writeString(
|
18877
|
+
8,
|
18878
|
+
f
|
18879
|
+
);
|
18880
|
+
}
|
18881
|
+
f = message.getSpinAmount();
|
18882
|
+
if (f !== 0.0) {
|
18883
|
+
writer.writeFloat(
|
18884
|
+
9,
|
18885
|
+
f
|
18886
|
+
);
|
18887
|
+
}
|
18888
|
+
};
|
18889
|
+
|
18890
|
+
|
18891
|
+
/**
|
18892
|
+
* optional int32 game_id = 1;
|
18893
|
+
* @return {number}
|
18894
|
+
*/
|
18895
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.getGameId = function() {
|
18896
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
18897
|
+
};
|
18898
|
+
|
18899
|
+
|
18900
|
+
/**
|
18901
|
+
* @param {number} value
|
18902
|
+
* @return {!proto.game.FreeSpinBonusCampaignRequest} returns this
|
18903
|
+
*/
|
18904
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.setGameId = function(value) {
|
18905
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
18906
|
+
};
|
18907
|
+
|
18908
|
+
|
18909
|
+
/**
|
18910
|
+
* optional string currency = 2;
|
18911
|
+
* @return {string}
|
18912
|
+
*/
|
18913
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.getCurrency = function() {
|
18914
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
18915
|
+
};
|
18916
|
+
|
18917
|
+
|
18918
|
+
/**
|
18919
|
+
* @param {string} value
|
18920
|
+
* @return {!proto.game.FreeSpinBonusCampaignRequest} returns this
|
18921
|
+
*/
|
18922
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.setCurrency = function(value) {
|
18923
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
18924
|
+
};
|
18925
|
+
|
18926
|
+
|
18927
|
+
/**
|
18928
|
+
* optional string player_id = 3;
|
18929
|
+
* @return {string}
|
18930
|
+
*/
|
18931
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.getPlayerId = function() {
|
18932
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
18933
|
+
};
|
18934
|
+
|
18935
|
+
|
18936
|
+
/**
|
18937
|
+
* @param {string} value
|
18938
|
+
* @return {!proto.game.FreeSpinBonusCampaignRequest} returns this
|
18939
|
+
*/
|
18940
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.setPlayerId = function(value) {
|
18941
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
18942
|
+
};
|
18943
|
+
|
18944
|
+
|
18945
|
+
/**
|
18946
|
+
* optional string player_name = 4;
|
18947
|
+
* @return {string}
|
18948
|
+
*/
|
18949
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.getPlayerName = function() {
|
18950
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
18951
|
+
};
|
18952
|
+
|
18953
|
+
|
18954
|
+
/**
|
18955
|
+
* @param {string} value
|
18956
|
+
* @return {!proto.game.FreeSpinBonusCampaignRequest} returns this
|
18957
|
+
*/
|
18958
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.setPlayerName = function(value) {
|
18959
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
18960
|
+
};
|
18961
|
+
|
18962
|
+
|
18963
|
+
/**
|
18964
|
+
* optional int32 valid_from = 5;
|
18965
|
+
* @return {number}
|
18966
|
+
*/
|
18967
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.getValidFrom = function() {
|
18968
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
18969
|
+
};
|
18970
|
+
|
18971
|
+
|
18972
|
+
/**
|
18973
|
+
* @param {number} value
|
18974
|
+
* @return {!proto.game.FreeSpinBonusCampaignRequest} returns this
|
18975
|
+
*/
|
18976
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.setValidFrom = function(value) {
|
18977
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
18978
|
+
};
|
18979
|
+
|
18980
|
+
|
18981
|
+
/**
|
18982
|
+
* optional int32 valid_until = 6;
|
18983
|
+
* @return {number}
|
18984
|
+
*/
|
18985
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.getValidUntil = function() {
|
18986
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
18987
|
+
};
|
18988
|
+
|
18989
|
+
|
18990
|
+
/**
|
18991
|
+
* @param {number} value
|
18992
|
+
* @return {!proto.game.FreeSpinBonusCampaignRequest} returns this
|
18993
|
+
*/
|
18994
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.setValidUntil = function(value) {
|
18995
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
18996
|
+
};
|
18997
|
+
|
18998
|
+
|
18999
|
+
/**
|
19000
|
+
* optional int32 quantity = 7;
|
19001
|
+
* @return {number}
|
19002
|
+
*/
|
19003
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.getQuantity = function() {
|
19004
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
19005
|
+
};
|
19006
|
+
|
19007
|
+
|
19008
|
+
/**
|
19009
|
+
* @param {number} value
|
19010
|
+
* @return {!proto.game.FreeSpinBonusCampaignRequest} returns this
|
19011
|
+
*/
|
19012
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.setQuantity = function(value) {
|
19013
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
19014
|
+
};
|
19015
|
+
|
19016
|
+
|
19017
|
+
/**
|
19018
|
+
* optional string freespin_id = 8;
|
19019
|
+
* @return {string}
|
19020
|
+
*/
|
19021
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.getFreespinId = function() {
|
19022
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
19023
|
+
};
|
19024
|
+
|
19025
|
+
|
19026
|
+
/**
|
19027
|
+
* @param {string} value
|
19028
|
+
* @return {!proto.game.FreeSpinBonusCampaignRequest} returns this
|
19029
|
+
*/
|
19030
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.setFreespinId = function(value) {
|
19031
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
19032
|
+
};
|
19033
|
+
|
19034
|
+
|
19035
|
+
/**
|
19036
|
+
* optional float spin_amount = 9;
|
19037
|
+
* @return {number}
|
19038
|
+
*/
|
19039
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.getSpinAmount = function() {
|
19040
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
|
19041
|
+
};
|
19042
|
+
|
19043
|
+
|
19044
|
+
/**
|
19045
|
+
* @param {number} value
|
19046
|
+
* @return {!proto.game.FreeSpinBonusCampaignRequest} returns this
|
19047
|
+
*/
|
19048
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.setSpinAmount = function(value) {
|
19049
|
+
return jspb.Message.setProto3FloatField(this, 9, value);
|
19050
|
+
};
|
19051
|
+
|
19052
|
+
|
19053
|
+
|
19054
|
+
|
19055
|
+
|
18461
19056
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
18462
19057
|
/**
|
18463
19058
|
* Creates an object representation of this proto.
|