# Google Cloud Network Services V1 Client - Class RouteAction (0.8.2)

0.8.2 (latest) 0.8.1 0.7.1 0.6.1 0.5.0 0.4.0 0.3.0 0.2.3 0.1.1 Reference documentation and code samples for the Google Cloud Network Services V1 Client class RouteAction.

The specifications for routing traffic and applying associated policies.

Generated from protobuf message `google.cloud.networkservices.v1.TlsRoute.RouteAction`

## Namespace

Google \\ Cloud \\ NetworkServices \\ V1 \\ TlsRoute

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ destinations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.TlsRoute.RouteDestination>` Required. The destination services to which traffic should be forwarded. At least one destination service is required. |
| `↳ idle_timeout` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled. |

### getDestinations

Required. The destination services to which traffic should be forwarded.

At least one destination service is required.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.TlsRoute.RouteDestination>` |   |

### setDestinations

Required. The destination services to which traffic should be forwarded.

At least one destination service is required.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.TlsRoute.RouteDestination>` |

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

### getIdleTimeout

Optional. Specifies the idle timeout for the selected route. The idle
timeout is defined as the period in which there are no bytes sent or
received on either the upstream or downstream connection. If not set, the
default idle timeout is 1 hour. If set to 0s, the timeout will be
disabled.

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

### hasIdleTimeout

### clearIdleTimeout

### setIdleTimeout

Optional. Specifies the idle timeout for the selected route. The idle
timeout is defined as the period in which there are no bytes sent or
received on either the upstream or downstream connection. If not set, the
default idle timeout is 1 hour. If set to 0s, the timeout will be
disabled.

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

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