Class: Google::Apis::AiplatformV1::LearningGenaiRootRaiOutput

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

This is per harm.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootRaiOutput

Returns a new instance of LearningGenaiRootRaiOutput.



30683
30684
30685
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30683

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

Instance Attribute Details

#allowedBoolean Also known as: allowed?

Corresponds to the JSON property allowed

Returns:

  • (Boolean)


30665
30666
30667
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30665

def allowed
  @allowed
end

#harmGoogle::Apis::AiplatformV1::LearningGenaiRootHarm

Corresponds to the JSON property harm



30671
30672
30673
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30671

def harm
  @harm
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


30676
30677
30678
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30676

def name
  @name
end

#scoreFloat

Corresponds to the JSON property score

Returns:

  • (Float)


30681
30682
30683
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30681

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30688
30689
30690
30691
30692
30693
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30688

def update!(**args)
  @allowed = args[:allowed] if args.key?(:allowed)
  @harm = args[:harm] if args.key?(:harm)
  @name = args[:name] if args.key?(:name)
  @score = args[:score] if args.key?(:score)
end