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

1.0.0 (latest) 0.8.3 0.7.0 0.6.0 0.5.2 0.4.2 0.3.8 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** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ repo_id` | `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/DevTools.Source.V1.RepoId|null` |   |

### hasRepoId

### clearRepoId

### setRepoId

The ID of the repo containing the workspace.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/DevTools.Source.V1.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` |   |