Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolFunctionTool

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1ToolFunctionTool

Returns a new instance of GoogleCloudDialogflowV2beta1ToolFunctionTool.



22177
22178
22179
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22177

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

Instance Attribute Details

#input_schemaHash<String,Object>

Corresponds to the JSON property inputSchema

Returns:

  • (Hash<String,Object>)


22165
22166
22167
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22165

def input_schema
  @input_schema
end

#method_typeString

Corresponds to the JSON property methodType

Returns:

  • (String)


22170
22171
22172
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22170

def method_type
  @method_type
end

#output_schemaHash<String,Object>

Corresponds to the JSON property outputSchema

Returns:

  • (Hash<String,Object>)


22175
22176
22177
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22175

def output_schema
  @output_schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22182
22183
22184
22185
22186
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22182

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