Class: Google::Cloud::Language::V2::ModerateTextResponse

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/language/v2/language_service.rb

Overview

The document moderation response message.

Instance Attribute Summary collapse

Instance Attribute Details

#language_code::String

Returns 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.

Returns:

  • (::String)

    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.



396
397
398
399
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 396

class ModerateTextResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#language_supported::Boolean

Returns 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.

Returns:

  • (::Boolean)

    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.



396
397
398
399
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 396

class ModerateTextResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#moderation_categories::Array<::Google::Cloud::Language::V2::ClassificationCategory>

Returns Harmful and sensitive categories representing the input document.

Returns:



396
397
398
399
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 396

class ModerateTextResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end