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.



18643
18644
18645
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18643

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>)


18626
18627
18628
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18626

def 
  @metadata
end

#snippetString

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

Returns:

  • (String)


18631
18632
18633
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18631

def snippet
  @snippet
end

#titleString

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

Returns:

  • (String)


18636
18637
18638
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18636

def title
  @title
end

#uriString

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

Returns:

  • (String)


18641
18642
18643
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18641

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18648
18649
18650
18651
18652
18653
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18648

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