Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolExtensionTool

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

Overview

An ExtensionTool is a way to use Vertex Extensions as a tool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ToolExtensionTool

Returns a new instance of GoogleCloudDialogflowV2ToolExtensionTool.



19215
19216
19217
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19215

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

Instance Attribute Details

#nameString

Required. The full name of the referenced vertex extension. Format: projects/ project/locations/location/extensions/extension` Corresponds to the JSON propertyname`

Returns:

  • (String)


19213
19214
19215
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19213

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19220
19221
19222
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19220

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