Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery

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) ⇒ GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery

Returns a new instance of GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery.



2535
2536
2537
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2535

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

Instance Attribute Details

#query_textString

Suggested query text. Corresponds to the JSON property queryText

Returns:

  • (String)


2528
2529
2530
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2528

def query_text
  @query_text
end

#scoreFloat

Suggested query score. Corresponds to the JSON property score

Returns:

  • (Float)


2533
2534
2535
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2533

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2540
2541
2542
2543
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2540

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