Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SessionEntityType
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SessionEntityType
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dialogflow_v2beta1/classes.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb
Overview
Represents a session entity type. Extends or replaces 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.
Instance Attribute Summary collapse
-
#entities ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2EntityTypeEntity>
Required.
-
#entity_override_mode ⇒ String
Required.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2SessionEntityType
constructor
A new instance of GoogleCloudDialogflowV2SessionEntityType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2SessionEntityType
Returns a new instance of GoogleCloudDialogflowV2SessionEntityType.
1963 1964 1965 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1963 def initialize(**args) update!(**args) end |
Instance Attribute Details
#entities ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2EntityTypeEntity>
Required. The collection of entities associated with this session entity
type.
Corresponds to the JSON property entities
1946 1947 1948 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1946 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
1952 1953 1954 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1952 def entity_override_mode @entity_override_mode end |
#name ⇒ String
Required. The unique identifier of this session entity type. Format:
projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
Display Name>
.
<Entity Type Display Name>
must be the display name of an existing entity
type in the same agent that will be overridden or supplemented.
Corresponds to the JSON property name
1961 1962 1963 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1961 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1968 1969 1970 1971 1972 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1968 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 |