Send feedback
Class Document.PageAnchor.Builder (2.3.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.3.1 keyboard_arrow_down
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.v1.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.v1.Document.PageAnchor.PageRef page_refs = 1;
Parameter
Name Description values Iterable <? extends com.google.cloud.documentai.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.Document.PageAnchor.PageRef page_refs = 1;
Returns
public int getPageRefsCount ()
One or more references to visual page elements
repeated .google.cloud.documentai.v1.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.v1.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.v1.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.v1.Document.PageAnchor.PageRef page_refs = 1;
Returns
Type Description List <? extends com.google.cloud.documentai.v1.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.v1.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.v1.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.v1.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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]