Class: Google::Cloud::DiscoveryEngine::V1::SafetyRating
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1::SafetyRating
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/discoveryengine/v1/safety.rb
Overview
Safety rating corresponding to the generated content.
Defined Under Namespace
Modules: HarmProbability, HarmSeverity
Instance Attribute Summary collapse
-
#blocked ⇒ ::Boolean
readonly
Output only.
-
#category ⇒ ::Google::Cloud::DiscoveryEngine::V1::HarmCategory
readonly
Output only.
-
#probability ⇒ ::Google::Cloud::DiscoveryEngine::V1::SafetyRating::HarmProbability
readonly
Output only.
-
#probability_score ⇒ ::Float
readonly
Output only.
-
#severity ⇒ ::Google::Cloud::DiscoveryEngine::V1::SafetyRating::HarmSeverity
readonly
Output only.
-
#severity_score ⇒ ::Float
readonly
Output only.
Instance Attribute Details
#blocked ⇒ ::Boolean (readonly)
Returns Output only. Indicates whether the content was filtered out because of this rating.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'proto_docs/google/cloud/discoveryengine/v1/safety.rb', line 44 class SafetyRating include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Harm probability levels in the content. module HarmProbability # Harm probability unspecified. HARM_PROBABILITY_UNSPECIFIED = 0 # Negligible level of harm. NEGLIGIBLE = 1 # Low level of harm. LOW = 2 # Medium level of harm. MEDIUM = 3 # High level of harm. HIGH = 4 end # Harm severity levels. module HarmSeverity # Harm severity unspecified. HARM_SEVERITY_UNSPECIFIED = 0 # Negligible level of harm severity. HARM_SEVERITY_NEGLIGIBLE = 1 # Low level of harm severity. HARM_SEVERITY_LOW = 2 # Medium level of harm severity. HARM_SEVERITY_MEDIUM = 3 # High level of harm severity. HARM_SEVERITY_HIGH = 4 end end |
#category ⇒ ::Google::Cloud::DiscoveryEngine::V1::HarmCategory (readonly)
Returns Output only. Harm category.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'proto_docs/google/cloud/discoveryengine/v1/safety.rb', line 44 class SafetyRating include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Harm probability levels in the content. module HarmProbability # Harm probability unspecified. HARM_PROBABILITY_UNSPECIFIED = 0 # Negligible level of harm. NEGLIGIBLE = 1 # Low level of harm. LOW = 2 # Medium level of harm. MEDIUM = 3 # High level of harm. HIGH = 4 end # Harm severity levels. module HarmSeverity # Harm severity unspecified. HARM_SEVERITY_UNSPECIFIED = 0 # Negligible level of harm severity. HARM_SEVERITY_NEGLIGIBLE = 1 # Low level of harm severity. HARM_SEVERITY_LOW = 2 # Medium level of harm severity. HARM_SEVERITY_MEDIUM = 3 # High level of harm severity. HARM_SEVERITY_HIGH = 4 end end |
#probability ⇒ ::Google::Cloud::DiscoveryEngine::V1::SafetyRating::HarmProbability (readonly)
Returns Output only. Harm probability levels in the content.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'proto_docs/google/cloud/discoveryengine/v1/safety.rb', line 44 class SafetyRating include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Harm probability levels in the content. module HarmProbability # Harm probability unspecified. HARM_PROBABILITY_UNSPECIFIED = 0 # Negligible level of harm. NEGLIGIBLE = 1 # Low level of harm. LOW = 2 # Medium level of harm. MEDIUM = 3 # High level of harm. HIGH = 4 end # Harm severity levels. module HarmSeverity # Harm severity unspecified. HARM_SEVERITY_UNSPECIFIED = 0 # Negligible level of harm severity. HARM_SEVERITY_NEGLIGIBLE = 1 # Low level of harm severity. HARM_SEVERITY_LOW = 2 # Medium level of harm severity. HARM_SEVERITY_MEDIUM = 3 # High level of harm severity. HARM_SEVERITY_HIGH = 4 end end |
#probability_score ⇒ ::Float (readonly)
Returns Output only. Harm probability score.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'proto_docs/google/cloud/discoveryengine/v1/safety.rb', line 44 class SafetyRating include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Harm probability levels in the content. module HarmProbability # Harm probability unspecified. HARM_PROBABILITY_UNSPECIFIED = 0 # Negligible level of harm. NEGLIGIBLE = 1 # Low level of harm. LOW = 2 # Medium level of harm. MEDIUM = 3 # High level of harm. HIGH = 4 end # Harm severity levels. module HarmSeverity # Harm severity unspecified. HARM_SEVERITY_UNSPECIFIED = 0 # Negligible level of harm severity. HARM_SEVERITY_NEGLIGIBLE = 1 # Low level of harm severity. HARM_SEVERITY_LOW = 2 # Medium level of harm severity. HARM_SEVERITY_MEDIUM = 3 # High level of harm severity. HARM_SEVERITY_HIGH = 4 end end |
#severity ⇒ ::Google::Cloud::DiscoveryEngine::V1::SafetyRating::HarmSeverity (readonly)
Returns Output only. Harm severity levels in the content.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'proto_docs/google/cloud/discoveryengine/v1/safety.rb', line 44 class SafetyRating include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Harm probability levels in the content. module HarmProbability # Harm probability unspecified. HARM_PROBABILITY_UNSPECIFIED = 0 # Negligible level of harm. NEGLIGIBLE = 1 # Low level of harm. LOW = 2 # Medium level of harm. MEDIUM = 3 # High level of harm. HIGH = 4 end # Harm severity levels. module HarmSeverity # Harm severity unspecified. HARM_SEVERITY_UNSPECIFIED = 0 # Negligible level of harm severity. HARM_SEVERITY_NEGLIGIBLE = 1 # Low level of harm severity. HARM_SEVERITY_LOW = 2 # Medium level of harm severity. HARM_SEVERITY_MEDIUM = 3 # High level of harm severity. HARM_SEVERITY_HIGH = 4 end end |
#severity_score ⇒ ::Float (readonly)
Returns Output only. Harm severity score.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'proto_docs/google/cloud/discoveryengine/v1/safety.rb', line 44 class SafetyRating include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Harm probability levels in the content. module HarmProbability # Harm probability unspecified. HARM_PROBABILITY_UNSPECIFIED = 0 # Negligible level of harm. NEGLIGIBLE = 1 # Low level of harm. LOW = 2 # Medium level of harm. MEDIUM = 3 # High level of harm. HIGH = 4 end # Harm severity levels. module HarmSeverity # Harm severity unspecified. HARM_SEVERITY_UNSPECIFIED = 0 # Negligible level of harm severity. HARM_SEVERITY_NEGLIGIBLE = 1 # Low level of harm severity. HARM_SEVERITY_LOW = 2 # Medium level of harm severity. HARM_SEVERITY_MEDIUM = 3 # High level of harm severity. HARM_SEVERITY_HIGH = 4 end end |