protobuf-platform 1.2.688 → 1.2.690
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 +12 -0
- package/game/game_grpc_pb.js +22 -0
- package/game/game_pb.js +438 -3
- package/package.json +1 -1
package/game/game.proto
CHANGED
|
@@ -67,6 +67,7 @@ service Game {
|
|
|
67
67
|
rpc replaceProviderCutoverPlacements(ProviderCutoverRequest) returns (ProviderCutoverAcceptedResponse);
|
|
68
68
|
rpc startProviderDemoAvailabilityCheck(ProviderDemoAvailabilityCheckRequest) returns (ProviderDemoAvailabilityCheckAcceptedResponse);
|
|
69
69
|
rpc setProviderCurrencyManagerEnabled(SetProviderCurrencyManagerEnabledRequest) returns (ProviderCurrencyCapability);
|
|
70
|
+
rpc updateProviderCurrency(UpdateProviderCurrencyRequest) returns (ProviderCurrencyCapability);
|
|
70
71
|
//Games
|
|
71
72
|
rpc parseGames(ParseGamesRequest) returns (ParseGamesResponse);
|
|
72
73
|
rpc readSingleGame(GetGameRequest) returns (GameResponse);
|
|
@@ -488,6 +489,8 @@ message ProviderItem {
|
|
|
488
489
|
repeated GameEntityTranslationItem translations = 13;
|
|
489
490
|
repeated string effective_currencies = 14;
|
|
490
491
|
repeated ProviderCurrencyCapability provider_currencies = 15;
|
|
492
|
+
// ISO 3166-1 alpha-2 codes where the provider is restricted. Empty means none.
|
|
493
|
+
repeated string geo_restrictions = 16;
|
|
491
494
|
}
|
|
492
495
|
message ProviderCurrencyCapability {
|
|
493
496
|
string currency = 1;
|
|
@@ -495,12 +498,21 @@ message ProviderCurrencyCapability {
|
|
|
495
498
|
bool manager_enabled = 3;
|
|
496
499
|
bool effective_active = 4;
|
|
497
500
|
string effective_status = 5;
|
|
501
|
+
bool is_active = 6;
|
|
502
|
+
bool is_priority = 7;
|
|
498
503
|
}
|
|
499
504
|
message SetProviderCurrencyManagerEnabledRequest {
|
|
500
505
|
int32 provider_id = 1;
|
|
501
506
|
string currency = 2;
|
|
502
507
|
bool manager_enabled = 3;
|
|
503
508
|
}
|
|
509
|
+
message UpdateProviderCurrencyRequest {
|
|
510
|
+
int32 provider_id = 1;
|
|
511
|
+
string currency = 2;
|
|
512
|
+
optional bool is_active = 3;
|
|
513
|
+
optional bool manager_enabled = 4;
|
|
514
|
+
optional bool is_priority = 5;
|
|
515
|
+
}
|
|
504
516
|
//Provider CRUD | Requests
|
|
505
517
|
message ProviderRequest {
|
|
506
518
|
oneof request {
|
package/game/game_grpc_pb.js
CHANGED
|
@@ -1555,6 +1555,17 @@ function deserialize_game_TournamentIdsRequest(buffer_arg) {
|
|
|
1555
1555
|
return game_pb.TournamentIdsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1556
1556
|
}
|
|
1557
1557
|
|
|
1558
|
+
function serialize_game_UpdateProviderCurrencyRequest(arg) {
|
|
1559
|
+
if (!(arg instanceof game_pb.UpdateProviderCurrencyRequest)) {
|
|
1560
|
+
throw new Error('Expected argument of type game.UpdateProviderCurrencyRequest');
|
|
1561
|
+
}
|
|
1562
|
+
return Buffer.from(arg.serializeBinary());
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
function deserialize_game_UpdateProviderCurrencyRequest(buffer_arg) {
|
|
1566
|
+
return game_pb.UpdateProviderCurrencyRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1558
1569
|
function serialize_game_VendorActionRequest(arg) {
|
|
1559
1570
|
if (!(arg instanceof game_pb.VendorActionRequest)) {
|
|
1560
1571
|
throw new Error('Expected argument of type game.VendorActionRequest');
|
|
@@ -2278,6 +2289,17 @@ createSingleProvider: {
|
|
|
2278
2289
|
responseSerialize: serialize_game_ProviderCurrencyCapability,
|
|
2279
2290
|
responseDeserialize: deserialize_game_ProviderCurrencyCapability,
|
|
2280
2291
|
},
|
|
2292
|
+
updateProviderCurrency: {
|
|
2293
|
+
path: '/game.Game/updateProviderCurrency',
|
|
2294
|
+
requestStream: false,
|
|
2295
|
+
responseStream: false,
|
|
2296
|
+
requestType: game_pb.UpdateProviderCurrencyRequest,
|
|
2297
|
+
responseType: game_pb.ProviderCurrencyCapability,
|
|
2298
|
+
requestSerialize: serialize_game_UpdateProviderCurrencyRequest,
|
|
2299
|
+
requestDeserialize: deserialize_game_UpdateProviderCurrencyRequest,
|
|
2300
|
+
responseSerialize: serialize_game_ProviderCurrencyCapability,
|
|
2301
|
+
responseDeserialize: deserialize_game_ProviderCurrencyCapability,
|
|
2302
|
+
},
|
|
2281
2303
|
// Games
|
|
2282
2304
|
parseGames: {
|
|
2283
2305
|
path: '/game.Game/parseGames',
|
package/game/game_pb.js
CHANGED
|
@@ -224,6 +224,7 @@ goog.exportSymbol('proto.game.TournamentGamesRequest', null, global);
|
|
|
224
224
|
goog.exportSymbol('proto.game.TournamentGamesSearchRequest', null, global);
|
|
225
225
|
goog.exportSymbol('proto.game.TournamentIdsRequest', null, global);
|
|
226
226
|
goog.exportSymbol('proto.game.TournamentSearchRequest', null, global);
|
|
227
|
+
goog.exportSymbol('proto.game.UpdateProviderCurrencyRequest', null, global);
|
|
227
228
|
goog.exportSymbol('proto.game.UserBalanceGameSessionRequest', null, global);
|
|
228
229
|
goog.exportSymbol('proto.game.VendorActionRequest', null, global);
|
|
229
230
|
goog.exportSymbol('proto.game.VendorActionResponse', null, global);
|
|
@@ -1263,6 +1264,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1263
1264
|
*/
|
|
1264
1265
|
proto.game.SetProviderCurrencyManagerEnabledRequest.displayName = 'proto.game.SetProviderCurrencyManagerEnabledRequest';
|
|
1265
1266
|
}
|
|
1267
|
+
/**
|
|
1268
|
+
* Generated by JsPbCodeGenerator.
|
|
1269
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1270
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1271
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1272
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1273
|
+
* valid.
|
|
1274
|
+
* @extends {jspb.Message}
|
|
1275
|
+
* @constructor
|
|
1276
|
+
*/
|
|
1277
|
+
proto.game.UpdateProviderCurrencyRequest = function(opt_data) {
|
|
1278
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1279
|
+
};
|
|
1280
|
+
goog.inherits(proto.game.UpdateProviderCurrencyRequest, jspb.Message);
|
|
1281
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1282
|
+
/**
|
|
1283
|
+
* @public
|
|
1284
|
+
* @override
|
|
1285
|
+
*/
|
|
1286
|
+
proto.game.UpdateProviderCurrencyRequest.displayName = 'proto.game.UpdateProviderCurrencyRequest';
|
|
1287
|
+
}
|
|
1266
1288
|
/**
|
|
1267
1289
|
* Generated by JsPbCodeGenerator.
|
|
1268
1290
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -18532,7 +18554,7 @@ proto.game.TagGamesRequest.prototype.hasGeo = function() {
|
|
|
18532
18554
|
* @private {!Array<number>}
|
|
18533
18555
|
* @const
|
|
18534
18556
|
*/
|
|
18535
|
-
proto.game.ProviderItem.repeatedFields_ = [13,14,15];
|
|
18557
|
+
proto.game.ProviderItem.repeatedFields_ = [13,14,15,16];
|
|
18536
18558
|
|
|
18537
18559
|
|
|
18538
18560
|
|
|
@@ -18581,7 +18603,8 @@ proto.game.ProviderItem.toObject = function(includeInstance, msg) {
|
|
|
18581
18603
|
proto.game.GameEntityTranslationItem.toObject, includeInstance),
|
|
18582
18604
|
effectiveCurrenciesList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
|
|
18583
18605
|
providerCurrenciesList: jspb.Message.toObjectList(msg.getProviderCurrenciesList(),
|
|
18584
|
-
proto.game.ProviderCurrencyCapability.toObject, includeInstance)
|
|
18606
|
+
proto.game.ProviderCurrencyCapability.toObject, includeInstance),
|
|
18607
|
+
geoRestrictionsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? undefined : f
|
|
18585
18608
|
};
|
|
18586
18609
|
|
|
18587
18610
|
if (includeInstance) {
|
|
@@ -18680,6 +18703,10 @@ proto.game.ProviderItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
18680
18703
|
reader.readMessage(value,proto.game.ProviderCurrencyCapability.deserializeBinaryFromReader);
|
|
18681
18704
|
msg.addProviderCurrencies(value);
|
|
18682
18705
|
break;
|
|
18706
|
+
case 16:
|
|
18707
|
+
var value = /** @type {string} */ (reader.readString());
|
|
18708
|
+
msg.addGeoRestrictions(value);
|
|
18709
|
+
break;
|
|
18683
18710
|
default:
|
|
18684
18711
|
reader.skipField();
|
|
18685
18712
|
break;
|
|
@@ -18816,6 +18843,13 @@ proto.game.ProviderItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
18816
18843
|
proto.game.ProviderCurrencyCapability.serializeBinaryToWriter
|
|
18817
18844
|
);
|
|
18818
18845
|
}
|
|
18846
|
+
f = message.getGeoRestrictionsList();
|
|
18847
|
+
if (f.length > 0) {
|
|
18848
|
+
writer.writeRepeatedString(
|
|
18849
|
+
16,
|
|
18850
|
+
f
|
|
18851
|
+
);
|
|
18852
|
+
}
|
|
18819
18853
|
};
|
|
18820
18854
|
|
|
18821
18855
|
|
|
@@ -19364,6 +19398,43 @@ proto.game.ProviderItem.prototype.clearProviderCurrenciesList = function() {
|
|
|
19364
19398
|
};
|
|
19365
19399
|
|
|
19366
19400
|
|
|
19401
|
+
/**
|
|
19402
|
+
* repeated string geo_restrictions = 16;
|
|
19403
|
+
* @return {!Array<string>}
|
|
19404
|
+
*/
|
|
19405
|
+
proto.game.ProviderItem.prototype.getGeoRestrictionsList = function() {
|
|
19406
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 16));
|
|
19407
|
+
};
|
|
19408
|
+
|
|
19409
|
+
|
|
19410
|
+
/**
|
|
19411
|
+
* @param {!Array<string>} value
|
|
19412
|
+
* @return {!proto.game.ProviderItem} returns this
|
|
19413
|
+
*/
|
|
19414
|
+
proto.game.ProviderItem.prototype.setGeoRestrictionsList = function(value) {
|
|
19415
|
+
return jspb.Message.setField(this, 16, value || []);
|
|
19416
|
+
};
|
|
19417
|
+
|
|
19418
|
+
|
|
19419
|
+
/**
|
|
19420
|
+
* @param {string} value
|
|
19421
|
+
* @param {number=} opt_index
|
|
19422
|
+
* @return {!proto.game.ProviderItem} returns this
|
|
19423
|
+
*/
|
|
19424
|
+
proto.game.ProviderItem.prototype.addGeoRestrictions = function(value, opt_index) {
|
|
19425
|
+
return jspb.Message.addToRepeatedField(this, 16, value, opt_index);
|
|
19426
|
+
};
|
|
19427
|
+
|
|
19428
|
+
|
|
19429
|
+
/**
|
|
19430
|
+
* Clears the list making it empty but non-null.
|
|
19431
|
+
* @return {!proto.game.ProviderItem} returns this
|
|
19432
|
+
*/
|
|
19433
|
+
proto.game.ProviderItem.prototype.clearGeoRestrictionsList = function() {
|
|
19434
|
+
return this.setGeoRestrictionsList([]);
|
|
19435
|
+
};
|
|
19436
|
+
|
|
19437
|
+
|
|
19367
19438
|
|
|
19368
19439
|
|
|
19369
19440
|
|
|
@@ -19400,7 +19471,9 @@ proto.game.ProviderCurrencyCapability.toObject = function(includeInstance, msg)
|
|
|
19400
19471
|
providerSupported: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
19401
19472
|
managerEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
19402
19473
|
effectiveActive: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
19403
|
-
effectiveStatus: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
19474
|
+
effectiveStatus: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
19475
|
+
isActive: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
19476
|
+
isPriority: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
19404
19477
|
};
|
|
19405
19478
|
|
|
19406
19479
|
if (includeInstance) {
|
|
@@ -19457,6 +19530,14 @@ proto.game.ProviderCurrencyCapability.deserializeBinaryFromReader = function(msg
|
|
|
19457
19530
|
var value = /** @type {string} */ (reader.readString());
|
|
19458
19531
|
msg.setEffectiveStatus(value);
|
|
19459
19532
|
break;
|
|
19533
|
+
case 6:
|
|
19534
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
19535
|
+
msg.setIsActive(value);
|
|
19536
|
+
break;
|
|
19537
|
+
case 7:
|
|
19538
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
19539
|
+
msg.setIsPriority(value);
|
|
19540
|
+
break;
|
|
19460
19541
|
default:
|
|
19461
19542
|
reader.skipField();
|
|
19462
19543
|
break;
|
|
@@ -19521,6 +19602,20 @@ proto.game.ProviderCurrencyCapability.serializeBinaryToWriter = function(message
|
|
|
19521
19602
|
f
|
|
19522
19603
|
);
|
|
19523
19604
|
}
|
|
19605
|
+
f = message.getIsActive();
|
|
19606
|
+
if (f) {
|
|
19607
|
+
writer.writeBool(
|
|
19608
|
+
6,
|
|
19609
|
+
f
|
|
19610
|
+
);
|
|
19611
|
+
}
|
|
19612
|
+
f = message.getIsPriority();
|
|
19613
|
+
if (f) {
|
|
19614
|
+
writer.writeBool(
|
|
19615
|
+
7,
|
|
19616
|
+
f
|
|
19617
|
+
);
|
|
19618
|
+
}
|
|
19524
19619
|
};
|
|
19525
19620
|
|
|
19526
19621
|
|
|
@@ -19614,6 +19709,42 @@ proto.game.ProviderCurrencyCapability.prototype.setEffectiveStatus = function(va
|
|
|
19614
19709
|
};
|
|
19615
19710
|
|
|
19616
19711
|
|
|
19712
|
+
/**
|
|
19713
|
+
* optional bool is_active = 6;
|
|
19714
|
+
* @return {boolean}
|
|
19715
|
+
*/
|
|
19716
|
+
proto.game.ProviderCurrencyCapability.prototype.getIsActive = function() {
|
|
19717
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
19718
|
+
};
|
|
19719
|
+
|
|
19720
|
+
|
|
19721
|
+
/**
|
|
19722
|
+
* @param {boolean} value
|
|
19723
|
+
* @return {!proto.game.ProviderCurrencyCapability} returns this
|
|
19724
|
+
*/
|
|
19725
|
+
proto.game.ProviderCurrencyCapability.prototype.setIsActive = function(value) {
|
|
19726
|
+
return jspb.Message.setProto3BooleanField(this, 6, value);
|
|
19727
|
+
};
|
|
19728
|
+
|
|
19729
|
+
|
|
19730
|
+
/**
|
|
19731
|
+
* optional bool is_priority = 7;
|
|
19732
|
+
* @return {boolean}
|
|
19733
|
+
*/
|
|
19734
|
+
proto.game.ProviderCurrencyCapability.prototype.getIsPriority = function() {
|
|
19735
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
19736
|
+
};
|
|
19737
|
+
|
|
19738
|
+
|
|
19739
|
+
/**
|
|
19740
|
+
* @param {boolean} value
|
|
19741
|
+
* @return {!proto.game.ProviderCurrencyCapability} returns this
|
|
19742
|
+
*/
|
|
19743
|
+
proto.game.ProviderCurrencyCapability.prototype.setIsPriority = function(value) {
|
|
19744
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
19745
|
+
};
|
|
19746
|
+
|
|
19747
|
+
|
|
19617
19748
|
|
|
19618
19749
|
|
|
19619
19750
|
|
|
@@ -19805,6 +19936,310 @@ proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.setManagerEnabled
|
|
|
19805
19936
|
|
|
19806
19937
|
|
|
19807
19938
|
|
|
19939
|
+
|
|
19940
|
+
|
|
19941
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
19942
|
+
/**
|
|
19943
|
+
* Creates an object representation of this proto.
|
|
19944
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
19945
|
+
* Optional fields that are not set will be set to undefined.
|
|
19946
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
19947
|
+
* For the list of reserved names please see:
|
|
19948
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
19949
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
19950
|
+
* JSPB instance for transitional soy proto support:
|
|
19951
|
+
* http://goto/soy-param-migration
|
|
19952
|
+
* @return {!Object}
|
|
19953
|
+
*/
|
|
19954
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.toObject = function(opt_includeInstance) {
|
|
19955
|
+
return proto.game.UpdateProviderCurrencyRequest.toObject(opt_includeInstance, this);
|
|
19956
|
+
};
|
|
19957
|
+
|
|
19958
|
+
|
|
19959
|
+
/**
|
|
19960
|
+
* Static version of the {@see toObject} method.
|
|
19961
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
19962
|
+
* the JSPB instance for transitional soy proto support:
|
|
19963
|
+
* http://goto/soy-param-migration
|
|
19964
|
+
* @param {!proto.game.UpdateProviderCurrencyRequest} msg The msg instance to transform.
|
|
19965
|
+
* @return {!Object}
|
|
19966
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
19967
|
+
*/
|
|
19968
|
+
proto.game.UpdateProviderCurrencyRequest.toObject = function(includeInstance, msg) {
|
|
19969
|
+
var f, obj = {
|
|
19970
|
+
providerId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
19971
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
19972
|
+
isActive: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
19973
|
+
managerEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
19974
|
+
isPriority: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
19975
|
+
};
|
|
19976
|
+
|
|
19977
|
+
if (includeInstance) {
|
|
19978
|
+
obj.$jspbMessageInstance = msg;
|
|
19979
|
+
}
|
|
19980
|
+
return obj;
|
|
19981
|
+
};
|
|
19982
|
+
}
|
|
19983
|
+
|
|
19984
|
+
|
|
19985
|
+
/**
|
|
19986
|
+
* Deserializes binary data (in protobuf wire format).
|
|
19987
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
19988
|
+
* @return {!proto.game.UpdateProviderCurrencyRequest}
|
|
19989
|
+
*/
|
|
19990
|
+
proto.game.UpdateProviderCurrencyRequest.deserializeBinary = function(bytes) {
|
|
19991
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
19992
|
+
var msg = new proto.game.UpdateProviderCurrencyRequest;
|
|
19993
|
+
return proto.game.UpdateProviderCurrencyRequest.deserializeBinaryFromReader(msg, reader);
|
|
19994
|
+
};
|
|
19995
|
+
|
|
19996
|
+
|
|
19997
|
+
/**
|
|
19998
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
19999
|
+
* given reader into the given message object.
|
|
20000
|
+
* @param {!proto.game.UpdateProviderCurrencyRequest} msg The message object to deserialize into.
|
|
20001
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
20002
|
+
* @return {!proto.game.UpdateProviderCurrencyRequest}
|
|
20003
|
+
*/
|
|
20004
|
+
proto.game.UpdateProviderCurrencyRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
20005
|
+
while (reader.nextField()) {
|
|
20006
|
+
if (reader.isEndGroup()) {
|
|
20007
|
+
break;
|
|
20008
|
+
}
|
|
20009
|
+
var field = reader.getFieldNumber();
|
|
20010
|
+
switch (field) {
|
|
20011
|
+
case 1:
|
|
20012
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
20013
|
+
msg.setProviderId(value);
|
|
20014
|
+
break;
|
|
20015
|
+
case 2:
|
|
20016
|
+
var value = /** @type {string} */ (reader.readString());
|
|
20017
|
+
msg.setCurrency(value);
|
|
20018
|
+
break;
|
|
20019
|
+
case 3:
|
|
20020
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
20021
|
+
msg.setIsActive(value);
|
|
20022
|
+
break;
|
|
20023
|
+
case 4:
|
|
20024
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
20025
|
+
msg.setManagerEnabled(value);
|
|
20026
|
+
break;
|
|
20027
|
+
case 5:
|
|
20028
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
20029
|
+
msg.setIsPriority(value);
|
|
20030
|
+
break;
|
|
20031
|
+
default:
|
|
20032
|
+
reader.skipField();
|
|
20033
|
+
break;
|
|
20034
|
+
}
|
|
20035
|
+
}
|
|
20036
|
+
return msg;
|
|
20037
|
+
};
|
|
20038
|
+
|
|
20039
|
+
|
|
20040
|
+
/**
|
|
20041
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
20042
|
+
* @return {!Uint8Array}
|
|
20043
|
+
*/
|
|
20044
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.serializeBinary = function() {
|
|
20045
|
+
var writer = new jspb.BinaryWriter();
|
|
20046
|
+
proto.game.UpdateProviderCurrencyRequest.serializeBinaryToWriter(this, writer);
|
|
20047
|
+
return writer.getResultBuffer();
|
|
20048
|
+
};
|
|
20049
|
+
|
|
20050
|
+
|
|
20051
|
+
/**
|
|
20052
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
20053
|
+
* format), writing to the given BinaryWriter.
|
|
20054
|
+
* @param {!proto.game.UpdateProviderCurrencyRequest} message
|
|
20055
|
+
* @param {!jspb.BinaryWriter} writer
|
|
20056
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
20057
|
+
*/
|
|
20058
|
+
proto.game.UpdateProviderCurrencyRequest.serializeBinaryToWriter = function(message, writer) {
|
|
20059
|
+
var f = undefined;
|
|
20060
|
+
f = message.getProviderId();
|
|
20061
|
+
if (f !== 0) {
|
|
20062
|
+
writer.writeInt32(
|
|
20063
|
+
1,
|
|
20064
|
+
f
|
|
20065
|
+
);
|
|
20066
|
+
}
|
|
20067
|
+
f = message.getCurrency();
|
|
20068
|
+
if (f.length > 0) {
|
|
20069
|
+
writer.writeString(
|
|
20070
|
+
2,
|
|
20071
|
+
f
|
|
20072
|
+
);
|
|
20073
|
+
}
|
|
20074
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
|
|
20075
|
+
if (f != null) {
|
|
20076
|
+
writer.writeBool(
|
|
20077
|
+
3,
|
|
20078
|
+
f
|
|
20079
|
+
);
|
|
20080
|
+
}
|
|
20081
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
|
|
20082
|
+
if (f != null) {
|
|
20083
|
+
writer.writeBool(
|
|
20084
|
+
4,
|
|
20085
|
+
f
|
|
20086
|
+
);
|
|
20087
|
+
}
|
|
20088
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
|
|
20089
|
+
if (f != null) {
|
|
20090
|
+
writer.writeBool(
|
|
20091
|
+
5,
|
|
20092
|
+
f
|
|
20093
|
+
);
|
|
20094
|
+
}
|
|
20095
|
+
};
|
|
20096
|
+
|
|
20097
|
+
|
|
20098
|
+
/**
|
|
20099
|
+
* optional int32 provider_id = 1;
|
|
20100
|
+
* @return {number}
|
|
20101
|
+
*/
|
|
20102
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.getProviderId = function() {
|
|
20103
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
20104
|
+
};
|
|
20105
|
+
|
|
20106
|
+
|
|
20107
|
+
/**
|
|
20108
|
+
* @param {number} value
|
|
20109
|
+
* @return {!proto.game.UpdateProviderCurrencyRequest} returns this
|
|
20110
|
+
*/
|
|
20111
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.setProviderId = function(value) {
|
|
20112
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
20113
|
+
};
|
|
20114
|
+
|
|
20115
|
+
|
|
20116
|
+
/**
|
|
20117
|
+
* optional string currency = 2;
|
|
20118
|
+
* @return {string}
|
|
20119
|
+
*/
|
|
20120
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.getCurrency = function() {
|
|
20121
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
20122
|
+
};
|
|
20123
|
+
|
|
20124
|
+
|
|
20125
|
+
/**
|
|
20126
|
+
* @param {string} value
|
|
20127
|
+
* @return {!proto.game.UpdateProviderCurrencyRequest} returns this
|
|
20128
|
+
*/
|
|
20129
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.setCurrency = function(value) {
|
|
20130
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
20131
|
+
};
|
|
20132
|
+
|
|
20133
|
+
|
|
20134
|
+
/**
|
|
20135
|
+
* optional bool is_active = 3;
|
|
20136
|
+
* @return {boolean}
|
|
20137
|
+
*/
|
|
20138
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.getIsActive = function() {
|
|
20139
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
20140
|
+
};
|
|
20141
|
+
|
|
20142
|
+
|
|
20143
|
+
/**
|
|
20144
|
+
* @param {boolean} value
|
|
20145
|
+
* @return {!proto.game.UpdateProviderCurrencyRequest} returns this
|
|
20146
|
+
*/
|
|
20147
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.setIsActive = function(value) {
|
|
20148
|
+
return jspb.Message.setField(this, 3, value);
|
|
20149
|
+
};
|
|
20150
|
+
|
|
20151
|
+
|
|
20152
|
+
/**
|
|
20153
|
+
* Clears the field making it undefined.
|
|
20154
|
+
* @return {!proto.game.UpdateProviderCurrencyRequest} returns this
|
|
20155
|
+
*/
|
|
20156
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.clearIsActive = function() {
|
|
20157
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
20158
|
+
};
|
|
20159
|
+
|
|
20160
|
+
|
|
20161
|
+
/**
|
|
20162
|
+
* Returns whether this field is set.
|
|
20163
|
+
* @return {boolean}
|
|
20164
|
+
*/
|
|
20165
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.hasIsActive = function() {
|
|
20166
|
+
return jspb.Message.getField(this, 3) != null;
|
|
20167
|
+
};
|
|
20168
|
+
|
|
20169
|
+
|
|
20170
|
+
/**
|
|
20171
|
+
* optional bool manager_enabled = 4;
|
|
20172
|
+
* @return {boolean}
|
|
20173
|
+
*/
|
|
20174
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.getManagerEnabled = function() {
|
|
20175
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
20176
|
+
};
|
|
20177
|
+
|
|
20178
|
+
|
|
20179
|
+
/**
|
|
20180
|
+
* @param {boolean} value
|
|
20181
|
+
* @return {!proto.game.UpdateProviderCurrencyRequest} returns this
|
|
20182
|
+
*/
|
|
20183
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.setManagerEnabled = function(value) {
|
|
20184
|
+
return jspb.Message.setField(this, 4, value);
|
|
20185
|
+
};
|
|
20186
|
+
|
|
20187
|
+
|
|
20188
|
+
/**
|
|
20189
|
+
* Clears the field making it undefined.
|
|
20190
|
+
* @return {!proto.game.UpdateProviderCurrencyRequest} returns this
|
|
20191
|
+
*/
|
|
20192
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.clearManagerEnabled = function() {
|
|
20193
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
20194
|
+
};
|
|
20195
|
+
|
|
20196
|
+
|
|
20197
|
+
/**
|
|
20198
|
+
* Returns whether this field is set.
|
|
20199
|
+
* @return {boolean}
|
|
20200
|
+
*/
|
|
20201
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.hasManagerEnabled = function() {
|
|
20202
|
+
return jspb.Message.getField(this, 4) != null;
|
|
20203
|
+
};
|
|
20204
|
+
|
|
20205
|
+
|
|
20206
|
+
/**
|
|
20207
|
+
* optional bool is_priority = 5;
|
|
20208
|
+
* @return {boolean}
|
|
20209
|
+
*/
|
|
20210
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.getIsPriority = function() {
|
|
20211
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
20212
|
+
};
|
|
20213
|
+
|
|
20214
|
+
|
|
20215
|
+
/**
|
|
20216
|
+
* @param {boolean} value
|
|
20217
|
+
* @return {!proto.game.UpdateProviderCurrencyRequest} returns this
|
|
20218
|
+
*/
|
|
20219
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.setIsPriority = function(value) {
|
|
20220
|
+
return jspb.Message.setField(this, 5, value);
|
|
20221
|
+
};
|
|
20222
|
+
|
|
20223
|
+
|
|
20224
|
+
/**
|
|
20225
|
+
* Clears the field making it undefined.
|
|
20226
|
+
* @return {!proto.game.UpdateProviderCurrencyRequest} returns this
|
|
20227
|
+
*/
|
|
20228
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.clearIsPriority = function() {
|
|
20229
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
20230
|
+
};
|
|
20231
|
+
|
|
20232
|
+
|
|
20233
|
+
/**
|
|
20234
|
+
* Returns whether this field is set.
|
|
20235
|
+
* @return {boolean}
|
|
20236
|
+
*/
|
|
20237
|
+
proto.game.UpdateProviderCurrencyRequest.prototype.hasIsPriority = function() {
|
|
20238
|
+
return jspb.Message.getField(this, 5) != null;
|
|
20239
|
+
};
|
|
20240
|
+
|
|
20241
|
+
|
|
20242
|
+
|
|
19808
20243
|
/**
|
|
19809
20244
|
* Oneof group definitions for this message. Each group defines the field
|
|
19810
20245
|
* numbers belonging to that group. When of these fields' value is set, all
|