github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/cmd/protoc-gen-micro/examples/greeter/greeter.proto (about) 1 syntax = "proto3"; 2 3 import "google/api/annotations.proto"; 4 5 service Greeter { 6 rpc Hello(Request) returns (Response) { 7 option (google.api.http) = { post: "/hello"; body: "*"; }; 8 } 9 rpc Stream(stream Request) returns (stream Response) { 10 option (google.api.http) = { get: "/stream"; }; 11 } 12 } 13 14 message Request { 15 string name = 1; 16 } 17 18 message Response { 19 string msg = 1; 20 }