Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction

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

Overview

Setting a parameter value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction

Returns a new instance of GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction.



10217
10218
10219
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 10217

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

Instance Attribute Details

#parameterString

Display name of the parameter. Corresponds to the JSON property parameter

Returns:

  • (String)


10210
10211
10212
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 10210

def parameter
  @parameter
end

#valueObject

The new value of the parameter. A null value clears the parameter. Corresponds to the JSON property value

Returns:

  • (Object)


10215
10216
10217
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 10215

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10222
10223
10224
10225
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 10222

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