Interface ClassificationCategoryOrBuilder (2.56.0)

publicinterface ClassificationCategoryOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getConfidence()

publicabstractfloatgetConfidence()

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()

publicabstractStringgetName()

The name of the category representing the document.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

publicabstractByteStringgetNameBytes()

The name of the category representing the document.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.