TextExtractionAnnotation

Annotation details specific to text extraction.

Fields
textSegment object (TextSegment)

The segment of the text content.

annotationSpecId string

The resource id of the AnnotationSpec that this Annotation pertains to.

displayName string

The display name of the AnnotationSpec that this Annotation pertains to.

JSON representation
{
  "textSegment": {
    object (TextSegment)
  },
  "annotationSpecId": string,
  "displayName": string
}

TextSegment

The text segment inside of DataItem.

Fields
startOffset string

Zero-based character index of the first character of the text segment (counting characters from the beginning of the text).

endOffset string

Zero-based character index of the first character past the end of the text segment (counting character from the beginning of the text). The character at the endOffset is NOT included in the text segment.

content string

The text content in the segment for output only.

JSON representation
{
  "startOffset": string,
  "endOffset": string,
  "content": string
}