public sealed class ModerateTextResponse : IMessage<ModerateTextResponse>, IEquatable<ModerateTextResponse>, IDeepCloneable<ModerateTextResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Natural Language v2 API class ModerateTextResponse.
The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
See [Document.language][] field for more details.
Whether the language is officially supported. The API may still return a
response when the language is not supported, but it is on a best effort
basis.
[[["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\u003eModerateTextResponse\u003c/code\u003e class is part of the Cloud Natural Language v2 API, specifically within the \u003ccode\u003eGoogle.Cloud.Language.V2\u003c/code\u003e namespace, and represents the response to a document moderation request.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for various operations like comparison, deep cloning, and buffer-based message handling.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eModerateTextResponse\u003c/code\u003e class includes properties such as \u003ccode\u003eLanguageCode\u003c/code\u003e (representing the language of the text), \u003ccode\u003eLanguageSupported\u003c/code\u003e (indicating if the language is officially supported), and \u003ccode\u003eModerationCategories\u003c/code\u003e (providing a list of harmful or sensitive categories detected).\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for creating instances of \u003ccode\u003eModerateTextResponse\u003c/code\u003e, one default and one that takes another \u003ccode\u003eModerateTextResponse\u003c/code\u003e object as a parameter for copying.\u003c/p\u003e\n"],["\u003cp\u003eThe class is defined in the \u003ccode\u003eGoogle.Cloud.Language.V2.dll\u003c/code\u003e assembly and is available in version 1.0.0-beta04, with the latest being 1.0.0-beta05.\u003c/p\u003e\n"]]],[],null,[]]