Interface DetectedLanguageOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    DetectedLanguage, DetectedLanguage.Builder

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      float getConfidence()
      The confidence of the detection result for this language.
      String getLanguageCode()
      The BCP-47 language code of source content in the request, detected automatically.
      com.google.protobuf.ByteString getLanguageCodeBytes()
      The BCP-47 language code of source content in the request, detected automatically.
      • 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 of source content in the request, detected
         automatically.
         
        string language_code = 1;
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        com.google.protobuf.ByteString getLanguageCodeBytes()
         The BCP-47 language code of source content in the request, detected
         automatically.
         
        string language_code = 1;
        Returns:
        The bytes for languageCode.
      • getConfidence

        float getConfidence()
         The confidence of the detection result for this language.
         
        float confidence = 2;
        Returns:
        The confidence.