Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentTrainingPhrasePart

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentTrainingPhrasePart

Returns a new instance of GoogleCloudDialogflowV2IntentTrainingPhrasePart.



13101
13102
13103
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13101

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

Instance Attribute Details

#aliasString

Corresponds to the JSON property alias

Returns:

  • (String)


13083
13084
13085
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13083

def alias
  @alias
end

#entity_typeString

Corresponds to the JSON property entityType

Returns:

  • (String)


13088
13089
13090
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13088

def entity_type
  @entity_type
end

#textString

Corresponds to the JSON property text

Returns:

  • (String)


13093
13094
13095
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13093

def text
  @text
end

#user_definedBoolean Also known as: user_defined?

Corresponds to the JSON property userDefined

Returns:

  • (Boolean)


13098
13099
13100
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13098

def user_defined
  @user_defined
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13106
13107
13108
13109
13110
13111
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13106

def update!(**args)
  @alias = args[:alias] if args.key?(:alias)
  @entity_type = args[:entity_type] if args.key?(:entity_type)
  @text = args[:text] if args.key?(:text)
  @user_defined = args[:user_defined] if args.key?(:user_defined)
end