Class TextAnnotation.TextProperty.Builder (3.53.0)

public static final class TextAnnotation.TextProperty.Builder extends GeneratedMessageV3.Builder<TextAnnotation.TextProperty.Builder> implements TextAnnotation.TextPropertyOrBuilder

Additional information detected on the structural component.

Protobuf type google.cloud.vision.v1p1beta1.TextAnnotation.TextProperty

Static Methods

getDescriptor()

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

Methods

addAllDetectedLanguages(Iterable<? extends TextAnnotation.DetectedLanguage> values)

public TextAnnotation.TextProperty.Builder addAllDetectedLanguages(Iterable<? extends TextAnnotation.DetectedLanguage> values)

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage>
Returns
Type Description
TextAnnotation.TextProperty.Builder

addDetectedLanguages(TextAnnotation.DetectedLanguage value)

public TextAnnotation.TextProperty.Builder addDetectedLanguages(TextAnnotation.DetectedLanguage value)

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameter
Name Description
value TextAnnotation.DetectedLanguage
Returns
Type Description
TextAnnotation.TextProperty.Builder

addDetectedLanguages(TextAnnotation.DetectedLanguage.Builder builderForValue)

public TextAnnotation.TextProperty.Builder addDetectedLanguages(TextAnnotation.DetectedLanguage.Builder builderForValue)

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameter
Name Description
builderForValue TextAnnotation.DetectedLanguage.Builder
Returns
Type Description
TextAnnotation.TextProperty.Builder

addDetectedLanguages(int index, TextAnnotation.DetectedLanguage value)

public TextAnnotation.TextProperty.Builder addDetectedLanguages(int index, TextAnnotation.DetectedLanguage value)

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameters
Name Description
index int
value TextAnnotation.DetectedLanguage
Returns
Type Description
TextAnnotation.TextProperty.Builder

addDetectedLanguages(int index, TextAnnotation.DetectedLanguage.Builder builderForValue)

public TextAnnotation.TextProperty.Builder addDetectedLanguages(int index, TextAnnotation.DetectedLanguage.Builder builderForValue)

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameters
Name Description
index int
builderForValue TextAnnotation.DetectedLanguage.Builder
Returns
Type Description
TextAnnotation.TextProperty.Builder

addDetectedLanguagesBuilder()

public TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder()

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Returns
Type Description
TextAnnotation.DetectedLanguage.Builder

addDetectedLanguagesBuilder(int index)

public TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder(int index)

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameter
Name Description
index int
Returns
Type Description
TextAnnotation.DetectedLanguage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TextAnnotation.TextProperty.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TextAnnotation.TextProperty.Builder
Overrides

build()

public TextAnnotation.TextProperty build()
Returns
Type Description
TextAnnotation.TextProperty

buildPartial()

public TextAnnotation.TextProperty buildPartial()
Returns
Type Description
TextAnnotation.TextProperty

clear()

public TextAnnotation.TextProperty.Builder clear()
Returns
Type Description
TextAnnotation.TextProperty.Builder
Overrides

clearDetectedBreak()

public TextAnnotation.TextProperty.Builder clearDetectedBreak()

Detected start or end of a text segment.

.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2;

Returns
Type Description
TextAnnotation.TextProperty.Builder

clearDetectedLanguages()

public TextAnnotation.TextProperty.Builder clearDetectedLanguages()

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Returns
Type Description
TextAnnotation.TextProperty.Builder

clearField(Descriptors.FieldDescriptor field)

public TextAnnotation.TextProperty.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TextAnnotation.TextProperty.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TextAnnotation.TextProperty.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TextAnnotation.TextProperty.Builder
Overrides

clone()

public TextAnnotation.TextProperty.Builder clone()
Returns
Type Description
TextAnnotation.TextProperty.Builder
Overrides

getDefaultInstanceForType()

public TextAnnotation.TextProperty getDefaultInstanceForType()
Returns
Type Description
TextAnnotation.TextProperty

getDescriptorForType()

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

getDetectedBreak()

public TextAnnotation.DetectedBreak getDetectedBreak()

Detected start or end of a text segment.

.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2;

Returns
Type Description
TextAnnotation.DetectedBreak

The detectedBreak.

getDetectedBreakBuilder()

public TextAnnotation.DetectedBreak.Builder getDetectedBreakBuilder()

Detected start or end of a text segment.

.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2;

Returns
Type Description
TextAnnotation.DetectedBreak.Builder

getDetectedBreakOrBuilder()

public TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder()

Detected start or end of a text segment.

.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2;

Returns
Type Description
TextAnnotation.DetectedBreakOrBuilder

getDetectedLanguages(int index)

public TextAnnotation.DetectedLanguage getDetectedLanguages(int index)

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameter
Name Description
index int
Returns
Type Description
TextAnnotation.DetectedLanguage

getDetectedLanguagesBuilder(int index)

public TextAnnotation.DetectedLanguage.Builder getDetectedLanguagesBuilder(int index)

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameter
Name Description
index int
Returns
Type Description
TextAnnotation.DetectedLanguage.Builder

getDetectedLanguagesBuilderList()

public List<TextAnnotation.DetectedLanguage.Builder> getDetectedLanguagesBuilderList()

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Returns
Type Description
List<Builder>

getDetectedLanguagesCount()

public int getDetectedLanguagesCount()

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Returns
Type Description
int

getDetectedLanguagesList()

public List<TextAnnotation.DetectedLanguage> getDetectedLanguagesList()

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Returns
Type Description
List<DetectedLanguage>

getDetectedLanguagesOrBuilder(int index)

public TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder(int index)

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameter
Name Description
index int
Returns
Type Description
TextAnnotation.DetectedLanguageOrBuilder

getDetectedLanguagesOrBuilderList()

public List<? extends TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesOrBuilderList()

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Returns
Type Description
List<? extends com.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguageOrBuilder>

hasDetectedBreak()

public boolean hasDetectedBreak()

Detected start or end of a text segment.

.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2;

Returns
Type Description
boolean

Whether the detectedBreak field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDetectedBreak(TextAnnotation.DetectedBreak value)

public TextAnnotation.TextProperty.Builder mergeDetectedBreak(TextAnnotation.DetectedBreak value)

Detected start or end of a text segment.

.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2;

Parameter
Name Description
value TextAnnotation.DetectedBreak
Returns
Type Description
TextAnnotation.TextProperty.Builder

mergeFrom(TextAnnotation.TextProperty other)

public TextAnnotation.TextProperty.Builder mergeFrom(TextAnnotation.TextProperty other)
Parameter
Name Description
other TextAnnotation.TextProperty
Returns
Type Description
TextAnnotation.TextProperty.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TextAnnotation.TextProperty.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextAnnotation.TextProperty.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TextAnnotation.TextProperty.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TextAnnotation.TextProperty.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TextAnnotation.TextProperty.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TextAnnotation.TextProperty.Builder
Overrides

removeDetectedLanguages(int index)

public TextAnnotation.TextProperty.Builder removeDetectedLanguages(int index)

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameter
Name Description
index int
Returns
Type Description
TextAnnotation.TextProperty.Builder

setDetectedBreak(TextAnnotation.DetectedBreak value)

public TextAnnotation.TextProperty.Builder setDetectedBreak(TextAnnotation.DetectedBreak value)

Detected start or end of a text segment.

.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2;

Parameter
Name Description
value TextAnnotation.DetectedBreak
Returns
Type Description
TextAnnotation.TextProperty.Builder

setDetectedBreak(TextAnnotation.DetectedBreak.Builder builderForValue)

public TextAnnotation.TextProperty.Builder setDetectedBreak(TextAnnotation.DetectedBreak.Builder builderForValue)

Detected start or end of a text segment.

.google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak detected_break = 2;

Parameter
Name Description
builderForValue TextAnnotation.DetectedBreak.Builder
Returns
Type Description
TextAnnotation.TextProperty.Builder

setDetectedLanguages(int index, TextAnnotation.DetectedLanguage value)

public TextAnnotation.TextProperty.Builder setDetectedLanguages(int index, TextAnnotation.DetectedLanguage value)

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameters
Name Description
index int
value TextAnnotation.DetectedLanguage
Returns
Type Description
TextAnnotation.TextProperty.Builder

setDetectedLanguages(int index, TextAnnotation.DetectedLanguage.Builder builderForValue)

public TextAnnotation.TextProperty.Builder setDetectedLanguages(int index, TextAnnotation.DetectedLanguage.Builder builderForValue)

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameters
Name Description
index int
builderForValue TextAnnotation.DetectedLanguage.Builder
Returns
Type Description
TextAnnotation.TextProperty.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TextAnnotation.TextProperty.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TextAnnotation.TextProperty.Builder
Overrides

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final TextAnnotation.TextProperty.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TextAnnotation.TextProperty.Builder
Overrides