Class Document.Page.Token.Builder (2.41.0)

public static final class Document.Page.Token.Builder extends GeneratedMessageV3.Builder<Document.Page.Token.Builder> implements Document.Page.TokenOrBuilder

A detected token.

Protobuf type google.cloud.documentai.v1beta2.Document.Page.Token

Static Methods

getDescriptor()

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

Methods

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

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

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage>
Returns
TypeDescription
Document.Page.Token.Builder

addDetectedLanguages(Document.Page.DetectedLanguage value)

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

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

Parameter
NameDescription
valueDocument.Page.DetectedLanguage
Returns
TypeDescription
Document.Page.Token.Builder

addDetectedLanguages(Document.Page.DetectedLanguage.Builder builderForValue)

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

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

Parameter
NameDescription
builderForValueDocument.Page.DetectedLanguage.Builder
Returns
TypeDescription
Document.Page.Token.Builder

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

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

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

Parameters
NameDescription
indexint
valueDocument.Page.DetectedLanguage
Returns
TypeDescription
Document.Page.Token.Builder

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

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

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

Parameters
NameDescription
indexint
builderForValueDocument.Page.DetectedLanguage.Builder
Returns
TypeDescription
Document.Page.Token.Builder

addDetectedLanguagesBuilder()

public Document.Page.DetectedLanguage.Builder addDetectedLanguagesBuilder()

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

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.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearDetectedBreak()

public Document.Page.Token.Builder clearDetectedBreak()

Detected break at the end of a Token.

.google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak detected_break = 2;

Returns
TypeDescription
Document.Page.Token.Builder

clearDetectedLanguages()

public Document.Page.Token.Builder clearDetectedLanguages()

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

Returns
TypeDescription
Document.Page.Token.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLayout()

public Document.Page.Token.Builder clearLayout()

Layout for Token.

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

Returns
TypeDescription
Document.Page.Token.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProvenance() (deprecated)

public Document.Page.Token.Builder clearProvenance()

The history of this annotation.

.google.cloud.documentai.v1beta2.Document.Provenance provenance = 4 [deprecated = true];

Returns
TypeDescription
Document.Page.Token.Builder

clearStyleInfo()

public Document.Page.Token.Builder clearStyleInfo()

Text style attributes.

.google.cloud.documentai.v1beta2.Document.Page.Token.StyleInfo style_info = 5;

Returns
TypeDescription
Document.Page.Token.Builder

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetectedBreak()

public Document.Page.Token.DetectedBreak getDetectedBreak()

Detected break at the end of a Token.

.google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak detected_break = 2;

Returns
TypeDescription
Document.Page.Token.DetectedBreak

The detectedBreak.

getDetectedBreakBuilder()

public Document.Page.Token.DetectedBreak.Builder getDetectedBreakBuilder()

Detected break at the end of a Token.

.google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak detected_break = 2;

Returns
TypeDescription
Document.Page.Token.DetectedBreak.Builder

getDetectedBreakOrBuilder()

public Document.Page.Token.DetectedBreakOrBuilder getDetectedBreakOrBuilder()

Detected break at the end of a Token.

.google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak detected_break = 2;

Returns
TypeDescription
Document.Page.Token.DetectedBreakOrBuilder

getDetectedLanguages(int index)

public Document.Page.DetectedLanguage getDetectedLanguages(int index)

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

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.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

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.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

Returns
TypeDescription
List<Builder>

getDetectedLanguagesCount()

public int getDetectedLanguagesCount()

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

Returns
TypeDescription
int

getDetectedLanguagesList()

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

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

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.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

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.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

Returns
TypeDescription
List<? extends com.google.cloud.documentai.v1beta2.Document.Page.DetectedLanguageOrBuilder>

getLayout()

public Document.Page.Layout getLayout()

Layout for Token.

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

Returns
TypeDescription
Document.Page.Layout

The layout.

getLayoutBuilder()

public Document.Page.Layout.Builder getLayoutBuilder()

Layout for Token.

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

Returns
TypeDescription
Document.Page.Layout.Builder

getLayoutOrBuilder()

public Document.Page.LayoutOrBuilder getLayoutOrBuilder()

Layout for Token.

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

Returns
TypeDescription
Document.Page.LayoutOrBuilder

getProvenance() (deprecated)

public Document.Provenance getProvenance()

Deprecated. google.cloud.documentai.v1beta2.Document.Page.Token.provenance is deprecated. See google/cloud/documentai/v1beta2/document.proto;l=352

The history of this annotation.

.google.cloud.documentai.v1beta2.Document.Provenance provenance = 4 [deprecated = true];

Returns
TypeDescription
Document.Provenance

The provenance.

getProvenanceBuilder() (deprecated)

public Document.Provenance.Builder getProvenanceBuilder()

The history of this annotation.

.google.cloud.documentai.v1beta2.Document.Provenance provenance = 4 [deprecated = true];

Returns
TypeDescription
Document.Provenance.Builder

getProvenanceOrBuilder() (deprecated)

public Document.ProvenanceOrBuilder getProvenanceOrBuilder()

The history of this annotation.

.google.cloud.documentai.v1beta2.Document.Provenance provenance = 4 [deprecated = true];

Returns
TypeDescription
Document.ProvenanceOrBuilder

getStyleInfo()

public Document.Page.Token.StyleInfo getStyleInfo()

Text style attributes.

.google.cloud.documentai.v1beta2.Document.Page.Token.StyleInfo style_info = 5;

Returns
TypeDescription
Document.Page.Token.StyleInfo

The styleInfo.

getStyleInfoBuilder()

public Document.Page.Token.StyleInfo.Builder getStyleInfoBuilder()

Text style attributes.

.google.cloud.documentai.v1beta2.Document.Page.Token.StyleInfo style_info = 5;

Returns
TypeDescription
Document.Page.Token.StyleInfo.Builder

getStyleInfoOrBuilder()

public Document.Page.Token.StyleInfoOrBuilder getStyleInfoOrBuilder()

Text style attributes.

.google.cloud.documentai.v1beta2.Document.Page.Token.StyleInfo style_info = 5;

Returns
TypeDescription
Document.Page.Token.StyleInfoOrBuilder

hasDetectedBreak()

public boolean hasDetectedBreak()

Detected break at the end of a Token.

.google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak detected_break = 2;

Returns
TypeDescription
boolean

Whether the detectedBreak field is set.

hasLayout()

public boolean hasLayout()

Layout for Token.

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

Returns
TypeDescription
boolean

Whether the layout field is set.

hasProvenance() (deprecated)

public boolean hasProvenance()

Deprecated. google.cloud.documentai.v1beta2.Document.Page.Token.provenance is deprecated. See google/cloud/documentai/v1beta2/document.proto;l=352

The history of this annotation.

.google.cloud.documentai.v1beta2.Document.Provenance provenance = 4 [deprecated = true];

Returns
TypeDescription
boolean

Whether the provenance field is set.

hasStyleInfo()

public boolean hasStyleInfo()

Text style attributes.

.google.cloud.documentai.v1beta2.Document.Page.Token.StyleInfo style_info = 5;

Returns
TypeDescription
boolean

Whether the styleInfo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDetectedBreak(Document.Page.Token.DetectedBreak value)

public Document.Page.Token.Builder mergeDetectedBreak(Document.Page.Token.DetectedBreak value)

Detected break at the end of a Token.

.google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak detected_break = 2;

Parameter
NameDescription
valueDocument.Page.Token.DetectedBreak
Returns
TypeDescription
Document.Page.Token.Builder

mergeFrom(Document.Page.Token other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLayout(Document.Page.Layout value)

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

Layout for Token.

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

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

mergeProvenance(Document.Provenance value) (deprecated)

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

The history of this annotation.

.google.cloud.documentai.v1beta2.Document.Provenance provenance = 4 [deprecated = true];

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

mergeStyleInfo(Document.Page.Token.StyleInfo value)

public Document.Page.Token.Builder mergeStyleInfo(Document.Page.Token.StyleInfo value)

Text style attributes.

.google.cloud.documentai.v1beta2.Document.Page.Token.StyleInfo style_info = 5;

Parameter
NameDescription
valueDocument.Page.Token.StyleInfo
Returns
TypeDescription
Document.Page.Token.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDetectedLanguages(int index)

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

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

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

setDetectedBreak(Document.Page.Token.DetectedBreak value)

public Document.Page.Token.Builder setDetectedBreak(Document.Page.Token.DetectedBreak value)

Detected break at the end of a Token.

.google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak detected_break = 2;

Parameter
NameDescription
valueDocument.Page.Token.DetectedBreak
Returns
TypeDescription
Document.Page.Token.Builder

setDetectedBreak(Document.Page.Token.DetectedBreak.Builder builderForValue)

public Document.Page.Token.Builder setDetectedBreak(Document.Page.Token.DetectedBreak.Builder builderForValue)

Detected break at the end of a Token.

.google.cloud.documentai.v1beta2.Document.Page.Token.DetectedBreak detected_break = 2;

Parameter
NameDescription
builderForValueDocument.Page.Token.DetectedBreak.Builder
Returns
TypeDescription
Document.Page.Token.Builder

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

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

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

Parameters
NameDescription
indexint
valueDocument.Page.DetectedLanguage
Returns
TypeDescription
Document.Page.Token.Builder

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

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

A list of detected languages together with confidence.

repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 3;

Parameters
NameDescription
indexint
builderForValueDocument.Page.DetectedLanguage.Builder
Returns
TypeDescription
Document.Page.Token.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLayout(Document.Page.Layout value)

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

Layout for Token.

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

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

setLayout(Document.Page.Layout.Builder builderForValue)

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

Layout for Token.

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

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

setProvenance(Document.Provenance value) (deprecated)

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

The history of this annotation.

.google.cloud.documentai.v1beta2.Document.Provenance provenance = 4 [deprecated = true];

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

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

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

The history of this annotation.

.google.cloud.documentai.v1beta2.Document.Provenance provenance = 4 [deprecated = true];

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

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

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

setStyleInfo(Document.Page.Token.StyleInfo value)

public Document.Page.Token.Builder setStyleInfo(Document.Page.Token.StyleInfo value)

Text style attributes.

.google.cloud.documentai.v1beta2.Document.Page.Token.StyleInfo style_info = 5;

Parameter
NameDescription
valueDocument.Page.Token.StyleInfo
Returns
TypeDescription
Document.Page.Token.Builder

setStyleInfo(Document.Page.Token.StyleInfo.Builder builderForValue)

public Document.Page.Token.Builder setStyleInfo(Document.Page.Token.StyleInfo.Builder builderForValue)

Text style attributes.

.google.cloud.documentai.v1beta2.Document.Page.Token.StyleInfo style_info = 5;

Parameter
NameDescription
builderForValueDocument.Page.Token.StyleInfo.Builder
Returns
TypeDescription
Document.Page.Token.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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