Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentParameter
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentParameter
- 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
-
#default_value ⇒ String
Corresponds to the JSON property
defaultValue. -
#display_name ⇒ String
Corresponds to the JSON property
displayName. -
#entity_type_display_name ⇒ String
Corresponds to the JSON property
entityTypeDisplayName. -
#is_list ⇒ Boolean
(also: #is_list?)
Corresponds to the JSON property
isList. -
#mandatory ⇒ Boolean
(also: #mandatory?)
Corresponds to the JSON property
mandatory. -
#name ⇒ String
Corresponds to the JSON property
name. -
#prompts ⇒ Array<String>
Corresponds to the JSON property
prompts. -
#value ⇒ String
Corresponds to the JSON property
value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentParameter
constructor
A new instance of GoogleCloudDialogflowV2IntentParameter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentParameter
Returns a new instance of GoogleCloudDialogflowV2IntentParameter.
12951 12952 12953 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12951 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_value ⇒ String
Corresponds to the JSON property defaultValue
12912 12913 12914 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12912 def default_value @default_value end |
#display_name ⇒ String
Corresponds to the JSON property displayName
12917 12918 12919 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12917 def display_name @display_name end |
#entity_type_display_name ⇒ String
Corresponds to the JSON property entityTypeDisplayName
12922 12923 12924 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12922 def entity_type_display_name @entity_type_display_name end |
#is_list ⇒ Boolean Also known as: is_list?
Corresponds to the JSON property isList
12927 12928 12929 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12927 def is_list @is_list end |
#mandatory ⇒ Boolean Also known as: mandatory?
Corresponds to the JSON property mandatory
12933 12934 12935 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12933 def mandatory @mandatory end |
#name ⇒ String
Corresponds to the JSON property name
12939 12940 12941 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12939 def name @name end |
#prompts ⇒ Array<String>
Corresponds to the JSON property prompts
12944 12945 12946 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12944 def prompts @prompts end |
#value ⇒ String
Corresponds to the JSON property value
12949 12950 12951 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12949 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12956 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 |