Stanley Cheung | c290c11 | 2017-01-31 20:29:17 -0800 | [diff] [blame] | 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: helloworld.proto |
| 4 | |
| 5 | namespace Helloworld; |
| 6 | |
| 7 | use Google\Protobuf\Internal\DescriptorPool; |
| 8 | use Google\Protobuf\Internal\GPBType; |
| 9 | use Google\Protobuf\Internal\RepeatedField; |
| 10 | use Google\Protobuf\Internal\GPBUtil; |
| 11 | |
| 12 | class HelloRequest extends \Google\Protobuf\Internal\Message |
| 13 | { |
| 14 | private $name = ''; |
| 15 | |
| 16 | public function getName() |
| 17 | { |
| 18 | return $this->name; |
| 19 | } |
| 20 | |
| 21 | public function setName($var) |
| 22 | { |
| 23 | GPBUtil::checkString($var, True); |
| 24 | $this->name = $var; |
| 25 | } |
| 26 | |
| 27 | } |
| 28 | |
| 29 | class HelloReply extends \Google\Protobuf\Internal\Message |
| 30 | { |
| 31 | private $message = ''; |
| 32 | |
| 33 | public function getMessage() |
| 34 | { |
| 35 | return $this->message; |
| 36 | } |
| 37 | |
| 38 | public function setMessage($var) |
| 39 | { |
| 40 | GPBUtil::checkString($var, True); |
| 41 | $this->message = $var; |
| 42 | } |
| 43 | |
| 44 | } |
| 45 | |
| 46 | $pool = DescriptorPool::getGeneratedPool(); |
| 47 | |
| 48 | $pool->internalAddGeneratedFile(hex2bin( |
| 49 | "0ae6010a1068656c6c6f776f726c642e70726f746f120a68656c6c6f776f" . |
| 50 | "726c64221c0a0c48656c6c6f52657175657374120c0a046e616d65180120" . |
| 51 | "012809221d0a0a48656c6c6f5265706c79120f0a076d6573736167651801" . |
| 52 | "2001280932490a0747726565746572123e0a0853617948656c6c6f12182e" . |
| 53 | "68656c6c6f776f726c642e48656c6c6f526571756573741a162e68656c6c" . |
| 54 | "6f776f726c642e48656c6c6f5265706c79220042360a1b696f2e67727063" . |
| 55 | "2e6578616d706c65732e68656c6c6f776f726c64420f48656c6c6f576f72" . |
| 56 | "6c6450726f746f5001a20203484c57620670726f746f33" |
| 57 | )); |
| 58 | |