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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ repo_id |
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 | |
|---|---|
| Type | Description |
RepoId|null |
|
hasRepoId
clearRepoId
setRepoId
The ID of the repo containing the workspace.
| Parameter | |
|---|---|
| Name | Description |
var |
RepoId
|
| Returns | |
|---|---|
| Type | Description |
$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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|