Class: Google::Cloud::Dialogflow::CX::V3::DataStoreConnectionSignals::SafetySignals
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::CX::V3::DataStoreConnectionSignals::SafetySignals
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/dialogflow/cx/v3/data_store_connection.rb
Overview
Safety check results.
Defined Under Namespace
Modules: BannedPhraseMatch, SafetyDecision
Instance Attribute Summary collapse
-
#banned_phrase_match ⇒ ::Google::Cloud::Dialogflow::CX::V3::DataStoreConnectionSignals::SafetySignals::BannedPhraseMatch
Specifies banned phrase match subject.
-
#decision ⇒ ::Google::Cloud::Dialogflow::CX::V3::DataStoreConnectionSignals::SafetySignals::SafetyDecision
Safety decision.
-
#matched_banned_phrase ⇒ ::String
The matched banned phrase if there was a match.
Instance Attribute Details
#banned_phrase_match ⇒ ::Google::Cloud::Dialogflow::CX::V3::DataStoreConnectionSignals::SafetySignals::BannedPhraseMatch
Returns Specifies banned phrase match subject.
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
# File 'proto_docs/google/cloud/dialogflow/cx/v3/data_store_connection.rb', line 205 class SafetySignals include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Safety decision. # All kinds of check are incorporated into this final decision, including # banned phrases check. module SafetyDecision # Decision not specified. SAFETY_DECISION_UNSPECIFIED = 0 # No manual or automatic safety check fired. ACCEPTED_BY_SAFETY_CHECK = 1 # One ore more safety checks fired. REJECTED_BY_SAFETY_CHECK = 2 end # Specifies banned phrase match subject. module BannedPhraseMatch # No banned phrase check was executed. BANNED_PHRASE_MATCH_UNSPECIFIED = 0 # All banned phrase checks led to no match. BANNED_PHRASE_MATCH_NONE = 1 # A banned phrase matched the query. BANNED_PHRASE_MATCH_QUERY = 2 # A banned phrase matched the response. BANNED_PHRASE_MATCH_RESPONSE = 3 end end |
#decision ⇒ ::Google::Cloud::Dialogflow::CX::V3::DataStoreConnectionSignals::SafetySignals::SafetyDecision
Returns Safety decision.
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
# File 'proto_docs/google/cloud/dialogflow/cx/v3/data_store_connection.rb', line 205 class SafetySignals include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Safety decision. # All kinds of check are incorporated into this final decision, including # banned phrases check. module SafetyDecision # Decision not specified. SAFETY_DECISION_UNSPECIFIED = 0 # No manual or automatic safety check fired. ACCEPTED_BY_SAFETY_CHECK = 1 # One ore more safety checks fired. REJECTED_BY_SAFETY_CHECK = 2 end # Specifies banned phrase match subject. module BannedPhraseMatch # No banned phrase check was executed. BANNED_PHRASE_MATCH_UNSPECIFIED = 0 # All banned phrase checks led to no match. BANNED_PHRASE_MATCH_NONE = 1 # A banned phrase matched the query. BANNED_PHRASE_MATCH_QUERY = 2 # A banned phrase matched the response. BANNED_PHRASE_MATCH_RESPONSE = 3 end end |
#matched_banned_phrase ⇒ ::String
Returns The matched banned phrase if there was a match.
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
# File 'proto_docs/google/cloud/dialogflow/cx/v3/data_store_connection.rb', line 205 class SafetySignals include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Safety decision. # All kinds of check are incorporated into this final decision, including # banned phrases check. module SafetyDecision # Decision not specified. SAFETY_DECISION_UNSPECIFIED = 0 # No manual or automatic safety check fired. ACCEPTED_BY_SAFETY_CHECK = 1 # One ore more safety checks fired. REJECTED_BY_SAFETY_CHECK = 2 end # Specifies banned phrase match subject. module BannedPhraseMatch # No banned phrase check was executed. BANNED_PHRASE_MATCH_UNSPECIFIED = 0 # All banned phrase checks led to no match. BANNED_PHRASE_MATCH_NONE = 1 # A banned phrase matched the query. BANNED_PHRASE_MATCH_QUERY = 2 # A banned phrase matched the response. BANNED_PHRASE_MATCH_RESPONSE = 3 end end |