grpc.proto 835 B

123456789101112131415161718192021222324252627
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. syntax = "proto3";
  5. package goproto.protoc.grpc;
  6. option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/grpc";
  7. message Request {}
  8. message Response {}
  9. // Service and method names chosen to exercise the distinction between the
  10. // proto definition names and the CamelCased Go names.
  11. service test_service {
  12. rpc unary_call(Request) returns (Response);
  13. // This RPC streams from the server only.
  14. rpc downstream_call(Request) returns (stream Response);
  15. // This RPC streams from the client.
  16. rpc upstream_call(stream Request) returns (Response);
  17. // This one streams in both directions.
  18. rpc bidi_call(stream Request) returns (stream Response);
  19. }