Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentTrainingPhrase
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentTrainingPhrase
- 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
-
#name ⇒ String
Corresponds to the JSON property
name. -
#parts ⇒ Array<Google::Apis::DialogflowV2beta1::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.
16858 16859 16860 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16858 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Corresponds to the JSON property name
16841 16842 16843 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16841 def name @name end |
#parts ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart>
Corresponds to the JSON property parts
16846 16847 16848 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16846 def parts @parts end |
#times_added_count ⇒ Fixnum
Corresponds to the JSON property timesAddedCount
16851 16852 16853 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16851 def times_added_count @times_added_count end |
#type ⇒ String
Corresponds to the JSON property type
16856 16857 16858 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16856 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16863 16864 16865 16866 16867 16868 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16863 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 |