Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SuggestionDenyListEntry

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1SuggestionDenyListEntry

Returns a new instance of GoogleCloudDiscoveryengineV1SuggestionDenyListEntry.



8209
8210
8211
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8209

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#block_phraseString

Required. Phrase to block from suggestions served. Can be maximum 125 characters. Corresponds to the JSON property blockPhrase

Returns:

  • (String)


8201
8202
8203
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8201

def block_phrase
  @block_phrase
end

#match_operatorString

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

Returns:

  • (String)


8207
8208
8209
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8207

def match_operator
  @match_operator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8214
8215
8216
8217
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8214

def update!(**args)
  @block_phrase = args[:block_phrase] if args.key?(:block_phrase)
  @match_operator = args[:match_operator] if args.key?(:match_operator)
end