Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionEntityType

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v3beta1/classes.rb,
generated/google/apis/dialogflow_v3beta1/representations.rb,
generated/google/apis/dialogflow_v3beta1/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1SessionEntityType

Returns a new instance of GoogleCloudDialogflowCxV3beta1SessionEntityType.



5834
5835
5836
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 5834

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

Instance Attribute Details

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

Required. The collection of entities to override or supplement the custom entity type. Corresponds to the JSON property entities



5818
5819
5820
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 5818

def entities
  @entities
end

#entity_override_modeString

Required. Indicates whether the additional data should override or supplement the custom entity type definition. Corresponds to the JSON property entityOverrideMode

Returns:

  • (String)


5824
5825
5826
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 5824

def entity_override_mode
  @entity_override_mode
end

#nameString

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

Returns:

  • (String)


5832
5833
5834
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 5832

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5839
5840
5841
5842
5843
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 5839

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