# Dialogflow CX V3 API - Class Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client (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::TransitionRouteGroups::Rest::Client.

REST client for the TransitionRouteGroups service.


<br />

Service for managing
[TransitionRouteGroups](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup "Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup (class)").

## Inherits

- Object

## Includes

- [Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Paths](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroups-Paths)

## Methods

### .configure

    def self.configure() { |config| ... } -> Client::Configuration

Configure the TransitionRouteGroups Client class.


<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroups-Rest-Client-Configuration "Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroups-Rest-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroups-Rest-Client-Configuration))
**Example**

```ruby
# Modify the configuration for all TransitionRouteGroups clients
::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.configure do |config|
  config.timeout = 10.0
end
```

### #configure

    def configure() { |config| ... } -> Client::Configuration

Configure the TransitionRouteGroups Client instance.


The configuration is set to the derived mode, meaning that values can be changed,
but structural changes (adding new fields, etc.) are not allowed. Structural changes
should be made on [Client.configure](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroups-Rest-Client#Google__Cloud__Dialogflow__CX__V3__TransitionRouteGroups__Rest__Client_configure_class_ "Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.configure (method)").

<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroups-Rest-Client-Configuration "Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroups-Rest-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroups-Rest-Client-Configuration))

### #create_transition_route_group

    def create_transition_route_group(request, options = nil) -> ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup
    def create_transition_route_group(parent: nil, transition_route_group: nil, language_code: nil) -> ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup

Creates an
[TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup "Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup (class)")
in the specified flow.


<br />

Note: You should always train a flow prior to sending it queries. See the
[training
documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
**Overloads**

    def create_transition_route_group(request, options = nil) -> ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup

Pass arguments to `create_transition_route_group` via a request object, either of type [CreateTransitionRouteGroupRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-CreateTransitionRouteGroupRequest "Google::Cloud::Dialogflow::CX::V3::CreateTransitionRouteGroupRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dialogflow::CX::V3::CreateTransitionRouteGroupRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-CreateTransitionRouteGroupRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def create_transition_route_group(parent: nil, transition_route_group: nil, language_code: nil) -> ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup

Pass arguments to `create_transition_route_group` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The flow to create an [TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup "Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup (class)") for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>` or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>` for agent-level groups.
- **transition_route_group** ([::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup), ::Hash) --- Required. The transition route group to create.
- **language_code** (::String) --- The language of the following fields in `TransitionRouteGroup`:


  - `TransitionRouteGroup.transition_routes.trigger_fulfillment.messages` \* `TransitionRouteGroup.transition_routes.trigger_fulfillment.conditional_cases`

  If not specified, the agent's default language is used.
  [Many
  languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
  are supported.
  Note: languages must be enabled in the agent before they can be used.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dialogflow/cx/v3"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dialogflow::CX::V3::CreateTransitionRouteGroupRequest.new

# Call the create_transition_route_group method.
result = client.create_transition_route_group request

# The returned object is of type Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.
p result
```

### #delete_transition_route_group

    def delete_transition_route_group(request, options = nil) -> ::Google::Protobuf::Empty
    def delete_transition_route_group(name: nil, force: nil) -> ::Google::Protobuf::Empty

Deletes the specified
[TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup "Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup (class)").


<br />

Note: You should always train a flow prior to sending it queries. See the
[training
documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
**Overloads**

    def delete_transition_route_group(request, options = nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_transition_route_group` via a request object, either of type [DeleteTransitionRouteGroupRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DeleteTransitionRouteGroupRequest "Google::Cloud::Dialogflow::CX::V3::DeleteTransitionRouteGroupRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dialogflow::CX::V3::DeleteTransitionRouteGroupRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-DeleteTransitionRouteGroupRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def delete_transition_route_group(name: nil, force: nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_transition_route_group` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **name** (::String) --- Required. The name of the [TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup "Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup (class)") to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>` or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`.
- **force** (::Boolean) ---

  This field has no effect for transition route group that no page is using.
  If the transition route group is referenced by any page:
  - If `force` is set to false, an error will be returned with message indicating pages that reference the transition route group.
  - If `force` is set to true, Dialogflow will remove the transition route group, as well as any reference to it.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Empty))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-Empty))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dialogflow/cx/v3"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dialogflow::CX::V3::DeleteTransitionRouteGroupRequest.new

# Call the delete_transition_route_group method.
result = client.delete_transition_route_group request

# The returned object is of type Google::Protobuf::Empty.
p result
```

### #get_transition_route_group

    def get_transition_route_group(request, options = nil) -> ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup
    def get_transition_route_group(name: nil, language_code: nil) -> ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup

Retrieves the specified
[TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup "Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup (class)").
**Overloads**

    def get_transition_route_group(request, options = nil) -> ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup

Pass arguments to `get_transition_route_group` via a request object, either of type [GetTransitionRouteGroupRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-GetTransitionRouteGroupRequest "Google::Cloud::Dialogflow::CX::V3::GetTransitionRouteGroupRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dialogflow::CX::V3::GetTransitionRouteGroupRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-GetTransitionRouteGroupRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def get_transition_route_group(name: nil, language_code: nil) -> ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup

Pass arguments to `get_transition_route_group` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **name** (::String) --- Required. The name of the [TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup "Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup (class)"). Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>` or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`.
- **language_code** (::String) --- The language to retrieve the transition route group for. The following fields are language dependent:


  - `TransitionRouteGroup.transition_routes.trigger_fulfillment.messages` \* `TransitionRouteGroup.transition_routes.trigger_fulfillment.conditional_cases`

  If not specified, the agent's default language is used.
  [Many
  languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
  are supported.
  Note: languages must be enabled in the agent before they can be used.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dialogflow/cx/v3"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dialogflow::CX::V3::GetTransitionRouteGroupRequest.new

# Call the get_transition_route_group method.
result = client.get_transition_route_group request

# The returned object is of type Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.
p result
```

### #initialize

    def initialize() { |config| ... } -> Client

Create a new TransitionRouteGroups REST client object.
**Yields**

- (config) --- Configure the TransitionRouteGroups client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroups-Rest-Client-Configuration))
**Returns**

- ([Client](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroups-Rest-Client)) --- a new instance of Client
**Example**

```ruby
# Create a client using the default configuration
client = ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new

# Create a client using a custom configuration
client = ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new do |config|
  config.timeout = 10.0
end
```

### #list_transition_route_groups

    def list_transition_route_groups(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup>
    def list_transition_route_groups(parent: nil, page_size: nil, page_token: nil, language_code: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup>

Returns the list of all transition route groups in the specified flow.
**Overloads**

    def list_transition_route_groups(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup>

Pass arguments to `list_transition_route_groups` via a request object, either of type [ListTransitionRouteGroupsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-ListTransitionRouteGroupsRequest "Google::Cloud::Dialogflow::CX::V3::ListTransitionRouteGroupsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dialogflow::CX::V3::ListTransitionRouteGroupsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-ListTransitionRouteGroupsRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def list_transition_route_groups(parent: nil, page_size: nil, page_token: nil, language_code: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup>

Pass arguments to `list_transition_route_groups` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The flow to list all transition route groups for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>` or \`projects/
- **page_size** (::Integer) --- The maximum number of items to return in a single page. By default 100 and at most 1000.
- **page_token** (::String) --- The next_page_token value returned from a previous list request.
- **language_code** (::String) --- The language to list transition route groups for. The following fields are language dependent:


  - `TransitionRouteGroup.transition_routes.trigger_fulfillment.messages` \* `TransitionRouteGroup.transition_routes.trigger_fulfillment.conditional_cases`

  If not specified, the agent's default language is used.
  [Many
  languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
  are supported.
  Note: languages must be enabled in the agent before they can be used.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup)\>)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup)\>)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dialogflow/cx/v3"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dialogflow::CX::V3::ListTransitionRouteGroupsRequest.new

# Call the list_transition_route_groups method.
result = client.list_transition_route_groups request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.
  p item
end
```

### #location_client

    def location_client() -> Google::Cloud::Location::Locations::Rest::Client

Get the associated client for mix-in of the Locations.
**Returns**

- (Google::Cloud::Location::Locations::Rest::Client)

### #logger

    def logger() -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_transition_route_group

    def update_transition_route_group(request, options = nil) -> ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup
    def update_transition_route_group(transition_route_group: nil, update_mask: nil, language_code: nil) -> ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup

Updates the specified
[TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup "Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup (class)").


<br />

Note: You should always train a flow prior to sending it queries. See the
[training
documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
**Overloads**

    def update_transition_route_group(request, options = nil) -> ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup

Pass arguments to `update_transition_route_group` via a request object, either of type [UpdateTransitionRouteGroupRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-UpdateTransitionRouteGroupRequest "Google::Cloud::Dialogflow::CX::V3::UpdateTransitionRouteGroupRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Dialogflow::CX::V3::UpdateTransitionRouteGroupRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-UpdateTransitionRouteGroupRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def update_transition_route_group(transition_route_group: nil, update_mask: nil, language_code: nil) -> ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup

Pass arguments to `update_transition_route_group` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **transition_route_group** ([::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup), ::Hash) --- Required. The transition route group to update.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Protobuf-FieldMask), ::Hash) --- The mask to control which fields get updated.
- **language_code** (::String) --- The language of the following fields in `TransitionRouteGroup`:


  - `TransitionRouteGroup.transition_routes.trigger_fulfillment.messages` \* `TransitionRouteGroup.transition_routes.trigger_fulfillment.conditional_cases`

  If not specified, the agent's default language is used.
  [Many
  languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
  are supported.
  Note: languages must be enabled in the agent before they can be used.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-TransitionRouteGroup))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/dialogflow/cx/v3"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Dialogflow::CX::V3::UpdateTransitionRouteGroupRequest.new

# Call the update_transition_route_group method.
result = client.update_transition_route_group request

# The returned object is of type Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.
p result
```