Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb
Overview
Session entity types are referred to as User entity types and are entities that are built for an individual user such as favorites, preferences, playlists, and so on. You can redefine a session entity type at the session level to extend or replace a custom entity type at the user session level (we refer to the entity types defined at the agent level as "custom entity types"). Note: session entity types apply to all queries, regardless of the language. For more information about entity types, see the Dialogflow documentation.
Instance Attribute Summary collapse
-
#entities ⇒ Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityTypeEntity>
Required.
-
#entity_override_mode ⇒ String
Required.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3SessionEntityType
constructor
A new instance of GoogleCloudDialogflowCxV3SessionEntityType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3SessionEntityType
Returns a new instance of GoogleCloudDialogflowCxV3SessionEntityType.
4938 4939 4940 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4938 def initialize(**args) update!(**args) end |
Instance Attribute Details
#entities ⇒ Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityTypeEntity>
Required. The collection of entities to override or supplement the custom
entity type.
Corresponds to the JSON property entities
4922 4923 4924 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4922 def entities @entities end |
#entity_override_mode ⇒ String
Required. Indicates whether the additional data should override or supplement
the custom entity type definition.
Corresponds to the JSON property entityOverrideMode
4928 4929 4930 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4928 def entity_override_mode @entity_override_mode end |
#name ⇒ String
Required. The unique identifier of the session entity type. Format: projects//
locations//agents//sessions//entityTypes/ or projects//locations//agents//
environments//sessions//entityTypes/. If Environment ID is not specified,
we assume default 'draft' environment.
Corresponds to the JSON property name
4936 4937 4938 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4936 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4943 4944 4945 4946 4947 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4943 def update!(**args) @entities = args[:entities] if args.key?(:entities) @entity_override_mode = args[:entity_override_mode] if args.key?(:entity_override_mode) @name = args[:name] if args.key?(:name) end |