Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SuggestionDenyListEntry
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SuggestionDenyListEntry
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
Suggestion deny list entry identifying the phrase to block from suggestions and the applied operation for the phrase.
Instance Attribute Summary collapse
-
#block_phrase ⇒ String
Required.
-
#match_operator ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1SuggestionDenyListEntry
constructor
A new instance of GoogleCloudDiscoveryengineV1SuggestionDenyListEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1SuggestionDenyListEntry
Returns a new instance of GoogleCloudDiscoveryengineV1SuggestionDenyListEntry.
8767 8768 8769 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8767 def initialize(**args) update!(**args) end |
Instance Attribute Details
#block_phrase ⇒ String
Required. Phrase to block from suggestions served. Can be maximum 125
characters.
Corresponds to the JSON property blockPhrase
8759 8760 8761 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8759 def block_phrase @block_phrase end |
#match_operator ⇒ String
Required. The match operator to apply for this phrase. Whether to block the
exact phrase, or block any suggestions containing this phrase.
Corresponds to the JSON property matchOperator
8765 8766 8767 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8765 def match_operator @match_operator end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8772 8773 8774 8775 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8772 def update!(**args) @block_phrase = args[:block_phrase] if args.key?(:block_phrase) @match_operator = args[:match_operator] if args.key?(:match_operator) end |