Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::SafetyRating.
Safety rating corresponding to the generated content.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#blocked
def blocked() -> ::Boolean
Returns
- (::Boolean) — Output only. Indicates whether the content was filtered out because of this rating.
#category
def category() -> ::Google::Cloud::DiscoveryEngine::V1::HarmCategory
Returns
- (::Google::Cloud::DiscoveryEngine::V1::HarmCategory) — Output only. Harm category.
#probability
def probability() -> ::Google::Cloud::DiscoveryEngine::V1::SafetyRating::HarmProbability
Returns
- (::Google::Cloud::DiscoveryEngine::V1::SafetyRating::HarmProbability) — Output only. Harm probability levels in the content.
#probability_score
def probability_score() -> ::Float
Returns
- (::Float) — Output only. Harm probability score.
#severity
def severity() -> ::Google::Cloud::DiscoveryEngine::V1::SafetyRating::HarmSeverity
Returns
- (::Google::Cloud::DiscoveryEngine::V1::SafetyRating::HarmSeverity) — Output only. Harm severity levels in the content.
#severity_score
def severity_score() -> ::Float
Returns
- (::Float) — Output only. Harm severity score.