Class: Google::Apis::AiplatformV1::LearningGenaiRootTakedownResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootTakedownResult

Returns a new instance of LearningGenaiRootTakedownResult.



30443
30444
30445
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30443

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

Instance Attribute Details

#allowedBoolean Also known as: allowed?

False when query or response should be taken down by any of the takedown rules, true otherwise. Corresponds to the JSON property allowed

Returns:

  • (Boolean)


30425
30426
30427
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30425

def allowed
  @allowed
end

#regex_takedown_resultGoogle::Apis::AiplatformV1::LearningGenaiRootRegexTakedownResult

Corresponds to the JSON property regexTakedownResult



30431
30432
30433
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30431

def regex_takedown_result
  @regex_takedown_result
end

#request_response_takedown_resultGoogle::Apis::AiplatformV1::LearningGenaiRootRequestResponseTakedownResult

Corresponds to the JSON property requestResponseTakedownResult



30436
30437
30438
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30436

def request_response_takedown_result
  @request_response_takedown_result
end

#similarity_takedown_resultGoogle::Apis::AiplatformV1::LearningGenaiRootSimilarityTakedownResult

Corresponds to the JSON property similarityTakedownResult



30441
30442
30443
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30441

def similarity_takedown_result
  @similarity_takedown_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30448
30449
30450
30451
30452
30453
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30448

def update!(**args)
  @allowed = args[:allowed] if args.key?(:allowed)
  @regex_takedown_result = args[:regex_takedown_result] if args.key?(:regex_takedown_result)
  @request_response_takedown_result = args[:request_response_takedown_result] if args.key?(:request_response_takedown_result)
  @similarity_takedown_result = args[:similarity_takedown_result] if args.key?(:similarity_takedown_result)
end