Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3IntentTrainingPhrase

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) ⇒ GoogleCloudDialogflowCxV3IntentTrainingPhrase

Returns a new instance of GoogleCloudDialogflowCxV3IntentTrainingPhrase.



4583
4584
4585
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4583

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

Instance Attribute Details

#idString

Corresponds to the JSON property id

Returns:

  • (String)


4571
4572
4573
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4571

def id
  @id
end

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

Corresponds to the JSON property parts



4576
4577
4578
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4576

def parts
  @parts
end

#repeat_countFixnum

Corresponds to the JSON property repeatCount

Returns:

  • (Fixnum)


4581
4582
4583
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4581

def repeat_count
  @repeat_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4588
4589
4590
4591
4592
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4588

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @parts = args[:parts] if args.key?(:parts)
  @repeat_count = args[:repeat_count] if args.key?(:repeat_count)
end