Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/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) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes.
6289 6290 6291 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6289 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
6281 6282 6283 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6281 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
6287 6288 6289 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6287 def scores @scores end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6294 6295 6296 6297 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6294 def update!(**args) @categories = args[:categories] if args.key?(:categories) @scores = args[:scores] if args.key?(:scores) end |