Class ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource
The "documents" collection of methods.
Inherited Members
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.dll
Syntax
public class ProjectsResource.AgentResource.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.AgentResource.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.AgentResource.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.AgentResource.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.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 |
---|---|---|
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 |
---|---|---|
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. 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.AgentResource.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.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. 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.AgentResource.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.AgentResource.KnowledgeBasesResource.DocumentsResource.ReloadRequest |