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

A CloudRepoSourceContext denotes a particular revision in a cloud
repo (a repo hosted by the Google Cloud Platform).

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #alias_context

    def alias_context() -> ::Google::Devtools::Source::V1::AliasContext

**Returns**

- ([::Google::Devtools::Source::V1::AliasContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Devtools-Source-V1-AliasContext)) --- An alias, which may be a branch or tag.

### #alias_context=

    def alias_context=(value) -> ::Google::Devtools::Source::V1::AliasContext

**Parameter**

- **value** ([::Google::Devtools::Source::V1::AliasContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Devtools-Source-V1-AliasContext)) --- An alias, which may be a branch or tag.
**Returns**

- ([::Google::Devtools::Source::V1::AliasContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Devtools-Source-V1-AliasContext)) --- An alias, which may be a branch or tag.

### #alias_name

    def alias_name() -> ::String

**Returns**

- (::String) --- The name of an alias (branch, tag, etc.).

### #alias_name=

    def alias_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The name of an alias (branch, tag, etc.).
**Returns**

- (::String) --- The name of an alias (branch, tag, etc.).

### #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.

### #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.
**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.

### #revision_id

    def revision_id() -> ::String

**Returns**

- (::String) --- A revision ID.

### #revision_id=

    def revision_id=(value) -> ::String

**Parameter**

- **value** (::String) --- A revision ID.
**Returns**

- (::String) --- A revision ID.