Class ProjectsResource.LocationsResource.KnowledgeBasesResource.DocumentsResource
The "documents" collection of methods.
Inherited Members
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.dll
Syntax
public class ProjectsResource.LocationsResource.KnowledgeBasesResource.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. This method is a long-running
operation. The returned
Operation type has the following method-specific fields: - metadata:
KnowledgeOperationMetadata - response: Document
Declaration
public virtual ProjectsResource.LocationsResource.KnowledgeBasesResource.DocumentsResource.CreateRequest Create(GoogleCloudDialogflowV2Document body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2Document | body | The body of the request. |
| string | parent | Required. The knowledge base to create a document for. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.KnowledgeBasesResource.DocumentsResource.CreateRequest |
Delete(string)
Deletes the specified document. This method is a long-running
operation. The returned
Operation type has the following method-specific fields: - metadata:
KnowledgeOperationMetadata - response: An Empty
message
Declaration
public virtual ProjectsResource.LocationsResource.KnowledgeBasesResource.DocumentsResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the document to delete. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.KnowledgeBasesResource.DocumentsResource.DeleteRequest |
Export(GoogleCloudDialogflowV2ExportDocumentRequest, string)
Exports a smart messaging candidate document into the specified destination. This method is a
long-running
operation. The returned
Operation type has the following method-specific fields: - metadata:
KnowledgeOperationMetadata - response: Document
Declaration
public virtual ProjectsResource.LocationsResource.KnowledgeBasesResource.DocumentsResource.ExportRequest Export(GoogleCloudDialogflowV2ExportDocumentRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2ExportDocumentRequest | body | The body of the request. |
| string | name | Required. The name of the document to export. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.KnowledgeBasesResource.DocumentsResource.ExportRequest |
Get(string)
Retrieves the specified document.
Declaration
public virtual ProjectsResource.LocationsResource.KnowledgeBasesResource.DocumentsResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the document to retrieve. Format
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.KnowledgeBasesResource.DocumentsResource.GetRequest |
Import(GoogleCloudDialogflowV2ImportDocumentsRequest, string)
Creates documents by importing data from external sources. Dialogflow supports up to 350
documents in each request. If you try to import more, Dialogflow will return an error. This
method is a long-running
operation. The returned
Operation type has the following method-specific fields: - metadata:
KnowledgeOperationMetadata - response: ImportDocumentsResponse
Declaration
public virtual ProjectsResource.LocationsResource.KnowledgeBasesResource.DocumentsResource.ImportRequest Import(GoogleCloudDialogflowV2ImportDocumentsRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2ImportDocumentsRequest | body | The body of the request. |
| string | parent | Required. The knowledge base to import documents into. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.KnowledgeBasesResource.DocumentsResource.ImportRequest |
List(string)
Returns the list of all documents of the knowledge base.
Declaration
public virtual ProjectsResource.LocationsResource.KnowledgeBasesResource.DocumentsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The knowledge base to list all documents for. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.KnowledgeBasesResource.DocumentsResource.ListRequest |
Patch(GoogleCloudDialogflowV2Document, string)
Updates the specified document. This method is a long-running
operation. The returned
Operation type has the following method-specific fields: - metadata:
KnowledgeOperationMetadata - response: Document
Declaration
public virtual ProjectsResource.LocationsResource.KnowledgeBasesResource.DocumentsResource.PatchRequest Patch(GoogleCloudDialogflowV2Document body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2Document | body | The body of the request. |
| string | name | Optional. The document resource name. The name must be empty when creating a document. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.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. This
method is a long-running
operation. The returned
Operation type has the following method-specific fields: - metadata:
KnowledgeOperationMetadata - response: Document Note: The
projects.agent.knowledgeBases.documents resource is deprecated; only use
projects.knowledgeBases.documents.
Declaration
public virtual ProjectsResource.LocationsResource.KnowledgeBasesResource.DocumentsResource.ReloadRequest Reload(GoogleCloudDialogflowV2ReloadDocumentRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudDialogflowV2ReloadDocumentRequest | body | The body of the request. |
| string | name | Required. The name of the document to reload. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.KnowledgeBasesResource.DocumentsResource.ReloadRequest |