Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
Safety Attribute categories and their associated confidence scores.
Instance Attribute Summary collapse
-
#categories ⇒ Array<String>
The display names of Safety Attribute categories associated with the generated content.
-
#scores ⇒ Array<Float>
The confidence scores of the each category, higher value means higher confidence.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes
constructor
A new instance of GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes
Returns a new instance of GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes.
6471 6472 6473 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 6471 def initialize(**args) update!(**args) end |
Instance Attribute Details
#categories ⇒ Array<String>
The display names of Safety Attribute categories associated with the generated
content. Order matches the Scores.
Corresponds to the JSON property categories
6463 6464 6465 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 6463 def categories @categories end |
#scores ⇒ Array<Float>
The confidence scores of the each category, higher value means higher
confidence. Order matches the Categories.
Corresponds to the JSON property scores
6469 6470 6471 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 6469 def scores @scores end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6476 6477 6478 6479 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 6476 def update!(**args) @categories = args[:categories] if args.key?(:categories) @scores = args[:scores] if args.key?(:scores) end |