google.devtools.source.v1.ProjectRepoId */ class ProjectRepoId extends \Google\Protobuf\Internal\Message { /** * The ID of the project. * * Generated from protobuf field string project_id = 1; */ private $project_id = ''; /** * The name of the repo. Leave empty for the default repo. * * Generated from protobuf field string repo_name = 2; */ private $repo_name = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $project_id * The ID of the project. * @type string $repo_name * The name of the repo. Leave empty for the default repo. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Devtools\Source\V1\SourceContext::initOnce(); parent::__construct($data); } /** * The ID of the project. * * Generated from protobuf field string project_id = 1; * @return string */ public function getProjectId() { return $this->project_id; } /** * The ID of the project. * * Generated from protobuf field string project_id = 1; * @param string $var * @return $this */ public function setProjectId($var) { GPBUtil::checkString($var, True); $this->project_id = $var; return $this; } /** * The name of the repo. Leave empty for the default repo. * * Generated from protobuf field string repo_name = 2; * @return string */ public function getRepoName() { return $this->repo_name; } /** * The name of the repo. Leave empty for the default repo. * * Generated from protobuf field string repo_name = 2; * @param string $var * @return $this */ public function setRepoName($var) { GPBUtil::checkString($var, True); $this->repo_name = $var; return $this; } }