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

Top-level representation of OCRed document

Attributes

  • EditingHistory (type: list(String.t), default: nil) - Debug info, recording the history of any editing done through the interface in goodoc-editing.h. The strings look like "MoveParagraph(page_index = 0, source_block_index = 3, ...);
  • LogicalEntity (type: list(String.t), default: nil) - Logical entities are stored as blobs. Depending on the kind of thing this is a goodoc of, a separate .proto file is expected to define the logical entity structure. Hence we can still parse this as a goodoc for people who dont care about this, and people who care about this can parse it specifically. ocr/goodoc/logical-entity-utils.h has methods to read and write these. See Goodoc++ doc
  • LogicalEntityMessageName (type: list(String.t), default: nil) - The names of the proto messages serialized in LogicalEntity, one for each LogicalEntity. The repetitions should number 0 to leave this unspecified, or they should equal the number of LogicalEntity strings.
  • SubDocuments (type: list(GoogleApi.ContentWarehouse.V1.Model.GoodocDocument.t), default: nil) - For multi-goodoc documents
  • header (type: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentHeader.t, default: nil) -
  • page (type: list(GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPage.t), default: nil) -

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.GoodocDocument{
  EditingHistory: [String.t()] | nil,
  LogicalEntity: [String.t()] | nil,
  LogicalEntityMessageName: [String.t()] | nil,
  SubDocuments: [t()] | nil,
  header: GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentHeader.t() | nil,
  page: [GoogleApi.ContentWarehouse.V1.Model.GoodocDocumentPage.t()] | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.