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

Attributes

  • begin (type: integer(), default: nil) - A piece of leading text is text within [begin, end). For example, a document is "ABCDEF". If we want to set leading text as 'CD', the value of begin is byte offset of 'C', the value of end is byte offset of 'E'. end == -1 means to the end of document.
  • beginText (type: String.t, default: nil) - UTF8 text, for alignment when using reusableinfo. Those text are not available in docjoins.
  • end (type: integer(), default: nil) -
  • endText (type: String.t, default: nil) -
  • matchedPattern (type: String.t, default: nil) - Matched dom path string for debugging.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.SnippetsLeadingtextLeadingTextAnnotationPiece{
    begin: integer() | nil,
    beginText: String.t() | nil,
    end: integer() | nil,
    endText: String.t() | nil,
    matchedPattern: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.