mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-17 01:12:51 +00:00
08c3cdf59f
Change the service and method names in grpc.proto to not use camel-case, to make it explicit where rewriting occurs in the generated code. Change-Id: I9e4a851097b0ee14817a589f5f959adcc5a14fe3 Reviewed-on: https://go-review.googlesource.com/c/153657 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
28 lines
838 B
Protocol Buffer
28 lines
838 B
Protocol Buffer
// Copyright 2018 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
syntax = "proto3";
|
|
|
|
package goproto.protoc.grpc;
|
|
|
|
option go_package = "github.com/golang/protobuf/v2/cmd/protoc-gen-go/testdata/grpc";
|
|
|
|
message Request {}
|
|
message Response {}
|
|
|
|
// Service and method names chosen to exercise the distinction between the
|
|
// proto definition names and the CamelCased Go names.
|
|
service test_service {
|
|
rpc unary_call(Request) returns (Response);
|
|
|
|
// This RPC streams from the server only.
|
|
rpc downstream_call(Request) returns (stream Response);
|
|
|
|
// This RPC streams from the client.
|
|
rpc upstream_call(stream Request) returns (Response);
|
|
|
|
// This one streams in both directions.
|
|
rpc bidi_call(stream Request) returns (stream Response);
|
|
}
|