Class: Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult
- Inherits:
-
Object
- Object
- Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/checks_v1alpha/classes.rb,
lib/google/apis/checks_v1alpha/representations.rb,
lib/google/apis/checks_v1alpha/representations.rb
Overview
Result for one policy against the corresponding input.
Instance Attribute Summary collapse
-
#policy_type ⇒ String
Type of the policy.
-
#score ⇒ Float
Final score for the results of this policy.
-
#violation_result ⇒ String
Result of the classification for the policy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult
constructor
A new instance of GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult
Returns a new instance of GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult.
246 247 248 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 246 def initialize(**args) update!(**args) end |
Instance Attribute Details
#policy_type ⇒ String
Type of the policy.
Corresponds to the JSON property policyType
234 235 236 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 234 def policy_type @policy_type end |
#score ⇒ Float
Final score for the results of this policy.
Corresponds to the JSON property score
239 240 241 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 239 def score @score end |
#violation_result ⇒ String
Result of the classification for the policy.
Corresponds to the JSON property violationResult
244 245 246 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 244 def violation_result @violation_result end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
251 252 253 254 255 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 251 def update!(**args) @policy_type = args[:policy_type] if args.key?(:policy_type) @score = args[:score] if args.key?(:score) @violation_result = args[:violation_result] if args.key?(:violation_result) end |