Package com.google.cloud.documentai.v1
Class Document.Page.Layout.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Document.Page.Layout.Builder>
com.google.cloud.documentai.v1.Document.Page.Layout.Builder
- All Implemented Interfaces:
Document.Page.LayoutOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Document.Page.Layout
public static final class Document.Page.Layout.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Document.Page.Layout.Builder>
implements Document.Page.LayoutOrBuilder
Visual element describing a layout unit on a page.Protobuf type
google.cloud.documentai.v1.Document.Page.Layout-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].Confidence of the current [Layout][google.cloud.documentai.v1.Document.Page.Layout] within context of the object this layout is for.Detected orientation for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].floatConfidence of the current [Layout][google.cloud.documentai.v1.Document.Page.Layout] within context of the object this layout is for.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDetected orientation for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].intDetected orientation for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].booleanThe bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].booleanText anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBoundingPoly(BoundingPoly value) The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].mergeFrom(Document.Page.Layout other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].setBoundingPoly(BoundingPoly value) The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].setBoundingPoly(BoundingPoly.Builder builderForValue) The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].setConfidence(float value) Confidence of the current [Layout][google.cloud.documentai.v1.Document.Page.Layout] within context of the object this layout is for.Detected orientation for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].setOrientationValue(int value) Detected orientation for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].setTextAnchor(Document.TextAnchor value) Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].setTextAnchor(Document.TextAnchor.Builder builderForValue) Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Document.Page.Layout.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Document.Page.Layout.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Document.Page.Layout.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.Page.Layout.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Document.Page.Layout.Builder>
-
mergeFrom
public Document.Page.Layout.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.Page.Layout.Builder>- Throws:
IOException
-
hasTextAnchor
public boolean hasTextAnchor()Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;- Specified by:
hasTextAnchorin interfaceDocument.Page.LayoutOrBuilder- Returns:
- Whether the textAnchor field is set.
-
getTextAnchor
Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;- Specified by:
getTextAnchorin interfaceDocument.Page.LayoutOrBuilder- Returns:
- The textAnchor.
-
setTextAnchor
Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; -
setTextAnchor
Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; -
mergeTextAnchor
Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; -
clearTextAnchor
Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; -
getTextAnchorBuilder
Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; -
getTextAnchorOrBuilder
Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
.google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;- Specified by:
getTextAnchorOrBuilderin interfaceDocument.Page.LayoutOrBuilder
-
getConfidence
public float getConfidence()Confidence of the current [Layout][google.cloud.documentai.v1.Document.Page.Layout] within context of the object this layout is for. For example, confidence can be for a single token, a table, a visual element, etc. depending on context. Range `[0, 1]`.
float confidence = 2;- Specified by:
getConfidencein interfaceDocument.Page.LayoutOrBuilder- Returns:
- The confidence.
-
setConfidence
Confidence of the current [Layout][google.cloud.documentai.v1.Document.Page.Layout] within context of the object this layout is for. For example, confidence can be for a single token, a table, a visual element, etc. depending on context. Range `[0, 1]`.
float confidence = 2;- Parameters:
value- The confidence to set.- Returns:
- This builder for chaining.
-
clearConfidence
Confidence of the current [Layout][google.cloud.documentai.v1.Document.Page.Layout] within context of the object this layout is for. For example, confidence can be for a single token, a table, a visual element, etc. depending on context. Range `[0, 1]`.
float confidence = 2;- Returns:
- This builder for chaining.
-
hasBoundingPoly
public boolean hasBoundingPoly()The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
.google.cloud.documentai.v1.BoundingPoly bounding_poly = 3;- Specified by:
hasBoundingPolyin interfaceDocument.Page.LayoutOrBuilder- Returns:
- Whether the boundingPoly field is set.
-
getBoundingPoly
The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
.google.cloud.documentai.v1.BoundingPoly bounding_poly = 3;- Specified by:
getBoundingPolyin interfaceDocument.Page.LayoutOrBuilder- Returns:
- The boundingPoly.
-
setBoundingPoly
The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
.google.cloud.documentai.v1.BoundingPoly bounding_poly = 3; -
setBoundingPoly
The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
.google.cloud.documentai.v1.BoundingPoly bounding_poly = 3; -
mergeBoundingPoly
The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
.google.cloud.documentai.v1.BoundingPoly bounding_poly = 3; -
clearBoundingPoly
The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
.google.cloud.documentai.v1.BoundingPoly bounding_poly = 3; -
getBoundingPolyBuilder
The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
.google.cloud.documentai.v1.BoundingPoly bounding_poly = 3; -
getBoundingPolyOrBuilder
The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
.google.cloud.documentai.v1.BoundingPoly bounding_poly = 3;- Specified by:
getBoundingPolyOrBuilderin interfaceDocument.Page.LayoutOrBuilder
-
getOrientationValue
public int getOrientationValue()Detected orientation for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
.google.cloud.documentai.v1.Document.Page.Layout.Orientation orientation = 4;- Specified by:
getOrientationValuein interfaceDocument.Page.LayoutOrBuilder- Returns:
- The enum numeric value on the wire for orientation.
-
setOrientationValue
Detected orientation for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
.google.cloud.documentai.v1.Document.Page.Layout.Orientation orientation = 4;- Parameters:
value- The enum numeric value on the wire for orientation to set.- Returns:
- This builder for chaining.
-
getOrientation
Detected orientation for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
.google.cloud.documentai.v1.Document.Page.Layout.Orientation orientation = 4;- Specified by:
getOrientationin interfaceDocument.Page.LayoutOrBuilder- Returns:
- The orientation.
-
setOrientation
Detected orientation for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
.google.cloud.documentai.v1.Document.Page.Layout.Orientation orientation = 4;- Parameters:
value- The orientation to set.- Returns:
- This builder for chaining.
-
clearOrientation
Detected orientation for the [Layout][google.cloud.documentai.v1.Document.Page.Layout].
.google.cloud.documentai.v1.Document.Page.Layout.Orientation orientation = 4;- Returns:
- This builder for chaining.
-