Class Document.PageAnchor.Builder (2.10.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
TypeDescription
Document.PageAnchor

clear()

public Document.PageAnchor.Builder clear()
Returns
TypeDescription
Document.PageAnchor.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Document.PageAnchor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Document.PageAnchor.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Document.PageAnchor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Document.PageAnchor.Builder
Overrides

clearPageRefs()

public Document.PageAnchor.Builder clearPageRefs()

One or more references to visual page elements

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

Returns
TypeDescription
Document.PageAnchor.Builder

clone()

public Document.PageAnchor.Builder clone()
Returns
TypeDescription
Document.PageAnchor.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPageRefs(int index)

public Document.PageAnchor.PageRef getPageRefs(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

getPageRefsBuilder(int index)

public Document.PageAnchor.PageRef.Builder getPageRefsBuilder(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

getPageRefsBuilderList()

public List<Document.PageAnchor.PageRef.Builder> getPageRefsBuilderList()

One or more references to visual page elements

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

Returns
TypeDescription
List<Builder>

getPageRefsCount()

public int getPageRefsCount()

One or more references to visual page elements

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

Returns
TypeDescription
int

getPageRefsList()

public List<Document.PageAnchor.PageRef> getPageRefsList()

One or more references to visual page elements

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

Returns
TypeDescription
List<PageRef>

getPageRefsOrBuilder(int index)

public Document.PageAnchor.PageRefOrBuilder getPageRefsOrBuilder(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.PageRefOrBuilder

getPageRefsOrBuilderList()

public List<? extends Document.PageAnchor.PageRefOrBuilder> getPageRefsOrBuilderList()

One or more references to visual page elements

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

Returns
TypeDescription
List<? extends com.google.cloud.documentai.v1beta2.Document.PageAnchor.PageRefOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Document.PageAnchor other)

public Document.PageAnchor.Builder mergeFrom(Document.PageAnchor other)
Parameter
NameDescription
otherDocument.PageAnchor
Returns
TypeDescription
Document.PageAnchor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Document.PageAnchor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.PageAnchor.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Document.PageAnchor.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Document.PageAnchor.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Document.PageAnchor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1beta2.Document.PageAnchor.PageRef page_refs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Document.PageAnchor.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Document.PageAnchor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1beta2.Document.PageAnchor.PageRef page_refs = 1;

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Document.PageAnchor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Document.PageAnchor.Builder
Overrides