Class ProjectsResource.LocationsResource.AgentsResource.IntentsResource
The "intents" collection of methods.
Inherited Members
Namespace: Google.Apis.Dialogflow.v3
Assembly: Google.Apis.Dialogflow.v3.dll
Syntax
public class ProjectsResource.LocationsResource.AgentsResource.IntentsResource
Constructors
IntentsResource(IClientService)
Constructs a new resource.
Declaration
public IntentsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(GoogleCloudDialogflowCxV3Intent, string)
Creates an intent in the specified agent. Note: You should always train a flow prior to sending it queries. See the training documentation.
Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.IntentsResource.CreateRequest Create(GoogleCloudDialogflowCxV3Intent body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDialogflowCxV3Intent | body | The body of the request. |
string | parent | Required. The agent to create an intent for. Format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentsResource.IntentsResource.CreateRequest |
Delete(string)
Deletes the specified intent. Note: You should always train a flow prior to sending it queries. See the training documentation.
Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.IntentsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the intent to delete. Format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentsResource.IntentsResource.DeleteRequest |
Export(GoogleCloudDialogflowCxV3ExportIntentsRequest, string)
Exports the selected intents. This method is a long-running
operation. The returned
Operation
type has the following method-specific fields: - metadata
: ExportIntentsMetadata -
response
: ExportIntentsResponse
Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.IntentsResource.ExportRequest Export(GoogleCloudDialogflowCxV3ExportIntentsRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDialogflowCxV3ExportIntentsRequest | body | The body of the request. |
string | parent | Required. The name of the parent agent to export intents. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentsResource.IntentsResource.ExportRequest |
Get(string)
Retrieves the specified intent.
Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.IntentsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the intent. Format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentsResource.IntentsResource.GetRequest |
Import(GoogleCloudDialogflowCxV3ImportIntentsRequest, string)
Imports the specified intents into the agent. This method is a long-running
operation. The returned
Operation
type has the following method-specific fields: - metadata
: ImportIntentsMetadata -
response
: ImportIntentsResponse
Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.IntentsResource.ImportRequest Import(GoogleCloudDialogflowCxV3ImportIntentsRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDialogflowCxV3ImportIntentsRequest | body | The body of the request. |
string | parent | Required. The agent to import the intents into. Format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentsResource.IntentsResource.ImportRequest |
List(string)
Returns the list of all intents in the specified agent.
Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.IntentsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The agent to list all intents for. Format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentsResource.IntentsResource.ListRequest |
Patch(GoogleCloudDialogflowCxV3Intent, string)
Updates the specified intent. Note: You should always train a flow prior to sending it queries. See the training documentation.
Declaration
public virtual ProjectsResource.LocationsResource.AgentsResource.IntentsResource.PatchRequest Patch(GoogleCloudDialogflowCxV3Intent body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDialogflowCxV3Intent | body | The body of the request. |
string | name | The unique identifier of the intent. Required for the Intents.UpdateIntent method.
Intents.CreateIntent populates the name automatically. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentsResource.IntentsResource.PatchRequest |