Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolUse

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

Returns a new instance of GoogleCloudDialogflowCxV3ToolUse.



8404
8405
8406
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8404

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


8382
8383
8384
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8382

def action
  @action
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


8387
8388
8389
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8387

def display_name
  @display_name
end

#input_action_parametersHash<String,Object>

Corresponds to the JSON property inputActionParameters

Returns:

  • (Hash<String,Object>)


8392
8393
8394
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8392

def input_action_parameters
  @input_action_parameters
end

#output_action_parametersHash<String,Object>

Corresponds to the JSON property outputActionParameters

Returns:

  • (Hash<String,Object>)


8397
8398
8399
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8397

def output_action_parameters
  @output_action_parameters
end

#toolString

Corresponds to the JSON property tool

Returns:

  • (String)


8402
8403
8404
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8402

def tool
  @tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8409
8410
8411
8412
8413
8414
8415
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8409

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @display_name = args[:display_name] if args.key?(:display_name)
  @input_action_parameters = args[:input_action_parameters] if args.key?(:input_action_parameters)
  @output_action_parameters = args[:output_action_parameters] if args.key?(:output_action_parameters)
  @tool = args[:tool] if args.key?(:tool)
end