Class: Google::Apis::LanguageV1beta2::ModerateTextResponse
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::ModerateTextResponse
- 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
-
#moderation_categories ⇒ Array<Google::Apis::LanguageV1beta2::ClassificationCategory>
Harmful and sensitive categories representing the input document.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ModerateTextResponse
constructor
A new instance of ModerateTextResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_categories ⇒ Array<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 |