Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase

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

Returns a new instance of GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase.



5041
5042
5043
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5041

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

Instance Attribute Details

#idString

Corresponds to the JSON property id

Returns:

  • (String)


5029
5030
5031
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5029

def id
  @id
end

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

Corresponds to the JSON property parts



5034
5035
5036
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5034

def parts
  @parts
end

#repeat_countFixnum

Corresponds to the JSON property repeatCount

Returns:

  • (Fixnum)


5039
5040
5041
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5039

def repeat_count
  @repeat_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5046
5047
5048
5049
5050
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5046

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