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.



18396
18397
18398
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18396

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

Instance Attribute Details

#snippetString

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

Returns:

  • (String)


18384
18385
18386
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18384

def snippet
  @snippet
end

#titleString

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

Returns:

  • (String)


18389
18390
18391
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18389

def title
  @title
end

#uriString

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

Returns:

  • (String)


18394
18395
18396
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18394

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18401
18402
18403
18404
18405
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18401

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