Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet

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

Snippet Source for a Generative Prediction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet

Returns a new instance of GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet.



6646
6647
6648
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6646

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

Instance Attribute Details

#documentString

Indicates which Knowledge Document this snippet was extracted from. Format: projects//knowledgeBases//documents/. Corresponds to the JSON property document

Returns:

  • (String)


6629
6630
6631
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6629

def document
  @document
end

#textString

text taken from that URI. Corresponds to the JSON property text

Returns:

  • (String)


6634
6635
6636
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6634

def text
  @text
end

#titleString

Title of the document. Corresponds to the JSON property title

Returns:

  • (String)


6639
6640
6641
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6639

def title
  @title
end

#uriString

URI the data is sourced from. Corresponds to the JSON property uri

Returns:

  • (String)


6644
6645
6646
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6644

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6651
6652
6653
6654
6655
6656
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6651

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