Package com.google.cloud.language.v1
Interface ClassificationCategoryOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ClassificationCategory,ClassificationCategory.Builder
@Generated
public interface ClassificationCategoryOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionfloatThe classifier's confidence of the category.getName()The name of the category representing the document.com.google.protobuf.ByteStringThe name of the category representing the document.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.
-