google.devtools.source.v1.GitSourceContext
*/
class GitSourceContext extends \Google\Protobuf\Internal\Message
{
/**
* Git repository URL.
*
* Generated from protobuf field string url = 1;
*/
private $url = '';
/**
* Git commit hash.
* required.
*
* Generated from protobuf field string revision_id = 2;
*/
private $revision_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $url
* Git repository URL.
* @type string $revision_id
* Git commit hash.
* required.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Devtools\Source\V1\SourceContext::initOnce();
parent::__construct($data);
}
/**
* Git repository URL.
*
* Generated from protobuf field string url = 1;
* @return string
*/
public function getUrl()
{
return $this->url;
}
/**
* Git repository URL.
*
* Generated from protobuf field string url = 1;
* @param string $var
* @return $this
*/
public function setUrl($var)
{
GPBUtil::checkString($var, True);
$this->url = $var;
return $this;
}
/**
* Git commit hash.
* required.
*
* Generated from protobuf field string revision_id = 2;
* @return string
*/
public function getRevisionId()
{
return $this->revision_id;
}
/**
* Git commit hash.
* required.
*
* Generated from protobuf field string revision_id = 2;
* @param string $var
* @return $this
*/
public function setRevisionId($var)
{
GPBUtil::checkString($var, True);
$this->revision_id = $var;
return $this;
}
}