google.api.servicemanagement.v1.Diagnostic
*/
class Diagnostic extends \Google\Protobuf\Internal\Message
{
/**
* File name and line number of the error or warning.
*
* Generated from protobuf field string location = 1;
*/
private $location = '';
/**
* The kind of diagnostic information provided.
*
* Generated from protobuf field .google.api.servicemanagement.v1.Diagnostic.Kind kind = 2;
*/
private $kind = 0;
/**
* Message describing the error or warning.
*
* Generated from protobuf field string message = 3;
*/
private $message = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $location
* File name and line number of the error or warning.
* @type int $kind
* The kind of diagnostic information provided.
* @type string $message
* Message describing the error or warning.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Api\Servicemanagement\V1\Resources::initOnce();
parent::__construct($data);
}
/**
* File name and line number of the error or warning.
*
* Generated from protobuf field string location = 1;
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* File name and line number of the error or warning.
*
* Generated from protobuf field string location = 1;
* @param string $var
* @return $this
*/
public function setLocation($var)
{
GPBUtil::checkString($var, True);
$this->location = $var;
return $this;
}
/**
* The kind of diagnostic information provided.
*
* Generated from protobuf field .google.api.servicemanagement.v1.Diagnostic.Kind kind = 2;
* @return int
*/
public function getKind()
{
return $this->kind;
}
/**
* The kind of diagnostic information provided.
*
* Generated from protobuf field .google.api.servicemanagement.v1.Diagnostic.Kind kind = 2;
* @param int $var
* @return $this
*/
public function setKind($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\ServiceManagement\V1\Diagnostic_Kind::class);
$this->kind = $var;
return $this;
}
/**
* Message describing the error or warning.
*
* Generated from protobuf field string message = 3;
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Message describing the error or warning.
*
* Generated from protobuf field string message = 3;
* @param string $var
* @return $this
*/
public function setMessage($var)
{
GPBUtil::checkString($var, True);
$this->message = $var;
return $this;
}
}