Package com.google.cloud.automl.v1
Interface Document.LayoutOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Document.Layout
,Document.Layout.Builder
- Enclosing class:
- Document
public static interface Document.LayoutOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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].-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasTextSegment
boolean 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;
- Returns:
- Whether the textSegment field is set.
-
getTextSegment
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;
- Returns:
- The textSegment.
-
getTextSegmentOrBuilder
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;
-
getPageNumber
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;
- Returns:
- The pageNumber.
-
hasBoundingPoly
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;
- Returns:
- Whether the boundingPoly field is set.
-
getBoundingPoly
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;
- Returns:
- The boundingPoly.
-
getBoundingPolyOrBuilder
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;
-
getTextSegmentTypeValue
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;
- Returns:
- The enum numeric value on the wire for textSegmentType.
-
getTextSegmentType
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;
- Returns:
- The textSegmentType.
-
-