From d3c0f79fa5215a8c2081238f6194b01e704192bb Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Wed, 3 Feb 2016 10:14:16 -0800 Subject: [PATCH] Sync example protos from main repository grpc/grpc-java#1381 --- examples/helloworld/helloworld/helloworld.proto | 4 +++- examples/route_guide/routeguide/route_guide.proto | 9 +++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/examples/helloworld/helloworld/helloworld.proto b/examples/helloworld/helloworld/helloworld.proto index 7d58870a..0bee1fcf 100644 --- a/examples/helloworld/helloworld/helloworld.proto +++ b/examples/helloworld/helloworld/helloworld.proto @@ -29,7 +29,9 @@ syntax = "proto3"; -option java_package = "io.grpc.examples"; +option java_multiple_files = true; +option java_package = "io.grpc.examples.helloworld"; +option java_outer_classname = "HelloWorldProto"; option objc_class_prefix = "HLW"; package helloworld; diff --git a/examples/route_guide/routeguide/route_guide.proto b/examples/route_guide/routeguide/route_guide.proto index bee7ac51..12c4495f 100644 --- a/examples/route_guide/routeguide/route_guide.proto +++ b/examples/route_guide/routeguide/route_guide.proto @@ -29,6 +29,11 @@ syntax = "proto3"; +option java_multiple_files = true; +option java_package = "io.grpc.examples.routeguide"; +option java_outer_classname = "RouteGuideProto"; +option objc_class_prefix = "RTG"; + package routeguide; // Interface exported by the server. @@ -37,8 +42,8 @@ service RouteGuide { // // Obtains the feature at a given position. // - // If no feature is found for the given point, a feature with an empty name - // should be returned. + // A feature with an empty name is returned if there's no feature at the given + // position. rpc GetFeature(Point) returns (Feature) {} // A server-to-client streaming RPC.