Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource

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

Returns a new instance of GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource.



7618
7619
7620
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7618

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)


7601
7602
7603
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7601

def document
  @document
end

#snippetString

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

Returns:

  • (String)


7606
7607
7608
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7606

def snippet
  @snippet
end

#titleString

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

Returns:

  • (String)


7611
7612
7613
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7611

def title
  @title
end

#uriString

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

Returns:

  • (String)


7616
7617
7618
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7616

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7623
7624
7625
7626
7627
7628
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7623

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