Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1IntentParameter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentParameter

Returns a new instance of GoogleCloudDialogflowV2beta1IntentParameter.



19658
19659
19660
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19658

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

Instance Attribute Details

#default_valueString

Corresponds to the JSON property defaultValue

Returns:

  • (String)


19619
19620
19621
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19619

def default_value
  @default_value
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


19624
19625
19626
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19624

def display_name
  @display_name
end

#entity_type_display_nameString

Corresponds to the JSON property entityTypeDisplayName

Returns:

  • (String)


19629
19630
19631
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19629

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)


19634
19635
19636
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19634

def is_list
  @is_list
end

#mandatoryBoolean Also known as: mandatory?

Corresponds to the JSON property mandatory

Returns:

  • (Boolean)


19640
19641
19642
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19640

def mandatory
  @mandatory
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


19646
19647
19648
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19646

def name
  @name
end

#promptsArray<String>

Corresponds to the JSON property prompts

Returns:

  • (Array<String>)


19651
19652
19653
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19651

def prompts
  @prompts
end

#valueString

Corresponds to the JSON property value

Returns:

  • (String)


19656
19657
19658
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19656

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19663

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