Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/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) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes
constructor
A new instance of GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes
Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes.
21098 21099 21100 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21098 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
21090 21091 21092 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21090 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
21096 21097 21098 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21096 def scores @scores end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
21103 21104 21105 21106 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21103 def update!(**args) @categories = args[:categories] if args.key?(:categories) @scores = args[:scores] if args.key?(:scores) end |