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.



20980
20981
20982
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20980

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


20963
20964
20965
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20963

def 
  @metadata
end

#snippetString

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

Returns:

  • (String)


20968
20969
20970
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20968

def snippet
  @snippet
end

#titleString

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

Returns:

  • (String)


20973
20974
20975
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20973

def title
  @title
end

#uriString

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

Returns:

  • (String)


20978
20979
20980
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20978

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20985
20986
20987
20988
20989
20990
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20985

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