Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.AgentResource.IntentsResource

The "intents" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.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.v2beta1
Assembly: Google.Apis.Dialogflow.v2beta1.dll
Syntax
public class ProjectsResource.LocationsResource.AgentResource.IntentsResource

Constructors

IntentsResource(IClientService)

Constructs a new resource.

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

Methods

BatchDelete(GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest, 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.LocationsResource.AgentResource.IntentsResource.BatchDeleteRequest BatchDelete(GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest body, string parent)
Parameters
Type Name Description
GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest body

The body of the request.

string parent

Required. The name of the agent to delete all entities types for. Supported formats: - projects//agent - projects//locations//agent

Returns
Type Description
ProjectsResource.LocationsResource.AgentResource.IntentsResource.BatchDeleteRequest

BatchUpdate(GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest, 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.LocationsResource.AgentResource.IntentsResource.BatchUpdateRequest BatchUpdate(GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest body, string parent)
Parameters
Type Name Description
GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest body

The body of the request.

string parent

Required. The name of the agent to update or create intents in. Supported formats: - projects//agent - projects//locations//agent

Returns
Type Description
ProjectsResource.LocationsResource.AgentResource.IntentsResource.BatchUpdateRequest

Create(GoogleCloudDialogflowV2beta1Intent, 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.LocationsResource.AgentResource.IntentsResource.CreateRequest Create(GoogleCloudDialogflowV2beta1Intent body, string parent)
Parameters
Type Name Description
GoogleCloudDialogflowV2beta1Intent body

The body of the request.

string parent

Required. The agent to create a intent for. Supported formats: - projects//agent - projects//locations//agent

Returns
Type Description
ProjectsResource.LocationsResource.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.LocationsResource.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. Supported formats: - projects//agent/intents/ - projects//locations//agent/intents/

Returns
Type Description
ProjectsResource.LocationsResource.AgentResource.IntentsResource.DeleteRequest

Get(string)

Retrieves the specified intent.

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

Required. The name of the intent. Supported formats: - projects//agent/intents/ - projects//locations//agent/intents/

Returns
Type Description
ProjectsResource.LocationsResource.AgentResource.IntentsResource.GetRequest

List(string)

Returns the list of all intents in the specified agent.

Declaration
public virtual ProjectsResource.LocationsResource.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.LocationsResource.AgentResource.IntentsResource.ListRequest

Patch(GoogleCloudDialogflowV2beta1Intent, 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.LocationsResource.AgentResource.IntentsResource.PatchRequest Patch(GoogleCloudDialogflowV2beta1Intent body, string name)
Parameters
Type Name Description
GoogleCloudDialogflowV2beta1Intent body

The body of the request.

string name

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

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