mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-06 10:01:25 +00:00
e89e6244e0
Temporarily remove go.mod, since we can't generate an accurate one until the corresponding v1 change is submitted. Change-Id: I1e1ad97f2b455e33f61ffaeb8676289795e47e72 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/177000 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
28 lines
835 B
Protocol Buffer
28 lines
835 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 = "google.golang.org/protobuf/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);
|
|
}
|