Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentTrainingPhrase

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentTrainingPhrase

Returns a new instance of GoogleCloudDialogflowV2beta1IntentTrainingPhrase.



20722
20723
20724
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20722

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

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


20705
20706
20707
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20705

def name
  @name
end

#partsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart>

Corresponds to the JSON property parts



20710
20711
20712
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20710

def parts
  @parts
end

#times_added_countFixnum

Corresponds to the JSON property timesAddedCount

Returns:

  • (Fixnum)


20715
20716
20717
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20715

def times_added_count
  @times_added_count
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


20720
20721
20722
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20720

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20727
20728
20729
20730
20731
20732
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20727

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