protobuf-platform 1.0.54 → 1.0.55
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 +2 -2
- package/game/game_grpc_pb.js +8 -8
- package/game/game_pb.js +39 -39
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -10,7 +10,7 @@ service Game {
|
|
10
10
|
rpc readSingleCategory(GetCategoryRequest) returns (CategoryResponse);
|
11
11
|
rpc updateSingleCategory(stream CategoryRequest) returns (CategoryResponse);
|
12
12
|
rpc deleteSingleCategory(GetCategoryRequest) returns (CategoryStatusResponse);
|
13
|
-
rpc readListCategories(PaginationRequest) returns (
|
13
|
+
rpc readListCategories(PaginationRequest) returns (CategoryItemsResponse);
|
14
14
|
}
|
15
15
|
|
16
16
|
message PingRequest { string ping = 1; }
|
@@ -51,7 +51,7 @@ message GetCategoryRequest {
|
|
51
51
|
message CategoryResponse {
|
52
52
|
CategoryItem data = 1;
|
53
53
|
}
|
54
|
-
message
|
54
|
+
message CategoryItemsResponse {
|
55
55
|
repeated CategoryItem items = 1;
|
56
56
|
optional int32 total_pages = 2;
|
57
57
|
optional int32 total_items = 3;
|
package/game/game_grpc_pb.js
CHANGED
@@ -4,15 +4,15 @@
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
5
5
|
var game_pb = require('./game_pb.js');
|
6
6
|
|
7
|
-
function
|
8
|
-
if (!(arg instanceof game_pb.
|
9
|
-
throw new Error('Expected argument of type game.
|
7
|
+
function serialize_game_CategoryItemsResponse(arg) {
|
8
|
+
if (!(arg instanceof game_pb.CategoryItemsResponse)) {
|
9
|
+
throw new Error('Expected argument of type game.CategoryItemsResponse');
|
10
10
|
}
|
11
11
|
return Buffer.from(arg.serializeBinary());
|
12
12
|
}
|
13
13
|
|
14
|
-
function
|
15
|
-
return game_pb.
|
14
|
+
function deserialize_game_CategoryItemsResponse(buffer_arg) {
|
15
|
+
return game_pb.CategoryItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
16
16
|
}
|
17
17
|
|
18
18
|
function serialize_game_CategoryRequest(arg) {
|
@@ -188,11 +188,11 @@ createSingleCategory: {
|
|
188
188
|
requestStream: false,
|
189
189
|
responseStream: false,
|
190
190
|
requestType: game_pb.PaginationRequest,
|
191
|
-
responseType: game_pb.
|
191
|
+
responseType: game_pb.CategoryItemsResponse,
|
192
192
|
requestSerialize: serialize_game_PaginationRequest,
|
193
193
|
requestDeserialize: deserialize_game_PaginationRequest,
|
194
|
-
responseSerialize:
|
195
|
-
responseDeserialize:
|
194
|
+
responseSerialize: serialize_game_CategoryItemsResponse,
|
195
|
+
responseDeserialize: deserialize_game_CategoryItemsResponse,
|
196
196
|
},
|
197
197
|
};
|
198
198
|
|
package/game/game_pb.js
CHANGED
@@ -23,7 +23,7 @@ var global = (function() {
|
|
23
23
|
|
24
24
|
goog.exportSymbol('proto.game.CategoryItem', null, global);
|
25
25
|
goog.exportSymbol('proto.game.CategoryItemRequest', null, global);
|
26
|
-
goog.exportSymbol('proto.game.
|
26
|
+
goog.exportSymbol('proto.game.CategoryItemsResponse', null, global);
|
27
27
|
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);
|
@@ -254,16 +254,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
254
254
|
* @extends {jspb.Message}
|
255
255
|
* @constructor
|
256
256
|
*/
|
257
|
-
proto.game.
|
258
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.
|
257
|
+
proto.game.CategoryItemsResponse = function(opt_data) {
|
258
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CategoryItemsResponse.repeatedFields_, null);
|
259
259
|
};
|
260
|
-
goog.inherits(proto.game.
|
260
|
+
goog.inherits(proto.game.CategoryItemsResponse, jspb.Message);
|
261
261
|
if (goog.DEBUG && !COMPILED) {
|
262
262
|
/**
|
263
263
|
* @public
|
264
264
|
* @override
|
265
265
|
*/
|
266
|
-
proto.game.
|
266
|
+
proto.game.CategoryItemsResponse.displayName = 'proto.game.CategoryItemsResponse';
|
267
267
|
}
|
268
268
|
/**
|
269
269
|
* Generated by JsPbCodeGenerator.
|
@@ -2359,7 +2359,7 @@ proto.game.CategoryResponse.prototype.hasData = function() {
|
|
2359
2359
|
* @private {!Array<number>}
|
2360
2360
|
* @const
|
2361
2361
|
*/
|
2362
|
-
proto.game.
|
2362
|
+
proto.game.CategoryItemsResponse.repeatedFields_ = [1];
|
2363
2363
|
|
2364
2364
|
|
2365
2365
|
|
@@ -2376,8 +2376,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2376
2376
|
* http://goto/soy-param-migration
|
2377
2377
|
* @return {!Object}
|
2378
2378
|
*/
|
2379
|
-
proto.game.
|
2380
|
-
return proto.game.
|
2379
|
+
proto.game.CategoryItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
2380
|
+
return proto.game.CategoryItemsResponse.toObject(opt_includeInstance, this);
|
2381
2381
|
};
|
2382
2382
|
|
2383
2383
|
|
@@ -2386,11 +2386,11 @@ proto.game.CategoryListResponse.prototype.toObject = function(opt_includeInstanc
|
|
2386
2386
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2387
2387
|
* the JSPB instance for transitional soy proto support:
|
2388
2388
|
* http://goto/soy-param-migration
|
2389
|
-
* @param {!proto.game.
|
2389
|
+
* @param {!proto.game.CategoryItemsResponse} msg The msg instance to transform.
|
2390
2390
|
* @return {!Object}
|
2391
2391
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2392
2392
|
*/
|
2393
|
-
proto.game.
|
2393
|
+
proto.game.CategoryItemsResponse.toObject = function(includeInstance, msg) {
|
2394
2394
|
var f, obj = {
|
2395
2395
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
2396
2396
|
proto.game.CategoryItem.toObject, includeInstance),
|
@@ -2409,23 +2409,23 @@ proto.game.CategoryListResponse.toObject = function(includeInstance, msg) {
|
|
2409
2409
|
/**
|
2410
2410
|
* Deserializes binary data (in protobuf wire format).
|
2411
2411
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2412
|
-
* @return {!proto.game.
|
2412
|
+
* @return {!proto.game.CategoryItemsResponse}
|
2413
2413
|
*/
|
2414
|
-
proto.game.
|
2414
|
+
proto.game.CategoryItemsResponse.deserializeBinary = function(bytes) {
|
2415
2415
|
var reader = new jspb.BinaryReader(bytes);
|
2416
|
-
var msg = new proto.game.
|
2417
|
-
return proto.game.
|
2416
|
+
var msg = new proto.game.CategoryItemsResponse;
|
2417
|
+
return proto.game.CategoryItemsResponse.deserializeBinaryFromReader(msg, reader);
|
2418
2418
|
};
|
2419
2419
|
|
2420
2420
|
|
2421
2421
|
/**
|
2422
2422
|
* Deserializes binary data (in protobuf wire format) from the
|
2423
2423
|
* given reader into the given message object.
|
2424
|
-
* @param {!proto.game.
|
2424
|
+
* @param {!proto.game.CategoryItemsResponse} msg The message object to deserialize into.
|
2425
2425
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2426
|
-
* @return {!proto.game.
|
2426
|
+
* @return {!proto.game.CategoryItemsResponse}
|
2427
2427
|
*/
|
2428
|
-
proto.game.
|
2428
|
+
proto.game.CategoryItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
2429
2429
|
while (reader.nextField()) {
|
2430
2430
|
if (reader.isEndGroup()) {
|
2431
2431
|
break;
|
@@ -2458,9 +2458,9 @@ proto.game.CategoryListResponse.deserializeBinaryFromReader = function(msg, read
|
|
2458
2458
|
* Serializes the message to binary data (in protobuf wire format).
|
2459
2459
|
* @return {!Uint8Array}
|
2460
2460
|
*/
|
2461
|
-
proto.game.
|
2461
|
+
proto.game.CategoryItemsResponse.prototype.serializeBinary = function() {
|
2462
2462
|
var writer = new jspb.BinaryWriter();
|
2463
|
-
proto.game.
|
2463
|
+
proto.game.CategoryItemsResponse.serializeBinaryToWriter(this, writer);
|
2464
2464
|
return writer.getResultBuffer();
|
2465
2465
|
};
|
2466
2466
|
|
@@ -2468,11 +2468,11 @@ proto.game.CategoryListResponse.prototype.serializeBinary = function() {
|
|
2468
2468
|
/**
|
2469
2469
|
* Serializes the given message to binary data (in protobuf wire
|
2470
2470
|
* format), writing to the given BinaryWriter.
|
2471
|
-
* @param {!proto.game.
|
2471
|
+
* @param {!proto.game.CategoryItemsResponse} message
|
2472
2472
|
* @param {!jspb.BinaryWriter} writer
|
2473
2473
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2474
2474
|
*/
|
2475
|
-
proto.game.
|
2475
|
+
proto.game.CategoryItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
2476
2476
|
var f = undefined;
|
2477
2477
|
f = message.getItemsList();
|
2478
2478
|
if (f.length > 0) {
|
@@ -2503,7 +2503,7 @@ proto.game.CategoryListResponse.serializeBinaryToWriter = function(message, writ
|
|
2503
2503
|
* repeated CategoryItem items = 1;
|
2504
2504
|
* @return {!Array<!proto.game.CategoryItem>}
|
2505
2505
|
*/
|
2506
|
-
proto.game.
|
2506
|
+
proto.game.CategoryItemsResponse.prototype.getItemsList = function() {
|
2507
2507
|
return /** @type{!Array<!proto.game.CategoryItem>} */ (
|
2508
2508
|
jspb.Message.getRepeatedWrapperField(this, proto.game.CategoryItem, 1));
|
2509
2509
|
};
|
@@ -2511,9 +2511,9 @@ proto.game.CategoryListResponse.prototype.getItemsList = function() {
|
|
2511
2511
|
|
2512
2512
|
/**
|
2513
2513
|
* @param {!Array<!proto.game.CategoryItem>} value
|
2514
|
-
* @return {!proto.game.
|
2514
|
+
* @return {!proto.game.CategoryItemsResponse} returns this
|
2515
2515
|
*/
|
2516
|
-
proto.game.
|
2516
|
+
proto.game.CategoryItemsResponse.prototype.setItemsList = function(value) {
|
2517
2517
|
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
2518
2518
|
};
|
2519
2519
|
|
@@ -2523,16 +2523,16 @@ proto.game.CategoryListResponse.prototype.setItemsList = function(value) {
|
|
2523
2523
|
* @param {number=} opt_index
|
2524
2524
|
* @return {!proto.game.CategoryItem}
|
2525
2525
|
*/
|
2526
|
-
proto.game.
|
2526
|
+
proto.game.CategoryItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
2527
2527
|
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.CategoryItem, opt_index);
|
2528
2528
|
};
|
2529
2529
|
|
2530
2530
|
|
2531
2531
|
/**
|
2532
2532
|
* Clears the list making it empty but non-null.
|
2533
|
-
* @return {!proto.game.
|
2533
|
+
* @return {!proto.game.CategoryItemsResponse} returns this
|
2534
2534
|
*/
|
2535
|
-
proto.game.
|
2535
|
+
proto.game.CategoryItemsResponse.prototype.clearItemsList = function() {
|
2536
2536
|
return this.setItemsList([]);
|
2537
2537
|
};
|
2538
2538
|
|
@@ -2541,25 +2541,25 @@ proto.game.CategoryListResponse.prototype.clearItemsList = function() {
|
|
2541
2541
|
* optional int32 total_pages = 2;
|
2542
2542
|
* @return {number}
|
2543
2543
|
*/
|
2544
|
-
proto.game.
|
2544
|
+
proto.game.CategoryItemsResponse.prototype.getTotalPages = function() {
|
2545
2545
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
2546
2546
|
};
|
2547
2547
|
|
2548
2548
|
|
2549
2549
|
/**
|
2550
2550
|
* @param {number} value
|
2551
|
-
* @return {!proto.game.
|
2551
|
+
* @return {!proto.game.CategoryItemsResponse} returns this
|
2552
2552
|
*/
|
2553
|
-
proto.game.
|
2553
|
+
proto.game.CategoryItemsResponse.prototype.setTotalPages = function(value) {
|
2554
2554
|
return jspb.Message.setField(this, 2, value);
|
2555
2555
|
};
|
2556
2556
|
|
2557
2557
|
|
2558
2558
|
/**
|
2559
2559
|
* Clears the field making it undefined.
|
2560
|
-
* @return {!proto.game.
|
2560
|
+
* @return {!proto.game.CategoryItemsResponse} returns this
|
2561
2561
|
*/
|
2562
|
-
proto.game.
|
2562
|
+
proto.game.CategoryItemsResponse.prototype.clearTotalPages = function() {
|
2563
2563
|
return jspb.Message.setField(this, 2, undefined);
|
2564
2564
|
};
|
2565
2565
|
|
@@ -2568,7 +2568,7 @@ proto.game.CategoryListResponse.prototype.clearTotalPages = function() {
|
|
2568
2568
|
* Returns whether this field is set.
|
2569
2569
|
* @return {boolean}
|
2570
2570
|
*/
|
2571
|
-
proto.game.
|
2571
|
+
proto.game.CategoryItemsResponse.prototype.hasTotalPages = function() {
|
2572
2572
|
return jspb.Message.getField(this, 2) != null;
|
2573
2573
|
};
|
2574
2574
|
|
@@ -2577,25 +2577,25 @@ proto.game.CategoryListResponse.prototype.hasTotalPages = function() {
|
|
2577
2577
|
* optional int32 total_items = 3;
|
2578
2578
|
* @return {number}
|
2579
2579
|
*/
|
2580
|
-
proto.game.
|
2580
|
+
proto.game.CategoryItemsResponse.prototype.getTotalItems = function() {
|
2581
2581
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
2582
2582
|
};
|
2583
2583
|
|
2584
2584
|
|
2585
2585
|
/**
|
2586
2586
|
* @param {number} value
|
2587
|
-
* @return {!proto.game.
|
2587
|
+
* @return {!proto.game.CategoryItemsResponse} returns this
|
2588
2588
|
*/
|
2589
|
-
proto.game.
|
2589
|
+
proto.game.CategoryItemsResponse.prototype.setTotalItems = function(value) {
|
2590
2590
|
return jspb.Message.setField(this, 3, value);
|
2591
2591
|
};
|
2592
2592
|
|
2593
2593
|
|
2594
2594
|
/**
|
2595
2595
|
* Clears the field making it undefined.
|
2596
|
-
* @return {!proto.game.
|
2596
|
+
* @return {!proto.game.CategoryItemsResponse} returns this
|
2597
2597
|
*/
|
2598
|
-
proto.game.
|
2598
|
+
proto.game.CategoryItemsResponse.prototype.clearTotalItems = function() {
|
2599
2599
|
return jspb.Message.setField(this, 3, undefined);
|
2600
2600
|
};
|
2601
2601
|
|
@@ -2604,7 +2604,7 @@ proto.game.CategoryListResponse.prototype.clearTotalItems = function() {
|
|
2604
2604
|
* Returns whether this field is set.
|
2605
2605
|
* @return {boolean}
|
2606
2606
|
*/
|
2607
|
-
proto.game.
|
2607
|
+
proto.game.CategoryItemsResponse.prototype.hasTotalItems = function() {
|
2608
2608
|
return jspb.Message.getField(this, 3) != null;
|
2609
2609
|
};
|
2610
2610
|
|