# Google Cloud BeyondCorp Client Gateways V1 Client - Class ClientGateway (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.5.0 0.4.5 0.3.2 0.2.2 0.1.6 Reference documentation and code samples for the Google Cloud BeyondCorp Client Gateways V1 Client class ClientGateway.

Message describing ClientGateway object.

Generated from protobuf message `google.cloud.beyondcorp.clientgateways.v1.ClientGateway`

## Namespace

Google \\ Cloud \\ BeyondCorp \\ ClientGateways \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. name of resource. The name is ignored during creation. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. \[Output only\] Create time stamp. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. \[Output only\] Update time stamp. |
| `↳ state` | `int` Output only. The operational state of the gateway. |
| `↳ id` | `string` Output only. A unique identifier for the instance generated by the system. |
| `↳ client_connector_service` | `string` Output only. The client connector service name that the client gateway is associated to. Client Connector Services, named as follows: `projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}`. |

### getName

Required. name of resource. The name is ignored during creation.

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

### setName

Required. name of resource. The name is ignored during creation.

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

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

### getCreateTime

Output only. \[Output only\] Create time stamp.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. \[Output only\] Create time stamp.

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

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

### getUpdateTime

Output only. \[Output only\] Update time stamp.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. \[Output only\] Update time stamp.

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

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

### getState

Output only. The operational state of the gateway.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-clientgateways/latest/V1.ClientGateway.State). |

### setState

Output only. The operational state of the gateway.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-clientgateways/latest/V1.ClientGateway.State). |

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

### getId

Output only. A unique identifier for the instance generated by the system.

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

### setId

Output only. A unique identifier for the instance generated by the system.

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

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

### getClientConnectorService

Output only. The client connector service name that the client gateway is
associated to. Client Connector Services, named as follows:
`projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}`.

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

### setClientConnectorService

Output only. The client connector service name that the client gateway is
associated to. Client Connector Services, named as follows:
`projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}`.

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

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