Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionDedupingConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Overview

Config for suggestion deduping. NEXT_ID: 3

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SuggestionDedupingConfig

Returns a new instance of GoogleCloudDialogflowV2SuggestionDedupingConfig.



17840
17841
17842
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17840

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

Instance Attribute Details

#enable_dedupingBoolean Also known as: enable_deduping?

Optional. Whether to enable suggestion deduping. Corresponds to the JSON property enableDeduping

Returns:

  • (Boolean)


17831
17832
17833
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17831

def enable_deduping
  @enable_deduping
end

#similarity_thresholdFloat

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

Returns:

  • (Float)


17838
17839
17840
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17838

def similarity_threshold
  @similarity_threshold
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17845
17846
17847
17848
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17845

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