Class ProjectsResource.LocationsResource.AgentsResource.IntentsResource
The "intents" collection of methods.
Inherited Members
Namespace: Google.Apis.Dialogflow.v3beta1
Assembly: Google.Apis.Dialogflow.v3beta1.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(GoogleCloudDialogflowCxV3beta1Intent, 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(GoogleCloudDialogflowCxV3beta1Intent body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDialogflowCxV3beta1Intent | 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(GoogleCloudDialogflowCxV3beta1ExportIntentsRequest, 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(GoogleCloudDialogflowCxV3beta1ExportIntentsRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDialogflowCxV3beta1ExportIntentsRequest | 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(GoogleCloudDialogflowCxV3beta1ImportIntentsRequest, 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(GoogleCloudDialogflowCxV3beta1ImportIntentsRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDialogflowCxV3beta1ImportIntentsRequest | 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(GoogleCloudDialogflowCxV3beta1Intent, 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(GoogleCloudDialogflowCxV3beta1Intent body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDialogflowCxV3beta1Intent | 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 |