public static final class Document.Layout.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Document.Layout.Builder> implements Document.LayoutOrBuilder
Describes the layout information of a [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the document.Protobuf type
google.cloud.automl.v1.Document.Layout| Modifier and Type | Method and Description |
|---|---|
Document.Layout.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Document.Layout |
build() |
Document.Layout |
buildPartial() |
Document.Layout.Builder |
clear() |
Document.Layout.Builder |
clearBoundingPoly()
The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
|
Document.Layout.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Document.Layout.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Document.Layout.Builder |
clearPageNumber()
Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts
from 1.
|
Document.Layout.Builder |
clearTextSegment()
Text Segment that represents a segment in
[document_text][google.cloud.automl.v1p1beta.Document.document_text].
|
Document.Layout.Builder |
clearTextSegmentType()
The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
|
Document.Layout.Builder |
clone() |
BoundingPoly |
getBoundingPoly()
The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
|
BoundingPoly.Builder |
getBoundingPolyBuilder()
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.
|
Document.Layout |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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].
|
TextSegment.Builder |
getTextSegmentBuilder()
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].
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Document.Layout.Builder |
mergeBoundingPoly(BoundingPoly value)
The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
|
Document.Layout.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Document.Layout.Builder |
mergeFrom(Document.Layout other) |
Document.Layout.Builder |
mergeFrom(com.google.protobuf.Message other) |
Document.Layout.Builder |
mergeTextSegment(TextSegment value)
Text Segment that represents a segment in
[document_text][google.cloud.automl.v1p1beta.Document.document_text].
|
Document.Layout.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Document.Layout.Builder |
setBoundingPoly(BoundingPoly.Builder builderForValue)
The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
|
Document.Layout.Builder |
setBoundingPoly(BoundingPoly value)
The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page.
|
Document.Layout.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Document.Layout.Builder |
setPageNumber(int value)
Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts
from 1.
|
Document.Layout.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Document.Layout.Builder |
setTextSegment(TextSegment.Builder builderForValue)
Text Segment that represents a segment in
[document_text][google.cloud.automl.v1p1beta.Document.document_text].
|
Document.Layout.Builder |
setTextSegment(TextSegment value)
Text Segment that represents a segment in
[document_text][google.cloud.automl.v1p1beta.Document.document_text].
|
Document.Layout.Builder |
setTextSegmentType(Document.Layout.TextSegmentType value)
The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
|
Document.Layout.Builder |
setTextSegmentTypeValue(int value)
The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
|
Document.Layout.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Layout.Builder>public Document.Layout.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Layout.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Layout.Builder>public Document.Layout getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Document.Layout build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Document.Layout buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Document.Layout.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Layout.Builder>public Document.Layout.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Layout.Builder>public Document.Layout.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Layout.Builder>public Document.Layout.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Layout.Builder>public Document.Layout.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Layout.Builder>public Document.Layout.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Layout.Builder>public Document.Layout.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.Layout.Builder>public Document.Layout.Builder mergeFrom(Document.Layout other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Layout.Builder>public Document.Layout.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.Layout.Builder>IOExceptionpublic 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;hasTextSegment in interface Document.LayoutOrBuilderpublic 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;getTextSegment in interface Document.LayoutOrBuilderpublic Document.Layout.Builder setTextSegment(TextSegment value)
Text Segment that represents a segment in [document_text][google.cloud.automl.v1p1beta.Document.document_text].
.google.cloud.automl.v1.TextSegment text_segment = 1;public Document.Layout.Builder setTextSegment(TextSegment.Builder builderForValue)
Text Segment that represents a segment in [document_text][google.cloud.automl.v1p1beta.Document.document_text].
.google.cloud.automl.v1.TextSegment text_segment = 1;public Document.Layout.Builder mergeTextSegment(TextSegment value)
Text Segment that represents a segment in [document_text][google.cloud.automl.v1p1beta.Document.document_text].
.google.cloud.automl.v1.TextSegment text_segment = 1;public Document.Layout.Builder clearTextSegment()
Text Segment that represents a segment in [document_text][google.cloud.automl.v1p1beta.Document.document_text].
.google.cloud.automl.v1.TextSegment text_segment = 1;public TextSegment.Builder getTextSegmentBuilder()
Text Segment that represents a segment in [document_text][google.cloud.automl.v1p1beta.Document.document_text].
.google.cloud.automl.v1.TextSegment text_segment = 1;public 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;getTextSegmentOrBuilder in interface Document.LayoutOrBuilderpublic 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;getPageNumber in interface Document.LayoutOrBuilderpublic Document.Layout.Builder setPageNumber(int value)
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;value - The pageNumber to set.public Document.Layout.Builder clearPageNumber()
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;public 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;hasBoundingPoly in interface Document.LayoutOrBuilderpublic 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;getBoundingPoly in interface Document.LayoutOrBuilderpublic Document.Layout.Builder setBoundingPoly(BoundingPoly value)
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;public Document.Layout.Builder setBoundingPoly(BoundingPoly.Builder builderForValue)
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;public Document.Layout.Builder mergeBoundingPoly(BoundingPoly value)
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;public Document.Layout.Builder clearBoundingPoly()
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;public BoundingPoly.Builder getBoundingPolyBuilder()
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;public 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;getBoundingPolyOrBuilder in interface Document.LayoutOrBuilderpublic 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;getTextSegmentTypeValue in interface Document.LayoutOrBuilderpublic Document.Layout.Builder setTextSegmentTypeValue(int value)
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;value - The enum numeric value on the wire for textSegmentType to set.public 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;getTextSegmentType in interface Document.LayoutOrBuilderpublic Document.Layout.Builder setTextSegmentType(Document.Layout.TextSegmentType value)
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;value - The textSegmentType to set.public Document.Layout.Builder clearTextSegmentType()
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;public final Document.Layout.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Layout.Builder>public final Document.Layout.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Layout.Builder>Copyright © 2025 Google LLC. All rights reserved.