Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentTrainingPhrase

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentTrainingPhrase

Returns a new instance of GoogleCloudDialogflowV2IntentTrainingPhrase.



15577
15578
15579
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15577

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

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


15560
15561
15562
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15560

def name
  @name
end

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

Corresponds to the JSON property parts



15565
15566
15567
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15565

def parts
  @parts
end

#times_added_countFixnum

Corresponds to the JSON property timesAddedCount

Returns:

  • (Fixnum)


15570
15571
15572
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15570

def times_added_count
  @times_added_count
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


15575
15576
15577
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15575

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15582
15583
15584
15585
15586
15587
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15582

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