blob: be878ce25fffc1a751c1b4b934002677444859f1 [file] [log] [blame]
Jan Tattermusch7897ae92017-06-07 22:57:36 +02001// Copyright 2015 gRPC authors.
Tim Emiola8f505f72015-02-05 17:34:47 -08002//
Jan Tattermusch7897ae92017-06-07 22:57:36 +02003// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
Tim Emiola8f505f72015-02-05 17:34:47 -08006//
Jan Tattermusch7897ae92017-06-07 22:57:36 +02007// http://www.apache.org/licenses/LICENSE-2.0
Tim Emiola8f505f72015-02-05 17:34:47 -08008//
Jan Tattermusch7897ae92017-06-07 22:57:36 +02009// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
Tim Emiola8f505f72015-02-05 17:34:47 -080014
15syntax = "proto3";
16
Eric Anderson8d3ae462016-02-03 10:07:44 -080017option java_multiple_files = true;
18option java_package = "io.grpc.examples.helloworld";
19option java_outer_classname = "HelloWorldProto";
Jorge Canizalese3534c32015-06-02 02:02:28 -070020option objc_class_prefix = "HLW";
Tim Emiola8f505f72015-02-05 17:34:47 -080021
22package helloworld;
23
Tim Emiola66e79fa2015-02-18 14:07:48 -080024// The greeting service definition.
Tim Emiolac5a093c2015-02-18 14:28:50 -080025service Greeter {
Tim Emiola66e79fa2015-02-18 14:07:48 -080026 // Sends a greeting
Yang Gao600d70c2015-02-20 10:50:46 -080027 rpc SayHello (HelloRequest) returns (HelloReply) {}
Tim Emiola66e79fa2015-02-18 14:07:48 -080028}
29
Tim Emiola8f505f72015-02-05 17:34:47 -080030// The request message containing the user's name.
31message HelloRequest {
Tim Emiola66e79fa2015-02-18 14:07:48 -080032 string name = 1;
Tim Emiola8f505f72015-02-05 17:34:47 -080033}
34
35// The response message containing the greetings
36message HelloReply {
Tim Emiola66e79fa2015-02-18 14:07:48 -080037 string message = 1;
Tim Emiola8f505f72015-02-05 17:34:47 -080038}