Class ProjectsResource.LocationsResource.AgentResource.IntentsResource
The "intents" collection of methods.
Inherited Members
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.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(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.LocationsResource.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: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.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.LocationsResource.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: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.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.LocationsResource.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: |
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. Format: |
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. Format: |
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: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.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.LocationsResource.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: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentResource.IntentsResource.PatchRequest |