Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentParameter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentParameter

Returns a new instance of GoogleCloudDialogflowV2beta1IntentParameter.



17077
17078
17079
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17077

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

Instance Attribute Details

#default_valueString

Corresponds to the JSON property defaultValue

Returns:

  • (String)


17038
17039
17040
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17038

def default_value
  @default_value
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


17043
17044
17045
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17043

def display_name
  @display_name
end

#entity_type_display_nameString

Corresponds to the JSON property entityTypeDisplayName

Returns:

  • (String)


17048
17049
17050
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17048

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)


17053
17054
17055
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17053

def is_list
  @is_list
end

#mandatoryBoolean Also known as: mandatory?

Corresponds to the JSON property mandatory

Returns:

  • (Boolean)


17059
17060
17061
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17059

def mandatory
  @mandatory
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


17065
17066
17067
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17065

def name
  @name
end

#promptsArray<String>

Corresponds to the JSON property prompts

Returns:

  • (Array<String>)


17070
17071
17072
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17070

def prompts
  @prompts
end

#valueString

Corresponds to the JSON property value

Returns:

  • (String)


17075
17076
17077
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17075

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17082

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