public static final class Document.PageAnchor.PageRef.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Document.PageAnchor.PageRef.Builder> implements Document.PageAnchor.PageRefOrBuilder
Represents a weak reference to a page element within a document.Protobuf type
google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef| Modifier and Type | Method and Description |
|---|---|
Document.PageAnchor.PageRef.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Document.PageAnchor.PageRef |
build() |
Document.PageAnchor.PageRef |
buildPartial() |
Document.PageAnchor.PageRef.Builder |
clear() |
Document.PageAnchor.PageRef.Builder |
clearBoundingPoly()
Optional.
|
Document.PageAnchor.PageRef.Builder |
clearConfidence()
Optional.
|
Document.PageAnchor.PageRef.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Document.PageAnchor.PageRef.Builder |
clearLayoutId()
Deprecated.
google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.layout_id is
deprecated. See google/cloud/documentai/v1beta2/document.proto;l=782
|
Document.PageAnchor.PageRef.Builder |
clearLayoutType()
Optional.
|
Document.PageAnchor.PageRef.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Document.PageAnchor.PageRef.Builder |
clearPage()
Required.
|
Document.PageAnchor.PageRef.Builder |
clone() |
BoundingPoly |
getBoundingPoly()
Optional.
|
BoundingPoly.Builder |
getBoundingPolyBuilder()
Optional.
|
BoundingPolyOrBuilder |
getBoundingPolyOrBuilder()
Optional.
|
float |
getConfidence()
Optional.
|
Document.PageAnchor.PageRef |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getLayoutId()
Deprecated.
google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.layout_id is
deprecated. See google/cloud/documentai/v1beta2/document.proto;l=782
|
com.google.protobuf.ByteString |
getLayoutIdBytes()
Deprecated.
google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.layout_id is
deprecated. See google/cloud/documentai/v1beta2/document.proto;l=782
|
Document.PageAnchor.PageRef.LayoutType |
getLayoutType()
Optional.
|
int |
getLayoutTypeValue()
Optional.
|
long |
getPage()
Required.
|
boolean |
hasBoundingPoly()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Document.PageAnchor.PageRef.Builder |
mergeBoundingPoly(BoundingPoly value)
Optional.
|
Document.PageAnchor.PageRef.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Document.PageAnchor.PageRef.Builder |
mergeFrom(Document.PageAnchor.PageRef other) |
Document.PageAnchor.PageRef.Builder |
mergeFrom(com.google.protobuf.Message other) |
Document.PageAnchor.PageRef.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Document.PageAnchor.PageRef.Builder |
setBoundingPoly(BoundingPoly.Builder builderForValue)
Optional.
|
Document.PageAnchor.PageRef.Builder |
setBoundingPoly(BoundingPoly value)
Optional.
|
Document.PageAnchor.PageRef.Builder |
setConfidence(float value)
Optional.
|
Document.PageAnchor.PageRef.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Document.PageAnchor.PageRef.Builder |
setLayoutId(String value)
Deprecated.
google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.layout_id is
deprecated. See google/cloud/documentai/v1beta2/document.proto;l=782
|
Document.PageAnchor.PageRef.Builder |
setLayoutIdBytes(com.google.protobuf.ByteString value)
Deprecated.
google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.layout_id is
deprecated. See google/cloud/documentai/v1beta2/document.proto;l=782
|
Document.PageAnchor.PageRef.Builder |
setLayoutType(Document.PageAnchor.PageRef.LayoutType value)
Optional.
|
Document.PageAnchor.PageRef.Builder |
setLayoutTypeValue(int value)
Optional.
|
Document.PageAnchor.PageRef.Builder |
setPage(long value)
Required.
|
Document.PageAnchor.PageRef.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Document.PageAnchor.PageRef.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Document.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.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.PageAnchor.PageRef.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.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Document.PageAnchor.PageRef build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Document.PageAnchor.PageRef buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Document.PageAnchor.PageRef.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.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.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.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Document.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.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.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.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.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.Builder mergeFrom(Document.PageAnchor.PageRef other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Document.PageAnchor.PageRef.Builder>public Document.PageAnchor.PageRef.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.PageAnchor.PageRef.Builder>IOExceptionpublic long getPage()
Required. Index into the [Document.pages][google.cloud.documentai.v1beta2.Document.pages] element, for example using `[Document.pages][page_refs.page]` to locate the related page element. This field is skipped when its value is the default `0`. See https://developers.google.com/protocol-buffers/docs/proto3#json.
int64 page = 1 [(.google.api.field_behavior) = REQUIRED];getPage in interface Document.PageAnchor.PageRefOrBuilderpublic Document.PageAnchor.PageRef.Builder setPage(long value)
Required. Index into the [Document.pages][google.cloud.documentai.v1beta2.Document.pages] element, for example using `[Document.pages][page_refs.page]` to locate the related page element. This field is skipped when its value is the default `0`. See https://developers.google.com/protocol-buffers/docs/proto3#json.
int64 page = 1 [(.google.api.field_behavior) = REQUIRED];value - The page to set.public Document.PageAnchor.PageRef.Builder clearPage()
Required. Index into the [Document.pages][google.cloud.documentai.v1beta2.Document.pages] element, for example using `[Document.pages][page_refs.page]` to locate the related page element. This field is skipped when its value is the default `0`. See https://developers.google.com/protocol-buffers/docs/proto3#json.
int64 page = 1 [(.google.api.field_behavior) = REQUIRED];public int getLayoutTypeValue()
Optional. The type of the layout element that is being referenced if any.
.google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType layout_type = 2 [(.google.api.field_behavior) = OPTIONAL];
getLayoutTypeValue in interface Document.PageAnchor.PageRefOrBuilderpublic Document.PageAnchor.PageRef.Builder setLayoutTypeValue(int value)
Optional. The type of the layout element that is being referenced if any.
.google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType layout_type = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for layoutType to set.public Document.PageAnchor.PageRef.LayoutType getLayoutType()
Optional. The type of the layout element that is being referenced if any.
.google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType layout_type = 2 [(.google.api.field_behavior) = OPTIONAL];
getLayoutType in interface Document.PageAnchor.PageRefOrBuilderpublic Document.PageAnchor.PageRef.Builder setLayoutType(Document.PageAnchor.PageRef.LayoutType value)
Optional. The type of the layout element that is being referenced if any.
.google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType layout_type = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The layoutType to set.public Document.PageAnchor.PageRef.Builder clearLayoutType()
Optional. The type of the layout element that is being referenced if any.
.google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.LayoutType layout_type = 2 [(.google.api.field_behavior) = OPTIONAL];
@Deprecated public String getLayoutId()
Optional. Deprecated. Use [PageRef.bounding_poly][google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.bounding_poly] instead.
string layout_id = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
getLayoutId in interface Document.PageAnchor.PageRefOrBuilder@Deprecated public com.google.protobuf.ByteString getLayoutIdBytes()
Optional. Deprecated. Use [PageRef.bounding_poly][google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.bounding_poly] instead.
string layout_id = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
getLayoutIdBytes in interface Document.PageAnchor.PageRefOrBuilder@Deprecated public Document.PageAnchor.PageRef.Builder setLayoutId(String value)
Optional. Deprecated. Use [PageRef.bounding_poly][google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.bounding_poly] instead.
string layout_id = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
value - The layoutId to set.@Deprecated public Document.PageAnchor.PageRef.Builder clearLayoutId()
Optional. Deprecated. Use [PageRef.bounding_poly][google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.bounding_poly] instead.
string layout_id = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
@Deprecated public Document.PageAnchor.PageRef.Builder setLayoutIdBytes(com.google.protobuf.ByteString value)
Optional. Deprecated. Use [PageRef.bounding_poly][google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef.bounding_poly] instead.
string layout_id = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
value - The bytes for layoutId to set.public boolean hasBoundingPoly()
Optional. Identifies the bounding polygon of a layout element on the page.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 4 [(.google.api.field_behavior) = OPTIONAL];
hasBoundingPoly in interface Document.PageAnchor.PageRefOrBuilderpublic BoundingPoly getBoundingPoly()
Optional. Identifies the bounding polygon of a layout element on the page.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 4 [(.google.api.field_behavior) = OPTIONAL];
getBoundingPoly in interface Document.PageAnchor.PageRefOrBuilderpublic Document.PageAnchor.PageRef.Builder setBoundingPoly(BoundingPoly value)
Optional. Identifies the bounding polygon of a layout element on the page.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 4 [(.google.api.field_behavior) = OPTIONAL];
public Document.PageAnchor.PageRef.Builder setBoundingPoly(BoundingPoly.Builder builderForValue)
Optional. Identifies the bounding polygon of a layout element on the page.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 4 [(.google.api.field_behavior) = OPTIONAL];
public Document.PageAnchor.PageRef.Builder mergeBoundingPoly(BoundingPoly value)
Optional. Identifies the bounding polygon of a layout element on the page.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 4 [(.google.api.field_behavior) = OPTIONAL];
public Document.PageAnchor.PageRef.Builder clearBoundingPoly()
Optional. Identifies the bounding polygon of a layout element on the page.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 4 [(.google.api.field_behavior) = OPTIONAL];
public BoundingPoly.Builder getBoundingPolyBuilder()
Optional. Identifies the bounding polygon of a layout element on the page.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 4 [(.google.api.field_behavior) = OPTIONAL];
public BoundingPolyOrBuilder getBoundingPolyOrBuilder()
Optional. Identifies the bounding polygon of a layout element on the page.
.google.cloud.documentai.v1beta2.BoundingPoly bounding_poly = 4 [(.google.api.field_behavior) = OPTIONAL];
getBoundingPolyOrBuilder in interface Document.PageAnchor.PageRefOrBuilderpublic float getConfidence()
Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.
float confidence = 5 [(.google.api.field_behavior) = OPTIONAL];getConfidence in interface Document.PageAnchor.PageRefOrBuilderpublic Document.PageAnchor.PageRef.Builder setConfidence(float value)
Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.
float confidence = 5 [(.google.api.field_behavior) = OPTIONAL];value - The confidence to set.public Document.PageAnchor.PageRef.Builder clearConfidence()
Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.
float confidence = 5 [(.google.api.field_behavior) = OPTIONAL];public final Document.PageAnchor.PageRef.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.PageAnchor.PageRef.Builder>public final Document.PageAnchor.PageRef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.PageAnchor.PageRef.Builder>Copyright © 2023 Google LLC. All rights reserved.