Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 1 | // Copyright 2015 gRPC authors. |
Lisa Carey | f00df5b | 2015-02-20 11:50:29 +0000 | [diff] [blame] | 2 | // |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 3 | // 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 Carey | f00df5b | 2015-02-20 11:50:29 +0000 | [diff] [blame] | 6 | // |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
Lisa Carey | f00df5b | 2015-02-20 11:50:29 +0000 | [diff] [blame] | 8 | // |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 9 | // 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 Carey | f00df5b | 2015-02-20 11:50:29 +0000 | [diff] [blame] | 14 | |
| 15 | syntax = "proto3"; |
| 16 | |
| 17 | option java_package = "ex.grpc"; |
Jorge Canizales | e3534c3 | 2015-06-02 02:02:28 -0700 | [diff] [blame] | 18 | option objc_class_prefix = "HSW"; |
Lisa Carey | f00df5b | 2015-02-20 11:50:29 +0000 | [diff] [blame] | 19 | |
| 20 | package hellostreamingworld; |
| 21 | |
| 22 | // The greeting service definition. |
| 23 | service 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. |
| 30 | message HelloRequest { |
| 31 | string name = 1; |
| 32 | string num_greetings = 2; |
| 33 | } |
| 34 | |
| 35 | // A response message containing a greeting |
| 36 | message HelloReply { |
| 37 | string message = 1; |
| 38 | } |
| 39 | |