Cloud Natural Language v2 API - Class ModerateTextResponse (1.0.0-beta03)

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 document moderation response message.

Inheritance

object > ModerateTextResponse

Namespace

Google.Cloud.Language.V2

Assembly

Google.Cloud.Language.V2.dll

Constructors

ModerateTextResponse()

public ModerateTextResponse()

ModerateTextResponse(ModerateTextResponse)

public ModerateTextResponse(ModerateTextResponse other)
Parameter
Name Description
other ModerateTextResponse

Properties

LanguageCode

public string LanguageCode { get; set; }

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.

Property Value
Type Description
string

LanguageSupported

public bool LanguageSupported { get; set; }

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.

Property Value
Type Description
bool

ModerationCategories

public RepeatedField<ClassificationCategory> ModerationCategories { get; }

Harmful and sensitive categories representing the input document.

Property Value
Type Description
RepeatedFieldClassificationCategory