Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet

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

Returns a new instance of GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet.



20593
20594
20595
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20593

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

Instance Attribute Details

#metadataHash<String,Object>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


20576
20577
20578
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20576

def 
  @metadata
end

#textString

Corresponds to the JSON property text

Returns:

  • (String)


20581
20582
20583
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20581

def text
  @text
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


20586
20587
20588
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20586

def title
  @title
end

#uriString

Corresponds to the JSON property uri

Returns:

  • (String)


20591
20592
20593
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20591

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20598
20599
20600
20601
20602
20603
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20598

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