protobuf-platform 1.0.71 → 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 +4 -3
- package/game/game_pb.js +51 -21
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -309,9 +309,10 @@ message InitGameSessionRequest {
|
|
309
309
|
optional string language = 7;
|
310
310
|
}
|
311
311
|
message InitDemoGameSessionRequest {
|
312
|
-
string
|
313
|
-
|
314
|
-
optional string
|
312
|
+
string game_slug = 1;
|
313
|
+
string provider_slug = 2;
|
314
|
+
optional string return_url = 3;
|
315
|
+
optional string language = 4;
|
315
316
|
}
|
316
317
|
message InitGameSessionResponse {
|
317
318
|
string game_url = 1;
|
package/game/game_pb.js
CHANGED
@@ -12868,9 +12868,10 @@ proto.game.InitDemoGameSessionRequest.prototype.toObject = function(opt_includeI
|
|
12868
12868
|
*/
|
12869
12869
|
proto.game.InitDemoGameSessionRequest.toObject = function(includeInstance, msg) {
|
12870
12870
|
var f, obj = {
|
12871
|
-
|
12872
|
-
|
12873
|
-
|
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, "")
|
12874
12875
|
};
|
12875
12876
|
|
12876
12877
|
if (includeInstance) {
|
@@ -12909,13 +12910,17 @@ proto.game.InitDemoGameSessionRequest.deserializeBinaryFromReader = function(msg
|
|
12909
12910
|
switch (field) {
|
12910
12911
|
case 1:
|
12911
12912
|
var value = /** @type {string} */ (reader.readString());
|
12912
|
-
msg.
|
12913
|
+
msg.setGameSlug(value);
|
12913
12914
|
break;
|
12914
12915
|
case 2:
|
12915
12916
|
var value = /** @type {string} */ (reader.readString());
|
12916
|
-
msg.
|
12917
|
+
msg.setProviderSlug(value);
|
12917
12918
|
break;
|
12918
12919
|
case 3:
|
12920
|
+
var value = /** @type {string} */ (reader.readString());
|
12921
|
+
msg.setReturnUrl(value);
|
12922
|
+
break;
|
12923
|
+
case 4:
|
12919
12924
|
var value = /** @type {string} */ (reader.readString());
|
12920
12925
|
msg.setLanguage(value);
|
12921
12926
|
break;
|
@@ -12948,15 +12953,15 @@ proto.game.InitDemoGameSessionRequest.prototype.serializeBinary = function() {
|
|
12948
12953
|
*/
|
12949
12954
|
proto.game.InitDemoGameSessionRequest.serializeBinaryToWriter = function(message, writer) {
|
12950
12955
|
var f = undefined;
|
12951
|
-
f = message.
|
12956
|
+
f = message.getGameSlug();
|
12952
12957
|
if (f.length > 0) {
|
12953
12958
|
writer.writeString(
|
12954
12959
|
1,
|
12955
12960
|
f
|
12956
12961
|
);
|
12957
12962
|
}
|
12958
|
-
f =
|
12959
|
-
if (f
|
12963
|
+
f = message.getProviderSlug();
|
12964
|
+
if (f.length > 0) {
|
12960
12965
|
writer.writeString(
|
12961
12966
|
2,
|
12962
12967
|
f
|
@@ -12969,14 +12974,21 @@ proto.game.InitDemoGameSessionRequest.serializeBinaryToWriter = function(message
|
|
12969
12974
|
f
|
12970
12975
|
);
|
12971
12976
|
}
|
12977
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
12978
|
+
if (f != null) {
|
12979
|
+
writer.writeString(
|
12980
|
+
4,
|
12981
|
+
f
|
12982
|
+
);
|
12983
|
+
}
|
12972
12984
|
};
|
12973
12985
|
|
12974
12986
|
|
12975
12987
|
/**
|
12976
|
-
* optional string
|
12988
|
+
* optional string game_slug = 1;
|
12977
12989
|
* @return {string}
|
12978
12990
|
*/
|
12979
|
-
proto.game.InitDemoGameSessionRequest.prototype.
|
12991
|
+
proto.game.InitDemoGameSessionRequest.prototype.getGameSlug = function() {
|
12980
12992
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
12981
12993
|
};
|
12982
12994
|
|
@@ -12985,26 +12997,44 @@ proto.game.InitDemoGameSessionRequest.prototype.getGameUuid = function() {
|
|
12985
12997
|
* @param {string} value
|
12986
12998
|
* @return {!proto.game.InitDemoGameSessionRequest} returns this
|
12987
12999
|
*/
|
12988
|
-
proto.game.InitDemoGameSessionRequest.prototype.
|
13000
|
+
proto.game.InitDemoGameSessionRequest.prototype.setGameSlug = function(value) {
|
12989
13001
|
return jspb.Message.setProto3StringField(this, 1, value);
|
12990
13002
|
};
|
12991
13003
|
|
12992
13004
|
|
12993
13005
|
/**
|
12994
|
-
* optional string
|
13006
|
+
* optional string provider_slug = 2;
|
12995
13007
|
* @return {string}
|
12996
13008
|
*/
|
12997
|
-
proto.game.InitDemoGameSessionRequest.prototype.
|
13009
|
+
proto.game.InitDemoGameSessionRequest.prototype.getProviderSlug = function() {
|
12998
13010
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
12999
13011
|
};
|
13000
13012
|
|
13001
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
|
+
|
13002
13032
|
/**
|
13003
13033
|
* @param {string} value
|
13004
13034
|
* @return {!proto.game.InitDemoGameSessionRequest} returns this
|
13005
13035
|
*/
|
13006
13036
|
proto.game.InitDemoGameSessionRequest.prototype.setReturnUrl = function(value) {
|
13007
|
-
return jspb.Message.setField(this,
|
13037
|
+
return jspb.Message.setField(this, 3, value);
|
13008
13038
|
};
|
13009
13039
|
|
13010
13040
|
|
@@ -13013,7 +13043,7 @@ proto.game.InitDemoGameSessionRequest.prototype.setReturnUrl = function(value) {
|
|
13013
13043
|
* @return {!proto.game.InitDemoGameSessionRequest} returns this
|
13014
13044
|
*/
|
13015
13045
|
proto.game.InitDemoGameSessionRequest.prototype.clearReturnUrl = function() {
|
13016
|
-
return jspb.Message.setField(this,
|
13046
|
+
return jspb.Message.setField(this, 3, undefined);
|
13017
13047
|
};
|
13018
13048
|
|
13019
13049
|
|
@@ -13022,16 +13052,16 @@ proto.game.InitDemoGameSessionRequest.prototype.clearReturnUrl = function() {
|
|
13022
13052
|
* @return {boolean}
|
13023
13053
|
*/
|
13024
13054
|
proto.game.InitDemoGameSessionRequest.prototype.hasReturnUrl = function() {
|
13025
|
-
return jspb.Message.getField(this,
|
13055
|
+
return jspb.Message.getField(this, 3) != null;
|
13026
13056
|
};
|
13027
13057
|
|
13028
13058
|
|
13029
13059
|
/**
|
13030
|
-
* optional string language =
|
13060
|
+
* optional string language = 4;
|
13031
13061
|
* @return {string}
|
13032
13062
|
*/
|
13033
13063
|
proto.game.InitDemoGameSessionRequest.prototype.getLanguage = function() {
|
13034
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
13064
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
13035
13065
|
};
|
13036
13066
|
|
13037
13067
|
|
@@ -13040,7 +13070,7 @@ proto.game.InitDemoGameSessionRequest.prototype.getLanguage = function() {
|
|
13040
13070
|
* @return {!proto.game.InitDemoGameSessionRequest} returns this
|
13041
13071
|
*/
|
13042
13072
|
proto.game.InitDemoGameSessionRequest.prototype.setLanguage = function(value) {
|
13043
|
-
return jspb.Message.setField(this,
|
13073
|
+
return jspb.Message.setField(this, 4, value);
|
13044
13074
|
};
|
13045
13075
|
|
13046
13076
|
|
@@ -13049,7 +13079,7 @@ proto.game.InitDemoGameSessionRequest.prototype.setLanguage = function(value) {
|
|
13049
13079
|
* @return {!proto.game.InitDemoGameSessionRequest} returns this
|
13050
13080
|
*/
|
13051
13081
|
proto.game.InitDemoGameSessionRequest.prototype.clearLanguage = function() {
|
13052
|
-
return jspb.Message.setField(this,
|
13082
|
+
return jspb.Message.setField(this, 4, undefined);
|
13053
13083
|
};
|
13054
13084
|
|
13055
13085
|
|
@@ -13058,7 +13088,7 @@ proto.game.InitDemoGameSessionRequest.prototype.clearLanguage = function() {
|
|
13058
13088
|
* @return {boolean}
|
13059
13089
|
*/
|
13060
13090
|
proto.game.InitDemoGameSessionRequest.prototype.hasLanguage = function() {
|
13061
|
-
return jspb.Message.getField(this,
|
13091
|
+
return jspb.Message.getField(this, 4) != null;
|
13062
13092
|
};
|
13063
13093
|
|
13064
13094
|
|