# Google Cloud Eventarc V1 Client - Class CreateChannelConnectionRequest (2.3.1)

2.3.1 (latest) 2.3.0 2.2.1 2.1.5 2.0.1 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Eventarc V1 Client class CreateChannelConnectionRequest.

The request message for the CreateChannelConnection method.

Generated from protobuf message `google.cloud.eventarc.v1.CreateChannelConnectionRequest`

## Namespace

Google \\ Cloud \\ Eventarc \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent collection in which to add this channel connection. |
| `↳ channel_connection` | `https://docs.cloud.google.com/php/docs/reference/cloud-eventarc/latest/V1.ChannelConnection` Required. Channel connection to create. |
| `↳ channel_connection_id` | `string` Required. The user-provided ID to be assigned to the channel connection. |

### getParent

Required. The parent collection in which to add this channel connection.

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

### setParent

Required. The parent collection in which to add this channel connection.

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

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

### getChannelConnection

Required. Channel connection to create.

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

### hasChannelConnection

### clearChannelConnection

### setChannelConnection

Required. Channel connection to create.

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

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

### getChannelConnectionId

Required. The user-provided ID to be assigned to the channel connection.

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

### setChannelConnectionId

Required. The user-provided ID to be assigned to the channel connection.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent collection in which to add this channel connection. Please see EventarcClient::locationName() for help formatting this field. |
| `channelConnection` | `https://docs.cloud.google.com/php/docs/reference/cloud-eventarc/latest/V1.ChannelConnection` Required. Channel connection to create. |
| `channelConnectionId` | `string` Required. The user-provided ID to be assigned to the channel connection. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-eventarc/latest/V1.CreateChannelConnectionRequest` |   |