Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer

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

Returns a new instance of GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer.



3769
3770
3771
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3769

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)


3747
3748
3749
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3747

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)


3752
3753
3754
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3752

def answer_record
  @answer_record
end

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

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



3757
3758
3759
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3757

def answer_sources
  @answer_sources
end

#answer_typeString

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

Returns:

  • (String)


3762
3763
3764
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3762

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)


3767
3768
3769
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3767

def confidence_score
  @confidence_score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3774
3775
3776
3777
3778
3779
3780
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3774

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