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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SuggestionDedupingConfig

Returns a new instance of GoogleCloudDialogflowV2SuggestionDedupingConfig.



16001
16002
16003
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16001

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

Instance Attribute Details

#enable_dedupingBoolean Also known as: enable_deduping?

Corresponds to the JSON property enableDeduping

Returns:

  • (Boolean)


15993
15994
15995
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15993

def enable_deduping
  @enable_deduping
end

#similarity_thresholdFloat

Corresponds to the JSON property similarityThreshold

Returns:

  • (Float)


15999
16000
16001
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15999

def similarity_threshold
  @similarity_threshold
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16006
16007
16008
16009
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16006

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