# Google Cloud Iap V1 Client - Class CreateTunnelDestGroupRequest (2.3.0)

2.3.0 (latest) 2.2.2 2.1.2 2.0.3 1.4.5 1.3.4 1.2.3 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Iap V1 Client class CreateTunnelDestGroupRequest.

The request to CreateTunnelDestGroup.

Generated from protobuf message `google.cloud.iap.v1.CreateTunnelDestGroupRequest`

## Namespace

Google \\ Cloud \\ Iap \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Google Cloud Project ID and location. In the following format: `projects/{project_number/id}/iap_tunnel/locations/{location}`. |
| `↳ tunnel_dest_group` | `https://docs.cloud.google.com/php/docs/reference/cloud-iap/latest/V1.TunnelDestGroup` Required. The TunnelDestGroup to create. |
| `↳ tunnel_dest_group_id` | `string` Required. The ID to use for the TunnelDestGroup, which becomes the final component of the resource name. This value must be 4-63 characters, and valid characters are `[a-z]-`. |

### getParent

Required. Google Cloud Project ID and location.

In the following format:
`projects/{project_number/id}/iap_tunnel/locations/{location}`.

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

### setParent

Required. Google Cloud Project ID and location.

In the following format:
`projects/{project_number/id}/iap_tunnel/locations/{location}`.

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

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

### getTunnelDestGroup

Required. The TunnelDestGroup to create.

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

### hasTunnelDestGroup

### clearTunnelDestGroup

### setTunnelDestGroup

Required. The TunnelDestGroup to create.

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

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

### getTunnelDestGroupId

Required. The ID to use for the TunnelDestGroup, which becomes the final
component of the resource name.

This value must be 4-63 characters, and valid characters
are `[a-z]-`.

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

### setTunnelDestGroupId

Required. The ID to use for the TunnelDestGroup, which becomes the final
component of the resource name.

This value must be 4-63 characters, and valid characters
are `[a-z]-`.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Google Cloud Project ID and location. In the following format: `projects/{project_number/id}/iap_tunnel/locations/{location}`. Please see IdentityAwareProxyAdminServiceClient::tunnelLocationName() for help formatting this field. |
| `tunnelDestGroup` | `https://docs.cloud.google.com/php/docs/reference/cloud-iap/latest/V1.TunnelDestGroup` Required. The TunnelDestGroup to create. |
| `tunnelDestGroupId` | `string` Required. The ID to use for the TunnelDestGroup, which becomes the final component of the resource name. This value must be 4-63 characters, and valid characters are `[a-z]-`. |

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