# Grafeas V1 API - Class Grafeas::V1::CloudRepoSourceContext (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.1 1.4.0 1.3.1 1.2.0 1.1.1 1.0.0 0.16.1 0.15.0 0.14.2 0.13.0 0.12.1 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.1 Reference documentation and code samples for the Grafeas V1 API class Grafeas::V1::CloudRepoSourceContext.

A CloudRepoSourceContext denotes a particular revision in a Google Cloud
Source Repo.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #alias_context

    def alias_context() -> ::Grafeas::V1::AliasContext

**Returns**

- ([::Grafeas::V1::AliasContext](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-AliasContext)) --- An alias, which may be a branch or tag.


  Note: The following fields are mutually exclusive: `alias_context`, `revision_id`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #alias_context=

    def alias_context=(value) -> ::Grafeas::V1::AliasContext

**Parameter**

- **value** ([::Grafeas::V1::AliasContext](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-AliasContext)) --- An alias, which may be a branch or tag.


  Note: The following fields are mutually exclusive: `alias_context`, `revision_id`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Grafeas::V1::AliasContext](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-AliasContext)) --- An alias, which may be a branch or tag.


  Note: The following fields are mutually exclusive: `alias_context`, `revision_id`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #repo_id

    def repo_id() -> ::Grafeas::V1::RepoId

**Returns**

- ([::Grafeas::V1::RepoId](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-RepoId)) --- The ID of the repo.

### #repo_id=

    def repo_id=(value) -> ::Grafeas::V1::RepoId

**Parameter**

- **value** ([::Grafeas::V1::RepoId](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-RepoId)) --- The ID of the repo.
**Returns**

- ([::Grafeas::V1::RepoId](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-RepoId)) --- The ID of the repo.

### #revision_id

    def revision_id() -> ::String

**Returns**

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

  Note: The following fields are mutually exclusive: `revision_id`, `alias_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #revision_id=

    def revision_id=(value) -> ::String

**Parameter**

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


  Note: The following fields are mutually exclusive: `revision_id`, `alias_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

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

  Note: The following fields are mutually exclusive: `revision_id`, `alias_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.