Class TransitionRouteGroupsClient (1.3.0)

public abstract class TransitionRouteGroupsClient

TransitionRouteGroups client wrapper, for convenient use.

Inheritance

Object > TransitionRouteGroupsClient

Namespace

Google.Cloud.Dialogflow.Cx.V3

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
IReadOnlyList<String>
Remarks

GrpcClient

public virtual TransitionRouteGroups.TransitionRouteGroupsClient GrpcClient { get; }

The underlying gRPC TransitionRouteGroups client

Property Value
TypeDescription
TransitionRouteGroups.TransitionRouteGroupsClient

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(CancellationToken))

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
Task<TransitionRouteGroupsClient>

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

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
Task<TransitionRouteGroup>

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
Task<TransitionRouteGroup>

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

transitionRouteGroupTransitionRouteGroup

Required. The transition route group to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<TransitionRouteGroup>

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

transitionRouteGroupTransitionRouteGroup

Required. The transition route group to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<TransitionRouteGroup>

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

transitionRouteGroupTransitionRouteGroup

Required. The transition route group to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<TransitionRouteGroup>

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

transitionRouteGroupTransitionRouteGroup

Required. The transition route group to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<TransitionRouteGroup>

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/transitionRouteGroups/&amp;lt;Transition Route Group ID&amp;gt;.

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/transitionRouteGroups/&amp;lt;Transition Route Group ID&amp;gt;.

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/transitionRouteGroups/&amp;lt;Transition Route Group ID&amp;gt;.

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/transitionRouteGroups/&amp;lt;Transition Route Group ID&amp;gt;.

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/transitionRouteGroups/&amp;lt;Transition Route Group ID&amp;gt;.

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/transitionRouteGroups/&amp;lt;Transition Route Group ID&amp;gt;.

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/transitionRouteGroups/&amp;lt;Transition Route Group ID&amp;gt;.

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/transitionRouteGroups/&amp;lt;Transition Route Group ID&amp;gt;.

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
Task<TransitionRouteGroup>

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
Task<TransitionRouteGroup>

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/transitionRouteGroups/&amp;lt;Transition Route Group ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<TransitionRouteGroup>

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/transitionRouteGroups/&amp;lt;Transition Route Group ID&amp;gt;.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<TransitionRouteGroup>

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/transitionRouteGroups/&amp;lt;Transition Route Group ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<TransitionRouteGroup>

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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/transitionRouteGroups/&amp;lt;Transition Route Group ID&amp;gt;.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<TransitionRouteGroup>

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, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> ListTransitionRouteGroups(FlowName parent, string pageToken = null, int? pageSize = default(int? ), 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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

pageTokenString

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

pageSizeNullable<Int32>

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
PagedEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup>

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
PagedEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup>

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, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> ListTransitionRouteGroups(string parent, string pageToken = null, int? pageSize = default(int? ), 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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

pageTokenString

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

pageSizeNullable<Int32>

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
PagedEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup>

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, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> ListTransitionRouteGroupsAsync(FlowName parent, string pageToken = null, int? pageSize = default(int? ), 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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

pageTokenString

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

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup>

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
PagedAsyncEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup>

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, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> ListTransitionRouteGroupsAsync(string parent, string pageToken = null, int? pageSize = default(int? ), 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/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

pageTokenString

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

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup>

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
Task<TransitionRouteGroup>

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
Task<TransitionRouteGroup>

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
Task<TransitionRouteGroup>

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
Task<TransitionRouteGroup>

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);