Class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfoDetectedLabels

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

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.



316
317
318
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 316

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

Instance Attribute Details

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

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



309
310
311
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 309

def entities
  @entities
end

#rai_categoryString

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

Returns:

  • (String)


314
315
316
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 314

def rai_category
  @rai_category
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



321
322
323
324
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 321

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