Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityType

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

Overview

Entities are extracted from user input and represent parameters that are meaningful to your application. For example, a date range, a proper name such as a geographic location or landmark, and so on. Entities represent actionable data for your application. When you define an entity, you can also include synonyms that all map to that entity. For example, "soft drink", "soda", "pop", and so on. There are three types of entities: * System - entities that are defined by the Dialogflow API for common data types such as date, time, currency, and so on. A system entity is represented by the EntityType type. * Custom - entities that are defined by you that represent actionable data that is meaningful to your application. For example, you could define a pizza. sauce entity for red or white pizza sauce, a pizza.cheese entity for the different types of cheese on a pizza, a pizza.topping entity for different toppings, and so on. A custom entity is represented by the EntityType type. * User - entities that are built for an individual user such as favorites, preferences, playlists, and so on. A user entity is represented by the SessionEntityType type. For more information about entity types, see the Dialogflow documentation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1EntityType

Returns a new instance of GoogleCloudDialogflowCxV3beta1EntityType.



6070
6071
6072
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6070

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

Instance Attribute Details

#auto_expansion_modeString

Indicates whether the entity type can be automatically expanded. Corresponds to the JSON property autoExpansionMode

Returns:

  • (String)


6024
6025
6026
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6024

def auto_expansion_mode
  @auto_expansion_mode
end

#display_nameString

Required. The human-readable name of the entity type, unique within the agent. Corresponds to the JSON property displayName

Returns:

  • (String)


6029
6030
6031
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6029

def display_name
  @display_name
end

#enable_fuzzy_extractionBoolean Also known as: enable_fuzzy_extraction?

Enables fuzzy entity extraction during classification. Corresponds to the JSON property enableFuzzyExtraction

Returns:

  • (Boolean)


6034
6035
6036
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6034

def enable_fuzzy_extraction
  @enable_fuzzy_extraction
end

#entitiesArray<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityTypeEntity>

The collection of entity entries associated with the entity type. Corresponds to the JSON property entities



6040
6041
6042
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6040

def entities
  @entities
end

#excluded_phrasesArray<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase>

Collection of exceptional words and phrases that shouldn't be matched. For example, if you have a size entity type with entry giant(an adjective), you might consider adding giants(a noun) as an exclusion. If the kind of entity type is KIND_MAP, then the phrases specified by entities and excluded phrases should be mutually exclusive. Corresponds to the JSON property excludedPhrases



6049
6050
6051
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6049

def excluded_phrases
  @excluded_phrases
end

#kindString

Required. Indicates the kind of entity type. Corresponds to the JSON property kind

Returns:

  • (String)


6054
6055
6056
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6054

def kind
  @kind
end

#nameString

The unique identifier of the entity type. Required for EntityTypes. UpdateEntityType. Format: projects//locations//agents//entityTypes/. Corresponds to the JSON property name

Returns:

  • (String)


6060
6061
6062
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6060

def name
  @name
end

#redactBoolean Also known as: redact?

Indicates whether parameters of the entity type should be redacted in log. If redaction is enabled, page parameters and intent parameters referring to the entity type will be replaced by parameter name during logging. Corresponds to the JSON property redact

Returns:

  • (Boolean)


6067
6068
6069
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6067

def redact
  @redact
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 6075

def update!(**args)
  @auto_expansion_mode = args[:auto_expansion_mode] if args.key?(:auto_expansion_mode)
  @display_name = args[:display_name] if args.key?(:display_name)
  @enable_fuzzy_extraction = args[:enable_fuzzy_extraction] if args.key?(:enable_fuzzy_extraction)
  @entities = args[:entities] if args.key?(:entities)
  @excluded_phrases = args[:excluded_phrases] if args.key?(:excluded_phrases)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @redact = args[:redact] if args.key?(:redact)
end