Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2IntentTrainingPhrase
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2IntentTrainingPhrase
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb
Instance Attribute Summary collapse
-
#name ⇒ String
Corresponds to the JSON property
name. -
#parts ⇒ Array<Google::Apis::DialogflowV3beta1::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.
16988 16989 16990 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16988 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Corresponds to the JSON property name
16971 16972 16973 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16971 def name @name end |
#parts ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2IntentTrainingPhrasePart>
Corresponds to the JSON property parts
16976 16977 16978 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16976 def parts @parts end |
#times_added_count ⇒ Fixnum
Corresponds to the JSON property timesAddedCount
16981 16982 16983 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16981 def times_added_count @times_added_count end |
#type ⇒ String
Corresponds to the JSON property type
16986 16987 16988 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16986 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16993 16994 16995 16996 16997 16998 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16993 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 |