Class: Google::Apis::LanguageV1::ModerateTextResponse
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1::ModerateTextResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1/classes.rb,
lib/google/apis/language_v1/representations.rb,
lib/google/apis/language_v1/representations.rb
Overview
The document moderation response message.
Instance Attribute Summary collapse
-
#moderation_categories ⇒ Array<Google::Apis::LanguageV1::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.
963 964 965 |
# File 'lib/google/apis/language_v1/classes.rb', line 963 def initialize(**args) update!(**args) end |
Instance Attribute Details
#moderation_categories ⇒ Array<Google::Apis::LanguageV1::ClassificationCategory>
Harmful and sensitive categories representing the input document.
Corresponds to the JSON property moderationCategories
961 962 963 |
# File 'lib/google/apis/language_v1/classes.rb', line 961 def moderation_categories @moderation_categories end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
968 969 970 |
# File 'lib/google/apis/language_v1/classes.rb', line 968 def update!(**args) @moderation_categories = args[:moderation_categories] if args.key?(:moderation_categories) end |