Show / Hide Table of Contents

Class ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource

The "documents" collection of methods.

Inheritance
object
ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Dialogflow.v2beta1
Assembly: Google.Apis.Dialogflow.v2beta1.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(GoogleCloudDialogflowV2beta1Document, 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 Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

Declaration
public virtual ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.CreateRequest Create(GoogleCloudDialogflowV2beta1Document body, string parent)
Parameters
Type Name Description
GoogleCloudDialogflowV2beta1Document body

The body of the request.

string parent

Required. The knowledge base to create a document for. Format: projects//locations//knowledgeBases/.

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 Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

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: projects//locations//knowledgeBases//documents/.

Returns
Type Description
ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.DeleteRequest

Get(string)

Retrieves the specified document. Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

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 projects//locations//knowledgeBases//documents/.

Returns
Type Description
ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.GetRequest

List(string)

Returns the list of all documents of the knowledge base. Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

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: projects//locations//knowledgeBases/.

Returns
Type Description
ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.ListRequest

Patch(GoogleCloudDialogflowV2beta1Document, 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 Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

Declaration
public virtual ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.PatchRequest Patch(GoogleCloudDialogflowV2beta1Document body, string name)
Parameters
Type Name Description
GoogleCloudDialogflowV2beta1Document body

The body of the request.

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.AgentResource.KnowledgeBasesResource.DocumentsResource.PatchRequest

Reload(GoogleCloudDialogflowV2beta1ReloadDocumentRequest, 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: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the import_gcs_custom_metadata field is set to true in the request. 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(GoogleCloudDialogflowV2beta1ReloadDocumentRequest body, string name)
Parameters
Type Name Description
GoogleCloudDialogflowV2beta1ReloadDocumentRequest body

The body of the request.

string name

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

Returns
Type Description
ProjectsResource.AgentResource.KnowledgeBasesResource.DocumentsResource.ReloadRequest
In this article
Back to top Generated by DocFX