public function setGerrit($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\GerritSourceContext::class);
        $this->writeOneof(3, $var);

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

        return $this;
    }
public function setGerrit ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ DevTools \ Source \ V1 \ GerritSourceContext :: class ) ; $ this -> writeOneof ( 3 , $ var ) ; return $ this ; }
A SourceContext referring to a Gerrit project.

Generated from protobuf field <code>.google.devtools.source.v1.GerritSourceContext gerrit = 3;</code>
@param \Google\Cloud\DevTools\Source\V1\GerritSourceContext $var
@return $this
A SourceContext referring to a Gerrit project .