Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageSelectItemInfo

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

Returns a new instance of GoogleCloudDialogflowV2IntentMessageSelectItemInfo.



12707
12708
12709
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12707

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

Instance Attribute Details

#keyString

Corresponds to the JSON property key

Returns:

  • (String)


12700
12701
12702
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12700

def key
  @key
end

#synonymsArray<String>

Corresponds to the JSON property synonyms

Returns:

  • (Array<String>)


12705
12706
12707
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12705

def synonyms
  @synonyms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12712
12713
12714
12715
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12712

def update!(**args)
  @key = args[:key] if args.key?(:key)
  @synonyms = args[:synonyms] if args.key?(:synonyms)
end