protobuf-platform 1.0.66 → 1.0.67
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 +13 -0
- package/game/game_grpc_pb.js +44 -0
- package/game/game_pb.js +526 -0
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -24,6 +24,7 @@ service Game {
|
|
24
24
|
rpc updateSingleTag(stream TagRequest) returns (TagResponse);
|
25
25
|
rpc deleteSingleTag(GetTagRequest) returns (TagStatusResponse);
|
26
26
|
rpc readListTags(PaginationRequest) returns (TagItemsResponse);
|
27
|
+
rpc addGamesToTag(TagGamesRequest) returns (TagStatusResponse);
|
27
28
|
//Providers
|
28
29
|
rpc createSingleProvider(stream ProviderRequest) returns (ProviderResponse);
|
29
30
|
rpc readSingleProvider(GetProviderRequest) returns (ProviderResponse);
|
@@ -37,6 +38,7 @@ service Game {
|
|
37
38
|
rpc deleteSingleGame(GetGameRequest) returns (GameStatusResponse);
|
38
39
|
rpc readListGames(PaginationRequest) returns (GameItemsResponse);
|
39
40
|
rpc searchGamesByCollections(SearchGamesIntoCollectionsRequest) returns (GameItemsResponse);
|
41
|
+
rpc searchGamesByTags(SearchGamesIntoTagsRequest) returns (GameItemsResponse);
|
40
42
|
}
|
41
43
|
|
42
44
|
message PingRequest { string ping = 1; }
|
@@ -174,6 +176,11 @@ message TagItemsResponse {
|
|
174
176
|
message TagStatusResponse {
|
175
177
|
string status = 1;
|
176
178
|
}
|
179
|
+
message TagGamesRequest {
|
180
|
+
int32 id = 1;
|
181
|
+
string game_ids = 2;
|
182
|
+
optional string geo = 3;
|
183
|
+
}
|
177
184
|
|
178
185
|
//Provider CRUD
|
179
186
|
message ProviderItem {
|
@@ -274,4 +281,10 @@ message SearchGamesIntoCollectionsRequest {
|
|
274
281
|
optional string geo = 2;
|
275
282
|
optional int32 limit = 3;
|
276
283
|
optional int32 offset = 4;
|
284
|
+
}
|
285
|
+
message SearchGamesIntoTagsRequest {
|
286
|
+
string tag_slugs = 1;
|
287
|
+
optional string geo = 2;
|
288
|
+
optional int32 limit = 3;
|
289
|
+
optional int32 offset = 4;
|
277
290
|
}
|
package/game/game_grpc_pb.js
CHANGED
@@ -334,6 +334,28 @@ function deserialize_game_SearchGamesIntoCollectionsRequest(buffer_arg) {
|
|
334
334
|
return game_pb.SearchGamesIntoCollectionsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
335
335
|
}
|
336
336
|
|
337
|
+
function serialize_game_SearchGamesIntoTagsRequest(arg) {
|
338
|
+
if (!(arg instanceof game_pb.SearchGamesIntoTagsRequest)) {
|
339
|
+
throw new Error('Expected argument of type game.SearchGamesIntoTagsRequest');
|
340
|
+
}
|
341
|
+
return Buffer.from(arg.serializeBinary());
|
342
|
+
}
|
343
|
+
|
344
|
+
function deserialize_game_SearchGamesIntoTagsRequest(buffer_arg) {
|
345
|
+
return game_pb.SearchGamesIntoTagsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
346
|
+
}
|
347
|
+
|
348
|
+
function serialize_game_TagGamesRequest(arg) {
|
349
|
+
if (!(arg instanceof game_pb.TagGamesRequest)) {
|
350
|
+
throw new Error('Expected argument of type game.TagGamesRequest');
|
351
|
+
}
|
352
|
+
return Buffer.from(arg.serializeBinary());
|
353
|
+
}
|
354
|
+
|
355
|
+
function deserialize_game_TagGamesRequest(buffer_arg) {
|
356
|
+
return game_pb.TagGamesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
357
|
+
}
|
358
|
+
|
337
359
|
function serialize_game_TagItemsResponse(arg) {
|
338
360
|
if (!(arg instanceof game_pb.TagItemsResponse)) {
|
339
361
|
throw new Error('Expected argument of type game.TagItemsResponse');
|
@@ -581,6 +603,17 @@ createSingleTag: {
|
|
581
603
|
responseSerialize: serialize_game_TagItemsResponse,
|
582
604
|
responseDeserialize: deserialize_game_TagItemsResponse,
|
583
605
|
},
|
606
|
+
addGamesToTag: {
|
607
|
+
path: '/game.Game/addGamesToTag',
|
608
|
+
requestStream: false,
|
609
|
+
responseStream: false,
|
610
|
+
requestType: game_pb.TagGamesRequest,
|
611
|
+
responseType: game_pb.TagStatusResponse,
|
612
|
+
requestSerialize: serialize_game_TagGamesRequest,
|
613
|
+
requestDeserialize: deserialize_game_TagGamesRequest,
|
614
|
+
responseSerialize: serialize_game_TagStatusResponse,
|
615
|
+
responseDeserialize: deserialize_game_TagStatusResponse,
|
616
|
+
},
|
584
617
|
// Providers
|
585
618
|
createSingleProvider: {
|
586
619
|
path: '/game.Game/createSingleProvider',
|
@@ -704,6 +737,17 @@ parseGames: {
|
|
704
737
|
responseSerialize: serialize_game_GameItemsResponse,
|
705
738
|
responseDeserialize: deserialize_game_GameItemsResponse,
|
706
739
|
},
|
740
|
+
searchGamesByTags: {
|
741
|
+
path: '/game.Game/searchGamesByTags',
|
742
|
+
requestStream: false,
|
743
|
+
responseStream: false,
|
744
|
+
requestType: game_pb.SearchGamesIntoTagsRequest,
|
745
|
+
responseType: game_pb.GameItemsResponse,
|
746
|
+
requestSerialize: serialize_game_SearchGamesIntoTagsRequest,
|
747
|
+
requestDeserialize: deserialize_game_SearchGamesIntoTagsRequest,
|
748
|
+
responseSerialize: serialize_game_GameItemsResponse,
|
749
|
+
responseDeserialize: deserialize_game_GameItemsResponse,
|
750
|
+
},
|
707
751
|
};
|
708
752
|
|
709
753
|
exports.GameClient = grpc.makeGenericClientConstructor(GameService);
|
package/game/game_pb.js
CHANGED
@@ -63,6 +63,8 @@ goog.exportSymbol('proto.game.ProviderRequest.RequestCase', null, global);
|
|
63
63
|
goog.exportSymbol('proto.game.ProviderResponse', null, global);
|
64
64
|
goog.exportSymbol('proto.game.ProviderStatusResponse', null, global);
|
65
65
|
goog.exportSymbol('proto.game.SearchGamesIntoCollectionsRequest', null, global);
|
66
|
+
goog.exportSymbol('proto.game.SearchGamesIntoTagsRequest', null, global);
|
67
|
+
goog.exportSymbol('proto.game.TagGamesRequest', null, global);
|
66
68
|
goog.exportSymbol('proto.game.TagItem', null, global);
|
67
69
|
goog.exportSymbol('proto.game.TagItemRequest', null, global);
|
68
70
|
goog.exportSymbol('proto.game.TagItemsResponse', null, global);
|
@@ -637,6 +639,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
637
639
|
*/
|
638
640
|
proto.game.TagStatusResponse.displayName = 'proto.game.TagStatusResponse';
|
639
641
|
}
|
642
|
+
/**
|
643
|
+
* Generated by JsPbCodeGenerator.
|
644
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
645
|
+
* server response, or constructed directly in Javascript. The array is used
|
646
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
647
|
+
* If no data is provided, the constructed object will be empty, but still
|
648
|
+
* valid.
|
649
|
+
* @extends {jspb.Message}
|
650
|
+
* @constructor
|
651
|
+
*/
|
652
|
+
proto.game.TagGamesRequest = function(opt_data) {
|
653
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
654
|
+
};
|
655
|
+
goog.inherits(proto.game.TagGamesRequest, jspb.Message);
|
656
|
+
if (goog.DEBUG && !COMPILED) {
|
657
|
+
/**
|
658
|
+
* @public
|
659
|
+
* @override
|
660
|
+
*/
|
661
|
+
proto.game.TagGamesRequest.displayName = 'proto.game.TagGamesRequest';
|
662
|
+
}
|
640
663
|
/**
|
641
664
|
* Generated by JsPbCodeGenerator.
|
642
665
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -994,6 +1017,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
994
1017
|
*/
|
995
1018
|
proto.game.SearchGamesIntoCollectionsRequest.displayName = 'proto.game.SearchGamesIntoCollectionsRequest';
|
996
1019
|
}
|
1020
|
+
/**
|
1021
|
+
* Generated by JsPbCodeGenerator.
|
1022
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1023
|
+
* server response, or constructed directly in Javascript. The array is used
|
1024
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1025
|
+
* If no data is provided, the constructed object will be empty, but still
|
1026
|
+
* valid.
|
1027
|
+
* @extends {jspb.Message}
|
1028
|
+
* @constructor
|
1029
|
+
*/
|
1030
|
+
proto.game.SearchGamesIntoTagsRequest = function(opt_data) {
|
1031
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1032
|
+
};
|
1033
|
+
goog.inherits(proto.game.SearchGamesIntoTagsRequest, jspb.Message);
|
1034
|
+
if (goog.DEBUG && !COMPILED) {
|
1035
|
+
/**
|
1036
|
+
* @public
|
1037
|
+
* @override
|
1038
|
+
*/
|
1039
|
+
proto.game.SearchGamesIntoTagsRequest.displayName = 'proto.game.SearchGamesIntoTagsRequest';
|
1040
|
+
}
|
997
1041
|
|
998
1042
|
|
999
1043
|
|
@@ -7195,6 +7239,214 @@ proto.game.TagStatusResponse.prototype.setStatus = function(value) {
|
|
7195
7239
|
|
7196
7240
|
|
7197
7241
|
|
7242
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
7243
|
+
/**
|
7244
|
+
* Creates an object representation of this proto.
|
7245
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
7246
|
+
* Optional fields that are not set will be set to undefined.
|
7247
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
7248
|
+
* For the list of reserved names please see:
|
7249
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
7250
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
7251
|
+
* JSPB instance for transitional soy proto support:
|
7252
|
+
* http://goto/soy-param-migration
|
7253
|
+
* @return {!Object}
|
7254
|
+
*/
|
7255
|
+
proto.game.TagGamesRequest.prototype.toObject = function(opt_includeInstance) {
|
7256
|
+
return proto.game.TagGamesRequest.toObject(opt_includeInstance, this);
|
7257
|
+
};
|
7258
|
+
|
7259
|
+
|
7260
|
+
/**
|
7261
|
+
* Static version of the {@see toObject} method.
|
7262
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
7263
|
+
* the JSPB instance for transitional soy proto support:
|
7264
|
+
* http://goto/soy-param-migration
|
7265
|
+
* @param {!proto.game.TagGamesRequest} msg The msg instance to transform.
|
7266
|
+
* @return {!Object}
|
7267
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
7268
|
+
*/
|
7269
|
+
proto.game.TagGamesRequest.toObject = function(includeInstance, msg) {
|
7270
|
+
var f, obj = {
|
7271
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
7272
|
+
gameIds: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
7273
|
+
geo: jspb.Message.getFieldWithDefault(msg, 3, "")
|
7274
|
+
};
|
7275
|
+
|
7276
|
+
if (includeInstance) {
|
7277
|
+
obj.$jspbMessageInstance = msg;
|
7278
|
+
}
|
7279
|
+
return obj;
|
7280
|
+
};
|
7281
|
+
}
|
7282
|
+
|
7283
|
+
|
7284
|
+
/**
|
7285
|
+
* Deserializes binary data (in protobuf wire format).
|
7286
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
7287
|
+
* @return {!proto.game.TagGamesRequest}
|
7288
|
+
*/
|
7289
|
+
proto.game.TagGamesRequest.deserializeBinary = function(bytes) {
|
7290
|
+
var reader = new jspb.BinaryReader(bytes);
|
7291
|
+
var msg = new proto.game.TagGamesRequest;
|
7292
|
+
return proto.game.TagGamesRequest.deserializeBinaryFromReader(msg, reader);
|
7293
|
+
};
|
7294
|
+
|
7295
|
+
|
7296
|
+
/**
|
7297
|
+
* Deserializes binary data (in protobuf wire format) from the
|
7298
|
+
* given reader into the given message object.
|
7299
|
+
* @param {!proto.game.TagGamesRequest} msg The message object to deserialize into.
|
7300
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
7301
|
+
* @return {!proto.game.TagGamesRequest}
|
7302
|
+
*/
|
7303
|
+
proto.game.TagGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
7304
|
+
while (reader.nextField()) {
|
7305
|
+
if (reader.isEndGroup()) {
|
7306
|
+
break;
|
7307
|
+
}
|
7308
|
+
var field = reader.getFieldNumber();
|
7309
|
+
switch (field) {
|
7310
|
+
case 1:
|
7311
|
+
var value = /** @type {number} */ (reader.readInt32());
|
7312
|
+
msg.setId(value);
|
7313
|
+
break;
|
7314
|
+
case 2:
|
7315
|
+
var value = /** @type {string} */ (reader.readString());
|
7316
|
+
msg.setGameIds(value);
|
7317
|
+
break;
|
7318
|
+
case 3:
|
7319
|
+
var value = /** @type {string} */ (reader.readString());
|
7320
|
+
msg.setGeo(value);
|
7321
|
+
break;
|
7322
|
+
default:
|
7323
|
+
reader.skipField();
|
7324
|
+
break;
|
7325
|
+
}
|
7326
|
+
}
|
7327
|
+
return msg;
|
7328
|
+
};
|
7329
|
+
|
7330
|
+
|
7331
|
+
/**
|
7332
|
+
* Serializes the message to binary data (in protobuf wire format).
|
7333
|
+
* @return {!Uint8Array}
|
7334
|
+
*/
|
7335
|
+
proto.game.TagGamesRequest.prototype.serializeBinary = function() {
|
7336
|
+
var writer = new jspb.BinaryWriter();
|
7337
|
+
proto.game.TagGamesRequest.serializeBinaryToWriter(this, writer);
|
7338
|
+
return writer.getResultBuffer();
|
7339
|
+
};
|
7340
|
+
|
7341
|
+
|
7342
|
+
/**
|
7343
|
+
* Serializes the given message to binary data (in protobuf wire
|
7344
|
+
* format), writing to the given BinaryWriter.
|
7345
|
+
* @param {!proto.game.TagGamesRequest} message
|
7346
|
+
* @param {!jspb.BinaryWriter} writer
|
7347
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
7348
|
+
*/
|
7349
|
+
proto.game.TagGamesRequest.serializeBinaryToWriter = function(message, writer) {
|
7350
|
+
var f = undefined;
|
7351
|
+
f = message.getId();
|
7352
|
+
if (f !== 0) {
|
7353
|
+
writer.writeInt32(
|
7354
|
+
1,
|
7355
|
+
f
|
7356
|
+
);
|
7357
|
+
}
|
7358
|
+
f = message.getGameIds();
|
7359
|
+
if (f.length > 0) {
|
7360
|
+
writer.writeString(
|
7361
|
+
2,
|
7362
|
+
f
|
7363
|
+
);
|
7364
|
+
}
|
7365
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
7366
|
+
if (f != null) {
|
7367
|
+
writer.writeString(
|
7368
|
+
3,
|
7369
|
+
f
|
7370
|
+
);
|
7371
|
+
}
|
7372
|
+
};
|
7373
|
+
|
7374
|
+
|
7375
|
+
/**
|
7376
|
+
* optional int32 id = 1;
|
7377
|
+
* @return {number}
|
7378
|
+
*/
|
7379
|
+
proto.game.TagGamesRequest.prototype.getId = function() {
|
7380
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
7381
|
+
};
|
7382
|
+
|
7383
|
+
|
7384
|
+
/**
|
7385
|
+
* @param {number} value
|
7386
|
+
* @return {!proto.game.TagGamesRequest} returns this
|
7387
|
+
*/
|
7388
|
+
proto.game.TagGamesRequest.prototype.setId = function(value) {
|
7389
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
7390
|
+
};
|
7391
|
+
|
7392
|
+
|
7393
|
+
/**
|
7394
|
+
* optional string game_ids = 2;
|
7395
|
+
* @return {string}
|
7396
|
+
*/
|
7397
|
+
proto.game.TagGamesRequest.prototype.getGameIds = function() {
|
7398
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
7399
|
+
};
|
7400
|
+
|
7401
|
+
|
7402
|
+
/**
|
7403
|
+
* @param {string} value
|
7404
|
+
* @return {!proto.game.TagGamesRequest} returns this
|
7405
|
+
*/
|
7406
|
+
proto.game.TagGamesRequest.prototype.setGameIds = function(value) {
|
7407
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
7408
|
+
};
|
7409
|
+
|
7410
|
+
|
7411
|
+
/**
|
7412
|
+
* optional string geo = 3;
|
7413
|
+
* @return {string}
|
7414
|
+
*/
|
7415
|
+
proto.game.TagGamesRequest.prototype.getGeo = function() {
|
7416
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
7417
|
+
};
|
7418
|
+
|
7419
|
+
|
7420
|
+
/**
|
7421
|
+
* @param {string} value
|
7422
|
+
* @return {!proto.game.TagGamesRequest} returns this
|
7423
|
+
*/
|
7424
|
+
proto.game.TagGamesRequest.prototype.setGeo = function(value) {
|
7425
|
+
return jspb.Message.setField(this, 3, value);
|
7426
|
+
};
|
7427
|
+
|
7428
|
+
|
7429
|
+
/**
|
7430
|
+
* Clears the field making it undefined.
|
7431
|
+
* @return {!proto.game.TagGamesRequest} returns this
|
7432
|
+
*/
|
7433
|
+
proto.game.TagGamesRequest.prototype.clearGeo = function() {
|
7434
|
+
return jspb.Message.setField(this, 3, undefined);
|
7435
|
+
};
|
7436
|
+
|
7437
|
+
|
7438
|
+
/**
|
7439
|
+
* Returns whether this field is set.
|
7440
|
+
* @return {boolean}
|
7441
|
+
*/
|
7442
|
+
proto.game.TagGamesRequest.prototype.hasGeo = function() {
|
7443
|
+
return jspb.Message.getField(this, 3) != null;
|
7444
|
+
};
|
7445
|
+
|
7446
|
+
|
7447
|
+
|
7448
|
+
|
7449
|
+
|
7198
7450
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
7199
7451
|
/**
|
7200
7452
|
* Creates an object representation of this proto.
|
@@ -11650,4 +11902,278 @@ proto.game.SearchGamesIntoCollectionsRequest.prototype.hasOffset = function() {
|
|
11650
11902
|
};
|
11651
11903
|
|
11652
11904
|
|
11905
|
+
|
11906
|
+
|
11907
|
+
|
11908
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
11909
|
+
/**
|
11910
|
+
* Creates an object representation of this proto.
|
11911
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
11912
|
+
* Optional fields that are not set will be set to undefined.
|
11913
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
11914
|
+
* For the list of reserved names please see:
|
11915
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
11916
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
11917
|
+
* JSPB instance for transitional soy proto support:
|
11918
|
+
* http://goto/soy-param-migration
|
11919
|
+
* @return {!Object}
|
11920
|
+
*/
|
11921
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.toObject = function(opt_includeInstance) {
|
11922
|
+
return proto.game.SearchGamesIntoTagsRequest.toObject(opt_includeInstance, this);
|
11923
|
+
};
|
11924
|
+
|
11925
|
+
|
11926
|
+
/**
|
11927
|
+
* Static version of the {@see toObject} method.
|
11928
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
11929
|
+
* the JSPB instance for transitional soy proto support:
|
11930
|
+
* http://goto/soy-param-migration
|
11931
|
+
* @param {!proto.game.SearchGamesIntoTagsRequest} msg The msg instance to transform.
|
11932
|
+
* @return {!Object}
|
11933
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
11934
|
+
*/
|
11935
|
+
proto.game.SearchGamesIntoTagsRequest.toObject = function(includeInstance, msg) {
|
11936
|
+
var f, obj = {
|
11937
|
+
tagSlugs: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
11938
|
+
geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
11939
|
+
limit: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
11940
|
+
offset: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
11941
|
+
};
|
11942
|
+
|
11943
|
+
if (includeInstance) {
|
11944
|
+
obj.$jspbMessageInstance = msg;
|
11945
|
+
}
|
11946
|
+
return obj;
|
11947
|
+
};
|
11948
|
+
}
|
11949
|
+
|
11950
|
+
|
11951
|
+
/**
|
11952
|
+
* Deserializes binary data (in protobuf wire format).
|
11953
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
11954
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest}
|
11955
|
+
*/
|
11956
|
+
proto.game.SearchGamesIntoTagsRequest.deserializeBinary = function(bytes) {
|
11957
|
+
var reader = new jspb.BinaryReader(bytes);
|
11958
|
+
var msg = new proto.game.SearchGamesIntoTagsRequest;
|
11959
|
+
return proto.game.SearchGamesIntoTagsRequest.deserializeBinaryFromReader(msg, reader);
|
11960
|
+
};
|
11961
|
+
|
11962
|
+
|
11963
|
+
/**
|
11964
|
+
* Deserializes binary data (in protobuf wire format) from the
|
11965
|
+
* given reader into the given message object.
|
11966
|
+
* @param {!proto.game.SearchGamesIntoTagsRequest} msg The message object to deserialize into.
|
11967
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
11968
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest}
|
11969
|
+
*/
|
11970
|
+
proto.game.SearchGamesIntoTagsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
11971
|
+
while (reader.nextField()) {
|
11972
|
+
if (reader.isEndGroup()) {
|
11973
|
+
break;
|
11974
|
+
}
|
11975
|
+
var field = reader.getFieldNumber();
|
11976
|
+
switch (field) {
|
11977
|
+
case 1:
|
11978
|
+
var value = /** @type {string} */ (reader.readString());
|
11979
|
+
msg.setTagSlugs(value);
|
11980
|
+
break;
|
11981
|
+
case 2:
|
11982
|
+
var value = /** @type {string} */ (reader.readString());
|
11983
|
+
msg.setGeo(value);
|
11984
|
+
break;
|
11985
|
+
case 3:
|
11986
|
+
var value = /** @type {number} */ (reader.readInt32());
|
11987
|
+
msg.setLimit(value);
|
11988
|
+
break;
|
11989
|
+
case 4:
|
11990
|
+
var value = /** @type {number} */ (reader.readInt32());
|
11991
|
+
msg.setOffset(value);
|
11992
|
+
break;
|
11993
|
+
default:
|
11994
|
+
reader.skipField();
|
11995
|
+
break;
|
11996
|
+
}
|
11997
|
+
}
|
11998
|
+
return msg;
|
11999
|
+
};
|
12000
|
+
|
12001
|
+
|
12002
|
+
/**
|
12003
|
+
* Serializes the message to binary data (in protobuf wire format).
|
12004
|
+
* @return {!Uint8Array}
|
12005
|
+
*/
|
12006
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.serializeBinary = function() {
|
12007
|
+
var writer = new jspb.BinaryWriter();
|
12008
|
+
proto.game.SearchGamesIntoTagsRequest.serializeBinaryToWriter(this, writer);
|
12009
|
+
return writer.getResultBuffer();
|
12010
|
+
};
|
12011
|
+
|
12012
|
+
|
12013
|
+
/**
|
12014
|
+
* Serializes the given message to binary data (in protobuf wire
|
12015
|
+
* format), writing to the given BinaryWriter.
|
12016
|
+
* @param {!proto.game.SearchGamesIntoTagsRequest} message
|
12017
|
+
* @param {!jspb.BinaryWriter} writer
|
12018
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
12019
|
+
*/
|
12020
|
+
proto.game.SearchGamesIntoTagsRequest.serializeBinaryToWriter = function(message, writer) {
|
12021
|
+
var f = undefined;
|
12022
|
+
f = message.getTagSlugs();
|
12023
|
+
if (f.length > 0) {
|
12024
|
+
writer.writeString(
|
12025
|
+
1,
|
12026
|
+
f
|
12027
|
+
);
|
12028
|
+
}
|
12029
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
12030
|
+
if (f != null) {
|
12031
|
+
writer.writeString(
|
12032
|
+
2,
|
12033
|
+
f
|
12034
|
+
);
|
12035
|
+
}
|
12036
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
12037
|
+
if (f != null) {
|
12038
|
+
writer.writeInt32(
|
12039
|
+
3,
|
12040
|
+
f
|
12041
|
+
);
|
12042
|
+
}
|
12043
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
12044
|
+
if (f != null) {
|
12045
|
+
writer.writeInt32(
|
12046
|
+
4,
|
12047
|
+
f
|
12048
|
+
);
|
12049
|
+
}
|
12050
|
+
};
|
12051
|
+
|
12052
|
+
|
12053
|
+
/**
|
12054
|
+
* optional string tag_slugs = 1;
|
12055
|
+
* @return {string}
|
12056
|
+
*/
|
12057
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.getTagSlugs = function() {
|
12058
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
12059
|
+
};
|
12060
|
+
|
12061
|
+
|
12062
|
+
/**
|
12063
|
+
* @param {string} value
|
12064
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
12065
|
+
*/
|
12066
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.setTagSlugs = function(value) {
|
12067
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
12068
|
+
};
|
12069
|
+
|
12070
|
+
|
12071
|
+
/**
|
12072
|
+
* optional string geo = 2;
|
12073
|
+
* @return {string}
|
12074
|
+
*/
|
12075
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.getGeo = function() {
|
12076
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
12077
|
+
};
|
12078
|
+
|
12079
|
+
|
12080
|
+
/**
|
12081
|
+
* @param {string} value
|
12082
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
12083
|
+
*/
|
12084
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.setGeo = function(value) {
|
12085
|
+
return jspb.Message.setField(this, 2, value);
|
12086
|
+
};
|
12087
|
+
|
12088
|
+
|
12089
|
+
/**
|
12090
|
+
* Clears the field making it undefined.
|
12091
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
12092
|
+
*/
|
12093
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.clearGeo = function() {
|
12094
|
+
return jspb.Message.setField(this, 2, undefined);
|
12095
|
+
};
|
12096
|
+
|
12097
|
+
|
12098
|
+
/**
|
12099
|
+
* Returns whether this field is set.
|
12100
|
+
* @return {boolean}
|
12101
|
+
*/
|
12102
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.hasGeo = function() {
|
12103
|
+
return jspb.Message.getField(this, 2) != null;
|
12104
|
+
};
|
12105
|
+
|
12106
|
+
|
12107
|
+
/**
|
12108
|
+
* optional int32 limit = 3;
|
12109
|
+
* @return {number}
|
12110
|
+
*/
|
12111
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.getLimit = function() {
|
12112
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
12113
|
+
};
|
12114
|
+
|
12115
|
+
|
12116
|
+
/**
|
12117
|
+
* @param {number} value
|
12118
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
12119
|
+
*/
|
12120
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.setLimit = function(value) {
|
12121
|
+
return jspb.Message.setField(this, 3, value);
|
12122
|
+
};
|
12123
|
+
|
12124
|
+
|
12125
|
+
/**
|
12126
|
+
* Clears the field making it undefined.
|
12127
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
12128
|
+
*/
|
12129
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.clearLimit = function() {
|
12130
|
+
return jspb.Message.setField(this, 3, undefined);
|
12131
|
+
};
|
12132
|
+
|
12133
|
+
|
12134
|
+
/**
|
12135
|
+
* Returns whether this field is set.
|
12136
|
+
* @return {boolean}
|
12137
|
+
*/
|
12138
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.hasLimit = function() {
|
12139
|
+
return jspb.Message.getField(this, 3) != null;
|
12140
|
+
};
|
12141
|
+
|
12142
|
+
|
12143
|
+
/**
|
12144
|
+
* optional int32 offset = 4;
|
12145
|
+
* @return {number}
|
12146
|
+
*/
|
12147
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.getOffset = function() {
|
12148
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
12149
|
+
};
|
12150
|
+
|
12151
|
+
|
12152
|
+
/**
|
12153
|
+
* @param {number} value
|
12154
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
12155
|
+
*/
|
12156
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.setOffset = function(value) {
|
12157
|
+
return jspb.Message.setField(this, 4, value);
|
12158
|
+
};
|
12159
|
+
|
12160
|
+
|
12161
|
+
/**
|
12162
|
+
* Clears the field making it undefined.
|
12163
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
12164
|
+
*/
|
12165
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.clearOffset = function() {
|
12166
|
+
return jspb.Message.setField(this, 4, undefined);
|
12167
|
+
};
|
12168
|
+
|
12169
|
+
|
12170
|
+
/**
|
12171
|
+
* Returns whether this field is set.
|
12172
|
+
* @return {boolean}
|
12173
|
+
*/
|
12174
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.hasOffset = function() {
|
12175
|
+
return jspb.Message.getField(this, 4) != null;
|
12176
|
+
};
|
12177
|
+
|
12178
|
+
|
11653
12179
|
goog.object.extend(exports, proto.game);
|