|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
// Copyright 2015 gRPC authors. |
|
|
|
|
// Copyright 2018 The gRPC Authors |
|
|
|
|
// |
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
// you may not use this file except in compliance with the License. |
|
|
|
@ -14,25 +14,16 @@ |
|
|
|
|
|
|
|
|
|
syntax = "proto3"; |
|
|
|
|
|
|
|
|
|
option java_multiple_files = true; |
|
|
|
|
option java_package = "io.grpc.examples.helloworld"; |
|
|
|
|
option java_outer_classname = "HelloWorldProto"; |
|
|
|
|
option objc_class_prefix = "HLW"; |
|
|
|
|
package testcodegen; |
|
|
|
|
|
|
|
|
|
package helloworld; |
|
|
|
|
|
|
|
|
|
// The greeting service definition. |
|
|
|
|
service Greeter { |
|
|
|
|
// Sends a greeting |
|
|
|
|
rpc SayHello (HelloRequest) returns (HelloReply) {} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// The request message containing the user's name. |
|
|
|
|
message HelloRequest { |
|
|
|
|
string name = 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// The response message containing the greetings |
|
|
|
|
message HelloReply { |
|
|
|
|
string message = 1; |
|
|
|
|
} |