Generated from protobuf enumTEXT_SEGMENT_TYPE_UNSPECIFIED = 0;
TOKEN
Value: 1
The text segment is a token. e.g. word.
Generated from protobuf enumTOKEN = 1;
PARAGRAPH
Value: 2
The text segment is a paragraph.
Generated from protobuf enumPARAGRAPH = 2;
FORM_FIELD
Value: 3
The text segment is a form field.
Generated from protobuf enumFORM_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 enumFORM_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 enumFORM_FIELD_CONTENTS = 5;
TABLE
Value: 6
The text segment is a whole table, including headers, and all rows.
Generated from protobuf enumTABLE = 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 enumTABLE_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 enumTABLE_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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud AutoML V1 Client - Class TextSegmentType (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-automl/latest/V1.Document.Layout.TextSegmentType)\n- [2.0.4](/php/docs/reference/cloud-automl/2.0.4/V1.Document.Layout.TextSegmentType)\n- [1.6.5](/php/docs/reference/cloud-automl/1.6.5/V1.Document.Layout.TextSegmentType)\n- [1.5.4](/php/docs/reference/cloud-automl/1.5.4/V1.Document.Layout.TextSegmentType)\n- [1.4.17](/php/docs/reference/cloud-automl/1.4.17/V1.Document.Layout.TextSegmentType) \nReference documentation and code samples for the Cloud AutoML V1 Client class TextSegmentType.\n\nThe type of TextSegment in the context of the original document.\n\nProtobuf type `google.cloud.automl.v1.Document.Layout.TextSegmentType`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AutoMl \\\\ V1 \\\\ Document \\\\ Layout\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### TEXT_SEGMENT_TYPE_UNSPECIFIED\n\n Value: 0\n\nShould not be used.\n\nGenerated from protobuf enum `TEXT_SEGMENT_TYPE_UNSPECIFIED = 0;`\n\n### TOKEN\n\n Value: 1\n\nThe text segment is a token. e.g. word.\n\nGenerated from protobuf enum `TOKEN = 1;`\n\n### PARAGRAPH\n\n Value: 2\n\nThe text segment is a paragraph.\n\nGenerated from protobuf enum `PARAGRAPH = 2;`\n\n### FORM_FIELD\n\n Value: 3\n\nThe text segment is a form field.\n\nGenerated from protobuf enum `FORM_FIELD = 3;`\n\n### FORM_FIELD_NAME\n\n Value: 4\n\nThe text segment is the name part of a form field. It will be treated\nas child of another FORM_FIELD TextSegment if its span is subspan of\nanother TextSegment with type FORM_FIELD.\n\nGenerated from protobuf enum `FORM_FIELD_NAME = 4;`\n\n### FORM_FIELD_CONTENTS\n\n Value: 5\n\nThe text segment is the text content part of a form field. It will be\ntreated as child of another FORM_FIELD TextSegment if its span is\nsubspan of another TextSegment with type FORM_FIELD.\n\nGenerated from protobuf enum `FORM_FIELD_CONTENTS = 5;`\n\n### TABLE\n\n Value: 6\n\nThe text segment is a whole table, including headers, and all rows.\n\nGenerated from protobuf enum `TABLE = 6;`\n\n### TABLE_HEADER\n\n Value: 7\n\nThe text segment is a table's headers. It will be treated as child of\nanother TABLE TextSegment if its span is subspan of another TextSegment\nwith type TABLE.\n\nGenerated from protobuf enum `TABLE_HEADER = 7;`\n\n### TABLE_ROW\n\n Value: 8\n\nThe text segment is a row in table. It will be treated as child of\nanother TABLE TextSegment if its span is subspan of another TextSegment\nwith type TABLE.\n\nGenerated from protobuf enum `TABLE_ROW = 8;`\n\n### TABLE_CELL\n\n Value: 9\n\nThe text segment is a cell in table. It will be treated as child of\nanother TABLE_ROW TextSegment if its span is subspan of another\nTextSegment with type TABLE_ROW.\n\nGenerated from protobuf enum `TABLE_CELL = 9;`"]]