# Cloud Debugger V2 API - Class Google::Devtools::Source::V1::CloudWorkspaceId (v0.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.6.0 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Devtools-Source-V1-CloudWorkspaceId)
- [0.5.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/0.5.0/Google-Devtools-Source-V1-CloudWorkspaceId)
- [0.4.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/0.4.0/Google-Devtools-Source-V1-CloudWorkspaceId)
- [0.3.5](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/0.3.5/Google-Devtools-Source-V1-CloudWorkspaceId)
Reference documentation and code samples for the Cloud Debugger V2 API class Google::Devtools::Source::V1::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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::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.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #repo_id

    def repo_id() -> ::Google::Devtools::Source::V1::RepoId

**Returns**

- ([::Google::Devtools::Source::V1::RepoId](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Devtools-Source-V1-RepoId)) --- The ID of the repo containing the workspace.

### #repo_id=

    def repo_id=(value) -> ::Google::Devtools::Source::V1::RepoId

**Parameter**

- **value** ([::Google::Devtools::Source::V1::RepoId](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Devtools-Source-V1-RepoId)) --- The ID of the repo containing the workspace.
**Returns**

- ([::Google::Devtools::Source::V1::RepoId](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Devtools-Source-V1-RepoId)) --- The ID of the repo containing the workspace.