Class ProjectsResource.LocationsResource.AgentResource
The "agent" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.dll
Syntax
public class AgentResource
Constructors
AgentResource(IClientService)
Constructs a new resource.
Declaration
public AgentResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
EntityTypes
Gets the EntityTypes resource.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.EntityTypesResource EntityTypes { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AgentResource.EntityTypesResource |
Environments
Gets the Environments resource.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource Environments { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AgentResource.EnvironmentsResource |
Intents
Gets the Intents resource.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.IntentsResource Intents { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AgentResource.IntentsResource |
Sessions
Gets the Sessions resource.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.SessionsResource Sessions { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AgentResource.SessionsResource |
Versions
Gets the Versions resource.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.VersionsResource Versions { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AgentResource.VersionsResource |
Methods
Export(GoogleCloudDialogflowV2ExportAgentRequest, String)
Exports the specified agent to a ZIP file. Operation
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.ExportRequest Export(GoogleCloudDialogflowV2ExportAgentRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2ExportAgentRequest | body | The body of the request. |
| System.String | parent | Required. The project that the agent to export is associated with. Format: |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AgentResource.ExportRequest |
GetFulfillment(String)
Retrieves the fulfillment.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.GetFulfillmentRequest GetFulfillment(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the fulfillment. Format: |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AgentResource.GetFulfillmentRequest |
GetValidationResult(String)
Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.GetValidationResultRequest GetValidationResult(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The project that the agent is associated with. Format: |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AgentResource.GetValidationResultRequest |
Import(GoogleCloudDialogflowV2ImportAgentRequest, String)
Imports the specified agent from a ZIP file. Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from ImportAgentRequest. After the import, the imported draft agent will be trained automatically (unless disabled in agent settings). However, once the import is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly. Operation An operation which tracks when importing is complete. It only tracks when the draft agent is updated not when it is done training.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.ImportRequest Import(GoogleCloudDialogflowV2ImportAgentRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2ImportAgentRequest | body | The body of the request. |
| System.String | parent | Required. The project that the agent to import is associated with. Format: |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AgentResource.ImportRequest |
Restore(GoogleCloudDialogflowV2RestoreAgentRequest, String)
Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. After the restore, the restored draft agent will be trained automatically (unless disabled in agent settings). However, once the restore is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly. Operation An operation which tracks when restoring is complete. It only tracks when the draft agent is updated not when it is done training.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.RestoreRequest Restore(GoogleCloudDialogflowV2RestoreAgentRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2RestoreAgentRequest | body | The body of the request. |
| System.String | parent | Required. The project that the agent to restore is associated with. Format: |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AgentResource.RestoreRequest |
Search(String)
Returns the list of agents. Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id "-". Refer to List Sub-Collections.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.SearchRequest Search(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The project to list agents from. Format: |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AgentResource.SearchRequest |
Train(GoogleCloudDialogflowV2TrainAgentRequest, String)
Trains the specified agent. Operation
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.TrainRequest Train(GoogleCloudDialogflowV2TrainAgentRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2TrainAgentRequest | body | The body of the request. |
| System.String | parent | Required. The project that the agent to train is associated with. Format: |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AgentResource.TrainRequest |
UpdateFulfillment(GoogleCloudDialogflowV2Fulfillment, String)
Updates the fulfillment.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.UpdateFulfillmentRequest UpdateFulfillment(GoogleCloudDialogflowV2Fulfillment body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2Fulfillment | body | The body of the request. |
| System.String | name | Required. The unique identifier of the fulfillment. Supported formats: -
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.AgentResource.UpdateFulfillmentRequest |