Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery

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

Overview

Represents a suggested query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery

Returns a new instance of GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery.



6698
6699
6700
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6698

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

Instance Attribute Details

#query_textString

Suggested query text. Corresponds to the JSON property queryText

Returns:

  • (String)


6691
6692
6693
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6691

def query_text
  @query_text
end

#scoreFloat

Suggested query score. Corresponds to the JSON property score

Returns:

  • (Float)


6696
6697
6698
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6696

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6703
6704
6705
6706
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6703

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