Class: Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfo
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Instance Attribute Summary collapse
-
#detected_labels ⇒ Array<Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfoDetectedLabels>
The list of detected labels for different rai categories.
-
#model_name ⇒ String
The model name used to indexing into the RaiFilterConfig map.
-
#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.
238 239 240 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 238 def initialize(**args) update!(**args) end |
Instance Attribute Details
#detected_labels ⇒ Array<Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfoDetectedLabels>
The list of detected labels for different rai categories.
Corresponds to the JSON property detectedLabels
218 219 220 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 218 def detected_labels @detected_labels end |
#model_name ⇒ String
The model name used to indexing into the RaiFilterConfig map. Would either be
one of imagegeneration@002-006, imagen-3.0-... api endpoint names, or internal
names used for mapping to different filter configs (genselfie, ai_watermark)
than its api endpoint.
Corresponds to the JSON property modelName
226 227 228 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 226 def model_name @model_name end |
#rai_categories ⇒ Array<String>
List of rai categories' information to return
Corresponds to the JSON property raiCategories
231 232 233 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 231 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
236 237 238 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 236 def scores @scores end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
243 244 245 246 247 248 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 243 def update!(**args) @detected_labels = args[:detected_labels] if args.key?(:detected_labels) @model_name = args[:model_name] if args.key?(:model_name) @rai_categories = args[:rai_categories] if args.key?(:rai_categories) @scores = args[:scores] if args.key?(:scores) end |