2.2.3 (latest) 2.1.3 2.0.5 1.2.5 1.1.3 1.0.5 Reference documentation and code samples for the Google Cloud Apigee Connect V1 Client class Connection.

Generated from protobuf message `google.cloud.apigeeconnect.v1.Connection`

## Namespace

Google \\ Cloud \\ ApigeeConnect \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ endpoint` | `string` The endpoint that the connection is made against. Format: `projects/{project_number}/endpoints/{endpoint}` |
| `↳ cluster` | `https://docs.cloud.google.com/php/docs/reference/cloud-apigee-connect/latest/V1.Cluster` Cluster information. |
| `↳ stream_count` | `int` The count of streams. |

### getEndpoint

The endpoint that the connection is made against.

Format: `projects/{project_number}/endpoints/{endpoint}`

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

### setEndpoint

The endpoint that the connection is made against.

Format: `projects/{project_number}/endpoints/{endpoint}`

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

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

### getCluster

Cluster information.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apigee-connect/latest/V1.Cluster|null` |   |

### hasCluster

### clearCluster

### setCluster

Cluster information.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-apigee-connect/latest/V1.Cluster` |

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

### getStreamCount

The count of streams.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setStreamCount

The count of streams.

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

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