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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource

Returns a new instance of GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource.



14732
14733
14734
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14732

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

Instance Attribute Details

#metadataHash<String,Object>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


14715
14716
14717
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14715

def 
  @metadata
end

#snippetString

Corresponds to the JSON property snippet

Returns:

  • (String)


14720
14721
14722
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14720

def snippet
  @snippet
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


14725
14726
14727
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14725

def title
  @title
end

#uriString

Corresponds to the JSON property uri

Returns:

  • (String)


14730
14731
14732
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14730

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14737
14738
14739
14740
14741
14742
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14737

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