Class Document.Page.Line.Builder (2.33.0)

public static final class Document.Page.Line.Builder extends GeneratedMessageV3.Builder<Document.Page.Line.Builder> implements Document.Page.LineOrBuilder

A collection of tokens that a human would perceive as a line. Does not cross column boundaries, can be horizontal, vertical, etc.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

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

public Document.Page.Line.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
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage>
Returns
TypeDescription
Document.Page.Line.Builder

addDetectedLanguages(Document.Page.DetectedLanguage value)

public Document.Page.Line.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
NameDescription
valueDocument.Page.DetectedLanguage
Returns
TypeDescription
Document.Page.Line.Builder

addDetectedLanguages(Document.Page.DetectedLanguage.Builder builderForValue)

public Document.Page.Line.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
NameDescription
builderForValueDocument.Page.DetectedLanguage.Builder
Returns
TypeDescription
Document.Page.Line.Builder

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

public Document.Page.Line.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
NameDescription
indexint
valueDocument.Page.DetectedLanguage
Returns
TypeDescription
Document.Page.Line.Builder

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

public Document.Page.Line.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
NameDescription
indexint
builderForValueDocument.Page.DetectedLanguage.Builder
Returns
TypeDescription
Document.Page.Line.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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Document.Page.DetectedLanguage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Document.Page.Line build()
Returns
TypeDescription
Document.Page.Line

buildPartial()

public Document.Page.Line buildPartial()
Returns
TypeDescription
Document.Page.Line

clear()

public Document.Page.Line.Builder clear()
Returns
TypeDescription
Document.Page.Line.Builder
Overrides

clearDetectedLanguages()

public Document.Page.Line.Builder clearDetectedLanguages()

A list of detected languages together with confidence.

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

Returns
TypeDescription
Document.Page.Line.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLayout()

public Document.Page.Line.Builder clearLayout()

Layout for Line.

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

Returns
TypeDescription
Document.Page.Line.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProvenance()

public Document.Page.Line.Builder clearProvenance()

The history of this annotation.

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

Returns
TypeDescription
Document.Page.Line.Builder

clone()

public Document.Page.Line.Builder clone()
Returns
TypeDescription
Document.Page.Line.Builder
Overrides

getDefaultInstanceForType()

public Document.Page.Line getDefaultInstanceForType()
Returns
TypeDescription
Document.Page.Line

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguageOrBuilder>

getLayout()

public Document.Page.Layout getLayout()

Layout for Line.

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

Returns
TypeDescription
Document.Page.Layout

The layout.

getLayoutBuilder()

public Document.Page.Layout.Builder getLayoutBuilder()

Layout for Line.

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

Returns
TypeDescription
Document.Page.Layout.Builder

getLayoutOrBuilder()

public Document.Page.LayoutOrBuilder getLayoutOrBuilder()

Layout for Line.

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

Returns
TypeDescription
Document.Page.LayoutOrBuilder

getProvenance() (deprecated)

public Document.Provenance getProvenance()

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

The history of this annotation.

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

Returns
TypeDescription
Document.Provenance

The provenance.

getProvenanceBuilder()

public Document.Provenance.Builder getProvenanceBuilder()

The history of this annotation.

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

Returns
TypeDescription
Document.Provenance.Builder

getProvenanceOrBuilder()

public Document.ProvenanceOrBuilder getProvenanceOrBuilder()

The history of this annotation.

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

Returns
TypeDescription
Document.ProvenanceOrBuilder

hasLayout()

public boolean hasLayout()

Layout for Line.

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

Returns
TypeDescription
boolean

Whether the layout field is set.

hasProvenance() (deprecated)

public boolean hasProvenance()

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

The history of this annotation.

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

Returns
TypeDescription
boolean

Whether the provenance field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Document.Page.Line other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLayout(Document.Page.Layout value)

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

Layout for Line.

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

Parameter
NameDescription
valueDocument.Page.Layout
Returns
TypeDescription
Document.Page.Line.Builder

mergeProvenance(Document.Provenance value)

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

The history of this annotation.

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

Parameter
NameDescription
valueDocument.Provenance
Returns
TypeDescription
Document.Page.Line.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Document.Page.Line.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Document.Page.Line.Builder
Overrides

removeDetectedLanguages(int index)

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

A list of detected languages together with confidence.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Document.Page.Line.Builder

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

public Document.Page.Line.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
NameDescription
indexint
valueDocument.Page.DetectedLanguage
Returns
TypeDescription
Document.Page.Line.Builder

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

public Document.Page.Line.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
NameDescription
indexint
builderForValueDocument.Page.DetectedLanguage.Builder
Returns
TypeDescription
Document.Page.Line.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Document.Page.Line.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Document.Page.Line.Builder
Overrides

setLayout(Document.Page.Layout value)

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

Layout for Line.

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

Parameter
NameDescription
valueDocument.Page.Layout
Returns
TypeDescription
Document.Page.Line.Builder

setLayout(Document.Page.Layout.Builder builderForValue)

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

Layout for Line.

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

Parameter
NameDescription
builderForValueDocument.Page.Layout.Builder
Returns
TypeDescription
Document.Page.Line.Builder

setProvenance(Document.Provenance value)

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

The history of this annotation.

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

Parameter
NameDescription
valueDocument.Provenance
Returns
TypeDescription
Document.Page.Line.Builder

setProvenance(Document.Provenance.Builder builderForValue)

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

The history of this annotation.

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

Parameter
NameDescription
builderForValueDocument.Provenance.Builder
Returns
TypeDescription
Document.Page.Line.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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