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.



32949
32950
32951
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32949

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

Instance Attribute Details

#allowedBoolean Also known as: allowed?

Corresponds to the JSON property allowed

Returns:

  • (Boolean)


32931
32932
32933
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32931

def allowed
  @allowed
end

#harmGoogle::Apis::AiplatformV1beta1::LearningGenaiRootHarm

Corresponds to the JSON property harm



32937
32938
32939
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32937

def harm
  @harm
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


32942
32943
32944
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32942

def name
  @name
end

#scoreFloat

Corresponds to the JSON property score

Returns:

  • (Float)


32947
32948
32949
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32947

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



32954
32955
32956
32957
32958
32959
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32954

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