@@ -111,7 +111,20 @@ class DocumentDimensions(proto.Message):
111111 """
112112
113113 class DocumentDimensionUnit (proto .Enum ):
114- r"""Unit of the document dimension."""
114+ r"""Unit of the document dimension.
115+
116+ Values:
117+ DOCUMENT_DIMENSION_UNIT_UNSPECIFIED (0):
118+ Should not be used.
119+ INCH (1):
120+ Document dimension is measured in inches.
121+ CENTIMETER (2):
122+ Document dimension is measured in
123+ centimeters.
124+ POINT (3):
125+ Document dimension is measured in points. 72
126+ points = 1 inch.
127+ """
115128 DOCUMENT_DIMENSION_UNIT_UNSPECIFIED = 0
116129 INCH = 1
117130 CENTIMETER = 2
@@ -182,6 +195,42 @@ class Layout(proto.Message):
182195 class TextSegmentType (proto .Enum ):
183196 r"""The type of TextSegment in the context of the original
184197 document.
198+
199+ Values:
200+ TEXT_SEGMENT_TYPE_UNSPECIFIED (0):
201+ Should not be used.
202+ TOKEN (1):
203+ The text segment is a token. e.g. word.
204+ PARAGRAPH (2):
205+ The text segment is a paragraph.
206+ FORM_FIELD (3):
207+ The text segment is a form field.
208+ FORM_FIELD_NAME (4):
209+ The text segment is the name part of a form field. It will
210+ be treated as child of another FORM_FIELD TextSegment if its
211+ span is subspan of another TextSegment with type FORM_FIELD.
212+ FORM_FIELD_CONTENTS (5):
213+ The text segment is the text content part of a form field.
214+ It will be treated as child of another FORM_FIELD
215+ TextSegment if its span is subspan of another TextSegment
216+ with type FORM_FIELD.
217+ TABLE (6):
218+ The text segment is a whole table, including
219+ headers, and all rows.
220+ TABLE_HEADER (7):
221+ The text segment is a table's headers. It
222+ will be treated as child of another TABLE
223+ TextSegment if its span is subspan of another
224+ TextSegment with type TABLE.
225+ TABLE_ROW (8):
226+ The text segment is a row in table. It will
227+ be treated as child of another TABLE TextSegment
228+ if its span is subspan of another TextSegment
229+ with type TABLE.
230+ TABLE_CELL (9):
231+ The text segment is a cell in table. It will be treated as
232+ child of another TABLE_ROW TextSegment if its span is
233+ subspan of another TextSegment with type TABLE_ROW.
185234 """
186235 TEXT_SEGMENT_TYPE_UNSPECIFIED = 0
187236 TOKEN = 1
0 commit comments