Common Protos for Google Cloud APIs V1 Client - Class CloudWorkspaceId (0.4.2)

Reference documentation and code samples for the Common Protos for Google Cloud APIs V1 Client class CloudWorkspaceId.

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

Namespace

Google \ Cloud \ DevTools \ Source \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ repo_id Google\Cloud\DevTools\Source\V1\RepoId

The ID of the repo containing the workspace.

↳ name string

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

getRepoId

The ID of the repo containing the workspace.

Returns
TypeDescription
Google\Cloud\DevTools\Source\V1\RepoId|null

hasRepoId

clearRepoId

setRepoId

The ID of the repo containing the workspace.

Parameter
NameDescription
var Google\Cloud\DevTools\Source\V1\RepoId
Returns
TypeDescription
$this

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.

Returns
TypeDescription
string

setName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this