protobuf-platform 1.1.89 → 1.1.91
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 +14 -0
- package/game/game_grpc_pb.js +34 -0
- package/game/game_pb.js +609 -0
- package/package.json +1 -1
- package/user/user.proto +23 -0
- package/user/user_pb.js +2299 -1135
package/game/game.proto
CHANGED
@@ -94,6 +94,8 @@ service Game {
|
|
94
94
|
//SEO
|
95
95
|
rpc setSEOInstanceAttributes(SEOInstanceRequest) returns (GameStatusResponse);
|
96
96
|
rpc readSEOInstanceAttributes(SEOInstanceRequest) returns (SEOInstanceResponse);
|
97
|
+
//Segmentation
|
98
|
+
rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
|
97
99
|
}
|
98
100
|
|
99
101
|
message PingRequest { string ping = 1; }
|
@@ -678,4 +680,16 @@ message SEOInstanceRequest {
|
|
678
680
|
}
|
679
681
|
message SEOInstanceResponse {
|
680
682
|
repeated SEOAttribute attributes = 1;
|
683
|
+
}
|
684
|
+
//Segmentation
|
685
|
+
message SegmentedUserRequest {
|
686
|
+
repeated int32 provider_ids = 1;
|
687
|
+
repeated int32 collection_ids = 2;
|
688
|
+
repeated int32 tag_ids = 3;
|
689
|
+
repeated int32 game_ids = 4;
|
690
|
+
optional float rtp_min = 5;
|
691
|
+
optional float rtp_max = 6;
|
692
|
+
}
|
693
|
+
message SegmentedUserResponse {
|
694
|
+
repeated int32 user_ids = 1;
|
681
695
|
}
|
package/game/game_grpc_pb.js
CHANGED
@@ -741,6 +741,28 @@ function deserialize_game_SearchGamesIntoTagsRequest(buffer_arg) {
|
|
741
741
|
return game_pb.SearchGamesIntoTagsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
742
742
|
}
|
743
743
|
|
744
|
+
function serialize_game_SegmentedUserRequest(arg) {
|
745
|
+
if (!(arg instanceof game_pb.SegmentedUserRequest)) {
|
746
|
+
throw new Error('Expected argument of type game.SegmentedUserRequest');
|
747
|
+
}
|
748
|
+
return Buffer.from(arg.serializeBinary());
|
749
|
+
}
|
750
|
+
|
751
|
+
function deserialize_game_SegmentedUserRequest(buffer_arg) {
|
752
|
+
return game_pb.SegmentedUserRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
753
|
+
}
|
754
|
+
|
755
|
+
function serialize_game_SegmentedUserResponse(arg) {
|
756
|
+
if (!(arg instanceof game_pb.SegmentedUserResponse)) {
|
757
|
+
throw new Error('Expected argument of type game.SegmentedUserResponse');
|
758
|
+
}
|
759
|
+
return Buffer.from(arg.serializeBinary());
|
760
|
+
}
|
761
|
+
|
762
|
+
function deserialize_game_SegmentedUserResponse(buffer_arg) {
|
763
|
+
return game_pb.SegmentedUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
764
|
+
}
|
765
|
+
|
744
766
|
function serialize_game_TagGamesRequest(arg) {
|
745
767
|
if (!(arg instanceof game_pb.TagGamesRequest)) {
|
746
768
|
throw new Error('Expected argument of type game.TagGamesRequest');
|
@@ -1767,6 +1789,18 @@ setSEOInstanceAttributes: {
|
|
1767
1789
|
responseSerialize: serialize_game_SEOInstanceResponse,
|
1768
1790
|
responseDeserialize: deserialize_game_SEOInstanceResponse,
|
1769
1791
|
},
|
1792
|
+
// Segmentation
|
1793
|
+
getSegmentedUsers: {
|
1794
|
+
path: '/game.Game/getSegmentedUsers',
|
1795
|
+
requestStream: false,
|
1796
|
+
responseStream: false,
|
1797
|
+
requestType: game_pb.SegmentedUserRequest,
|
1798
|
+
responseType: game_pb.SegmentedUserResponse,
|
1799
|
+
requestSerialize: serialize_game_SegmentedUserRequest,
|
1800
|
+
requestDeserialize: deserialize_game_SegmentedUserRequest,
|
1801
|
+
responseSerialize: serialize_game_SegmentedUserResponse,
|
1802
|
+
responseDeserialize: deserialize_game_SegmentedUserResponse,
|
1803
|
+
},
|
1770
1804
|
};
|
1771
1805
|
|
1772
1806
|
exports.GameClient = grpc.makeGenericClientConstructor(GameService);
|
package/game/game_pb.js
CHANGED
@@ -109,6 +109,8 @@ goog.exportSymbol('proto.game.SearchGamesIntoCategoriesRequest', null, global);
|
|
109
109
|
goog.exportSymbol('proto.game.SearchGamesIntoCollectionsRequest', null, global);
|
110
110
|
goog.exportSymbol('proto.game.SearchGamesIntoProvidersRequest', null, global);
|
111
111
|
goog.exportSymbol('proto.game.SearchGamesIntoTagsRequest', null, global);
|
112
|
+
goog.exportSymbol('proto.game.SegmentedUserRequest', null, global);
|
113
|
+
goog.exportSymbol('proto.game.SegmentedUserResponse', null, global);
|
112
114
|
goog.exportSymbol('proto.game.TagGamesRequest', null, global);
|
113
115
|
goog.exportSymbol('proto.game.TagItem', null, global);
|
114
116
|
goog.exportSymbol('proto.game.TagItemRequest', null, global);
|
@@ -2292,6 +2294,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
2292
2294
|
*/
|
2293
2295
|
proto.game.SEOInstanceResponse.displayName = 'proto.game.SEOInstanceResponse';
|
2294
2296
|
}
|
2297
|
+
/**
|
2298
|
+
* Generated by JsPbCodeGenerator.
|
2299
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
2300
|
+
* server response, or constructed directly in Javascript. The array is used
|
2301
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
2302
|
+
* If no data is provided, the constructed object will be empty, but still
|
2303
|
+
* valid.
|
2304
|
+
* @extends {jspb.Message}
|
2305
|
+
* @constructor
|
2306
|
+
*/
|
2307
|
+
proto.game.SegmentedUserRequest = function(opt_data) {
|
2308
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.SegmentedUserRequest.repeatedFields_, null);
|
2309
|
+
};
|
2310
|
+
goog.inherits(proto.game.SegmentedUserRequest, jspb.Message);
|
2311
|
+
if (goog.DEBUG && !COMPILED) {
|
2312
|
+
/**
|
2313
|
+
* @public
|
2314
|
+
* @override
|
2315
|
+
*/
|
2316
|
+
proto.game.SegmentedUserRequest.displayName = 'proto.game.SegmentedUserRequest';
|
2317
|
+
}
|
2318
|
+
/**
|
2319
|
+
* Generated by JsPbCodeGenerator.
|
2320
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
2321
|
+
* server response, or constructed directly in Javascript. The array is used
|
2322
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
2323
|
+
* If no data is provided, the constructed object will be empty, but still
|
2324
|
+
* valid.
|
2325
|
+
* @extends {jspb.Message}
|
2326
|
+
* @constructor
|
2327
|
+
*/
|
2328
|
+
proto.game.SegmentedUserResponse = function(opt_data) {
|
2329
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.SegmentedUserResponse.repeatedFields_, null);
|
2330
|
+
};
|
2331
|
+
goog.inherits(proto.game.SegmentedUserResponse, jspb.Message);
|
2332
|
+
if (goog.DEBUG && !COMPILED) {
|
2333
|
+
/**
|
2334
|
+
* @public
|
2335
|
+
* @override
|
2336
|
+
*/
|
2337
|
+
proto.game.SegmentedUserResponse.displayName = 'proto.game.SegmentedUserResponse';
|
2338
|
+
}
|
2295
2339
|
|
2296
2340
|
|
2297
2341
|
|
@@ -28658,4 +28702,569 @@ proto.game.SEOInstanceResponse.prototype.clearAttributesList = function() {
|
|
28658
28702
|
};
|
28659
28703
|
|
28660
28704
|
|
28705
|
+
|
28706
|
+
/**
|
28707
|
+
* List of repeated fields within this message type.
|
28708
|
+
* @private {!Array<number>}
|
28709
|
+
* @const
|
28710
|
+
*/
|
28711
|
+
proto.game.SegmentedUserRequest.repeatedFields_ = [1,2,3,4];
|
28712
|
+
|
28713
|
+
|
28714
|
+
|
28715
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
28716
|
+
/**
|
28717
|
+
* Creates an object representation of this proto.
|
28718
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
28719
|
+
* Optional fields that are not set will be set to undefined.
|
28720
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
28721
|
+
* For the list of reserved names please see:
|
28722
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
28723
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
28724
|
+
* JSPB instance for transitional soy proto support:
|
28725
|
+
* http://goto/soy-param-migration
|
28726
|
+
* @return {!Object}
|
28727
|
+
*/
|
28728
|
+
proto.game.SegmentedUserRequest.prototype.toObject = function(opt_includeInstance) {
|
28729
|
+
return proto.game.SegmentedUserRequest.toObject(opt_includeInstance, this);
|
28730
|
+
};
|
28731
|
+
|
28732
|
+
|
28733
|
+
/**
|
28734
|
+
* Static version of the {@see toObject} method.
|
28735
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
28736
|
+
* the JSPB instance for transitional soy proto support:
|
28737
|
+
* http://goto/soy-param-migration
|
28738
|
+
* @param {!proto.game.SegmentedUserRequest} msg The msg instance to transform.
|
28739
|
+
* @return {!Object}
|
28740
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
28741
|
+
*/
|
28742
|
+
proto.game.SegmentedUserRequest.toObject = function(includeInstance, msg) {
|
28743
|
+
var f, obj = {
|
28744
|
+
providerIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
28745
|
+
collectionIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
28746
|
+
tagIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
28747
|
+
gameIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
28748
|
+
rtpMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
28749
|
+
rtpMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0)
|
28750
|
+
};
|
28751
|
+
|
28752
|
+
if (includeInstance) {
|
28753
|
+
obj.$jspbMessageInstance = msg;
|
28754
|
+
}
|
28755
|
+
return obj;
|
28756
|
+
};
|
28757
|
+
}
|
28758
|
+
|
28759
|
+
|
28760
|
+
/**
|
28761
|
+
* Deserializes binary data (in protobuf wire format).
|
28762
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
28763
|
+
* @return {!proto.game.SegmentedUserRequest}
|
28764
|
+
*/
|
28765
|
+
proto.game.SegmentedUserRequest.deserializeBinary = function(bytes) {
|
28766
|
+
var reader = new jspb.BinaryReader(bytes);
|
28767
|
+
var msg = new proto.game.SegmentedUserRequest;
|
28768
|
+
return proto.game.SegmentedUserRequest.deserializeBinaryFromReader(msg, reader);
|
28769
|
+
};
|
28770
|
+
|
28771
|
+
|
28772
|
+
/**
|
28773
|
+
* Deserializes binary data (in protobuf wire format) from the
|
28774
|
+
* given reader into the given message object.
|
28775
|
+
* @param {!proto.game.SegmentedUserRequest} msg The message object to deserialize into.
|
28776
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
28777
|
+
* @return {!proto.game.SegmentedUserRequest}
|
28778
|
+
*/
|
28779
|
+
proto.game.SegmentedUserRequest.deserializeBinaryFromReader = function(msg, reader) {
|
28780
|
+
while (reader.nextField()) {
|
28781
|
+
if (reader.isEndGroup()) {
|
28782
|
+
break;
|
28783
|
+
}
|
28784
|
+
var field = reader.getFieldNumber();
|
28785
|
+
switch (field) {
|
28786
|
+
case 1:
|
28787
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
28788
|
+
for (var i = 0; i < values.length; i++) {
|
28789
|
+
msg.addProviderIds(values[i]);
|
28790
|
+
}
|
28791
|
+
break;
|
28792
|
+
case 2:
|
28793
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
28794
|
+
for (var i = 0; i < values.length; i++) {
|
28795
|
+
msg.addCollectionIds(values[i]);
|
28796
|
+
}
|
28797
|
+
break;
|
28798
|
+
case 3:
|
28799
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
28800
|
+
for (var i = 0; i < values.length; i++) {
|
28801
|
+
msg.addTagIds(values[i]);
|
28802
|
+
}
|
28803
|
+
break;
|
28804
|
+
case 4:
|
28805
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
28806
|
+
for (var i = 0; i < values.length; i++) {
|
28807
|
+
msg.addGameIds(values[i]);
|
28808
|
+
}
|
28809
|
+
break;
|
28810
|
+
case 5:
|
28811
|
+
var value = /** @type {number} */ (reader.readFloat());
|
28812
|
+
msg.setRtpMin(value);
|
28813
|
+
break;
|
28814
|
+
case 6:
|
28815
|
+
var value = /** @type {number} */ (reader.readFloat());
|
28816
|
+
msg.setRtpMax(value);
|
28817
|
+
break;
|
28818
|
+
default:
|
28819
|
+
reader.skipField();
|
28820
|
+
break;
|
28821
|
+
}
|
28822
|
+
}
|
28823
|
+
return msg;
|
28824
|
+
};
|
28825
|
+
|
28826
|
+
|
28827
|
+
/**
|
28828
|
+
* Serializes the message to binary data (in protobuf wire format).
|
28829
|
+
* @return {!Uint8Array}
|
28830
|
+
*/
|
28831
|
+
proto.game.SegmentedUserRequest.prototype.serializeBinary = function() {
|
28832
|
+
var writer = new jspb.BinaryWriter();
|
28833
|
+
proto.game.SegmentedUserRequest.serializeBinaryToWriter(this, writer);
|
28834
|
+
return writer.getResultBuffer();
|
28835
|
+
};
|
28836
|
+
|
28837
|
+
|
28838
|
+
/**
|
28839
|
+
* Serializes the given message to binary data (in protobuf wire
|
28840
|
+
* format), writing to the given BinaryWriter.
|
28841
|
+
* @param {!proto.game.SegmentedUserRequest} message
|
28842
|
+
* @param {!jspb.BinaryWriter} writer
|
28843
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
28844
|
+
*/
|
28845
|
+
proto.game.SegmentedUserRequest.serializeBinaryToWriter = function(message, writer) {
|
28846
|
+
var f = undefined;
|
28847
|
+
f = message.getProviderIdsList();
|
28848
|
+
if (f.length > 0) {
|
28849
|
+
writer.writePackedInt32(
|
28850
|
+
1,
|
28851
|
+
f
|
28852
|
+
);
|
28853
|
+
}
|
28854
|
+
f = message.getCollectionIdsList();
|
28855
|
+
if (f.length > 0) {
|
28856
|
+
writer.writePackedInt32(
|
28857
|
+
2,
|
28858
|
+
f
|
28859
|
+
);
|
28860
|
+
}
|
28861
|
+
f = message.getTagIdsList();
|
28862
|
+
if (f.length > 0) {
|
28863
|
+
writer.writePackedInt32(
|
28864
|
+
3,
|
28865
|
+
f
|
28866
|
+
);
|
28867
|
+
}
|
28868
|
+
f = message.getGameIdsList();
|
28869
|
+
if (f.length > 0) {
|
28870
|
+
writer.writePackedInt32(
|
28871
|
+
4,
|
28872
|
+
f
|
28873
|
+
);
|
28874
|
+
}
|
28875
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
28876
|
+
if (f != null) {
|
28877
|
+
writer.writeFloat(
|
28878
|
+
5,
|
28879
|
+
f
|
28880
|
+
);
|
28881
|
+
}
|
28882
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
28883
|
+
if (f != null) {
|
28884
|
+
writer.writeFloat(
|
28885
|
+
6,
|
28886
|
+
f
|
28887
|
+
);
|
28888
|
+
}
|
28889
|
+
};
|
28890
|
+
|
28891
|
+
|
28892
|
+
/**
|
28893
|
+
* repeated int32 provider_ids = 1;
|
28894
|
+
* @return {!Array<number>}
|
28895
|
+
*/
|
28896
|
+
proto.game.SegmentedUserRequest.prototype.getProviderIdsList = function() {
|
28897
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
28898
|
+
};
|
28899
|
+
|
28900
|
+
|
28901
|
+
/**
|
28902
|
+
* @param {!Array<number>} value
|
28903
|
+
* @return {!proto.game.SegmentedUserRequest} returns this
|
28904
|
+
*/
|
28905
|
+
proto.game.SegmentedUserRequest.prototype.setProviderIdsList = function(value) {
|
28906
|
+
return jspb.Message.setField(this, 1, value || []);
|
28907
|
+
};
|
28908
|
+
|
28909
|
+
|
28910
|
+
/**
|
28911
|
+
* @param {number} value
|
28912
|
+
* @param {number=} opt_index
|
28913
|
+
* @return {!proto.game.SegmentedUserRequest} returns this
|
28914
|
+
*/
|
28915
|
+
proto.game.SegmentedUserRequest.prototype.addProviderIds = function(value, opt_index) {
|
28916
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
28917
|
+
};
|
28918
|
+
|
28919
|
+
|
28920
|
+
/**
|
28921
|
+
* Clears the list making it empty but non-null.
|
28922
|
+
* @return {!proto.game.SegmentedUserRequest} returns this
|
28923
|
+
*/
|
28924
|
+
proto.game.SegmentedUserRequest.prototype.clearProviderIdsList = function() {
|
28925
|
+
return this.setProviderIdsList([]);
|
28926
|
+
};
|
28927
|
+
|
28928
|
+
|
28929
|
+
/**
|
28930
|
+
* repeated int32 collection_ids = 2;
|
28931
|
+
* @return {!Array<number>}
|
28932
|
+
*/
|
28933
|
+
proto.game.SegmentedUserRequest.prototype.getCollectionIdsList = function() {
|
28934
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
|
28935
|
+
};
|
28936
|
+
|
28937
|
+
|
28938
|
+
/**
|
28939
|
+
* @param {!Array<number>} value
|
28940
|
+
* @return {!proto.game.SegmentedUserRequest} returns this
|
28941
|
+
*/
|
28942
|
+
proto.game.SegmentedUserRequest.prototype.setCollectionIdsList = function(value) {
|
28943
|
+
return jspb.Message.setField(this, 2, value || []);
|
28944
|
+
};
|
28945
|
+
|
28946
|
+
|
28947
|
+
/**
|
28948
|
+
* @param {number} value
|
28949
|
+
* @param {number=} opt_index
|
28950
|
+
* @return {!proto.game.SegmentedUserRequest} returns this
|
28951
|
+
*/
|
28952
|
+
proto.game.SegmentedUserRequest.prototype.addCollectionIds = function(value, opt_index) {
|
28953
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
28954
|
+
};
|
28955
|
+
|
28956
|
+
|
28957
|
+
/**
|
28958
|
+
* Clears the list making it empty but non-null.
|
28959
|
+
* @return {!proto.game.SegmentedUserRequest} returns this
|
28960
|
+
*/
|
28961
|
+
proto.game.SegmentedUserRequest.prototype.clearCollectionIdsList = function() {
|
28962
|
+
return this.setCollectionIdsList([]);
|
28963
|
+
};
|
28964
|
+
|
28965
|
+
|
28966
|
+
/**
|
28967
|
+
* repeated int32 tag_ids = 3;
|
28968
|
+
* @return {!Array<number>}
|
28969
|
+
*/
|
28970
|
+
proto.game.SegmentedUserRequest.prototype.getTagIdsList = function() {
|
28971
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
|
28972
|
+
};
|
28973
|
+
|
28974
|
+
|
28975
|
+
/**
|
28976
|
+
* @param {!Array<number>} value
|
28977
|
+
* @return {!proto.game.SegmentedUserRequest} returns this
|
28978
|
+
*/
|
28979
|
+
proto.game.SegmentedUserRequest.prototype.setTagIdsList = function(value) {
|
28980
|
+
return jspb.Message.setField(this, 3, value || []);
|
28981
|
+
};
|
28982
|
+
|
28983
|
+
|
28984
|
+
/**
|
28985
|
+
* @param {number} value
|
28986
|
+
* @param {number=} opt_index
|
28987
|
+
* @return {!proto.game.SegmentedUserRequest} returns this
|
28988
|
+
*/
|
28989
|
+
proto.game.SegmentedUserRequest.prototype.addTagIds = function(value, opt_index) {
|
28990
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
28991
|
+
};
|
28992
|
+
|
28993
|
+
|
28994
|
+
/**
|
28995
|
+
* Clears the list making it empty but non-null.
|
28996
|
+
* @return {!proto.game.SegmentedUserRequest} returns this
|
28997
|
+
*/
|
28998
|
+
proto.game.SegmentedUserRequest.prototype.clearTagIdsList = function() {
|
28999
|
+
return this.setTagIdsList([]);
|
29000
|
+
};
|
29001
|
+
|
29002
|
+
|
29003
|
+
/**
|
29004
|
+
* repeated int32 game_ids = 4;
|
29005
|
+
* @return {!Array<number>}
|
29006
|
+
*/
|
29007
|
+
proto.game.SegmentedUserRequest.prototype.getGameIdsList = function() {
|
29008
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
|
29009
|
+
};
|
29010
|
+
|
29011
|
+
|
29012
|
+
/**
|
29013
|
+
* @param {!Array<number>} value
|
29014
|
+
* @return {!proto.game.SegmentedUserRequest} returns this
|
29015
|
+
*/
|
29016
|
+
proto.game.SegmentedUserRequest.prototype.setGameIdsList = function(value) {
|
29017
|
+
return jspb.Message.setField(this, 4, value || []);
|
29018
|
+
};
|
29019
|
+
|
29020
|
+
|
29021
|
+
/**
|
29022
|
+
* @param {number} value
|
29023
|
+
* @param {number=} opt_index
|
29024
|
+
* @return {!proto.game.SegmentedUserRequest} returns this
|
29025
|
+
*/
|
29026
|
+
proto.game.SegmentedUserRequest.prototype.addGameIds = function(value, opt_index) {
|
29027
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
29028
|
+
};
|
29029
|
+
|
29030
|
+
|
29031
|
+
/**
|
29032
|
+
* Clears the list making it empty but non-null.
|
29033
|
+
* @return {!proto.game.SegmentedUserRequest} returns this
|
29034
|
+
*/
|
29035
|
+
proto.game.SegmentedUserRequest.prototype.clearGameIdsList = function() {
|
29036
|
+
return this.setGameIdsList([]);
|
29037
|
+
};
|
29038
|
+
|
29039
|
+
|
29040
|
+
/**
|
29041
|
+
* optional float rtp_min = 5;
|
29042
|
+
* @return {number}
|
29043
|
+
*/
|
29044
|
+
proto.game.SegmentedUserRequest.prototype.getRtpMin = function() {
|
29045
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
29046
|
+
};
|
29047
|
+
|
29048
|
+
|
29049
|
+
/**
|
29050
|
+
* @param {number} value
|
29051
|
+
* @return {!proto.game.SegmentedUserRequest} returns this
|
29052
|
+
*/
|
29053
|
+
proto.game.SegmentedUserRequest.prototype.setRtpMin = function(value) {
|
29054
|
+
return jspb.Message.setField(this, 5, value);
|
29055
|
+
};
|
29056
|
+
|
29057
|
+
|
29058
|
+
/**
|
29059
|
+
* Clears the field making it undefined.
|
29060
|
+
* @return {!proto.game.SegmentedUserRequest} returns this
|
29061
|
+
*/
|
29062
|
+
proto.game.SegmentedUserRequest.prototype.clearRtpMin = function() {
|
29063
|
+
return jspb.Message.setField(this, 5, undefined);
|
29064
|
+
};
|
29065
|
+
|
29066
|
+
|
29067
|
+
/**
|
29068
|
+
* Returns whether this field is set.
|
29069
|
+
* @return {boolean}
|
29070
|
+
*/
|
29071
|
+
proto.game.SegmentedUserRequest.prototype.hasRtpMin = function() {
|
29072
|
+
return jspb.Message.getField(this, 5) != null;
|
29073
|
+
};
|
29074
|
+
|
29075
|
+
|
29076
|
+
/**
|
29077
|
+
* optional float rtp_max = 6;
|
29078
|
+
* @return {number}
|
29079
|
+
*/
|
29080
|
+
proto.game.SegmentedUserRequest.prototype.getRtpMax = function() {
|
29081
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
29082
|
+
};
|
29083
|
+
|
29084
|
+
|
29085
|
+
/**
|
29086
|
+
* @param {number} value
|
29087
|
+
* @return {!proto.game.SegmentedUserRequest} returns this
|
29088
|
+
*/
|
29089
|
+
proto.game.SegmentedUserRequest.prototype.setRtpMax = function(value) {
|
29090
|
+
return jspb.Message.setField(this, 6, value);
|
29091
|
+
};
|
29092
|
+
|
29093
|
+
|
29094
|
+
/**
|
29095
|
+
* Clears the field making it undefined.
|
29096
|
+
* @return {!proto.game.SegmentedUserRequest} returns this
|
29097
|
+
*/
|
29098
|
+
proto.game.SegmentedUserRequest.prototype.clearRtpMax = function() {
|
29099
|
+
return jspb.Message.setField(this, 6, undefined);
|
29100
|
+
};
|
29101
|
+
|
29102
|
+
|
29103
|
+
/**
|
29104
|
+
* Returns whether this field is set.
|
29105
|
+
* @return {boolean}
|
29106
|
+
*/
|
29107
|
+
proto.game.SegmentedUserRequest.prototype.hasRtpMax = function() {
|
29108
|
+
return jspb.Message.getField(this, 6) != null;
|
29109
|
+
};
|
29110
|
+
|
29111
|
+
|
29112
|
+
|
29113
|
+
/**
|
29114
|
+
* List of repeated fields within this message type.
|
29115
|
+
* @private {!Array<number>}
|
29116
|
+
* @const
|
29117
|
+
*/
|
29118
|
+
proto.game.SegmentedUserResponse.repeatedFields_ = [1];
|
29119
|
+
|
29120
|
+
|
29121
|
+
|
29122
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
29123
|
+
/**
|
29124
|
+
* Creates an object representation of this proto.
|
29125
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
29126
|
+
* Optional fields that are not set will be set to undefined.
|
29127
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
29128
|
+
* For the list of reserved names please see:
|
29129
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
29130
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
29131
|
+
* JSPB instance for transitional soy proto support:
|
29132
|
+
* http://goto/soy-param-migration
|
29133
|
+
* @return {!Object}
|
29134
|
+
*/
|
29135
|
+
proto.game.SegmentedUserResponse.prototype.toObject = function(opt_includeInstance) {
|
29136
|
+
return proto.game.SegmentedUserResponse.toObject(opt_includeInstance, this);
|
29137
|
+
};
|
29138
|
+
|
29139
|
+
|
29140
|
+
/**
|
29141
|
+
* Static version of the {@see toObject} method.
|
29142
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
29143
|
+
* the JSPB instance for transitional soy proto support:
|
29144
|
+
* http://goto/soy-param-migration
|
29145
|
+
* @param {!proto.game.SegmentedUserResponse} msg The msg instance to transform.
|
29146
|
+
* @return {!Object}
|
29147
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
29148
|
+
*/
|
29149
|
+
proto.game.SegmentedUserResponse.toObject = function(includeInstance, msg) {
|
29150
|
+
var f, obj = {
|
29151
|
+
userIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
29152
|
+
};
|
29153
|
+
|
29154
|
+
if (includeInstance) {
|
29155
|
+
obj.$jspbMessageInstance = msg;
|
29156
|
+
}
|
29157
|
+
return obj;
|
29158
|
+
};
|
29159
|
+
}
|
29160
|
+
|
29161
|
+
|
29162
|
+
/**
|
29163
|
+
* Deserializes binary data (in protobuf wire format).
|
29164
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
29165
|
+
* @return {!proto.game.SegmentedUserResponse}
|
29166
|
+
*/
|
29167
|
+
proto.game.SegmentedUserResponse.deserializeBinary = function(bytes) {
|
29168
|
+
var reader = new jspb.BinaryReader(bytes);
|
29169
|
+
var msg = new proto.game.SegmentedUserResponse;
|
29170
|
+
return proto.game.SegmentedUserResponse.deserializeBinaryFromReader(msg, reader);
|
29171
|
+
};
|
29172
|
+
|
29173
|
+
|
29174
|
+
/**
|
29175
|
+
* Deserializes binary data (in protobuf wire format) from the
|
29176
|
+
* given reader into the given message object.
|
29177
|
+
* @param {!proto.game.SegmentedUserResponse} msg The message object to deserialize into.
|
29178
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
29179
|
+
* @return {!proto.game.SegmentedUserResponse}
|
29180
|
+
*/
|
29181
|
+
proto.game.SegmentedUserResponse.deserializeBinaryFromReader = function(msg, reader) {
|
29182
|
+
while (reader.nextField()) {
|
29183
|
+
if (reader.isEndGroup()) {
|
29184
|
+
break;
|
29185
|
+
}
|
29186
|
+
var field = reader.getFieldNumber();
|
29187
|
+
switch (field) {
|
29188
|
+
case 1:
|
29189
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
29190
|
+
for (var i = 0; i < values.length; i++) {
|
29191
|
+
msg.addUserIds(values[i]);
|
29192
|
+
}
|
29193
|
+
break;
|
29194
|
+
default:
|
29195
|
+
reader.skipField();
|
29196
|
+
break;
|
29197
|
+
}
|
29198
|
+
}
|
29199
|
+
return msg;
|
29200
|
+
};
|
29201
|
+
|
29202
|
+
|
29203
|
+
/**
|
29204
|
+
* Serializes the message to binary data (in protobuf wire format).
|
29205
|
+
* @return {!Uint8Array}
|
29206
|
+
*/
|
29207
|
+
proto.game.SegmentedUserResponse.prototype.serializeBinary = function() {
|
29208
|
+
var writer = new jspb.BinaryWriter();
|
29209
|
+
proto.game.SegmentedUserResponse.serializeBinaryToWriter(this, writer);
|
29210
|
+
return writer.getResultBuffer();
|
29211
|
+
};
|
29212
|
+
|
29213
|
+
|
29214
|
+
/**
|
29215
|
+
* Serializes the given message to binary data (in protobuf wire
|
29216
|
+
* format), writing to the given BinaryWriter.
|
29217
|
+
* @param {!proto.game.SegmentedUserResponse} message
|
29218
|
+
* @param {!jspb.BinaryWriter} writer
|
29219
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
29220
|
+
*/
|
29221
|
+
proto.game.SegmentedUserResponse.serializeBinaryToWriter = function(message, writer) {
|
29222
|
+
var f = undefined;
|
29223
|
+
f = message.getUserIdsList();
|
29224
|
+
if (f.length > 0) {
|
29225
|
+
writer.writePackedInt32(
|
29226
|
+
1,
|
29227
|
+
f
|
29228
|
+
);
|
29229
|
+
}
|
29230
|
+
};
|
29231
|
+
|
29232
|
+
|
29233
|
+
/**
|
29234
|
+
* repeated int32 user_ids = 1;
|
29235
|
+
* @return {!Array<number>}
|
29236
|
+
*/
|
29237
|
+
proto.game.SegmentedUserResponse.prototype.getUserIdsList = function() {
|
29238
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
29239
|
+
};
|
29240
|
+
|
29241
|
+
|
29242
|
+
/**
|
29243
|
+
* @param {!Array<number>} value
|
29244
|
+
* @return {!proto.game.SegmentedUserResponse} returns this
|
29245
|
+
*/
|
29246
|
+
proto.game.SegmentedUserResponse.prototype.setUserIdsList = function(value) {
|
29247
|
+
return jspb.Message.setField(this, 1, value || []);
|
29248
|
+
};
|
29249
|
+
|
29250
|
+
|
29251
|
+
/**
|
29252
|
+
* @param {number} value
|
29253
|
+
* @param {number=} opt_index
|
29254
|
+
* @return {!proto.game.SegmentedUserResponse} returns this
|
29255
|
+
*/
|
29256
|
+
proto.game.SegmentedUserResponse.prototype.addUserIds = function(value, opt_index) {
|
29257
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
29258
|
+
};
|
29259
|
+
|
29260
|
+
|
29261
|
+
/**
|
29262
|
+
* Clears the list making it empty but non-null.
|
29263
|
+
* @return {!proto.game.SegmentedUserResponse} returns this
|
29264
|
+
*/
|
29265
|
+
proto.game.SegmentedUserResponse.prototype.clearUserIdsList = function() {
|
29266
|
+
return this.setUserIdsList([]);
|
29267
|
+
};
|
29268
|
+
|
29269
|
+
|
28661
29270
|
goog.object.extend(exports, proto.game);
|