Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ParameterDefinition

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

Overview

Defines the properties of a parameter. Used to define parameters used in the agent and the input / output parameters for each fulfillment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1ParameterDefinition

Returns a new instance of GoogleCloudDialogflowCxV3beta1ParameterDefinition.



10546
10547
10548
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10546

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

Instance Attribute Details

#descriptionString

Human-readable description of the parameter. Limited to 300 characters. Corresponds to the JSON property description

Returns:

  • (String)


10528
10529
10530
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10528

def description
  @description
end

#nameString

Required. Name of parameter. Corresponds to the JSON property name

Returns:

  • (String)


10533
10534
10535
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10533

def name
  @name
end

#typeString

Type of parameter. Corresponds to the JSON property type

Returns:

  • (String)


10538
10539
10540
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10538

def type
  @type
end

#type_schemaGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TypeSchema

Encapsulates different type schema variations: either a reference to an a schema that's already defined by a tool, or an inline definition. Corresponds to the JSON property typeSchema



10544
10545
10546
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10544

def type_schema
  @type_schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10551
10552
10553
10554
10555
10556
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10551

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