test-service.proto 649 B

12345678910111213141516171819202122232425
  1. // Leading trivia.
  2. syntax = "proto3";
  3. package test;
  4. // Using a WKT forces an "SwiftProtobuf" to be imported in generated code.
  5. import "google/protobuf/any.proto";
  6. // Service docs.
  7. service TestService {
  8. // Unary docs.
  9. rpc Unary (TestInput) returns (TestOutput) {}
  10. // Client streaming docs.
  11. rpc ClientStreaming (stream TestInput) returns (TestOutput) {}
  12. // Server streaming docs.
  13. rpc ServerStreaming (TestInput) returns (stream TestOutput) {}
  14. // Bidirectional streaming docs.
  15. rpc BidirectionalStreaming (stream TestInput) returns (stream TestOutput) {}
  16. }
  17. message TestInput {
  18. google.protobuf.Any any = 1;
  19. }
  20. message TestOutput {}