# Dialogflow CX V3 API - Class Google::Cloud::Dialogflow::CX::V3::TransitionRoute (v1.12.1)

1.12.1 (latest) 1.12.0 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.26.0 0.25.0 0.24.2 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.1 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.1 0.7.1 0.6.0 0.5.0 0.4.0 Reference documentation and code samples for the Dialogflow CX V3 API class Google::Cloud::Dialogflow::CX::V3::TransitionRoute.

A transition route specifies a [intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Intent "Google::Cloud::Dialogflow::CX::V3::Intent (class)")
that can be matched and/or a data condition that can be evaluated during a
session. When a specified transition is matched, the following actions are
taken in order:

- If there is a [`trigger_fulfillment`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRoute#Google__Cloud__Dialogflow__CX__V3__TransitionRoute_trigger_fulfillment_instance_ "Google::Cloud::Dialogflow::CX::V3::TransitionRoute#trigger_fulfillment (method)") associated with the transition, it will be called.
- If there is a [`target_page`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRoute#Google__Cloud__Dialogflow__CX__V3__TransitionRoute_target_page_instance_ "Google::Cloud::Dialogflow::CX::V3::TransitionRoute#target_page (method)") associated with the transition, the session will transition into the specified page.
- If there is a [`target_flow`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRoute#Google__Cloud__Dialogflow__CX__V3__TransitionRoute_target_flow_instance_ "Google::Cloud::Dialogflow::CX::V3::TransitionRoute#target_flow (method)") associated with the transition, the session will transition into the specified flow.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #condition

    def condition() -> ::String

**Returns**

- (::String) --- The condition to evaluate against \[form parameters\]\[google.cloud.dialogflow.cx.v3.Form.parameters\] or \[session parameters\]\[google.cloud.dialogflow.cx.v3.SessionInfo.parameters\].

  See the [conditions
  reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
  At least one of `intent` or `condition` must be specified. When both
  `intent` and `condition` are specified, the transition can only happen
  when both are fulfilled.

### #condition=

    def condition=(value) -> ::String

**Parameter**

- **value** (::String) --- The condition to evaluate against \[form parameters\]\[google.cloud.dialogflow.cx.v3.Form.parameters\] or \[session parameters\]\[google.cloud.dialogflow.cx.v3.SessionInfo.parameters\].


  See the [conditions
  reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
  At least one of `intent` or `condition` must be specified. When both
  `intent` and `condition` are specified, the transition can only happen
  when both are fulfilled.
**Returns**

- (::String) --- The condition to evaluate against \[form parameters\]\[google.cloud.dialogflow.cx.v3.Form.parameters\] or \[session parameters\]\[google.cloud.dialogflow.cx.v3.SessionInfo.parameters\].

  See the [conditions
  reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
  At least one of `intent` or `condition` must be specified. When both
  `intent` and `condition` are specified, the transition can only happen
  when both are fulfilled.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. The description of the transition route. The maximum length is 500 characters.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The description of the transition route. The maximum length is 500 characters.
**Returns**

- (::String) --- Optional. The description of the transition route. The maximum length is 500 characters.

### #intent

    def intent() -> ::String

**Returns**

- (::String) --- The unique identifier of an [Intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Intent "Google::Cloud::Dialogflow::CX::V3::Intent (class)"). Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.

### #intent=

    def intent=(value) -> ::String

**Parameter**

- **value** (::String) --- The unique identifier of an [Intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Intent "Google::Cloud::Dialogflow::CX::V3::Intent (class)"). Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
**Returns**

- (::String) --- The unique identifier of an [Intent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Intent "Google::Cloud::Dialogflow::CX::V3::Intent (class)"). Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The unique identifier of this transition route.

### #target_flow

    def target_flow() -> ::String

**Returns**

- (::String) --- The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.


  Note: The following fields are mutually exclusive: `target_flow`, `target_page`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #target_flow=

    def target_flow=(value) -> ::String

**Parameter**

- **value** (::String) --- The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.


  Note: The following fields are mutually exclusive: `target_flow`, `target_page`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.


  Note: The following fields are mutually exclusive: `target_flow`, `target_page`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #target_page

    def target_page() -> ::String

**Returns**

- (::String) --- The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.


  Note: The following fields are mutually exclusive: `target_page`, `target_flow`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #target_page=

    def target_page=(value) -> ::String

**Parameter**

- **value** (::String) --- The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.


  Note: The following fields are mutually exclusive: `target_page`, `target_flow`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.


  Note: The following fields are mutually exclusive: `target_page`, `target_flow`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #trigger_fulfillment

    def trigger_fulfillment() -> ::Google::Cloud::Dialogflow::CX::V3::Fulfillment

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Fulfillment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Fulfillment)) --- The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.

### #trigger_fulfillment=

    def trigger_fulfillment=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Fulfillment

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Fulfillment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Fulfillment)) --- The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Fulfillment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Fulfillment)) --- The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.