public static final class Document.Layout extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
Document.Layout.Builder
Describes the layout information of a [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the document.
|
static class |
Document.Layout.TextSegmentType
The type of TextSegment in the context of the original document.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BOUNDING_POLY_FIELD_NUMBER |
static int |
PAGE_NUMBER_FIELD_NUMBER |
static int |
TEXT_SEGMENT_FIELD_NUMBER |
static int |
TEXT_SEGMENT_TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
static Document.Layout |
getDefaultInstance() |
Document.Layout |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getPageNumber()
Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts
from 1.
|
com.google.protobuf.Parser<Document.Layout> |
getParserForType() |
int |
getSerializedSize() |
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.
|
int |
hashCode() |
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() |
static Document.Layout.Builder |
newBuilder() |
static Document.Layout.Builder |
newBuilder(Document.Layout prototype) |
Document.Layout.Builder |
newBuilderForType() |
protected Document.Layout.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Document.Layout |
parseDelimitedFrom(InputStream input) |
static Document.Layout |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Layout |
parseFrom(byte[] data) |
static Document.Layout |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Layout |
parseFrom(ByteBuffer data) |
static Document.Layout |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Layout |
parseFrom(com.google.protobuf.ByteString data) |
static Document.Layout |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Layout |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Document.Layout |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Document.Layout |
parseFrom(InputStream input) |
static Document.Layout |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Document.Layout> |
parser() |
Document.Layout.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TEXT_SEGMENT_FIELD_NUMBER
public static final int PAGE_NUMBER_FIELD_NUMBER
public static final int BOUNDING_POLY_FIELD_NUMBER
public static final int TEXT_SEGMENT_TYPE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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.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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Document.Layout parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Layout parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Layout parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Layout parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Layout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Layout parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Document.Layout parseFrom(InputStream input) throws IOException
IOExceptionpublic static Document.Layout parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.Layout parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Document.Layout parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Document.Layout parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Document.Layout parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Document.Layout.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Document.Layout.Builder newBuilder()
public static Document.Layout.Builder newBuilder(Document.Layout prototype)
public Document.Layout.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Document.Layout.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Document.Layout getDefaultInstance()
public static com.google.protobuf.Parser<Document.Layout> parser()
public com.google.protobuf.Parser<Document.Layout> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Document.Layout getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.