# Class TransferRule (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0

    TransferRule(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Rule for transferring to a specific agent.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `deterministic_transfer` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1.types.TransferRule.DeterministicTransfer` Optional. A rule that immediately transfers to the target agent when the condition is met. This field is a member of `oneof`_ `rule_type`. |
| `disable_planner_transfer` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1.types.TransferRule.DisablePlannerTransfer` Optional. Rule that prevents the planner from transferring to the target agent. This field is a member of `oneof`_ `rule_type`. |
| `child_agent` | `str` Required. The resource name of the child agent the rule applies to. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` |
| `direction` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1.types.TransferRule.Direction` Required. The direction of the transfer. |

## Classes

### DeterministicTransfer

    DeterministicTransfer(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Deterministic transfer rule. When the condition evaluates to
true, the transfer occurs.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### Direction

    Direction(value)

The direction of the transfer.

### DisablePlannerTransfer

    DisablePlannerTransfer(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A rule that prevents the planner from transferring to the
target agent.