Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolFunctionTool

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ToolFunctionTool

Returns a new instance of GoogleCloudDialogflowV2ToolFunctionTool.



17379
17380
17381
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17379

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

Instance Attribute Details

#input_schemaHash<String,Object>

Corresponds to the JSON property inputSchema

Returns:

  • (Hash<String,Object>)


17367
17368
17369
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17367

def input_schema
  @input_schema
end

#method_typeString

Corresponds to the JSON property methodType

Returns:

  • (String)


17372
17373
17374
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17372

def method_type
  @method_type
end

#output_schemaHash<String,Object>

Corresponds to the JSON property outputSchema

Returns:

  • (Hash<String,Object>)


17377
17378
17379
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17377

def output_schema
  @output_schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17384
17385
17386
17387
17388
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17384

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