granc/echo-service/proto/echo.proto
2026-01-20 18:10:23 +01:00

18 lines
426 B
Protocol Buffer

syntax = "proto3";
package echo;
service EchoService {
rpc UnaryEcho (EchoRequest) returns (EchoResponse);
rpc ServerStreamingEcho (EchoRequest) returns (stream EchoResponse);
rpc ClientStreamingEcho (stream EchoRequest) returns (EchoResponse);
rpc BidirectionalEcho (stream EchoRequest) returns (stream EchoResponse);
}
message EchoRequest {
string message = 1;
}
message EchoResponse {
string message = 1;
}