Interface Document.Page.DetectedLanguageOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      float getConfidence()
      Confidence of detected language.
      String getLanguageCode()
      The [BCP-47 language code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), such as `en-US` or `sr-Latn`.
      com.google.protobuf.ByteString getLanguageCodeBytes()
      The [BCP-47 language code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), 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 Detail

      • getLanguageCode

        String getLanguageCode()
         The [BCP-47 language
         code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
         such as `en-US` or `sr-Latn`.
         
        string language_code = 1;
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        com.google.protobuf.ByteString getLanguageCodeBytes()
         The [BCP-47 language
         code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
         such as `en-US` or `sr-Latn`.
         
        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.