echo.proto 354 B

1234567891011121314151617181920212223
  1. syntax="proto2";
  2. package example;
  3. message EchoRequest
  4. {
  5. optional string message = 1;
  6. optional string name = 2;
  7. //repeated int32 arr = 3;
  8. };
  9. message EchoResponse
  10. {
  11. optional string message = 1;
  12. optional int32 state = 2;
  13. optional int32 error = 3;
  14. //repeated int32 arr = 4;
  15. };
  16. service ExamplePB
  17. {
  18. rpc Echo(EchoRequest) returns (EchoResponse);
  19. };