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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<TextAnnotation.DetectedLanguage.Builder>
public TextAnnotation.DetectedLanguage.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<TextAnnotation.DetectedLanguage.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<TextAnnotation.DetectedLanguage.Builder>
public TextAnnotation.DetectedLanguage getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public TextAnnotation.DetectedLanguage build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public TextAnnotation.DetectedLanguage buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public TextAnnotation.DetectedLanguage.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<TextAnnotation.DetectedLanguage.Builder>
public TextAnnotation.DetectedLanguage.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<TextAnnotation.DetectedLanguage.Builder>
public TextAnnotation.DetectedLanguage.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<TextAnnotation.DetectedLanguage.Builder>
public TextAnnotation.DetectedLanguage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<TextAnnotation.DetectedLanguage.Builder>
public TextAnnotation.DetectedLanguage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<TextAnnotation.DetectedLanguage.Builder>
public TextAnnotation.DetectedLanguage.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<TextAnnotation.DetectedLanguage.Builder>
public TextAnnotation.DetectedLanguage.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<TextAnnotation.DetectedLanguage.Builder>
public TextAnnotation.DetectedLanguage.Builder mergeFrom(TextAnnotation.DetectedLanguage other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<TextAnnotation.DetectedLanguage.Builder>
public TextAnnotation.DetectedLanguage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<TextAnnotation.DetectedLanguage.Builder>
java.io.IOException
public java.lang.String getLanguageCode()
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;
getLanguageCode
in interface TextAnnotation.DetectedLanguageOrBuilder
public ByteString getLanguageCodeBytes()
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;
getLanguageCodeBytes
in interface TextAnnotation.DetectedLanguageOrBuilder
public TextAnnotation.DetectedLanguage.Builder setLanguageCode(java.lang.String value)
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;
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;
public TextAnnotation.DetectedLanguage.Builder setLanguageCodeBytes(ByteString value)
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;
public float getConfidence()
Confidence of detected language. Range [0, 1].
float confidence = 2;
getConfidence
in interface TextAnnotation.DetectedLanguageOrBuilder
public TextAnnotation.DetectedLanguage.Builder setConfidence(float value)
Confidence of detected language. Range [0, 1].
float confidence = 2;
public TextAnnotation.DetectedLanguage.Builder clearConfidence()
Confidence of detected language. Range [0, 1].
float confidence = 2;
public final TextAnnotation.DetectedLanguage.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<TextAnnotation.DetectedLanguage.Builder>
public final TextAnnotation.DetectedLanguage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<TextAnnotation.DetectedLanguage.Builder>