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.



20790
20791
20792
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20790

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

Instance Attribute Details

#metadataHash<String,Object>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


20773
20774
20775
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20773

def 
  @metadata
end

#textString

Corresponds to the JSON property text

Returns:

  • (String)


20778
20779
20780
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20778

def text
  @text
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


20783
20784
20785
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20783

def title
  @title
end

#uriString

Corresponds to the JSON property uri

Returns:

  • (String)


20788
20789
20790
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20788

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20795
20796
20797
20798
20799
20800
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20795

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