mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-07 12:56:47 +00:00
26 lines
684 B
Protocol Buffer
26 lines
684 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 Test {
|
||
|
rpc UnaryCall(Request) returns (Response);
|
||
|
|
||
|
// This RPC streams from the server only.
|
||
|
rpc Downstream(Request) returns (stream Response);
|
||
|
|
||
|
// This RPC streams from the client.
|
||
|
rpc Upstream(stream Request) returns (Response);
|
||
|
|
||
|
// This one streams in both directions.
|
||
|
rpc Bidi(stream Request) returns (stream Response);
|
||
|
}
|