Class Document.PageAnchor.Builder (2.48.0)

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
Type Description
Descriptor

Methods

addAllPageRefs(Iterable<? extends Document.PageAnchor.PageRef> values)

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
Type Description
Document.PageAnchor.Builder

addPageRefs(Document.PageAnchor.PageRef value)

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
Name Description
value Document.PageAnchor.PageRef
Returns
Type Description
Document.PageAnchor.Builder

addPageRefs(Document.PageAnchor.PageRef.Builder builderForValue)

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
Name Description
builderForValue Document.PageAnchor.PageRef.Builder
Returns
Type Description
Document.PageAnchor.Builder

addPageRefs(int index, Document.PageAnchor.PageRef value)

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
Name Description
index int
value Document.PageAnchor.PageRef
Returns
Type Description
Document.PageAnchor.Builder

addPageRefs(int index, Document.PageAnchor.PageRef.Builder builderForValue)

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
Name Description
index int
builderForValue Document.PageAnchor.PageRef.Builder
Returns
Type Description
Document.PageAnchor.Builder

addPageRefsBuilder()

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
Type Description
Document.PageAnchor.PageRef.Builder

addPageRefsBuilder(int index)

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
Name Description
index int
Returns
Type Description
Document.PageAnchor.PageRef.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Document.PageAnchor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Document.PageAnchor.Builder
Overrides

build()

public Document.PageAnchor build()
Returns
Type Description
Document.PageAnchor

buildPartial()

public Document.PageAnchor buildPartial()
Returns
Type Description
Document.PageAnchor

clear()

public Document.PageAnchor.Builder clear()
Returns
Type Description
Document.PageAnchor.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Document.PageAnchor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Document.PageAnchor.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Document.PageAnchor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Document.PageAnchor.Builder
Overrides

clearPageRefs()

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
Type Description
Document.PageAnchor.Builder

clone()

public Document.PageAnchor.Builder clone()
Returns
Type Description
Document.PageAnchor.Builder
Overrides

getDefaultInstanceForType()

public Document.PageAnchor getDefaultInstanceForType()
Returns
Type Description
Document.PageAnchor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPageRefs(int index)

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
Name Description
index int
Returns
Type Description
Document.PageAnchor.PageRef

getPageRefsBuilder(int index)

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
Name Description
index int
Returns
Type Description
Document.PageAnchor.PageRef.Builder

getPageRefsBuilderList()

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
Type Description
List<Builder>

getPageRefsCount()

public int getPageRefsCount()

One or more references to visual page elements

repeated .google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef page_refs = 1;

Returns
Type Description
int

getPageRefsList()

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
Type Description
List<PageRef>

getPageRefsOrBuilder(int index)

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
Name Description
index int
Returns
Type Description
Document.PageAnchor.PageRefOrBuilder

getPageRefsOrBuilderList()

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Document.PageAnchor other)

public Document.PageAnchor.Builder mergeFrom(Document.PageAnchor other)
Parameter
Name Description
other Document.PageAnchor
Returns
Type Description
Document.PageAnchor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Document.PageAnchor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.PageAnchor.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Document.PageAnchor.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Document.PageAnchor.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Document.PageAnchor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Document.PageAnchor.Builder
Overrides

removePageRefs(int index)

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
Name Description
index int
Returns
Type Description
Document.PageAnchor.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Document.PageAnchor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Document.PageAnchor.Builder
Overrides

setPageRefs(int index, Document.PageAnchor.PageRef value)

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
Name Description
index int
value Document.PageAnchor.PageRef
Returns
Type Description
Document.PageAnchor.Builder

setPageRefs(int index, Document.PageAnchor.PageRef.Builder builderForValue)

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
Name Description
index int
builderForValue Document.PageAnchor.PageRef.Builder
Returns
Type Description
Document.PageAnchor.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Document.PageAnchor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Document.PageAnchor.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Document.PageAnchor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Document.PageAnchor.Builder
Overrides