* A protobuf representation for grpc status. This is used by test * clients to specify a status that the server should attempt to return. * * * Protobuf type grpc.testing.EchoStatus */ class EchoStatus extends \Google\Protobuf\Internal\Message { /** * int32 code = 1; */ private $code = 0; /** * string message = 2; */ private $message = ''; public function __construct() { \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); parent::__construct(); } /** * int32 code = 1; */ public function getCode() { return $this->code; } /** * int32 code = 1; */ public function setCode($var) { GPBUtil::checkInt32($var); $this->code = $var; } /** * string message = 2; */ public function getMessage() { return $this->message; } /** * string message = 2; */ public function setMessage($var) { GPBUtil::checkString($var, True); $this->message = $var; } }