google.devtools.source.v1.CloudWorkspaceId */ class CloudWorkspaceId extends \Google\Protobuf\Internal\Message { /** * The ID of the repo containing the workspace. * * Generated from protobuf field .google.devtools.source.v1.RepoId repo_id = 1; */ private $repo_id = null; /** * The unique name of the workspace within the repo. This is the name * chosen by the client in the Source API's CreateWorkspace method. * * Generated from protobuf field string name = 2; */ private $name = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Cloud\DevTools\Source\V1\RepoId $repo_id * The ID of the repo containing the workspace. * @type string $name * The unique name of the workspace within the repo. This is the name * chosen by the client in the Source API's CreateWorkspace method. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Devtools\Source\V1\SourceContext::initOnce(); parent::__construct($data); } /** * The ID of the repo containing the workspace. * * Generated from protobuf field .google.devtools.source.v1.RepoId repo_id = 1; * @return \Google\Cloud\DevTools\Source\V1\RepoId */ public function getRepoId() { return $this->repo_id; } /** * The ID of the repo containing the workspace. * * Generated from protobuf field .google.devtools.source.v1.RepoId repo_id = 1; * @param \Google\Cloud\DevTools\Source\V1\RepoId $var * @return $this */ public function setRepoId($var) { GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\RepoId::class); $this->repo_id = $var; return $this; } /** * The unique name of the workspace within the repo. This is the name * chosen by the client in the Source API's CreateWorkspace method. * * Generated from protobuf field string name = 2; * @return string */ public function getName() { return $this->name; } /** * The unique name of the workspace within the repo. This is the name * chosen by the client in the Source API's CreateWorkspace method. * * Generated from protobuf field string name = 2; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } }