grpc.testing.ErrorStatus
*/
class ErrorStatus extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field int32 code = 1;
*/
private $code = 0;
/**
* Generated from protobuf field string error_message = 2;
*/
private $error_message = '';
/**
* Generated from protobuf field string binary_error_details = 3;
*/
private $binary_error_details = '';
public function __construct() {
\GPBMetadata\Src\Proto\Grpc\Testing\EchoMessages::initOnce();
parent::__construct();
}
/**
* Generated from protobuf field int32 code = 1;
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* Generated from protobuf field int32 code = 1;
* @param int $var
* @return $this
*/
public function setCode($var)
{
GPBUtil::checkInt32($var);
$this->code = $var;
return $this;
}
/**
* Generated from protobuf field string error_message = 2;
* @return string
*/
public function getErrorMessage()
{
return $this->error_message;
}
/**
* Generated from protobuf field string error_message = 2;
* @param string $var
* @return $this
*/
public function setErrorMessage($var)
{
GPBUtil::checkString($var, True);
$this->error_message = $var;
return $this;
}
/**
* Generated from protobuf field string binary_error_details = 3;
* @return string
*/
public function getBinaryErrorDetails()
{
return $this->binary_error_details;
}
/**
* Generated from protobuf field string binary_error_details = 3;
* @param string $var
* @return $this
*/
public function setBinaryErrorDetails($var)
{
GPBUtil::checkString($var, True);
$this->binary_error_details = $var;
return $this;
}
}