Interface ClassificationCategoryOrBuilder (2.55.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.

getSeverity()

public abstract float getSeverity()

Optional. The classifier's severity of the category. This is only present when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and the corresponding category has a severity score.

float severity = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
float

The severity.