Class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfo
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Instance Attribute Summary collapse
-
#rai_categories ⇒ Array<String>
List of rai categories' information to return Corresponds to the JSON property
raiCategories. -
#scores ⇒ Array<Float>
List of rai scores mapping to the rai categories.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudAiLargeModelsVisionRaiInfo
constructor
A new instance of CloudAiLargeModelsVisionRaiInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudAiLargeModelsVisionRaiInfo
Returns a new instance of CloudAiLargeModelsVisionRaiInfo.
300 301 302 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 300 def initialize(**args) update!(**args) end |
Instance Attribute Details
#rai_categories ⇒ Array<String>
List of rai categories' information to return
Corresponds to the JSON property raiCategories
293 294 295 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 293 def rai_categories @rai_categories end |
#scores ⇒ Array<Float>
List of rai scores mapping to the rai categories. Rounded to 1 decimal place.
Corresponds to the JSON property scores
298 299 300 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 298 def scores @scores end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
305 306 307 308 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 305 def update!(**args) @rai_categories = args[:rai_categories] if args.key?(:rai_categories) @scores = args[:scores] if args.key?(:scores) end |