protobuf-platform 1.0.234 → 1.0.235

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.
@@ -0,0 +1,15 @@
1
+ syntax = "proto3";
2
+
3
+ package tournament;
4
+
5
+ service Tournament {
6
+ rpc checkConnection(PingRequest) returns (PongResponse);
7
+ }
8
+ message PingRequest { string ping = 1; }
9
+ message PongResponse { string pong = 1; }
10
+ message PaginationRequest { int32 limit = 1; int32 offset = 2; optional UserSearchRequest user_search_params = 3; }
11
+ message UserSearchRequest {
12
+ optional int32 user_id = 1;
13
+ optional string balance_type = 2;
14
+ optional string currency = 3;
15
+ }
@@ -0,0 +1,44 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var tournament_pb = require('./tournament_pb.js');
6
+
7
+ function serialize_tournament_PingRequest(arg) {
8
+ if (!(arg instanceof tournament_pb.PingRequest)) {
9
+ throw new Error('Expected argument of type tournament.PingRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_tournament_PingRequest(buffer_arg) {
15
+ return tournament_pb.PingRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_tournament_PongResponse(arg) {
19
+ if (!(arg instanceof tournament_pb.PongResponse)) {
20
+ throw new Error('Expected argument of type tournament.PongResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_tournament_PongResponse(buffer_arg) {
26
+ return tournament_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+
30
+ var TournamentService = exports.TournamentService = {
31
+ checkConnection: {
32
+ path: '/tournament.Tournament/checkConnection',
33
+ requestStream: false,
34
+ responseStream: false,
35
+ requestType: tournament_pb.PingRequest,
36
+ responseType: tournament_pb.PongResponse,
37
+ requestSerialize: serialize_tournament_PingRequest,
38
+ requestDeserialize: deserialize_tournament_PingRequest,
39
+ responseSerialize: serialize_tournament_PongResponse,
40
+ responseDeserialize: deserialize_tournament_PongResponse,
41
+ },
42
+ };
43
+
44
+ exports.TournamentClient = grpc.makeGenericClientConstructor(TournamentService);