# Common Protos for Google Cloud APIs V1 Client - Class AliasContext (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 AliasContext.

An alias to a repo revision.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ kind` | `int` The alias kind. |
| `↳ name` | `string` The alias name. |

### getKind

The alias kind.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Kind](https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/DevTools.Source.V1.AliasContext.Kind). |

### setKind

The alias kind.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Kind](https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/DevTools.Source.V1.AliasContext.Kind). |

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

### getName

The alias name.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

The alias name.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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