Class TextSegmentType (2.12.0)

TextSegmentType(value)

The type of TextSegment in the context of the original document.

Values: TEXT_SEGMENT_TYPE_UNSPECIFIED (0): Should not be used. TOKEN (1): The text segment is a token. e.g. word. PARAGRAPH (2): The text segment is a paragraph. FORM_FIELD (3): The text segment is a form field. FORM_FIELD_NAME (4): The text segment is the name part of a form field. It will be treated as child of another FORM_FIELD TextSegment if its span is subspan of another TextSegment with type FORM_FIELD. FORM_FIELD_CONTENTS (5): The text segment is the text content part of a form field. It will be treated as child of another FORM_FIELD TextSegment if its span is subspan of another TextSegment with type FORM_FIELD. TABLE (6): The text segment is a whole table, including headers, and all rows. TABLE_HEADER (7): The text segment is a table's headers. It will be treated as child of another TABLE TextSegment if its span is subspan of another TextSegment with type TABLE. TABLE_ROW (8): The text segment is a row in table. It will be treated as child of another TABLE TextSegment if its span is subspan of another TextSegment with type TABLE. TABLE_CELL (9): The text segment is a cell in table. It will be treated as child of another TABLE_ROW TextSegment if its span is subspan of another TextSegment with type TABLE_ROW.