View Source GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document (google_api_content_warehouse v0.4.0)

Defines the structure for content warehouse document proto.

Attributes

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

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Document{
    cloudAiDocument:
      GoogleApi.ContentWarehouse.V1.Model.GoogleCloudDocumentaiV1Document.t()
      | nil,
    contentCategory: String.t() | nil,
    createTime: DateTime.t() | nil,
    creator: String.t() | nil,
    displayName: String.t() | nil,
    displayUri: String.t() | nil,
    dispositionTime: DateTime.t() | nil,
    documentSchemaName: String.t() | nil,
    inlineRawDocument: String.t() | nil,
    legalHold: boolean() | nil,
    name: String.t() | nil,
    plainText: String.t() | nil,
    properties:
      [
        GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Property.t()
      ]
      | nil,
    rawDocumentFileType: String.t() | nil,
    rawDocumentPath: String.t() | nil,
    referenceId: String.t() | nil,
    textExtractionDisabled: boolean() | nil,
    textExtractionEnabled: boolean() | nil,
    title: String.t() | nil,
    updateTime: DateTime.t() | nil,
    updater: String.t() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.