Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionDedupingConfig
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionDedupingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
Config for suggestion deduping. NEXT_ID: 3
Instance Attribute Summary collapse
-
#enable_deduping ⇒ Boolean
(also: #enable_deduping?)
Optional.
-
#similarity_threshold ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SuggestionDedupingConfig
constructor
A new instance of GoogleCloudDialogflowV2beta1SuggestionDedupingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SuggestionDedupingConfig
Returns a new instance of GoogleCloudDialogflowV2beta1SuggestionDedupingConfig.
22444 22445 22446 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22444 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_deduping ⇒ Boolean Also known as: enable_deduping?
Optional. Whether to enable suggestion deduping.
Corresponds to the JSON property enableDeduping
22435 22436 22437 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22435 def enable_deduping @enable_deduping end |
#similarity_threshold ⇒ Float
Optional. The threshold for similarity between two suggestions. Acceptable
value is [0.0, 1.0], default to 0.8
Corresponds to the JSON property similarityThreshold
22442 22443 22444 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22442 def similarity_threshold @similarity_threshold end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22449 22450 22451 22452 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22449 def update!(**args) @enable_deduping = args[:enable_deduping] if args.key?(:enable_deduping) @similarity_threshold = args[:similarity_threshold] if args.key?(:similarity_threshold) end |