# Cloud AutoML V1 Client - Class TextSegmentType (2.1.3)

2.1.3 (latest) 2.1.2 2.0.5 1.6.5 1.5.4 1.4.17 Reference documentation and code samples for the Cloud AutoML V1 Client class TextSegmentType.

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

Protobuf type `google.cloud.automl.v1.Document.Layout.TextSegmentType`

## Namespace

Google \\ Cloud \\ AutoMl \\ V1 \\ Document \\ Layout

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### TEXT_SEGMENT_TYPE_UNSPECIFIED

    Value: 0

Should not be used.

Generated from protobuf enum `TEXT_SEGMENT_TYPE_UNSPECIFIED = 0;`

### TOKEN

    Value: 1

The text segment is a token. e.g. word.

Generated from protobuf enum `TOKEN = 1;`

### PARAGRAPH

    Value: 2

The text segment is a paragraph.

Generated from protobuf enum `PARAGRAPH = 2;`

### FORM_FIELD

    Value: 3

The text segment is a form field.

Generated from protobuf enum `FORM_FIELD = 3;`

### 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.

Generated from protobuf enum `FORM_FIELD_NAME = 4;`

### 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.

Generated from protobuf enum `FORM_FIELD_CONTENTS = 5;`

### TABLE

    Value: 6

The text segment is a whole table, including headers, and all rows.

Generated from protobuf enum `TABLE = 6;`

### 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.

Generated from protobuf enum `TABLE_HEADER = 7;`

### 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.

Generated from protobuf enum `TABLE_ROW = 8;`

### 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.

Generated from protobuf enum `TABLE_CELL = 9;`