Class ProjectsResource.LocationsResource.AgentResource
The "agent" collection of methods.
Inherited Members
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.dll
Syntax
public class ProjectsResource.LocationsResource.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. This method is a long-running
operation. The returned
Operation
type has the following method-specific fields: - metadata
: An empty Struct
message -
response
: ExportAgentResponse
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.ExportRequest Export(GoogleCloudDialogflowV2ExportAgentRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDialogflowV2ExportAgentRequest | body | The body of the request. |
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 |
---|---|---|
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 |
---|---|---|
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. 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 The
operation only tracks when importing is complete, not when it is done training. Note: You should
always train an agent prior to sending it queries. See the training
documentation.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.ImportRequest Import(GoogleCloudDialogflowV2ImportAgentRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDialogflowV2ImportAgentRequest | body | The body of the request. |
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. 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 The
operation only tracks when restoring is complete, not when it is done training. Note: You should
always train an agent prior to sending it queries. See the training
documentation.
Declaration
public virtual ProjectsResource.LocationsResource.AgentResource.RestoreRequest Restore(GoogleCloudDialogflowV2RestoreAgentRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDialogflowV2RestoreAgentRequest | body | The body of the request. |
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 |
---|---|---|
string | parent | Required. The project to list agents from. Format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentResource.SearchRequest |
Train(GoogleCloudDialogflowV2TrainAgentRequest, string)
Trains 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.TrainRequest Train(GoogleCloudDialogflowV2TrainAgentRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDialogflowV2TrainAgentRequest | body | The body of the request. |
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. |
string | name | Required. The unique identifier of the fulfillment. Supported formats: -
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.AgentResource.UpdateFulfillmentRequest |