Class ProjectsResource.AgentResource
The "agent" collection of methods.
Inherited Members
Namespace: Google.Apis.Dialogflow.v2beta1
Assembly: Google.Apis.Dialogflow.v2beta1.dll
Syntax
public class ProjectsResource.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.AgentResource.EntityTypesResource EntityTypes { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.EntityTypesResource |
Environments
Gets the Environments resource.
Declaration
public virtual ProjectsResource.AgentResource.EnvironmentsResource Environments { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.EnvironmentsResource |
Intents
Gets the Intents resource.
Declaration
public virtual ProjectsResource.AgentResource.IntentsResource Intents { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.IntentsResource |
KnowledgeBases
Gets the KnowledgeBases resource.
Declaration
public virtual ProjectsResource.AgentResource.KnowledgeBasesResource KnowledgeBases { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.KnowledgeBasesResource |
Sessions
Gets the Sessions resource.
Declaration
public virtual ProjectsResource.AgentResource.SessionsResource Sessions { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.SessionsResource |
Versions
Gets the Versions resource.
Declaration
public virtual ProjectsResource.AgentResource.VersionsResource Versions { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.VersionsResource |
Methods
Export(GoogleCloudDialogflowV2beta1ExportAgentRequest, 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.AgentResource.ExportRequest Export(GoogleCloudDialogflowV2beta1ExportAgentRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2beta1ExportAgentRequest | body | The body of the request. |
| string | parent | Required. The project that the agent to export is associated with. Format: |
Returns
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.ExportRequest |
GetFulfillment(string)
Retrieves the fulfillment.
Declaration
public virtual ProjectsResource.AgentResource.GetFulfillmentRequest GetFulfillment(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the fulfillment. Supported formats: - |
Returns
| Type | Description |
|---|---|
| ProjectsResource.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.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.AgentResource.GetValidationResultRequest |
Import(GoogleCloudDialogflowV2beta1ImportAgentRequest, 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.AgentResource.ImportRequest Import(GoogleCloudDialogflowV2beta1ImportAgentRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2beta1ImportAgentRequest | body | The body of the request. |
| string | parent | Required. The project that the agent to import is associated with. Format: |
Returns
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.ImportRequest |
Restore(GoogleCloudDialogflowV2beta1RestoreAgentRequest, 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.AgentResource.RestoreRequest Restore(GoogleCloudDialogflowV2beta1RestoreAgentRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2beta1RestoreAgentRequest | body | The body of the request. |
| string | parent | Required. The project that the agent to restore is associated with. Format: |
Returns
| Type | Description |
|---|---|
| ProjectsResource.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.AgentResource.SearchRequest Search(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The project to list agents from. Format: |
Returns
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.SearchRequest |
Train(GoogleCloudDialogflowV2beta1TrainAgentRequest, 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.AgentResource.TrainRequest Train(GoogleCloudDialogflowV2beta1TrainAgentRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2beta1TrainAgentRequest | body | The body of the request. |
| string | parent | Required. The project that the agent to train is associated with. Format: |
Returns
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.TrainRequest |
UpdateFulfillment(GoogleCloudDialogflowV2beta1Fulfillment, string)
Updates the fulfillment.
Declaration
public virtual ProjectsResource.AgentResource.UpdateFulfillmentRequest UpdateFulfillment(GoogleCloudDialogflowV2beta1Fulfillment body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2beta1Fulfillment | body | The body of the request. |
| string | name | Required. The unique identifier of the fulfillment. Supported formats: - |
Returns
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.UpdateFulfillmentRequest |