Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3IntentTrainingPhrase
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3IntentTrainingPhrase
- 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
-
#id ⇒ String
Corresponds to the JSON property
id. -
#parts ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3IntentTrainingPhrasePart>
Corresponds to the JSON property
parts. -
#repeat_count ⇒ Fixnum
Corresponds to the JSON property
repeatCount.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3IntentTrainingPhrase
constructor
A new instance of GoogleCloudDialogflowCxV3IntentTrainingPhrase.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3IntentTrainingPhrase
Returns a new instance of GoogleCloudDialogflowCxV3IntentTrainingPhrase.
1661 1662 1663 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1661 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Corresponds to the JSON property id
1649 1650 1651 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1649 def id @id end |
#parts ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3IntentTrainingPhrasePart>
Corresponds to the JSON property parts
1654 1655 1656 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1654 def parts @parts end |
#repeat_count ⇒ Fixnum
Corresponds to the JSON property repeatCount
1659 1660 1661 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1659 def repeat_count @repeat_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1666 1667 1668 1669 1670 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 1666 def update!(**args) @id = args[:id] if args.key?(:id) @parts = args[:parts] if args.key?(:parts) @repeat_count = args[:repeat_count] if args.key?(:repeat_count) end |