Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource

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

The sources of the answers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource

Returns a new instance of GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource.



3808
3809
3810
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3808

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

Instance Attribute Details

#documentString

The document from which the snippet was extracted. Format: projects// knowledgeBases//documents/ Corresponds to the JSON property document

Returns:

  • (String)


3791
3792
3793
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3791

def document
  @document
end

#snippetString

The relevant snippet of the article. Corresponds to the JSON property snippet

Returns:

  • (String)


3796
3797
3798
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3796

def snippet
  @snippet
end

#titleString

The title of the article. Corresponds to the JSON property title

Returns:

  • (String)


3801
3802
3803
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3801

def title
  @title
end

#uriString

The URI of the article. Corresponds to the JSON property uri

Returns:

  • (String)


3806
3807
3808
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3806

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3813
3814
3815
3816
3817
3818
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3813

def update!(**args)
  @document = args[:document] if args.key?(:document)
  @snippet = args[:snippet] if args.key?(:snippet)
  @title = args[:title] if args.key?(:title)
  @uri = args[:uri] if args.key?(:uri)
end