Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentParameter

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

Returns a new instance of GoogleCloudDialogflowV2IntentParameter.



9205
9206
9207
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9205

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

Instance Attribute Details

#default_valueString

Corresponds to the JSON property defaultValue

Returns:

  • (String)


9166
9167
9168
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9166

def default_value
  @default_value
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


9171
9172
9173
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9171

def display_name
  @display_name
end

#entity_type_display_nameString

Corresponds to the JSON property entityTypeDisplayName

Returns:

  • (String)


9176
9177
9178
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9176

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)


9181
9182
9183
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9181

def is_list
  @is_list
end

#mandatoryBoolean Also known as: mandatory?

Corresponds to the JSON property mandatory

Returns:

  • (Boolean)


9187
9188
9189
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9187

def mandatory
  @mandatory
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


9193
9194
9195
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9193

def name
  @name
end

#promptsArray<String>

Corresponds to the JSON property prompts

Returns:

  • (Array<String>)


9198
9199
9200
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9198

def prompts
  @prompts
end

#valueString

Corresponds to the JSON property value

Returns:

  • (String)


9203
9204
9205
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9203

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9210

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