public sealed class ClassificationCategory : IMessage<ClassificationCategory>, IEquatable<ClassificationCategory>, IDeepCloneable<ClassificationCategory>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Natural Language v2 API class ClassificationCategory.
Represents a category returned from the text classifier.
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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eClassificationCategory\u003c/code\u003e class is part of the Cloud Natural Language v2 API and represents a category returned by the text classifier.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, to provide robust functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eClassificationCategory\u003c/code\u003e class has two constructors: a default constructor and a copy constructor that takes another \u003ccode\u003eClassificationCategory\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eClassificationCategory\u003c/code\u003e include \u003ccode\u003eConfidence\u003c/code\u003e (the classifier's confidence), \u003ccode\u003eName\u003c/code\u003e (the category name), and \u003ccode\u003eSeverity\u003c/code\u003e (the classifier's severity score when using MODEL_VERSION_2).\u003c/p\u003e\n"]]],[],null,[]]