blob: 8a322bd619b56fc71bf9ec7cd6a9f0d3f32d5645 [file] [log] [blame]
Jan Tattermusch7897ae92017-06-07 22:57:36 +02001// Copyright 2015 gRPC authors.
Lisa Careyf00df5b2015-02-20 11:50:29 +00002//
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
Lisa Careyf00df5b2015-02-20 11:50:29 +00006//
Jan Tattermusch7897ae92017-06-07 22:57:36 +02007// http://www.apache.org/licenses/LICENSE-2.0
Lisa Careyf00df5b2015-02-20 11:50:29 +00008//
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.
Lisa Careyf00df5b2015-02-20 11:50:29 +000014
15syntax = "proto3";
16
17option java_package = "ex.grpc";
Jorge Canizalese3534c32015-06-02 02:02:28 -070018option objc_class_prefix = "HSW";
Lisa Careyf00df5b2015-02-20 11:50:29 +000019
20package hellostreamingworld;
21
22// The greeting service definition.
23service MultiGreeter {
24 // Sends multiple greetings
25 rpc sayHello (HelloRequest) returns (stream HelloReply) {}
26}
27
28// The request message containing the user's name and how many greetings
29// they want.
30message HelloRequest {
31 string name = 1;
32 string num_greetings = 2;
33}
34
35// A response message containing a greeting
36message HelloReply {
37 string message = 1;
38}
39