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.
Service for managing TransitionRouteGroups.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the TransitionRouteGroups Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# 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::ConfigurationConfigure 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.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (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::TransitionRouteGroupCreates an TransitionRouteGroup in the specified flow.
Note: You should always train a flow prior to sending it queries. See the training documentation.
def create_transition_route_group(request, options = nil) -> ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroupcreate_transition_route_group via a request object, either of type CreateTransitionRouteGroupRequest or an equivalent Hash. - request (::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::TransitionRouteGroupcreate_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). - parent (::String) — Required. The flow to create an TransitionRouteGroup for. Format:
projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>. - transition_route_group (::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 are supported. Note: languages must be enabled in the agent before they can be used.
-
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#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::EmptyDeletes the specified TransitionRouteGroup.
Note: You should always train a flow prior to sending it queries. See the training documentation.
def delete_transition_route_group(request, options = nil) -> ::Google::Protobuf::Emptydelete_transition_route_group via a request object, either of type DeleteTransitionRouteGroupRequest or an equivalent Hash. - request (::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::Emptydelete_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). - name (::String) — Required. The name of the TransitionRouteGroup to delete. Format:
projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>. - 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
forceis set to false, an error will be returned with message indicating pages that reference the transition route group. - If
forceis set to true, Dialogflow will remove the transition route group, as well as any reference to it.
- If
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#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::TransitionRouteGroupRetrieves the specified TransitionRouteGroup.
def get_transition_route_group(request, options = nil) -> ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroupget_transition_route_group via a request object, either of type GetTransitionRouteGroupRequest or an equivalent Hash. - request (::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::TransitionRouteGroupget_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). - name (::String) — Required. The name of the TransitionRouteGroup. Format:
projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>. - 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 are supported. Note: languages must be enabled in the agent before they can be used.
-
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#initialize
def initialize() { |config| ... } -> ClientCreate a new TransitionRouteGroups REST client object.
- (config) — Configure the TransitionRouteGroups client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# 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.
def list_transition_route_groups(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup>list_transition_route_groups via a request object, either of type ListTransitionRouteGroupsRequest or an equivalent Hash. - request (::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>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). - parent (::String) — Required. The flow to list all transition route groups for. Format:
projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>. - 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 are supported. Note: languages must be enabled in the agent before they can be used.
-
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup>)
- (::Google::Cloud::Error) — if the REST call is aborted.
#location_client
def location_client() -> Google::Cloud::Location::Locations::Rest::ClientGet the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Rest::Client)
#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::TransitionRouteGroupUpdates the specified TransitionRouteGroup.
Note: You should always train a flow prior to sending it queries. See the training documentation.
def update_transition_route_group(request, options = nil) -> ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroupupdate_transition_route_group via a request object, either of type UpdateTransitionRouteGroupRequest or an equivalent Hash. - request (::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::TransitionRouteGroupupdate_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). - transition_route_group (::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup, ::Hash) — Required. The transition route group to update.
- update_mask (::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 are supported. Note: languages must be enabled in the agent before they can be used.
-
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.