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.



20667
20668
20669
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20667

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

Instance Attribute Details

#metadataHash<String,Object>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


20650
20651
20652
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20650

def 
  @metadata
end

#textString

Corresponds to the JSON property text

Returns:

  • (String)


20655
20656
20657
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20655

def text
  @text
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


20660
20661
20662
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20660

def title
  @title
end

#uriString

Corresponds to the JSON property uri

Returns:

  • (String)


20665
20666
20667
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20665

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20672
20673
20674
20675
20676
20677
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20672

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