mirror of
https://github.com/arkadiyt/protodump.git
synced 2026-10-23 02:29:39 +02:00
52 lines
854 B
Protocol Buffer
52 lines
854 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package helloworld;
|
|
|
|
option go_package = "./;helloworld";
|
|
|
|
service Greeter {
|
|
rpc SayHello (HelloRequest) returns (HelloReply) {}
|
|
rpc StreamMethodServer (StreamRequest) returns (stream StreamReply) {}
|
|
}
|
|
|
|
message Reserved {
|
|
reserved "foo";
|
|
reserved 1;
|
|
reserved 4 to 7;
|
|
}
|
|
|
|
message ReservedEnum {
|
|
reserved "FOO";
|
|
reserved 10 to max;
|
|
}
|
|
|
|
message HelloRequest {
|
|
message Test {
|
|
string blah = 1;
|
|
}
|
|
|
|
enum NestedEnum {
|
|
BLAH = 0;
|
|
}
|
|
|
|
string name = 1;
|
|
helloworld.HelloRequest.Test blah = 2;
|
|
helloworld.HelloRequest.NestedEnum blahblah = 3;
|
|
helloworld.HelloReply blaha = 4;
|
|
}
|
|
|
|
message HelloReply {
|
|
helloworld.HelloRequest.Test blah = 2;
|
|
helloworld.HelloRequest.NestedEnum blahblah = 3;
|
|
string message = 1;
|
|
}
|
|
|
|
message StreamRequest {
|
|
string message = 1;
|
|
}
|
|
|
|
message StreamReply {
|
|
string message = 1;
|
|
}
|
|
|