Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1IntentTrainingPhrase

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentTrainingPhrase

Returns a new instance of GoogleCloudDialogflowV2beta1IntentTrainingPhrase.



21251
21252
21253
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 21251

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

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


21234
21235
21236
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 21234

def name
  @name
end

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

Corresponds to the JSON property parts



21239
21240
21241
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 21239

def parts
  @parts
end

#times_added_countFixnum

Corresponds to the JSON property timesAddedCount

Returns:

  • (Fixnum)


21244
21245
21246
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 21244

def times_added_count
  @times_added_count
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


21249
21250
21251
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 21249

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21256
21257
21258
21259
21260
21261
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 21256

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