common_pack.MsgError
*/
class MsgError extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field int32 error_code = 1;
*/
protected $error_code = 0;
/**
* Generated from protobuf field string error_msg = 2;
*/
protected $error_msg = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $error_code
* @type string $error_msg
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Common::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field int32 error_code = 1;
* @return int
*/
public function getErrorCode()
{
return $this->error_code;
}
/**
* Generated from protobuf field int32 error_code = 1;
* @param int $var
* @return $this
*/
public function setErrorCode($var)
{
GPBUtil::checkInt32($var);
$this->error_code = $var;
return $this;
}
/**
* Generated from protobuf field string error_msg = 2;
* @return string
*/
public function getErrorMsg()
{
return $this->error_msg;
}
/**
* Generated from protobuf field string error_msg = 2;
* @param string $var
* @return $this
*/
public function setErrorMsg($var)
{
GPBUtil::checkString($var, True);
$this->error_msg = $var;
return $this;
}
}