Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentParameter

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

Returns a new instance of GoogleCloudDialogflowV2IntentParameter.



12965
12966
12967
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12965

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

Instance Attribute Details

#default_valueString

Corresponds to the JSON property defaultValue

Returns:

  • (String)


12926
12927
12928
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12926

def default_value
  @default_value
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


12931
12932
12933
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12931

def display_name
  @display_name
end

#entity_type_display_nameString

Corresponds to the JSON property entityTypeDisplayName

Returns:

  • (String)


12936
12937
12938
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12936

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)


12941
12942
12943
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12941

def is_list
  @is_list
end

#mandatoryBoolean Also known as: mandatory?

Corresponds to the JSON property mandatory

Returns:

  • (Boolean)


12947
12948
12949
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12947

def mandatory
  @mandatory
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


12953
12954
12955
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12953

def name
  @name
end

#promptsArray<String>

Corresponds to the JSON property prompts

Returns:

  • (Array<String>)


12958
12959
12960
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12958

def prompts
  @prompts
end

#valueString

Corresponds to the JSON property value

Returns:

  • (String)


12963
12964
12965
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12963

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12970

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