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.



20085
20086
20087
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 20085

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

Instance Attribute Details

#metadataHash<String,Object>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


20068
20069
20070
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 20068

def 
  @metadata
end

#textString

Corresponds to the JSON property text

Returns:

  • (String)


20073
20074
20075
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 20073

def text
  @text
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


20078
20079
20080
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 20078

def title
  @title
end

#uriString

Corresponds to the JSON property uri

Returns:

  • (String)


20083
20084
20085
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 20083

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20090
20091
20092
20093
20094
20095
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 20090

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