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

An ExtendedSourceContext is a SourceContext combined with additional
details describing the context.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #context

    def context() -> ::Google::Devtools::Source::V1::SourceContext

**Returns**

- ([::Google::Devtools::Source::V1::SourceContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Devtools-Source-V1-SourceContext)) --- Any source context.

### #context=

    def context=(value) -> ::Google::Devtools::Source::V1::SourceContext

**Parameter**

- **value** ([::Google::Devtools::Source::V1::SourceContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Devtools-Source-V1-SourceContext)) --- Any source context.
**Returns**

- ([::Google::Devtools::Source::V1::SourceContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Devtools-Source-V1-SourceContext)) --- Any source context.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Labels with user defined metadata.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Labels with user defined metadata.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Labels with user defined metadata.