Interface TextAnnotation.DetectedLanguageOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
TextAnnotation.DetectedLanguage, TextAnnotation.DetectedLanguage.Builder
Enclosing class:
TextAnnotation

public static interface TextAnnotation.DetectedLanguageOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Confidence of detected language.
    The BCP-47 language code, such as "en-US" or "sr-Latn".
    com.google.protobuf.ByteString
    The BCP-47 language code, such as "en-US" or "sr-Latn".

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getLanguageCode

      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;
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      com.google.protobuf.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;
      Returns:
      The bytes for languageCode.
    • getConfidence

      float getConfidence()
       Confidence of detected language. Range [0, 1].
       
      float confidence = 2;
      Returns:
      The confidence.