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.



31921
31922
31923
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31921

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)


31903
31904
31905
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31903

def allowed
  @allowed
end

#regex_takedown_resultGoogle::Apis::AiplatformV1::LearningGenaiRootRegexTakedownResult

Corresponds to the JSON property regexTakedownResult



31909
31910
31911
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31909

def regex_takedown_result
  @regex_takedown_result
end

#request_response_takedown_resultGoogle::Apis::AiplatformV1::LearningGenaiRootRequestResponseTakedownResult

Corresponds to the JSON property requestResponseTakedownResult



31914
31915
31916
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31914

def request_response_takedown_result
  @request_response_takedown_result
end

#similarity_takedown_resultGoogle::Apis::AiplatformV1::LearningGenaiRootSimilarityTakedownResult

Corresponds to the JSON property similarityTakedownResult



31919
31920
31921
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31919

def similarity_takedown_result
  @similarity_takedown_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31926
31927
31928
31929
31930
31931
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31926

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