protobuf-platform 1.2.370 → 1.2.371
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 +6 -1
- package/game/game_pb.js +293 -12
- package/package.json +1 -1
package/game/game.proto
CHANGED
|
@@ -592,8 +592,13 @@ message SearchGamesFullGameSection {
|
|
|
592
592
|
optional int32 total_items = 2;
|
|
593
593
|
optional int32 total_pages = 3;
|
|
594
594
|
}
|
|
595
|
+
message SearchGamesFullProviderItem {
|
|
596
|
+
ProviderItem provider = 1;
|
|
597
|
+
repeated GameItem games = 2;
|
|
598
|
+
optional int32 total_games = 3;
|
|
599
|
+
}
|
|
595
600
|
message SearchGamesFullProviderSection {
|
|
596
|
-
repeated
|
|
601
|
+
repeated SearchGamesFullProviderItem items = 1;
|
|
597
602
|
optional int32 total_items = 2;
|
|
598
603
|
optional int32 total_pages = 3;
|
|
599
604
|
}
|
package/game/game_pb.js
CHANGED
|
@@ -133,6 +133,7 @@ goog.exportSymbol('proto.game.ScopeResponse', null, global);
|
|
|
133
133
|
goog.exportSymbol('proto.game.SearchGamesFullCategoryItem', null, global);
|
|
134
134
|
goog.exportSymbol('proto.game.SearchGamesFullCategorySection', null, global);
|
|
135
135
|
goog.exportSymbol('proto.game.SearchGamesFullGameSection', null, global);
|
|
136
|
+
goog.exportSymbol('proto.game.SearchGamesFullProviderItem', null, global);
|
|
136
137
|
goog.exportSymbol('proto.game.SearchGamesFullProviderSection', null, global);
|
|
137
138
|
goog.exportSymbol('proto.game.SearchGamesFullRequest', null, global);
|
|
138
139
|
goog.exportSymbol('proto.game.SearchGamesFullResponse', null, global);
|
|
@@ -1829,6 +1830,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1829
1830
|
*/
|
|
1830
1831
|
proto.game.SearchGamesFullGameSection.displayName = 'proto.game.SearchGamesFullGameSection';
|
|
1831
1832
|
}
|
|
1833
|
+
/**
|
|
1834
|
+
* Generated by JsPbCodeGenerator.
|
|
1835
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1836
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1837
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1838
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1839
|
+
* valid.
|
|
1840
|
+
* @extends {jspb.Message}
|
|
1841
|
+
* @constructor
|
|
1842
|
+
*/
|
|
1843
|
+
proto.game.SearchGamesFullProviderItem = function(opt_data) {
|
|
1844
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.SearchGamesFullProviderItem.repeatedFields_, null);
|
|
1845
|
+
};
|
|
1846
|
+
goog.inherits(proto.game.SearchGamesFullProviderItem, jspb.Message);
|
|
1847
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1848
|
+
/**
|
|
1849
|
+
* @public
|
|
1850
|
+
* @override
|
|
1851
|
+
*/
|
|
1852
|
+
proto.game.SearchGamesFullProviderItem.displayName = 'proto.game.SearchGamesFullProviderItem';
|
|
1853
|
+
}
|
|
1832
1854
|
/**
|
|
1833
1855
|
* Generated by JsPbCodeGenerator.
|
|
1834
1856
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -24741,6 +24763,265 @@ proto.game.SearchGamesFullGameSection.prototype.hasTotalPages = function() {
|
|
|
24741
24763
|
|
|
24742
24764
|
|
|
24743
24765
|
|
|
24766
|
+
/**
|
|
24767
|
+
* List of repeated fields within this message type.
|
|
24768
|
+
* @private {!Array<number>}
|
|
24769
|
+
* @const
|
|
24770
|
+
*/
|
|
24771
|
+
proto.game.SearchGamesFullProviderItem.repeatedFields_ = [2];
|
|
24772
|
+
|
|
24773
|
+
|
|
24774
|
+
|
|
24775
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
24776
|
+
/**
|
|
24777
|
+
* Creates an object representation of this proto.
|
|
24778
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
24779
|
+
* Optional fields that are not set will be set to undefined.
|
|
24780
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
24781
|
+
* For the list of reserved names please see:
|
|
24782
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
24783
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
24784
|
+
* JSPB instance for transitional soy proto support:
|
|
24785
|
+
* http://goto/soy-param-migration
|
|
24786
|
+
* @return {!Object}
|
|
24787
|
+
*/
|
|
24788
|
+
proto.game.SearchGamesFullProviderItem.prototype.toObject = function(opt_includeInstance) {
|
|
24789
|
+
return proto.game.SearchGamesFullProviderItem.toObject(opt_includeInstance, this);
|
|
24790
|
+
};
|
|
24791
|
+
|
|
24792
|
+
|
|
24793
|
+
/**
|
|
24794
|
+
* Static version of the {@see toObject} method.
|
|
24795
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
24796
|
+
* the JSPB instance for transitional soy proto support:
|
|
24797
|
+
* http://goto/soy-param-migration
|
|
24798
|
+
* @param {!proto.game.SearchGamesFullProviderItem} msg The msg instance to transform.
|
|
24799
|
+
* @return {!Object}
|
|
24800
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
24801
|
+
*/
|
|
24802
|
+
proto.game.SearchGamesFullProviderItem.toObject = function(includeInstance, msg) {
|
|
24803
|
+
var f, obj = {
|
|
24804
|
+
provider: (f = msg.getProvider()) && proto.game.ProviderItem.toObject(includeInstance, f),
|
|
24805
|
+
gamesList: jspb.Message.toObjectList(msg.getGamesList(),
|
|
24806
|
+
proto.game.GameItem.toObject, includeInstance),
|
|
24807
|
+
totalGames: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
24808
|
+
};
|
|
24809
|
+
|
|
24810
|
+
if (includeInstance) {
|
|
24811
|
+
obj.$jspbMessageInstance = msg;
|
|
24812
|
+
}
|
|
24813
|
+
return obj;
|
|
24814
|
+
};
|
|
24815
|
+
}
|
|
24816
|
+
|
|
24817
|
+
|
|
24818
|
+
/**
|
|
24819
|
+
* Deserializes binary data (in protobuf wire format).
|
|
24820
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
24821
|
+
* @return {!proto.game.SearchGamesFullProviderItem}
|
|
24822
|
+
*/
|
|
24823
|
+
proto.game.SearchGamesFullProviderItem.deserializeBinary = function(bytes) {
|
|
24824
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
24825
|
+
var msg = new proto.game.SearchGamesFullProviderItem;
|
|
24826
|
+
return proto.game.SearchGamesFullProviderItem.deserializeBinaryFromReader(msg, reader);
|
|
24827
|
+
};
|
|
24828
|
+
|
|
24829
|
+
|
|
24830
|
+
/**
|
|
24831
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
24832
|
+
* given reader into the given message object.
|
|
24833
|
+
* @param {!proto.game.SearchGamesFullProviderItem} msg The message object to deserialize into.
|
|
24834
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
24835
|
+
* @return {!proto.game.SearchGamesFullProviderItem}
|
|
24836
|
+
*/
|
|
24837
|
+
proto.game.SearchGamesFullProviderItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
24838
|
+
while (reader.nextField()) {
|
|
24839
|
+
if (reader.isEndGroup()) {
|
|
24840
|
+
break;
|
|
24841
|
+
}
|
|
24842
|
+
var field = reader.getFieldNumber();
|
|
24843
|
+
switch (field) {
|
|
24844
|
+
case 1:
|
|
24845
|
+
var value = new proto.game.ProviderItem;
|
|
24846
|
+
reader.readMessage(value,proto.game.ProviderItem.deserializeBinaryFromReader);
|
|
24847
|
+
msg.setProvider(value);
|
|
24848
|
+
break;
|
|
24849
|
+
case 2:
|
|
24850
|
+
var value = new proto.game.GameItem;
|
|
24851
|
+
reader.readMessage(value,proto.game.GameItem.deserializeBinaryFromReader);
|
|
24852
|
+
msg.addGames(value);
|
|
24853
|
+
break;
|
|
24854
|
+
case 3:
|
|
24855
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
24856
|
+
msg.setTotalGames(value);
|
|
24857
|
+
break;
|
|
24858
|
+
default:
|
|
24859
|
+
reader.skipField();
|
|
24860
|
+
break;
|
|
24861
|
+
}
|
|
24862
|
+
}
|
|
24863
|
+
return msg;
|
|
24864
|
+
};
|
|
24865
|
+
|
|
24866
|
+
|
|
24867
|
+
/**
|
|
24868
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
24869
|
+
* @return {!Uint8Array}
|
|
24870
|
+
*/
|
|
24871
|
+
proto.game.SearchGamesFullProviderItem.prototype.serializeBinary = function() {
|
|
24872
|
+
var writer = new jspb.BinaryWriter();
|
|
24873
|
+
proto.game.SearchGamesFullProviderItem.serializeBinaryToWriter(this, writer);
|
|
24874
|
+
return writer.getResultBuffer();
|
|
24875
|
+
};
|
|
24876
|
+
|
|
24877
|
+
|
|
24878
|
+
/**
|
|
24879
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
24880
|
+
* format), writing to the given BinaryWriter.
|
|
24881
|
+
* @param {!proto.game.SearchGamesFullProviderItem} message
|
|
24882
|
+
* @param {!jspb.BinaryWriter} writer
|
|
24883
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
24884
|
+
*/
|
|
24885
|
+
proto.game.SearchGamesFullProviderItem.serializeBinaryToWriter = function(message, writer) {
|
|
24886
|
+
var f = undefined;
|
|
24887
|
+
f = message.getProvider();
|
|
24888
|
+
if (f != null) {
|
|
24889
|
+
writer.writeMessage(
|
|
24890
|
+
1,
|
|
24891
|
+
f,
|
|
24892
|
+
proto.game.ProviderItem.serializeBinaryToWriter
|
|
24893
|
+
);
|
|
24894
|
+
}
|
|
24895
|
+
f = message.getGamesList();
|
|
24896
|
+
if (f.length > 0) {
|
|
24897
|
+
writer.writeRepeatedMessage(
|
|
24898
|
+
2,
|
|
24899
|
+
f,
|
|
24900
|
+
proto.game.GameItem.serializeBinaryToWriter
|
|
24901
|
+
);
|
|
24902
|
+
}
|
|
24903
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
24904
|
+
if (f != null) {
|
|
24905
|
+
writer.writeInt32(
|
|
24906
|
+
3,
|
|
24907
|
+
f
|
|
24908
|
+
);
|
|
24909
|
+
}
|
|
24910
|
+
};
|
|
24911
|
+
|
|
24912
|
+
|
|
24913
|
+
/**
|
|
24914
|
+
* optional ProviderItem provider = 1;
|
|
24915
|
+
* @return {?proto.game.ProviderItem}
|
|
24916
|
+
*/
|
|
24917
|
+
proto.game.SearchGamesFullProviderItem.prototype.getProvider = function() {
|
|
24918
|
+
return /** @type{?proto.game.ProviderItem} */ (
|
|
24919
|
+
jspb.Message.getWrapperField(this, proto.game.ProviderItem, 1));
|
|
24920
|
+
};
|
|
24921
|
+
|
|
24922
|
+
|
|
24923
|
+
/**
|
|
24924
|
+
* @param {?proto.game.ProviderItem|undefined} value
|
|
24925
|
+
* @return {!proto.game.SearchGamesFullProviderItem} returns this
|
|
24926
|
+
*/
|
|
24927
|
+
proto.game.SearchGamesFullProviderItem.prototype.setProvider = function(value) {
|
|
24928
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
24929
|
+
};
|
|
24930
|
+
|
|
24931
|
+
|
|
24932
|
+
/**
|
|
24933
|
+
* Clears the message field making it undefined.
|
|
24934
|
+
* @return {!proto.game.SearchGamesFullProviderItem} returns this
|
|
24935
|
+
*/
|
|
24936
|
+
proto.game.SearchGamesFullProviderItem.prototype.clearProvider = function() {
|
|
24937
|
+
return this.setProvider(undefined);
|
|
24938
|
+
};
|
|
24939
|
+
|
|
24940
|
+
|
|
24941
|
+
/**
|
|
24942
|
+
* Returns whether this field is set.
|
|
24943
|
+
* @return {boolean}
|
|
24944
|
+
*/
|
|
24945
|
+
proto.game.SearchGamesFullProviderItem.prototype.hasProvider = function() {
|
|
24946
|
+
return jspb.Message.getField(this, 1) != null;
|
|
24947
|
+
};
|
|
24948
|
+
|
|
24949
|
+
|
|
24950
|
+
/**
|
|
24951
|
+
* repeated GameItem games = 2;
|
|
24952
|
+
* @return {!Array<!proto.game.GameItem>}
|
|
24953
|
+
*/
|
|
24954
|
+
proto.game.SearchGamesFullProviderItem.prototype.getGamesList = function() {
|
|
24955
|
+
return /** @type{!Array<!proto.game.GameItem>} */ (
|
|
24956
|
+
jspb.Message.getRepeatedWrapperField(this, proto.game.GameItem, 2));
|
|
24957
|
+
};
|
|
24958
|
+
|
|
24959
|
+
|
|
24960
|
+
/**
|
|
24961
|
+
* @param {!Array<!proto.game.GameItem>} value
|
|
24962
|
+
* @return {!proto.game.SearchGamesFullProviderItem} returns this
|
|
24963
|
+
*/
|
|
24964
|
+
proto.game.SearchGamesFullProviderItem.prototype.setGamesList = function(value) {
|
|
24965
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
24966
|
+
};
|
|
24967
|
+
|
|
24968
|
+
|
|
24969
|
+
/**
|
|
24970
|
+
* @param {!proto.game.GameItem=} opt_value
|
|
24971
|
+
* @param {number=} opt_index
|
|
24972
|
+
* @return {!proto.game.GameItem}
|
|
24973
|
+
*/
|
|
24974
|
+
proto.game.SearchGamesFullProviderItem.prototype.addGames = function(opt_value, opt_index) {
|
|
24975
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.game.GameItem, opt_index);
|
|
24976
|
+
};
|
|
24977
|
+
|
|
24978
|
+
|
|
24979
|
+
/**
|
|
24980
|
+
* Clears the list making it empty but non-null.
|
|
24981
|
+
* @return {!proto.game.SearchGamesFullProviderItem} returns this
|
|
24982
|
+
*/
|
|
24983
|
+
proto.game.SearchGamesFullProviderItem.prototype.clearGamesList = function() {
|
|
24984
|
+
return this.setGamesList([]);
|
|
24985
|
+
};
|
|
24986
|
+
|
|
24987
|
+
|
|
24988
|
+
/**
|
|
24989
|
+
* optional int32 total_games = 3;
|
|
24990
|
+
* @return {number}
|
|
24991
|
+
*/
|
|
24992
|
+
proto.game.SearchGamesFullProviderItem.prototype.getTotalGames = function() {
|
|
24993
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
24994
|
+
};
|
|
24995
|
+
|
|
24996
|
+
|
|
24997
|
+
/**
|
|
24998
|
+
* @param {number} value
|
|
24999
|
+
* @return {!proto.game.SearchGamesFullProviderItem} returns this
|
|
25000
|
+
*/
|
|
25001
|
+
proto.game.SearchGamesFullProviderItem.prototype.setTotalGames = function(value) {
|
|
25002
|
+
return jspb.Message.setField(this, 3, value);
|
|
25003
|
+
};
|
|
25004
|
+
|
|
25005
|
+
|
|
25006
|
+
/**
|
|
25007
|
+
* Clears the field making it undefined.
|
|
25008
|
+
* @return {!proto.game.SearchGamesFullProviderItem} returns this
|
|
25009
|
+
*/
|
|
25010
|
+
proto.game.SearchGamesFullProviderItem.prototype.clearTotalGames = function() {
|
|
25011
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
25012
|
+
};
|
|
25013
|
+
|
|
25014
|
+
|
|
25015
|
+
/**
|
|
25016
|
+
* Returns whether this field is set.
|
|
25017
|
+
* @return {boolean}
|
|
25018
|
+
*/
|
|
25019
|
+
proto.game.SearchGamesFullProviderItem.prototype.hasTotalGames = function() {
|
|
25020
|
+
return jspb.Message.getField(this, 3) != null;
|
|
25021
|
+
};
|
|
25022
|
+
|
|
25023
|
+
|
|
25024
|
+
|
|
24744
25025
|
/**
|
|
24745
25026
|
* List of repeated fields within this message type.
|
|
24746
25027
|
* @private {!Array<number>}
|
|
@@ -24780,7 +25061,7 @@ proto.game.SearchGamesFullProviderSection.prototype.toObject = function(opt_incl
|
|
|
24780
25061
|
proto.game.SearchGamesFullProviderSection.toObject = function(includeInstance, msg) {
|
|
24781
25062
|
var f, obj = {
|
|
24782
25063
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
24783
|
-
proto.game.
|
|
25064
|
+
proto.game.SearchGamesFullProviderItem.toObject, includeInstance),
|
|
24784
25065
|
totalItems: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
24785
25066
|
totalPages: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
24786
25067
|
};
|
|
@@ -24820,8 +25101,8 @@ proto.game.SearchGamesFullProviderSection.deserializeBinaryFromReader = function
|
|
|
24820
25101
|
var field = reader.getFieldNumber();
|
|
24821
25102
|
switch (field) {
|
|
24822
25103
|
case 1:
|
|
24823
|
-
var value = new proto.game.
|
|
24824
|
-
reader.readMessage(value,proto.game.
|
|
25104
|
+
var value = new proto.game.SearchGamesFullProviderItem;
|
|
25105
|
+
reader.readMessage(value,proto.game.SearchGamesFullProviderItem.deserializeBinaryFromReader);
|
|
24825
25106
|
msg.addItems(value);
|
|
24826
25107
|
break;
|
|
24827
25108
|
case 2:
|
|
@@ -24866,7 +25147,7 @@ proto.game.SearchGamesFullProviderSection.serializeBinaryToWriter = function(mes
|
|
|
24866
25147
|
writer.writeRepeatedMessage(
|
|
24867
25148
|
1,
|
|
24868
25149
|
f,
|
|
24869
|
-
proto.game.
|
|
25150
|
+
proto.game.SearchGamesFullProviderItem.serializeBinaryToWriter
|
|
24870
25151
|
);
|
|
24871
25152
|
}
|
|
24872
25153
|
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
@@ -24887,17 +25168,17 @@ proto.game.SearchGamesFullProviderSection.serializeBinaryToWriter = function(mes
|
|
|
24887
25168
|
|
|
24888
25169
|
|
|
24889
25170
|
/**
|
|
24890
|
-
* repeated
|
|
24891
|
-
* @return {!Array<!proto.game.
|
|
25171
|
+
* repeated SearchGamesFullProviderItem items = 1;
|
|
25172
|
+
* @return {!Array<!proto.game.SearchGamesFullProviderItem>}
|
|
24892
25173
|
*/
|
|
24893
25174
|
proto.game.SearchGamesFullProviderSection.prototype.getItemsList = function() {
|
|
24894
|
-
return /** @type{!Array<!proto.game.
|
|
24895
|
-
jspb.Message.getRepeatedWrapperField(this, proto.game.
|
|
25175
|
+
return /** @type{!Array<!proto.game.SearchGamesFullProviderItem>} */ (
|
|
25176
|
+
jspb.Message.getRepeatedWrapperField(this, proto.game.SearchGamesFullProviderItem, 1));
|
|
24896
25177
|
};
|
|
24897
25178
|
|
|
24898
25179
|
|
|
24899
25180
|
/**
|
|
24900
|
-
* @param {!Array<!proto.game.
|
|
25181
|
+
* @param {!Array<!proto.game.SearchGamesFullProviderItem>} value
|
|
24901
25182
|
* @return {!proto.game.SearchGamesFullProviderSection} returns this
|
|
24902
25183
|
*/
|
|
24903
25184
|
proto.game.SearchGamesFullProviderSection.prototype.setItemsList = function(value) {
|
|
@@ -24906,12 +25187,12 @@ proto.game.SearchGamesFullProviderSection.prototype.setItemsList = function(valu
|
|
|
24906
25187
|
|
|
24907
25188
|
|
|
24908
25189
|
/**
|
|
24909
|
-
* @param {!proto.game.
|
|
25190
|
+
* @param {!proto.game.SearchGamesFullProviderItem=} opt_value
|
|
24910
25191
|
* @param {number=} opt_index
|
|
24911
|
-
* @return {!proto.game.
|
|
25192
|
+
* @return {!proto.game.SearchGamesFullProviderItem}
|
|
24912
25193
|
*/
|
|
24913
25194
|
proto.game.SearchGamesFullProviderSection.prototype.addItems = function(opt_value, opt_index) {
|
|
24914
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.
|
|
25195
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.SearchGamesFullProviderItem, opt_index);
|
|
24915
25196
|
};
|
|
24916
25197
|
|
|
24917
25198
|
|