Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource

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

Overview

The sources of the answers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource

Returns a new instance of GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource.



17531
17532
17533
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17531

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

Instance Attribute Details

#snippetString

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

Returns:

  • (String)


17519
17520
17521
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17519

def snippet
  @snippet
end

#titleString

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

Returns:

  • (String)


17524
17525
17526
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17524

def title
  @title
end

#uriString

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

Returns:

  • (String)


17529
17530
17531
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17529

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17536
17537
17538
17539
17540
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17536

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