22 lines
316 B
Protocol Buffer
22 lines
316 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
import "google/api/annotations.proto";
|
||
|
|
||
|
package greet;
|
||
|
|
||
|
service Greeter {
|
||
|
rpc SayHello (HelloRequest) returns (HelloReply) {
|
||
|
option (google.api.http) = {
|
||
|
get: "/v1/greeter/{name}"
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
message HelloRequest {
|
||
|
string name = 1;
|
||
|
}
|
||
|
|
||
|
message HelloReply {
|
||
|
string message = 1;
|
||
|
}
|