Class TextAnnotation.TextProperty.Builder (3.34.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.v1p4beta1.TextAnnotation.TextProperty

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguage>
Returns
TypeDescription
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.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameter
NameDescription
valueTextAnnotation.DetectedLanguage
Returns
TypeDescription
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.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameter
NameDescription
builderForValueTextAnnotation.DetectedLanguage.Builder
Returns
TypeDescription
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.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameters
NameDescription
indexint
valueTextAnnotation.DetectedLanguage
Returns
TypeDescription
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.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameters
NameDescription
indexint
builderForValueTextAnnotation.DetectedLanguage.Builder
Returns
TypeDescription
TextAnnotation.TextProperty.Builder

addDetectedLanguagesBuilder()

public TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder()

A list of detected languages together with confidence.

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

Returns
TypeDescription
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.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TextAnnotation.DetectedLanguage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TextAnnotation.TextProperty.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TextAnnotation.TextProperty.Builder
Overrides

build()

public TextAnnotation.TextProperty build()
Returns
TypeDescription
TextAnnotation.TextProperty

buildPartial()

public TextAnnotation.TextProperty buildPartial()
Returns
TypeDescription
TextAnnotation.TextProperty

clear()

public TextAnnotation.TextProperty.Builder clear()
Returns
TypeDescription
TextAnnotation.TextProperty.Builder
Overrides

clearDetectedBreak()

public TextAnnotation.TextProperty.Builder clearDetectedBreak()

Detected start or end of a text segment.

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

Returns
TypeDescription
TextAnnotation.TextProperty.Builder

clearDetectedLanguages()

public TextAnnotation.TextProperty.Builder clearDetectedLanguages()

A list of detected languages together with confidence.

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

Returns
TypeDescription
TextAnnotation.TextProperty.Builder

clearField(Descriptors.FieldDescriptor field)

public TextAnnotation.TextProperty.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TextAnnotation.TextProperty.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TextAnnotation.TextProperty.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TextAnnotation.TextProperty.Builder
Overrides

clone()

public TextAnnotation.TextProperty.Builder clone()
Returns
TypeDescription
TextAnnotation.TextProperty.Builder
Overrides

getDefaultInstanceForType()

public TextAnnotation.TextProperty getDefaultInstanceForType()
Returns
TypeDescription
TextAnnotation.TextProperty

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetectedBreak()

public TextAnnotation.DetectedBreak getDetectedBreak()

Detected start or end of a text segment.

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

Returns
TypeDescription
TextAnnotation.DetectedBreak

The detectedBreak.

getDetectedBreakBuilder()

public TextAnnotation.DetectedBreak.Builder getDetectedBreakBuilder()

Detected start or end of a text segment.

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

Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder

getDetectedBreakOrBuilder()

public TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder()

Detected start or end of a text segment.

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

Returns
TypeDescription
TextAnnotation.DetectedBreakOrBuilder

getDetectedLanguages(int index)

public TextAnnotation.DetectedLanguage getDetectedLanguages(int index)

A list of detected languages together with confidence.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TextAnnotation.DetectedLanguage

getDetectedLanguagesBuilder(int index)

public TextAnnotation.DetectedLanguage.Builder getDetectedLanguagesBuilder(int index)

A list of detected languages together with confidence.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TextAnnotation.DetectedLanguage.Builder

getDetectedLanguagesBuilderList()

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

A list of detected languages together with confidence.

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

Returns
TypeDescription
List<Builder>

getDetectedLanguagesCount()

public int getDetectedLanguagesCount()

A list of detected languages together with confidence.

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

Returns
TypeDescription
int

getDetectedLanguagesList()

public List<TextAnnotation.DetectedLanguage> getDetectedLanguagesList()

A list of detected languages together with confidence.

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

Returns
TypeDescription
List<DetectedLanguage>

getDetectedLanguagesOrBuilder(int index)

public TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder(int index)

A list of detected languages together with confidence.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TextAnnotation.DetectedLanguageOrBuilder

getDetectedLanguagesOrBuilderList()

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

A list of detected languages together with confidence.

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

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p4beta1.TextAnnotation.DetectedLanguageOrBuilder>

hasDetectedBreak()

public boolean hasDetectedBreak()

Detected start or end of a text segment.

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

Returns
TypeDescription
boolean

Whether the detectedBreak field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2;

Parameter
NameDescription
valueTextAnnotation.DetectedBreak
Returns
TypeDescription
TextAnnotation.TextProperty.Builder

mergeFrom(TextAnnotation.TextProperty other)

public TextAnnotation.TextProperty.Builder mergeFrom(TextAnnotation.TextProperty other)
Parameter
NameDescription
otherTextAnnotation.TextProperty
Returns
TypeDescription
TextAnnotation.TextProperty.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TextAnnotation.TextProperty.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TextAnnotation.TextProperty.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TextAnnotation.TextProperty.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2;

Parameter
NameDescription
valueTextAnnotation.DetectedBreak
Returns
TypeDescription
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.v1p4beta1.TextAnnotation.DetectedBreak detected_break = 2;

Parameter
NameDescription
builderForValueTextAnnotation.DetectedBreak.Builder
Returns
TypeDescription
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.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameters
NameDescription
indexint
valueTextAnnotation.DetectedLanguage
Returns
TypeDescription
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.v1p4beta1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameters
NameDescription
indexint
builderForValueTextAnnotation.DetectedLanguage.Builder
Returns
TypeDescription
TextAnnotation.TextProperty.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TextAnnotation.TextProperty.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TextAnnotation.TextProperty.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TextAnnotation.TextProperty.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TextAnnotation.TextProperty.Builder
Overrides