Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuerySearchContext

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

Returns a new instance of GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuerySearchContext.



20942
20943
20944
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20942

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

Instance Attribute Details

#keyString

Corresponds to the JSON property key

Returns:

  • (String)


20935
20936
20937
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20935

def key
  @key
end

#valueString

Corresponds to the JSON property value

Returns:

  • (String)


20940
20941
20942
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20940

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20947
20948
20949
20950
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20947

def update!(**args)
  @key = args[:key] if args.key?(:key)
  @value = args[:value] if args.key?(:value)
end