Dialogflow v3 API - Class TransitionRouteGroupsClient (2.6.0)

public abstract class TransitionRouteGroupsClient

Reference documentation and code samples for the Dialogflow v3 API class TransitionRouteGroupsClient.

TransitionRouteGroups client wrapper, for convenient use.

Inheritance

object > TransitionRouteGroupsClient

Namespace

GoogleCloudGoogle.Cloud.DialogflowGoogle.Cloud.Dialogflow.CxV3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Remarks

Service for managing [TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the TransitionRouteGroups service, which is a host of "dialogflow.googleapis.com" and a port of 443.

Property Value
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default TransitionRouteGroups scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

GrpcClient

public virtual TransitionRouteGroups.TransitionRouteGroupsClient GrpcClient { get; }

The underlying gRPC TransitionRouteGroups client

Property Value
TypeDescription
TransitionRouteGroupsTransitionRouteGroupsClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

Methods

Create()

public static TransitionRouteGroupsClient Create()

Synchronously creates a TransitionRouteGroupsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use TransitionRouteGroupsClientBuilder.

Returns
TypeDescription
TransitionRouteGroupsClient

The created TransitionRouteGroupsClient.

CreateAsync(CancellationToken)

public static Task<TransitionRouteGroupsClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a TransitionRouteGroupsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use TransitionRouteGroupsClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskTransitionRouteGroupsClient

The task representing the created TransitionRouteGroupsClient.

CreateTransitionRouteGroup(CreateTransitionRouteGroupRequest, CallSettings)

public virtual TransitionRouteGroup CreateTransitionRouteGroup(CreateTransitionRouteGroupRequest request, CallSettings callSettings = null)

Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestCreateTransitionRouteGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TransitionRouteGroup

The RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = TransitionRouteGroupsClient.Create();
// Initialize request argument(s)
CreateTransitionRouteGroupRequest request = new CreateTransitionRouteGroupRequest
{
    ParentAsFlowName = FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"),
    TransitionRouteGroup = new TransitionRouteGroup(),
    LanguageCode = "",
};
// Make the request
TransitionRouteGroup response = transitionRouteGroupsClient.CreateTransitionRouteGroup(request);

CreateTransitionRouteGroup(FlowName, TransitionRouteGroup, CallSettings)

public virtual TransitionRouteGroup CreateTransitionRouteGroup(FlowName parent, TransitionRouteGroup transitionRouteGroup, CallSettings callSettings = null)

Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
parentFlowName

Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

transitionRouteGroupTransitionRouteGroup

Required. The transition route group to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TransitionRouteGroup

The RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = TransitionRouteGroupsClient.Create();
// Initialize request argument(s)
FlowName parent = FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]");
TransitionRouteGroup transitionRouteGroup = new TransitionRouteGroup();
// Make the request
TransitionRouteGroup response = transitionRouteGroupsClient.CreateTransitionRouteGroup(parent, transitionRouteGroup);

CreateTransitionRouteGroup(string, TransitionRouteGroup, CallSettings)

public virtual TransitionRouteGroup CreateTransitionRouteGroup(string parent, TransitionRouteGroup transitionRouteGroup, CallSettings callSettings = null)

Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
parentstring

Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

transitionRouteGroupTransitionRouteGroup

Required. The transition route group to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TransitionRouteGroup

The RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = TransitionRouteGroupsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]";
TransitionRouteGroup transitionRouteGroup = new TransitionRouteGroup();
// Make the request
TransitionRouteGroup response = transitionRouteGroupsClient.CreateTransitionRouteGroup(parent, transitionRouteGroup);

CreateTransitionRouteGroupAsync(CreateTransitionRouteGroupRequest, CallSettings)

public virtual Task<TransitionRouteGroup> CreateTransitionRouteGroupAsync(CreateTransitionRouteGroupRequest request, CallSettings callSettings = null)

Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestCreateTransitionRouteGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTransitionRouteGroup

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
CreateTransitionRouteGroupRequest request = new CreateTransitionRouteGroupRequest
{
    ParentAsFlowName = FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"),
    TransitionRouteGroup = new TransitionRouteGroup(),
    LanguageCode = "",
};
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.CreateTransitionRouteGroupAsync(request);

CreateTransitionRouteGroupAsync(CreateTransitionRouteGroupRequest, CancellationToken)

public virtual Task<TransitionRouteGroup> CreateTransitionRouteGroupAsync(CreateTransitionRouteGroupRequest request, CancellationToken cancellationToken)

Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestCreateTransitionRouteGroupRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskTransitionRouteGroup

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
CreateTransitionRouteGroupRequest request = new CreateTransitionRouteGroupRequest
{
    ParentAsFlowName = FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"),
    TransitionRouteGroup = new TransitionRouteGroup(),
    LanguageCode = "",
};
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.CreateTransitionRouteGroupAsync(request);

CreateTransitionRouteGroupAsync(FlowName, TransitionRouteGroup, CallSettings)

public virtual Task<TransitionRouteGroup> CreateTransitionRouteGroupAsync(FlowName parent, TransitionRouteGroup transitionRouteGroup, CallSettings callSettings = null)

Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
parentFlowName

Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

transitionRouteGroupTransitionRouteGroup

Required. The transition route group to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTransitionRouteGroup

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
FlowName parent = FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]");
TransitionRouteGroup transitionRouteGroup = new TransitionRouteGroup();
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.CreateTransitionRouteGroupAsync(parent, transitionRouteGroup);

CreateTransitionRouteGroupAsync(FlowName, TransitionRouteGroup, CancellationToken)

public virtual Task<TransitionRouteGroup> CreateTransitionRouteGroupAsync(FlowName parent, TransitionRouteGroup transitionRouteGroup, CancellationToken cancellationToken)

Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
parentFlowName

Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

transitionRouteGroupTransitionRouteGroup

Required. The transition route group to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskTransitionRouteGroup

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
FlowName parent = FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]");
TransitionRouteGroup transitionRouteGroup = new TransitionRouteGroup();
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.CreateTransitionRouteGroupAsync(parent, transitionRouteGroup);

CreateTransitionRouteGroupAsync(string, TransitionRouteGroup, CallSettings)

public virtual Task<TransitionRouteGroup> CreateTransitionRouteGroupAsync(string parent, TransitionRouteGroup transitionRouteGroup, CallSettings callSettings = null)

Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
parentstring

Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

transitionRouteGroupTransitionRouteGroup

Required. The transition route group to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTransitionRouteGroup

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]";
TransitionRouteGroup transitionRouteGroup = new TransitionRouteGroup();
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.CreateTransitionRouteGroupAsync(parent, transitionRouteGroup);

CreateTransitionRouteGroupAsync(string, TransitionRouteGroup, CancellationToken)

public virtual Task<TransitionRouteGroup> CreateTransitionRouteGroupAsync(string parent, TransitionRouteGroup transitionRouteGroup, CancellationToken cancellationToken)

Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] in the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
parentstring

Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

transitionRouteGroupTransitionRouteGroup

Required. The transition route group to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskTransitionRouteGroup

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]";
TransitionRouteGroup transitionRouteGroup = new TransitionRouteGroup();
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.CreateTransitionRouteGroupAsync(parent, transitionRouteGroup);

DeleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest, CallSettings)

public virtual void DeleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest request, CallSettings callSettings = null)

Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestDeleteTransitionRouteGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = TransitionRouteGroupsClient.Create();
// Initialize request argument(s)
DeleteTransitionRouteGroupRequest request = new DeleteTransitionRouteGroupRequest
{
    TransitionRouteGroupName = TransitionRouteGroupName.FromProjectLocationAgentFlowTransitionRouteGroup("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]"),
    Force = false,
};
// Make the request
transitionRouteGroupsClient.DeleteTransitionRouteGroup(request);

DeleteTransitionRouteGroup(TransitionRouteGroupName, CallSettings)

public virtual void DeleteTransitionRouteGroup(TransitionRouteGroupName name, CallSettings callSettings = null)

Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
nameTransitionRouteGroupName

Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = TransitionRouteGroupsClient.Create();
// Initialize request argument(s)
TransitionRouteGroupName name = TransitionRouteGroupName.FromProjectLocationAgentFlowTransitionRouteGroup("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]");
// Make the request
transitionRouteGroupsClient.DeleteTransitionRouteGroup(name);

DeleteTransitionRouteGroup(string, CallSettings)

public virtual void DeleteTransitionRouteGroup(string name, CallSettings callSettings = null)

Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
namestring

Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = TransitionRouteGroupsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/transitionRouteGroups/[TRANSITION_ROUTE_GROUP]";
// Make the request
transitionRouteGroupsClient.DeleteTransitionRouteGroup(name);

DeleteTransitionRouteGroupAsync(DeleteTransitionRouteGroupRequest, CallSettings)

public virtual Task DeleteTransitionRouteGroupAsync(DeleteTransitionRouteGroupRequest request, CallSettings callSettings = null)

Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestDeleteTransitionRouteGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
DeleteTransitionRouteGroupRequest request = new DeleteTransitionRouteGroupRequest
{
    TransitionRouteGroupName = TransitionRouteGroupName.FromProjectLocationAgentFlowTransitionRouteGroup("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]"),
    Force = false,
};
// Make the request
await transitionRouteGroupsClient.DeleteTransitionRouteGroupAsync(request);

DeleteTransitionRouteGroupAsync(DeleteTransitionRouteGroupRequest, CancellationToken)

public virtual Task DeleteTransitionRouteGroupAsync(DeleteTransitionRouteGroupRequest request, CancellationToken cancellationToken)

Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestDeleteTransitionRouteGroupRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
DeleteTransitionRouteGroupRequest request = new DeleteTransitionRouteGroupRequest
{
    TransitionRouteGroupName = TransitionRouteGroupName.FromProjectLocationAgentFlowTransitionRouteGroup("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]"),
    Force = false,
};
// Make the request
await transitionRouteGroupsClient.DeleteTransitionRouteGroupAsync(request);

DeleteTransitionRouteGroupAsync(TransitionRouteGroupName, CallSettings)

public virtual Task DeleteTransitionRouteGroupAsync(TransitionRouteGroupName name, CallSettings callSettings = null)

Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
nameTransitionRouteGroupName

Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
TransitionRouteGroupName name = TransitionRouteGroupName.FromProjectLocationAgentFlowTransitionRouteGroup("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]");
// Make the request
await transitionRouteGroupsClient.DeleteTransitionRouteGroupAsync(name);

DeleteTransitionRouteGroupAsync(TransitionRouteGroupName, CancellationToken)

public virtual Task DeleteTransitionRouteGroupAsync(TransitionRouteGroupName name, CancellationToken cancellationToken)

Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
nameTransitionRouteGroupName

Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
TransitionRouteGroupName name = TransitionRouteGroupName.FromProjectLocationAgentFlowTransitionRouteGroup("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]");
// Make the request
await transitionRouteGroupsClient.DeleteTransitionRouteGroupAsync(name);

DeleteTransitionRouteGroupAsync(string, CallSettings)

public virtual Task DeleteTransitionRouteGroupAsync(string name, CallSettings callSettings = null)

Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
namestring

Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/transitionRouteGroups/[TRANSITION_ROUTE_GROUP]";
// Make the request
await transitionRouteGroupsClient.DeleteTransitionRouteGroupAsync(name);

DeleteTransitionRouteGroupAsync(string, CancellationToken)

public virtual Task DeleteTransitionRouteGroupAsync(string name, CancellationToken cancellationToken)

Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
namestring

Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/transitionRouteGroups/[TRANSITION_ROUTE_GROUP]";
// Make the request
await transitionRouteGroupsClient.DeleteTransitionRouteGroupAsync(name);

GetTransitionRouteGroup(GetTransitionRouteGroupRequest, CallSettings)

public virtual TransitionRouteGroup GetTransitionRouteGroup(GetTransitionRouteGroupRequest request, CallSettings callSettings = null)

Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Parameters
NameDescription
requestGetTransitionRouteGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TransitionRouteGroup

The RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = TransitionRouteGroupsClient.Create();
// Initialize request argument(s)
GetTransitionRouteGroupRequest request = new GetTransitionRouteGroupRequest
{
    TransitionRouteGroupName = TransitionRouteGroupName.FromProjectLocationAgentFlowTransitionRouteGroup("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]"),
    LanguageCode = "",
};
// Make the request
TransitionRouteGroup response = transitionRouteGroupsClient.GetTransitionRouteGroup(request);

GetTransitionRouteGroup(TransitionRouteGroupName, CallSettings)

public virtual TransitionRouteGroup GetTransitionRouteGroup(TransitionRouteGroupName name, CallSettings callSettings = null)

Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Parameters
NameDescription
nameTransitionRouteGroupName

Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TransitionRouteGroup

The RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = TransitionRouteGroupsClient.Create();
// Initialize request argument(s)
TransitionRouteGroupName name = TransitionRouteGroupName.FromProjectLocationAgentFlowTransitionRouteGroup("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]");
// Make the request
TransitionRouteGroup response = transitionRouteGroupsClient.GetTransitionRouteGroup(name);

GetTransitionRouteGroup(string, CallSettings)

public virtual TransitionRouteGroup GetTransitionRouteGroup(string name, CallSettings callSettings = null)

Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Parameters
NameDescription
namestring

Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TransitionRouteGroup

The RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = TransitionRouteGroupsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/transitionRouteGroups/[TRANSITION_ROUTE_GROUP]";
// Make the request
TransitionRouteGroup response = transitionRouteGroupsClient.GetTransitionRouteGroup(name);

GetTransitionRouteGroupAsync(GetTransitionRouteGroupRequest, CallSettings)

public virtual Task<TransitionRouteGroup> GetTransitionRouteGroupAsync(GetTransitionRouteGroupRequest request, CallSettings callSettings = null)

Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Parameters
NameDescription
requestGetTransitionRouteGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTransitionRouteGroup

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
GetTransitionRouteGroupRequest request = new GetTransitionRouteGroupRequest
{
    TransitionRouteGroupName = TransitionRouteGroupName.FromProjectLocationAgentFlowTransitionRouteGroup("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]"),
    LanguageCode = "",
};
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.GetTransitionRouteGroupAsync(request);

GetTransitionRouteGroupAsync(GetTransitionRouteGroupRequest, CancellationToken)

public virtual Task<TransitionRouteGroup> GetTransitionRouteGroupAsync(GetTransitionRouteGroupRequest request, CancellationToken cancellationToken)

Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Parameters
NameDescription
requestGetTransitionRouteGroupRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskTransitionRouteGroup

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
GetTransitionRouteGroupRequest request = new GetTransitionRouteGroupRequest
{
    TransitionRouteGroupName = TransitionRouteGroupName.FromProjectLocationAgentFlowTransitionRouteGroup("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]"),
    LanguageCode = "",
};
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.GetTransitionRouteGroupAsync(request);

GetTransitionRouteGroupAsync(TransitionRouteGroupName, CallSettings)

public virtual Task<TransitionRouteGroup> GetTransitionRouteGroupAsync(TransitionRouteGroupName name, CallSettings callSettings = null)

Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Parameters
NameDescription
nameTransitionRouteGroupName

Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTransitionRouteGroup

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
TransitionRouteGroupName name = TransitionRouteGroupName.FromProjectLocationAgentFlowTransitionRouteGroup("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]");
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.GetTransitionRouteGroupAsync(name);

GetTransitionRouteGroupAsync(TransitionRouteGroupName, CancellationToken)

public virtual Task<TransitionRouteGroup> GetTransitionRouteGroupAsync(TransitionRouteGroupName name, CancellationToken cancellationToken)

Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Parameters
NameDescription
nameTransitionRouteGroupName

Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskTransitionRouteGroup

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
TransitionRouteGroupName name = TransitionRouteGroupName.FromProjectLocationAgentFlowTransitionRouteGroup("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]");
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.GetTransitionRouteGroupAsync(name);

GetTransitionRouteGroupAsync(string, CallSettings)

public virtual Task<TransitionRouteGroup> GetTransitionRouteGroupAsync(string name, CallSettings callSettings = null)

Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Parameters
NameDescription
namestring

Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTransitionRouteGroup

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/transitionRouteGroups/[TRANSITION_ROUTE_GROUP]";
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.GetTransitionRouteGroupAsync(name);

GetTransitionRouteGroupAsync(string, CancellationToken)

public virtual Task<TransitionRouteGroup> GetTransitionRouteGroupAsync(string name, CancellationToken cancellationToken)

Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Parameters
NameDescription
namestring

Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskTransitionRouteGroup

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/transitionRouteGroups/[TRANSITION_ROUTE_GROUP]";
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.GetTransitionRouteGroupAsync(name);

ListTransitionRouteGroups(FlowName, string, int?, CallSettings)

public virtual PagedEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> ListTransitionRouteGroups(FlowName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentFlowName

Required. The flow to list all transition route groups for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListTransitionRouteGroupsResponseTransitionRouteGroup

A pageable sequence of TransitionRouteGroup resources.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = TransitionRouteGroupsClient.Create();
// Initialize request argument(s)
FlowName parent = FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]");
// Make the request
PagedEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> response = transitionRouteGroupsClient.ListTransitionRouteGroups(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (TransitionRouteGroup item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTransitionRouteGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TransitionRouteGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TransitionRouteGroup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TransitionRouteGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTransitionRouteGroups(ListTransitionRouteGroupsRequest, CallSettings)

public virtual PagedEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> ListTransitionRouteGroups(ListTransitionRouteGroupsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListTransitionRouteGroupsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListTransitionRouteGroupsResponseTransitionRouteGroup

A pageable sequence of TransitionRouteGroup resources.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = TransitionRouteGroupsClient.Create();
// Initialize request argument(s)
ListTransitionRouteGroupsRequest request = new ListTransitionRouteGroupsRequest
{
    ParentAsFlowName = FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"),
    LanguageCode = "",
};
// Make the request
PagedEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> response = transitionRouteGroupsClient.ListTransitionRouteGroups(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (TransitionRouteGroup item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTransitionRouteGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TransitionRouteGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TransitionRouteGroup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TransitionRouteGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTransitionRouteGroups(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> ListTransitionRouteGroups(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentstring

Required. The flow to list all transition route groups for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListTransitionRouteGroupsResponseTransitionRouteGroup

A pageable sequence of TransitionRouteGroup resources.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = TransitionRouteGroupsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]";
// Make the request
PagedEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> response = transitionRouteGroupsClient.ListTransitionRouteGroups(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (TransitionRouteGroup item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTransitionRouteGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TransitionRouteGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TransitionRouteGroup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TransitionRouteGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTransitionRouteGroupsAsync(FlowName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> ListTransitionRouteGroupsAsync(FlowName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentFlowName

Required. The flow to list all transition route groups for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListTransitionRouteGroupsResponseTransitionRouteGroup

A pageable asynchronous sequence of TransitionRouteGroup resources.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
FlowName parent = FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]");
// Make the request
PagedAsyncEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> response = transitionRouteGroupsClient.ListTransitionRouteGroupsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TransitionRouteGroup item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTransitionRouteGroupsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TransitionRouteGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TransitionRouteGroup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TransitionRouteGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTransitionRouteGroupsAsync(ListTransitionRouteGroupsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> ListTransitionRouteGroupsAsync(ListTransitionRouteGroupsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListTransitionRouteGroupsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListTransitionRouteGroupsResponseTransitionRouteGroup

A pageable asynchronous sequence of TransitionRouteGroup resources.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
ListTransitionRouteGroupsRequest request = new ListTransitionRouteGroupsRequest
{
    ParentAsFlowName = FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"),
    LanguageCode = "",
};
// Make the request
PagedAsyncEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> response = transitionRouteGroupsClient.ListTransitionRouteGroupsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TransitionRouteGroup item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTransitionRouteGroupsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TransitionRouteGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TransitionRouteGroup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TransitionRouteGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTransitionRouteGroupsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> ListTransitionRouteGroupsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentstring

Required. The flow to list all transition route groups for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListTransitionRouteGroupsResponseTransitionRouteGroup

A pageable asynchronous sequence of TransitionRouteGroup resources.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]";
// Make the request
PagedAsyncEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> response = transitionRouteGroupsClient.ListTransitionRouteGroupsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TransitionRouteGroup item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTransitionRouteGroupsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TransitionRouteGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TransitionRouteGroup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TransitionRouteGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateTransitionRouteGroup(TransitionRouteGroup, FieldMask, CallSettings)

public virtual TransitionRouteGroup UpdateTransitionRouteGroup(TransitionRouteGroup transitionRouteGroup, FieldMask updateMask, CallSettings callSettings = null)

Updates the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
transitionRouteGroupTransitionRouteGroup

Required. The transition route group to update.

updateMaskFieldMask

The mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TransitionRouteGroup

The RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = TransitionRouteGroupsClient.Create();
// Initialize request argument(s)
TransitionRouteGroup transitionRouteGroup = new TransitionRouteGroup();
FieldMask updateMask = new FieldMask();
// Make the request
TransitionRouteGroup response = transitionRouteGroupsClient.UpdateTransitionRouteGroup(transitionRouteGroup, updateMask);

UpdateTransitionRouteGroup(UpdateTransitionRouteGroupRequest, CallSettings)

public virtual TransitionRouteGroup UpdateTransitionRouteGroup(UpdateTransitionRouteGroupRequest request, CallSettings callSettings = null)

Updates the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestUpdateTransitionRouteGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TransitionRouteGroup

The RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = TransitionRouteGroupsClient.Create();
// Initialize request argument(s)
UpdateTransitionRouteGroupRequest request = new UpdateTransitionRouteGroupRequest
{
    TransitionRouteGroup = new TransitionRouteGroup(),
    UpdateMask = new FieldMask(),
    LanguageCode = "",
};
// Make the request
TransitionRouteGroup response = transitionRouteGroupsClient.UpdateTransitionRouteGroup(request);

UpdateTransitionRouteGroupAsync(TransitionRouteGroup, FieldMask, CallSettings)

public virtual Task<TransitionRouteGroup> UpdateTransitionRouteGroupAsync(TransitionRouteGroup transitionRouteGroup, FieldMask updateMask, CallSettings callSettings = null)

Updates the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
transitionRouteGroupTransitionRouteGroup

Required. The transition route group to update.

updateMaskFieldMask

The mask to control which fields get updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTransitionRouteGroup

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
TransitionRouteGroup transitionRouteGroup = new TransitionRouteGroup();
FieldMask updateMask = new FieldMask();
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.UpdateTransitionRouteGroupAsync(transitionRouteGroup, updateMask);

UpdateTransitionRouteGroupAsync(TransitionRouteGroup, FieldMask, CancellationToken)

public virtual Task<TransitionRouteGroup> UpdateTransitionRouteGroupAsync(TransitionRouteGroup transitionRouteGroup, FieldMask updateMask, CancellationToken cancellationToken)

Updates the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
transitionRouteGroupTransitionRouteGroup

Required. The transition route group to update.

updateMaskFieldMask

The mask to control which fields get updated.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskTransitionRouteGroup

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
TransitionRouteGroup transitionRouteGroup = new TransitionRouteGroup();
FieldMask updateMask = new FieldMask();
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.UpdateTransitionRouteGroupAsync(transitionRouteGroup, updateMask);

UpdateTransitionRouteGroupAsync(UpdateTransitionRouteGroupRequest, CallSettings)

public virtual Task<TransitionRouteGroup> UpdateTransitionRouteGroupAsync(UpdateTransitionRouteGroupRequest request, CallSettings callSettings = null)

Updates the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestUpdateTransitionRouteGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTransitionRouteGroup

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
UpdateTransitionRouteGroupRequest request = new UpdateTransitionRouteGroupRequest
{
    TransitionRouteGroup = new TransitionRouteGroup(),
    UpdateMask = new FieldMask(),
    LanguageCode = "",
};
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.UpdateTransitionRouteGroupAsync(request);

UpdateTransitionRouteGroupAsync(UpdateTransitionRouteGroupRequest, CancellationToken)

public virtual Task<TransitionRouteGroup> UpdateTransitionRouteGroupAsync(UpdateTransitionRouteGroupRequest request, CancellationToken cancellationToken)

Updates the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestUpdateTransitionRouteGroupRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskTransitionRouteGroup

A Task containing the RPC response.

Example
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
UpdateTransitionRouteGroupRequest request = new UpdateTransitionRouteGroupRequest
{
    TransitionRouteGroup = new TransitionRouteGroup(),
    UpdateMask = new FieldMask(),
    LanguageCode = "",
};
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.UpdateTransitionRouteGroupAsync(request);