protobuf-platform 1.2.652 → 1.2.654
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/analytic/analytic.proto +15 -0
- package/analytic/analytic_grpc_pb.js +34 -0
- package/analytic/analytic_pb.js +364 -0
- package/game/game.proto +15 -0
- package/game/game_grpc_pb.js +33 -0
- package/game/game_pb.js +588 -2
- package/package.json +1 -1
package/analytic/analytic.proto
CHANGED
|
@@ -23,6 +23,8 @@ service Analytic {
|
|
|
23
23
|
rpc getScaleoActivityBuckets(ScaleoActivityBucketsRequest) returns (ScaleoActivityBucketsResponse);
|
|
24
24
|
// Affiliate Data API: wager aggregation, filtering, sorting, and pagination are owned by analytic-service.
|
|
25
25
|
rpc getAffiliateWageredPlayers(GetAffiliateWageredPlayersRequest) returns (GetAffiliateWageredPlayersResponse);
|
|
26
|
+
// Lifetime casino Real GGR for one player. Analytic owns the aggregate.
|
|
27
|
+
rpc getUserCasinoRealGgr(GetUserCasinoRealGgrRequest) returns (GetUserCasinoRealGgrResponse);
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
//Technical
|
|
@@ -323,4 +325,17 @@ message GetAffiliateWageredPlayersResponse {
|
|
|
323
325
|
repeated AffiliateWageredPlayerItem items = 1;
|
|
324
326
|
optional int32 total_items = 2;
|
|
325
327
|
optional int32 total_pages = 3;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
// Lifetime casino Real GGR.
|
|
331
|
+
// real_ggr is the existing GameActions.ggr_real sum: real-money stakes minus real-money winnings.
|
|
332
|
+
// Bonus gameplay, sport, deposits, withdrawals, hold, and wallet balance are not included.
|
|
333
|
+
// No real-money gameplay returns a normalized zero. The sign is preserved.
|
|
334
|
+
message GetUserCasinoRealGgrRequest {
|
|
335
|
+
int32 user_id = 1;
|
|
336
|
+
}
|
|
337
|
+
message GetUserCasinoRealGgrResponse {
|
|
338
|
+
int32 user_id = 1;
|
|
339
|
+
string currency = 2; // Brand base currency of the stored aggregate.
|
|
340
|
+
string real_ggr = 3; // Signed major-unit decimal string.
|
|
326
341
|
}
|
|
@@ -70,6 +70,28 @@ function deserialize_analytic_GetAffiliateWageredPlayersResponse(buffer_arg) {
|
|
|
70
70
|
return analytic_pb.GetAffiliateWageredPlayersResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
function serialize_analytic_GetUserCasinoRealGgrRequest(arg) {
|
|
74
|
+
if (!(arg instanceof analytic_pb.GetUserCasinoRealGgrRequest)) {
|
|
75
|
+
throw new Error('Expected argument of type analytic.GetUserCasinoRealGgrRequest');
|
|
76
|
+
}
|
|
77
|
+
return Buffer.from(arg.serializeBinary());
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function deserialize_analytic_GetUserCasinoRealGgrRequest(buffer_arg) {
|
|
81
|
+
return analytic_pb.GetUserCasinoRealGgrRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function serialize_analytic_GetUserCasinoRealGgrResponse(arg) {
|
|
85
|
+
if (!(arg instanceof analytic_pb.GetUserCasinoRealGgrResponse)) {
|
|
86
|
+
throw new Error('Expected argument of type analytic.GetUserCasinoRealGgrResponse');
|
|
87
|
+
}
|
|
88
|
+
return Buffer.from(arg.serializeBinary());
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function deserialize_analytic_GetUserCasinoRealGgrResponse(buffer_arg) {
|
|
92
|
+
return analytic_pb.GetUserCasinoRealGgrResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
93
|
+
}
|
|
94
|
+
|
|
73
95
|
function serialize_analytic_GlobalCasinoResponse(arg) {
|
|
74
96
|
if (!(arg instanceof analytic_pb.GlobalCasinoResponse)) {
|
|
75
97
|
throw new Error('Expected argument of type analytic.GlobalCasinoResponse');
|
|
@@ -323,6 +345,18 @@ getAffiliateWageredPlayers: {
|
|
|
323
345
|
responseSerialize: serialize_analytic_GetAffiliateWageredPlayersResponse,
|
|
324
346
|
responseDeserialize: deserialize_analytic_GetAffiliateWageredPlayersResponse,
|
|
325
347
|
},
|
|
348
|
+
// Lifetime casino Real GGR for one player. Analytic owns the aggregate.
|
|
349
|
+
getUserCasinoRealGgr: {
|
|
350
|
+
path: '/analytic.Analytic/getUserCasinoRealGgr',
|
|
351
|
+
requestStream: false,
|
|
352
|
+
responseStream: false,
|
|
353
|
+
requestType: analytic_pb.GetUserCasinoRealGgrRequest,
|
|
354
|
+
responseType: analytic_pb.GetUserCasinoRealGgrResponse,
|
|
355
|
+
requestSerialize: serialize_analytic_GetUserCasinoRealGgrRequest,
|
|
356
|
+
requestDeserialize: deserialize_analytic_GetUserCasinoRealGgrRequest,
|
|
357
|
+
responseSerialize: serialize_analytic_GetUserCasinoRealGgrResponse,
|
|
358
|
+
responseDeserialize: deserialize_analytic_GetUserCasinoRealGgrResponse,
|
|
359
|
+
},
|
|
326
360
|
};
|
|
327
361
|
|
|
328
362
|
exports.AnalyticClient = grpc.makeGenericClientConstructor(AnalyticService, 'Analytic');
|
package/analytic/analytic_pb.js
CHANGED
|
@@ -34,6 +34,8 @@ goog.exportSymbol('proto.analytic.GameItemWrapper', null, global);
|
|
|
34
34
|
goog.exportSymbol('proto.analytic.GamesResponse', null, global);
|
|
35
35
|
goog.exportSymbol('proto.analytic.GetAffiliateWageredPlayersRequest', null, global);
|
|
36
36
|
goog.exportSymbol('proto.analytic.GetAffiliateWageredPlayersResponse', null, global);
|
|
37
|
+
goog.exportSymbol('proto.analytic.GetUserCasinoRealGgrRequest', null, global);
|
|
38
|
+
goog.exportSymbol('proto.analytic.GetUserCasinoRealGgrResponse', null, global);
|
|
37
39
|
goog.exportSymbol('proto.analytic.GlobalCasinoItem', null, global);
|
|
38
40
|
goog.exportSymbol('proto.analytic.GlobalCasinoResponse', null, global);
|
|
39
41
|
goog.exportSymbol('proto.analytic.GlobalSearchRequest', null, global);
|
|
@@ -681,6 +683,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
681
683
|
*/
|
|
682
684
|
proto.analytic.GetAffiliateWageredPlayersResponse.displayName = 'proto.analytic.GetAffiliateWageredPlayersResponse';
|
|
683
685
|
}
|
|
686
|
+
/**
|
|
687
|
+
* Generated by JsPbCodeGenerator.
|
|
688
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
689
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
690
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
691
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
692
|
+
* valid.
|
|
693
|
+
* @extends {jspb.Message}
|
|
694
|
+
* @constructor
|
|
695
|
+
*/
|
|
696
|
+
proto.analytic.GetUserCasinoRealGgrRequest = function(opt_data) {
|
|
697
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
698
|
+
};
|
|
699
|
+
goog.inherits(proto.analytic.GetUserCasinoRealGgrRequest, jspb.Message);
|
|
700
|
+
if (goog.DEBUG && !COMPILED) {
|
|
701
|
+
/**
|
|
702
|
+
* @public
|
|
703
|
+
* @override
|
|
704
|
+
*/
|
|
705
|
+
proto.analytic.GetUserCasinoRealGgrRequest.displayName = 'proto.analytic.GetUserCasinoRealGgrRequest';
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Generated by JsPbCodeGenerator.
|
|
709
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
710
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
711
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
712
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
713
|
+
* valid.
|
|
714
|
+
* @extends {jspb.Message}
|
|
715
|
+
* @constructor
|
|
716
|
+
*/
|
|
717
|
+
proto.analytic.GetUserCasinoRealGgrResponse = function(opt_data) {
|
|
718
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
719
|
+
};
|
|
720
|
+
goog.inherits(proto.analytic.GetUserCasinoRealGgrResponse, jspb.Message);
|
|
721
|
+
if (goog.DEBUG && !COMPILED) {
|
|
722
|
+
/**
|
|
723
|
+
* @public
|
|
724
|
+
* @override
|
|
725
|
+
*/
|
|
726
|
+
proto.analytic.GetUserCasinoRealGgrResponse.displayName = 'proto.analytic.GetUserCasinoRealGgrResponse';
|
|
727
|
+
}
|
|
684
728
|
|
|
685
729
|
|
|
686
730
|
|
|
@@ -12558,4 +12602,324 @@ proto.analytic.GetAffiliateWageredPlayersResponse.prototype.hasTotalPages = func
|
|
|
12558
12602
|
};
|
|
12559
12603
|
|
|
12560
12604
|
|
|
12605
|
+
|
|
12606
|
+
|
|
12607
|
+
|
|
12608
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12609
|
+
/**
|
|
12610
|
+
* Creates an object representation of this proto.
|
|
12611
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
12612
|
+
* Optional fields that are not set will be set to undefined.
|
|
12613
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
12614
|
+
* For the list of reserved names please see:
|
|
12615
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
12616
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
12617
|
+
* JSPB instance for transitional soy proto support:
|
|
12618
|
+
* http://goto/soy-param-migration
|
|
12619
|
+
* @return {!Object}
|
|
12620
|
+
*/
|
|
12621
|
+
proto.analytic.GetUserCasinoRealGgrRequest.prototype.toObject = function(opt_includeInstance) {
|
|
12622
|
+
return proto.analytic.GetUserCasinoRealGgrRequest.toObject(opt_includeInstance, this);
|
|
12623
|
+
};
|
|
12624
|
+
|
|
12625
|
+
|
|
12626
|
+
/**
|
|
12627
|
+
* Static version of the {@see toObject} method.
|
|
12628
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
12629
|
+
* the JSPB instance for transitional soy proto support:
|
|
12630
|
+
* http://goto/soy-param-migration
|
|
12631
|
+
* @param {!proto.analytic.GetUserCasinoRealGgrRequest} msg The msg instance to transform.
|
|
12632
|
+
* @return {!Object}
|
|
12633
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12634
|
+
*/
|
|
12635
|
+
proto.analytic.GetUserCasinoRealGgrRequest.toObject = function(includeInstance, msg) {
|
|
12636
|
+
var f, obj = {
|
|
12637
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
12638
|
+
};
|
|
12639
|
+
|
|
12640
|
+
if (includeInstance) {
|
|
12641
|
+
obj.$jspbMessageInstance = msg;
|
|
12642
|
+
}
|
|
12643
|
+
return obj;
|
|
12644
|
+
};
|
|
12645
|
+
}
|
|
12646
|
+
|
|
12647
|
+
|
|
12648
|
+
/**
|
|
12649
|
+
* Deserializes binary data (in protobuf wire format).
|
|
12650
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
12651
|
+
* @return {!proto.analytic.GetUserCasinoRealGgrRequest}
|
|
12652
|
+
*/
|
|
12653
|
+
proto.analytic.GetUserCasinoRealGgrRequest.deserializeBinary = function(bytes) {
|
|
12654
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
12655
|
+
var msg = new proto.analytic.GetUserCasinoRealGgrRequest;
|
|
12656
|
+
return proto.analytic.GetUserCasinoRealGgrRequest.deserializeBinaryFromReader(msg, reader);
|
|
12657
|
+
};
|
|
12658
|
+
|
|
12659
|
+
|
|
12660
|
+
/**
|
|
12661
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
12662
|
+
* given reader into the given message object.
|
|
12663
|
+
* @param {!proto.analytic.GetUserCasinoRealGgrRequest} msg The message object to deserialize into.
|
|
12664
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
12665
|
+
* @return {!proto.analytic.GetUserCasinoRealGgrRequest}
|
|
12666
|
+
*/
|
|
12667
|
+
proto.analytic.GetUserCasinoRealGgrRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
12668
|
+
while (reader.nextField()) {
|
|
12669
|
+
if (reader.isEndGroup()) {
|
|
12670
|
+
break;
|
|
12671
|
+
}
|
|
12672
|
+
var field = reader.getFieldNumber();
|
|
12673
|
+
switch (field) {
|
|
12674
|
+
case 1:
|
|
12675
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
12676
|
+
msg.setUserId(value);
|
|
12677
|
+
break;
|
|
12678
|
+
default:
|
|
12679
|
+
reader.skipField();
|
|
12680
|
+
break;
|
|
12681
|
+
}
|
|
12682
|
+
}
|
|
12683
|
+
return msg;
|
|
12684
|
+
};
|
|
12685
|
+
|
|
12686
|
+
|
|
12687
|
+
/**
|
|
12688
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
12689
|
+
* @return {!Uint8Array}
|
|
12690
|
+
*/
|
|
12691
|
+
proto.analytic.GetUserCasinoRealGgrRequest.prototype.serializeBinary = function() {
|
|
12692
|
+
var writer = new jspb.BinaryWriter();
|
|
12693
|
+
proto.analytic.GetUserCasinoRealGgrRequest.serializeBinaryToWriter(this, writer);
|
|
12694
|
+
return writer.getResultBuffer();
|
|
12695
|
+
};
|
|
12696
|
+
|
|
12697
|
+
|
|
12698
|
+
/**
|
|
12699
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
12700
|
+
* format), writing to the given BinaryWriter.
|
|
12701
|
+
* @param {!proto.analytic.GetUserCasinoRealGgrRequest} message
|
|
12702
|
+
* @param {!jspb.BinaryWriter} writer
|
|
12703
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12704
|
+
*/
|
|
12705
|
+
proto.analytic.GetUserCasinoRealGgrRequest.serializeBinaryToWriter = function(message, writer) {
|
|
12706
|
+
var f = undefined;
|
|
12707
|
+
f = message.getUserId();
|
|
12708
|
+
if (f !== 0) {
|
|
12709
|
+
writer.writeInt32(
|
|
12710
|
+
1,
|
|
12711
|
+
f
|
|
12712
|
+
);
|
|
12713
|
+
}
|
|
12714
|
+
};
|
|
12715
|
+
|
|
12716
|
+
|
|
12717
|
+
/**
|
|
12718
|
+
* optional int32 user_id = 1;
|
|
12719
|
+
* @return {number}
|
|
12720
|
+
*/
|
|
12721
|
+
proto.analytic.GetUserCasinoRealGgrRequest.prototype.getUserId = function() {
|
|
12722
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
12723
|
+
};
|
|
12724
|
+
|
|
12725
|
+
|
|
12726
|
+
/**
|
|
12727
|
+
* @param {number} value
|
|
12728
|
+
* @return {!proto.analytic.GetUserCasinoRealGgrRequest} returns this
|
|
12729
|
+
*/
|
|
12730
|
+
proto.analytic.GetUserCasinoRealGgrRequest.prototype.setUserId = function(value) {
|
|
12731
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
12732
|
+
};
|
|
12733
|
+
|
|
12734
|
+
|
|
12735
|
+
|
|
12736
|
+
|
|
12737
|
+
|
|
12738
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12739
|
+
/**
|
|
12740
|
+
* Creates an object representation of this proto.
|
|
12741
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
12742
|
+
* Optional fields that are not set will be set to undefined.
|
|
12743
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
12744
|
+
* For the list of reserved names please see:
|
|
12745
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
12746
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
12747
|
+
* JSPB instance for transitional soy proto support:
|
|
12748
|
+
* http://goto/soy-param-migration
|
|
12749
|
+
* @return {!Object}
|
|
12750
|
+
*/
|
|
12751
|
+
proto.analytic.GetUserCasinoRealGgrResponse.prototype.toObject = function(opt_includeInstance) {
|
|
12752
|
+
return proto.analytic.GetUserCasinoRealGgrResponse.toObject(opt_includeInstance, this);
|
|
12753
|
+
};
|
|
12754
|
+
|
|
12755
|
+
|
|
12756
|
+
/**
|
|
12757
|
+
* Static version of the {@see toObject} method.
|
|
12758
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
12759
|
+
* the JSPB instance for transitional soy proto support:
|
|
12760
|
+
* http://goto/soy-param-migration
|
|
12761
|
+
* @param {!proto.analytic.GetUserCasinoRealGgrResponse} msg The msg instance to transform.
|
|
12762
|
+
* @return {!Object}
|
|
12763
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12764
|
+
*/
|
|
12765
|
+
proto.analytic.GetUserCasinoRealGgrResponse.toObject = function(includeInstance, msg) {
|
|
12766
|
+
var f, obj = {
|
|
12767
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
12768
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
12769
|
+
realGgr: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
12770
|
+
};
|
|
12771
|
+
|
|
12772
|
+
if (includeInstance) {
|
|
12773
|
+
obj.$jspbMessageInstance = msg;
|
|
12774
|
+
}
|
|
12775
|
+
return obj;
|
|
12776
|
+
};
|
|
12777
|
+
}
|
|
12778
|
+
|
|
12779
|
+
|
|
12780
|
+
/**
|
|
12781
|
+
* Deserializes binary data (in protobuf wire format).
|
|
12782
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
12783
|
+
* @return {!proto.analytic.GetUserCasinoRealGgrResponse}
|
|
12784
|
+
*/
|
|
12785
|
+
proto.analytic.GetUserCasinoRealGgrResponse.deserializeBinary = function(bytes) {
|
|
12786
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
12787
|
+
var msg = new proto.analytic.GetUserCasinoRealGgrResponse;
|
|
12788
|
+
return proto.analytic.GetUserCasinoRealGgrResponse.deserializeBinaryFromReader(msg, reader);
|
|
12789
|
+
};
|
|
12790
|
+
|
|
12791
|
+
|
|
12792
|
+
/**
|
|
12793
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
12794
|
+
* given reader into the given message object.
|
|
12795
|
+
* @param {!proto.analytic.GetUserCasinoRealGgrResponse} msg The message object to deserialize into.
|
|
12796
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
12797
|
+
* @return {!proto.analytic.GetUserCasinoRealGgrResponse}
|
|
12798
|
+
*/
|
|
12799
|
+
proto.analytic.GetUserCasinoRealGgrResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
12800
|
+
while (reader.nextField()) {
|
|
12801
|
+
if (reader.isEndGroup()) {
|
|
12802
|
+
break;
|
|
12803
|
+
}
|
|
12804
|
+
var field = reader.getFieldNumber();
|
|
12805
|
+
switch (field) {
|
|
12806
|
+
case 1:
|
|
12807
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
12808
|
+
msg.setUserId(value);
|
|
12809
|
+
break;
|
|
12810
|
+
case 2:
|
|
12811
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12812
|
+
msg.setCurrency(value);
|
|
12813
|
+
break;
|
|
12814
|
+
case 3:
|
|
12815
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12816
|
+
msg.setRealGgr(value);
|
|
12817
|
+
break;
|
|
12818
|
+
default:
|
|
12819
|
+
reader.skipField();
|
|
12820
|
+
break;
|
|
12821
|
+
}
|
|
12822
|
+
}
|
|
12823
|
+
return msg;
|
|
12824
|
+
};
|
|
12825
|
+
|
|
12826
|
+
|
|
12827
|
+
/**
|
|
12828
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
12829
|
+
* @return {!Uint8Array}
|
|
12830
|
+
*/
|
|
12831
|
+
proto.analytic.GetUserCasinoRealGgrResponse.prototype.serializeBinary = function() {
|
|
12832
|
+
var writer = new jspb.BinaryWriter();
|
|
12833
|
+
proto.analytic.GetUserCasinoRealGgrResponse.serializeBinaryToWriter(this, writer);
|
|
12834
|
+
return writer.getResultBuffer();
|
|
12835
|
+
};
|
|
12836
|
+
|
|
12837
|
+
|
|
12838
|
+
/**
|
|
12839
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
12840
|
+
* format), writing to the given BinaryWriter.
|
|
12841
|
+
* @param {!proto.analytic.GetUserCasinoRealGgrResponse} message
|
|
12842
|
+
* @param {!jspb.BinaryWriter} writer
|
|
12843
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12844
|
+
*/
|
|
12845
|
+
proto.analytic.GetUserCasinoRealGgrResponse.serializeBinaryToWriter = function(message, writer) {
|
|
12846
|
+
var f = undefined;
|
|
12847
|
+
f = message.getUserId();
|
|
12848
|
+
if (f !== 0) {
|
|
12849
|
+
writer.writeInt32(
|
|
12850
|
+
1,
|
|
12851
|
+
f
|
|
12852
|
+
);
|
|
12853
|
+
}
|
|
12854
|
+
f = message.getCurrency();
|
|
12855
|
+
if (f.length > 0) {
|
|
12856
|
+
writer.writeString(
|
|
12857
|
+
2,
|
|
12858
|
+
f
|
|
12859
|
+
);
|
|
12860
|
+
}
|
|
12861
|
+
f = message.getRealGgr();
|
|
12862
|
+
if (f.length > 0) {
|
|
12863
|
+
writer.writeString(
|
|
12864
|
+
3,
|
|
12865
|
+
f
|
|
12866
|
+
);
|
|
12867
|
+
}
|
|
12868
|
+
};
|
|
12869
|
+
|
|
12870
|
+
|
|
12871
|
+
/**
|
|
12872
|
+
* optional int32 user_id = 1;
|
|
12873
|
+
* @return {number}
|
|
12874
|
+
*/
|
|
12875
|
+
proto.analytic.GetUserCasinoRealGgrResponse.prototype.getUserId = function() {
|
|
12876
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
12877
|
+
};
|
|
12878
|
+
|
|
12879
|
+
|
|
12880
|
+
/**
|
|
12881
|
+
* @param {number} value
|
|
12882
|
+
* @return {!proto.analytic.GetUserCasinoRealGgrResponse} returns this
|
|
12883
|
+
*/
|
|
12884
|
+
proto.analytic.GetUserCasinoRealGgrResponse.prototype.setUserId = function(value) {
|
|
12885
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
12886
|
+
};
|
|
12887
|
+
|
|
12888
|
+
|
|
12889
|
+
/**
|
|
12890
|
+
* optional string currency = 2;
|
|
12891
|
+
* @return {string}
|
|
12892
|
+
*/
|
|
12893
|
+
proto.analytic.GetUserCasinoRealGgrResponse.prototype.getCurrency = function() {
|
|
12894
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
12895
|
+
};
|
|
12896
|
+
|
|
12897
|
+
|
|
12898
|
+
/**
|
|
12899
|
+
* @param {string} value
|
|
12900
|
+
* @return {!proto.analytic.GetUserCasinoRealGgrResponse} returns this
|
|
12901
|
+
*/
|
|
12902
|
+
proto.analytic.GetUserCasinoRealGgrResponse.prototype.setCurrency = function(value) {
|
|
12903
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
12904
|
+
};
|
|
12905
|
+
|
|
12906
|
+
|
|
12907
|
+
/**
|
|
12908
|
+
* optional string real_ggr = 3;
|
|
12909
|
+
* @return {string}
|
|
12910
|
+
*/
|
|
12911
|
+
proto.analytic.GetUserCasinoRealGgrResponse.prototype.getRealGgr = function() {
|
|
12912
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
12913
|
+
};
|
|
12914
|
+
|
|
12915
|
+
|
|
12916
|
+
/**
|
|
12917
|
+
* @param {string} value
|
|
12918
|
+
* @return {!proto.analytic.GetUserCasinoRealGgrResponse} returns this
|
|
12919
|
+
*/
|
|
12920
|
+
proto.analytic.GetUserCasinoRealGgrResponse.prototype.setRealGgr = function(value) {
|
|
12921
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
12922
|
+
};
|
|
12923
|
+
|
|
12924
|
+
|
|
12561
12925
|
goog.object.extend(exports, proto.analytic);
|
package/game/game.proto
CHANGED
|
@@ -66,6 +66,7 @@ service Game {
|
|
|
66
66
|
rpc prepareProviderCutover(ProviderCutoverRequest) returns (ProviderCutoverAcceptedResponse);
|
|
67
67
|
rpc replaceProviderCutoverPlacements(ProviderCutoverRequest) returns (ProviderCutoverAcceptedResponse);
|
|
68
68
|
rpc startProviderDemoAvailabilityCheck(ProviderDemoAvailabilityCheckRequest) returns (ProviderDemoAvailabilityCheckAcceptedResponse);
|
|
69
|
+
rpc setProviderCurrencyManagerEnabled(SetProviderCurrencyManagerEnabledRequest) returns (ProviderCurrencyCapability);
|
|
69
70
|
//Games
|
|
70
71
|
rpc parseGames(ParseGamesRequest) returns (ParseGamesResponse);
|
|
71
72
|
rpc readSingleGame(GetGameRequest) returns (GameResponse);
|
|
@@ -478,6 +479,20 @@ message ProviderItem {
|
|
|
478
479
|
optional string icon = 11;
|
|
479
480
|
optional string icon_cdn = 12;
|
|
480
481
|
repeated GameEntityTranslationItem translations = 13;
|
|
482
|
+
repeated string effective_currencies = 14;
|
|
483
|
+
repeated ProviderCurrencyCapability provider_currencies = 15;
|
|
484
|
+
}
|
|
485
|
+
message ProviderCurrencyCapability {
|
|
486
|
+
string currency = 1;
|
|
487
|
+
bool provider_supported = 2;
|
|
488
|
+
bool manager_enabled = 3;
|
|
489
|
+
bool effective_active = 4;
|
|
490
|
+
string effective_status = 5;
|
|
491
|
+
}
|
|
492
|
+
message SetProviderCurrencyManagerEnabledRequest {
|
|
493
|
+
int32 provider_id = 1;
|
|
494
|
+
string currency = 2;
|
|
495
|
+
bool manager_enabled = 3;
|
|
481
496
|
}
|
|
482
497
|
//Provider CRUD | Requests
|
|
483
498
|
message ProviderRequest {
|
package/game/game_grpc_pb.js
CHANGED
|
@@ -1082,6 +1082,17 @@ function deserialize_game_ProviderCatalogBatchResponse(buffer_arg) {
|
|
|
1082
1082
|
return game_pb.ProviderCatalogBatchResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1083
1083
|
}
|
|
1084
1084
|
|
|
1085
|
+
function serialize_game_ProviderCurrencyCapability(arg) {
|
|
1086
|
+
if (!(arg instanceof game_pb.ProviderCurrencyCapability)) {
|
|
1087
|
+
throw new Error('Expected argument of type game.ProviderCurrencyCapability');
|
|
1088
|
+
}
|
|
1089
|
+
return Buffer.from(arg.serializeBinary());
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
function deserialize_game_ProviderCurrencyCapability(buffer_arg) {
|
|
1093
|
+
return game_pb.ProviderCurrencyCapability.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1085
1096
|
function serialize_game_ProviderCutoverAcceptedResponse(arg) {
|
|
1086
1097
|
if (!(arg instanceof game_pb.ProviderCutoverAcceptedResponse)) {
|
|
1087
1098
|
throw new Error('Expected argument of type game.ProviderCutoverAcceptedResponse');
|
|
@@ -1379,6 +1390,17 @@ function deserialize_game_SegmentedUserResponse(buffer_arg) {
|
|
|
1379
1390
|
return game_pb.SegmentedUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1380
1391
|
}
|
|
1381
1392
|
|
|
1393
|
+
function serialize_game_SetProviderCurrencyManagerEnabledRequest(arg) {
|
|
1394
|
+
if (!(arg instanceof game_pb.SetProviderCurrencyManagerEnabledRequest)) {
|
|
1395
|
+
throw new Error('Expected argument of type game.SetProviderCurrencyManagerEnabledRequest');
|
|
1396
|
+
}
|
|
1397
|
+
return Buffer.from(arg.serializeBinary());
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
function deserialize_game_SetProviderCurrencyManagerEnabledRequest(buffer_arg) {
|
|
1401
|
+
return game_pb.SetProviderCurrencyManagerEnabledRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1382
1404
|
function serialize_game_SyncGameImageUrlsForProviderRequest(arg) {
|
|
1383
1405
|
if (!(arg instanceof game_pb.SyncGameImageUrlsForProviderRequest)) {
|
|
1384
1406
|
throw new Error('Expected argument of type game.SyncGameImageUrlsForProviderRequest');
|
|
@@ -2223,6 +2245,17 @@ createSingleProvider: {
|
|
|
2223
2245
|
responseSerialize: serialize_game_ProviderDemoAvailabilityCheckAcceptedResponse,
|
|
2224
2246
|
responseDeserialize: deserialize_game_ProviderDemoAvailabilityCheckAcceptedResponse,
|
|
2225
2247
|
},
|
|
2248
|
+
setProviderCurrencyManagerEnabled: {
|
|
2249
|
+
path: '/game.Game/setProviderCurrencyManagerEnabled',
|
|
2250
|
+
requestStream: false,
|
|
2251
|
+
responseStream: false,
|
|
2252
|
+
requestType: game_pb.SetProviderCurrencyManagerEnabledRequest,
|
|
2253
|
+
responseType: game_pb.ProviderCurrencyCapability,
|
|
2254
|
+
requestSerialize: serialize_game_SetProviderCurrencyManagerEnabledRequest,
|
|
2255
|
+
requestDeserialize: deserialize_game_SetProviderCurrencyManagerEnabledRequest,
|
|
2256
|
+
responseSerialize: serialize_game_ProviderCurrencyCapability,
|
|
2257
|
+
responseDeserialize: deserialize_game_ProviderCurrencyCapability,
|
|
2258
|
+
},
|
|
2226
2259
|
// Games
|
|
2227
2260
|
parseGames: {
|
|
2228
2261
|
path: '/game.Game/parseGames',
|
package/game/game_pb.js
CHANGED
|
@@ -160,6 +160,7 @@ goog.exportSymbol('proto.game.PingRequest', null, global);
|
|
|
160
160
|
goog.exportSymbol('proto.game.PongResponse', null, global);
|
|
161
161
|
goog.exportSymbol('proto.game.ProviderCatalogBatchItem', null, global);
|
|
162
162
|
goog.exportSymbol('proto.game.ProviderCatalogBatchResponse', null, global);
|
|
163
|
+
goog.exportSymbol('proto.game.ProviderCurrencyCapability', null, global);
|
|
163
164
|
goog.exportSymbol('proto.game.ProviderCutoverAcceptedResponse', null, global);
|
|
164
165
|
goog.exportSymbol('proto.game.ProviderCutoverProblemItem', null, global);
|
|
165
166
|
goog.exportSymbol('proto.game.ProviderCutoverProviderItem', null, global);
|
|
@@ -200,6 +201,7 @@ goog.exportSymbol('proto.game.SearchGamesIntoTagsRequest', null, global);
|
|
|
200
201
|
goog.exportSymbol('proto.game.SearchGamesResponse', null, global);
|
|
201
202
|
goog.exportSymbol('proto.game.SegmentedUserRequest', null, global);
|
|
202
203
|
goog.exportSymbol('proto.game.SegmentedUserResponse', null, global);
|
|
204
|
+
goog.exportSymbol('proto.game.SetProviderCurrencyManagerEnabledRequest', null, global);
|
|
203
205
|
goog.exportSymbol('proto.game.SyncGameImageUrlsForProviderRequest', null, global);
|
|
204
206
|
goog.exportSymbol('proto.game.SyncGameImageUrlsRequest', null, global);
|
|
205
207
|
goog.exportSymbol('proto.game.SyncImagesRequest', null, global);
|
|
@@ -1217,6 +1219,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1217
1219
|
*/
|
|
1218
1220
|
proto.game.ProviderItem.displayName = 'proto.game.ProviderItem';
|
|
1219
1221
|
}
|
|
1222
|
+
/**
|
|
1223
|
+
* Generated by JsPbCodeGenerator.
|
|
1224
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1225
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1226
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1227
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1228
|
+
* valid.
|
|
1229
|
+
* @extends {jspb.Message}
|
|
1230
|
+
* @constructor
|
|
1231
|
+
*/
|
|
1232
|
+
proto.game.ProviderCurrencyCapability = function(opt_data) {
|
|
1233
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1234
|
+
};
|
|
1235
|
+
goog.inherits(proto.game.ProviderCurrencyCapability, jspb.Message);
|
|
1236
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1237
|
+
/**
|
|
1238
|
+
* @public
|
|
1239
|
+
* @override
|
|
1240
|
+
*/
|
|
1241
|
+
proto.game.ProviderCurrencyCapability.displayName = 'proto.game.ProviderCurrencyCapability';
|
|
1242
|
+
}
|
|
1243
|
+
/**
|
|
1244
|
+
* Generated by JsPbCodeGenerator.
|
|
1245
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1246
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1247
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1248
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1249
|
+
* valid.
|
|
1250
|
+
* @extends {jspb.Message}
|
|
1251
|
+
* @constructor
|
|
1252
|
+
*/
|
|
1253
|
+
proto.game.SetProviderCurrencyManagerEnabledRequest = function(opt_data) {
|
|
1254
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1255
|
+
};
|
|
1256
|
+
goog.inherits(proto.game.SetProviderCurrencyManagerEnabledRequest, jspb.Message);
|
|
1257
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1258
|
+
/**
|
|
1259
|
+
* @public
|
|
1260
|
+
* @override
|
|
1261
|
+
*/
|
|
1262
|
+
proto.game.SetProviderCurrencyManagerEnabledRequest.displayName = 'proto.game.SetProviderCurrencyManagerEnabledRequest';
|
|
1263
|
+
}
|
|
1220
1264
|
/**
|
|
1221
1265
|
* Generated by JsPbCodeGenerator.
|
|
1222
1266
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -18444,7 +18488,7 @@ proto.game.TagGamesRequest.prototype.hasGeo = function() {
|
|
|
18444
18488
|
* @private {!Array<number>}
|
|
18445
18489
|
* @const
|
|
18446
18490
|
*/
|
|
18447
|
-
proto.game.ProviderItem.repeatedFields_ = [13];
|
|
18491
|
+
proto.game.ProviderItem.repeatedFields_ = [13,14,15];
|
|
18448
18492
|
|
|
18449
18493
|
|
|
18450
18494
|
|
|
@@ -18490,7 +18534,10 @@ proto.game.ProviderItem.toObject = function(includeInstance, msg) {
|
|
|
18490
18534
|
icon: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
18491
18535
|
iconCdn: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
18492
18536
|
translationsList: jspb.Message.toObjectList(msg.getTranslationsList(),
|
|
18493
|
-
proto.game.GameEntityTranslationItem.toObject, includeInstance)
|
|
18537
|
+
proto.game.GameEntityTranslationItem.toObject, includeInstance),
|
|
18538
|
+
effectiveCurrenciesList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
|
|
18539
|
+
providerCurrenciesList: jspb.Message.toObjectList(msg.getProviderCurrenciesList(),
|
|
18540
|
+
proto.game.ProviderCurrencyCapability.toObject, includeInstance)
|
|
18494
18541
|
};
|
|
18495
18542
|
|
|
18496
18543
|
if (includeInstance) {
|
|
@@ -18580,6 +18627,15 @@ proto.game.ProviderItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
18580
18627
|
reader.readMessage(value,proto.game.GameEntityTranslationItem.deserializeBinaryFromReader);
|
|
18581
18628
|
msg.addTranslations(value);
|
|
18582
18629
|
break;
|
|
18630
|
+
case 14:
|
|
18631
|
+
var value = /** @type {string} */ (reader.readString());
|
|
18632
|
+
msg.addEffectiveCurrencies(value);
|
|
18633
|
+
break;
|
|
18634
|
+
case 15:
|
|
18635
|
+
var value = new proto.game.ProviderCurrencyCapability;
|
|
18636
|
+
reader.readMessage(value,proto.game.ProviderCurrencyCapability.deserializeBinaryFromReader);
|
|
18637
|
+
msg.addProviderCurrencies(value);
|
|
18638
|
+
break;
|
|
18583
18639
|
default:
|
|
18584
18640
|
reader.skipField();
|
|
18585
18641
|
break;
|
|
@@ -18701,6 +18757,21 @@ proto.game.ProviderItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
18701
18757
|
proto.game.GameEntityTranslationItem.serializeBinaryToWriter
|
|
18702
18758
|
);
|
|
18703
18759
|
}
|
|
18760
|
+
f = message.getEffectiveCurrenciesList();
|
|
18761
|
+
if (f.length > 0) {
|
|
18762
|
+
writer.writeRepeatedString(
|
|
18763
|
+
14,
|
|
18764
|
+
f
|
|
18765
|
+
);
|
|
18766
|
+
}
|
|
18767
|
+
f = message.getProviderCurrenciesList();
|
|
18768
|
+
if (f.length > 0) {
|
|
18769
|
+
writer.writeRepeatedMessage(
|
|
18770
|
+
15,
|
|
18771
|
+
f,
|
|
18772
|
+
proto.game.ProviderCurrencyCapability.serializeBinaryToWriter
|
|
18773
|
+
);
|
|
18774
|
+
}
|
|
18704
18775
|
};
|
|
18705
18776
|
|
|
18706
18777
|
|
|
@@ -19174,6 +19245,521 @@ proto.game.ProviderItem.prototype.clearTranslationsList = function() {
|
|
|
19174
19245
|
};
|
|
19175
19246
|
|
|
19176
19247
|
|
|
19248
|
+
/**
|
|
19249
|
+
* repeated string effective_currencies = 14;
|
|
19250
|
+
* @return {!Array<string>}
|
|
19251
|
+
*/
|
|
19252
|
+
proto.game.ProviderItem.prototype.getEffectiveCurrenciesList = function() {
|
|
19253
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 14));
|
|
19254
|
+
};
|
|
19255
|
+
|
|
19256
|
+
|
|
19257
|
+
/**
|
|
19258
|
+
* @param {!Array<string>} value
|
|
19259
|
+
* @return {!proto.game.ProviderItem} returns this
|
|
19260
|
+
*/
|
|
19261
|
+
proto.game.ProviderItem.prototype.setEffectiveCurrenciesList = function(value) {
|
|
19262
|
+
return jspb.Message.setField(this, 14, value || []);
|
|
19263
|
+
};
|
|
19264
|
+
|
|
19265
|
+
|
|
19266
|
+
/**
|
|
19267
|
+
* @param {string} value
|
|
19268
|
+
* @param {number=} opt_index
|
|
19269
|
+
* @return {!proto.game.ProviderItem} returns this
|
|
19270
|
+
*/
|
|
19271
|
+
proto.game.ProviderItem.prototype.addEffectiveCurrencies = function(value, opt_index) {
|
|
19272
|
+
return jspb.Message.addToRepeatedField(this, 14, value, opt_index);
|
|
19273
|
+
};
|
|
19274
|
+
|
|
19275
|
+
|
|
19276
|
+
/**
|
|
19277
|
+
* Clears the list making it empty but non-null.
|
|
19278
|
+
* @return {!proto.game.ProviderItem} returns this
|
|
19279
|
+
*/
|
|
19280
|
+
proto.game.ProviderItem.prototype.clearEffectiveCurrenciesList = function() {
|
|
19281
|
+
return this.setEffectiveCurrenciesList([]);
|
|
19282
|
+
};
|
|
19283
|
+
|
|
19284
|
+
|
|
19285
|
+
/**
|
|
19286
|
+
* repeated ProviderCurrencyCapability provider_currencies = 15;
|
|
19287
|
+
* @return {!Array<!proto.game.ProviderCurrencyCapability>}
|
|
19288
|
+
*/
|
|
19289
|
+
proto.game.ProviderItem.prototype.getProviderCurrenciesList = function() {
|
|
19290
|
+
return /** @type{!Array<!proto.game.ProviderCurrencyCapability>} */ (
|
|
19291
|
+
jspb.Message.getRepeatedWrapperField(this, proto.game.ProviderCurrencyCapability, 15));
|
|
19292
|
+
};
|
|
19293
|
+
|
|
19294
|
+
|
|
19295
|
+
/**
|
|
19296
|
+
* @param {!Array<!proto.game.ProviderCurrencyCapability>} value
|
|
19297
|
+
* @return {!proto.game.ProviderItem} returns this
|
|
19298
|
+
*/
|
|
19299
|
+
proto.game.ProviderItem.prototype.setProviderCurrenciesList = function(value) {
|
|
19300
|
+
return jspb.Message.setRepeatedWrapperField(this, 15, value);
|
|
19301
|
+
};
|
|
19302
|
+
|
|
19303
|
+
|
|
19304
|
+
/**
|
|
19305
|
+
* @param {!proto.game.ProviderCurrencyCapability=} opt_value
|
|
19306
|
+
* @param {number=} opt_index
|
|
19307
|
+
* @return {!proto.game.ProviderCurrencyCapability}
|
|
19308
|
+
*/
|
|
19309
|
+
proto.game.ProviderItem.prototype.addProviderCurrencies = function(opt_value, opt_index) {
|
|
19310
|
+
return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.game.ProviderCurrencyCapability, opt_index);
|
|
19311
|
+
};
|
|
19312
|
+
|
|
19313
|
+
|
|
19314
|
+
/**
|
|
19315
|
+
* Clears the list making it empty but non-null.
|
|
19316
|
+
* @return {!proto.game.ProviderItem} returns this
|
|
19317
|
+
*/
|
|
19318
|
+
proto.game.ProviderItem.prototype.clearProviderCurrenciesList = function() {
|
|
19319
|
+
return this.setProviderCurrenciesList([]);
|
|
19320
|
+
};
|
|
19321
|
+
|
|
19322
|
+
|
|
19323
|
+
|
|
19324
|
+
|
|
19325
|
+
|
|
19326
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
19327
|
+
/**
|
|
19328
|
+
* Creates an object representation of this proto.
|
|
19329
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
19330
|
+
* Optional fields that are not set will be set to undefined.
|
|
19331
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
19332
|
+
* For the list of reserved names please see:
|
|
19333
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
19334
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
19335
|
+
* JSPB instance for transitional soy proto support:
|
|
19336
|
+
* http://goto/soy-param-migration
|
|
19337
|
+
* @return {!Object}
|
|
19338
|
+
*/
|
|
19339
|
+
proto.game.ProviderCurrencyCapability.prototype.toObject = function(opt_includeInstance) {
|
|
19340
|
+
return proto.game.ProviderCurrencyCapability.toObject(opt_includeInstance, this);
|
|
19341
|
+
};
|
|
19342
|
+
|
|
19343
|
+
|
|
19344
|
+
/**
|
|
19345
|
+
* Static version of the {@see toObject} method.
|
|
19346
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
19347
|
+
* the JSPB instance for transitional soy proto support:
|
|
19348
|
+
* http://goto/soy-param-migration
|
|
19349
|
+
* @param {!proto.game.ProviderCurrencyCapability} msg The msg instance to transform.
|
|
19350
|
+
* @return {!Object}
|
|
19351
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
19352
|
+
*/
|
|
19353
|
+
proto.game.ProviderCurrencyCapability.toObject = function(includeInstance, msg) {
|
|
19354
|
+
var f, obj = {
|
|
19355
|
+
currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
19356
|
+
providerSupported: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
19357
|
+
managerEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
19358
|
+
effectiveActive: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
19359
|
+
effectiveStatus: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
19360
|
+
};
|
|
19361
|
+
|
|
19362
|
+
if (includeInstance) {
|
|
19363
|
+
obj.$jspbMessageInstance = msg;
|
|
19364
|
+
}
|
|
19365
|
+
return obj;
|
|
19366
|
+
};
|
|
19367
|
+
}
|
|
19368
|
+
|
|
19369
|
+
|
|
19370
|
+
/**
|
|
19371
|
+
* Deserializes binary data (in protobuf wire format).
|
|
19372
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
19373
|
+
* @return {!proto.game.ProviderCurrencyCapability}
|
|
19374
|
+
*/
|
|
19375
|
+
proto.game.ProviderCurrencyCapability.deserializeBinary = function(bytes) {
|
|
19376
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
19377
|
+
var msg = new proto.game.ProviderCurrencyCapability;
|
|
19378
|
+
return proto.game.ProviderCurrencyCapability.deserializeBinaryFromReader(msg, reader);
|
|
19379
|
+
};
|
|
19380
|
+
|
|
19381
|
+
|
|
19382
|
+
/**
|
|
19383
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
19384
|
+
* given reader into the given message object.
|
|
19385
|
+
* @param {!proto.game.ProviderCurrencyCapability} msg The message object to deserialize into.
|
|
19386
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
19387
|
+
* @return {!proto.game.ProviderCurrencyCapability}
|
|
19388
|
+
*/
|
|
19389
|
+
proto.game.ProviderCurrencyCapability.deserializeBinaryFromReader = function(msg, reader) {
|
|
19390
|
+
while (reader.nextField()) {
|
|
19391
|
+
if (reader.isEndGroup()) {
|
|
19392
|
+
break;
|
|
19393
|
+
}
|
|
19394
|
+
var field = reader.getFieldNumber();
|
|
19395
|
+
switch (field) {
|
|
19396
|
+
case 1:
|
|
19397
|
+
var value = /** @type {string} */ (reader.readString());
|
|
19398
|
+
msg.setCurrency(value);
|
|
19399
|
+
break;
|
|
19400
|
+
case 2:
|
|
19401
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
19402
|
+
msg.setProviderSupported(value);
|
|
19403
|
+
break;
|
|
19404
|
+
case 3:
|
|
19405
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
19406
|
+
msg.setManagerEnabled(value);
|
|
19407
|
+
break;
|
|
19408
|
+
case 4:
|
|
19409
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
19410
|
+
msg.setEffectiveActive(value);
|
|
19411
|
+
break;
|
|
19412
|
+
case 5:
|
|
19413
|
+
var value = /** @type {string} */ (reader.readString());
|
|
19414
|
+
msg.setEffectiveStatus(value);
|
|
19415
|
+
break;
|
|
19416
|
+
default:
|
|
19417
|
+
reader.skipField();
|
|
19418
|
+
break;
|
|
19419
|
+
}
|
|
19420
|
+
}
|
|
19421
|
+
return msg;
|
|
19422
|
+
};
|
|
19423
|
+
|
|
19424
|
+
|
|
19425
|
+
/**
|
|
19426
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
19427
|
+
* @return {!Uint8Array}
|
|
19428
|
+
*/
|
|
19429
|
+
proto.game.ProviderCurrencyCapability.prototype.serializeBinary = function() {
|
|
19430
|
+
var writer = new jspb.BinaryWriter();
|
|
19431
|
+
proto.game.ProviderCurrencyCapability.serializeBinaryToWriter(this, writer);
|
|
19432
|
+
return writer.getResultBuffer();
|
|
19433
|
+
};
|
|
19434
|
+
|
|
19435
|
+
|
|
19436
|
+
/**
|
|
19437
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
19438
|
+
* format), writing to the given BinaryWriter.
|
|
19439
|
+
* @param {!proto.game.ProviderCurrencyCapability} message
|
|
19440
|
+
* @param {!jspb.BinaryWriter} writer
|
|
19441
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
19442
|
+
*/
|
|
19443
|
+
proto.game.ProviderCurrencyCapability.serializeBinaryToWriter = function(message, writer) {
|
|
19444
|
+
var f = undefined;
|
|
19445
|
+
f = message.getCurrency();
|
|
19446
|
+
if (f.length > 0) {
|
|
19447
|
+
writer.writeString(
|
|
19448
|
+
1,
|
|
19449
|
+
f
|
|
19450
|
+
);
|
|
19451
|
+
}
|
|
19452
|
+
f = message.getProviderSupported();
|
|
19453
|
+
if (f) {
|
|
19454
|
+
writer.writeBool(
|
|
19455
|
+
2,
|
|
19456
|
+
f
|
|
19457
|
+
);
|
|
19458
|
+
}
|
|
19459
|
+
f = message.getManagerEnabled();
|
|
19460
|
+
if (f) {
|
|
19461
|
+
writer.writeBool(
|
|
19462
|
+
3,
|
|
19463
|
+
f
|
|
19464
|
+
);
|
|
19465
|
+
}
|
|
19466
|
+
f = message.getEffectiveActive();
|
|
19467
|
+
if (f) {
|
|
19468
|
+
writer.writeBool(
|
|
19469
|
+
4,
|
|
19470
|
+
f
|
|
19471
|
+
);
|
|
19472
|
+
}
|
|
19473
|
+
f = message.getEffectiveStatus();
|
|
19474
|
+
if (f.length > 0) {
|
|
19475
|
+
writer.writeString(
|
|
19476
|
+
5,
|
|
19477
|
+
f
|
|
19478
|
+
);
|
|
19479
|
+
}
|
|
19480
|
+
};
|
|
19481
|
+
|
|
19482
|
+
|
|
19483
|
+
/**
|
|
19484
|
+
* optional string currency = 1;
|
|
19485
|
+
* @return {string}
|
|
19486
|
+
*/
|
|
19487
|
+
proto.game.ProviderCurrencyCapability.prototype.getCurrency = function() {
|
|
19488
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
19489
|
+
};
|
|
19490
|
+
|
|
19491
|
+
|
|
19492
|
+
/**
|
|
19493
|
+
* @param {string} value
|
|
19494
|
+
* @return {!proto.game.ProviderCurrencyCapability} returns this
|
|
19495
|
+
*/
|
|
19496
|
+
proto.game.ProviderCurrencyCapability.prototype.setCurrency = function(value) {
|
|
19497
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
19498
|
+
};
|
|
19499
|
+
|
|
19500
|
+
|
|
19501
|
+
/**
|
|
19502
|
+
* optional bool provider_supported = 2;
|
|
19503
|
+
* @return {boolean}
|
|
19504
|
+
*/
|
|
19505
|
+
proto.game.ProviderCurrencyCapability.prototype.getProviderSupported = function() {
|
|
19506
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
19507
|
+
};
|
|
19508
|
+
|
|
19509
|
+
|
|
19510
|
+
/**
|
|
19511
|
+
* @param {boolean} value
|
|
19512
|
+
* @return {!proto.game.ProviderCurrencyCapability} returns this
|
|
19513
|
+
*/
|
|
19514
|
+
proto.game.ProviderCurrencyCapability.prototype.setProviderSupported = function(value) {
|
|
19515
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
19516
|
+
};
|
|
19517
|
+
|
|
19518
|
+
|
|
19519
|
+
/**
|
|
19520
|
+
* optional bool manager_enabled = 3;
|
|
19521
|
+
* @return {boolean}
|
|
19522
|
+
*/
|
|
19523
|
+
proto.game.ProviderCurrencyCapability.prototype.getManagerEnabled = function() {
|
|
19524
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
19525
|
+
};
|
|
19526
|
+
|
|
19527
|
+
|
|
19528
|
+
/**
|
|
19529
|
+
* @param {boolean} value
|
|
19530
|
+
* @return {!proto.game.ProviderCurrencyCapability} returns this
|
|
19531
|
+
*/
|
|
19532
|
+
proto.game.ProviderCurrencyCapability.prototype.setManagerEnabled = function(value) {
|
|
19533
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
19534
|
+
};
|
|
19535
|
+
|
|
19536
|
+
|
|
19537
|
+
/**
|
|
19538
|
+
* optional bool effective_active = 4;
|
|
19539
|
+
* @return {boolean}
|
|
19540
|
+
*/
|
|
19541
|
+
proto.game.ProviderCurrencyCapability.prototype.getEffectiveActive = function() {
|
|
19542
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
19543
|
+
};
|
|
19544
|
+
|
|
19545
|
+
|
|
19546
|
+
/**
|
|
19547
|
+
* @param {boolean} value
|
|
19548
|
+
* @return {!proto.game.ProviderCurrencyCapability} returns this
|
|
19549
|
+
*/
|
|
19550
|
+
proto.game.ProviderCurrencyCapability.prototype.setEffectiveActive = function(value) {
|
|
19551
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
19552
|
+
};
|
|
19553
|
+
|
|
19554
|
+
|
|
19555
|
+
/**
|
|
19556
|
+
* optional string effective_status = 5;
|
|
19557
|
+
* @return {string}
|
|
19558
|
+
*/
|
|
19559
|
+
proto.game.ProviderCurrencyCapability.prototype.getEffectiveStatus = function() {
|
|
19560
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
19561
|
+
};
|
|
19562
|
+
|
|
19563
|
+
|
|
19564
|
+
/**
|
|
19565
|
+
* @param {string} value
|
|
19566
|
+
* @return {!proto.game.ProviderCurrencyCapability} returns this
|
|
19567
|
+
*/
|
|
19568
|
+
proto.game.ProviderCurrencyCapability.prototype.setEffectiveStatus = function(value) {
|
|
19569
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
19570
|
+
};
|
|
19571
|
+
|
|
19572
|
+
|
|
19573
|
+
|
|
19574
|
+
|
|
19575
|
+
|
|
19576
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
19577
|
+
/**
|
|
19578
|
+
* Creates an object representation of this proto.
|
|
19579
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
19580
|
+
* Optional fields that are not set will be set to undefined.
|
|
19581
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
19582
|
+
* For the list of reserved names please see:
|
|
19583
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
19584
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
19585
|
+
* JSPB instance for transitional soy proto support:
|
|
19586
|
+
* http://goto/soy-param-migration
|
|
19587
|
+
* @return {!Object}
|
|
19588
|
+
*/
|
|
19589
|
+
proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.toObject = function(opt_includeInstance) {
|
|
19590
|
+
return proto.game.SetProviderCurrencyManagerEnabledRequest.toObject(opt_includeInstance, this);
|
|
19591
|
+
};
|
|
19592
|
+
|
|
19593
|
+
|
|
19594
|
+
/**
|
|
19595
|
+
* Static version of the {@see toObject} method.
|
|
19596
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
19597
|
+
* the JSPB instance for transitional soy proto support:
|
|
19598
|
+
* http://goto/soy-param-migration
|
|
19599
|
+
* @param {!proto.game.SetProviderCurrencyManagerEnabledRequest} msg The msg instance to transform.
|
|
19600
|
+
* @return {!Object}
|
|
19601
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
19602
|
+
*/
|
|
19603
|
+
proto.game.SetProviderCurrencyManagerEnabledRequest.toObject = function(includeInstance, msg) {
|
|
19604
|
+
var f, obj = {
|
|
19605
|
+
providerId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
19606
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
19607
|
+
managerEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
19608
|
+
};
|
|
19609
|
+
|
|
19610
|
+
if (includeInstance) {
|
|
19611
|
+
obj.$jspbMessageInstance = msg;
|
|
19612
|
+
}
|
|
19613
|
+
return obj;
|
|
19614
|
+
};
|
|
19615
|
+
}
|
|
19616
|
+
|
|
19617
|
+
|
|
19618
|
+
/**
|
|
19619
|
+
* Deserializes binary data (in protobuf wire format).
|
|
19620
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
19621
|
+
* @return {!proto.game.SetProviderCurrencyManagerEnabledRequest}
|
|
19622
|
+
*/
|
|
19623
|
+
proto.game.SetProviderCurrencyManagerEnabledRequest.deserializeBinary = function(bytes) {
|
|
19624
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
19625
|
+
var msg = new proto.game.SetProviderCurrencyManagerEnabledRequest;
|
|
19626
|
+
return proto.game.SetProviderCurrencyManagerEnabledRequest.deserializeBinaryFromReader(msg, reader);
|
|
19627
|
+
};
|
|
19628
|
+
|
|
19629
|
+
|
|
19630
|
+
/**
|
|
19631
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
19632
|
+
* given reader into the given message object.
|
|
19633
|
+
* @param {!proto.game.SetProviderCurrencyManagerEnabledRequest} msg The message object to deserialize into.
|
|
19634
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
19635
|
+
* @return {!proto.game.SetProviderCurrencyManagerEnabledRequest}
|
|
19636
|
+
*/
|
|
19637
|
+
proto.game.SetProviderCurrencyManagerEnabledRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
19638
|
+
while (reader.nextField()) {
|
|
19639
|
+
if (reader.isEndGroup()) {
|
|
19640
|
+
break;
|
|
19641
|
+
}
|
|
19642
|
+
var field = reader.getFieldNumber();
|
|
19643
|
+
switch (field) {
|
|
19644
|
+
case 1:
|
|
19645
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
19646
|
+
msg.setProviderId(value);
|
|
19647
|
+
break;
|
|
19648
|
+
case 2:
|
|
19649
|
+
var value = /** @type {string} */ (reader.readString());
|
|
19650
|
+
msg.setCurrency(value);
|
|
19651
|
+
break;
|
|
19652
|
+
case 3:
|
|
19653
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
19654
|
+
msg.setManagerEnabled(value);
|
|
19655
|
+
break;
|
|
19656
|
+
default:
|
|
19657
|
+
reader.skipField();
|
|
19658
|
+
break;
|
|
19659
|
+
}
|
|
19660
|
+
}
|
|
19661
|
+
return msg;
|
|
19662
|
+
};
|
|
19663
|
+
|
|
19664
|
+
|
|
19665
|
+
/**
|
|
19666
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
19667
|
+
* @return {!Uint8Array}
|
|
19668
|
+
*/
|
|
19669
|
+
proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.serializeBinary = function() {
|
|
19670
|
+
var writer = new jspb.BinaryWriter();
|
|
19671
|
+
proto.game.SetProviderCurrencyManagerEnabledRequest.serializeBinaryToWriter(this, writer);
|
|
19672
|
+
return writer.getResultBuffer();
|
|
19673
|
+
};
|
|
19674
|
+
|
|
19675
|
+
|
|
19676
|
+
/**
|
|
19677
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
19678
|
+
* format), writing to the given BinaryWriter.
|
|
19679
|
+
* @param {!proto.game.SetProviderCurrencyManagerEnabledRequest} message
|
|
19680
|
+
* @param {!jspb.BinaryWriter} writer
|
|
19681
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
19682
|
+
*/
|
|
19683
|
+
proto.game.SetProviderCurrencyManagerEnabledRequest.serializeBinaryToWriter = function(message, writer) {
|
|
19684
|
+
var f = undefined;
|
|
19685
|
+
f = message.getProviderId();
|
|
19686
|
+
if (f !== 0) {
|
|
19687
|
+
writer.writeInt32(
|
|
19688
|
+
1,
|
|
19689
|
+
f
|
|
19690
|
+
);
|
|
19691
|
+
}
|
|
19692
|
+
f = message.getCurrency();
|
|
19693
|
+
if (f.length > 0) {
|
|
19694
|
+
writer.writeString(
|
|
19695
|
+
2,
|
|
19696
|
+
f
|
|
19697
|
+
);
|
|
19698
|
+
}
|
|
19699
|
+
f = message.getManagerEnabled();
|
|
19700
|
+
if (f) {
|
|
19701
|
+
writer.writeBool(
|
|
19702
|
+
3,
|
|
19703
|
+
f
|
|
19704
|
+
);
|
|
19705
|
+
}
|
|
19706
|
+
};
|
|
19707
|
+
|
|
19708
|
+
|
|
19709
|
+
/**
|
|
19710
|
+
* optional int32 provider_id = 1;
|
|
19711
|
+
* @return {number}
|
|
19712
|
+
*/
|
|
19713
|
+
proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.getProviderId = function() {
|
|
19714
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
19715
|
+
};
|
|
19716
|
+
|
|
19717
|
+
|
|
19718
|
+
/**
|
|
19719
|
+
* @param {number} value
|
|
19720
|
+
* @return {!proto.game.SetProviderCurrencyManagerEnabledRequest} returns this
|
|
19721
|
+
*/
|
|
19722
|
+
proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.setProviderId = function(value) {
|
|
19723
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
19724
|
+
};
|
|
19725
|
+
|
|
19726
|
+
|
|
19727
|
+
/**
|
|
19728
|
+
* optional string currency = 2;
|
|
19729
|
+
* @return {string}
|
|
19730
|
+
*/
|
|
19731
|
+
proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.getCurrency = function() {
|
|
19732
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
19733
|
+
};
|
|
19734
|
+
|
|
19735
|
+
|
|
19736
|
+
/**
|
|
19737
|
+
* @param {string} value
|
|
19738
|
+
* @return {!proto.game.SetProviderCurrencyManagerEnabledRequest} returns this
|
|
19739
|
+
*/
|
|
19740
|
+
proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.setCurrency = function(value) {
|
|
19741
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
19742
|
+
};
|
|
19743
|
+
|
|
19744
|
+
|
|
19745
|
+
/**
|
|
19746
|
+
* optional bool manager_enabled = 3;
|
|
19747
|
+
* @return {boolean}
|
|
19748
|
+
*/
|
|
19749
|
+
proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.getManagerEnabled = function() {
|
|
19750
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
19751
|
+
};
|
|
19752
|
+
|
|
19753
|
+
|
|
19754
|
+
/**
|
|
19755
|
+
* @param {boolean} value
|
|
19756
|
+
* @return {!proto.game.SetProviderCurrencyManagerEnabledRequest} returns this
|
|
19757
|
+
*/
|
|
19758
|
+
proto.game.SetProviderCurrencyManagerEnabledRequest.prototype.setManagerEnabled = function(value) {
|
|
19759
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
19760
|
+
};
|
|
19761
|
+
|
|
19762
|
+
|
|
19177
19763
|
|
|
19178
19764
|
/**
|
|
19179
19765
|
* Oneof group definitions for this message. Each group defines the field
|