Class: Google::Apis::LanguageV1beta2::ModerateTextResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/google/apis/language_v1beta2/representations.rb

Overview

The document moderation response message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ModerateTextResponse

Returns a new instance of ModerateTextResponse.



984
985
986
# File 'lib/google/apis/language_v1beta2/classes.rb', line 984

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#moderation_categoriesArray<Google::Apis::LanguageV1beta2::ClassificationCategory>

Harmful and sensitive categories representing the input document. Corresponds to the JSON property moderationCategories



982
983
984
# File 'lib/google/apis/language_v1beta2/classes.rb', line 982

def moderation_categories
  @moderation_categories
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



989
990
991
# File 'lib/google/apis/language_v1beta2/classes.rb', line 989

def update!(**args)
  @moderation_categories = args[:moderation_categories] if args.key?(:moderation_categories)
end