Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootRaiOutput

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

This is per harm.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootRaiOutput

Returns a new instance of LearningGenaiRootRaiOutput.



36034
36035
36036
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36034

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

Instance Attribute Details

#allowedBoolean Also known as: allowed?

Corresponds to the JSON property allowed

Returns:

  • (Boolean)


36016
36017
36018
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36016

def allowed
  @allowed
end

#harmGoogle::Apis::AiplatformV1beta1::LearningGenaiRootHarm

Corresponds to the JSON property harm



36022
36023
36024
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36022

def harm
  @harm
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


36027
36028
36029
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36027

def name
  @name
end

#scoreFloat

Corresponds to the JSON property score

Returns:

  • (Float)


36032
36033
36034
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36032

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



36039
36040
36041
36042
36043
36044
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36039

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