google.devtools.source.v1.AliasContext
*/
class AliasContext extends \Google\Protobuf\Internal\Message
{
/**
* The alias kind.
*
* Generated from protobuf field .google.devtools.source.v1.AliasContext.Kind kind = 1;
*/
private $kind = 0;
/**
* The alias name.
*
* Generated from protobuf field string name = 2;
*/
private $name = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $kind
* The alias kind.
* @type string $name
* The alias name.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Devtools\Source\V1\SourceContext::initOnce();
parent::__construct($data);
}
/**
* The alias kind.
*
* Generated from protobuf field .google.devtools.source.v1.AliasContext.Kind kind = 1;
* @return int
*/
public function getKind()
{
return $this->kind;
}
/**
* The alias kind.
*
* Generated from protobuf field .google.devtools.source.v1.AliasContext.Kind kind = 1;
* @param int $var
* @return $this
*/
public function setKind($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\DevTools\Source\V1\AliasContext_Kind::class);
$this->kind = $var;
return $this;
}
/**
* The alias name.
*
* Generated from protobuf field string name = 2;
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The alias name.
*
* Generated from protobuf field string name = 2;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
}