Class Document.Page.Block.Builder (2.59.0)

public static final class Document.Page.Block.Builder extends GeneratedMessageV3.Builder<Document.Page.Block.Builder> implements Document.Page.BlockOrBuilder

A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.

Protobuf type google.cloud.documentai.v1beta3.Document.Page.Block

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDetectedLanguages(Iterable<? extends Document.Page.DetectedLanguage> values)

public Document.Page.Block.Builder addAllDetectedLanguages(Iterable<? extends Document.Page.DetectedLanguage> values)

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage>
Returns
Type Description
Document.Page.Block.Builder

addDetectedLanguages(Document.Page.DetectedLanguage value)

public Document.Page.Block.Builder addDetectedLanguages(Document.Page.DetectedLanguage value)

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Parameter
Name Description
value Document.Page.DetectedLanguage
Returns
Type Description
Document.Page.Block.Builder

addDetectedLanguages(Document.Page.DetectedLanguage.Builder builderForValue)

public Document.Page.Block.Builder addDetectedLanguages(Document.Page.DetectedLanguage.Builder builderForValue)

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Parameter
Name Description
builderForValue Document.Page.DetectedLanguage.Builder
Returns
Type Description
Document.Page.Block.Builder

addDetectedLanguages(int index, Document.Page.DetectedLanguage value)

public Document.Page.Block.Builder addDetectedLanguages(int index, Document.Page.DetectedLanguage value)

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Parameters
Name Description
index int
value Document.Page.DetectedLanguage
Returns
Type Description
Document.Page.Block.Builder

addDetectedLanguages(int index, Document.Page.DetectedLanguage.Builder builderForValue)

public Document.Page.Block.Builder addDetectedLanguages(int index, Document.Page.DetectedLanguage.Builder builderForValue)

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Parameters
Name Description
index int
builderForValue Document.Page.DetectedLanguage.Builder
Returns
Type Description
Document.Page.Block.Builder

addDetectedLanguagesBuilder()

public Document.Page.DetectedLanguage.Builder addDetectedLanguagesBuilder()

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Returns
Type Description
Document.Page.DetectedLanguage.Builder

addDetectedLanguagesBuilder(int index)

public Document.Page.DetectedLanguage.Builder addDetectedLanguagesBuilder(int index)

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Parameter
Name Description
index int
Returns
Type Description
Document.Page.DetectedLanguage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Document.Page.Block build()
Returns
Type Description
Document.Page.Block

buildPartial()

public Document.Page.Block buildPartial()
Returns
Type Description
Document.Page.Block

clear()

public Document.Page.Block.Builder clear()
Returns
Type Description
Document.Page.Block.Builder
Overrides

clearDetectedLanguages()

public Document.Page.Block.Builder clearDetectedLanguages()

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Returns
Type Description
Document.Page.Block.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLayout()

public Document.Page.Block.Builder clearLayout()

Layout for Block.

.google.cloud.documentai.v1beta3.Document.Page.Layout layout = 1;

Returns
Type Description
Document.Page.Block.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProvenance() (deprecated)

public Document.Page.Block.Builder clearProvenance()

The history of this annotation.

.google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];

Returns
Type Description
Document.Page.Block.Builder

clone()

public Document.Page.Block.Builder clone()
Returns
Type Description
Document.Page.Block.Builder
Overrides

getDefaultInstanceForType()

public Document.Page.Block getDefaultInstanceForType()
Returns
Type Description
Document.Page.Block

getDescriptorForType()

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

getDetectedLanguages(int index)

public Document.Page.DetectedLanguage getDetectedLanguages(int index)

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Parameter
Name Description
index int
Returns
Type Description
Document.Page.DetectedLanguage

getDetectedLanguagesBuilder(int index)

public Document.Page.DetectedLanguage.Builder getDetectedLanguagesBuilder(int index)

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Parameter
Name Description
index int
Returns
Type Description
Document.Page.DetectedLanguage.Builder

getDetectedLanguagesBuilderList()

public List<Document.Page.DetectedLanguage.Builder> getDetectedLanguagesBuilderList()

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Returns
Type Description
List<Builder>

getDetectedLanguagesCount()

public int getDetectedLanguagesCount()

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Returns
Type Description
int

getDetectedLanguagesList()

public List<Document.Page.DetectedLanguage> getDetectedLanguagesList()

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Returns
Type Description
List<DetectedLanguage>

getDetectedLanguagesOrBuilder(int index)

public Document.Page.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder(int index)

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Parameter
Name Description
index int
Returns
Type Description
Document.Page.DetectedLanguageOrBuilder

getDetectedLanguagesOrBuilderList()

public List<? extends Document.Page.DetectedLanguageOrBuilder> getDetectedLanguagesOrBuilderList()

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Returns
Type Description
List<? extends com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguageOrBuilder>

getLayout()

public Document.Page.Layout getLayout()

Layout for Block.

.google.cloud.documentai.v1beta3.Document.Page.Layout layout = 1;

Returns
Type Description
Document.Page.Layout

The layout.

getLayoutBuilder()

public Document.Page.Layout.Builder getLayoutBuilder()

Layout for Block.

.google.cloud.documentai.v1beta3.Document.Page.Layout layout = 1;

Returns
Type Description
Document.Page.Layout.Builder

getLayoutOrBuilder()

public Document.Page.LayoutOrBuilder getLayoutOrBuilder()

Layout for Block.

.google.cloud.documentai.v1beta3.Document.Page.Layout layout = 1;

Returns
Type Description
Document.Page.LayoutOrBuilder

getProvenance() (deprecated)

public Document.Provenance getProvenance()

Deprecated. google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated. See google/cloud/documentai/v1beta3/document.proto;l=207

The history of this annotation.

.google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];

Returns
Type Description
Document.Provenance

The provenance.

getProvenanceBuilder() (deprecated)

public Document.Provenance.Builder getProvenanceBuilder()

The history of this annotation.

.google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];

Returns
Type Description
Document.Provenance.Builder

getProvenanceOrBuilder() (deprecated)

public Document.ProvenanceOrBuilder getProvenanceOrBuilder()

The history of this annotation.

.google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];

Returns
Type Description
Document.ProvenanceOrBuilder

hasLayout()

public boolean hasLayout()

Layout for Block.

.google.cloud.documentai.v1beta3.Document.Page.Layout layout = 1;

Returns
Type Description
boolean

Whether the layout field is set.

hasProvenance() (deprecated)

public boolean hasProvenance()

Deprecated. google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated. See google/cloud/documentai/v1beta3/document.proto;l=207

The history of this annotation.

.google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];

Returns
Type Description
boolean

Whether the provenance field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Document.Page.Block other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLayout(Document.Page.Layout value)

public Document.Page.Block.Builder mergeLayout(Document.Page.Layout value)

Layout for Block.

.google.cloud.documentai.v1beta3.Document.Page.Layout layout = 1;

Parameter
Name Description
value Document.Page.Layout
Returns
Type Description
Document.Page.Block.Builder

mergeProvenance(Document.Provenance value) (deprecated)

public Document.Page.Block.Builder mergeProvenance(Document.Provenance value)

The history of this annotation.

.google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];

Parameter
Name Description
value Document.Provenance
Returns
Type Description
Document.Page.Block.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDetectedLanguages(int index)

public Document.Page.Block.Builder removeDetectedLanguages(int index)

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Parameter
Name Description
index int
Returns
Type Description
Document.Page.Block.Builder

setDetectedLanguages(int index, Document.Page.DetectedLanguage value)

public Document.Page.Block.Builder setDetectedLanguages(int index, Document.Page.DetectedLanguage value)

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Parameters
Name Description
index int
value Document.Page.DetectedLanguage
Returns
Type Description
Document.Page.Block.Builder

setDetectedLanguages(int index, Document.Page.DetectedLanguage.Builder builderForValue)

public Document.Page.Block.Builder setDetectedLanguages(int index, Document.Page.DetectedLanguage.Builder builderForValue)

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage detected_languages = 2;

Parameters
Name Description
index int
builderForValue Document.Page.DetectedLanguage.Builder
Returns
Type Description
Document.Page.Block.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLayout(Document.Page.Layout value)

public Document.Page.Block.Builder setLayout(Document.Page.Layout value)

Layout for Block.

.google.cloud.documentai.v1beta3.Document.Page.Layout layout = 1;

Parameter
Name Description
value Document.Page.Layout
Returns
Type Description
Document.Page.Block.Builder

setLayout(Document.Page.Layout.Builder builderForValue)

public Document.Page.Block.Builder setLayout(Document.Page.Layout.Builder builderForValue)

Layout for Block.

.google.cloud.documentai.v1beta3.Document.Page.Layout layout = 1;

Parameter
Name Description
builderForValue Document.Page.Layout.Builder
Returns
Type Description
Document.Page.Block.Builder

setProvenance(Document.Provenance value) (deprecated)

public Document.Page.Block.Builder setProvenance(Document.Provenance value)

The history of this annotation.

.google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];

Parameter
Name Description
value Document.Provenance
Returns
Type Description
Document.Page.Block.Builder

setProvenance(Document.Provenance.Builder builderForValue) (deprecated)

public Document.Page.Block.Builder setProvenance(Document.Provenance.Builder builderForValue)

The history of this annotation.

.google.cloud.documentai.v1beta3.Document.Provenance provenance = 3 [deprecated = true];

Parameter
Name Description
builderForValue Document.Provenance.Builder
Returns
Type Description
Document.Page.Block.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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