Show / Hide Table of Contents

Class ProjectsResource.KnowledgeBasesResource.DocumentsResource

The "documents" collection of methods.

Inheritance
System.Object
ProjectsResource.KnowledgeBasesResource.DocumentsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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.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: projects//locations//knowledgeBases/.

Returns
Type Description
ProjectsResource.KnowledgeBasesResource.DocumentsResource.CreateRequest

Delete(String)

Deletes the specified document. Operation

Declaration
public virtual ProjectsResource.KnowledgeBasesResource.DocumentsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
System.String name

Required. The name of the document to delete. Format: projects//locations//knowledgeBases//documents/.

Returns
Type Description
ProjectsResource.KnowledgeBasesResource.DocumentsResource.DeleteRequest

Get(String)

Retrieves the specified document.

Declaration
public virtual ProjectsResource.KnowledgeBasesResource.DocumentsResource.GetRequest Get(string name)
Parameters
Type Name Description
System.String name

Required. The name of the document to retrieve. Format projects//locations//knowledgeBases//documents/.

Returns
Type Description
ProjectsResource.KnowledgeBasesResource.DocumentsResource.GetRequest

List(String)

Returns the list of all documents of the knowledge base.

Declaration
public virtual ProjectsResource.KnowledgeBasesResource.DocumentsResource.ListRequest List(string parent)
Parameters
Type Name Description
System.String parent

Required. The knowledge base to list all documents for. Format: projects//locations//knowledgeBases/.

Returns
Type Description
ProjectsResource.KnowledgeBasesResource.DocumentsResource.ListRequest

Patch(GoogleCloudDialogflowV2Document, String)

Updates the specified document. Operation

Declaration
public virtual ProjectsResource.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: projects//locations//knowledgeBases//documents/.

Returns
Type Description
ProjectsResource.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.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: projects//locations//knowledgeBases//documents/

Returns
Type Description
ProjectsResource.KnowledgeBasesResource.DocumentsResource.ReloadRequest
In This Article
Back to top