Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolFunctionTool
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolFunctionTool
- 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
A Function tool describes the functions to be invoked on the client side.
Instance Attribute Summary collapse
-
#input_schema ⇒ Hash<String,Object>
Optional.
-
#method_type ⇒ String
Optional.
-
#output_schema ⇒ Hash<String,Object>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2ToolFunctionTool
constructor
A new instance of GoogleCloudDialogflowV2ToolFunctionTool.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2ToolFunctionTool
Returns a new instance of GoogleCloudDialogflowV2ToolFunctionTool.
19249 19250 19251 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19249 def initialize(**args) update!(**args) end |
Instance Attribute Details
#input_schema ⇒ Hash<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
19234 19235 19236 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19234 def input_schema @input_schema end |
#method_type ⇒ String
Optional. The method type of the function. If not specified, the default value
is GET.
Corresponds to the JSON property methodType
19240 19241 19242 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19240 def method_type @method_type end |
#output_schema ⇒ Hash<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
19247 19248 19249 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19247 def output_schema @output_schema end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19254 19255 19256 19257 19258 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19254 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 |