protobuf-platform 1.2.180 → 1.2.182
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/package.json +1 -1
- package/user/user.proto +11 -0
- package/user/user_grpc_pb.js +33 -0
- package/user/user_pb.js +451 -1
package/package.json
CHANGED
package/user/user.proto
CHANGED
|
@@ -69,6 +69,7 @@ service User {
|
|
|
69
69
|
rpc toggleUserFavouriteGame(UserGameRequest) returns (UserToggleGameStatusResponse);
|
|
70
70
|
rpc getUserFavouriteGames(PaginationRequest) returns (UserGameIdsResponse);
|
|
71
71
|
rpc getUserLastPlayedGames(PaginationRequest) returns (UserGameIdsResponse);
|
|
72
|
+
rpc getUserFavouriteGameIdsByGameIds(UserGameIdsFilterRequest) returns (UserGameIdsFilterResponse);
|
|
72
73
|
}
|
|
73
74
|
//Technical
|
|
74
75
|
message PingRequest { string ping = 1; }
|
|
@@ -660,4 +661,14 @@ message UserToggleGameStatusResponse {
|
|
|
660
661
|
}
|
|
661
662
|
message UserGameIdsResponse {
|
|
662
663
|
repeated int32 game_ids = 1;
|
|
664
|
+
int32 total_items = 2;
|
|
665
|
+
int32 total_pages = 3;
|
|
666
|
+
}
|
|
667
|
+
message UserGameIdsFilterRequest {
|
|
668
|
+
int32 user_id = 1;
|
|
669
|
+
repeated int32 game_ids = 2;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
message UserGameIdsFilterResponse {
|
|
673
|
+
repeated int32 game_ids = 1;
|
|
663
674
|
}
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -521,6 +521,28 @@ function deserialize_user_UserDataResponse(buffer_arg) {
|
|
|
521
521
|
return user_pb.UserDataResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
+
function serialize_user_UserGameIdsFilterRequest(arg) {
|
|
525
|
+
if (!(arg instanceof user_pb.UserGameIdsFilterRequest)) {
|
|
526
|
+
throw new Error('Expected argument of type user.UserGameIdsFilterRequest');
|
|
527
|
+
}
|
|
528
|
+
return Buffer.from(arg.serializeBinary());
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
function deserialize_user_UserGameIdsFilterRequest(buffer_arg) {
|
|
532
|
+
return user_pb.UserGameIdsFilterRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
function serialize_user_UserGameIdsFilterResponse(arg) {
|
|
536
|
+
if (!(arg instanceof user_pb.UserGameIdsFilterResponse)) {
|
|
537
|
+
throw new Error('Expected argument of type user.UserGameIdsFilterResponse');
|
|
538
|
+
}
|
|
539
|
+
return Buffer.from(arg.serializeBinary());
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
function deserialize_user_UserGameIdsFilterResponse(buffer_arg) {
|
|
543
|
+
return user_pb.UserGameIdsFilterResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
544
|
+
}
|
|
545
|
+
|
|
524
546
|
function serialize_user_UserGameIdsResponse(arg) {
|
|
525
547
|
if (!(arg instanceof user_pb.UserGameIdsResponse)) {
|
|
526
548
|
throw new Error('Expected argument of type user.UserGameIdsResponse');
|
|
@@ -1219,6 +1241,17 @@ toggleUserFavouriteGame: {
|
|
|
1219
1241
|
responseSerialize: serialize_user_UserGameIdsResponse,
|
|
1220
1242
|
responseDeserialize: deserialize_user_UserGameIdsResponse,
|
|
1221
1243
|
},
|
|
1244
|
+
getUserFavouriteGameIdsByGameIds: {
|
|
1245
|
+
path: '/user.User/getUserFavouriteGameIdsByGameIds',
|
|
1246
|
+
requestStream: false,
|
|
1247
|
+
responseStream: false,
|
|
1248
|
+
requestType: user_pb.UserGameIdsFilterRequest,
|
|
1249
|
+
responseType: user_pb.UserGameIdsFilterResponse,
|
|
1250
|
+
requestSerialize: serialize_user_UserGameIdsFilterRequest,
|
|
1251
|
+
requestDeserialize: deserialize_user_UserGameIdsFilterRequest,
|
|
1252
|
+
responseSerialize: serialize_user_UserGameIdsFilterResponse,
|
|
1253
|
+
responseDeserialize: deserialize_user_UserGameIdsFilterResponse,
|
|
1254
|
+
},
|
|
1222
1255
|
};
|
|
1223
1256
|
|
|
1224
1257
|
exports.UserClient = grpc.makeGenericClientConstructor(UserService, 'User');
|
package/user/user_pb.js
CHANGED
|
@@ -85,6 +85,8 @@ goog.exportSymbol('proto.user.UserBalanceRequest', null, global);
|
|
|
85
85
|
goog.exportSymbol('proto.user.UserCookiesRequest', null, global);
|
|
86
86
|
goog.exportSymbol('proto.user.UserDataRequest', null, global);
|
|
87
87
|
goog.exportSymbol('proto.user.UserDataResponse', null, global);
|
|
88
|
+
goog.exportSymbol('proto.user.UserGameIdsFilterRequest', null, global);
|
|
89
|
+
goog.exportSymbol('proto.user.UserGameIdsFilterResponse', null, global);
|
|
88
90
|
goog.exportSymbol('proto.user.UserGameIdsResponse', null, global);
|
|
89
91
|
goog.exportSymbol('proto.user.UserGameRequest', null, global);
|
|
90
92
|
goog.exportSymbol('proto.user.UserLimitsRequest', null, global);
|
|
@@ -1694,6 +1696,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1694
1696
|
*/
|
|
1695
1697
|
proto.user.UserGameIdsResponse.displayName = 'proto.user.UserGameIdsResponse';
|
|
1696
1698
|
}
|
|
1699
|
+
/**
|
|
1700
|
+
* Generated by JsPbCodeGenerator.
|
|
1701
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1702
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1703
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1704
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1705
|
+
* valid.
|
|
1706
|
+
* @extends {jspb.Message}
|
|
1707
|
+
* @constructor
|
|
1708
|
+
*/
|
|
1709
|
+
proto.user.UserGameIdsFilterRequest = function(opt_data) {
|
|
1710
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.user.UserGameIdsFilterRequest.repeatedFields_, null);
|
|
1711
|
+
};
|
|
1712
|
+
goog.inherits(proto.user.UserGameIdsFilterRequest, jspb.Message);
|
|
1713
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1714
|
+
/**
|
|
1715
|
+
* @public
|
|
1716
|
+
* @override
|
|
1717
|
+
*/
|
|
1718
|
+
proto.user.UserGameIdsFilterRequest.displayName = 'proto.user.UserGameIdsFilterRequest';
|
|
1719
|
+
}
|
|
1720
|
+
/**
|
|
1721
|
+
* Generated by JsPbCodeGenerator.
|
|
1722
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1723
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1724
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1725
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1726
|
+
* valid.
|
|
1727
|
+
* @extends {jspb.Message}
|
|
1728
|
+
* @constructor
|
|
1729
|
+
*/
|
|
1730
|
+
proto.user.UserGameIdsFilterResponse = function(opt_data) {
|
|
1731
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.user.UserGameIdsFilterResponse.repeatedFields_, null);
|
|
1732
|
+
};
|
|
1733
|
+
goog.inherits(proto.user.UserGameIdsFilterResponse, jspb.Message);
|
|
1734
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1735
|
+
/**
|
|
1736
|
+
* @public
|
|
1737
|
+
* @override
|
|
1738
|
+
*/
|
|
1739
|
+
proto.user.UserGameIdsFilterResponse.displayName = 'proto.user.UserGameIdsFilterResponse';
|
|
1740
|
+
}
|
|
1697
1741
|
|
|
1698
1742
|
|
|
1699
1743
|
|
|
@@ -28853,7 +28897,9 @@ proto.user.UserGameIdsResponse.prototype.toObject = function(opt_includeInstance
|
|
|
28853
28897
|
*/
|
|
28854
28898
|
proto.user.UserGameIdsResponse.toObject = function(includeInstance, msg) {
|
|
28855
28899
|
var f, obj = {
|
|
28856
|
-
gameIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
28900
|
+
gameIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
28901
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
28902
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
28857
28903
|
};
|
|
28858
28904
|
|
|
28859
28905
|
if (includeInstance) {
|
|
@@ -28896,6 +28942,14 @@ proto.user.UserGameIdsResponse.deserializeBinaryFromReader = function(msg, reade
|
|
|
28896
28942
|
msg.addGameIds(values[i]);
|
|
28897
28943
|
}
|
|
28898
28944
|
break;
|
|
28945
|
+
case 2:
|
|
28946
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
28947
|
+
msg.setTotalItems(value);
|
|
28948
|
+
break;
|
|
28949
|
+
case 3:
|
|
28950
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
28951
|
+
msg.setTotalPages(value);
|
|
28952
|
+
break;
|
|
28899
28953
|
default:
|
|
28900
28954
|
reader.skipField();
|
|
28901
28955
|
break;
|
|
@@ -28932,6 +28986,20 @@ proto.user.UserGameIdsResponse.serializeBinaryToWriter = function(message, write
|
|
|
28932
28986
|
f
|
|
28933
28987
|
);
|
|
28934
28988
|
}
|
|
28989
|
+
f = message.getTotalItems();
|
|
28990
|
+
if (f !== 0) {
|
|
28991
|
+
writer.writeInt32(
|
|
28992
|
+
2,
|
|
28993
|
+
f
|
|
28994
|
+
);
|
|
28995
|
+
}
|
|
28996
|
+
f = message.getTotalPages();
|
|
28997
|
+
if (f !== 0) {
|
|
28998
|
+
writer.writeInt32(
|
|
28999
|
+
3,
|
|
29000
|
+
f
|
|
29001
|
+
);
|
|
29002
|
+
}
|
|
28935
29003
|
};
|
|
28936
29004
|
|
|
28937
29005
|
|
|
@@ -28972,4 +29040,386 @@ proto.user.UserGameIdsResponse.prototype.clearGameIdsList = function() {
|
|
|
28972
29040
|
};
|
|
28973
29041
|
|
|
28974
29042
|
|
|
29043
|
+
/**
|
|
29044
|
+
* optional int32 total_items = 2;
|
|
29045
|
+
* @return {number}
|
|
29046
|
+
*/
|
|
29047
|
+
proto.user.UserGameIdsResponse.prototype.getTotalItems = function() {
|
|
29048
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
29049
|
+
};
|
|
29050
|
+
|
|
29051
|
+
|
|
29052
|
+
/**
|
|
29053
|
+
* @param {number} value
|
|
29054
|
+
* @return {!proto.user.UserGameIdsResponse} returns this
|
|
29055
|
+
*/
|
|
29056
|
+
proto.user.UserGameIdsResponse.prototype.setTotalItems = function(value) {
|
|
29057
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
29058
|
+
};
|
|
29059
|
+
|
|
29060
|
+
|
|
29061
|
+
/**
|
|
29062
|
+
* optional int32 total_pages = 3;
|
|
29063
|
+
* @return {number}
|
|
29064
|
+
*/
|
|
29065
|
+
proto.user.UserGameIdsResponse.prototype.getTotalPages = function() {
|
|
29066
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
29067
|
+
};
|
|
29068
|
+
|
|
29069
|
+
|
|
29070
|
+
/**
|
|
29071
|
+
* @param {number} value
|
|
29072
|
+
* @return {!proto.user.UserGameIdsResponse} returns this
|
|
29073
|
+
*/
|
|
29074
|
+
proto.user.UserGameIdsResponse.prototype.setTotalPages = function(value) {
|
|
29075
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
29076
|
+
};
|
|
29077
|
+
|
|
29078
|
+
|
|
29079
|
+
|
|
29080
|
+
/**
|
|
29081
|
+
* List of repeated fields within this message type.
|
|
29082
|
+
* @private {!Array<number>}
|
|
29083
|
+
* @const
|
|
29084
|
+
*/
|
|
29085
|
+
proto.user.UserGameIdsFilterRequest.repeatedFields_ = [2];
|
|
29086
|
+
|
|
29087
|
+
|
|
29088
|
+
|
|
29089
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
29090
|
+
/**
|
|
29091
|
+
* Creates an object representation of this proto.
|
|
29092
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
29093
|
+
* Optional fields that are not set will be set to undefined.
|
|
29094
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
29095
|
+
* For the list of reserved names please see:
|
|
29096
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
29097
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
29098
|
+
* JSPB instance for transitional soy proto support:
|
|
29099
|
+
* http://goto/soy-param-migration
|
|
29100
|
+
* @return {!Object}
|
|
29101
|
+
*/
|
|
29102
|
+
proto.user.UserGameIdsFilterRequest.prototype.toObject = function(opt_includeInstance) {
|
|
29103
|
+
return proto.user.UserGameIdsFilterRequest.toObject(opt_includeInstance, this);
|
|
29104
|
+
};
|
|
29105
|
+
|
|
29106
|
+
|
|
29107
|
+
/**
|
|
29108
|
+
* Static version of the {@see toObject} method.
|
|
29109
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
29110
|
+
* the JSPB instance for transitional soy proto support:
|
|
29111
|
+
* http://goto/soy-param-migration
|
|
29112
|
+
* @param {!proto.user.UserGameIdsFilterRequest} msg The msg instance to transform.
|
|
29113
|
+
* @return {!Object}
|
|
29114
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
29115
|
+
*/
|
|
29116
|
+
proto.user.UserGameIdsFilterRequest.toObject = function(includeInstance, msg) {
|
|
29117
|
+
var f, obj = {
|
|
29118
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
29119
|
+
gameIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
29120
|
+
};
|
|
29121
|
+
|
|
29122
|
+
if (includeInstance) {
|
|
29123
|
+
obj.$jspbMessageInstance = msg;
|
|
29124
|
+
}
|
|
29125
|
+
return obj;
|
|
29126
|
+
};
|
|
29127
|
+
}
|
|
29128
|
+
|
|
29129
|
+
|
|
29130
|
+
/**
|
|
29131
|
+
* Deserializes binary data (in protobuf wire format).
|
|
29132
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
29133
|
+
* @return {!proto.user.UserGameIdsFilterRequest}
|
|
29134
|
+
*/
|
|
29135
|
+
proto.user.UserGameIdsFilterRequest.deserializeBinary = function(bytes) {
|
|
29136
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
29137
|
+
var msg = new proto.user.UserGameIdsFilterRequest;
|
|
29138
|
+
return proto.user.UserGameIdsFilterRequest.deserializeBinaryFromReader(msg, reader);
|
|
29139
|
+
};
|
|
29140
|
+
|
|
29141
|
+
|
|
29142
|
+
/**
|
|
29143
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
29144
|
+
* given reader into the given message object.
|
|
29145
|
+
* @param {!proto.user.UserGameIdsFilterRequest} msg The message object to deserialize into.
|
|
29146
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
29147
|
+
* @return {!proto.user.UserGameIdsFilterRequest}
|
|
29148
|
+
*/
|
|
29149
|
+
proto.user.UserGameIdsFilterRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
29150
|
+
while (reader.nextField()) {
|
|
29151
|
+
if (reader.isEndGroup()) {
|
|
29152
|
+
break;
|
|
29153
|
+
}
|
|
29154
|
+
var field = reader.getFieldNumber();
|
|
29155
|
+
switch (field) {
|
|
29156
|
+
case 1:
|
|
29157
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
29158
|
+
msg.setUserId(value);
|
|
29159
|
+
break;
|
|
29160
|
+
case 2:
|
|
29161
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
29162
|
+
for (var i = 0; i < values.length; i++) {
|
|
29163
|
+
msg.addGameIds(values[i]);
|
|
29164
|
+
}
|
|
29165
|
+
break;
|
|
29166
|
+
default:
|
|
29167
|
+
reader.skipField();
|
|
29168
|
+
break;
|
|
29169
|
+
}
|
|
29170
|
+
}
|
|
29171
|
+
return msg;
|
|
29172
|
+
};
|
|
29173
|
+
|
|
29174
|
+
|
|
29175
|
+
/**
|
|
29176
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
29177
|
+
* @return {!Uint8Array}
|
|
29178
|
+
*/
|
|
29179
|
+
proto.user.UserGameIdsFilterRequest.prototype.serializeBinary = function() {
|
|
29180
|
+
var writer = new jspb.BinaryWriter();
|
|
29181
|
+
proto.user.UserGameIdsFilterRequest.serializeBinaryToWriter(this, writer);
|
|
29182
|
+
return writer.getResultBuffer();
|
|
29183
|
+
};
|
|
29184
|
+
|
|
29185
|
+
|
|
29186
|
+
/**
|
|
29187
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
29188
|
+
* format), writing to the given BinaryWriter.
|
|
29189
|
+
* @param {!proto.user.UserGameIdsFilterRequest} message
|
|
29190
|
+
* @param {!jspb.BinaryWriter} writer
|
|
29191
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
29192
|
+
*/
|
|
29193
|
+
proto.user.UserGameIdsFilterRequest.serializeBinaryToWriter = function(message, writer) {
|
|
29194
|
+
var f = undefined;
|
|
29195
|
+
f = message.getUserId();
|
|
29196
|
+
if (f !== 0) {
|
|
29197
|
+
writer.writeInt32(
|
|
29198
|
+
1,
|
|
29199
|
+
f
|
|
29200
|
+
);
|
|
29201
|
+
}
|
|
29202
|
+
f = message.getGameIdsList();
|
|
29203
|
+
if (f.length > 0) {
|
|
29204
|
+
writer.writePackedInt32(
|
|
29205
|
+
2,
|
|
29206
|
+
f
|
|
29207
|
+
);
|
|
29208
|
+
}
|
|
29209
|
+
};
|
|
29210
|
+
|
|
29211
|
+
|
|
29212
|
+
/**
|
|
29213
|
+
* optional int32 user_id = 1;
|
|
29214
|
+
* @return {number}
|
|
29215
|
+
*/
|
|
29216
|
+
proto.user.UserGameIdsFilterRequest.prototype.getUserId = function() {
|
|
29217
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
29218
|
+
};
|
|
29219
|
+
|
|
29220
|
+
|
|
29221
|
+
/**
|
|
29222
|
+
* @param {number} value
|
|
29223
|
+
* @return {!proto.user.UserGameIdsFilterRequest} returns this
|
|
29224
|
+
*/
|
|
29225
|
+
proto.user.UserGameIdsFilterRequest.prototype.setUserId = function(value) {
|
|
29226
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
29227
|
+
};
|
|
29228
|
+
|
|
29229
|
+
|
|
29230
|
+
/**
|
|
29231
|
+
* repeated int32 game_ids = 2;
|
|
29232
|
+
* @return {!Array<number>}
|
|
29233
|
+
*/
|
|
29234
|
+
proto.user.UserGameIdsFilterRequest.prototype.getGameIdsList = function() {
|
|
29235
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
29236
|
+
};
|
|
29237
|
+
|
|
29238
|
+
|
|
29239
|
+
/**
|
|
29240
|
+
* @param {!Array<number>} value
|
|
29241
|
+
* @return {!proto.user.UserGameIdsFilterRequest} returns this
|
|
29242
|
+
*/
|
|
29243
|
+
proto.user.UserGameIdsFilterRequest.prototype.setGameIdsList = function(value) {
|
|
29244
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
29245
|
+
};
|
|
29246
|
+
|
|
29247
|
+
|
|
29248
|
+
/**
|
|
29249
|
+
* @param {number} value
|
|
29250
|
+
* @param {number=} opt_index
|
|
29251
|
+
* @return {!proto.user.UserGameIdsFilterRequest} returns this
|
|
29252
|
+
*/
|
|
29253
|
+
proto.user.UserGameIdsFilterRequest.prototype.addGameIds = function(value, opt_index) {
|
|
29254
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
29255
|
+
};
|
|
29256
|
+
|
|
29257
|
+
|
|
29258
|
+
/**
|
|
29259
|
+
* Clears the list making it empty but non-null.
|
|
29260
|
+
* @return {!proto.user.UserGameIdsFilterRequest} returns this
|
|
29261
|
+
*/
|
|
29262
|
+
proto.user.UserGameIdsFilterRequest.prototype.clearGameIdsList = function() {
|
|
29263
|
+
return this.setGameIdsList([]);
|
|
29264
|
+
};
|
|
29265
|
+
|
|
29266
|
+
|
|
29267
|
+
|
|
29268
|
+
/**
|
|
29269
|
+
* List of repeated fields within this message type.
|
|
29270
|
+
* @private {!Array<number>}
|
|
29271
|
+
* @const
|
|
29272
|
+
*/
|
|
29273
|
+
proto.user.UserGameIdsFilterResponse.repeatedFields_ = [1];
|
|
29274
|
+
|
|
29275
|
+
|
|
29276
|
+
|
|
29277
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
29278
|
+
/**
|
|
29279
|
+
* Creates an object representation of this proto.
|
|
29280
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
29281
|
+
* Optional fields that are not set will be set to undefined.
|
|
29282
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
29283
|
+
* For the list of reserved names please see:
|
|
29284
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
29285
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
29286
|
+
* JSPB instance for transitional soy proto support:
|
|
29287
|
+
* http://goto/soy-param-migration
|
|
29288
|
+
* @return {!Object}
|
|
29289
|
+
*/
|
|
29290
|
+
proto.user.UserGameIdsFilterResponse.prototype.toObject = function(opt_includeInstance) {
|
|
29291
|
+
return proto.user.UserGameIdsFilterResponse.toObject(opt_includeInstance, this);
|
|
29292
|
+
};
|
|
29293
|
+
|
|
29294
|
+
|
|
29295
|
+
/**
|
|
29296
|
+
* Static version of the {@see toObject} method.
|
|
29297
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
29298
|
+
* the JSPB instance for transitional soy proto support:
|
|
29299
|
+
* http://goto/soy-param-migration
|
|
29300
|
+
* @param {!proto.user.UserGameIdsFilterResponse} msg The msg instance to transform.
|
|
29301
|
+
* @return {!Object}
|
|
29302
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
29303
|
+
*/
|
|
29304
|
+
proto.user.UserGameIdsFilterResponse.toObject = function(includeInstance, msg) {
|
|
29305
|
+
var f, obj = {
|
|
29306
|
+
gameIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
29307
|
+
};
|
|
29308
|
+
|
|
29309
|
+
if (includeInstance) {
|
|
29310
|
+
obj.$jspbMessageInstance = msg;
|
|
29311
|
+
}
|
|
29312
|
+
return obj;
|
|
29313
|
+
};
|
|
29314
|
+
}
|
|
29315
|
+
|
|
29316
|
+
|
|
29317
|
+
/**
|
|
29318
|
+
* Deserializes binary data (in protobuf wire format).
|
|
29319
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
29320
|
+
* @return {!proto.user.UserGameIdsFilterResponse}
|
|
29321
|
+
*/
|
|
29322
|
+
proto.user.UserGameIdsFilterResponse.deserializeBinary = function(bytes) {
|
|
29323
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
29324
|
+
var msg = new proto.user.UserGameIdsFilterResponse;
|
|
29325
|
+
return proto.user.UserGameIdsFilterResponse.deserializeBinaryFromReader(msg, reader);
|
|
29326
|
+
};
|
|
29327
|
+
|
|
29328
|
+
|
|
29329
|
+
/**
|
|
29330
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
29331
|
+
* given reader into the given message object.
|
|
29332
|
+
* @param {!proto.user.UserGameIdsFilterResponse} msg The message object to deserialize into.
|
|
29333
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
29334
|
+
* @return {!proto.user.UserGameIdsFilterResponse}
|
|
29335
|
+
*/
|
|
29336
|
+
proto.user.UserGameIdsFilterResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
29337
|
+
while (reader.nextField()) {
|
|
29338
|
+
if (reader.isEndGroup()) {
|
|
29339
|
+
break;
|
|
29340
|
+
}
|
|
29341
|
+
var field = reader.getFieldNumber();
|
|
29342
|
+
switch (field) {
|
|
29343
|
+
case 1:
|
|
29344
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
29345
|
+
for (var i = 0; i < values.length; i++) {
|
|
29346
|
+
msg.addGameIds(values[i]);
|
|
29347
|
+
}
|
|
29348
|
+
break;
|
|
29349
|
+
default:
|
|
29350
|
+
reader.skipField();
|
|
29351
|
+
break;
|
|
29352
|
+
}
|
|
29353
|
+
}
|
|
29354
|
+
return msg;
|
|
29355
|
+
};
|
|
29356
|
+
|
|
29357
|
+
|
|
29358
|
+
/**
|
|
29359
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
29360
|
+
* @return {!Uint8Array}
|
|
29361
|
+
*/
|
|
29362
|
+
proto.user.UserGameIdsFilterResponse.prototype.serializeBinary = function() {
|
|
29363
|
+
var writer = new jspb.BinaryWriter();
|
|
29364
|
+
proto.user.UserGameIdsFilterResponse.serializeBinaryToWriter(this, writer);
|
|
29365
|
+
return writer.getResultBuffer();
|
|
29366
|
+
};
|
|
29367
|
+
|
|
29368
|
+
|
|
29369
|
+
/**
|
|
29370
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
29371
|
+
* format), writing to the given BinaryWriter.
|
|
29372
|
+
* @param {!proto.user.UserGameIdsFilterResponse} message
|
|
29373
|
+
* @param {!jspb.BinaryWriter} writer
|
|
29374
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
29375
|
+
*/
|
|
29376
|
+
proto.user.UserGameIdsFilterResponse.serializeBinaryToWriter = function(message, writer) {
|
|
29377
|
+
var f = undefined;
|
|
29378
|
+
f = message.getGameIdsList();
|
|
29379
|
+
if (f.length > 0) {
|
|
29380
|
+
writer.writePackedInt32(
|
|
29381
|
+
1,
|
|
29382
|
+
f
|
|
29383
|
+
);
|
|
29384
|
+
}
|
|
29385
|
+
};
|
|
29386
|
+
|
|
29387
|
+
|
|
29388
|
+
/**
|
|
29389
|
+
* repeated int32 game_ids = 1;
|
|
29390
|
+
* @return {!Array<number>}
|
|
29391
|
+
*/
|
|
29392
|
+
proto.user.UserGameIdsFilterResponse.prototype.getGameIdsList = function() {
|
|
29393
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
29394
|
+
};
|
|
29395
|
+
|
|
29396
|
+
|
|
29397
|
+
/**
|
|
29398
|
+
* @param {!Array<number>} value
|
|
29399
|
+
* @return {!proto.user.UserGameIdsFilterResponse} returns this
|
|
29400
|
+
*/
|
|
29401
|
+
proto.user.UserGameIdsFilterResponse.prototype.setGameIdsList = function(value) {
|
|
29402
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
29403
|
+
};
|
|
29404
|
+
|
|
29405
|
+
|
|
29406
|
+
/**
|
|
29407
|
+
* @param {number} value
|
|
29408
|
+
* @param {number=} opt_index
|
|
29409
|
+
* @return {!proto.user.UserGameIdsFilterResponse} returns this
|
|
29410
|
+
*/
|
|
29411
|
+
proto.user.UserGameIdsFilterResponse.prototype.addGameIds = function(value, opt_index) {
|
|
29412
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
29413
|
+
};
|
|
29414
|
+
|
|
29415
|
+
|
|
29416
|
+
/**
|
|
29417
|
+
* Clears the list making it empty but non-null.
|
|
29418
|
+
* @return {!proto.user.UserGameIdsFilterResponse} returns this
|
|
29419
|
+
*/
|
|
29420
|
+
proto.user.UserGameIdsFilterResponse.prototype.clearGameIdsList = function() {
|
|
29421
|
+
return this.setGameIdsList([]);
|
|
29422
|
+
};
|
|
29423
|
+
|
|
29424
|
+
|
|
28975
29425
|
goog.object.extend(exports, proto.user);
|