From 204c072c4d87c96ce611464eee87d549dc000ec7 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Thu, 16 Apr 2020 16:21:42 -0400 Subject: [PATCH] Proto files, minor cleanup --- examples/src/main/proto/hello_world.proto | 2 +- examples/src/main/proto/route_guide.proto | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/src/main/proto/hello_world.proto b/examples/src/main/proto/hello_world.proto index cb948979..e8eed27c 100644 --- a/examples/src/main/proto/hello_world.proto +++ b/examples/src/main/proto/hello_world.proto @@ -21,7 +21,7 @@ option java_multiple_files = true; // The greeting service definition. service Greeter { // Sends a greeting - rpc SayHello (HelloRequest) returns (HelloReply) {} + rpc SayHello (HelloRequest) returns (HelloReply); } // The request message containing the user's name. diff --git a/examples/src/main/proto/route_guide.proto b/examples/src/main/proto/route_guide.proto index 65234f80..3d69733c 100644 --- a/examples/src/main/proto/route_guide.proto +++ b/examples/src/main/proto/route_guide.proto @@ -11,6 +11,7 @@ // 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 io.grpc.examples.routeguide; @@ -27,7 +28,7 @@ service RouteGuide { // // A feature with an empty name is returned if there's no feature at the given // position. - rpc GetFeature(Point) returns (Feature) {} + rpc GetFeature(Point) returns (Feature); // A server-to-client streaming RPC. // @@ -35,19 +36,19 @@ service RouteGuide { // streamed rather than returned at once (e.g. in a response message with a // repeated field), as the rectangle may cover a large area and contain a // huge number of features. - rpc ListFeatures(Rectangle) returns (stream Feature) {} + rpc ListFeatures(Rectangle) returns (stream Feature); // A client-to-server streaming RPC. // // Accepts a stream of Points on a route being traversed, returning a // RouteSummary when traversal is completed. - rpc RecordRoute(stream Point) returns (RouteSummary) {} + rpc RecordRoute(stream Point) returns (RouteSummary); // A Bidirectional streaming RPC. // // Accepts a stream of RouteNotes sent while a route is being traversed, // while receiving other RouteNotes (e.g. from other users). - rpc RouteChat(stream RouteNote) returns (stream RouteNote) {} + rpc RouteChat(stream RouteNote) returns (stream RouteNote); } // Points are represented as latitude-longitude pairs in the E7 representation