Class: Google::Cloud::DiscoveryEngine::V1beta::SuggestionDenyListEntry
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1beta::SuggestionDenyListEntry
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/discoveryengine/v1beta/completion.rb
Overview
Suggestion deny list entry identifying the phrase to block from suggestions and the applied operation for the phrase.
Defined Under Namespace
Modules: MatchOperator
Instance Attribute Summary collapse
-
#block_phrase ⇒ ::String
Required.
-
#match_operator ⇒ ::Google::Cloud::DiscoveryEngine::V1beta::SuggestionDenyListEntry::MatchOperator
Required.
Instance Attribute Details
#block_phrase ⇒ ::String
Returns Required. Phrase to block from suggestions served. Can be maximum 125 characters.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/completion.rb', line 34 class SuggestionDenyListEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Operator for matching with the generated suggestions. module MatchOperator # Default value. Should not be used MATCH_OPERATOR_UNSPECIFIED = 0 # If the suggestion is an exact match to the block_phrase, then block it. EXACT_MATCH = 1 # If the suggestion contains the block_phrase, then block it. CONTAINS = 2 end end |
#match_operator ⇒ ::Google::Cloud::DiscoveryEngine::V1beta::SuggestionDenyListEntry::MatchOperator
Returns Required. The match operator to apply for this phrase. Whether to block the exact phrase, or block any suggestions containing this phrase.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/completion.rb', line 34 class SuggestionDenyListEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Operator for matching with the generated suggestions. module MatchOperator # Default value. Should not be used MATCH_OPERATOR_UNSPECIFIED = 0 # If the suggestion is an exact match to the block_phrase, then block it. EXACT_MATCH = 1 # If the suggestion contains the block_phrase, then block it. CONTAINS = 2 end end |