# Google Cloud Network Connectivity V1 Client - Class Destination (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 Destination.

The `Destination` resource. It specifies the IP prefix and the associated
autonomous system numbers (ASN) that you want to include in a
`MulticloudDataTransferConfig` resource.

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

## Namespace

Google \\ Cloud \\ NetworkConnectivity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The name of the `Destination` resource. Format: `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when the `Destination` resource was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when the `Destination` resource was updated. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. User-defined labels. |
| `↳ etag` | `string` The etag is computed by the server, and might be sent with update and delete requests so that the client has an up-to-date value before proceeding. |
| `↳ description` | `string` Optional. A description of this resource. |
| `↳ ip_prefix` | `string` Required. Immutable. The IP prefix that represents your workload on another CSP. |
| `↳ endpoints` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-connectivity/latest/V1.Destination.DestinationEndpoint>` Required. Unordered list. The list of `DestinationEndpoint` resources configured for the IP prefix. |
| `↳ state_timeline` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-connectivity/latest/V1.StateTimeline` Output only. The timeline of the expected `Destination` states or the current rest state. If a state change is expected, the value is `ADDING`, `DELETING` or `SUSPENDING`, depending on the action specified. Example: "state_timeline": { "states": \[ { // The time when the `Destination` resource will be activated. "effectiveTime": "2024-12-01T08:00:00Z", "state": "ADDING" }, { // The time when the `Destination` resource will be suspended. "effectiveTime": "2024-12-01T20:00:00Z", "state": "SUSPENDING" } \] } |
| `↳ uid` | `string` Output only. The Google-generated unique ID for the `Destination` resource. This value is unique across all `Destination` resources. If a resource is deleted and another with the same name is created, the new resource is assigned a different and unique ID. |

### getName

Identifier. The name of the `Destination` resource.

Format:
`projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.

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

### setName

Identifier. The name of the `Destination` resource.

Format:
`projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.

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

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

### getCreateTime

Output only. Time when the `Destination` resource was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Time when the `Destination` resource was created.

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

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

### getUpdateTime

Output only. Time when the `Destination` 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 `Destination` resource was updated.

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

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

### getLabels

Optional. User-defined labels.

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

### setLabels

Optional. User-defined labels.

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

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

### getEtag

The etag is computed by the server, and might be sent with update and
delete requests so that the client has an up-to-date value before
proceeding.

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

### setEtag

The etag is computed by the server, and might be sent with update and
delete requests so that the client has an up-to-date value before
proceeding.

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

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

### getDescription

Optional. A description of this resource.

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

### setDescription

Optional. A description of this resource.

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

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

### getIpPrefix

Required. Immutable. The IP prefix that represents your workload on another
CSP.

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

### setIpPrefix

Required. Immutable. The IP prefix that represents your workload on another
CSP.

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

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

### getEndpoints

Required. Unordered list. The list of `DestinationEndpoint` resources
configured for the IP prefix.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-network-connectivity/latest/V1.Destination.DestinationEndpoint>` |   |

### setEndpoints

Required. Unordered list. The list of `DestinationEndpoint` resources
configured for the IP prefix.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-connectivity/latest/V1.Destination.DestinationEndpoint>` |

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

### getStateTimeline

Output only. The timeline of the expected `Destination` states or the
current rest state. If a state change is expected, the value is `ADDING`,
`DELETING` or `SUSPENDING`, depending on the action specified.

Example:
"state_timeline": {
"states": \[
{
// The time when the `Destination` resource will be activated.
"effectiveTime": "2024-12-01T08:00:00Z",
"state": "ADDING"
},
{
// The time when the `Destination` resource will be suspended.
"effectiveTime": "2024-12-01T20:00:00Z",
"state": "SUSPENDING"
}
\]
}

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

### hasStateTimeline

### clearStateTimeline

### setStateTimeline

Output only. The timeline of the expected `Destination` states or the
current rest state. If a state change is expected, the value is `ADDING`,
`DELETING` or `SUSPENDING`, depending on the action specified.

Example:
"state_timeline": {
"states": \[
{
// The time when the `Destination` resource will be activated.
"effectiveTime": "2024-12-01T08:00:00Z",
"state": "ADDING"
},
{
// The time when the `Destination` resource will be suspended.
"effectiveTime": "2024-12-01T20:00:00Z",
"state": "SUSPENDING"
}
\]
}

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

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

### getUid

Output only. The Google-generated unique ID for the `Destination` resource.

This value is unique across all `Destination` resources.
If a resource is deleted and another with the same name is
created, the new resource is assigned a different and unique ID.

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

### setUid

Output only. The Google-generated unique ID for the `Destination` resource.

This value is unique across all `Destination` resources.
If a resource is deleted and another with the same name is
created, the new resource is assigned a different and unique ID.

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

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