Interface ClassificationCategoryOrBuilder (2.52.0)

public interface ClassificationCategoryOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConfidence()

public abstract 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
Type Description
float

The confidence.

getName()

public abstract String getName()

The name of the category representing the document.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The name of the category representing the document.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.