public abstract class IntentsClient
Intents client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Dialogflow.V2Assembly
Google.Cloud.Dialogflow.V2.dll
Remarks
Service for managing [Intents][google.cloud.dialogflow.v2.Intent].
Properties
BatchDeleteIntentsOperationsClient
public virtual OperationsClient BatchDeleteIntentsOperationsClient { get; }
The long-running operations client for BatchDeleteIntents
.
Type | Description |
OperationsClient |
BatchUpdateIntentsOperationsClient
public virtual OperationsClient BatchUpdateIntentsOperationsClient { get; }
The long-running operations client for BatchUpdateIntents
.
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the Intents service, which is a host of "dialogflow.googleapis.com" and a port of 443.
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default Intents scopes.
Type | Description |
IReadOnlyList<String> |
The default Intents scopes are:
GrpcClient
public virtual Intents.IntentsClient GrpcClient { get; }
The underlying gRPC Intents client
Type | Description |
Intents.IntentsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Type | Description |
ServiceMetadata |
Methods
BatchDeleteIntents(AgentName, IEnumerable<Intent>, CallSettings)
public virtual Operation<Empty, Struct> BatchDeleteIntents(AgentName parent, IEnumerable<Intent> intents, CallSettings callSettings = null)
Deletes intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: An Empty message
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | AgentName Required. The name of the agent to delete all entities types for. Format:
|
intents | IEnumerable<Intent> Required. The collection of intents to delete. Only intent |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Empty, Struct> | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
AgentName parent = AgentName.FromProject("[PROJECT]");
IEnumerable<Intent> intents = new Intent[] { new Intent(), };
// Make the request
Operation<Empty, Struct> response = intentsClient.BatchDeleteIntents(parent, intents);
// Poll until the returned long-running operation is complete
Operation<Empty, Struct> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, Struct> retrievedResponse = intentsClient.PollOnceBatchDeleteIntents(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchDeleteIntents(BatchDeleteIntentsRequest, CallSettings)
public virtual Operation<Empty, Struct> BatchDeleteIntents(BatchDeleteIntentsRequest request, CallSettings callSettings = null)
Deletes intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: An Empty message
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
request | BatchDeleteIntentsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Empty, Struct> | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
BatchDeleteIntentsRequest request = new BatchDeleteIntentsRequest
{
ParentAsAgentName = AgentName.FromProject("[PROJECT]"),
Intents = { new Intent(), },
};
// Make the request
Operation<Empty, Struct> response = intentsClient.BatchDeleteIntents(request);
// Poll until the returned long-running operation is complete
Operation<Empty, Struct> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, Struct> retrievedResponse = intentsClient.PollOnceBatchDeleteIntents(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchDeleteIntents(String, IEnumerable<Intent>, CallSettings)
public virtual Operation<Empty, Struct> BatchDeleteIntents(string parent, IEnumerable<Intent> intents, CallSettings callSettings = null)
Deletes intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: An Empty message
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | String Required. The name of the agent to delete all entities types for. Format:
|
intents | IEnumerable<Intent> Required. The collection of intents to delete. Only intent |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Empty, Struct> | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/agent";
IEnumerable<Intent> intents = new Intent[] { new Intent(), };
// Make the request
Operation<Empty, Struct> response = intentsClient.BatchDeleteIntents(parent, intents);
// Poll until the returned long-running operation is complete
Operation<Empty, Struct> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, Struct> retrievedResponse = intentsClient.PollOnceBatchDeleteIntents(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchDeleteIntentsAsync(AgentName, IEnumerable<Intent>, CallSettings)
public virtual Task<Operation<Empty, Struct>> BatchDeleteIntentsAsync(AgentName parent, IEnumerable<Intent> intents, CallSettings callSettings = null)
Deletes intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: An Empty message
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | AgentName Required. The name of the agent to delete all entities types for. Format:
|
intents | IEnumerable<Intent> Required. The collection of intents to delete. Only intent |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<Empty, Struct>> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
AgentName parent = AgentName.FromProject("[PROJECT]");
IEnumerable<Intent> intents = new Intent[] { new Intent(), };
// Make the request
Operation<Empty, Struct> response = await intentsClient.BatchDeleteIntentsAsync(parent, intents);
// Poll until the returned long-running operation is complete
Operation<Empty, Struct> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, Struct> retrievedResponse = await intentsClient.PollOnceBatchDeleteIntentsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchDeleteIntentsAsync(AgentName, IEnumerable<Intent>, CancellationToken)
public virtual Task<Operation<Empty, Struct>> BatchDeleteIntentsAsync(AgentName parent, IEnumerable<Intent> intents, CancellationToken cancellationToken)
Deletes intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: An Empty message
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | AgentName Required. The name of the agent to delete all entities types for. Format:
|
intents | IEnumerable<Intent> Required. The collection of intents to delete. Only intent |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<Empty, Struct>> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
AgentName parent = AgentName.FromProject("[PROJECT]");
IEnumerable<Intent> intents = new Intent[] { new Intent(), };
// Make the request
Operation<Empty, Struct> response = await intentsClient.BatchDeleteIntentsAsync(parent, intents);
// Poll until the returned long-running operation is complete
Operation<Empty, Struct> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, Struct> retrievedResponse = await intentsClient.PollOnceBatchDeleteIntentsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchDeleteIntentsAsync(BatchDeleteIntentsRequest, CallSettings)
public virtual Task<Operation<Empty, Struct>> BatchDeleteIntentsAsync(BatchDeleteIntentsRequest request, CallSettings callSettings = null)
Deletes intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: An Empty message
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
request | BatchDeleteIntentsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<Empty, Struct>> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteIntentsRequest request = new BatchDeleteIntentsRequest
{
ParentAsAgentName = AgentName.FromProject("[PROJECT]"),
Intents = { new Intent(), },
};
// Make the request
Operation<Empty, Struct> response = await intentsClient.BatchDeleteIntentsAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, Struct> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, Struct> retrievedResponse = await intentsClient.PollOnceBatchDeleteIntentsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchDeleteIntentsAsync(BatchDeleteIntentsRequest, CancellationToken)
public virtual Task<Operation<Empty, Struct>> BatchDeleteIntentsAsync(BatchDeleteIntentsRequest request, CancellationToken cancellationToken)
Deletes intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: An Empty message
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
request | BatchDeleteIntentsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<Empty, Struct>> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteIntentsRequest request = new BatchDeleteIntentsRequest
{
ParentAsAgentName = AgentName.FromProject("[PROJECT]"),
Intents = { new Intent(), },
};
// Make the request
Operation<Empty, Struct> response = await intentsClient.BatchDeleteIntentsAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, Struct> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, Struct> retrievedResponse = await intentsClient.PollOnceBatchDeleteIntentsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchDeleteIntentsAsync(String, IEnumerable<Intent>, CallSettings)
public virtual Task<Operation<Empty, Struct>> BatchDeleteIntentsAsync(string parent, IEnumerable<Intent> intents, CallSettings callSettings = null)
Deletes intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: An Empty message
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | String Required. The name of the agent to delete all entities types for. Format:
|
intents | IEnumerable<Intent> Required. The collection of intents to delete. Only intent |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<Empty, Struct>> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/agent";
IEnumerable<Intent> intents = new Intent[] { new Intent(), };
// Make the request
Operation<Empty, Struct> response = await intentsClient.BatchDeleteIntentsAsync(parent, intents);
// Poll until the returned long-running operation is complete
Operation<Empty, Struct> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, Struct> retrievedResponse = await intentsClient.PollOnceBatchDeleteIntentsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchDeleteIntentsAsync(String, IEnumerable<Intent>, CancellationToken)
public virtual Task<Operation<Empty, Struct>> BatchDeleteIntentsAsync(string parent, IEnumerable<Intent> intents, CancellationToken cancellationToken)
Deletes intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: An Empty message
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | String Required. The name of the agent to delete all entities types for. Format:
|
intents | IEnumerable<Intent> Required. The collection of intents to delete. Only intent |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<Empty, Struct>> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/agent";
IEnumerable<Intent> intents = new Intent[] { new Intent(), };
// Make the request
Operation<Empty, Struct> response = await intentsClient.BatchDeleteIntentsAsync(parent, intents);
// Poll until the returned long-running operation is complete
Operation<Empty, Struct> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, Struct> retrievedResponse = await intentsClient.PollOnceBatchDeleteIntentsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchUpdateIntents(AgentName, IntentBatch, CallSettings)
public virtual Operation<BatchUpdateIntentsResponse, Struct> BatchUpdateIntents(AgentName parent, IntentBatch intentBatchInline, CallSettings callSettings = null)
Updates/Creates multiple intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | AgentName Required. The name of the agent to update or create intents in.
Format: |
intentBatchInline | IntentBatch The collection of intents to update or create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<BatchUpdateIntentsResponse, Struct> | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
AgentName parent = AgentName.FromProject("[PROJECT]");
IntentBatch intentBatchInline = new IntentBatch();
// Make the request
Operation<BatchUpdateIntentsResponse, Struct> response = intentsClient.BatchUpdateIntents(parent, intentBatchInline);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateIntentsResponse, Struct> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchUpdateIntentsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchUpdateIntentsResponse, Struct> retrievedResponse = intentsClient.PollOnceBatchUpdateIntents(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchUpdateIntentsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateIntents(AgentName, String, CallSettings)
public virtual Operation<BatchUpdateIntentsResponse, Struct> BatchUpdateIntents(AgentName parent, string intentBatchUri, CallSettings callSettings = null)
Updates/Creates multiple intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | AgentName Required. The name of the agent to update or create intents in.
Format: |
intentBatchUri | String The URI to a Google Cloud Storage file containing intents to update or create. The file format can either be a serialized proto (of IntentBatch type) or JSON object. Note: The URI must start with "gs://". |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<BatchUpdateIntentsResponse, Struct> | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
AgentName parent = AgentName.FromProject("[PROJECT]");
string intentBatchUri = "";
// Make the request
Operation<BatchUpdateIntentsResponse, Struct> response = intentsClient.BatchUpdateIntents(parent, intentBatchUri);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateIntentsResponse, Struct> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchUpdateIntentsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchUpdateIntentsResponse, Struct> retrievedResponse = intentsClient.PollOnceBatchUpdateIntents(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchUpdateIntentsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateIntents(BatchUpdateIntentsRequest, CallSettings)
public virtual Operation<BatchUpdateIntentsResponse, Struct> BatchUpdateIntents(BatchUpdateIntentsRequest request, CallSettings callSettings = null)
Updates/Creates multiple intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
request | BatchUpdateIntentsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<BatchUpdateIntentsResponse, Struct> | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
BatchUpdateIntentsRequest request = new BatchUpdateIntentsRequest
{
ParentAsAgentName = AgentName.FromProject("[PROJECT]"),
IntentBatchUri = "",
LanguageCode = "",
UpdateMask = new FieldMask(),
IntentView = IntentView.Unspecified,
};
// Make the request
Operation<BatchUpdateIntentsResponse, Struct> response = intentsClient.BatchUpdateIntents(request);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateIntentsResponse, Struct> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchUpdateIntentsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchUpdateIntentsResponse, Struct> retrievedResponse = intentsClient.PollOnceBatchUpdateIntents(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchUpdateIntentsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateIntents(String, IntentBatch, CallSettings)
public virtual Operation<BatchUpdateIntentsResponse, Struct> BatchUpdateIntents(string parent, IntentBatch intentBatchInline, CallSettings callSettings = null)
Updates/Creates multiple intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | String Required. The name of the agent to update or create intents in.
Format: |
intentBatchInline | IntentBatch The collection of intents to update or create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<BatchUpdateIntentsResponse, Struct> | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/agent";
IntentBatch intentBatchInline = new IntentBatch();
// Make the request
Operation<BatchUpdateIntentsResponse, Struct> response = intentsClient.BatchUpdateIntents(parent, intentBatchInline);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateIntentsResponse, Struct> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchUpdateIntentsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchUpdateIntentsResponse, Struct> retrievedResponse = intentsClient.PollOnceBatchUpdateIntents(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchUpdateIntentsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateIntents(String, String, CallSettings)
public virtual Operation<BatchUpdateIntentsResponse, Struct> BatchUpdateIntents(string parent, string intentBatchUri, CallSettings callSettings = null)
Updates/Creates multiple intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | String Required. The name of the agent to update or create intents in.
Format: |
intentBatchUri | String The URI to a Google Cloud Storage file containing intents to update or create. The file format can either be a serialized proto (of IntentBatch type) or JSON object. Note: The URI must start with "gs://". |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<BatchUpdateIntentsResponse, Struct> | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/agent";
string intentBatchUri = "";
// Make the request
Operation<BatchUpdateIntentsResponse, Struct> response = intentsClient.BatchUpdateIntents(parent, intentBatchUri);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateIntentsResponse, Struct> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BatchUpdateIntentsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchUpdateIntentsResponse, Struct> retrievedResponse = intentsClient.PollOnceBatchUpdateIntents(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchUpdateIntentsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateIntentsAsync(AgentName, IntentBatch, CallSettings)
public virtual Task<Operation<BatchUpdateIntentsResponse, Struct>> BatchUpdateIntentsAsync(AgentName parent, IntentBatch intentBatchInline, CallSettings callSettings = null)
Updates/Creates multiple intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | AgentName Required. The name of the agent to update or create intents in.
Format: |
intentBatchInline | IntentBatch The collection of intents to update or create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<BatchUpdateIntentsResponse, Struct>> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
AgentName parent = AgentName.FromProject("[PROJECT]");
IntentBatch intentBatchInline = new IntentBatch();
// Make the request
Operation<BatchUpdateIntentsResponse, Struct> response = await intentsClient.BatchUpdateIntentsAsync(parent, intentBatchInline);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateIntentsResponse, Struct> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateIntentsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchUpdateIntentsResponse, Struct> retrievedResponse = await intentsClient.PollOnceBatchUpdateIntentsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchUpdateIntentsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateIntentsAsync(AgentName, IntentBatch, CancellationToken)
public virtual Task<Operation<BatchUpdateIntentsResponse, Struct>> BatchUpdateIntentsAsync(AgentName parent, IntentBatch intentBatchInline, CancellationToken cancellationToken)
Updates/Creates multiple intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | AgentName Required. The name of the agent to update or create intents in.
Format: |
intentBatchInline | IntentBatch The collection of intents to update or create. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<BatchUpdateIntentsResponse, Struct>> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
AgentName parent = AgentName.FromProject("[PROJECT]");
IntentBatch intentBatchInline = new IntentBatch();
// Make the request
Operation<BatchUpdateIntentsResponse, Struct> response = await intentsClient.BatchUpdateIntentsAsync(parent, intentBatchInline);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateIntentsResponse, Struct> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateIntentsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchUpdateIntentsResponse, Struct> retrievedResponse = await intentsClient.PollOnceBatchUpdateIntentsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchUpdateIntentsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateIntentsAsync(AgentName, String, CallSettings)
public virtual Task<Operation<BatchUpdateIntentsResponse, Struct>> BatchUpdateIntentsAsync(AgentName parent, string intentBatchUri, CallSettings callSettings = null)
Updates/Creates multiple intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | AgentName Required. The name of the agent to update or create intents in.
Format: |
intentBatchUri | String The URI to a Google Cloud Storage file containing intents to update or create. The file format can either be a serialized proto (of IntentBatch type) or JSON object. Note: The URI must start with "gs://". |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<BatchUpdateIntentsResponse, Struct>> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
AgentName parent = AgentName.FromProject("[PROJECT]");
string intentBatchUri = "";
// Make the request
Operation<BatchUpdateIntentsResponse, Struct> response = await intentsClient.BatchUpdateIntentsAsync(parent, intentBatchUri);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateIntentsResponse, Struct> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateIntentsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchUpdateIntentsResponse, Struct> retrievedResponse = await intentsClient.PollOnceBatchUpdateIntentsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchUpdateIntentsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateIntentsAsync(AgentName, String, CancellationToken)
public virtual Task<Operation<BatchUpdateIntentsResponse, Struct>> BatchUpdateIntentsAsync(AgentName parent, string intentBatchUri, CancellationToken cancellationToken)
Updates/Creates multiple intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | AgentName Required. The name of the agent to update or create intents in.
Format: |
intentBatchUri | String The URI to a Google Cloud Storage file containing intents to update or create. The file format can either be a serialized proto (of IntentBatch type) or JSON object. Note: The URI must start with "gs://". |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<BatchUpdateIntentsResponse, Struct>> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
AgentName parent = AgentName.FromProject("[PROJECT]");
string intentBatchUri = "";
// Make the request
Operation<BatchUpdateIntentsResponse, Struct> response = await intentsClient.BatchUpdateIntentsAsync(parent, intentBatchUri);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateIntentsResponse, Struct> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateIntentsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchUpdateIntentsResponse, Struct> retrievedResponse = await intentsClient.PollOnceBatchUpdateIntentsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchUpdateIntentsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateIntentsAsync(BatchUpdateIntentsRequest, CallSettings)
public virtual Task<Operation<BatchUpdateIntentsResponse, Struct>> BatchUpdateIntentsAsync(BatchUpdateIntentsRequest request, CallSettings callSettings = null)
Updates/Creates multiple intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
request | BatchUpdateIntentsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<BatchUpdateIntentsResponse, Struct>> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateIntentsRequest request = new BatchUpdateIntentsRequest
{
ParentAsAgentName = AgentName.FromProject("[PROJECT]"),
IntentBatchUri = "",
LanguageCode = "",
UpdateMask = new FieldMask(),
IntentView = IntentView.Unspecified,
};
// Make the request
Operation<BatchUpdateIntentsResponse, Struct> response = await intentsClient.BatchUpdateIntentsAsync(request);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateIntentsResponse, Struct> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateIntentsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchUpdateIntentsResponse, Struct> retrievedResponse = await intentsClient.PollOnceBatchUpdateIntentsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchUpdateIntentsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateIntentsAsync(BatchUpdateIntentsRequest, CancellationToken)
public virtual Task<Operation<BatchUpdateIntentsResponse, Struct>> BatchUpdateIntentsAsync(BatchUpdateIntentsRequest request, CancellationToken cancellationToken)
Updates/Creates multiple intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
request | BatchUpdateIntentsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<BatchUpdateIntentsResponse, Struct>> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateIntentsRequest request = new BatchUpdateIntentsRequest
{
ParentAsAgentName = AgentName.FromProject("[PROJECT]"),
IntentBatchUri = "",
LanguageCode = "",
UpdateMask = new FieldMask(),
IntentView = IntentView.Unspecified,
};
// Make the request
Operation<BatchUpdateIntentsResponse, Struct> response = await intentsClient.BatchUpdateIntentsAsync(request);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateIntentsResponse, Struct> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateIntentsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchUpdateIntentsResponse, Struct> retrievedResponse = await intentsClient.PollOnceBatchUpdateIntentsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchUpdateIntentsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateIntentsAsync(String, IntentBatch, CallSettings)
public virtual Task<Operation<BatchUpdateIntentsResponse, Struct>> BatchUpdateIntentsAsync(string parent, IntentBatch intentBatchInline, CallSettings callSettings = null)
Updates/Creates multiple intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | String Required. The name of the agent to update or create intents in.
Format: |
intentBatchInline | IntentBatch The collection of intents to update or create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<BatchUpdateIntentsResponse, Struct>> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/agent";
IntentBatch intentBatchInline = new IntentBatch();
// Make the request
Operation<BatchUpdateIntentsResponse, Struct> response = await intentsClient.BatchUpdateIntentsAsync(parent, intentBatchInline);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateIntentsResponse, Struct> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateIntentsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchUpdateIntentsResponse, Struct> retrievedResponse = await intentsClient.PollOnceBatchUpdateIntentsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchUpdateIntentsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateIntentsAsync(String, IntentBatch, CancellationToken)
public virtual Task<Operation<BatchUpdateIntentsResponse, Struct>> BatchUpdateIntentsAsync(string parent, IntentBatch intentBatchInline, CancellationToken cancellationToken)
Updates/Creates multiple intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | String Required. The name of the agent to update or create intents in.
Format: |
intentBatchInline | IntentBatch The collection of intents to update or create. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<BatchUpdateIntentsResponse, Struct>> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/agent";
IntentBatch intentBatchInline = new IntentBatch();
// Make the request
Operation<BatchUpdateIntentsResponse, Struct> response = await intentsClient.BatchUpdateIntentsAsync(parent, intentBatchInline);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateIntentsResponse, Struct> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateIntentsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchUpdateIntentsResponse, Struct> retrievedResponse = await intentsClient.PollOnceBatchUpdateIntentsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchUpdateIntentsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateIntentsAsync(String, String, CallSettings)
public virtual Task<Operation<BatchUpdateIntentsResponse, Struct>> BatchUpdateIntentsAsync(string parent, string intentBatchUri, CallSettings callSettings = null)
Updates/Creates multiple intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | String Required. The name of the agent to update or create intents in.
Format: |
intentBatchUri | String The URI to a Google Cloud Storage file containing intents to update or create. The file format can either be a serialized proto (of IntentBatch type) or JSON object. Note: The URI must start with "gs://". |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<BatchUpdateIntentsResponse, Struct>> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/agent";
string intentBatchUri = "";
// Make the request
Operation<BatchUpdateIntentsResponse, Struct> response = await intentsClient.BatchUpdateIntentsAsync(parent, intentBatchUri);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateIntentsResponse, Struct> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateIntentsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchUpdateIntentsResponse, Struct> retrievedResponse = await intentsClient.PollOnceBatchUpdateIntentsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchUpdateIntentsResponse retrievedResult = retrievedResponse.Result;
}
BatchUpdateIntentsAsync(String, String, CancellationToken)
public virtual Task<Operation<BatchUpdateIntentsResponse, Struct>> BatchUpdateIntentsAsync(string parent, string intentBatchUri, CancellationToken cancellationToken)
Updates/Creates multiple intents in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | String Required. The name of the agent to update or create intents in.
Format: |
intentBatchUri | String The URI to a Google Cloud Storage file containing intents to update or create. The file format can either be a serialized proto (of IntentBatch type) or JSON object. Note: The URI must start with "gs://". |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<BatchUpdateIntentsResponse, Struct>> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/agent";
string intentBatchUri = "";
// Make the request
Operation<BatchUpdateIntentsResponse, Struct> response = await intentsClient.BatchUpdateIntentsAsync(parent, intentBatchUri);
// Poll until the returned long-running operation is complete
Operation<BatchUpdateIntentsResponse, Struct> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BatchUpdateIntentsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BatchUpdateIntentsResponse, Struct> retrievedResponse = await intentsClient.PollOnceBatchUpdateIntentsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BatchUpdateIntentsResponse retrievedResult = retrievedResponse.Result;
}
Create()
public static IntentsClient Create()
Synchronously creates a IntentsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use IntentsClientBuilder.
Type | Description |
IntentsClient | The created IntentsClient. |
CreateAsync(CancellationToken)
public static Task<IntentsClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
Asynchronously creates a IntentsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use IntentsClientBuilder.
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Type | Description |
Task<IntentsClient> | The task representing the created IntentsClient. |
CreateIntent(AgentName, Intent, CallSettings)
public virtual Intent CreateIntent(AgentName parent, Intent intent, CallSettings callSettings = null)
Creates an intent in the specified agent.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | AgentName Required. The agent to create a intent for.
Format: |
intent | Intent Required. The intent to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Intent | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
AgentName parent = AgentName.FromProject("[PROJECT]");
Intent intent = new Intent();
// Make the request
Intent response = intentsClient.CreateIntent(parent, intent);
CreateIntent(AgentName, Intent, String, CallSettings)
public virtual Intent CreateIntent(AgentName parent, Intent intent, string languageCode, CallSettings callSettings = null)
Creates an intent in the specified agent.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | AgentName Required. The agent to create a intent for.
Format: |
intent | Intent Required. The intent to create. |
languageCode | String Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Intent | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
AgentName parent = AgentName.FromProject("[PROJECT]");
Intent intent = new Intent();
string languageCode = "";
// Make the request
Intent response = intentsClient.CreateIntent(parent, intent, languageCode);
CreateIntent(CreateIntentRequest, CallSettings)
public virtual Intent CreateIntent(CreateIntentRequest request, CallSettings callSettings = null)
Creates an intent in the specified agent.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
request | CreateIntentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Intent | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
CreateIntentRequest request = new CreateIntentRequest
{
ParentAsAgentName = AgentName.FromProject("[PROJECT]"),
Intent = new Intent(),
LanguageCode = "",
IntentView = IntentView.Unspecified,
};
// Make the request
Intent response = intentsClient.CreateIntent(request);
CreateIntent(String, Intent, CallSettings)
public virtual Intent CreateIntent(string parent, Intent intent, CallSettings callSettings = null)
Creates an intent in the specified agent.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | String Required. The agent to create a intent for.
Format: |
intent | Intent Required. The intent to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Intent | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/agent";
Intent intent = new Intent();
// Make the request
Intent response = intentsClient.CreateIntent(parent, intent);
CreateIntent(String, Intent, String, CallSettings)
public virtual Intent CreateIntent(string parent, Intent intent, string languageCode, CallSettings callSettings = null)
Creates an intent in the specified agent.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | String Required. The agent to create a intent for.
Format: |
intent | Intent Required. The intent to create. |
languageCode | String Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Intent | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/agent";
Intent intent = new Intent();
string languageCode = "";
// Make the request
Intent response = intentsClient.CreateIntent(parent, intent, languageCode);
CreateIntentAsync(AgentName, Intent, CallSettings)
public virtual Task<Intent> CreateIntentAsync(AgentName parent, Intent intent, CallSettings callSettings = null)
Creates an intent in the specified agent.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | AgentName Required. The agent to create a intent for.
Format: |
intent | Intent Required. The intent to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
AgentName parent = AgentName.FromProject("[PROJECT]");
Intent intent = new Intent();
// Make the request
Intent response = await intentsClient.CreateIntentAsync(parent, intent);
CreateIntentAsync(AgentName, Intent, String, CallSettings)
public virtual Task<Intent> CreateIntentAsync(AgentName parent, Intent intent, string languageCode, CallSettings callSettings = null)
Creates an intent in the specified agent.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | AgentName Required. The agent to create a intent for.
Format: |
intent | Intent Required. The intent to create. |
languageCode | String Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
AgentName parent = AgentName.FromProject("[PROJECT]");
Intent intent = new Intent();
string languageCode = "";
// Make the request
Intent response = await intentsClient.CreateIntentAsync(parent, intent, languageCode);
CreateIntentAsync(AgentName, Intent, String, CancellationToken)
public virtual Task<Intent> CreateIntentAsync(AgentName parent, Intent intent, string languageCode, CancellationToken cancellationToken)
Creates an intent in the specified agent.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | AgentName Required. The agent to create a intent for.
Format: |
intent | Intent Required. The intent to create. |
languageCode | String Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
AgentName parent = AgentName.FromProject("[PROJECT]");
Intent intent = new Intent();
string languageCode = "";
// Make the request
Intent response = await intentsClient.CreateIntentAsync(parent, intent, languageCode);
CreateIntentAsync(AgentName, Intent, CancellationToken)
public virtual Task<Intent> CreateIntentAsync(AgentName parent, Intent intent, CancellationToken cancellationToken)
Creates an intent in the specified agent.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | AgentName Required. The agent to create a intent for.
Format: |
intent | Intent Required. The intent to create. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
AgentName parent = AgentName.FromProject("[PROJECT]");
Intent intent = new Intent();
// Make the request
Intent response = await intentsClient.CreateIntentAsync(parent, intent);
CreateIntentAsync(CreateIntentRequest, CallSettings)
public virtual Task<Intent> CreateIntentAsync(CreateIntentRequest request, CallSettings callSettings = null)
Creates an intent in the specified agent.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
request | CreateIntentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
CreateIntentRequest request = new CreateIntentRequest
{
ParentAsAgentName = AgentName.FromProject("[PROJECT]"),
Intent = new Intent(),
LanguageCode = "",
IntentView = IntentView.Unspecified,
};
// Make the request
Intent response = await intentsClient.CreateIntentAsync(request);
CreateIntentAsync(CreateIntentRequest, CancellationToken)
public virtual Task<Intent> CreateIntentAsync(CreateIntentRequest request, CancellationToken cancellationToken)
Creates an intent in the specified agent.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
request | CreateIntentRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
CreateIntentRequest request = new CreateIntentRequest
{
ParentAsAgentName = AgentName.FromProject("[PROJECT]"),
Intent = new Intent(),
LanguageCode = "",
IntentView = IntentView.Unspecified,
};
// Make the request
Intent response = await intentsClient.CreateIntentAsync(request);
CreateIntentAsync(String, Intent, CallSettings)
public virtual Task<Intent> CreateIntentAsync(string parent, Intent intent, CallSettings callSettings = null)
Creates an intent in the specified agent.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | String Required. The agent to create a intent for.
Format: |
intent | Intent Required. The intent to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/agent";
Intent intent = new Intent();
// Make the request
Intent response = await intentsClient.CreateIntentAsync(parent, intent);
CreateIntentAsync(String, Intent, String, CallSettings)
public virtual Task<Intent> CreateIntentAsync(string parent, Intent intent, string languageCode, CallSettings callSettings = null)
Creates an intent in the specified agent.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | String Required. The agent to create a intent for.
Format: |
intent | Intent Required. The intent to create. |
languageCode | String Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/agent";
Intent intent = new Intent();
string languageCode = "";
// Make the request
Intent response = await intentsClient.CreateIntentAsync(parent, intent, languageCode);
CreateIntentAsync(String, Intent, String, CancellationToken)
public virtual Task<Intent> CreateIntentAsync(string parent, Intent intent, string languageCode, CancellationToken cancellationToken)
Creates an intent in the specified agent.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | String Required. The agent to create a intent for.
Format: |
intent | Intent Required. The intent to create. |
languageCode | String Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/agent";
Intent intent = new Intent();
string languageCode = "";
// Make the request
Intent response = await intentsClient.CreateIntentAsync(parent, intent, languageCode);
CreateIntentAsync(String, Intent, CancellationToken)
public virtual Task<Intent> CreateIntentAsync(string parent, Intent intent, CancellationToken cancellationToken)
Creates an intent in the specified agent.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
parent | String Required. The agent to create a intent for.
Format: |
intent | Intent Required. The intent to create. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/agent";
Intent intent = new Intent();
// Make the request
Intent response = await intentsClient.CreateIntentAsync(parent, intent);
DeleteIntent(DeleteIntentRequest, CallSettings)
public virtual void DeleteIntent(DeleteIntentRequest request, CallSettings callSettings = null)
Deletes the specified intent and its direct or indirect followup intents.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
request | DeleteIntentRequest 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
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
DeleteIntentRequest request = new DeleteIntentRequest
{
IntentName = IntentName.FromProjectIntent("[PROJECT]", "[INTENT]"),
};
// Make the request
intentsClient.DeleteIntent(request);
DeleteIntent(IntentName, CallSettings)
public virtual void DeleteIntent(IntentName name, CallSettings callSettings = null)
Deletes the specified intent and its direct or indirect followup intents.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
name | IntentName Required. The name of the intent to delete. If this intent has direct or
indirect followup intents, we also delete them.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
IntentName name = IntentName.FromProjectIntent("[PROJECT]", "[INTENT]");
// Make the request
intentsClient.DeleteIntent(name);
DeleteIntent(String, CallSettings)
public virtual void DeleteIntent(string name, CallSettings callSettings = null)
Deletes the specified intent and its direct or indirect followup intents.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
name | String Required. The name of the intent to delete. If this intent has direct or
indirect followup intents, we also delete them.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/agent/intents/[INTENT]";
// Make the request
intentsClient.DeleteIntent(name);
DeleteIntentAsync(DeleteIntentRequest, CallSettings)
public virtual Task DeleteIntentAsync(DeleteIntentRequest request, CallSettings callSettings = null)
Deletes the specified intent and its direct or indirect followup intents.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
request | DeleteIntentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
DeleteIntentRequest request = new DeleteIntentRequest
{
IntentName = IntentName.FromProjectIntent("[PROJECT]", "[INTENT]"),
};
// Make the request
await intentsClient.DeleteIntentAsync(request);
DeleteIntentAsync(DeleteIntentRequest, CancellationToken)
public virtual Task DeleteIntentAsync(DeleteIntentRequest request, CancellationToken cancellationToken)
Deletes the specified intent and its direct or indirect followup intents.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
request | DeleteIntentRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
DeleteIntentRequest request = new DeleteIntentRequest
{
IntentName = IntentName.FromProjectIntent("[PROJECT]", "[INTENT]"),
};
// Make the request
await intentsClient.DeleteIntentAsync(request);
DeleteIntentAsync(IntentName, CallSettings)
public virtual Task DeleteIntentAsync(IntentName name, CallSettings callSettings = null)
Deletes the specified intent and its direct or indirect followup intents.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
name | IntentName Required. The name of the intent to delete. If this intent has direct or
indirect followup intents, we also delete them.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
IntentName name = IntentName.FromProjectIntent("[PROJECT]", "[INTENT]");
// Make the request
await intentsClient.DeleteIntentAsync(name);
DeleteIntentAsync(IntentName, CancellationToken)
public virtual Task DeleteIntentAsync(IntentName name, CancellationToken cancellationToken)
Deletes the specified intent and its direct or indirect followup intents.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
name | IntentName Required. The name of the intent to delete. If this intent has direct or
indirect followup intents, we also delete them.
Format: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
IntentName name = IntentName.FromProjectIntent("[PROJECT]", "[INTENT]");
// Make the request
await intentsClient.DeleteIntentAsync(name);
DeleteIntentAsync(String, CallSettings)
public virtual Task DeleteIntentAsync(string name, CallSettings callSettings = null)
Deletes the specified intent and its direct or indirect followup intents.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
name | String Required. The name of the intent to delete. If this intent has direct or
indirect followup intents, we also delete them.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/agent/intents/[INTENT]";
// Make the request
await intentsClient.DeleteIntentAsync(name);
DeleteIntentAsync(String, CancellationToken)
public virtual Task DeleteIntentAsync(string name, CancellationToken cancellationToken)
Deletes the specified intent and its direct or indirect followup intents.
Note: You should always train an agent prior to sending it queries. See the training documentation.
Name | Description |
name | String Required. The name of the intent to delete. If this intent has direct or
indirect followup intents, we also delete them.
Format: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/agent/intents/[INTENT]";
// Make the request
await intentsClient.DeleteIntentAsync(name);
GetIntent(GetIntentRequest, CallSettings)
public virtual Intent GetIntent(GetIntentRequest request, CallSettings callSettings = null)
Retrieves the specified intent.
Name | Description |
request | GetIntentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Intent | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
GetIntentRequest request = new GetIntentRequest
{
IntentName = IntentName.FromProjectIntent("[PROJECT]", "[INTENT]"),
LanguageCode = "",
IntentView = IntentView.Unspecified,
};
// Make the request
Intent response = intentsClient.GetIntent(request);
GetIntent(IntentName, CallSettings)
public virtual Intent GetIntent(IntentName name, CallSettings callSettings = null)
Retrieves the specified intent.
Name | Description |
name | IntentName Required. The name of the intent.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Intent | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
IntentName name = IntentName.FromProjectIntent("[PROJECT]", "[INTENT]");
// Make the request
Intent response = intentsClient.GetIntent(name);
GetIntent(IntentName, String, CallSettings)
public virtual Intent GetIntent(IntentName name, string languageCode, CallSettings callSettings = null)
Retrieves the specified intent.
Name | Description |
name | IntentName Required. The name of the intent.
Format: |
languageCode | String Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Intent | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
IntentName name = IntentName.FromProjectIntent("[PROJECT]", "[INTENT]");
string languageCode = "";
// Make the request
Intent response = intentsClient.GetIntent(name, languageCode);
GetIntent(String, CallSettings)
public virtual Intent GetIntent(string name, CallSettings callSettings = null)
Retrieves the specified intent.
Name | Description |
name | String Required. The name of the intent.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Intent | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/agent/intents/[INTENT]";
// Make the request
Intent response = intentsClient.GetIntent(name);
GetIntent(String, String, CallSettings)
public virtual Intent GetIntent(string name, string languageCode, CallSettings callSettings = null)
Retrieves the specified intent.
Name | Description |
name | String Required. The name of the intent.
Format: |
languageCode | String Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Intent | The RPC response. |
// Create client
IntentsClient intentsClient = IntentsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/agent/intents/[INTENT]";
string languageCode = "";
// Make the request
Intent response = intentsClient.GetIntent(name, languageCode);
GetIntentAsync(GetIntentRequest, CallSettings)
public virtual Task<Intent> GetIntentAsync(GetIntentRequest request, CallSettings callSettings = null)
Retrieves the specified intent.
Name | Description |
request | GetIntentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
GetIntentRequest request = new GetIntentRequest
{
IntentName = IntentName.FromProjectIntent("[PROJECT]", "[INTENT]"),
LanguageCode = "",
IntentView = IntentView.Unspecified,
};
// Make the request
Intent response = await intentsClient.GetIntentAsync(request);
GetIntentAsync(GetIntentRequest, CancellationToken)
public virtual Task<Intent> GetIntentAsync(GetIntentRequest request, CancellationToken cancellationToken)
Retrieves the specified intent.
Name | Description |
request | GetIntentRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
GetIntentRequest request = new GetIntentRequest
{
IntentName = IntentName.FromProjectIntent("[PROJECT]", "[INTENT]"),
LanguageCode = "",
IntentView = IntentView.Unspecified,
};
// Make the request
Intent response = await intentsClient.GetIntentAsync(request);
GetIntentAsync(IntentName, CallSettings)
public virtual Task<Intent> GetIntentAsync(IntentName name, CallSettings callSettings = null)
Retrieves the specified intent.
Name | Description |
name | IntentName Required. The name of the intent.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
IntentName name = IntentName.FromProjectIntent("[PROJECT]", "[INTENT]");
// Make the request
Intent response = await intentsClient.GetIntentAsync(name);
GetIntentAsync(IntentName, String, CallSettings)
public virtual Task<Intent> GetIntentAsync(IntentName name, string languageCode, CallSettings callSettings = null)
Retrieves the specified intent.
Name | Description |
name | IntentName Required. The name of the intent.
Format: |
languageCode | String Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
IntentName name = IntentName.FromProjectIntent("[PROJECT]", "[INTENT]");
string languageCode = "";
// Make the request
Intent response = await intentsClient.GetIntentAsync(name, languageCode);
GetIntentAsync(IntentName, String, CancellationToken)
public virtual Task<Intent> GetIntentAsync(IntentName name, string languageCode, CancellationToken cancellationToken)
Retrieves the specified intent.
Name | Description |
name | IntentName Required. The name of the intent.
Format: |
languageCode | String Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
IntentName name = IntentName.FromProjectIntent("[PROJECT]", "[INTENT]");
string languageCode = "";
// Make the request
Intent response = await intentsClient.GetIntentAsync(name, languageCode);
GetIntentAsync(IntentName, CancellationToken)
public virtual Task<Intent> GetIntentAsync(IntentName name, CancellationToken cancellationToken)
Retrieves the specified intent.
Name | Description |
name | IntentName Required. The name of the intent.
Format: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
IntentName name = IntentName.FromProjectIntent("[PROJECT]", "[INTENT]");
// Make the request
Intent response = await intentsClient.GetIntentAsync(name);
GetIntentAsync(String, CallSettings)
public virtual Task<Intent> GetIntentAsync(string name, CallSettings callSettings = null)
Retrieves the specified intent.
Name | Description |
name | String Required. The name of the intent.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/agent/intents/[INTENT]";
// Make the request
Intent response = await intentsClient.GetIntentAsync(name);
GetIntentAsync(String, String, CallSettings)
public virtual Task<Intent> GetIntentAsync(string name, string languageCode, CallSettings callSettings = null)
Retrieves the specified intent.
Name | Description |
name | String Required. The name of the intent.
Format: |
languageCode | String Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/agent/intents/[INTENT]";
string languageCode = "";
// Make the request
Intent response = await intentsClient.GetIntentAsync(name, languageCode);
GetIntentAsync(String, String, CancellationToken)
public virtual Task<Intent> GetIntentAsync(string name, string languageCode, CancellationToken cancellationToken)
Retrieves the specified intent.
Name | Description |
name | String Required. The name of the intent.
Format: |
languageCode | String Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Intent> | A Task containing the RPC response. |
// Create client
IntentsClient intentsClient = await IntentsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/agent/intents/[INTENT]";
string languageCode = "";
// Make the request
Intent response = await intentsClient.GetIntentAsync(name, languageCode);
GetIntentAsync(String, CancellationToken)
public virtual Task<Intent> GetIntentAsync(string name, CancellationToken cancell