CommonProtos/src/DevTools/Source/V1/GerritSourceContext.php
public function setAliasContext($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\AliasContext::class);
        $this->writeOneof(5, $var);

        return $this;
    }
public function setAliasContext($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\AliasContext::class);
        $this->writeOneof(5, $var);

        return $this;
    }
public function setAliasContext ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ DevTools \ Source \ V1 \ AliasContext :: class ) ; $ this -> writeOneof ( 5 , $ var ) ; return $ this ; }
An alias, which may be a branch or tag.

Generated from protobuf field <code>.google.devtools.source.v1.AliasContext alias_context = 5;</code>
@param \Google\Cloud\DevTools\Source\V1\AliasContext $var
@return $this
An alias which may be a branch or tag .