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.



19763
19764
19765
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19763

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

Instance Attribute Details

#default_valueString

Corresponds to the JSON property defaultValue

Returns:

  • (String)


19724
19725
19726
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19724

def default_value
  @default_value
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


19729
19730
19731
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19729

def display_name
  @display_name
end

#entity_type_display_nameString

Corresponds to the JSON property entityTypeDisplayName

Returns:

  • (String)


19734
19735
19736
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19734

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)


19739
19740
19741
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19739

def is_list
  @is_list
end

#mandatoryBoolean Also known as: mandatory?

Corresponds to the JSON property mandatory

Returns:

  • (Boolean)


19745
19746
19747
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19745

def mandatory
  @mandatory
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


19751
19752
19753
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19751

def name
  @name
end

#promptsArray<String>

Corresponds to the JSON property prompts

Returns:

  • (Array<String>)


19756
19757
19758
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19756

def prompts
  @prompts
end

#valueString

Corresponds to the JSON property value

Returns:

  • (String)


19761
19762
19763
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19761

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19768

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