Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootTakedownResult
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::LearningGenaiRootTakedownResult
- 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
Instance Attribute Summary collapse
-
#allowed ⇒ Boolean
(also: #allowed?)
False when query or response should be taken down by any of the takedown rules, true otherwise.
-
#regex_takedown_result ⇒ Google::Apis::AiplatformV1beta1::LearningGenaiRootRegexTakedownResult
Corresponds to the JSON property
regexTakedownResult. -
#request_response_takedown_result ⇒ Google::Apis::AiplatformV1beta1::LearningGenaiRootRequestResponseTakedownResult
Corresponds to the JSON property
requestResponseTakedownResult. -
#similarity_takedown_result ⇒ Google::Apis::AiplatformV1beta1::LearningGenaiRootSimilarityTakedownResult
Corresponds to the JSON property
similarityTakedownResult.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LearningGenaiRootTakedownResult
constructor
A new instance of LearningGenaiRootTakedownResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LearningGenaiRootTakedownResult
Returns a new instance of LearningGenaiRootTakedownResult.
36532 36533 36534 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36532 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed ⇒ Boolean 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
36514 36515 36516 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36514 def allowed @allowed end |
#regex_takedown_result ⇒ Google::Apis::AiplatformV1beta1::LearningGenaiRootRegexTakedownResult
Corresponds to the JSON property regexTakedownResult
36520 36521 36522 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36520 def regex_takedown_result @regex_takedown_result end |
#request_response_takedown_result ⇒ Google::Apis::AiplatformV1beta1::LearningGenaiRootRequestResponseTakedownResult
Corresponds to the JSON property requestResponseTakedownResult
36525 36526 36527 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36525 def request_response_takedown_result @request_response_takedown_result end |
#similarity_takedown_result ⇒ Google::Apis::AiplatformV1beta1::LearningGenaiRootSimilarityTakedownResult
Corresponds to the JSON property similarityTakedownResult
36530 36531 36532 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36530 def similarity_takedown_result @similarity_takedown_result end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
36537 36538 36539 36540 36541 36542 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36537 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 |