# Google Cloud Network Connectivity V1 Client - Class DestinationEndpoint (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.0 2.2.2 2.1.2 2.0.2 1.5.5 1.4.2 1.3.0 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class DestinationEndpoint.

The metadata for a `DestinationEndpoint` resource.

Generated from protobuf message `google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint`

## Namespace

Google \\ Cloud \\ NetworkConnectivity \\ V1 \\ Destination

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ asn` | `int|string` Required. The ASN of the remote IP prefix. |
| `↳ csp` | `string` Required. The CSP of the remote IP prefix. |
| `↳ state` | `int` Output only. The state of the `DestinationEndpoint` resource. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when the `DestinationEndpoint` resource was updated. |

### getAsn

Required. The ASN of the remote IP prefix.

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

### setAsn

Required. The ASN of the remote IP prefix.

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

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

### getCsp

Required. The CSP of the remote IP prefix.

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

### setCsp

Required. The CSP of the remote IP prefix.

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

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

### getState

Output only. The state of the `DestinationEndpoint` resource.

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

### setState

Output only. The state of the `DestinationEndpoint` resource.

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

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

### getUpdateTime

Output only. Time when the `DestinationEndpoint` resource was updated.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Time when the `DestinationEndpoint` resource was updated.

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

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