protobuf-platform 1.0.158 → 1.0.160
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 -4
- package/game/game_pb.js +37 -37
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -83,9 +83,9 @@ message PaginationRequest {
|
|
83
83
|
optional WagerSearchRequest wager_search_params = 4;
|
84
84
|
}
|
85
85
|
message GameSearchRequest {
|
86
|
-
optional
|
87
|
-
optional
|
88
|
-
optional
|
86
|
+
optional int32 is_active = 1;
|
87
|
+
optional int32 is_deactivated = 2;
|
88
|
+
optional int32 has_category = 3;
|
89
89
|
optional string game_title = 4;
|
90
90
|
repeated int32 category_ids = 5;
|
91
91
|
repeated int32 collection_ids = 6;
|
@@ -359,7 +359,7 @@ message GameRelationItem {
|
|
359
359
|
}
|
360
360
|
message GameGeo {
|
361
361
|
string geo = 1;
|
362
|
-
|
362
|
+
bool is_accepted = 2;
|
363
363
|
}
|
364
364
|
//Game CRUD | Responses
|
365
365
|
message GameResponse {
|
package/game/game_pb.js
CHANGED
@@ -2347,9 +2347,9 @@ proto.game.GameSearchRequest.prototype.toObject = function(opt_includeInstance)
|
|
2347
2347
|
*/
|
2348
2348
|
proto.game.GameSearchRequest.toObject = function(includeInstance, msg) {
|
2349
2349
|
var f, obj = {
|
2350
|
-
isActive: jspb.Message.
|
2351
|
-
isDeactivated: jspb.Message.
|
2352
|
-
hasCategory: jspb.Message.
|
2350
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
2351
|
+
isDeactivated: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
2352
|
+
hasCategory: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
2353
2353
|
gameTitle: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
2354
2354
|
categoryIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
2355
2355
|
collectionIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
@@ -2396,15 +2396,15 @@ proto.game.GameSearchRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
2396
2396
|
var field = reader.getFieldNumber();
|
2397
2397
|
switch (field) {
|
2398
2398
|
case 1:
|
2399
|
-
var value = /** @type {
|
2399
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2400
2400
|
msg.setIsActive(value);
|
2401
2401
|
break;
|
2402
2402
|
case 2:
|
2403
|
-
var value = /** @type {
|
2403
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2404
2404
|
msg.setIsDeactivated(value);
|
2405
2405
|
break;
|
2406
2406
|
case 3:
|
2407
|
-
var value = /** @type {
|
2407
|
+
var value = /** @type {number} */ (reader.readInt32());
|
2408
2408
|
msg.setHasCategory(value);
|
2409
2409
|
break;
|
2410
2410
|
case 4:
|
@@ -2480,23 +2480,23 @@ proto.game.GameSearchRequest.prototype.serializeBinary = function() {
|
|
2480
2480
|
*/
|
2481
2481
|
proto.game.GameSearchRequest.serializeBinaryToWriter = function(message, writer) {
|
2482
2482
|
var f = undefined;
|
2483
|
-
f = /** @type {
|
2483
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
2484
2484
|
if (f != null) {
|
2485
|
-
writer.
|
2485
|
+
writer.writeInt32(
|
2486
2486
|
1,
|
2487
2487
|
f
|
2488
2488
|
);
|
2489
2489
|
}
|
2490
|
-
f = /** @type {
|
2490
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
2491
2491
|
if (f != null) {
|
2492
|
-
writer.
|
2492
|
+
writer.writeInt32(
|
2493
2493
|
2,
|
2494
2494
|
f
|
2495
2495
|
);
|
2496
2496
|
}
|
2497
|
-
f = /** @type {
|
2497
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
2498
2498
|
if (f != null) {
|
2499
|
-
writer.
|
2499
|
+
writer.writeInt32(
|
2500
2500
|
3,
|
2501
2501
|
f
|
2502
2502
|
);
|
@@ -2568,16 +2568,16 @@ proto.game.GameSearchRequest.serializeBinaryToWriter = function(message, writer)
|
|
2568
2568
|
|
2569
2569
|
|
2570
2570
|
/**
|
2571
|
-
* optional
|
2572
|
-
* @return {
|
2571
|
+
* optional int32 is_active = 1;
|
2572
|
+
* @return {number}
|
2573
2573
|
*/
|
2574
2574
|
proto.game.GameSearchRequest.prototype.getIsActive = function() {
|
2575
|
-
return /** @type {
|
2575
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2576
2576
|
};
|
2577
2577
|
|
2578
2578
|
|
2579
2579
|
/**
|
2580
|
-
* @param {
|
2580
|
+
* @param {number} value
|
2581
2581
|
* @return {!proto.game.GameSearchRequest} returns this
|
2582
2582
|
*/
|
2583
2583
|
proto.game.GameSearchRequest.prototype.setIsActive = function(value) {
|
@@ -2604,16 +2604,16 @@ proto.game.GameSearchRequest.prototype.hasIsActive = function() {
|
|
2604
2604
|
|
2605
2605
|
|
2606
2606
|
/**
|
2607
|
-
* optional
|
2608
|
-
* @return {
|
2607
|
+
* optional int32 is_deactivated = 2;
|
2608
|
+
* @return {number}
|
2609
2609
|
*/
|
2610
2610
|
proto.game.GameSearchRequest.prototype.getIsDeactivated = function() {
|
2611
|
-
return /** @type {
|
2611
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
2612
2612
|
};
|
2613
2613
|
|
2614
2614
|
|
2615
2615
|
/**
|
2616
|
-
* @param {
|
2616
|
+
* @param {number} value
|
2617
2617
|
* @return {!proto.game.GameSearchRequest} returns this
|
2618
2618
|
*/
|
2619
2619
|
proto.game.GameSearchRequest.prototype.setIsDeactivated = function(value) {
|
@@ -2640,16 +2640,16 @@ proto.game.GameSearchRequest.prototype.hasIsDeactivated = function() {
|
|
2640
2640
|
|
2641
2641
|
|
2642
2642
|
/**
|
2643
|
-
* optional
|
2644
|
-
* @return {
|
2643
|
+
* optional int32 has_category = 3;
|
2644
|
+
* @return {number}
|
2645
2645
|
*/
|
2646
2646
|
proto.game.GameSearchRequest.prototype.getHasCategory = function() {
|
2647
|
-
return /** @type {
|
2647
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
2648
2648
|
};
|
2649
2649
|
|
2650
2650
|
|
2651
2651
|
/**
|
2652
|
-
* @param {
|
2652
|
+
* @param {number} value
|
2653
2653
|
* @return {!proto.game.GameSearchRequest} returns this
|
2654
2654
|
*/
|
2655
2655
|
proto.game.GameSearchRequest.prototype.setHasCategory = function(value) {
|
@@ -14904,7 +14904,7 @@ proto.game.GameGeo.prototype.toObject = function(opt_includeInstance) {
|
|
14904
14904
|
proto.game.GameGeo.toObject = function(includeInstance, msg) {
|
14905
14905
|
var f, obj = {
|
14906
14906
|
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
14907
|
-
|
14907
|
+
isAccepted: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
14908
14908
|
};
|
14909
14909
|
|
14910
14910
|
if (includeInstance) {
|
@@ -14946,8 +14946,8 @@ proto.game.GameGeo.deserializeBinaryFromReader = function(msg, reader) {
|
|
14946
14946
|
msg.setGeo(value);
|
14947
14947
|
break;
|
14948
14948
|
case 2:
|
14949
|
-
var value = /** @type {
|
14950
|
-
msg.
|
14949
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
14950
|
+
msg.setIsAccepted(value);
|
14951
14951
|
break;
|
14952
14952
|
default:
|
14953
14953
|
reader.skipField();
|
@@ -14985,9 +14985,9 @@ proto.game.GameGeo.serializeBinaryToWriter = function(message, writer) {
|
|
14985
14985
|
f
|
14986
14986
|
);
|
14987
14987
|
}
|
14988
|
-
f = message.
|
14989
|
-
if (f
|
14990
|
-
writer.
|
14988
|
+
f = message.getIsAccepted();
|
14989
|
+
if (f) {
|
14990
|
+
writer.writeBool(
|
14991
14991
|
2,
|
14992
14992
|
f
|
14993
14993
|
);
|
@@ -15014,20 +15014,20 @@ proto.game.GameGeo.prototype.setGeo = function(value) {
|
|
15014
15014
|
|
15015
15015
|
|
15016
15016
|
/**
|
15017
|
-
* optional
|
15018
|
-
* @return {
|
15017
|
+
* optional bool is_accepted = 2;
|
15018
|
+
* @return {boolean}
|
15019
15019
|
*/
|
15020
|
-
proto.game.GameGeo.prototype.
|
15021
|
-
return /** @type {
|
15020
|
+
proto.game.GameGeo.prototype.getIsAccepted = function() {
|
15021
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
15022
15022
|
};
|
15023
15023
|
|
15024
15024
|
|
15025
15025
|
/**
|
15026
|
-
* @param {
|
15026
|
+
* @param {boolean} value
|
15027
15027
|
* @return {!proto.game.GameGeo} returns this
|
15028
15028
|
*/
|
15029
|
-
proto.game.GameGeo.prototype.
|
15030
|
-
return jspb.Message.
|
15029
|
+
proto.game.GameGeo.prototype.setIsAccepted = function(value) {
|
15030
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
15031
15031
|
};
|
15032
15032
|
|
15033
15033
|
|