Class ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource
The "documents" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.dll
Syntax
public class DocumentsResource
Constructors
DocumentsResource(IClientService)
Constructs a new resource.
Declaration
public DocumentsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(GoogleCloudDialogflowV2Document, String)
Creates a new document. Operation
Declaration
public virtual ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.CreateRequest Create(GoogleCloudDialogflowV2Document body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2Document | body | The body of the request. |
| System.String | parent | Required. The knowledge base to create a document for. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.CreateRequest |
Delete(String)
Deletes the specified document. Operation
Declaration
public virtual ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the document to delete. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.DeleteRequest |
Get(String)
Retrieves the specified document.
Declaration
public virtual ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the document to retrieve. Format
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.GetRequest |
List(String)
Returns the list of all documents of the knowledge base.
Declaration
public virtual ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The knowledge base to list all documents for. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.ListRequest |
Patch(GoogleCloudDialogflowV2Document, String)
Updates the specified document. Operation
Declaration
public virtual ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.PatchRequest Patch(GoogleCloudDialogflowV2Document body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2Document | body | The body of the request. |
| System.String | name | Optional. The document resource name. The name must be empty when creating a document. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.PatchRequest |
Reload(GoogleCloudDialogflowV2ReloadDocumentRequest, String)
Reloads the specified document from its specified source, content_uri or content. The previously
loaded content of the document will be deleted. Note: Even when the content of the document has
not changed, there still may be side effects because of internal implementation changes. Note:
The projects.agent.knowledgeBases.documents resource is deprecated; only use
projects.knowledgeBases.documents. Operation
Declaration
public virtual ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.ReloadRequest Reload(GoogleCloudDialogflowV2ReloadDocumentRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2ReloadDocumentRequest | body | The body of the request. |
| System.String | name | Required. The name of the document to reload. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.ReloadRequest |