Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet

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

Returns a new instance of GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet.



2483
2484
2485
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2483

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)


2466
2467
2468
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2466

def document
  @document
end

#textString

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

Returns:

  • (String)


2471
2472
2473
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2471

def text
  @text
end

#titleString

Title of the document. Corresponds to the JSON property title

Returns:

  • (String)


2476
2477
2478
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2476

def title
  @title
end

#uriString

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

Returns:

  • (String)


2481
2482
2483
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2481

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2488
2489
2490
2491
2492
2493
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2488

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