public interface ClassificationCategoryOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
float |
getConfidence()
The classifier's confidence of the category.
|
String |
getName()
The name of the category representing the document, from the [predefined
taxonomy](https://cloud.google.com/natural-language/docs/categories).
|
ByteString |
getNameBytes()
The name of the category representing the document, from the [predefined
taxonomy](https://cloud.google.com/natural-language/docs/categories).
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
String getName()
The name of the category representing the document, from the [predefined taxonomy](https://cloud.google.com/natural-language/docs/categories).
string name = 1;
ByteString getNameBytes()
The name of the category representing the document, from the [predefined taxonomy](https://cloud.google.com/natural-language/docs/categories).
string name = 1;
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;
Copyright © 2022 Google LLC. All rights reserved.