Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentTrainingPhrase
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentTrainingPhrase
- 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::GoogleCloudDialogflowV2IntentTrainingPhrasePart>
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) ⇒ GoogleCloudDialogflowV2IntentTrainingPhrase
constructor
A new instance of GoogleCloudDialogflowV2IntentTrainingPhrase.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentTrainingPhrase
Returns a new instance of GoogleCloudDialogflowV2IntentTrainingPhrase.
13056 13057 13058 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13056 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Corresponds to the JSON property name
13039 13040 13041 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13039 def name @name end |
#parts ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentTrainingPhrasePart>
Corresponds to the JSON property parts
13044 13045 13046 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13044 def parts @parts end |
#times_added_count ⇒ Fixnum
Corresponds to the JSON property timesAddedCount
13049 13050 13051 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13049 def times_added_count @times_added_count end |
#type ⇒ String
Corresponds to the JSON property type
13054 13055 13056 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13054 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13061 13062 13063 13064 13065 13066 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13061 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 |