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

Overview

A Function tool describes the functions to be invoked on the client side.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1ToolFunctionTool

Returns a new instance of GoogleCloudDialogflowV2beta1ToolFunctionTool.



23951
23952
23953
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23951

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

Instance Attribute Details

#input_schemaHash<String,Object>

Optional. The JSON schema is encapsulated in a google.protobuf.Struct to describe the input of the function. This input is a JSON object that contains the function's parameters as properties of the object. Corresponds to the JSON property inputSchema

Returns:

  • (Hash<String,Object>)


23936
23937
23938
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23936

def input_schema
  @input_schema
end

#method_typeString

Optional. The method type of the function. If not specified, the default value is GET. Corresponds to the JSON property methodType

Returns:

  • (String)


23942
23943
23944
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23942

def method_type
  @method_type
end

#output_schemaHash<String,Object>

Optional. The JSON schema is encapsulated in a google.protobuf.Struct to describe the output of the function. This output is a JSON object that contains the function's parameters as properties of the object. Corresponds to the JSON property outputSchema

Returns:

  • (Hash<String,Object>)


23949
23950
23951
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23949

def output_schema
  @output_schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23956
23957
23958
23959
23960
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23956

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