Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2IntentTrainingPhrase

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

Returns a new instance of GoogleCloudDialogflowV2IntentTrainingPhrase.



16988
16989
16990
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16988

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

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


16971
16972
16973
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16971

def name
  @name
end

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

Corresponds to the JSON property parts



16976
16977
16978
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16976

def parts
  @parts
end

#times_added_countFixnum

Corresponds to the JSON property timesAddedCount

Returns:

  • (Fixnum)


16981
16982
16983
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16981

def times_added_count
  @times_added_count
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


16986
16987
16988
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16986

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16993
16994
16995
16996
16997
16998
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16993

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