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.



31437
31438
31439
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31437

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

Instance Attribute Details

#allowedBoolean Also known as: allowed?

Corresponds to the JSON property allowed

Returns:

  • (Boolean)


31419
31420
31421
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31419

def allowed
  @allowed
end

#harmGoogle::Apis::AiplatformV1::LearningGenaiRootHarm

Corresponds to the JSON property harm



31425
31426
31427
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31425

def harm
  @harm
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


31430
31431
31432
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31430

def name
  @name
end

#scoreFloat

Corresponds to the JSON property score

Returns:

  • (Float)


31435
31436
31437
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31435

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31442
31443
31444
31445
31446
31447
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31442

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