google.devtools.source.v1.RepoId */ class RepoId extends \Google\Protobuf\Internal\Message { protected $id; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Cloud\DevTools\Source\V1\ProjectRepoId $project_repo_id * A combination of a project ID and a repo name. * @type string $uid * A server-assigned, globally unique identifier. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Devtools\Source\V1\SourceContext::initOnce(); parent::__construct($data); } /** * A combination of a project ID and a repo name. * * Generated from protobuf field .google.devtools.source.v1.ProjectRepoId project_repo_id = 1; * @return \Google\Cloud\DevTools\Source\V1\ProjectRepoId */ public function getProjectRepoId() { return $this->readOneof(1); } /** * A combination of a project ID and a repo name. * * Generated from protobuf field .google.devtools.source.v1.ProjectRepoId project_repo_id = 1; * @param \Google\Cloud\DevTools\Source\V1\ProjectRepoId $var * @return $this */ public function setProjectRepoId($var) { GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\ProjectRepoId::class); $this->writeOneof(1, $var); return $this; } /** * A server-assigned, globally unique identifier. * * Generated from protobuf field string uid = 2; * @return string */ public function getUid() { return $this->readOneof(2); } /** * A server-assigned, globally unique identifier. * * Generated from protobuf field string uid = 2; * @param string $var * @return $this */ public function setUid($var) { GPBUtil::checkString($var, True); $this->writeOneof(2, $var); return $this; } /** * @return string */ public function getId() { return $this->whichOneof("id"); } }