Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentTrainingPhrase
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentTrainingPhrase
- 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
-
#name ⇒ String
Corresponds to the JSON property
name. -
#parts ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart>
Corresponds to the JSON property
parts. -
#times_added_count ⇒ Fixnum
Corresponds to the JSON property
timesAddedCount. -
#type ⇒ String
Corresponds to the JSON property
type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentTrainingPhrase
constructor
A new instance of GoogleCloudDialogflowV2beta1IntentTrainingPhrase.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentTrainingPhrase
Returns a new instance of GoogleCloudDialogflowV2beta1IntentTrainingPhrase.
20765 20766 20767 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20765 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Corresponds to the JSON property name
20748 20749 20750 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20748 def name @name end |
#parts ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart>
Corresponds to the JSON property parts
20753 20754 20755 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20753 def parts @parts end |
#times_added_count ⇒ Fixnum
Corresponds to the JSON property timesAddedCount
20758 20759 20760 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20758 def times_added_count @times_added_count end |
#type ⇒ String
Corresponds to the JSON property type
20763 20764 20765 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20763 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
20770 20771 20772 20773 20774 20775 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20770 def update!(**args) @name = args[:name] if args.key?(:name) @parts = args[:parts] if args.key?(:parts) @times_added_count = args[:times_added_count] if args.key?(:times_added_count) @type = args[:type] if args.key?(:type) end |