Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource

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

Returns a new instance of GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource.



14858
14859
14860
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14858

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

Instance Attribute Details

#metadataHash<String,Object>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


14841
14842
14843
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14841

def 
  @metadata
end

#snippetString

Corresponds to the JSON property snippet

Returns:

  • (String)


14846
14847
14848
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14846

def snippet
  @snippet
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


14851
14852
14853
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14851

def title
  @title
end

#uriString

Corresponds to the JSON property uri

Returns:

  • (String)


14856
14857
14858
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14856

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14863
14864
14865
14866
14867
14868
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14863

def update!(**args)
  @metadata = args[:metadata] if args.key?(:metadata)
  @snippet = args[:snippet] if args.key?(:snippet)
  @title = args[:title] if args.key?(:title)
  @uri = args[:uri] if args.key?(:uri)
end