1<?php 2# Generated by the protocol buffer compiler. DO NOT EDIT! 3# source: src/proto/grpc/testing/messages.proto 4 5namespace Grpc\Testing; 6 7use Google\Protobuf\Internal\GPBType; 8use Google\Protobuf\Internal\RepeatedField; 9use Google\Protobuf\Internal\GPBUtil; 10 11/** 12 * A protobuf representation for grpc status. This is used by test 13 * clients to specify a status that the server should attempt to return. 14 * 15 * Generated from protobuf message <code>grpc.testing.EchoStatus</code> 16 */ 17class EchoStatus extends \Google\Protobuf\Internal\Message 18{ 19 /** 20 * Generated from protobuf field <code>int32 code = 1;</code> 21 */ 22 protected $code = 0; 23 /** 24 * Generated from protobuf field <code>string message = 2;</code> 25 */ 26 protected $message = ''; 27 28 /** 29 * Constructor. 30 * 31 * @param array $data { 32 * Optional. Data for populating the Message object. 33 * 34 * @type int $code 35 * @type string $message 36 * } 37 */ 38 public function __construct($data = NULL) { 39 \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); 40 parent::__construct($data); 41 } 42 43 /** 44 * Generated from protobuf field <code>int32 code = 1;</code> 45 * @return int 46 */ 47 public function getCode() 48 { 49 return $this->code; 50 } 51 52 /** 53 * Generated from protobuf field <code>int32 code = 1;</code> 54 * @param int $var 55 * @return $this 56 */ 57 public function setCode($var) 58 { 59 GPBUtil::checkInt32($var); 60 $this->code = $var; 61 62 return $this; 63 } 64 65 /** 66 * Generated from protobuf field <code>string message = 2;</code> 67 * @return string 68 */ 69 public function getMessage() 70 { 71 return $this->message; 72 } 73 74 /** 75 * Generated from protobuf field <code>string message = 2;</code> 76 * @param string $var 77 * @return $this 78 */ 79 public function setMessage($var) 80 { 81 GPBUtil::checkString($var, True); 82 $this->message = $var; 83 84 return $this; 85 } 86 87} 88 89