Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentParameter

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) ⇒ GoogleCloudDialogflowV2beta1IntentParameter

Returns a new instance of GoogleCloudDialogflowV2beta1IntentParameter.



20513
20514
20515
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20513

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

Instance Attribute Details

#default_valueString

Corresponds to the JSON property defaultValue

Returns:

  • (String)


20474
20475
20476
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20474

def default_value
  @default_value
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


20479
20480
20481
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20479

def display_name
  @display_name
end

#entity_type_display_nameString

Corresponds to the JSON property entityTypeDisplayName

Returns:

  • (String)


20484
20485
20486
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20484

def entity_type_display_name
  @entity_type_display_name
end

#is_listBoolean Also known as: is_list?

Corresponds to the JSON property isList

Returns:

  • (Boolean)


20489
20490
20491
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20489

def is_list
  @is_list
end

#mandatoryBoolean Also known as: mandatory?

Corresponds to the JSON property mandatory

Returns:

  • (Boolean)


20495
20496
20497
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20495

def mandatory
  @mandatory
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


20501
20502
20503
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20501

def name
  @name
end

#promptsArray<String>

Corresponds to the JSON property prompts

Returns:

  • (Array<String>)


20506
20507
20508
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20506

def prompts
  @prompts
end

#valueString

Corresponds to the JSON property value

Returns:

  • (String)


20511
20512
20513
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20511

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20518

def update!(**args)
  @default_value = args[:default_value] if args.key?(:default_value)
  @display_name = args[:display_name] if args.key?(:display_name)
  @entity_type_display_name = args[:entity_type_display_name] if args.key?(:entity_type_display_name)
  @is_list = args[:is_list] if args.key?(:is_list)
  @mandatory = args[:mandatory] if args.key?(:mandatory)
  @name = args[:name] if args.key?(:name)
  @prompts = args[:prompts] if args.key?(:prompts)
  @value = args[:value] if args.key?(:value)
end