public static interface Document.LayoutOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
BoundingPoly |
getBoundingPoly()
The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
|
BoundingPolyOrBuilder |
getBoundingPolyOrBuilder()
The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
|
int |
getPageNumber()
Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts
from 1.
|
TextSegment |
getTextSegment()
Text Segment that represents a segment in
[document_text][google.cloud.automl.v1p1beta.Document.document_text].
|
TextSegmentOrBuilder |
getTextSegmentOrBuilder()
Text Segment that represents a segment in
[document_text][google.cloud.automl.v1p1beta.Document.document_text].
|
Document.Layout.TextSegmentType |
getTextSegmentType()
The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
|
int |
getTextSegmentTypeValue()
The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
|
boolean |
hasBoundingPoly()
The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
|
boolean |
hasTextSegment()
Text Segment that represents a segment in
[document_text][google.cloud.automl.v1p1beta.Document.document_text].
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasTextSegment()
Text Segment that represents a segment in [document_text][google.cloud.automl.v1p1beta.Document.document_text].
.google.cloud.automl.v1.TextSegment text_segment = 1;TextSegment getTextSegment()
Text Segment that represents a segment in [document_text][google.cloud.automl.v1p1beta.Document.document_text].
.google.cloud.automl.v1.TextSegment text_segment = 1;TextSegmentOrBuilder getTextSegmentOrBuilder()
Text Segment that represents a segment in [document_text][google.cloud.automl.v1p1beta.Document.document_text].
.google.cloud.automl.v1.TextSegment text_segment = 1;int getPageNumber()
Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts from 1.
int32 page_number = 2;boolean hasBoundingPoly()
The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page. Contains exactly 4 [normalized_vertices][google.cloud.automl.v1p1beta.BoundingPoly.normalized_vertices] and they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. The [NormalizedVertex-s][google.cloud.automl.v1p1beta.NormalizedVertex] are relative to the page. Coordinates are based on top-left as point (0,0).
.google.cloud.automl.v1.BoundingPoly bounding_poly = 3;BoundingPoly getBoundingPoly()
The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page. Contains exactly 4 [normalized_vertices][google.cloud.automl.v1p1beta.BoundingPoly.normalized_vertices] and they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. The [NormalizedVertex-s][google.cloud.automl.v1p1beta.NormalizedVertex] are relative to the page. Coordinates are based on top-left as point (0,0).
.google.cloud.automl.v1.BoundingPoly bounding_poly = 3;BoundingPolyOrBuilder getBoundingPolyOrBuilder()
The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page. Contains exactly 4 [normalized_vertices][google.cloud.automl.v1p1beta.BoundingPoly.normalized_vertices] and they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. The [NormalizedVertex-s][google.cloud.automl.v1p1beta.NormalizedVertex] are relative to the page. Coordinates are based on top-left as point (0,0).
.google.cloud.automl.v1.BoundingPoly bounding_poly = 3;int getTextSegmentTypeValue()
The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
.google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4;Document.Layout.TextSegmentType getTextSegmentType()
The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
.google.cloud.automl.v1.Document.Layout.TextSegmentType text_segment_type = 4;Copyright © 2025 Google LLC. All rights reserved.