Sync example protos from main repository

grpc/grpc-java#1381
This commit is contained in:
Eric Anderson
2016-02-03 10:14:16 -08:00
parent 5d64098b94
commit d3c0f79fa5
2 changed files with 10 additions and 3 deletions

View File

@ -29,7 +29,9 @@
syntax = "proto3"; 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"; option objc_class_prefix = "HLW";
package helloworld; package helloworld;

View File

@ -29,6 +29,11 @@
syntax = "proto3"; 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; package routeguide;
// Interface exported by the server. // Interface exported by the server.
@ -37,8 +42,8 @@ service RouteGuide {
// //
// Obtains the feature at a given position. // Obtains the feature at a given position.
// //
// If no feature is found for the given point, a feature with an empty name // A feature with an empty name is returned if there's no feature at the given
// should be returned. // position.
rpc GetFeature(Point) returns (Feature) {} rpc GetFeature(Point) returns (Feature) {}
// A server-to-client streaming RPC. // A server-to-client streaming RPC.