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.



980
981
982
# File 'lib/google/apis/language_v1beta2/classes.rb', line 980

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



978
979
980
# File 'lib/google/apis/language_v1beta2/classes.rb', line 978

def moderation_categories
  @moderation_categories
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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