public abstract class TransitionRouteGroupsClient
Reference documentation and code samples for the Dialogflow v3 API class TransitionRouteGroupsClient.
TransitionRouteGroups client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Dialogflow.Cx.V3Assembly
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 | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default TransitionRouteGroups scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default TransitionRouteGroups scopes are:
GrpcClient
public virtual TransitionRouteGroups.TransitionRouteGroupsClient GrpcClient { get; }
The underlying gRPC TransitionRouteGroups client
Property Value | |
---|---|
Type | Description |
TransitionRouteGroupsTransitionRouteGroupsClient |
LocationsClient
public virtual LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
cancellationToken |
CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroupsClient |
The task representing the created TransitionRouteGroupsClient. |
CreateTransitionRouteGroup(AgentName, TransitionRouteGroup, CallSettings)
public virtual TransitionRouteGroup CreateTransitionRouteGroup(AgentName 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 | |
---|---|
Name | Description |
parent |
AgentName Required. The flow to create an
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
for. Format:
|
transitionRouteGroup |
TransitionRouteGroup Required. The transition route group to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TransitionRouteGroup |
The RPC response. |
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = TransitionRouteGroupsClient.Create();
// Initialize request argument(s)
AgentName parent = AgentName.FromProjectLocationAgent("[PROJECT]", "[LOCATION]", "[AGENT]");
TransitionRouteGroup transitionRouteGroup = new TransitionRouteGroup();
// Make the request
TransitionRouteGroup response = transitionRouteGroupsClient.CreateTransitionRouteGroup(parent, transitionRouteGroup);
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 | |
---|---|
Name | Description |
request |
CreateTransitionRouteGroupRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TransitionRouteGroup |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
FlowName Required. The flow to create an
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
for. Format:
|
transitionRouteGroup |
TransitionRouteGroup Required. The transition route group to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TransitionRouteGroup |
The RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. The flow to create an
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
for. Format:
|
transitionRouteGroup |
TransitionRouteGroup Required. The transition route group to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TransitionRouteGroup |
The RPC response. |
// 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(AgentName, TransitionRouteGroup, CallSettings)
public virtual Task<TransitionRouteGroup> CreateTransitionRouteGroupAsync(AgentName 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 | |
---|---|
Name | Description |
parent |
AgentName Required. The flow to create an
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
for. Format:
|
transitionRouteGroup |
TransitionRouteGroup Required. The transition route group to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
AgentName parent = AgentName.FromProjectLocationAgent("[PROJECT]", "[LOCATION]", "[AGENT]");
TransitionRouteGroup transitionRouteGroup = new TransitionRouteGroup();
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.CreateTransitionRouteGroupAsync(parent, transitionRouteGroup);
CreateTransitionRouteGroupAsync(AgentName, TransitionRouteGroup, CancellationToken)
public virtual Task<TransitionRouteGroup> CreateTransitionRouteGroupAsync(AgentName 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 | |
---|---|
Name | Description |
parent |
AgentName Required. The flow to create an
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
for. Format:
|
transitionRouteGroup |
TransitionRouteGroup Required. The transition route group to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
AgentName parent = AgentName.FromProjectLocationAgent("[PROJECT]", "[LOCATION]", "[AGENT]");
TransitionRouteGroup transitionRouteGroup = new TransitionRouteGroup();
// Make the request
TransitionRouteGroup response = await transitionRouteGroupsClient.CreateTransitionRouteGroupAsync(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 | |
---|---|
Name | Description |
request |
CreateTransitionRouteGroupRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
CreateTransitionRouteGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
FlowName Required. The flow to create an
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
for. Format:
|
transitionRouteGroup |
TransitionRouteGroup Required. The transition route group to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
FlowName Required. The flow to create an
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
for. Format:
|
transitionRouteGroup |
TransitionRouteGroup Required. The transition route group to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. The flow to create an
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
for. Format:
|
transitionRouteGroup |
TransitionRouteGroup Required. The transition route group to create. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. The flow to create an
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
for. Format:
|
transitionRouteGroup |
TransitionRouteGroup Required. The transition route group to create. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
DeleteTransitionRouteGroupRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
name |
TransitionRouteGroupName Required. The name of the
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
to delete. Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
name |
string Required. The name of the
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
to delete. Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
request |
DeleteTransitionRouteGroupRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
DeleteTransitionRouteGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name |
TransitionRouteGroupName Required. The name of the
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
to delete. Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name |
TransitionRouteGroupName Required. The name of the
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
to delete. Format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name |
string Required. The name of the
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
to delete. Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name |
string Required. The name of the
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
to delete. Format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
GetTransitionRouteGroupRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TransitionRouteGroup |
The RPC response. |
// 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 | |
---|---|
Name | Description |
name |
TransitionRouteGroupName Required. The name of the
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TransitionRouteGroup |
The RPC response. |
// 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 | |
---|---|
Name | Description |
name |
string Required. The name of the
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TransitionRouteGroup |
The RPC response. |
// 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 | |
---|---|
Name | Description |
request |
GetTransitionRouteGroupRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
GetTransitionRouteGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name |
TransitionRouteGroupName Required. The name of the
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name |
TransitionRouteGroupName Required. The name of the
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
Format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name |
string Required. The name of the
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name |
string Required. The name of the
[TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
Format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// 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(AgentName, string, int?, CallSettings)
public virtual PagedEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> ListTransitionRouteGroups(AgentName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns the list of all transition route groups in the specified flow.
Parameters | |
---|---|
Name | Description |
parent |
AgentName Required. The flow to list all transition route groups for.
Format:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListTransitionRouteGroupsResponseTransitionRouteGroup |
A pageable sequence of TransitionRouteGroup resources. |
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = TransitionRouteGroupsClient.Create();
// Initialize request argument(s)
AgentName parent = AgentName.FromProjectLocationAgent("[PROJECT]", "[LOCATION]", "[AGENT]");
// 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(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 | |
---|---|
Name | Description |
parent |
FlowName Required. The flow to list all transition route groups for.
Format:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListTransitionRouteGroupsResponseTransitionRouteGroup |
A pageable sequence of TransitionRouteGroup resources. |
// 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 | |
---|---|
Name | Description |
request |
ListTransitionRouteGroupsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListTransitionRouteGroupsResponseTransitionRouteGroup |
A pageable sequence of TransitionRouteGroup resources. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. The flow to list all transition route groups for.
Format:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListTransitionRouteGroupsResponseTransitionRouteGroup |
A pageable sequence of TransitionRouteGroup resources. |
// 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(AgentName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListTransitionRouteGroupsResponse, TransitionRouteGroup> ListTransitionRouteGroupsAsync(AgentName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns the list of all transition route groups in the specified flow.
Parameters | |
---|---|
Name | Description |
parent |
AgentName Required. The flow to list all transition route groups for.
Format:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListTransitionRouteGroupsResponseTransitionRouteGroup |
A pageable asynchronous sequence of TransitionRouteGroup resources. |
// Create client
TransitionRouteGroupsClient transitionRouteGroupsClient = await TransitionRouteGroupsClient.CreateAsync();
// Initialize request argument(s)
AgentName parent = AgentName.FromProjectLocationAgent("[PROJECT]", "[LOCATION]", "[AGENT]");
// 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(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 | |
---|---|
Name | Description |
parent |
FlowName Required. The flow to list all transition route groups for.
Format:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListTransitionRouteGroupsResponseTransitionRouteGroup |
A pageable asynchronous sequence of TransitionRouteGroup resources. |
// 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 | |
---|---|
Name | Description |
request |
ListTransitionRouteGroupsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListTransitionRouteGroupsResponseTransitionRouteGroup |
A pageable asynchronous sequence of TransitionRouteGroup resources. |
// 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 | |
---|---|
Name | Description |
parent |
string Required. The flow to list all transition route groups for.
Format:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListTransitionRouteGroupsResponseTransitionRouteGroup |
A pageable asynchronous sequence of TransitionRouteGroup resources. |
// 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 | |
---|---|
Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
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 | |
---|---|
Name | Description |
transitionRouteGroup |
TransitionRouteGroup Required. The transition route group to update. |
updateMask |
FieldMask The mask to control which fields get updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TransitionRouteGroup |
The RPC response. |
// 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 | |
---|---|
Name | Description |
request |
UpdateTransitionRouteGroupRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TransitionRouteGroup |
The RPC response. |
// 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 | |
---|---|
Name | Description |
transitionRouteGroup |
TransitionRouteGroup Required. The transition route group to update. |
updateMask |
FieldMask The mask to control which fields get updated. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
transitionRouteGroup |
TransitionRouteGroup Required. The transition route group to update. |
updateMask |
FieldMask The mask to control which fields get updated. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
UpdateTransitionRouteGroupRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request |
UpdateTransitionRouteGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTransitionRouteGroup |
A Task containing the RPC response. |
// 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);