GetDocumentResult constructor

const GetDocumentResult({
  1. required GoogleCloudDocumentaiV1DocumentResponse cloudAiDocument,
  2. required String contentCategory,
  3. required String createTime,
  4. required String creator,
  5. required String displayName,
  6. required String displayUri,
  7. required String dispositionTime,
  8. required String documentSchemaName,
  9. required String inlineRawDocument,
  10. required bool legalHold,
  11. required String name,
  12. required String plainText,
  13. required List<GoogleCloudContentwarehouseV1PropertyResponse> properties,
  14. required String rawDocumentFileType,
  15. required String rawDocumentPath,
  16. required String referenceId,
  17. required bool textExtractionDisabled,
  18. required bool textExtractionEnabled,
  19. required String title,
  20. required String updateTime,
  21. required String updater,
})

Creates a new GetDocumentResult. cloudAiDocument Document AI format to save the structured content, including OCR. contentCategory Indicates the category (image, audio, video etc.) of the original content. createTime The time when the document is created. creator The user who creates the document. displayName 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. displayUri Uri to display the document, for example, in the UI. dispositionTime If linked to a Collection with RetentionPolicy, the date when the document becomes mutable. documentSchemaName The Document schema name. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. inlineRawDocument Raw document content. legalHold Indicates if the document has a legal hold on it. name The resource name of the document. Format: projects/{project_number}/locations/{location}/documents/{document_id}. The name is ignored when creating a document. plainText Other document format, such as PPTX, XLXS properties List of values that are user supplied metadata. rawDocumentFileType 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. rawDocumentPath Raw document file in Cloud Storage path. referenceId The reference ID set by customers. Must be unique per project and location. textExtractionDisabled If true, text extraction will not be performed. textExtractionEnabled If true, text extraction will be performed. title Title that describes the document. This can be the top heading or text that describes the document. updateTime The time when the document is last updated. updater The user who lastly updates the document.

Implementation

const GetDocumentResult({
  required this.cloudAiDocument,
  required this.contentCategory,
  required this.createTime,
  required this.creator,
  required this.displayName,
  required this.displayUri,
  required this.dispositionTime,
  required this.documentSchemaName,
  required this.inlineRawDocument,
  required this.legalHold,
  required this.name,
  required this.plainText,
  required this.properties,
  required this.rawDocumentFileType,
  required this.rawDocumentPath,
  required this.referenceId,
  required this.textExtractionDisabled,
  required this.textExtractionEnabled,
  required this.title,
  required this.updateTime,
  required this.updater,
});