Interface DetectedLanguageOrBuilder

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

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

    Modifier and Type
    Method
    Description
    float
    The confidence of the detection result for this language.
    The ISO-639 language code of the source content in the request, detected automatically.
    com.google.protobuf.ByteString
    The ISO-639 language code of the 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 Details

    • getLanguageCode

      String getLanguageCode()
       The ISO-639 language code of the source content in the request, detected
       automatically.
       
      string language_code = 1;
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      com.google.protobuf.ByteString getLanguageCodeBytes()
       The ISO-639 language code of the 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.