class CloudWorkspaceId extends Message

A CloudWorkspaceId is a unique identifier for a cloud workspace.

A cloud workspace is a place associated with a repo where modified files can be stored before they are committed.

Generated from protobuf message google.devtools.source.v1.CloudWorkspaceId

Methods

__construct(array $data = NULL)

Constructor.

getRepoId()

The ID of the repo containing the workspace.

$this
setRepoId(RepoId $var)

The ID of the repo containing the workspace.

string
getName()

The unique name of the workspace within the repo. This is the name chosen by the client in the Source API's CreateWorkspace method.

$this
setName(string $var)

The unique name of the workspace within the repo. This is the name chosen by the client in the Source API's CreateWorkspace method.

Details

at line 47
__construct(array $data = NULL)

Constructor.

Parameters

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.

}

at line 58
RepoId getRepoId()

The ID of the repo containing the workspace.

Generated from protobuf field .google.devtools.source.v1.RepoId repo_id = 1;

Return Value

RepoId

at line 70
$this setRepoId(RepoId $var)

The ID of the repo containing the workspace.

Generated from protobuf field .google.devtools.source.v1.RepoId repo_id = 1;

Parameters

RepoId $var

Return Value

$this

at line 85
string getName()

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 Value

string

at line 98
$this setName(string $var)

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;

Parameters

string $var

Return Value

$this