protobuf-platform 1.0.62 → 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 +6 -0
- package/game/game_grpc_pb.js +22 -0
- package/game/game_pb.js +249 -1
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -36,6 +36,7 @@ service Game {
|
|
36
36
|
rpc updateSingleGame(stream GameRequest) returns (GameResponse);
|
37
37
|
rpc deleteSingleGame(GetGameRequest) returns (GameStatusResponse);
|
38
38
|
rpc readListGames(PaginationRequest) returns (GameItemsResponse);
|
39
|
+
rpc searchGamesIntoCollections(SearchGamesIntoCollectionsRequest) returns (GameItemsResponse);
|
39
40
|
}
|
40
41
|
|
41
42
|
message PingRequest { string ping = 1; }
|
@@ -130,6 +131,11 @@ message CollectionStatusResponse {
|
|
130
131
|
message CollectionGamesRequest {
|
131
132
|
int32 id = 1;
|
132
133
|
string game_ids = 2;
|
134
|
+
optional string geo = 3;
|
135
|
+
}
|
136
|
+
message SearchGamesIntoCollectionsRequest {
|
137
|
+
string collection_slugs = 1;
|
138
|
+
optional string geo = 2;
|
133
139
|
}
|
134
140
|
|
135
141
|
//Tag CRUD
|
package/game/game_grpc_pb.js
CHANGED
@@ -323,6 +323,17 @@ function deserialize_game_ProviderStatusResponse(buffer_arg) {
|
|
323
323
|
return game_pb.ProviderStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
324
324
|
}
|
325
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
|
+
|
326
337
|
function serialize_game_TagItemsResponse(arg) {
|
327
338
|
if (!(arg instanceof game_pb.TagItemsResponse)) {
|
328
339
|
throw new Error('Expected argument of type game.TagItemsResponse');
|
@@ -682,6 +693,17 @@ parseGames: {
|
|
682
693
|
responseSerialize: serialize_game_GameItemsResponse,
|
683
694
|
responseDeserialize: deserialize_game_GameItemsResponse,
|
684
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
|
+
},
|
685
707
|
};
|
686
708
|
|
687
709
|
exports.GameClient = grpc.makeGenericClientConstructor(GameService);
|
package/game/game_pb.js
CHANGED
@@ -62,6 +62,7 @@ goog.exportSymbol('proto.game.ProviderRequest', null, global);
|
|
62
62
|
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
|
+
goog.exportSymbol('proto.game.SearchGamesIntoCollectionsRequest', null, global);
|
65
66
|
goog.exportSymbol('proto.game.TagItem', null, global);
|
66
67
|
goog.exportSymbol('proto.game.TagItemRequest', null, global);
|
67
68
|
goog.exportSymbol('proto.game.TagItemsResponse', null, global);
|
@@ -489,6 +490,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
489
490
|
*/
|
490
491
|
proto.game.CollectionGamesRequest.displayName = 'proto.game.CollectionGamesRequest';
|
491
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
|
+
}
|
492
514
|
/**
|
493
515
|
* Generated by JsPbCodeGenerator.
|
494
516
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -5276,7 +5298,8 @@ proto.game.CollectionGamesRequest.prototype.toObject = function(opt_includeInsta
|
|
5276
5298
|
proto.game.CollectionGamesRequest.toObject = function(includeInstance, msg) {
|
5277
5299
|
var f, obj = {
|
5278
5300
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5279
|
-
gameIds: jspb.Message.getFieldWithDefault(msg, 2, "")
|
5301
|
+
gameIds: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
5302
|
+
geo: jspb.Message.getFieldWithDefault(msg, 3, "")
|
5280
5303
|
};
|
5281
5304
|
|
5282
5305
|
if (includeInstance) {
|
@@ -5321,6 +5344,10 @@ proto.game.CollectionGamesRequest.deserializeBinaryFromReader = function(msg, re
|
|
5321
5344
|
var value = /** @type {string} */ (reader.readString());
|
5322
5345
|
msg.setGameIds(value);
|
5323
5346
|
break;
|
5347
|
+
case 3:
|
5348
|
+
var value = /** @type {string} */ (reader.readString());
|
5349
|
+
msg.setGeo(value);
|
5350
|
+
break;
|
5324
5351
|
default:
|
5325
5352
|
reader.skipField();
|
5326
5353
|
break;
|
@@ -5364,6 +5391,13 @@ proto.game.CollectionGamesRequest.serializeBinaryToWriter = function(message, wr
|
|
5364
5391
|
f
|
5365
5392
|
);
|
5366
5393
|
}
|
5394
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
5395
|
+
if (f != null) {
|
5396
|
+
writer.writeString(
|
5397
|
+
3,
|
5398
|
+
f
|
5399
|
+
);
|
5400
|
+
}
|
5367
5401
|
};
|
5368
5402
|
|
5369
5403
|
|
@@ -5403,6 +5437,220 @@ proto.game.CollectionGamesRequest.prototype.setGameIds = function(value) {
|
|
5403
5437
|
};
|
5404
5438
|
|
5405
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
|
+
|
5406
5654
|
|
5407
5655
|
|
5408
5656
|
|