Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet

Returns a new instance of GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet.



19893
19894
19895
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19893

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

Instance Attribute Details

#metadataHash<String,Object>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


19876
19877
19878
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19876

def 
  @metadata
end

#textString

Corresponds to the JSON property text

Returns:

  • (String)


19881
19882
19883
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19881

def text
  @text
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


19886
19887
19888
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19886

def title
  @title
end

#uriString

Corresponds to the JSON property uri

Returns:

  • (String)


19891
19892
19893
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19891

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19898
19899
19900
19901
19902
19903
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19898

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