Class TextAnnotation.DetectedLanguage.Builder (2.1.2)

public static final class TextAnnotation.DetectedLanguage.Builder extends GeneratedMessageV3.Builder<TextAnnotation.DetectedLanguage.Builder> implements TextAnnotation.DetectedLanguageOrBuilder

Detected language for a structural component.

Protobuf type google.cloud.vision.v1.TextAnnotation.DetectedLanguage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearConfidence()

public TextAnnotation.DetectedLanguage.Builder clearConfidence()

Confidence of detected language. Range [0, 1].

float confidence = 2;

Returns
TypeDescription
TextAnnotation.DetectedLanguage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLanguageCode()

public TextAnnotation.DetectedLanguage.Builder clearLanguageCode()

The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

string language_code = 1;

Returns
TypeDescription
TextAnnotation.DetectedLanguage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)