Class Document.Page.Token.Builder (2.8.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.v1.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.v1.Document.Page.DetectedLanguage detected_languages = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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()

public Document.Page.Token.Builder clearProvenance()

The history of this annotation.

.google.cloud.documentai.v1.Document.Provenance provenance = 4;

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

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

getLayout()

public Document.Page.Layout getLayout()

Layout for Token.

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

Returns
TypeDescription
Document.Page.Layout

The layout.

getLayoutBuilder()

public Document