Class Document.PageAnchor.Builder (2.11.0)

public static final class Document.PageAnchor.Builder extends GeneratedMessageV3.Builder<Document.PageAnchor.Builder> implements Document.PageAnchorOrBuilder

Referencing elements in Document.pages.

Protobuf type google.cloud.documentai.v1beta2.Document.PageAnchor

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1beta2.Document.PageAnchor.PageRef page_refs = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1beta2.Document.PageAnchor.PageRef>
Returns
TypeDescription
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.v1beta2.Document.PageAnchor.PageRef page_refs = 1;

Parameter
NameDescription
valueDocument.PageAnchor.PageRef
Returns
TypeDescription
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.v1beta2.Document.PageAnchor.PageRef page_refs = 1;

Parameter
NameDescription
builderForValueDocument.PageAnchor.PageRef.Builder
Returns
TypeDescription
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.v1beta2.Document.PageAnchor.PageRef page_refs = 1;

Parameters
NameDescription
indexint
valueDocument.PageAnchor.PageRef
Returns
TypeDescription
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.v1beta2.Document.PageAnchor.PageRef page_refs = 1;

Parameters
NameDescription
indexint
builderForValueDocument.PageAnchor.PageRef.Builder
Returns
TypeDescription
Document.PageAnchor.Builder

addPageRefsBuilder()

public Document.PageAnchor.PageRef.Builder addPageRefsBuilder()

One or more references to visual page elements

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

Returns
TypeDescription
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.v1beta2.Document.PageAnchor.PageRef page_refs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Document.PageAnchor.PageRef.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Document.PageAnchor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Document.PageAnchor.Builder
Overrides

build()

public Document.PageAnchor build()
Returns
TypeDescription
Document.PageAnchor

buildPartial()

public Document.PageAnchor buildPartial()
Returns