# Interface TransferRuleOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface TransferRuleOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getChildAgent()

    public abstract String getChildAgent()

Required. The resource name of the child agent the rule applies to.
Format:
`projects/{project}/locations/{location}/apps/{app}/agents/{agent}`

`
string child_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The childAgent. |

### getChildAgentBytes()

    public abstract ByteString getChildAgentBytes()

Required. The resource name of the child agent the rule applies to.
Format:
`projects/{project}/locations/{location}/apps/{app}/agents/{agent}`

`
string child_agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for childAgent. |

### getDeterministicTransfer()

    public abstract TransferRule.DeterministicTransfer getDeterministicTransfer()

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

`
.google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.TransferRule.DeterministicTransfer` | The deterministicTransfer. |

### getDeterministicTransferOrBuilder()

    public abstract TransferRule.DeterministicTransferOrBuilder getDeterministicTransferOrBuilder()

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

`
.google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.TransferRule.DeterministicTransferOrBuilder` |   |

### getDirection()

    public abstract TransferRule.Direction getDirection()

Required. The direction of the transfer.

`
.google.cloud.ces.v1.TransferRule.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.TransferRule.Direction` | The direction. |

### getDirectionValue()

    public abstract int getDirectionValue()

Required. The direction of the transfer.

`
.google.cloud.ces.v1.TransferRule.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for direction. |

### getDisablePlannerTransfer()

    public abstract TransferRule.DisablePlannerTransfer getDisablePlannerTransfer()

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

`
.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer` | The disablePlannerTransfer. |

### getDisablePlannerTransferOrBuilder()

    public abstract TransferRule.DisablePlannerTransferOrBuilder getDisablePlannerTransferOrBuilder()

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

`
.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.TransferRule.DisablePlannerTransferOrBuilder` |   |

### getRuleTypeCase()

    public abstract TransferRule.RuleTypeCase getRuleTypeCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.TransferRule.RuleTypeCase` |   |

### hasDeterministicTransfer()

    public abstract boolean hasDeterministicTransfer()

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

`
.google.cloud.ces.v1.TransferRule.DeterministicTransfer deterministic_transfer = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the deterministicTransfer field is set. |

### hasDisablePlannerTransfer()

    public abstract boolean hasDisablePlannerTransfer()

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

`
.google.cloud.ces.v1.TransferRule.DisablePlannerTransfer disable_planner_transfer = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the disablePlannerTransfer field is set. |