Package com.google.cloud.language.v2
Interface ClassificationCategoryOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ClassificationCategory
,ClassificationCategory.Builder
public interface ClassificationCategoryOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
getConfidence()
The classifier's confidence of the category.String
getName()
The name of the category representing the document.com.google.protobuf.ByteString
getNameBytes()
The name of the category representing the document.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
The name of the category representing the document.
string name = 1;
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
The name of the category representing the document.
string name = 1;
- Returns:
- The bytes for name.
-
getConfidence
float getConfidence()
The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.
float confidence = 2;
- Returns:
- The confidence.
-
-