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.



13612
13613
13614
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13612

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

Instance Attribute Details

#snippetString

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

Returns:

  • (String)


13600
13601
13602
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13600

def snippet
  @snippet
end

#titleString

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

Returns:

  • (String)


13605
13606
13607
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13605

def title
  @title
end

#uriString

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

Returns:

  • (String)


13610
13611
13612
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13610

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13617
13618
13619
13620
13621
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13617

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