0.6.0 (latest) 0.5.0 0.4.4 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class TransferRule.

Rule for transferring to a specific agent.

Generated from protobuf message `google.cloud.ces.v1.TransferRule`

## Namespace

Google \\ Cloud \\ Ces \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ deterministic_transfer` | `TransferRule\DeterministicTransfer` Optional. A rule that immediately transfers to the target agent when the condition is met. |
| `↳ disable_planner_transfer` | `TransferRule\DisablePlannerTransfer` Optional. Rule that prevents the planner from transferring to the target agent. |
| `↳ child_agent` | `string` Required. The resource name of the child agent the rule applies to. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` |
| `↳ direction` | `int` Required. The direction of the transfer. |

### getDeterministicTransfer

Optional. A rule that immediately transfers to the target agent when the
condition is met.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TransferRule\DeterministicTransfer|null` |   |

### hasDeterministicTransfer

### setDeterministicTransfer

Optional. A rule that immediately transfers to the target agent when the
condition is met.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `TransferRule\DeterministicTransfer` |

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

### getDisablePlannerTransfer

Optional. Rule that prevents the planner from transferring to the target
agent.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TransferRule\DisablePlannerTransfer|null` |   |

### hasDisablePlannerTransfer

### setDisablePlannerTransfer

Optional. Rule that prevents the planner from transferring to the target
agent.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `TransferRule\DisablePlannerTransfer` |

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

### getChildAgent

Required. The resource name of the child agent the rule applies to.

Format:
`projects/{project}/locations/{location}/apps/{app}/agents/{agent}`

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

### setChildAgent

Required. The resource name of the child agent the rule applies to.

Format:
`projects/{project}/locations/{location}/apps/{app}/agents/{agent}`

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

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

### getDirection

Required. The direction of the transfer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Direction](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.TransferRule.Direction.md.txt). |

### setDirection

Required. The direction of the transfer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Direction](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.TransferRule.Direction.md.txt). |

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

### getRuleType

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