grpc.testing.ErrorStatus
*/
class ErrorStatus extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field int32 code = 1;
*/
protected $code = 0;
/**
* Generated from protobuf field string error_message = 2;
*/
protected $error_message = '';
/**
* Generated from protobuf field string binary_error_details = 3;
*/
protected $binary_error_details = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $code
* @type string $error_message
* @type string $binary_error_details
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Src\Proto\Grpc\Testing\EchoMessages::initOnce();
parent::__construct($data);
}
/**
* 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;
}
}