aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Tim Emiola <temiola@google.com>2015-02-18 14:07:48 -0800
committerGravatar Tim Emiola <temiola@google.com>2015-02-18 14:14:37 -0800
commit66e79fa3618f8987fa9398eb2321fe89f42326e6 (patch)
treea14e67292db8e52c946972f1d02a9ffcd8c6d94c
parente9be47eadb6d922b8ccc201972f0c43c11103f2c (diff)
Cleans up helloworld.proto
-rw-r--r--protos/helloworld.proto17
1 files changed, 8 insertions, 9 deletions
diff --git a/protos/helloworld.proto b/protos/helloworld.proto
index aa44b851f4..86402ad71f 100644
--- a/protos/helloworld.proto
+++ b/protos/helloworld.proto
@@ -33,19 +33,18 @@ option java_package = "ex.grpc";
package helloworld;
+// The greeting service definition.
+service Greetings {
+ // Sends a greeting
+ rpc hello (HelloRequest) returns (HelloReply) {}
+}
+
// The request message containing the user's name.
message HelloRequest {
- optional string name = 1;
+ string name = 1;
}
// The response message containing the greetings
message HelloReply {
- optional string message = 1;
-}
-
-// The greeting service definition.
-service Greetings {
- // Sends a greeting
- rpc hello (HelloRequest) returns (HelloReply) {
- }
+ string message = 1;
}