protobuf-platform 1.0.70 → 1.0.72
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 +26 -0
- package/game/game_grpc_pb.js +55 -0
- package/game/game_pb.js +996 -0
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -43,6 +43,8 @@ service Game {
|
|
43
43
|
rpc readListGames(PaginationRequest) returns (GameItemsResponse);
|
44
44
|
rpc searchGamesByCollections(SearchGamesIntoCollectionsRequest) returns (GameItemsResponse);
|
45
45
|
rpc searchGamesByTags(SearchGamesIntoTagsRequest) returns (GameItemsResponse);
|
46
|
+
rpc initGameSession(InitGameSessionRequest) returns (InitGameSessionResponse);
|
47
|
+
rpc initDemoGameSession(InitDemoGameSessionRequest) returns (InitGameSessionResponse);
|
46
48
|
}
|
47
49
|
|
48
50
|
message PingRequest { string ping = 1; }
|
@@ -296,4 +298,28 @@ message GamesPriorityRequest {
|
|
296
298
|
int32 id = 1;
|
297
299
|
string game_priorities = 2;
|
298
300
|
optional string geo = 3;
|
301
|
+
}
|
302
|
+
message InitGameSessionRequest {
|
303
|
+
string game_uuid = 1;
|
304
|
+
string player_id = 2;
|
305
|
+
string player_name = 3;
|
306
|
+
string currency = 4;
|
307
|
+
optional int32 has_lobby = 5;
|
308
|
+
optional string return_url = 6;
|
309
|
+
optional string language = 7;
|
310
|
+
}
|
311
|
+
message InitDemoGameSessionRequest {
|
312
|
+
string game_slug = 1;
|
313
|
+
string provider_slug = 2;
|
314
|
+
optional string return_url = 3;
|
315
|
+
optional string language = 4;
|
316
|
+
}
|
317
|
+
message InitGameSessionResponse {
|
318
|
+
string game_url = 1;
|
319
|
+
string game_uuid = 2;
|
320
|
+
string game_title = 3;
|
321
|
+
string game_image = 4;
|
322
|
+
string game_slug = 5;
|
323
|
+
string provider_title = 6;
|
324
|
+
string provider_slug = 7;
|
299
325
|
}
|
package/game/game_grpc_pb.js
CHANGED
@@ -235,6 +235,39 @@ function deserialize_game_GetTagRequest(buffer_arg) {
|
|
235
235
|
return game_pb.GetTagRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
236
236
|
}
|
237
237
|
|
238
|
+
function serialize_game_InitDemoGameSessionRequest(arg) {
|
239
|
+
if (!(arg instanceof game_pb.InitDemoGameSessionRequest)) {
|
240
|
+
throw new Error('Expected argument of type game.InitDemoGameSessionRequest');
|
241
|
+
}
|
242
|
+
return Buffer.from(arg.serializeBinary());
|
243
|
+
}
|
244
|
+
|
245
|
+
function deserialize_game_InitDemoGameSessionRequest(buffer_arg) {
|
246
|
+
return game_pb.InitDemoGameSessionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
247
|
+
}
|
248
|
+
|
249
|
+
function serialize_game_InitGameSessionRequest(arg) {
|
250
|
+
if (!(arg instanceof game_pb.InitGameSessionRequest)) {
|
251
|
+
throw new Error('Expected argument of type game.InitGameSessionRequest');
|
252
|
+
}
|
253
|
+
return Buffer.from(arg.serializeBinary());
|
254
|
+
}
|
255
|
+
|
256
|
+
function deserialize_game_InitGameSessionRequest(buffer_arg) {
|
257
|
+
return game_pb.InitGameSessionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
258
|
+
}
|
259
|
+
|
260
|
+
function serialize_game_InitGameSessionResponse(arg) {
|
261
|
+
if (!(arg instanceof game_pb.InitGameSessionResponse)) {
|
262
|
+
throw new Error('Expected argument of type game.InitGameSessionResponse');
|
263
|
+
}
|
264
|
+
return Buffer.from(arg.serializeBinary());
|
265
|
+
}
|
266
|
+
|
267
|
+
function deserialize_game_InitGameSessionResponse(buffer_arg) {
|
268
|
+
return game_pb.InitGameSessionResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
269
|
+
}
|
270
|
+
|
238
271
|
function serialize_game_PaginationRequest(arg) {
|
239
272
|
if (!(arg instanceof game_pb.PaginationRequest)) {
|
240
273
|
throw new Error('Expected argument of type game.PaginationRequest');
|
@@ -803,6 +836,28 @@ parseGames: {
|
|
803
836
|
responseSerialize: serialize_game_GameItemsResponse,
|
804
837
|
responseDeserialize: deserialize_game_GameItemsResponse,
|
805
838
|
},
|
839
|
+
initGameSession: {
|
840
|
+
path: '/game.Game/initGameSession',
|
841
|
+
requestStream: false,
|
842
|
+
responseStream: false,
|
843
|
+
requestType: game_pb.InitGameSessionRequest,
|
844
|
+
responseType: game_pb.InitGameSessionResponse,
|
845
|
+
requestSerialize: serialize_game_InitGameSessionRequest,
|
846
|
+
requestDeserialize: deserialize_game_InitGameSessionRequest,
|
847
|
+
responseSerialize: serialize_game_InitGameSessionResponse,
|
848
|
+
responseDeserialize: deserialize_game_InitGameSessionResponse,
|
849
|
+
},
|
850
|
+
initDemoGameSession: {
|
851
|
+
path: '/game.Game/initDemoGameSession',
|
852
|
+
requestStream: false,
|
853
|
+
responseStream: false,
|
854
|
+
requestType: game_pb.InitDemoGameSessionRequest,
|
855
|
+
responseType: game_pb.InitGameSessionResponse,
|
856
|
+
requestSerialize: serialize_game_InitDemoGameSessionRequest,
|
857
|
+
requestDeserialize: deserialize_game_InitDemoGameSessionRequest,
|
858
|
+
responseSerialize: serialize_game_InitGameSessionResponse,
|
859
|
+
responseDeserialize: deserialize_game_InitGameSessionResponse,
|
860
|
+
},
|
806
861
|
};
|
807
862
|
|
808
863
|
exports.GameClient = grpc.makeGenericClientConstructor(GameService);
|
package/game/game_pb.js
CHANGED
@@ -51,6 +51,9 @@ goog.exportSymbol('proto.game.GetFileRequest', null, global);
|
|
51
51
|
goog.exportSymbol('proto.game.GetGameRequest', null, global);
|
52
52
|
goog.exportSymbol('proto.game.GetProviderRequest', null, global);
|
53
53
|
goog.exportSymbol('proto.game.GetTagRequest', null, global);
|
54
|
+
goog.exportSymbol('proto.game.InitDemoGameSessionRequest', null, global);
|
55
|
+
goog.exportSymbol('proto.game.InitGameSessionRequest', null, global);
|
56
|
+
goog.exportSymbol('proto.game.InitGameSessionResponse', null, global);
|
54
57
|
goog.exportSymbol('proto.game.PaginationRequest', null, global);
|
55
58
|
goog.exportSymbol('proto.game.ParseGamesRequest', null, global);
|
56
59
|
goog.exportSymbol('proto.game.ParseGamesResponse', null, global);
|
@@ -1060,6 +1063,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
1060
1063
|
*/
|
1061
1064
|
proto.game.GamesPriorityRequest.displayName = 'proto.game.GamesPriorityRequest';
|
1062
1065
|
}
|
1066
|
+
/**
|
1067
|
+
* Generated by JsPbCodeGenerator.
|
1068
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1069
|
+
* server response, or constructed directly in Javascript. The array is used
|
1070
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1071
|
+
* If no data is provided, the constructed object will be empty, but still
|
1072
|
+
* valid.
|
1073
|
+
* @extends {jspb.Message}
|
1074
|
+
* @constructor
|
1075
|
+
*/
|
1076
|
+
proto.game.InitGameSessionRequest = function(opt_data) {
|
1077
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1078
|
+
};
|
1079
|
+
goog.inherits(proto.game.InitGameSessionRequest, jspb.Message);
|
1080
|
+
if (goog.DEBUG && !COMPILED) {
|
1081
|
+
/**
|
1082
|
+
* @public
|
1083
|
+
* @override
|
1084
|
+
*/
|
1085
|
+
proto.game.InitGameSessionRequest.displayName = 'proto.game.InitGameSessionRequest';
|
1086
|
+
}
|
1087
|
+
/**
|
1088
|
+
* Generated by JsPbCodeGenerator.
|
1089
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1090
|
+
* server response, or constructed directly in Javascript. The array is used
|
1091
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1092
|
+
* If no data is provided, the constructed object will be empty, but still
|
1093
|
+
* valid.
|
1094
|
+
* @extends {jspb.Message}
|
1095
|
+
* @constructor
|
1096
|
+
*/
|
1097
|
+
proto.game.InitDemoGameSessionRequest = function(opt_data) {
|
1098
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1099
|
+
};
|
1100
|
+
goog.inherits(proto.game.InitDemoGameSessionRequest, jspb.Message);
|
1101
|
+
if (goog.DEBUG && !COMPILED) {
|
1102
|
+
/**
|
1103
|
+
* @public
|
1104
|
+
* @override
|
1105
|
+
*/
|
1106
|
+
proto.game.InitDemoGameSessionRequest.displayName = 'proto.game.InitDemoGameSessionRequest';
|
1107
|
+
}
|
1108
|
+
/**
|
1109
|
+
* Generated by JsPbCodeGenerator.
|
1110
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1111
|
+
* server response, or constructed directly in Javascript. The array is used
|
1112
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1113
|
+
* If no data is provided, the constructed object will be empty, but still
|
1114
|
+
* valid.
|
1115
|
+
* @extends {jspb.Message}
|
1116
|
+
* @constructor
|
1117
|
+
*/
|
1118
|
+
proto.game.InitGameSessionResponse = function(opt_data) {
|
1119
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1120
|
+
};
|
1121
|
+
goog.inherits(proto.game.InitGameSessionResponse, jspb.Message);
|
1122
|
+
if (goog.DEBUG && !COMPILED) {
|
1123
|
+
/**
|
1124
|
+
* @public
|
1125
|
+
* @override
|
1126
|
+
*/
|
1127
|
+
proto.game.InitGameSessionResponse.displayName = 'proto.game.InitGameSessionResponse';
|
1128
|
+
}
|
1063
1129
|
|
1064
1130
|
|
1065
1131
|
|
@@ -12406,4 +12472,934 @@ proto.game.GamesPriorityRequest.prototype.hasGeo = function() {
|
|
12406
12472
|
};
|
12407
12473
|
|
12408
12474
|
|
12475
|
+
|
12476
|
+
|
12477
|
+
|
12478
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
12479
|
+
/**
|
12480
|
+
* Creates an object representation of this proto.
|
12481
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
12482
|
+
* Optional fields that are not set will be set to undefined.
|
12483
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
12484
|
+
* For the list of reserved names please see:
|
12485
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
12486
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
12487
|
+
* JSPB instance for transitional soy proto support:
|
12488
|
+
* http://goto/soy-param-migration
|
12489
|
+
* @return {!Object}
|
12490
|
+
*/
|
12491
|
+
proto.game.InitGameSessionRequest.prototype.toObject = function(opt_includeInstance) {
|
12492
|
+
return proto.game.InitGameSessionRequest.toObject(opt_includeInstance, this);
|
12493
|
+
};
|
12494
|
+
|
12495
|
+
|
12496
|
+
/**
|
12497
|
+
* Static version of the {@see toObject} method.
|
12498
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
12499
|
+
* the JSPB instance for transitional soy proto support:
|
12500
|
+
* http://goto/soy-param-migration
|
12501
|
+
* @param {!proto.game.InitGameSessionRequest} msg The msg instance to transform.
|
12502
|
+
* @return {!Object}
|
12503
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
12504
|
+
*/
|
12505
|
+
proto.game.InitGameSessionRequest.toObject = function(includeInstance, msg) {
|
12506
|
+
var f, obj = {
|
12507
|
+
gameUuid: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
12508
|
+
playerId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
12509
|
+
playerName: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
12510
|
+
currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
12511
|
+
hasLobby: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
12512
|
+
returnUrl: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
12513
|
+
language: jspb.Message.getFieldWithDefault(msg, 7, "")
|
12514
|
+
};
|
12515
|
+
|
12516
|
+
if (includeInstance) {
|
12517
|
+
obj.$jspbMessageInstance = msg;
|
12518
|
+
}
|
12519
|
+
return obj;
|
12520
|
+
};
|
12521
|
+
}
|
12522
|
+
|
12523
|
+
|
12524
|
+
/**
|
12525
|
+
* Deserializes binary data (in protobuf wire format).
|
12526
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
12527
|
+
* @return {!proto.game.InitGameSessionRequest}
|
12528
|
+
*/
|
12529
|
+
proto.game.InitGameSessionRequest.deserializeBinary = function(bytes) {
|
12530
|
+
var reader = new jspb.BinaryReader(bytes);
|
12531
|
+
var msg = new proto.game.InitGameSessionRequest;
|
12532
|
+
return proto.game.InitGameSessionRequest.deserializeBinaryFromReader(msg, reader);
|
12533
|
+
};
|
12534
|
+
|
12535
|
+
|
12536
|
+
/**
|
12537
|
+
* Deserializes binary data (in protobuf wire format) from the
|
12538
|
+
* given reader into the given message object.
|
12539
|
+
* @param {!proto.game.InitGameSessionRequest} msg The message object to deserialize into.
|
12540
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
12541
|
+
* @return {!proto.game.InitGameSessionRequest}
|
12542
|
+
*/
|
12543
|
+
proto.game.InitGameSessionRequest.deserializeBinaryFromReader = function(msg, reader) {
|
12544
|
+
while (reader.nextField()) {
|
12545
|
+
if (reader.isEndGroup()) {
|
12546
|
+
break;
|
12547
|
+
}
|
12548
|
+
var field = reader.getFieldNumber();
|
12549
|
+
switch (field) {
|
12550
|
+
case 1:
|
12551
|
+
var value = /** @type {string} */ (reader.readString());
|
12552
|
+
msg.setGameUuid(value);
|
12553
|
+
break;
|
12554
|
+
case 2:
|
12555
|
+
var value = /** @type {string} */ (reader.readString());
|
12556
|
+
msg.setPlayerId(value);
|
12557
|
+
break;
|
12558
|
+
case 3:
|
12559
|
+
var value = /** @type {string} */ (reader.readString());
|
12560
|
+
msg.setPlayerName(value);
|
12561
|
+
break;
|
12562
|
+
case 4:
|
12563
|
+
var value = /** @type {string} */ (reader.readString());
|
12564
|
+
msg.setCurrency(value);
|
12565
|
+
break;
|
12566
|
+
case 5:
|
12567
|
+
var value = /** @type {number} */ (reader.readInt32());
|
12568
|
+
msg.setHasLobby(value);
|
12569
|
+
break;
|
12570
|
+
case 6:
|
12571
|
+
var value = /** @type {string} */ (reader.readString());
|
12572
|
+
msg.setReturnUrl(value);
|
12573
|
+
break;
|
12574
|
+
case 7:
|
12575
|
+
var value = /** @type {string} */ (reader.readString());
|
12576
|
+
msg.setLanguage(value);
|
12577
|
+
break;
|
12578
|
+
default:
|
12579
|
+
reader.skipField();
|
12580
|
+
break;
|
12581
|
+
}
|
12582
|
+
}
|
12583
|
+
return msg;
|
12584
|
+
};
|
12585
|
+
|
12586
|
+
|
12587
|
+
/**
|
12588
|
+
* Serializes the message to binary data (in protobuf wire format).
|
12589
|
+
* @return {!Uint8Array}
|
12590
|
+
*/
|
12591
|
+
proto.game.InitGameSessionRequest.prototype.serializeBinary = function() {
|
12592
|
+
var writer = new jspb.BinaryWriter();
|
12593
|
+
proto.game.InitGameSessionRequest.serializeBinaryToWriter(this, writer);
|
12594
|
+
return writer.getResultBuffer();
|
12595
|
+
};
|
12596
|
+
|
12597
|
+
|
12598
|
+
/**
|
12599
|
+
* Serializes the given message to binary data (in protobuf wire
|
12600
|
+
* format), writing to the given BinaryWriter.
|
12601
|
+
* @param {!proto.game.InitGameSessionRequest} message
|
12602
|
+
* @param {!jspb.BinaryWriter} writer
|
12603
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
12604
|
+
*/
|
12605
|
+
proto.game.InitGameSessionRequest.serializeBinaryToWriter = function(message, writer) {
|
12606
|
+
var f = undefined;
|
12607
|
+
f = message.getGameUuid();
|
12608
|
+
if (f.length > 0) {
|
12609
|
+
writer.writeString(
|
12610
|
+
1,
|
12611
|
+
f
|
12612
|
+
);
|
12613
|
+
}
|
12614
|
+
f = message.getPlayerId();
|
12615
|
+
if (f.length > 0) {
|
12616
|
+
writer.writeString(
|
12617
|
+
2,
|
12618
|
+
f
|
12619
|
+
);
|
12620
|
+
}
|
12621
|
+
f = message.getPlayerName();
|
12622
|
+
if (f.length > 0) {
|
12623
|
+
writer.writeString(
|
12624
|
+
3,
|
12625
|
+
f
|
12626
|
+
);
|
12627
|
+
}
|
12628
|
+
f = message.getCurrency();
|
12629
|
+
if (f.length > 0) {
|
12630
|
+
writer.writeString(
|
12631
|
+
4,
|
12632
|
+
f
|
12633
|
+
);
|
12634
|
+
}
|
12635
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
12636
|
+
if (f != null) {
|
12637
|
+
writer.writeInt32(
|
12638
|
+
5,
|
12639
|
+
f
|
12640
|
+
);
|
12641
|
+
}
|
12642
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
12643
|
+
if (f != null) {
|
12644
|
+
writer.writeString(
|
12645
|
+
6,
|
12646
|
+
f
|
12647
|
+
);
|
12648
|
+
}
|
12649
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
12650
|
+
if (f != null) {
|
12651
|
+
writer.writeString(
|
12652
|
+
7,
|
12653
|
+
f
|
12654
|
+
);
|
12655
|
+
}
|
12656
|
+
};
|
12657
|
+
|
12658
|
+
|
12659
|
+
/**
|
12660
|
+
* optional string game_uuid = 1;
|
12661
|
+
* @return {string}
|
12662
|
+
*/
|
12663
|
+
proto.game.InitGameSessionRequest.prototype.getGameUuid = function() {
|
12664
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
12665
|
+
};
|
12666
|
+
|
12667
|
+
|
12668
|
+
/**
|
12669
|
+
* @param {string} value
|
12670
|
+
* @return {!proto.game.InitGameSessionRequest} returns this
|
12671
|
+
*/
|
12672
|
+
proto.game.InitGameSessionRequest.prototype.setGameUuid = function(value) {
|
12673
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
12674
|
+
};
|
12675
|
+
|
12676
|
+
|
12677
|
+
/**
|
12678
|
+
* optional string player_id = 2;
|
12679
|
+
* @return {string}
|
12680
|
+
*/
|
12681
|
+
proto.game.InitGameSessionRequest.prototype.getPlayerId = function() {
|
12682
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
12683
|
+
};
|
12684
|
+
|
12685
|
+
|
12686
|
+
/**
|
12687
|
+
* @param {string} value
|
12688
|
+
* @return {!proto.game.InitGameSessionRequest} returns this
|
12689
|
+
*/
|
12690
|
+
proto.game.InitGameSessionRequest.prototype.setPlayerId = function(value) {
|
12691
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
12692
|
+
};
|
12693
|
+
|
12694
|
+
|
12695
|
+
/**
|
12696
|
+
* optional string player_name = 3;
|
12697
|
+
* @return {string}
|
12698
|
+
*/
|
12699
|
+
proto.game.InitGameSessionRequest.prototype.getPlayerName = function() {
|
12700
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
12701
|
+
};
|
12702
|
+
|
12703
|
+
|
12704
|
+
/**
|
12705
|
+
* @param {string} value
|
12706
|
+
* @return {!proto.game.InitGameSessionRequest} returns this
|
12707
|
+
*/
|
12708
|
+
proto.game.InitGameSessionRequest.prototype.setPlayerName = function(value) {
|
12709
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
12710
|
+
};
|
12711
|
+
|
12712
|
+
|
12713
|
+
/**
|
12714
|
+
* optional string currency = 4;
|
12715
|
+
* @return {string}
|
12716
|
+
*/
|
12717
|
+
proto.game.InitGameSessionRequest.prototype.getCurrency = function() {
|
12718
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
12719
|
+
};
|
12720
|
+
|
12721
|
+
|
12722
|
+
/**
|
12723
|
+
* @param {string} value
|
12724
|
+
* @return {!proto.game.InitGameSessionRequest} returns this
|
12725
|
+
*/
|
12726
|
+
proto.game.InitGameSessionRequest.prototype.setCurrency = function(value) {
|
12727
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
12728
|
+
};
|
12729
|
+
|
12730
|
+
|
12731
|
+
/**
|
12732
|
+
* optional int32 has_lobby = 5;
|
12733
|
+
* @return {number}
|
12734
|
+
*/
|
12735
|
+
proto.game.InitGameSessionRequest.prototype.getHasLobby = function() {
|
12736
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
12737
|
+
};
|
12738
|
+
|
12739
|
+
|
12740
|
+
/**
|
12741
|
+
* @param {number} value
|
12742
|
+
* @return {!proto.game.InitGameSessionRequest} returns this
|
12743
|
+
*/
|
12744
|
+
proto.game.InitGameSessionRequest.prototype.setHasLobby = function(value) {
|
12745
|
+
return jspb.Message.setField(this, 5, value);
|
12746
|
+
};
|
12747
|
+
|
12748
|
+
|
12749
|
+
/**
|
12750
|
+
* Clears the field making it undefined.
|
12751
|
+
* @return {!proto.game.InitGameSessionRequest} returns this
|
12752
|
+
*/
|
12753
|
+
proto.game.InitGameSessionRequest.prototype.clearHasLobby = function() {
|
12754
|
+
return jspb.Message.setField(this, 5, undefined);
|
12755
|
+
};
|
12756
|
+
|
12757
|
+
|
12758
|
+
/**
|
12759
|
+
* Returns whether this field is set.
|
12760
|
+
* @return {boolean}
|
12761
|
+
*/
|
12762
|
+
proto.game.InitGameSessionRequest.prototype.hasHasLobby = function() {
|
12763
|
+
return jspb.Message.getField(this, 5) != null;
|
12764
|
+
};
|
12765
|
+
|
12766
|
+
|
12767
|
+
/**
|
12768
|
+
* optional string return_url = 6;
|
12769
|
+
* @return {string}
|
12770
|
+
*/
|
12771
|
+
proto.game.InitGameSessionRequest.prototype.getReturnUrl = function() {
|
12772
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
12773
|
+
};
|
12774
|
+
|
12775
|
+
|
12776
|
+
/**
|
12777
|
+
* @param {string} value
|
12778
|
+
* @return {!proto.game.InitGameSessionRequest} returns this
|
12779
|
+
*/
|
12780
|
+
proto.game.InitGameSessionRequest.prototype.setReturnUrl = function(value) {
|
12781
|
+
return jspb.Message.setField(this, 6, value);
|
12782
|
+
};
|
12783
|
+
|
12784
|
+
|
12785
|
+
/**
|
12786
|
+
* Clears the field making it undefined.
|
12787
|
+
* @return {!proto.game.InitGameSessionRequest} returns this
|
12788
|
+
*/
|
12789
|
+
proto.game.InitGameSessionRequest.prototype.clearReturnUrl = function() {
|
12790
|
+
return jspb.Message.setField(this, 6, undefined);
|
12791
|
+
};
|
12792
|
+
|
12793
|
+
|
12794
|
+
/**
|
12795
|
+
* Returns whether this field is set.
|
12796
|
+
* @return {boolean}
|
12797
|
+
*/
|
12798
|
+
proto.game.InitGameSessionRequest.prototype.hasReturnUrl = function() {
|
12799
|
+
return jspb.Message.getField(this, 6) != null;
|
12800
|
+
};
|
12801
|
+
|
12802
|
+
|
12803
|
+
/**
|
12804
|
+
* optional string language = 7;
|
12805
|
+
* @return {string}
|
12806
|
+
*/
|
12807
|
+
proto.game.InitGameSessionRequest.prototype.getLanguage = function() {
|
12808
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
12809
|
+
};
|
12810
|
+
|
12811
|
+
|
12812
|
+
/**
|
12813
|
+
* @param {string} value
|
12814
|
+
* @return {!proto.game.InitGameSessionRequest} returns this
|
12815
|
+
*/
|
12816
|
+
proto.game.InitGameSessionRequest.prototype.setLanguage = function(value) {
|
12817
|
+
return jspb.Message.setField(this, 7, value);
|
12818
|
+
};
|
12819
|
+
|
12820
|
+
|
12821
|
+
/**
|
12822
|
+
* Clears the field making it undefined.
|
12823
|
+
* @return {!proto.game.InitGameSessionRequest} returns this
|
12824
|
+
*/
|
12825
|
+
proto.game.InitGameSessionRequest.prototype.clearLanguage = function() {
|
12826
|
+
return jspb.Message.setField(this, 7, undefined);
|
12827
|
+
};
|
12828
|
+
|
12829
|
+
|
12830
|
+
/**
|
12831
|
+
* Returns whether this field is set.
|
12832
|
+
* @return {boolean}
|
12833
|
+
*/
|
12834
|
+
proto.game.InitGameSessionRequest.prototype.hasLanguage = function() {
|
12835
|
+
return jspb.Message.getField(this, 7) != null;
|
12836
|
+
};
|
12837
|
+
|
12838
|
+
|
12839
|
+
|
12840
|
+
|
12841
|
+
|
12842
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
12843
|
+
/**
|
12844
|
+
* Creates an object representation of this proto.
|
12845
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
12846
|
+
* Optional fields that are not set will be set to undefined.
|
12847
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
12848
|
+
* For the list of reserved names please see:
|
12849
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
12850
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
12851
|
+
* JSPB instance for transitional soy proto support:
|
12852
|
+
* http://goto/soy-param-migration
|
12853
|
+
* @return {!Object}
|
12854
|
+
*/
|
12855
|
+
proto.game.InitDemoGameSessionRequest.prototype.toObject = function(opt_includeInstance) {
|
12856
|
+
return proto.game.InitDemoGameSessionRequest.toObject(opt_includeInstance, this);
|
12857
|
+
};
|
12858
|
+
|
12859
|
+
|
12860
|
+
/**
|
12861
|
+
* Static version of the {@see toObject} method.
|
12862
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
12863
|
+
* the JSPB instance for transitional soy proto support:
|
12864
|
+
* http://goto/soy-param-migration
|
12865
|
+
* @param {!proto.game.InitDemoGameSessionRequest} msg The msg instance to transform.
|
12866
|
+
* @return {!Object}
|
12867
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
12868
|
+
*/
|
12869
|
+
proto.game.InitDemoGameSessionRequest.toObject = function(includeInstance, msg) {
|
12870
|
+
var f, obj = {
|
12871
|
+
gameSlug: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
12872
|
+
providerSlug: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
12873
|
+
returnUrl: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
12874
|
+
language: jspb.Message.getFieldWithDefault(msg, 4, "")
|
12875
|
+
};
|
12876
|
+
|
12877
|
+
if (includeInstance) {
|
12878
|
+
obj.$jspbMessageInstance = msg;
|
12879
|
+
}
|
12880
|
+
return obj;
|
12881
|
+
};
|
12882
|
+
}
|
12883
|
+
|
12884
|
+
|
12885
|
+
/**
|
12886
|
+
* Deserializes binary data (in protobuf wire format).
|
12887
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
12888
|
+
* @return {!proto.game.InitDemoGameSessionRequest}
|
12889
|
+
*/
|
12890
|
+
proto.game.InitDemoGameSessionRequest.deserializeBinary = function(bytes) {
|
12891
|
+
var reader = new jspb.BinaryReader(bytes);
|
12892
|
+
var msg = new proto.game.InitDemoGameSessionRequest;
|
12893
|
+
return proto.game.InitDemoGameSessionRequest.deserializeBinaryFromReader(msg, reader);
|
12894
|
+
};
|
12895
|
+
|
12896
|
+
|
12897
|
+
/**
|
12898
|
+
* Deserializes binary data (in protobuf wire format) from the
|
12899
|
+
* given reader into the given message object.
|
12900
|
+
* @param {!proto.game.InitDemoGameSessionRequest} msg The message object to deserialize into.
|
12901
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
12902
|
+
* @return {!proto.game.InitDemoGameSessionRequest}
|
12903
|
+
*/
|
12904
|
+
proto.game.InitDemoGameSessionRequest.deserializeBinaryFromReader = function(msg, reader) {
|
12905
|
+
while (reader.nextField()) {
|
12906
|
+
if (reader.isEndGroup()) {
|
12907
|
+
break;
|
12908
|
+
}
|
12909
|
+
var field = reader.getFieldNumber();
|
12910
|
+
switch (field) {
|
12911
|
+
case 1:
|
12912
|
+
var value = /** @type {string} */ (reader.readString());
|
12913
|
+
msg.setGameSlug(value);
|
12914
|
+
break;
|
12915
|
+
case 2:
|
12916
|
+
var value = /** @type {string} */ (reader.readString());
|
12917
|
+
msg.setProviderSlug(value);
|
12918
|
+
break;
|
12919
|
+
case 3:
|
12920
|
+
var value = /** @type {string} */ (reader.readString());
|
12921
|
+
msg.setReturnUrl(value);
|
12922
|
+
break;
|
12923
|
+
case 4:
|
12924
|
+
var value = /** @type {string} */ (reader.readString());
|
12925
|
+
msg.setLanguage(value);
|
12926
|
+
break;
|
12927
|
+
default:
|
12928
|
+
reader.skipField();
|
12929
|
+
break;
|
12930
|
+
}
|
12931
|
+
}
|
12932
|
+
return msg;
|
12933
|
+
};
|
12934
|
+
|
12935
|
+
|
12936
|
+
/**
|
12937
|
+
* Serializes the message to binary data (in protobuf wire format).
|
12938
|
+
* @return {!Uint8Array}
|
12939
|
+
*/
|
12940
|
+
proto.game.InitDemoGameSessionRequest.prototype.serializeBinary = function() {
|
12941
|
+
var writer = new jspb.BinaryWriter();
|
12942
|
+
proto.game.InitDemoGameSessionRequest.serializeBinaryToWriter(this, writer);
|
12943
|
+
return writer.getResultBuffer();
|
12944
|
+
};
|
12945
|
+
|
12946
|
+
|
12947
|
+
/**
|
12948
|
+
* Serializes the given message to binary data (in protobuf wire
|
12949
|
+
* format), writing to the given BinaryWriter.
|
12950
|
+
* @param {!proto.game.InitDemoGameSessionRequest} message
|
12951
|
+
* @param {!jspb.BinaryWriter} writer
|
12952
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
12953
|
+
*/
|
12954
|
+
proto.game.InitDemoGameSessionRequest.serializeBinaryToWriter = function(message, writer) {
|
12955
|
+
var f = undefined;
|
12956
|
+
f = message.getGameSlug();
|
12957
|
+
if (f.length > 0) {
|
12958
|
+
writer.writeString(
|
12959
|
+
1,
|
12960
|
+
f
|
12961
|
+
);
|
12962
|
+
}
|
12963
|
+
f = message.getProviderSlug();
|
12964
|
+
if (f.length > 0) {
|
12965
|
+
writer.writeString(
|
12966
|
+
2,
|
12967
|
+
f
|
12968
|
+
);
|
12969
|
+
}
|
12970
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
12971
|
+
if (f != null) {
|
12972
|
+
writer.writeString(
|
12973
|
+
3,
|
12974
|
+
f
|
12975
|
+
);
|
12976
|
+
}
|
12977
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
12978
|
+
if (f != null) {
|
12979
|
+
writer.writeString(
|
12980
|
+
4,
|
12981
|
+
f
|
12982
|
+
);
|
12983
|
+
}
|
12984
|
+
};
|
12985
|
+
|
12986
|
+
|
12987
|
+
/**
|
12988
|
+
* optional string game_slug = 1;
|
12989
|
+
* @return {string}
|
12990
|
+
*/
|
12991
|
+
proto.game.InitDemoGameSessionRequest.prototype.getGameSlug = function() {
|
12992
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
12993
|
+
};
|
12994
|
+
|
12995
|
+
|
12996
|
+
/**
|
12997
|
+
* @param {string} value
|
12998
|
+
* @return {!proto.game.InitDemoGameSessionRequest} returns this
|
12999
|
+
*/
|
13000
|
+
proto.game.InitDemoGameSessionRequest.prototype.setGameSlug = function(value) {
|
13001
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
13002
|
+
};
|
13003
|
+
|
13004
|
+
|
13005
|
+
/**
|
13006
|
+
* optional string provider_slug = 2;
|
13007
|
+
* @return {string}
|
13008
|
+
*/
|
13009
|
+
proto.game.InitDemoGameSessionRequest.prototype.getProviderSlug = function() {
|
13010
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
13011
|
+
};
|
13012
|
+
|
13013
|
+
|
13014
|
+
/**
|
13015
|
+
* @param {string} value
|
13016
|
+
* @return {!proto.game.InitDemoGameSessionRequest} returns this
|
13017
|
+
*/
|
13018
|
+
proto.game.InitDemoGameSessionRequest.prototype.setProviderSlug = function(value) {
|
13019
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
13020
|
+
};
|
13021
|
+
|
13022
|
+
|
13023
|
+
/**
|
13024
|
+
* optional string return_url = 3;
|
13025
|
+
* @return {string}
|
13026
|
+
*/
|
13027
|
+
proto.game.InitDemoGameSessionRequest.prototype.getReturnUrl = function() {
|
13028
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
13029
|
+
};
|
13030
|
+
|
13031
|
+
|
13032
|
+
/**
|
13033
|
+
* @param {string} value
|
13034
|
+
* @return {!proto.game.InitDemoGameSessionRequest} returns this
|
13035
|
+
*/
|
13036
|
+
proto.game.InitDemoGameSessionRequest.prototype.setReturnUrl = function(value) {
|
13037
|
+
return jspb.Message.setField(this, 3, value);
|
13038
|
+
};
|
13039
|
+
|
13040
|
+
|
13041
|
+
/**
|
13042
|
+
* Clears the field making it undefined.
|
13043
|
+
* @return {!proto.game.InitDemoGameSessionRequest} returns this
|
13044
|
+
*/
|
13045
|
+
proto.game.InitDemoGameSessionRequest.prototype.clearReturnUrl = function() {
|
13046
|
+
return jspb.Message.setField(this, 3, undefined);
|
13047
|
+
};
|
13048
|
+
|
13049
|
+
|
13050
|
+
/**
|
13051
|
+
* Returns whether this field is set.
|
13052
|
+
* @return {boolean}
|
13053
|
+
*/
|
13054
|
+
proto.game.InitDemoGameSessionRequest.prototype.hasReturnUrl = function() {
|
13055
|
+
return jspb.Message.getField(this, 3) != null;
|
13056
|
+
};
|
13057
|
+
|
13058
|
+
|
13059
|
+
/**
|
13060
|
+
* optional string language = 4;
|
13061
|
+
* @return {string}
|
13062
|
+
*/
|
13063
|
+
proto.game.InitDemoGameSessionRequest.prototype.getLanguage = function() {
|
13064
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
13065
|
+
};
|
13066
|
+
|
13067
|
+
|
13068
|
+
/**
|
13069
|
+
* @param {string} value
|
13070
|
+
* @return {!proto.game.InitDemoGameSessionRequest} returns this
|
13071
|
+
*/
|
13072
|
+
proto.game.InitDemoGameSessionRequest.prototype.setLanguage = function(value) {
|
13073
|
+
return jspb.Message.setField(this, 4, value);
|
13074
|
+
};
|
13075
|
+
|
13076
|
+
|
13077
|
+
/**
|
13078
|
+
* Clears the field making it undefined.
|
13079
|
+
* @return {!proto.game.InitDemoGameSessionRequest} returns this
|
13080
|
+
*/
|
13081
|
+
proto.game.InitDemoGameSessionRequest.prototype.clearLanguage = function() {
|
13082
|
+
return jspb.Message.setField(this, 4, undefined);
|
13083
|
+
};
|
13084
|
+
|
13085
|
+
|
13086
|
+
/**
|
13087
|
+
* Returns whether this field is set.
|
13088
|
+
* @return {boolean}
|
13089
|
+
*/
|
13090
|
+
proto.game.InitDemoGameSessionRequest.prototype.hasLanguage = function() {
|
13091
|
+
return jspb.Message.getField(this, 4) != null;
|
13092
|
+
};
|
13093
|
+
|
13094
|
+
|
13095
|
+
|
13096
|
+
|
13097
|
+
|
13098
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
13099
|
+
/**
|
13100
|
+
* Creates an object representation of this proto.
|
13101
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
13102
|
+
* Optional fields that are not set will be set to undefined.
|
13103
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
13104
|
+
* For the list of reserved names please see:
|
13105
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
13106
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
13107
|
+
* JSPB instance for transitional soy proto support:
|
13108
|
+
* http://goto/soy-param-migration
|
13109
|
+
* @return {!Object}
|
13110
|
+
*/
|
13111
|
+
proto.game.InitGameSessionResponse.prototype.toObject = function(opt_includeInstance) {
|
13112
|
+
return proto.game.InitGameSessionResponse.toObject(opt_includeInstance, this);
|
13113
|
+
};
|
13114
|
+
|
13115
|
+
|
13116
|
+
/**
|
13117
|
+
* Static version of the {@see toObject} method.
|
13118
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
13119
|
+
* the JSPB instance for transitional soy proto support:
|
13120
|
+
* http://goto/soy-param-migration
|
13121
|
+
* @param {!proto.game.InitGameSessionResponse} msg The msg instance to transform.
|
13122
|
+
* @return {!Object}
|
13123
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
13124
|
+
*/
|
13125
|
+
proto.game.InitGameSessionResponse.toObject = function(includeInstance, msg) {
|
13126
|
+
var f, obj = {
|
13127
|
+
gameUrl: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
13128
|
+
gameUuid: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
13129
|
+
gameTitle: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
13130
|
+
gameImage: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
13131
|
+
gameSlug: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
13132
|
+
providerTitle: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
13133
|
+
providerSlug: jspb.Message.getFieldWithDefault(msg, 7, "")
|
13134
|
+
};
|
13135
|
+
|
13136
|
+
if (includeInstance) {
|
13137
|
+
obj.$jspbMessageInstance = msg;
|
13138
|
+
}
|
13139
|
+
return obj;
|
13140
|
+
};
|
13141
|
+
}
|
13142
|
+
|
13143
|
+
|
13144
|
+
/**
|
13145
|
+
* Deserializes binary data (in protobuf wire format).
|
13146
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
13147
|
+
* @return {!proto.game.InitGameSessionResponse}
|
13148
|
+
*/
|
13149
|
+
proto.game.InitGameSessionResponse.deserializeBinary = function(bytes) {
|
13150
|
+
var reader = new jspb.BinaryReader(bytes);
|
13151
|
+
var msg = new proto.game.InitGameSessionResponse;
|
13152
|
+
return proto.game.InitGameSessionResponse.deserializeBinaryFromReader(msg, reader);
|
13153
|
+
};
|
13154
|
+
|
13155
|
+
|
13156
|
+
/**
|
13157
|
+
* Deserializes binary data (in protobuf wire format) from the
|
13158
|
+
* given reader into the given message object.
|
13159
|
+
* @param {!proto.game.InitGameSessionResponse} msg The message object to deserialize into.
|
13160
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
13161
|
+
* @return {!proto.game.InitGameSessionResponse}
|
13162
|
+
*/
|
13163
|
+
proto.game.InitGameSessionResponse.deserializeBinaryFromReader = function(msg, reader) {
|
13164
|
+
while (reader.nextField()) {
|
13165
|
+
if (reader.isEndGroup()) {
|
13166
|
+
break;
|
13167
|
+
}
|
13168
|
+
var field = reader.getFieldNumber();
|
13169
|
+
switch (field) {
|
13170
|
+
case 1:
|
13171
|
+
var value = /** @type {string} */ (reader.readString());
|
13172
|
+
msg.setGameUrl(value);
|
13173
|
+
break;
|
13174
|
+
case 2:
|
13175
|
+
var value = /** @type {string} */ (reader.readString());
|
13176
|
+
msg.setGameUuid(value);
|
13177
|
+
break;
|
13178
|
+
case 3:
|
13179
|
+
var value = /** @type {string} */ (reader.readString());
|
13180
|
+
msg.setGameTitle(value);
|
13181
|
+
break;
|
13182
|
+
case 4:
|
13183
|
+
var value = /** @type {string} */ (reader.readString());
|
13184
|
+
msg.setGameImage(value);
|
13185
|
+
break;
|
13186
|
+
case 5:
|
13187
|
+
var value = /** @type {string} */ (reader.readString());
|
13188
|
+
msg.setGameSlug(value);
|
13189
|
+
break;
|
13190
|
+
case 6:
|
13191
|
+
var value = /** @type {string} */ (reader.readString());
|
13192
|
+
msg.setProviderTitle(value);
|
13193
|
+
break;
|
13194
|
+
case 7:
|
13195
|
+
var value = /** @type {string} */ (reader.readString());
|
13196
|
+
msg.setProviderSlug(value);
|
13197
|
+
break;
|
13198
|
+
default:
|
13199
|
+
reader.skipField();
|
13200
|
+
break;
|
13201
|
+
}
|
13202
|
+
}
|
13203
|
+
return msg;
|
13204
|
+
};
|
13205
|
+
|
13206
|
+
|
13207
|
+
/**
|
13208
|
+
* Serializes the message to binary data (in protobuf wire format).
|
13209
|
+
* @return {!Uint8Array}
|
13210
|
+
*/
|
13211
|
+
proto.game.InitGameSessionResponse.prototype.serializeBinary = function() {
|
13212
|
+
var writer = new jspb.BinaryWriter();
|
13213
|
+
proto.game.InitGameSessionResponse.serializeBinaryToWriter(this, writer);
|
13214
|
+
return writer.getResultBuffer();
|
13215
|
+
};
|
13216
|
+
|
13217
|
+
|
13218
|
+
/**
|
13219
|
+
* Serializes the given message to binary data (in protobuf wire
|
13220
|
+
* format), writing to the given BinaryWriter.
|
13221
|
+
* @param {!proto.game.InitGameSessionResponse} message
|
13222
|
+
* @param {!jspb.BinaryWriter} writer
|
13223
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
13224
|
+
*/
|
13225
|
+
proto.game.InitGameSessionResponse.serializeBinaryToWriter = function(message, writer) {
|
13226
|
+
var f = undefined;
|
13227
|
+
f = message.getGameUrl();
|
13228
|
+
if (f.length > 0) {
|
13229
|
+
writer.writeString(
|
13230
|
+
1,
|
13231
|
+
f
|
13232
|
+
);
|
13233
|
+
}
|
13234
|
+
f = message.getGameUuid();
|
13235
|
+
if (f.length > 0) {
|
13236
|
+
writer.writeString(
|
13237
|
+
2,
|
13238
|
+
f
|
13239
|
+
);
|
13240
|
+
}
|
13241
|
+
f = message.getGameTitle();
|
13242
|
+
if (f.length > 0) {
|
13243
|
+
writer.writeString(
|
13244
|
+
3,
|
13245
|
+
f
|
13246
|
+
);
|
13247
|
+
}
|
13248
|
+
f = message.getGameImage();
|
13249
|
+
if (f.length > 0) {
|
13250
|
+
writer.writeString(
|
13251
|
+
4,
|
13252
|
+
f
|
13253
|
+
);
|
13254
|
+
}
|
13255
|
+
f = message.getGameSlug();
|
13256
|
+
if (f.length > 0) {
|
13257
|
+
writer.writeString(
|
13258
|
+
5,
|
13259
|
+
f
|
13260
|
+
);
|
13261
|
+
}
|
13262
|
+
f = message.getProviderTitle();
|
13263
|
+
if (f.length > 0) {
|
13264
|
+
writer.writeString(
|
13265
|
+
6,
|
13266
|
+
f
|
13267
|
+
);
|
13268
|
+
}
|
13269
|
+
f = message.getProviderSlug();
|
13270
|
+
if (f.length > 0) {
|
13271
|
+
writer.writeString(
|
13272
|
+
7,
|
13273
|
+
f
|
13274
|
+
);
|
13275
|
+
}
|
13276
|
+
};
|
13277
|
+
|
13278
|
+
|
13279
|
+
/**
|
13280
|
+
* optional string game_url = 1;
|
13281
|
+
* @return {string}
|
13282
|
+
*/
|
13283
|
+
proto.game.InitGameSessionResponse.prototype.getGameUrl = function() {
|
13284
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
13285
|
+
};
|
13286
|
+
|
13287
|
+
|
13288
|
+
/**
|
13289
|
+
* @param {string} value
|
13290
|
+
* @return {!proto.game.InitGameSessionResponse} returns this
|
13291
|
+
*/
|
13292
|
+
proto.game.InitGameSessionResponse.prototype.setGameUrl = function(value) {
|
13293
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
13294
|
+
};
|
13295
|
+
|
13296
|
+
|
13297
|
+
/**
|
13298
|
+
* optional string game_uuid = 2;
|
13299
|
+
* @return {string}
|
13300
|
+
*/
|
13301
|
+
proto.game.InitGameSessionResponse.prototype.getGameUuid = function() {
|
13302
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
13303
|
+
};
|
13304
|
+
|
13305
|
+
|
13306
|
+
/**
|
13307
|
+
* @param {string} value
|
13308
|
+
* @return {!proto.game.InitGameSessionResponse} returns this
|
13309
|
+
*/
|
13310
|
+
proto.game.InitGameSessionResponse.prototype.setGameUuid = function(value) {
|
13311
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
13312
|
+
};
|
13313
|
+
|
13314
|
+
|
13315
|
+
/**
|
13316
|
+
* optional string game_title = 3;
|
13317
|
+
* @return {string}
|
13318
|
+
*/
|
13319
|
+
proto.game.InitGameSessionResponse.prototype.getGameTitle = function() {
|
13320
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
13321
|
+
};
|
13322
|
+
|
13323
|
+
|
13324
|
+
/**
|
13325
|
+
* @param {string} value
|
13326
|
+
* @return {!proto.game.InitGameSessionResponse} returns this
|
13327
|
+
*/
|
13328
|
+
proto.game.InitGameSessionResponse.prototype.setGameTitle = function(value) {
|
13329
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
13330
|
+
};
|
13331
|
+
|
13332
|
+
|
13333
|
+
/**
|
13334
|
+
* optional string game_image = 4;
|
13335
|
+
* @return {string}
|
13336
|
+
*/
|
13337
|
+
proto.game.InitGameSessionResponse.prototype.getGameImage = function() {
|
13338
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
13339
|
+
};
|
13340
|
+
|
13341
|
+
|
13342
|
+
/**
|
13343
|
+
* @param {string} value
|
13344
|
+
* @return {!proto.game.InitGameSessionResponse} returns this
|
13345
|
+
*/
|
13346
|
+
proto.game.InitGameSessionResponse.prototype.setGameImage = function(value) {
|
13347
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
13348
|
+
};
|
13349
|
+
|
13350
|
+
|
13351
|
+
/**
|
13352
|
+
* optional string game_slug = 5;
|
13353
|
+
* @return {string}
|
13354
|
+
*/
|
13355
|
+
proto.game.InitGameSessionResponse.prototype.getGameSlug = function() {
|
13356
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
13357
|
+
};
|
13358
|
+
|
13359
|
+
|
13360
|
+
/**
|
13361
|
+
* @param {string} value
|
13362
|
+
* @return {!proto.game.InitGameSessionResponse} returns this
|
13363
|
+
*/
|
13364
|
+
proto.game.InitGameSessionResponse.prototype.setGameSlug = function(value) {
|
13365
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
13366
|
+
};
|
13367
|
+
|
13368
|
+
|
13369
|
+
/**
|
13370
|
+
* optional string provider_title = 6;
|
13371
|
+
* @return {string}
|
13372
|
+
*/
|
13373
|
+
proto.game.InitGameSessionResponse.prototype.getProviderTitle = function() {
|
13374
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
13375
|
+
};
|
13376
|
+
|
13377
|
+
|
13378
|
+
/**
|
13379
|
+
* @param {string} value
|
13380
|
+
* @return {!proto.game.InitGameSessionResponse} returns this
|
13381
|
+
*/
|
13382
|
+
proto.game.InitGameSessionResponse.prototype.setProviderTitle = function(value) {
|
13383
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
13384
|
+
};
|
13385
|
+
|
13386
|
+
|
13387
|
+
/**
|
13388
|
+
* optional string provider_slug = 7;
|
13389
|
+
* @return {string}
|
13390
|
+
*/
|
13391
|
+
proto.game.InitGameSessionResponse.prototype.getProviderSlug = function() {
|
13392
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
13393
|
+
};
|
13394
|
+
|
13395
|
+
|
13396
|
+
/**
|
13397
|
+
* @param {string} value
|
13398
|
+
* @return {!proto.game.InitGameSessionResponse} returns this
|
13399
|
+
*/
|
13400
|
+
proto.game.InitGameSessionResponse.prototype.setProviderSlug = function(value) {
|
13401
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
13402
|
+
};
|
13403
|
+
|
13404
|
+
|
12409
13405
|
goog.object.extend(exports, proto.game);
|