Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet
- 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
-
#metadata ⇒ Hash<String,Object>
Corresponds to the JSON property
metadata. -
#text ⇒ String
Corresponds to the JSON property
text. -
#title ⇒ String
Corresponds to the JSON property
title. -
#uri ⇒ String
Corresponds to the JSON property
uri.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet
constructor
A new instance of GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet
Returns a new instance of GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet.
13241 13242 13243 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13241 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metadata ⇒ Hash<String,Object>
Corresponds to the JSON property metadata
13224 13225 13226 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13224 def @metadata end |
#text ⇒ String
Corresponds to the JSON property text
13229 13230 13231 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13229 def text @text end |
#title ⇒ String
Corresponds to the JSON property title
13234 13235 13236 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13234 def title @title end |
#uri ⇒ String
Corresponds to the JSON property uri
13239 13240 13241 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13239 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13246 13247 13248 13249 13250 13251 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13246 def update!(**args) @metadata = args[:metadata] if args.key?(:metadata) @text = args[:text] if args.key?(:text) @title = args[:title] if args.key?(:title) @uri = args[:uri] if args.key?(:uri) end |