protobuf-platform 1.0.118 → 1.0.119
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 +17 -0
- package/game/game_grpc_pb.js +33 -0
- package/game/game_pb.js +658 -0
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -51,6 +51,7 @@ service Game {
|
|
51
51
|
rpc vendorSelfValidation(IntegratorSelfValidationRequest) returns (IntegratorSelfValidationResponse);
|
52
52
|
//Free Spins
|
53
53
|
rpc getFreeSpinsSettings(FreeSpinSettingsRequest) returns (FreeSpinSettingsResponse);
|
54
|
+
rpc setFreeSpins(FreeSpinCampaignRequest) returns (FreeSpinCampaignResponse);
|
54
55
|
//Cross Services
|
55
56
|
rpc getGamesByUuids(GamesUuids) returns (GamePoorItemsResponse);
|
56
57
|
rpc getGameScopesByIds(ScopeRequest) returns (ScopeResponse);
|
@@ -401,4 +402,20 @@ message FreeSpinSettingsRequest {
|
|
401
402
|
}
|
402
403
|
message FreeSpinSettingsResponse {
|
403
404
|
string data = 1;
|
405
|
+
}
|
406
|
+
message FreeSpinCampaignRequest {
|
407
|
+
string game_uuid = 1;
|
408
|
+
string currency = 2;
|
409
|
+
string player_id = 3;
|
410
|
+
string player_name = 4;
|
411
|
+
int32 valid_from = 5;
|
412
|
+
int32 valid_until = 6;
|
413
|
+
int32 quantity = 7;
|
414
|
+
string freespin_id = 8;
|
415
|
+
optional int32 bet_id = 9;
|
416
|
+
optional float denomination = 10;
|
417
|
+
optional int32 total_bet_id = 11;
|
418
|
+
}
|
419
|
+
message FreeSpinCampaignResponse {
|
420
|
+
string data = 1;
|
404
421
|
}
|
package/game/game_grpc_pb.js
CHANGED
@@ -114,6 +114,28 @@ 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_FreeSpinCampaignRequest(arg) {
|
118
|
+
if (!(arg instanceof game_pb.FreeSpinCampaignRequest)) {
|
119
|
+
throw new Error('Expected argument of type game.FreeSpinCampaignRequest');
|
120
|
+
}
|
121
|
+
return Buffer.from(arg.serializeBinary());
|
122
|
+
}
|
123
|
+
|
124
|
+
function deserialize_game_FreeSpinCampaignRequest(buffer_arg) {
|
125
|
+
return game_pb.FreeSpinCampaignRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
126
|
+
}
|
127
|
+
|
128
|
+
function serialize_game_FreeSpinCampaignResponse(arg) {
|
129
|
+
if (!(arg instanceof game_pb.FreeSpinCampaignResponse)) {
|
130
|
+
throw new Error('Expected argument of type game.FreeSpinCampaignResponse');
|
131
|
+
}
|
132
|
+
return Buffer.from(arg.serializeBinary());
|
133
|
+
}
|
134
|
+
|
135
|
+
function deserialize_game_FreeSpinCampaignResponse(buffer_arg) {
|
136
|
+
return game_pb.FreeSpinCampaignResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
137
|
+
}
|
138
|
+
|
117
139
|
function serialize_game_FreeSpinSettingsRequest(arg) {
|
118
140
|
if (!(arg instanceof game_pb.FreeSpinSettingsRequest)) {
|
119
141
|
throw new Error('Expected argument of type game.FreeSpinSettingsRequest');
|
@@ -1036,6 +1058,17 @@ getFreeSpinsSettings: {
|
|
1036
1058
|
responseSerialize: serialize_game_FreeSpinSettingsResponse,
|
1037
1059
|
responseDeserialize: deserialize_game_FreeSpinSettingsResponse,
|
1038
1060
|
},
|
1061
|
+
setFreeSpins: {
|
1062
|
+
path: '/game.Game/setFreeSpins',
|
1063
|
+
requestStream: false,
|
1064
|
+
responseStream: false,
|
1065
|
+
requestType: game_pb.FreeSpinCampaignRequest,
|
1066
|
+
responseType: game_pb.FreeSpinCampaignResponse,
|
1067
|
+
requestSerialize: serialize_game_FreeSpinCampaignRequest,
|
1068
|
+
requestDeserialize: deserialize_game_FreeSpinCampaignRequest,
|
1069
|
+
responseSerialize: serialize_game_FreeSpinCampaignResponse,
|
1070
|
+
responseDeserialize: deserialize_game_FreeSpinCampaignResponse,
|
1071
|
+
},
|
1039
1072
|
// Cross Services
|
1040
1073
|
getGamesByUuids: {
|
1041
1074
|
path: '/game.Game/getGamesByUuids',
|
package/game/game_pb.js
CHANGED
@@ -37,6 +37,8 @@ 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.FreeSpinCampaignRequest', null, global);
|
41
|
+
goog.exportSymbol('proto.game.FreeSpinCampaignResponse', null, global);
|
40
42
|
goog.exportSymbol('proto.game.FreeSpinSettingsRequest', null, global);
|
41
43
|
goog.exportSymbol('proto.game.FreeSpinSettingsResponse', null, global);
|
42
44
|
goog.exportSymbol('proto.game.GameItem', null, global);
|
@@ -1434,6 +1436,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
1434
1436
|
*/
|
1435
1437
|
proto.game.FreeSpinSettingsResponse.displayName = 'proto.game.FreeSpinSettingsResponse';
|
1436
1438
|
}
|
1439
|
+
/**
|
1440
|
+
* Generated by JsPbCodeGenerator.
|
1441
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1442
|
+
* server response, or constructed directly in Javascript. The array is used
|
1443
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1444
|
+
* If no data is provided, the constructed object will be empty, but still
|
1445
|
+
* valid.
|
1446
|
+
* @extends {jspb.Message}
|
1447
|
+
* @constructor
|
1448
|
+
*/
|
1449
|
+
proto.game.FreeSpinCampaignRequest = function(opt_data) {
|
1450
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1451
|
+
};
|
1452
|
+
goog.inherits(proto.game.FreeSpinCampaignRequest, jspb.Message);
|
1453
|
+
if (goog.DEBUG && !COMPILED) {
|
1454
|
+
/**
|
1455
|
+
* @public
|
1456
|
+
* @override
|
1457
|
+
*/
|
1458
|
+
proto.game.FreeSpinCampaignRequest.displayName = 'proto.game.FreeSpinCampaignRequest';
|
1459
|
+
}
|
1460
|
+
/**
|
1461
|
+
* Generated by JsPbCodeGenerator.
|
1462
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1463
|
+
* server response, or constructed directly in Javascript. The array is used
|
1464
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1465
|
+
* If no data is provided, the constructed object will be empty, but still
|
1466
|
+
* valid.
|
1467
|
+
* @extends {jspb.Message}
|
1468
|
+
* @constructor
|
1469
|
+
*/
|
1470
|
+
proto.game.FreeSpinCampaignResponse = function(opt_data) {
|
1471
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1472
|
+
};
|
1473
|
+
goog.inherits(proto.game.FreeSpinCampaignResponse, jspb.Message);
|
1474
|
+
if (goog.DEBUG && !COMPILED) {
|
1475
|
+
/**
|
1476
|
+
* @public
|
1477
|
+
* @override
|
1478
|
+
*/
|
1479
|
+
proto.game.FreeSpinCampaignResponse.displayName = 'proto.game.FreeSpinCampaignResponse';
|
1480
|
+
}
|
1437
1481
|
|
1438
1482
|
|
1439
1483
|
|
@@ -17095,4 +17139,618 @@ proto.game.FreeSpinSettingsResponse.prototype.setData = function(value) {
|
|
17095
17139
|
};
|
17096
17140
|
|
17097
17141
|
|
17142
|
+
|
17143
|
+
|
17144
|
+
|
17145
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
17146
|
+
/**
|
17147
|
+
* Creates an object representation of this proto.
|
17148
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
17149
|
+
* Optional fields that are not set will be set to undefined.
|
17150
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
17151
|
+
* For the list of reserved names please see:
|
17152
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
17153
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
17154
|
+
* JSPB instance for transitional soy proto support:
|
17155
|
+
* http://goto/soy-param-migration
|
17156
|
+
* @return {!Object}
|
17157
|
+
*/
|
17158
|
+
proto.game.FreeSpinCampaignRequest.prototype.toObject = function(opt_includeInstance) {
|
17159
|
+
return proto.game.FreeSpinCampaignRequest.toObject(opt_includeInstance, this);
|
17160
|
+
};
|
17161
|
+
|
17162
|
+
|
17163
|
+
/**
|
17164
|
+
* Static version of the {@see toObject} method.
|
17165
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
17166
|
+
* the JSPB instance for transitional soy proto support:
|
17167
|
+
* http://goto/soy-param-migration
|
17168
|
+
* @param {!proto.game.FreeSpinCampaignRequest} msg The msg instance to transform.
|
17169
|
+
* @return {!Object}
|
17170
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
17171
|
+
*/
|
17172
|
+
proto.game.FreeSpinCampaignRequest.toObject = function(includeInstance, msg) {
|
17173
|
+
var f, obj = {
|
17174
|
+
gameUuid: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
17175
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
17176
|
+
playerId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
17177
|
+
playerName: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
17178
|
+
validFrom: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
17179
|
+
validUntil: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
17180
|
+
quantity: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
17181
|
+
freespinId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
17182
|
+
betId: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
17183
|
+
denomination: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
|
17184
|
+
totalBetId: jspb.Message.getFieldWithDefault(msg, 11, 0)
|
17185
|
+
};
|
17186
|
+
|
17187
|
+
if (includeInstance) {
|
17188
|
+
obj.$jspbMessageInstance = msg;
|
17189
|
+
}
|
17190
|
+
return obj;
|
17191
|
+
};
|
17192
|
+
}
|
17193
|
+
|
17194
|
+
|
17195
|
+
/**
|
17196
|
+
* Deserializes binary data (in protobuf wire format).
|
17197
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
17198
|
+
* @return {!proto.game.FreeSpinCampaignRequest}
|
17199
|
+
*/
|
17200
|
+
proto.game.FreeSpinCampaignRequest.deserializeBinary = function(bytes) {
|
17201
|
+
var reader = new jspb.BinaryReader(bytes);
|
17202
|
+
var msg = new proto.game.FreeSpinCampaignRequest;
|
17203
|
+
return proto.game.FreeSpinCampaignRequest.deserializeBinaryFromReader(msg, reader);
|
17204
|
+
};
|
17205
|
+
|
17206
|
+
|
17207
|
+
/**
|
17208
|
+
* Deserializes binary data (in protobuf wire format) from the
|
17209
|
+
* given reader into the given message object.
|
17210
|
+
* @param {!proto.game.FreeSpinCampaignRequest} msg The message object to deserialize into.
|
17211
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
17212
|
+
* @return {!proto.game.FreeSpinCampaignRequest}
|
17213
|
+
*/
|
17214
|
+
proto.game.FreeSpinCampaignRequest.deserializeBinaryFromReader = function(msg, reader) {
|
17215
|
+
while (reader.nextField()) {
|
17216
|
+
if (reader.isEndGroup()) {
|
17217
|
+
break;
|
17218
|
+
}
|
17219
|
+
var field = reader.getFieldNumber();
|
17220
|
+
switch (field) {
|
17221
|
+
case 1:
|
17222
|
+
var value = /** @type {string} */ (reader.readString());
|
17223
|
+
msg.setGameUuid(value);
|
17224
|
+
break;
|
17225
|
+
case 2:
|
17226
|
+
var value = /** @type {string} */ (reader.readString());
|
17227
|
+
msg.setCurrency(value);
|
17228
|
+
break;
|
17229
|
+
case 3:
|
17230
|
+
var value = /** @type {string} */ (reader.readString());
|
17231
|
+
msg.setPlayerId(value);
|
17232
|
+
break;
|
17233
|
+
case 4:
|
17234
|
+
var value = /** @type {string} */ (reader.readString());
|
17235
|
+
msg.setPlayerName(value);
|
17236
|
+
break;
|
17237
|
+
case 5:
|
17238
|
+
var value = /** @type {number} */ (reader.readInt32());
|
17239
|
+
msg.setValidFrom(value);
|
17240
|
+
break;
|
17241
|
+
case 6:
|
17242
|
+
var value = /** @type {number} */ (reader.readInt32());
|
17243
|
+
msg.setValidUntil(value);
|
17244
|
+
break;
|
17245
|
+
case 7:
|
17246
|
+
var value = /** @type {number} */ (reader.readInt32());
|
17247
|
+
msg.setQuantity(value);
|
17248
|
+
break;
|
17249
|
+
case 8:
|
17250
|
+
var value = /** @type {string} */ (reader.readString());
|
17251
|
+
msg.setFreespinId(value);
|
17252
|
+
break;
|
17253
|
+
case 9:
|
17254
|
+
var value = /** @type {number} */ (reader.readInt32());
|
17255
|
+
msg.setBetId(value);
|
17256
|
+
break;
|
17257
|
+
case 10:
|
17258
|
+
var value = /** @type {number} */ (reader.readFloat());
|
17259
|
+
msg.setDenomination(value);
|
17260
|
+
break;
|
17261
|
+
case 11:
|
17262
|
+
var value = /** @type {number} */ (reader.readInt32());
|
17263
|
+
msg.setTotalBetId(value);
|
17264
|
+
break;
|
17265
|
+
default:
|
17266
|
+
reader.skipField();
|
17267
|
+
break;
|
17268
|
+
}
|
17269
|
+
}
|
17270
|
+
return msg;
|
17271
|
+
};
|
17272
|
+
|
17273
|
+
|
17274
|
+
/**
|
17275
|
+
* Serializes the message to binary data (in protobuf wire format).
|
17276
|
+
* @return {!Uint8Array}
|
17277
|
+
*/
|
17278
|
+
proto.game.FreeSpinCampaignRequest.prototype.serializeBinary = function() {
|
17279
|
+
var writer = new jspb.BinaryWriter();
|
17280
|
+
proto.game.FreeSpinCampaignRequest.serializeBinaryToWriter(this, writer);
|
17281
|
+
return writer.getResultBuffer();
|
17282
|
+
};
|
17283
|
+
|
17284
|
+
|
17285
|
+
/**
|
17286
|
+
* Serializes the given message to binary data (in protobuf wire
|
17287
|
+
* format), writing to the given BinaryWriter.
|
17288
|
+
* @param {!proto.game.FreeSpinCampaignRequest} message
|
17289
|
+
* @param {!jspb.BinaryWriter} writer
|
17290
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
17291
|
+
*/
|
17292
|
+
proto.game.FreeSpinCampaignRequest.serializeBinaryToWriter = function(message, writer) {
|
17293
|
+
var f = undefined;
|
17294
|
+
f = message.getGameUuid();
|
17295
|
+
if (f.length > 0) {
|
17296
|
+
writer.writeString(
|
17297
|
+
1,
|
17298
|
+
f
|
17299
|
+
);
|
17300
|
+
}
|
17301
|
+
f = message.getCurrency();
|
17302
|
+
if (f.length > 0) {
|
17303
|
+
writer.writeString(
|
17304
|
+
2,
|
17305
|
+
f
|
17306
|
+
);
|
17307
|
+
}
|
17308
|
+
f = message.getPlayerId();
|
17309
|
+
if (f.length > 0) {
|
17310
|
+
writer.writeString(
|
17311
|
+
3,
|
17312
|
+
f
|
17313
|
+
);
|
17314
|
+
}
|
17315
|
+
f = message.getPlayerName();
|
17316
|
+
if (f.length > 0) {
|
17317
|
+
writer.writeString(
|
17318
|
+
4,
|
17319
|
+
f
|
17320
|
+
);
|
17321
|
+
}
|
17322
|
+
f = message.getValidFrom();
|
17323
|
+
if (f !== 0) {
|
17324
|
+
writer.writeInt32(
|
17325
|
+
5,
|
17326
|
+
f
|
17327
|
+
);
|
17328
|
+
}
|
17329
|
+
f = message.getValidUntil();
|
17330
|
+
if (f !== 0) {
|
17331
|
+
writer.writeInt32(
|
17332
|
+
6,
|
17333
|
+
f
|
17334
|
+
);
|
17335
|
+
}
|
17336
|
+
f = message.getQuantity();
|
17337
|
+
if (f !== 0) {
|
17338
|
+
writer.writeInt32(
|
17339
|
+
7,
|
17340
|
+
f
|
17341
|
+
);
|
17342
|
+
}
|
17343
|
+
f = message.getFreespinId();
|
17344
|
+
if (f.length > 0) {
|
17345
|
+
writer.writeString(
|
17346
|
+
8,
|
17347
|
+
f
|
17348
|
+
);
|
17349
|
+
}
|
17350
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 9));
|
17351
|
+
if (f != null) {
|
17352
|
+
writer.writeInt32(
|
17353
|
+
9,
|
17354
|
+
f
|
17355
|
+
);
|
17356
|
+
}
|
17357
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 10));
|
17358
|
+
if (f != null) {
|
17359
|
+
writer.writeFloat(
|
17360
|
+
10,
|
17361
|
+
f
|
17362
|
+
);
|
17363
|
+
}
|
17364
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 11));
|
17365
|
+
if (f != null) {
|
17366
|
+
writer.writeInt32(
|
17367
|
+
11,
|
17368
|
+
f
|
17369
|
+
);
|
17370
|
+
}
|
17371
|
+
};
|
17372
|
+
|
17373
|
+
|
17374
|
+
/**
|
17375
|
+
* optional string game_uuid = 1;
|
17376
|
+
* @return {string}
|
17377
|
+
*/
|
17378
|
+
proto.game.FreeSpinCampaignRequest.prototype.getGameUuid = function() {
|
17379
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
17380
|
+
};
|
17381
|
+
|
17382
|
+
|
17383
|
+
/**
|
17384
|
+
* @param {string} value
|
17385
|
+
* @return {!proto.game.FreeSpinCampaignRequest} returns this
|
17386
|
+
*/
|
17387
|
+
proto.game.FreeSpinCampaignRequest.prototype.setGameUuid = function(value) {
|
17388
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
17389
|
+
};
|
17390
|
+
|
17391
|
+
|
17392
|
+
/**
|
17393
|
+
* optional string currency = 2;
|
17394
|
+
* @return {string}
|
17395
|
+
*/
|
17396
|
+
proto.game.FreeSpinCampaignRequest.prototype.getCurrency = function() {
|
17397
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
17398
|
+
};
|
17399
|
+
|
17400
|
+
|
17401
|
+
/**
|
17402
|
+
* @param {string} value
|
17403
|
+
* @return {!proto.game.FreeSpinCampaignRequest} returns this
|
17404
|
+
*/
|
17405
|
+
proto.game.FreeSpinCampaignRequest.prototype.setCurrency = function(value) {
|
17406
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
17407
|
+
};
|
17408
|
+
|
17409
|
+
|
17410
|
+
/**
|
17411
|
+
* optional string player_id = 3;
|
17412
|
+
* @return {string}
|
17413
|
+
*/
|
17414
|
+
proto.game.FreeSpinCampaignRequest.prototype.getPlayerId = function() {
|
17415
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
17416
|
+
};
|
17417
|
+
|
17418
|
+
|
17419
|
+
/**
|
17420
|
+
* @param {string} value
|
17421
|
+
* @return {!proto.game.FreeSpinCampaignRequest} returns this
|
17422
|
+
*/
|
17423
|
+
proto.game.FreeSpinCampaignRequest.prototype.setPlayerId = function(value) {
|
17424
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
17425
|
+
};
|
17426
|
+
|
17427
|
+
|
17428
|
+
/**
|
17429
|
+
* optional string player_name = 4;
|
17430
|
+
* @return {string}
|
17431
|
+
*/
|
17432
|
+
proto.game.FreeSpinCampaignRequest.prototype.getPlayerName = function() {
|
17433
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
17434
|
+
};
|
17435
|
+
|
17436
|
+
|
17437
|
+
/**
|
17438
|
+
* @param {string} value
|
17439
|
+
* @return {!proto.game.FreeSpinCampaignRequest} returns this
|
17440
|
+
*/
|
17441
|
+
proto.game.FreeSpinCampaignRequest.prototype.setPlayerName = function(value) {
|
17442
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
17443
|
+
};
|
17444
|
+
|
17445
|
+
|
17446
|
+
/**
|
17447
|
+
* optional int32 valid_from = 5;
|
17448
|
+
* @return {number}
|
17449
|
+
*/
|
17450
|
+
proto.game.FreeSpinCampaignRequest.prototype.getValidFrom = function() {
|
17451
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
17452
|
+
};
|
17453
|
+
|
17454
|
+
|
17455
|
+
/**
|
17456
|
+
* @param {number} value
|
17457
|
+
* @return {!proto.game.FreeSpinCampaignRequest} returns this
|
17458
|
+
*/
|
17459
|
+
proto.game.FreeSpinCampaignRequest.prototype.setValidFrom = function(value) {
|
17460
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
17461
|
+
};
|
17462
|
+
|
17463
|
+
|
17464
|
+
/**
|
17465
|
+
* optional int32 valid_until = 6;
|
17466
|
+
* @return {number}
|
17467
|
+
*/
|
17468
|
+
proto.game.FreeSpinCampaignRequest.prototype.getValidUntil = function() {
|
17469
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
17470
|
+
};
|
17471
|
+
|
17472
|
+
|
17473
|
+
/**
|
17474
|
+
* @param {number} value
|
17475
|
+
* @return {!proto.game.FreeSpinCampaignRequest} returns this
|
17476
|
+
*/
|
17477
|
+
proto.game.FreeSpinCampaignRequest.prototype.setValidUntil = function(value) {
|
17478
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
17479
|
+
};
|
17480
|
+
|
17481
|
+
|
17482
|
+
/**
|
17483
|
+
* optional int32 quantity = 7;
|
17484
|
+
* @return {number}
|
17485
|
+
*/
|
17486
|
+
proto.game.FreeSpinCampaignRequest.prototype.getQuantity = function() {
|
17487
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
17488
|
+
};
|
17489
|
+
|
17490
|
+
|
17491
|
+
/**
|
17492
|
+
* @param {number} value
|
17493
|
+
* @return {!proto.game.FreeSpinCampaignRequest} returns this
|
17494
|
+
*/
|
17495
|
+
proto.game.FreeSpinCampaignRequest.prototype.setQuantity = function(value) {
|
17496
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
17497
|
+
};
|
17498
|
+
|
17499
|
+
|
17500
|
+
/**
|
17501
|
+
* optional string freespin_id = 8;
|
17502
|
+
* @return {string}
|
17503
|
+
*/
|
17504
|
+
proto.game.FreeSpinCampaignRequest.prototype.getFreespinId = function() {
|
17505
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
17506
|
+
};
|
17507
|
+
|
17508
|
+
|
17509
|
+
/**
|
17510
|
+
* @param {string} value
|
17511
|
+
* @return {!proto.game.FreeSpinCampaignRequest} returns this
|
17512
|
+
*/
|
17513
|
+
proto.game.FreeSpinCampaignRequest.prototype.setFreespinId = function(value) {
|
17514
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
17515
|
+
};
|
17516
|
+
|
17517
|
+
|
17518
|
+
/**
|
17519
|
+
* optional int32 bet_id = 9;
|
17520
|
+
* @return {number}
|
17521
|
+
*/
|
17522
|
+
proto.game.FreeSpinCampaignRequest.prototype.getBetId = function() {
|
17523
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
17524
|
+
};
|
17525
|
+
|
17526
|
+
|
17527
|
+
/**
|
17528
|
+
* @param {number} value
|
17529
|
+
* @return {!proto.game.FreeSpinCampaignRequest} returns this
|
17530
|
+
*/
|
17531
|
+
proto.game.FreeSpinCampaignRequest.prototype.setBetId = function(value) {
|
17532
|
+
return jspb.Message.setField(this, 9, value);
|
17533
|
+
};
|
17534
|
+
|
17535
|
+
|
17536
|
+
/**
|
17537
|
+
* Clears the field making it undefined.
|
17538
|
+
* @return {!proto.game.FreeSpinCampaignRequest} returns this
|
17539
|
+
*/
|
17540
|
+
proto.game.FreeSpinCampaignRequest.prototype.clearBetId = function() {
|
17541
|
+
return jspb.Message.setField(this, 9, undefined);
|
17542
|
+
};
|
17543
|
+
|
17544
|
+
|
17545
|
+
/**
|
17546
|
+
* Returns whether this field is set.
|
17547
|
+
* @return {boolean}
|
17548
|
+
*/
|
17549
|
+
proto.game.FreeSpinCampaignRequest.prototype.hasBetId = function() {
|
17550
|
+
return jspb.Message.getField(this, 9) != null;
|
17551
|
+
};
|
17552
|
+
|
17553
|
+
|
17554
|
+
/**
|
17555
|
+
* optional float denomination = 10;
|
17556
|
+
* @return {number}
|
17557
|
+
*/
|
17558
|
+
proto.game.FreeSpinCampaignRequest.prototype.getDenomination = function() {
|
17559
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
|
17560
|
+
};
|
17561
|
+
|
17562
|
+
|
17563
|
+
/**
|
17564
|
+
* @param {number} value
|
17565
|
+
* @return {!proto.game.FreeSpinCampaignRequest} returns this
|
17566
|
+
*/
|
17567
|
+
proto.game.FreeSpinCampaignRequest.prototype.setDenomination = function(value) {
|
17568
|
+
return jspb.Message.setField(this, 10, value);
|
17569
|
+
};
|
17570
|
+
|
17571
|
+
|
17572
|
+
/**
|
17573
|
+
* Clears the field making it undefined.
|
17574
|
+
* @return {!proto.game.FreeSpinCampaignRequest} returns this
|
17575
|
+
*/
|
17576
|
+
proto.game.FreeSpinCampaignRequest.prototype.clearDenomination = function() {
|
17577
|
+
return jspb.Message.setField(this, 10, undefined);
|
17578
|
+
};
|
17579
|
+
|
17580
|
+
|
17581
|
+
/**
|
17582
|
+
* Returns whether this field is set.
|
17583
|
+
* @return {boolean}
|
17584
|
+
*/
|
17585
|
+
proto.game.FreeSpinCampaignRequest.prototype.hasDenomination = function() {
|
17586
|
+
return jspb.Message.getField(this, 10) != null;
|
17587
|
+
};
|
17588
|
+
|
17589
|
+
|
17590
|
+
/**
|
17591
|
+
* optional int32 total_bet_id = 11;
|
17592
|
+
* @return {number}
|
17593
|
+
*/
|
17594
|
+
proto.game.FreeSpinCampaignRequest.prototype.getTotalBetId = function() {
|
17595
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
17596
|
+
};
|
17597
|
+
|
17598
|
+
|
17599
|
+
/**
|
17600
|
+
* @param {number} value
|
17601
|
+
* @return {!proto.game.FreeSpinCampaignRequest} returns this
|
17602
|
+
*/
|
17603
|
+
proto.game.FreeSpinCampaignRequest.prototype.setTotalBetId = function(value) {
|
17604
|
+
return jspb.Message.setField(this, 11, value);
|
17605
|
+
};
|
17606
|
+
|
17607
|
+
|
17608
|
+
/**
|
17609
|
+
* Clears the field making it undefined.
|
17610
|
+
* @return {!proto.game.FreeSpinCampaignRequest} returns this
|
17611
|
+
*/
|
17612
|
+
proto.game.FreeSpinCampaignRequest.prototype.clearTotalBetId = function() {
|
17613
|
+
return jspb.Message.setField(this, 11, undefined);
|
17614
|
+
};
|
17615
|
+
|
17616
|
+
|
17617
|
+
/**
|
17618
|
+
* Returns whether this field is set.
|
17619
|
+
* @return {boolean}
|
17620
|
+
*/
|
17621
|
+
proto.game.FreeSpinCampaignRequest.prototype.hasTotalBetId = function() {
|
17622
|
+
return jspb.Message.getField(this, 11) != null;
|
17623
|
+
};
|
17624
|
+
|
17625
|
+
|
17626
|
+
|
17627
|
+
|
17628
|
+
|
17629
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
17630
|
+
/**
|
17631
|
+
* Creates an object representation of this proto.
|
17632
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
17633
|
+
* Optional fields that are not set will be set to undefined.
|
17634
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
17635
|
+
* For the list of reserved names please see:
|
17636
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
17637
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
17638
|
+
* JSPB instance for transitional soy proto support:
|
17639
|
+
* http://goto/soy-param-migration
|
17640
|
+
* @return {!Object}
|
17641
|
+
*/
|
17642
|
+
proto.game.FreeSpinCampaignResponse.prototype.toObject = function(opt_includeInstance) {
|
17643
|
+
return proto.game.FreeSpinCampaignResponse.toObject(opt_includeInstance, this);
|
17644
|
+
};
|
17645
|
+
|
17646
|
+
|
17647
|
+
/**
|
17648
|
+
* Static version of the {@see toObject} method.
|
17649
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
17650
|
+
* the JSPB instance for transitional soy proto support:
|
17651
|
+
* http://goto/soy-param-migration
|
17652
|
+
* @param {!proto.game.FreeSpinCampaignResponse} msg The msg instance to transform.
|
17653
|
+
* @return {!Object}
|
17654
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
17655
|
+
*/
|
17656
|
+
proto.game.FreeSpinCampaignResponse.toObject = function(includeInstance, msg) {
|
17657
|
+
var f, obj = {
|
17658
|
+
data: jspb.Message.getFieldWithDefault(msg, 1, "")
|
17659
|
+
};
|
17660
|
+
|
17661
|
+
if (includeInstance) {
|
17662
|
+
obj.$jspbMessageInstance = msg;
|
17663
|
+
}
|
17664
|
+
return obj;
|
17665
|
+
};
|
17666
|
+
}
|
17667
|
+
|
17668
|
+
|
17669
|
+
/**
|
17670
|
+
* Deserializes binary data (in protobuf wire format).
|
17671
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
17672
|
+
* @return {!proto.game.FreeSpinCampaignResponse}
|
17673
|
+
*/
|
17674
|
+
proto.game.FreeSpinCampaignResponse.deserializeBinary = function(bytes) {
|
17675
|
+
var reader = new jspb.BinaryReader(bytes);
|
17676
|
+
var msg = new proto.game.FreeSpinCampaignResponse;
|
17677
|
+
return proto.game.FreeSpinCampaignResponse.deserializeBinaryFromReader(msg, reader);
|
17678
|
+
};
|
17679
|
+
|
17680
|
+
|
17681
|
+
/**
|
17682
|
+
* Deserializes binary data (in protobuf wire format) from the
|
17683
|
+
* given reader into the given message object.
|
17684
|
+
* @param {!proto.game.FreeSpinCampaignResponse} msg The message object to deserialize into.
|
17685
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
17686
|
+
* @return {!proto.game.FreeSpinCampaignResponse}
|
17687
|
+
*/
|
17688
|
+
proto.game.FreeSpinCampaignResponse.deserializeBinaryFromReader = function(msg, reader) {
|
17689
|
+
while (reader.nextField()) {
|
17690
|
+
if (reader.isEndGroup()) {
|
17691
|
+
break;
|
17692
|
+
}
|
17693
|
+
var field = reader.getFieldNumber();
|
17694
|
+
switch (field) {
|
17695
|
+
case 1:
|
17696
|
+
var value = /** @type {string} */ (reader.readString());
|
17697
|
+
msg.setData(value);
|
17698
|
+
break;
|
17699
|
+
default:
|
17700
|
+
reader.skipField();
|
17701
|
+
break;
|
17702
|
+
}
|
17703
|
+
}
|
17704
|
+
return msg;
|
17705
|
+
};
|
17706
|
+
|
17707
|
+
|
17708
|
+
/**
|
17709
|
+
* Serializes the message to binary data (in protobuf wire format).
|
17710
|
+
* @return {!Uint8Array}
|
17711
|
+
*/
|
17712
|
+
proto.game.FreeSpinCampaignResponse.prototype.serializeBinary = function() {
|
17713
|
+
var writer = new jspb.BinaryWriter();
|
17714
|
+
proto.game.FreeSpinCampaignResponse.serializeBinaryToWriter(this, writer);
|
17715
|
+
return writer.getResultBuffer();
|
17716
|
+
};
|
17717
|
+
|
17718
|
+
|
17719
|
+
/**
|
17720
|
+
* Serializes the given message to binary data (in protobuf wire
|
17721
|
+
* format), writing to the given BinaryWriter.
|
17722
|
+
* @param {!proto.game.FreeSpinCampaignResponse} message
|
17723
|
+
* @param {!jspb.BinaryWriter} writer
|
17724
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
17725
|
+
*/
|
17726
|
+
proto.game.FreeSpinCampaignResponse.serializeBinaryToWriter = function(message, writer) {
|
17727
|
+
var f = undefined;
|
17728
|
+
f = message.getData();
|
17729
|
+
if (f.length > 0) {
|
17730
|
+
writer.writeString(
|
17731
|
+
1,
|
17732
|
+
f
|
17733
|
+
);
|
17734
|
+
}
|
17735
|
+
};
|
17736
|
+
|
17737
|
+
|
17738
|
+
/**
|
17739
|
+
* optional string data = 1;
|
17740
|
+
* @return {string}
|
17741
|
+
*/
|
17742
|
+
proto.game.FreeSpinCampaignResponse.prototype.getData = function() {
|
17743
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
17744
|
+
};
|
17745
|
+
|
17746
|
+
|
17747
|
+
/**
|
17748
|
+
* @param {string} value
|
17749
|
+
* @return {!proto.game.FreeSpinCampaignResponse} returns this
|
17750
|
+
*/
|
17751
|
+
proto.game.FreeSpinCampaignResponse.prototype.setData = function(value) {
|
17752
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
17753
|
+
};
|
17754
|
+
|
17755
|
+
|
17098
17756
|
goog.object.extend(exports, proto.game);
|