Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Overview

The sources of the answers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource

Returns a new instance of GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource.



13637
13638
13639
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13637

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

Instance Attribute Details

#snippetString

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

Returns:

  • (String)


13625
13626
13627
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13625

def snippet
  @snippet
end

#titleString

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

Returns:

  • (String)


13630
13631
13632
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13630

def title
  @title
end

#uriString

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

Returns:

  • (String)


13635
13636
13637
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13635

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13642
13643
13644
13645
13646
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13642

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