Class Document (1.0.0)

A document resource.

Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

Required. The display name of the document. The name must be 1024 bytes or less; otherwise, the creation request fails.

Required. The knowledge type of document content.

The URI where the file content is located. For documents stored in Google Cloud Storage, these URIs must have the form gs://<bucket-name>/<object-name>. NOTE: External URLs must correspond to public webpages, i.e., they must be indexed by Google Search. In particular, URLs for showing documents in Google Cloud Storage (i.e. the URL in your browser) are not supported. Instead use the gs:// format URI described above.

The raw content of the document. This field is only permitted for EXTRACTIVE_QA and FAQ knowledge types.