opentelemetry.proto.trace.v1.Status
*/
class Status extends \Google\Protobuf\Internal\Message
{
/**
* A developer-facing human readable error message.
*
* Generated from protobuf field string message = 2;
*/
protected $message = '';
/**
* The status code.
*
* Generated from protobuf field .opentelemetry.proto.trace.v1.Status.StatusCode code = 3;
*/
protected $code = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $message
* A developer-facing human readable error message.
* @type int $code
* The status code.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Opentelemetry\Proto\Trace\V1\Trace::initOnce();
parent::__construct($data);
}
/**
* A developer-facing human readable error message.
*
* Generated from protobuf field string message = 2;
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* A developer-facing human readable error message.
*
* Generated from protobuf field string message = 2;
* @param string $var
* @return $this
*/
public function setMessage($var)
{
GPBUtil::checkString($var, True);
$this->message = $var;
return $this;
}
/**
* The status code.
*
* Generated from protobuf field .opentelemetry.proto.trace.v1.Status.StatusCode code = 3;
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* The status code.
*
* Generated from protobuf field .opentelemetry.proto.trace.v1.Status.StatusCode code = 3;
* @param int $var
* @return $this
*/
public function setCode($var)
{
GPBUtil::checkEnum($var, \Opentelemetry\Proto\Trace\V1\Status\StatusCode::class);
$this->code = $var;
return $this;
}
}