Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionDedupingConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SuggestionDedupingConfig

Returns a new instance of GoogleCloudDialogflowV2beta1SuggestionDedupingConfig.



20850
20851
20852
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20850

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

Instance Attribute Details

#enable_dedupingBoolean Also known as: enable_deduping?

Corresponds to the JSON property enableDeduping

Returns:

  • (Boolean)


20842
20843
20844
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20842

def enable_deduping
  @enable_deduping
end

#similarity_thresholdFloat

Corresponds to the JSON property similarityThreshold

Returns:

  • (Float)


20848
20849
20850
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20848

def similarity_threshold
  @similarity_threshold
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20855
20856
20857
20858
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20855

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