Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentTrainingPhrase

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentTrainingPhrase

Returns a new instance of GoogleCloudDialogflowV2IntentTrainingPhrase.



9234
9235
9236
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9234

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


9217
9218
9219
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9217

def name
  @name
end

#partsArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentTrainingPhrasePart>

Corresponds to the JSON property parts



9222
9223
9224
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9222

def parts
  @parts
end

#times_added_countFixnum

Corresponds to the JSON property timesAddedCount

Returns:

  • (Fixnum)


9227
9228
9229
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9227

def times_added_count
  @times_added_count
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


9232
9233
9234
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9232

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9239
9240
9241
9242
9243
9244
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 9239

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