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

A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #snapshot_id

    def snapshot_id() -> ::String

**Returns**

- (::String) --- The ID of the snapshot. An empty snapshot_id refers to the most recent snapshot.

### #snapshot_id=

    def snapshot_id=(value) -> ::String

**Parameter**

- **value** (::String) --- The ID of the snapshot. An empty snapshot_id refers to the most recent snapshot.
**Returns**

- (::String) --- The ID of the snapshot. An empty snapshot_id refers to the most recent snapshot.

### #workspace_id

    def workspace_id() -> ::Google::Devtools::Source::V1::CloudWorkspaceId

**Returns**

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

### #workspace_id=

    def workspace_id=(value) -> ::Google::Devtools::Source::V1::CloudWorkspaceId

**Parameter**

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

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