Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::SearchResponse::Summary::SafetyAttributes (v1.1.0)

Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::SearchResponse::Summary::SafetyAttributes.

Safety Attribute categories and their associated confidence scores.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#categories

def categories() -> ::Array<::String>
Returns
  • (::Array<::String>) — The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.

#categories=

def categories=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
Returns
  • (::Array<::String>) — The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.

#scores

def scores() -> ::Array<::Float>
Returns
  • (::Array<::Float>) — The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.

#scores=

def scores=(value) -> ::Array<::Float>
Parameter
  • value (::Array<::Float>) — The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
Returns
  • (::Array<::Float>) — The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.