# Common Protos for Google Cloud APIs V1 Client - Class ExtendedSourceContext (1.0.0)

1.0.0 (latest) 0.8.3 0.7.0 0.6.0 0.5.2 0.4.2 0.3.8 Reference documentation and code samples for the Common Protos for Google Cloud APIs V1 Client class ExtendedSourceContext.

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

Generated from protobuf message `google.devtools.source.v1.ExtendedSourceContext`

## Namespace

Google \\ Cloud \\ DevTools \\ Source \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ context` | `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/DevTools.Source.V1.SourceContext` Any source context. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Labels with user defined metadata. |

### getContext

Any source context.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/DevTools.Source.V1.SourceContext|null` |   |

### hasContext

### clearContext

### setContext

Any source context.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/DevTools.Source.V1.SourceContext` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLabels

Labels with user defined metadata.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Labels with user defined metadata.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |