Show / Hide Table of Contents

Class ProjectsResource.AgentResource.IntentsResource

The "intents" collection of methods.

Inheritance
object
ProjectsResource.AgentResource.IntentsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.dll
Syntax
public class ProjectsResource.AgentResource.IntentsResource

Constructors

IntentsResource(IClientService)

Constructs a new resource.

Declaration
public IntentsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

BatchDelete(GoogleCloudDialogflowV2BatchDeleteIntentsRequest, string)

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 message - response: An Empty message Note: You should always train an agent prior to sending it queries. See the training documentation.

Declaration
public virtual ProjectsResource.AgentResource.IntentsResource.BatchDeleteRequest BatchDelete(GoogleCloudDialogflowV2BatchDeleteIntentsRequest body, string parent)
Parameters
Type Name Description
GoogleCloudDialogflowV2BatchDeleteIntentsRequest body

The body of the request.

string parent

Required. The name of the agent to delete all entities types for. Format: projects//agent.

Returns
Type Description
ProjectsResource.AgentResource.IntentsResource.BatchDeleteRequest

BatchUpdate(GoogleCloudDialogflowV2BatchUpdateIntentsRequest, string)

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 message - response: BatchUpdateIntentsResponse Note: You should always train an agent prior to sending it queries. See the training documentation.

Declaration
public virtual ProjectsResource.AgentResource.IntentsResource.BatchUpdateRequest BatchUpdate(GoogleCloudDialogflowV2BatchUpdateIntentsRequest body, string parent)
Parameters
Type Name Description
GoogleCloudDialogflowV2BatchUpdateIntentsRequest body

The body of the request.

string parent

Required. The name of the agent to update or create intents in. Format: projects//agent.

Returns
Type Description
ProjectsResource.AgentResource.IntentsResource.BatchUpdateRequest

Create(GoogleCloudDialogflowV2Intent, string)

Creates an intent in the specified agent. Note: You should always train an agent prior to sending it queries. See the training documentation.

Declaration
public virtual ProjectsResource.AgentResource.IntentsResource.CreateRequest Create(GoogleCloudDialogflowV2Intent body, string parent)
Parameters
Type Name Description
GoogleCloudDialogflowV2Intent body

The body of the request.

string parent

Required. The agent to create a intent for. Format: projects//agent.

Returns
Type Description
ProjectsResource.AgentResource.IntentsResource.CreateRequest

Delete(string)

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.

Declaration
public virtual ProjectsResource.AgentResource.IntentsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the intent to delete. If this intent has direct or indirect followup intents, we also delete them. Format: projects//agent/intents/.

Returns
Type Description
ProjectsResource.AgentResource.IntentsResource.DeleteRequest

Get(string)

Retrieves the specified intent.

Declaration
public virtual ProjectsResource.AgentResource.IntentsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the intent. Format: projects//agent/intents/.

Returns
Type Description
ProjectsResource.AgentResource.IntentsResource.GetRequest

List(string)

Returns the list of all intents in the specified agent.

Declaration
public virtual ProjectsResource.AgentResource.IntentsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The agent to list all intents from. Format: projects//agent or projects//locations//agent. Alternatively, you can specify the environment to list intents for. Format: projects//agent/environments/ or projects//locations//agent/environments/. Note: training phrases of the intents will not be returned for non-draft environment.

Returns
Type Description
ProjectsResource.AgentResource.IntentsResource.ListRequest

Patch(GoogleCloudDialogflowV2Intent, string)

Updates the specified intent. Note: You should always train an agent prior to sending it queries. See the training documentation.

Declaration
public virtual ProjectsResource.AgentResource.IntentsResource.PatchRequest Patch(GoogleCloudDialogflowV2Intent body, string name)
Parameters
Type Name Description
GoogleCloudDialogflowV2Intent body

The body of the request.

string name

Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: projects//agent/intents/.

Returns
Type Description
ProjectsResource.AgentResource.IntentsResource.PatchRequest
In this article
Back to top Generated by DocFX