|
|
@@ -1,41 +0,0 @@
|
|
|
-// Copyright (c) 2015, Google Inc.
|
|
|
-//
|
|
|
-// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
-// you may not use this file except in compliance with the License.
|
|
|
-// You may obtain a copy of the License at
|
|
|
-//
|
|
|
-// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
-//
|
|
|
-// Unless required by applicable law or agreed to in writing, software
|
|
|
-// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
-// See the License for the specific language governing permissions and
|
|
|
-// limitations under the License.
|
|
|
-
|
|
|
-syntax = "proto3";
|
|
|
-
|
|
|
-package echo;
|
|
|
-
|
|
|
-service Echo {
|
|
|
- // Immediately returns an echo of a request.
|
|
|
- rpc Get(EchoRequest) returns (EchoResponse) {}
|
|
|
-
|
|
|
- // Splits a request into words and returns each word in a stream of messages.
|
|
|
- rpc Expand(EchoRequest) returns (stream EchoResponse) {}
|
|
|
-
|
|
|
- // Collects a stream of messages and returns them concatenated when the caller closes.
|
|
|
- rpc Collect(stream EchoRequest) returns (EchoResponse) {}
|
|
|
-
|
|
|
- // Streams back messages as they are received in an input stream.
|
|
|
- rpc Update(stream EchoRequest) returns (stream EchoResponse) {}
|
|
|
-}
|
|
|
-
|
|
|
-message EchoRequest {
|
|
|
- // The text of a message to be echoed.
|
|
|
- string text = 1;
|
|
|
-}
|
|
|
-
|
|
|
-message EchoResponse {
|
|
|
- // The text of an echo response.
|
|
|
- string text = 1;
|
|
|
-}
|