Class: Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_typeString

Type of the policy. Corresponds to the JSON property policyType

Returns:

  • (String)


234
235
236
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 234

def policy_type
  @policy_type
end

#scoreFloat

Final score for the results of this policy. Corresponds to the JSON property score

Returns:

  • (Float)


239
240
241
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 239

def score
  @score
end

#violation_resultString

Result of the classification for the policy. Corresponds to the JSON property violationResult

Returns:

  • (String)


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