Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer

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 SearchKnowledge answer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer

Returns a new instance of GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer.



7579
7580
7581
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7579

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

Instance Attribute Details

#answerString

The piece of text from the knowledge base documents that answers the search query Corresponds to the JSON property answer

Returns:

  • (String)


7557
7558
7559
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7557

def answer
  @answer
end

#answer_recordString

The name of the answer record. Format: projects//locations//answer Records/ Corresponds to the JSON property answerRecord

Returns:

  • (String)


7562
7563
7564
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7562

def answer_record
  @answer_record
end

#answer_sourcesArray<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource>

All sources used to generate the answer. Corresponds to the JSON property answerSources



7567
7568
7569
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7567

def answer_sources
  @answer_sources
end

#answer_typeString

The type of the answer. Corresponds to the JSON property answerType

Returns:

  • (String)


7572
7573
7574
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7572

def answer_type
  @answer_type
end

#confidence_scoreFloat

The confidence score in [0.0, 1.0] range. Corresponds to the JSON property confidenceScore

Returns:

  • (Float)


7577
7578
7579
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7577

def confidence_score
  @confidence_score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7584
7585
7586
7587
7588
7589
7590
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7584

def update!(**args)
  @answer = args[:answer] if args.key?(:answer)
  @answer_record = args[:answer_record] if args.key?(:answer_record)
  @answer_sources = args[:answer_sources] if args.key?(:answer_sources)
  @answer_type = args[:answer_type] if args.key?(:answer_type)
  @confidence_score = args[:confidence_score] if args.key?(:confidence_score)
end