protobuf-platform 1.0.61 → 1.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/game/game.proto +6 -1
- package/game/game_grpc_pb.js +36 -3
- package/game/game_pb.js +182 -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);
|
@@ -126,6 +127,10 @@ message CollectionItemsResponse {
|
|
126
127
|
message CollectionStatusResponse {
|
127
128
|
string status = 1;
|
128
129
|
}
|
130
|
+
message CollectionGamesRequest {
|
131
|
+
int32 id = 1;
|
132
|
+
string game_ids = 2;
|
133
|
+
}
|
129
134
|
|
130
135
|
//Tag CRUD
|
131
136
|
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');
|
@@ -464,11 +486,11 @@ createSingleCollection: {
|
|
464
486
|
requestStream: false,
|
465
487
|
responseStream: false,
|
466
488
|
requestType: game_pb.GetCollectionRequest,
|
467
|
-
responseType: game_pb.
|
489
|
+
responseType: game_pb.CollectionStatusResponse,
|
468
490
|
requestSerialize: serialize_game_GetCollectionRequest,
|
469
491
|
requestDeserialize: deserialize_game_GetCollectionRequest,
|
470
|
-
responseSerialize:
|
471
|
-
responseDeserialize:
|
492
|
+
responseSerialize: serialize_game_CollectionStatusResponse,
|
493
|
+
responseDeserialize: deserialize_game_CollectionStatusResponse,
|
472
494
|
},
|
473
495
|
readListCollections: {
|
474
496
|
path: '/game.Game/readListCollections',
|
@@ -481,6 +503,17 @@ createSingleCollection: {
|
|
481
503
|
responseSerialize: serialize_game_CollectionItemsResponse,
|
482
504
|
responseDeserialize: deserialize_game_CollectionItemsResponse,
|
483
505
|
},
|
506
|
+
addGamesToCollection: {
|
507
|
+
path: '/game.Game/addGamesToCollection',
|
508
|
+
requestStream: false,
|
509
|
+
responseStream: false,
|
510
|
+
requestType: game_pb.CollectionGamesRequest,
|
511
|
+
responseType: game_pb.CollectionStatusResponse,
|
512
|
+
requestSerialize: serialize_game_CollectionGamesRequest,
|
513
|
+
requestDeserialize: deserialize_game_CollectionGamesRequest,
|
514
|
+
responseSerialize: serialize_game_CollectionStatusResponse,
|
515
|
+
responseDeserialize: deserialize_game_CollectionStatusResponse,
|
516
|
+
},
|
484
517
|
// Tags
|
485
518
|
createSingleTag: {
|
486
519
|
path: '/game.Game/createSingleTag',
|
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);
|
@@ -467,6 +468,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
467
468
|
*/
|
468
469
|
proto.game.CollectionStatusResponse.displayName = 'proto.game.CollectionStatusResponse';
|
469
470
|
}
|
471
|
+
/**
|
472
|
+
* Generated by JsPbCodeGenerator.
|
473
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
474
|
+
* server response, or constructed directly in Javascript. The array is used
|
475
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
476
|
+
* If no data is provided, the constructed object will be empty, but still
|
477
|
+
* valid.
|
478
|
+
* @extends {jspb.Message}
|
479
|
+
* @constructor
|
480
|
+
*/
|
481
|
+
proto.game.CollectionGamesRequest = function(opt_data) {
|
482
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
483
|
+
};
|
484
|
+
goog.inherits(proto.game.CollectionGamesRequest, jspb.Message);
|
485
|
+
if (goog.DEBUG && !COMPILED) {
|
486
|
+
/**
|
487
|
+
* @public
|
488
|
+
* @override
|
489
|
+
*/
|
490
|
+
proto.game.CollectionGamesRequest.displayName = 'proto.game.CollectionGamesRequest';
|
491
|
+
}
|
470
492
|
/**
|
471
493
|
* Generated by JsPbCodeGenerator.
|
472
494
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -5224,6 +5246,166 @@ proto.game.CollectionStatusResponse.prototype.setStatus = function(value) {
|
|
5224
5246
|
|
5225
5247
|
|
5226
5248
|
|
5249
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5250
|
+
/**
|
5251
|
+
* Creates an object representation of this proto.
|
5252
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5253
|
+
* Optional fields that are not set will be set to undefined.
|
5254
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5255
|
+
* For the list of reserved names please see:
|
5256
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5257
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5258
|
+
* JSPB instance for transitional soy proto support:
|
5259
|
+
* http://goto/soy-param-migration
|
5260
|
+
* @return {!Object}
|
5261
|
+
*/
|
5262
|
+
proto.game.CollectionGamesRequest.prototype.toObject = function(opt_includeInstance) {
|
5263
|
+
return proto.game.CollectionGamesRequest.toObject(opt_includeInstance, this);
|
5264
|
+
};
|
5265
|
+
|
5266
|
+
|
5267
|
+
/**
|
5268
|
+
* Static version of the {@see toObject} method.
|
5269
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5270
|
+
* the JSPB instance for transitional soy proto support:
|
5271
|
+
* http://goto/soy-param-migration
|
5272
|
+
* @param {!proto.game.CollectionGamesRequest} msg The msg instance to transform.
|
5273
|
+
* @return {!Object}
|
5274
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5275
|
+
*/
|
5276
|
+
proto.game.CollectionGamesRequest.toObject = function(includeInstance, msg) {
|
5277
|
+
var f, obj = {
|
5278
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5279
|
+
gameIds: jspb.Message.getFieldWithDefault(msg, 2, "")
|
5280
|
+
};
|
5281
|
+
|
5282
|
+
if (includeInstance) {
|
5283
|
+
obj.$jspbMessageInstance = msg;
|
5284
|
+
}
|
5285
|
+
return obj;
|
5286
|
+
};
|
5287
|
+
}
|
5288
|
+
|
5289
|
+
|
5290
|
+
/**
|
5291
|
+
* Deserializes binary data (in protobuf wire format).
|
5292
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5293
|
+
* @return {!proto.game.CollectionGamesRequest}
|
5294
|
+
*/
|
5295
|
+
proto.game.CollectionGamesRequest.deserializeBinary = function(bytes) {
|
5296
|
+
var reader = new jspb.BinaryReader(bytes);
|
5297
|
+
var msg = new proto.game.CollectionGamesRequest;
|
5298
|
+
return proto.game.CollectionGamesRequest.deserializeBinaryFromReader(msg, reader);
|
5299
|
+
};
|
5300
|
+
|
5301
|
+
|
5302
|
+
/**
|
5303
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5304
|
+
* given reader into the given message object.
|
5305
|
+
* @param {!proto.game.CollectionGamesRequest} msg The message object to deserialize into.
|
5306
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5307
|
+
* @return {!proto.game.CollectionGamesRequest}
|
5308
|
+
*/
|
5309
|
+
proto.game.CollectionGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
5310
|
+
while (reader.nextField()) {
|
5311
|
+
if (reader.isEndGroup()) {
|
5312
|
+
break;
|
5313
|
+
}
|
5314
|
+
var field = reader.getFieldNumber();
|
5315
|
+
switch (field) {
|
5316
|
+
case 1:
|
5317
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5318
|
+
msg.setId(value);
|
5319
|
+
break;
|
5320
|
+
case 2:
|
5321
|
+
var value = /** @type {string} */ (reader.readString());
|
5322
|
+
msg.setGameIds(value);
|
5323
|
+
break;
|
5324
|
+
default:
|
5325
|
+
reader.skipField();
|
5326
|
+
break;
|
5327
|
+
}
|
5328
|
+
}
|
5329
|
+
return msg;
|
5330
|
+
};
|
5331
|
+
|
5332
|
+
|
5333
|
+
/**
|
5334
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5335
|
+
* @return {!Uint8Array}
|
5336
|
+
*/
|
5337
|
+
proto.game.CollectionGamesRequest.prototype.serializeBinary = function() {
|
5338
|
+
var writer = new jspb.BinaryWriter();
|
5339
|
+
proto.game.CollectionGamesRequest.serializeBinaryToWriter(this, writer);
|
5340
|
+
return writer.getResultBuffer();
|
5341
|
+
};
|
5342
|
+
|
5343
|
+
|
5344
|
+
/**
|
5345
|
+
* Serializes the given message to binary data (in protobuf wire
|
5346
|
+
* format), writing to the given BinaryWriter.
|
5347
|
+
* @param {!proto.game.CollectionGamesRequest} message
|
5348
|
+
* @param {!jspb.BinaryWriter} writer
|
5349
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5350
|
+
*/
|
5351
|
+
proto.game.CollectionGamesRequest.serializeBinaryToWriter = function(message, writer) {
|
5352
|
+
var f = undefined;
|
5353
|
+
f = message.getId();
|
5354
|
+
if (f !== 0) {
|
5355
|
+
writer.writeInt32(
|
5356
|
+
1,
|
5357
|
+
f
|
5358
|
+
);
|
5359
|
+
}
|
5360
|
+
f = message.getGameIds();
|
5361
|
+
if (f.length > 0) {
|
5362
|
+
writer.writeString(
|
5363
|
+
2,
|
5364
|
+
f
|
5365
|
+
);
|
5366
|
+
}
|
5367
|
+
};
|
5368
|
+
|
5369
|
+
|
5370
|
+
/**
|
5371
|
+
* optional int32 id = 1;
|
5372
|
+
* @return {number}
|
5373
|
+
*/
|
5374
|
+
proto.game.CollectionGamesRequest.prototype.getId = function() {
|
5375
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5376
|
+
};
|
5377
|
+
|
5378
|
+
|
5379
|
+
/**
|
5380
|
+
* @param {number} value
|
5381
|
+
* @return {!proto.game.CollectionGamesRequest} returns this
|
5382
|
+
*/
|
5383
|
+
proto.game.CollectionGamesRequest.prototype.setId = function(value) {
|
5384
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
5385
|
+
};
|
5386
|
+
|
5387
|
+
|
5388
|
+
/**
|
5389
|
+
* optional string game_ids = 2;
|
5390
|
+
* @return {string}
|
5391
|
+
*/
|
5392
|
+
proto.game.CollectionGamesRequest.prototype.getGameIds = function() {
|
5393
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
5394
|
+
};
|
5395
|
+
|
5396
|
+
|
5397
|
+
/**
|
5398
|
+
* @param {string} value
|
5399
|
+
* @return {!proto.game.CollectionGamesRequest} returns this
|
5400
|
+
*/
|
5401
|
+
proto.game.CollectionGamesRequest.prototype.setGameIds = function(value) {
|
5402
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
5403
|
+
};
|
5404
|
+
|
5405
|
+
|
5406
|
+
|
5407
|
+
|
5408
|
+
|
5227
5409
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5228
5410
|
/**
|
5229
5411
|
* Creates an object representation of this proto.
|