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

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
NameDescription
otherModerateTextResponse

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
TypeDescription
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
TypeDescription
bool

ModerationCategories

public RepeatedField<ClassificationCategory> ModerationCategories { get; }

Harmful and sensitive categories representing the input document.

Property Value
TypeDescription
RepeatedFieldClassificationCategory