Class: Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfoDetectedLabels

Inherits:
Object
  • Object
show all
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

Overview

Filters returning list of deteceted labels, scores, and bounding boxes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAiLargeModelsVisionRaiInfoDetectedLabels

Returns a new instance of CloudAiLargeModelsVisionRaiInfoDetectedLabels.



265
266
267
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 265

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#entitiesArray<Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity>

The list of detected entities for the rai signal. Corresponds to the JSON property entities



258
259
260
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 258

def entities
  @entities
end

#rai_categoryString

The RAI category for the deteceted labels. Corresponds to the JSON property raiCategory

Returns:

  • (String)


263
264
265
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 263

def rai_category
  @rai_category
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



270
271
272
273
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 270

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