public static final class Document.PageAnchor.Builder extends GeneratedMessageV3.Builder<Document.PageAnchor.Builder> implements Document.PageAnchorOrBuilder
Referencing the visual context of the entity in the
Document.pages. Page
anchors can be cross-page, consist of multiple bounding polygons and
optionally reference specific layout element types.
Protobuf type google.cloud.documentai.v1beta3.Document.PageAnchor
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public Document.PageAnchor.Builder addAllPageRefs(Iterable<? extends Document.PageAnchor.PageRef> values)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef>
|
Returns
public Document.PageAnchor.Builder addPageRefs(Document.PageAnchor.PageRef value)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameter
Returns
public Document.PageAnchor.Builder addPageRefs(Document.PageAnchor.PageRef.Builder builderForValue)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameter
Returns
public Document.PageAnchor.Builder addPageRefs(int index, Document.PageAnchor.PageRef value)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameters
Returns
public Document.PageAnchor.Builder addPageRefs(int index, Document.PageAnchor.PageRef.Builder builderForValue)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameters
Returns
public Document.PageAnchor.PageRef.Builder addPageRefsBuilder()
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Returns
public Document.PageAnchor.PageRef.Builder addPageRefsBuilder(int index)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Document.PageAnchor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Document.PageAnchor build()
Returns
buildPartial()
public Document.PageAnchor buildPartial()
Returns
clear()
public Document.PageAnchor.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Document.PageAnchor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Document.PageAnchor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public Document.PageAnchor.Builder clearPageRefs()
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Returns
clone()
public Document.PageAnchor.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Document.PageAnchor getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public Document.PageAnchor.PageRef getPageRefs(int index)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameter
Returns
public Document.PageAnchor.PageRef.Builder getPageRefsBuilder(int index)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameter
Returns
public List<Document.PageAnchor.PageRef.Builder> getPageRefsBuilderList()
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Returns
public int getPageRefsCount()
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Returns
public List<Document.PageAnchor.PageRef> getPageRefsList()
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Returns
public Document.PageAnchor.PageRefOrBuilder getPageRefsOrBuilder(int index)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameter
Returns
public List<? extends Document.PageAnchor.PageRefOrBuilder> getPageRefsOrBuilderList()
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Returns
Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.Document.PageAnchor.PageRefOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Document.PageAnchor other)
public Document.PageAnchor.Builder mergeFrom(Document.PageAnchor other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Document.PageAnchor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Document.PageAnchor.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Document.PageAnchor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public Document.PageAnchor.Builder removePageRefs(int index)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Document.PageAnchor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Document.PageAnchor.Builder setPageRefs(int index, Document.PageAnchor.PageRef value)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameters
Returns
public Document.PageAnchor.Builder setPageRefs(int index, Document.PageAnchor.PageRef.Builder builderForValue)
One or more references to visual page elements
repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Document.PageAnchor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Document.PageAnchor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides