Class ModerateTextResponse (2.17.0)

ModerateTextResponse(mapping=None,*,ignore_unknown_fields=False,**kwargs)

The document moderation response message.

Attributes

NameDescription
moderation_categoriesMutableSequence[google.cloud.language_v2.types.ClassificationCategory]
Harmful and sensitive categories representing the input document.
language_codestr
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.
language_supportedbool
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.