Package com.google.cloud.translate.v3
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 ISO-639 language code of the source content in the request, detected automatically.com.google.protobuf.ByteString
getLanguageCodeBytes()
The ISO-639 language code of the source content in the request, detected automatically.-
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 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.
-
-