protobuf-platform 1.0.61 → 1.0.63
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 +12 -1
- package/game/game_grpc_pb.js +58 -3
- package/game/game_pb.js +430 -0
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -15,8 +15,9 @@ service Game {
|
|
15
15
|
rpc createSingleCollection(stream CollectionRequest) returns (CollectionResponse);
|
16
16
|
rpc readSingleCollection(GetCollectionRequest) returns (CollectionResponse);
|
17
17
|
rpc updateSingleCollection(stream CollectionRequest) returns (CollectionResponse);
|
18
|
-
rpc deleteSingleCollection(GetCollectionRequest) returns (
|
18
|
+
rpc deleteSingleCollection(GetCollectionRequest) returns (CollectionStatusResponse);
|
19
19
|
rpc readListCollections(PaginationRequest) returns (CollectionItemsResponse);
|
20
|
+
rpc addGamesToCollection(CollectionGamesRequest) returns (CollectionStatusResponse);
|
20
21
|
//Tags
|
21
22
|
rpc createSingleTag(stream TagRequest) returns (TagResponse);
|
22
23
|
rpc readSingleTag(GetTagRequest) returns (TagResponse);
|
@@ -35,6 +36,7 @@ service Game {
|
|
35
36
|
rpc updateSingleGame(stream GameRequest) returns (GameResponse);
|
36
37
|
rpc deleteSingleGame(GetGameRequest) returns (GameStatusResponse);
|
37
38
|
rpc readListGames(PaginationRequest) returns (GameItemsResponse);
|
39
|
+
rpc searchGamesIntoCollections(SearchGamesIntoCollectionsRequest) returns (GameItemsResponse);
|
38
40
|
}
|
39
41
|
|
40
42
|
message PingRequest { string ping = 1; }
|
@@ -126,6 +128,15 @@ message CollectionItemsResponse {
|
|
126
128
|
message CollectionStatusResponse {
|
127
129
|
string status = 1;
|
128
130
|
}
|
131
|
+
message CollectionGamesRequest {
|
132
|
+
int32 id = 1;
|
133
|
+
string game_ids = 2;
|
134
|
+
optional string geo = 3;
|
135
|
+
}
|
136
|
+
message SearchGamesIntoCollectionsRequest {
|
137
|
+
string collection_slugs = 1;
|
138
|
+
optional string geo = 2;
|
139
|
+
}
|
129
140
|
|
130
141
|
//Tag CRUD
|
131
142
|
message TagItem {
|
package/game/game_grpc_pb.js
CHANGED
@@ -48,6 +48,17 @@ function deserialize_game_CategoryStatusResponse(buffer_arg) {
|
|
48
48
|
return game_pb.CategoryStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
49
49
|
}
|
50
50
|
|
51
|
+
function serialize_game_CollectionGamesRequest(arg) {
|
52
|
+
if (!(arg instanceof game_pb.CollectionGamesRequest)) {
|
53
|
+
throw new Error('Expected argument of type game.CollectionGamesRequest');
|
54
|
+
}
|
55
|
+
return Buffer.from(arg.serializeBinary());
|
56
|
+
}
|
57
|
+
|
58
|
+
function deserialize_game_CollectionGamesRequest(buffer_arg) {
|
59
|
+
return game_pb.CollectionGamesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
60
|
+
}
|
61
|
+
|
51
62
|
function serialize_game_CollectionItemsResponse(arg) {
|
52
63
|
if (!(arg instanceof game_pb.CollectionItemsResponse)) {
|
53
64
|
throw new Error('Expected argument of type game.CollectionItemsResponse');
|
@@ -81,6 +92,17 @@ function deserialize_game_CollectionResponse(buffer_arg) {
|
|
81
92
|
return game_pb.CollectionResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
82
93
|
}
|
83
94
|
|
95
|
+
function serialize_game_CollectionStatusResponse(arg) {
|
96
|
+
if (!(arg instanceof game_pb.CollectionStatusResponse)) {
|
97
|
+
throw new Error('Expected argument of type game.CollectionStatusResponse');
|
98
|
+
}
|
99
|
+
return Buffer.from(arg.serializeBinary());
|
100
|
+
}
|
101
|
+
|
102
|
+
function deserialize_game_CollectionStatusResponse(buffer_arg) {
|
103
|
+
return game_pb.CollectionStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
104
|
+
}
|
105
|
+
|
84
106
|
function serialize_game_File(arg) {
|
85
107
|
if (!(arg instanceof game_pb.File)) {
|
86
108
|
throw new Error('Expected argument of type game.File');
|
@@ -301,6 +323,17 @@ function deserialize_game_ProviderStatusResponse(buffer_arg) {
|
|
301
323
|
return game_pb.ProviderStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
302
324
|
}
|
303
325
|
|
326
|
+
function serialize_game_SearchGamesIntoCollectionsRequest(arg) {
|
327
|
+
if (!(arg instanceof game_pb.SearchGamesIntoCollectionsRequest)) {
|
328
|
+
throw new Error('Expected argument of type game.SearchGamesIntoCollectionsRequest');
|
329
|
+
}
|
330
|
+
return Buffer.from(arg.serializeBinary());
|
331
|
+
}
|
332
|
+
|
333
|
+
function deserialize_game_SearchGamesIntoCollectionsRequest(buffer_arg) {
|
334
|
+
return game_pb.SearchGamesIntoCollectionsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
335
|
+
}
|
336
|
+
|
304
337
|
function serialize_game_TagItemsResponse(arg) {
|
305
338
|
if (!(arg instanceof game_pb.TagItemsResponse)) {
|
306
339
|
throw new Error('Expected argument of type game.TagItemsResponse');
|
@@ -464,11 +497,11 @@ createSingleCollection: {
|
|
464
497
|
requestStream: false,
|
465
498
|
responseStream: false,
|
466
499
|
requestType: game_pb.GetCollectionRequest,
|
467
|
-
responseType: game_pb.
|
500
|
+
responseType: game_pb.CollectionStatusResponse,
|
468
501
|
requestSerialize: serialize_game_GetCollectionRequest,
|
469
502
|
requestDeserialize: deserialize_game_GetCollectionRequest,
|
470
|
-
responseSerialize:
|
471
|
-
responseDeserialize:
|
503
|
+
responseSerialize: serialize_game_CollectionStatusResponse,
|
504
|
+
responseDeserialize: deserialize_game_CollectionStatusResponse,
|
472
505
|
},
|
473
506
|
readListCollections: {
|
474
507
|
path: '/game.Game/readListCollections',
|
@@ -481,6 +514,17 @@ createSingleCollection: {
|
|
481
514
|
responseSerialize: serialize_game_CollectionItemsResponse,
|
482
515
|
responseDeserialize: deserialize_game_CollectionItemsResponse,
|
483
516
|
},
|
517
|
+
addGamesToCollection: {
|
518
|
+
path: '/game.Game/addGamesToCollection',
|
519
|
+
requestStream: false,
|
520
|
+
responseStream: false,
|
521
|
+
requestType: game_pb.CollectionGamesRequest,
|
522
|
+
responseType: game_pb.CollectionStatusResponse,
|
523
|
+
requestSerialize: serialize_game_CollectionGamesRequest,
|
524
|
+
requestDeserialize: deserialize_game_CollectionGamesRequest,
|
525
|
+
responseSerialize: serialize_game_CollectionStatusResponse,
|
526
|
+
responseDeserialize: deserialize_game_CollectionStatusResponse,
|
527
|
+
},
|
484
528
|
// Tags
|
485
529
|
createSingleTag: {
|
486
530
|
path: '/game.Game/createSingleTag',
|
@@ -649,6 +693,17 @@ parseGames: {
|
|
649
693
|
responseSerialize: serialize_game_GameItemsResponse,
|
650
694
|
responseDeserialize: deserialize_game_GameItemsResponse,
|
651
695
|
},
|
696
|
+
searchGamesIntoCollections: {
|
697
|
+
path: '/game.Game/searchGamesIntoCollections',
|
698
|
+
requestStream: false,
|
699
|
+
responseStream: false,
|
700
|
+
requestType: game_pb.SearchGamesIntoCollectionsRequest,
|
701
|
+
responseType: game_pb.GameItemsResponse,
|
702
|
+
requestSerialize: serialize_game_SearchGamesIntoCollectionsRequest,
|
703
|
+
requestDeserialize: deserialize_game_SearchGamesIntoCollectionsRequest,
|
704
|
+
responseSerialize: serialize_game_GameItemsResponse,
|
705
|
+
responseDeserialize: deserialize_game_GameItemsResponse,
|
706
|
+
},
|
652
707
|
};
|
653
708
|
|
654
709
|
exports.GameClient = grpc.makeGenericClientConstructor(GameService);
|
package/game/game_pb.js
CHANGED
@@ -28,6 +28,7 @@ goog.exportSymbol('proto.game.CategoryRequest', null, global);
|
|
28
28
|
goog.exportSymbol('proto.game.CategoryRequest.RequestCase', null, global);
|
29
29
|
goog.exportSymbol('proto.game.CategoryResponse', null, global);
|
30
30
|
goog.exportSymbol('proto.game.CategoryStatusResponse', null, global);
|
31
|
+
goog.exportSymbol('proto.game.CollectionGamesRequest', null, global);
|
31
32
|
goog.exportSymbol('proto.game.CollectionItem', null, global);
|
32
33
|
goog.exportSymbol('proto.game.CollectionItemRequest', null, global);
|
33
34
|
goog.exportSymbol('proto.game.CollectionItemsResponse', null, global);
|
@@ -61,6 +62,7 @@ goog.exportSymbol('proto.game.ProviderRequest', null, global);
|
|
61
62
|
goog.exportSymbol('proto.game.ProviderRequest.RequestCase', null, global);
|
62
63
|
goog.exportSymbol('proto.game.ProviderResponse', null, global);
|
63
64
|
goog.exportSymbol('proto.game.ProviderStatusResponse', null, global);
|
65
|
+
goog.exportSymbol('proto.game.SearchGamesIntoCollectionsRequest', null, global);
|
64
66
|
goog.exportSymbol('proto.game.TagItem', null, global);
|
65
67
|
goog.exportSymbol('proto.game.TagItemRequest', null, global);
|
66
68
|
goog.exportSymbol('proto.game.TagItemsResponse', null, global);
|
@@ -467,6 +469,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
467
469
|
*/
|
468
470
|
proto.game.CollectionStatusResponse.displayName = 'proto.game.CollectionStatusResponse';
|
469
471
|
}
|
472
|
+
/**
|
473
|
+
* Generated by JsPbCodeGenerator.
|
474
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
475
|
+
* server response, or constructed directly in Javascript. The array is used
|
476
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
477
|
+
* If no data is provided, the constructed object will be empty, but still
|
478
|
+
* valid.
|
479
|
+
* @extends {jspb.Message}
|
480
|
+
* @constructor
|
481
|
+
*/
|
482
|
+
proto.game.CollectionGamesRequest = function(opt_data) {
|
483
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
484
|
+
};
|
485
|
+
goog.inherits(proto.game.CollectionGamesRequest, jspb.Message);
|
486
|
+
if (goog.DEBUG && !COMPILED) {
|
487
|
+
/**
|
488
|
+
* @public
|
489
|
+
* @override
|
490
|
+
*/
|
491
|
+
proto.game.CollectionGamesRequest.displayName = 'proto.game.CollectionGamesRequest';
|
492
|
+
}
|
493
|
+
/**
|
494
|
+
* Generated by JsPbCodeGenerator.
|
495
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
496
|
+
* server response, or constructed directly in Javascript. The array is used
|
497
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
498
|
+
* If no data is provided, the constructed object will be empty, but still
|
499
|
+
* valid.
|
500
|
+
* @extends {jspb.Message}
|
501
|
+
* @constructor
|
502
|
+
*/
|
503
|
+
proto.game.SearchGamesIntoCollectionsRequest = function(opt_data) {
|
504
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
505
|
+
};
|
506
|
+
goog.inherits(proto.game.SearchGamesIntoCollectionsRequest, jspb.Message);
|
507
|
+
if (goog.DEBUG && !COMPILED) {
|
508
|
+
/**
|
509
|
+
* @public
|
510
|
+
* @override
|
511
|
+
*/
|
512
|
+
proto.game.SearchGamesIntoCollectionsRequest.displayName = 'proto.game.SearchGamesIntoCollectionsRequest';
|
513
|
+
}
|
470
514
|
/**
|
471
515
|
* Generated by JsPbCodeGenerator.
|
472
516
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -5224,6 +5268,392 @@ proto.game.CollectionStatusResponse.prototype.setStatus = function(value) {
|
|
5224
5268
|
|
5225
5269
|
|
5226
5270
|
|
5271
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5272
|
+
/**
|
5273
|
+
* Creates an object representation of this proto.
|
5274
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5275
|
+
* Optional fields that are not set will be set to undefined.
|
5276
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5277
|
+
* For the list of reserved names please see:
|
5278
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5279
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5280
|
+
* JSPB instance for transitional soy proto support:
|
5281
|
+
* http://goto/soy-param-migration
|
5282
|
+
* @return {!Object}
|
5283
|
+
*/
|
5284
|
+
proto.game.CollectionGamesRequest.prototype.toObject = function(opt_includeInstance) {
|
5285
|
+
return proto.game.CollectionGamesRequest.toObject(opt_includeInstance, this);
|
5286
|
+
};
|
5287
|
+
|
5288
|
+
|
5289
|
+
/**
|
5290
|
+
* Static version of the {@see toObject} method.
|
5291
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5292
|
+
* the JSPB instance for transitional soy proto support:
|
5293
|
+
* http://goto/soy-param-migration
|
5294
|
+
* @param {!proto.game.CollectionGamesRequest} msg The msg instance to transform.
|
5295
|
+
* @return {!Object}
|
5296
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5297
|
+
*/
|
5298
|
+
proto.game.CollectionGamesRequest.toObject = function(includeInstance, msg) {
|
5299
|
+
var f, obj = {
|
5300
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5301
|
+
gameIds: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
5302
|
+
geo: jspb.Message.getFieldWithDefault(msg, 3, "")
|
5303
|
+
};
|
5304
|
+
|
5305
|
+
if (includeInstance) {
|
5306
|
+
obj.$jspbMessageInstance = msg;
|
5307
|
+
}
|
5308
|
+
return obj;
|
5309
|
+
};
|
5310
|
+
}
|
5311
|
+
|
5312
|
+
|
5313
|
+
/**
|
5314
|
+
* Deserializes binary data (in protobuf wire format).
|
5315
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5316
|
+
* @return {!proto.game.CollectionGamesRequest}
|
5317
|
+
*/
|
5318
|
+
proto.game.CollectionGamesRequest.deserializeBinary = function(bytes) {
|
5319
|
+
var reader = new jspb.BinaryReader(bytes);
|
5320
|
+
var msg = new proto.game.CollectionGamesRequest;
|
5321
|
+
return proto.game.CollectionGamesRequest.deserializeBinaryFromReader(msg, reader);
|
5322
|
+
};
|
5323
|
+
|
5324
|
+
|
5325
|
+
/**
|
5326
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5327
|
+
* given reader into the given message object.
|
5328
|
+
* @param {!proto.game.CollectionGamesRequest} msg The message object to deserialize into.
|
5329
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5330
|
+
* @return {!proto.game.CollectionGamesRequest}
|
5331
|
+
*/
|
5332
|
+
proto.game.CollectionGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
5333
|
+
while (reader.nextField()) {
|
5334
|
+
if (reader.isEndGroup()) {
|
5335
|
+
break;
|
5336
|
+
}
|
5337
|
+
var field = reader.getFieldNumber();
|
5338
|
+
switch (field) {
|
5339
|
+
case 1:
|
5340
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5341
|
+
msg.setId(value);
|
5342
|
+
break;
|
5343
|
+
case 2:
|
5344
|
+
var value = /** @type {string} */ (reader.readString());
|
5345
|
+
msg.setGameIds(value);
|
5346
|
+
break;
|
5347
|
+
case 3:
|
5348
|
+
var value = /** @type {string} */ (reader.readString());
|
5349
|
+
msg.setGeo(value);
|
5350
|
+
break;
|
5351
|
+
default:
|
5352
|
+
reader.skipField();
|
5353
|
+
break;
|
5354
|
+
}
|
5355
|
+
}
|
5356
|
+
return msg;
|
5357
|
+
};
|
5358
|
+
|
5359
|
+
|
5360
|
+
/**
|
5361
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5362
|
+
* @return {!Uint8Array}
|
5363
|
+
*/
|
5364
|
+
proto.game.CollectionGamesRequest.prototype.serializeBinary = function() {
|
5365
|
+
var writer = new jspb.BinaryWriter();
|
5366
|
+
proto.game.CollectionGamesRequest.serializeBinaryToWriter(this, writer);
|
5367
|
+
return writer.getResultBuffer();
|
5368
|
+
};
|
5369
|
+
|
5370
|
+
|
5371
|
+
/**
|
5372
|
+
* Serializes the given message to binary data (in protobuf wire
|
5373
|
+
* format), writing to the given BinaryWriter.
|
5374
|
+
* @param {!proto.game.CollectionGamesRequest} message
|
5375
|
+
* @param {!jspb.BinaryWriter} writer
|
5376
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5377
|
+
*/
|
5378
|
+
proto.game.CollectionGamesRequest.serializeBinaryToWriter = function(message, writer) {
|
5379
|
+
var f = undefined;
|
5380
|
+
f = message.getId();
|
5381
|
+
if (f !== 0) {
|
5382
|
+
writer.writeInt32(
|
5383
|
+
1,
|
5384
|
+
f
|
5385
|
+
);
|
5386
|
+
}
|
5387
|
+
f = message.getGameIds();
|
5388
|
+
if (f.length > 0) {
|
5389
|
+
writer.writeString(
|
5390
|
+
2,
|
5391
|
+
f
|
5392
|
+
);
|
5393
|
+
}
|
5394
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
5395
|
+
if (f != null) {
|
5396
|
+
writer.writeString(
|
5397
|
+
3,
|
5398
|
+
f
|
5399
|
+
);
|
5400
|
+
}
|
5401
|
+
};
|
5402
|
+
|
5403
|
+
|
5404
|
+
/**
|
5405
|
+
* optional int32 id = 1;
|
5406
|
+
* @return {number}
|
5407
|
+
*/
|
5408
|
+
proto.game.CollectionGamesRequest.prototype.getId = function() {
|
5409
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5410
|
+
};
|
5411
|
+
|
5412
|
+
|
5413
|
+
/**
|
5414
|
+
* @param {number} value
|
5415
|
+
* @return {!proto.game.CollectionGamesRequest} returns this
|
5416
|
+
*/
|
5417
|
+
proto.game.CollectionGamesRequest.prototype.setId = function(value) {
|
5418
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
5419
|
+
};
|
5420
|
+
|
5421
|
+
|
5422
|
+
/**
|
5423
|
+
* optional string game_ids = 2;
|
5424
|
+
* @return {string}
|
5425
|
+
*/
|
5426
|
+
proto.game.CollectionGamesRequest.prototype.getGameIds = function() {
|
5427
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
5428
|
+
};
|
5429
|
+
|
5430
|
+
|
5431
|
+
/**
|
5432
|
+
* @param {string} value
|
5433
|
+
* @return {!proto.game.CollectionGamesRequest} returns this
|
5434
|
+
*/
|
5435
|
+
proto.game.CollectionGamesRequest.prototype.setGameIds = function(value) {
|
5436
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
5437
|
+
};
|
5438
|
+
|
5439
|
+
|
5440
|
+
/**
|
5441
|
+
* optional string geo = 3;
|
5442
|
+
* @return {string}
|
5443
|
+
*/
|
5444
|
+
proto.game.CollectionGamesRequest.prototype.getGeo = function() {
|
5445
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
5446
|
+
};
|
5447
|
+
|
5448
|
+
|
5449
|
+
/**
|
5450
|
+
* @param {string} value
|
5451
|
+
* @return {!proto.game.CollectionGamesRequest} returns this
|
5452
|
+
*/
|
5453
|
+
proto.game.CollectionGamesRequest.prototype.setGeo = function(value) {
|
5454
|
+
return jspb.Message.setField(this, 3, value);
|
5455
|
+
};
|
5456
|
+
|
5457
|
+
|
5458
|
+
/**
|
5459
|
+
* Clears the field making it undefined.
|
5460
|
+
* @return {!proto.game.CollectionGamesRequest} returns this
|
5461
|
+
*/
|
5462
|
+
proto.game.CollectionGamesRequest.prototype.clearGeo = function() {
|
5463
|
+
return jspb.Message.setField(this, 3, undefined);
|
5464
|
+
};
|
5465
|
+
|
5466
|
+
|
5467
|
+
/**
|
5468
|
+
* Returns whether this field is set.
|
5469
|
+
* @return {boolean}
|
5470
|
+
*/
|
5471
|
+
proto.game.CollectionGamesRequest.prototype.hasGeo = function() {
|
5472
|
+
return jspb.Message.getField(this, 3) != null;
|
5473
|
+
};
|
5474
|
+
|
5475
|
+
|
5476
|
+
|
5477
|
+
|
5478
|
+
|
5479
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5480
|
+
/**
|
5481
|
+
* Creates an object representation of this proto.
|
5482
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5483
|
+
* Optional fields that are not set will be set to undefined.
|
5484
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5485
|
+
* For the list of reserved names please see:
|
5486
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5487
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5488
|
+
* JSPB instance for transitional soy proto support:
|
5489
|
+
* http://goto/soy-param-migration
|
5490
|
+
* @return {!Object}
|
5491
|
+
*/
|
5492
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.toObject = function(opt_includeInstance) {
|
5493
|
+
return proto.game.SearchGamesIntoCollectionsRequest.toObject(opt_includeInstance, this);
|
5494
|
+
};
|
5495
|
+
|
5496
|
+
|
5497
|
+
/**
|
5498
|
+
* Static version of the {@see toObject} method.
|
5499
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5500
|
+
* the JSPB instance for transitional soy proto support:
|
5501
|
+
* http://goto/soy-param-migration
|
5502
|
+
* @param {!proto.game.SearchGamesIntoCollectionsRequest} msg The msg instance to transform.
|
5503
|
+
* @return {!Object}
|
5504
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5505
|
+
*/
|
5506
|
+
proto.game.SearchGamesIntoCollectionsRequest.toObject = function(includeInstance, msg) {
|
5507
|
+
var f, obj = {
|
5508
|
+
collectionSlugs: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
5509
|
+
geo: jspb.Message.getFieldWithDefault(msg, 2, "")
|
5510
|
+
};
|
5511
|
+
|
5512
|
+
if (includeInstance) {
|
5513
|
+
obj.$jspbMessageInstance = msg;
|
5514
|
+
}
|
5515
|
+
return obj;
|
5516
|
+
};
|
5517
|
+
}
|
5518
|
+
|
5519
|
+
|
5520
|
+
/**
|
5521
|
+
* Deserializes binary data (in protobuf wire format).
|
5522
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5523
|
+
* @return {!proto.game.SearchGamesIntoCollectionsRequest}
|
5524
|
+
*/
|
5525
|
+
proto.game.SearchGamesIntoCollectionsRequest.deserializeBinary = function(bytes) {
|
5526
|
+
var reader = new jspb.BinaryReader(bytes);
|
5527
|
+
var msg = new proto.game.SearchGamesIntoCollectionsRequest;
|
5528
|
+
return proto.game.SearchGamesIntoCollectionsRequest.deserializeBinaryFromReader(msg, reader);
|
5529
|
+
};
|
5530
|
+
|
5531
|
+
|
5532
|
+
/**
|
5533
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5534
|
+
* given reader into the given message object.
|
5535
|
+
* @param {!proto.game.SearchGamesIntoCollectionsRequest} msg The message object to deserialize into.
|
5536
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5537
|
+
* @return {!proto.game.SearchGamesIntoCollectionsRequest}
|
5538
|
+
*/
|
5539
|
+
proto.game.SearchGamesIntoCollectionsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
5540
|
+
while (reader.nextField()) {
|
5541
|
+
if (reader.isEndGroup()) {
|
5542
|
+
break;
|
5543
|
+
}
|
5544
|
+
var field = reader.getFieldNumber();
|
5545
|
+
switch (field) {
|
5546
|
+
case 1:
|
5547
|
+
var value = /** @type {string} */ (reader.readString());
|
5548
|
+
msg.setCollectionSlugs(value);
|
5549
|
+
break;
|
5550
|
+
case 2:
|
5551
|
+
var value = /** @type {string} */ (reader.readString());
|
5552
|
+
msg.setGeo(value);
|
5553
|
+
break;
|
5554
|
+
default:
|
5555
|
+
reader.skipField();
|
5556
|
+
break;
|
5557
|
+
}
|
5558
|
+
}
|
5559
|
+
return msg;
|
5560
|
+
};
|
5561
|
+
|
5562
|
+
|
5563
|
+
/**
|
5564
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5565
|
+
* @return {!Uint8Array}
|
5566
|
+
*/
|
5567
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.serializeBinary = function() {
|
5568
|
+
var writer = new jspb.BinaryWriter();
|
5569
|
+
proto.game.SearchGamesIntoCollectionsRequest.serializeBinaryToWriter(this, writer);
|
5570
|
+
return writer.getResultBuffer();
|
5571
|
+
};
|
5572
|
+
|
5573
|
+
|
5574
|
+
/**
|
5575
|
+
* Serializes the given message to binary data (in protobuf wire
|
5576
|
+
* format), writing to the given BinaryWriter.
|
5577
|
+
* @param {!proto.game.SearchGamesIntoCollectionsRequest} message
|
5578
|
+
* @param {!jspb.BinaryWriter} writer
|
5579
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5580
|
+
*/
|
5581
|
+
proto.game.SearchGamesIntoCollectionsRequest.serializeBinaryToWriter = function(message, writer) {
|
5582
|
+
var f = undefined;
|
5583
|
+
f = message.getCollectionSlugs();
|
5584
|
+
if (f.length > 0) {
|
5585
|
+
writer.writeString(
|
5586
|
+
1,
|
5587
|
+
f
|
5588
|
+
);
|
5589
|
+
}
|
5590
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
5591
|
+
if (f != null) {
|
5592
|
+
writer.writeString(
|
5593
|
+
2,
|
5594
|
+
f
|
5595
|
+
);
|
5596
|
+
}
|
5597
|
+
};
|
5598
|
+
|
5599
|
+
|
5600
|
+
/**
|
5601
|
+
* optional string collection_slugs = 1;
|
5602
|
+
* @return {string}
|
5603
|
+
*/
|
5604
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.getCollectionSlugs = function() {
|
5605
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
5606
|
+
};
|
5607
|
+
|
5608
|
+
|
5609
|
+
/**
|
5610
|
+
* @param {string} value
|
5611
|
+
* @return {!proto.game.SearchGamesIntoCollectionsRequest} returns this
|
5612
|
+
*/
|
5613
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.setCollectionSlugs = function(value) {
|
5614
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
5615
|
+
};
|
5616
|
+
|
5617
|
+
|
5618
|
+
/**
|
5619
|
+
* optional string geo = 2;
|
5620
|
+
* @return {string}
|
5621
|
+
*/
|
5622
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.getGeo = function() {
|
5623
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
5624
|
+
};
|
5625
|
+
|
5626
|
+
|
5627
|
+
/**
|
5628
|
+
* @param {string} value
|
5629
|
+
* @return {!proto.game.SearchGamesIntoCollectionsRequest} returns this
|
5630
|
+
*/
|
5631
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.setGeo = function(value) {
|
5632
|
+
return jspb.Message.setField(this, 2, value);
|
5633
|
+
};
|
5634
|
+
|
5635
|
+
|
5636
|
+
/**
|
5637
|
+
* Clears the field making it undefined.
|
5638
|
+
* @return {!proto.game.SearchGamesIntoCollectionsRequest} returns this
|
5639
|
+
*/
|
5640
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.clearGeo = function() {
|
5641
|
+
return jspb.Message.setField(this, 2, undefined);
|
5642
|
+
};
|
5643
|
+
|
5644
|
+
|
5645
|
+
/**
|
5646
|
+
* Returns whether this field is set.
|
5647
|
+
* @return {boolean}
|
5648
|
+
*/
|
5649
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.hasGeo = function() {
|
5650
|
+
return jspb.Message.getField(this, 2) != null;
|
5651
|
+
};
|
5652
|
+
|
5653
|
+
|
5654
|
+
|
5655
|
+
|
5656
|
+
|
5227
5657
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5228
5658
|
/**
|
5229
5659
|
* Creates an object representation of this proto.
|