OSDN Git Service

add package
[bytom/vapor.git] / vendor / github.com / hashicorp / go-plugin / test / grpc / test.proto
1 syntax = "proto3";
2 package grpctest;
3
4 message TestRequest {
5     int32 Input = 1;
6 }
7
8 message TestResponse {
9     int32 Output = 2;
10 }
11
12 message PrintKVRequest {
13     string Key = 1;
14     oneof Value {
15         string ValueString = 2;
16         int32 ValueInt = 3;
17     }
18 }
19
20 message PrintKVResponse {
21
22 }
23
24 message BidirectionalRequest {
25     uint32 id = 1;
26 }
27
28 message BidirectionalResponse {
29     uint32 id = 1;
30 }
31
32 service Test {
33     rpc Double(TestRequest) returns (TestResponse) {}
34     rpc PrintKV(PrintKVRequest) returns (PrintKVResponse) {}
35     rpc Bidirectional(BidirectionalRequest) returns (BidirectionalResponse) {}
36     rpc Stream(stream TestRequest) returns (stream TestResponse) {}
37 }
38
39 message PingRequest {
40 }
41
42 message PongResponse {
43     string msg = 1;
44 }
45
46 service PingPong {
47     rpc Ping(PingRequest) returns (PongResponse) {}
48 }