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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TextAnnotation.DetectedLanguage.BuilderImplements
TextAnnotation.DetectedLanguageOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextAnnotation.DetectedLanguage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TextAnnotation.DetectedLanguage.Builder |
build()
public TextAnnotation.DetectedLanguage build()
Type | Description |
TextAnnotation.DetectedLanguage |
buildPartial()
public TextAnnotation.DetectedLanguage buildPartial()
Type | Description |
TextAnnotation.DetectedLanguage |
clear()
public TextAnnotation.DetectedLanguage.Builder clear()
Type | Description |
TextAnnotation.DetectedLanguage.Builder |
clearConfidence()
public TextAnnotation.DetectedLanguage.Builder clearConfidence()
Confidence of detected language. Range [0, 1].
float confidence = 2;
Type | Description |
TextAnnotation.DetectedLanguage.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public TextAnnotation.DetectedLanguage.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
TextAnnotation.DetectedLanguage.Builder |
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;
Type | Description |
TextAnnotation.DetectedLanguage.Builder | This builder for chaining. |