# Cloud AutoML V1beta1 API - Module Google::Cloud::AutoML::V1beta1::Document::Layout::TextSegmentType (v0.19.0)

0.19.0 (latest) 0.18.0 0.17.0 0.16.1 0.15.0 0.14.1 0.13.1 0.12.0 0.11.1 0.10.2 0.9.0 0.8.0 0.7.0 0.6.1 0.5.5 Reference documentation and code samples for the Cloud AutoML V1beta1 API module Google::Cloud::AutoML::V1beta1::Document::Layout::TextSegmentType.

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

## Constants

### TEXT_SEGMENT_TYPE_UNSPECIFIED

**value:** 0  
Should not be used.

### TOKEN

**value:** 1  
The text segment is a token. e.g. word.

### PARAGRAPH

**value:** 2  
The text segment is a paragraph.

### FORM_FIELD

**value:** 3  
The text segment is a form field.

### FORM_FIELD_NAME

**value:** 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

**value:** 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

**value:** 6  
The text segment is a whole table, including headers, and all rows.

### TABLE_HEADER

**value:** 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

**value:** 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

**value:** 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.