GetDocumentResult

data class GetDocumentResult(val cloudAiDocument: GoogleCloudDocumentaiV1DocumentResponse, val contentCategory: String, val createTime: String, val creator: String, val displayName: String, val displayUri: String, val dispositionTime: String, val documentSchemaName: String, val inlineRawDocument: String, val name: String, val plainText: String, val properties: List<GoogleCloudContentwarehouseV1PropertyResponse>, val rawDocumentFileType: String, val rawDocumentPath: String, val referenceId: String, val textExtractionDisabled: Boolean, val textExtractionEnabled: Boolean, val title: String, val updateTime: String, val updater: String)

Constructors

Link copied to clipboard
fun GetDocumentResult(cloudAiDocument: GoogleCloudDocumentaiV1DocumentResponse, contentCategory: String, createTime: String, creator: String, displayName: String, displayUri: String, dispositionTime: String, documentSchemaName: String, inlineRawDocument: String, name: String, plainText: String, properties: List<GoogleCloudContentwarehouseV1PropertyResponse>, rawDocumentFileType: String, rawDocumentPath: String, referenceId: String, textExtractionDisabled: Boolean, textExtractionEnabled: Boolean, title: String, updateTime: String, updater: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Document AI format to save the structured content, including OCR.

Link copied to clipboard

Indicates the category (image, audio, video etc.) of the original content.

Link copied to clipboard

The time when the document is created.

Link copied to clipboard

The user who creates the document.

Link copied to clipboard

Display name of the document given by the user. This name will be displayed in the UI. Customer can populate this field with the name of the document. This differs from the 'title' field as 'title' is optional and stores the top heading in the document.

Link copied to clipboard

Uri to display the document, for example, in the UI.

Link copied to clipboard

If linked to a Collection with RetentionPolicy, the date when the document becomes mutable.

Link copied to clipboard

The Document schema name. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.

Link copied to clipboard

Raw document content.

Link copied to clipboard

The resource name of the document. Format: projects/{project_number}/locations/{location}/documents/{document_id}. The name is ignored when creating a document.

Link copied to clipboard

Other document format, such as PPTX, XLXS

Link copied to clipboard

List of values that are user supplied metadata.

Link copied to clipboard

This is used when DocAI was not used to load the document and parsing/ extracting is needed for the inline_raw_document. For example, if inline_raw_document is the byte representation of a PDF file, then this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.

Link copied to clipboard

Raw document file in Cloud Storage path.

Link copied to clipboard

The reference ID set by customers. Must be unique per project and location.

Link copied to clipboard

If true, text extraction will not be performed.

Link copied to clipboard

If true, text extraction will be performed.

Link copied to clipboard

Title that describes the document. This can be the top heading or text that describes the document.

Link copied to clipboard

The user who lastly updates the document.

Link copied to clipboard

The time when the document is last updated.