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.



16470
16471
16472
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16470

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

Instance Attribute Details

#metadataHash<String,Object>

Metadata associated with the article. Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


16453
16454
16455
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16453

def 
  @metadata
end

#snippetString

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

Returns:

  • (String)


16458
16459
16460
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16458

def snippet
  @snippet
end

#titleString

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

Returns:

  • (String)


16463
16464
16465
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16463

def title
  @title
end

#uriString

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

Returns:

  • (String)


16468
16469
16470
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16468

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16475
16476
16477
16478
16479
16480
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16475

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