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.



14795
14796
14797
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14795

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

Instance Attribute Details

#metadataHash<String,Object>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


14778
14779
14780
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14778

def 
  @metadata
end

#snippetString

Corresponds to the JSON property snippet

Returns:

  • (String)


14783
14784
14785
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14783

def snippet
  @snippet
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


14788
14789
14790
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14788

def title
  @title
end

#uriString

Corresponds to the JSON property uri

Returns:

  • (String)


14793
14794
14795
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14793

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14800
14801
14802
14803
14804
14805
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14800

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