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.



14775
14776
14777
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14775

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

Instance Attribute Details

#snippetString

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

Returns:

  • (String)


14763
14764
14765
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14763

def snippet
  @snippet
end

#titleString

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

Returns:

  • (String)


14768
14769
14770
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14768

def title
  @title
end

#uriString

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

Returns:

  • (String)


14773
14774
14775
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14773

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14780
14781
14782
14783
14784
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14780

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