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.



30758
30759
30760
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30758

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

Instance Attribute Details

#allowedBoolean Also known as: allowed?

Corresponds to the JSON property allowed

Returns:

  • (Boolean)


30740
30741
30742
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30740

def allowed
  @allowed
end

#harmGoogle::Apis::AiplatformV1::LearningGenaiRootHarm

Corresponds to the JSON property harm



30746
30747
30748
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30746

def harm
  @harm
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


30751
30752
30753
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30751

def name
  @name
end

#scoreFloat

Corresponds to the JSON property score

Returns:

  • (Float)


30756
30757
30758
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30756

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30763
30764
30765
30766
30767
30768
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30763

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