-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
helloworld.proto
39 lines (31 loc) · 966 Bytes
/
helloworld.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
syntax = "proto3";
package helloworld;
option go_package = ".;helloworld";
// The request message containing the user's name.
message HelloRequest {
string name = 1;
}
// The response message containing the greetings
message HelloReply {
string message = 1;
}
// The greeting service definition.
service Greeter {
// Sends a greeting
rpc SayHello (HelloRequest) returns (HelloReply) {}
}
// The greeting service definition. (Server-side streaming RPC)
service GreeterServerSideSStream {
// Sends a greeting
rpc SayHello (HelloRequest) returns (stream HelloReply) {}
}
// The greeting service definition. (Client-side streaming RPC)
service GreeterClientSideStream {
// Sends a greeting
rpc SayHello (stream HelloRequest) returns (HelloReply) {}
}
// The greeting service definition. (Bidirectional streaming RPC)
service GreeterBidirectionalStream {
// Sends a greeting
rpc SayHello (stream HelloRequest) returns (stream HelloReply) {}
}