Represents a category returned from the text classifier.
Attributes
Name
Description
name
str
The name of the category representing the
document.
confidence
float
The classifier's confidence of the category.
Number represents how certain the classifier is
that this category represents the given text.
severity
float
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[],[]]