Class SessionEntityType
A session represents a conversation between a Dialogflow agent and an end-user. You can create special entities, called session entities, during a session. Session entities can extend or replace custom entity types and only exist during the session that they were created for. All session data, including session entities, is stored by Dialogflow for 20 minutes.
For more information, see the session entity guide.
Implements
Namespace: Google.Cloud.Dialogflow.V2
Assembly: Google.Cloud.Dialogflow.V2.dll
Syntax
public sealed class SessionEntityType : IMessage<SessionEntityType>, IEquatable<SessionEntityType>, IDeepCloneable<SessionEntityType>, IBufferMessage, IMessage
Constructors
SessionEntityType()
Declaration
public SessionEntityType()
SessionEntityType(SessionEntityType)
Declaration
public SessionEntityType(SessionEntityType other)
Parameters
Type | Name | Description |
---|---|---|
SessionEntityType | other |
Properties
Entities
Required. The collection of entities associated with this session entity type.
Declaration
public RepeatedField<EntityType.Types.Entity> Entities { get; }
Property Value
Type | Description |
---|---|
RepeatedField<EntityType.Types.Entity> |
EntityOverrideMode
Required. Indicates whether the additional data should override or supplement the custom entity type definition.
Declaration
public SessionEntityType.Types.EntityOverrideMode EntityOverrideMode { get; set; }
Property Value
Type | Description |
---|---|
SessionEntityType.Types.EntityOverrideMode |
Name
Required. The unique identifier of this session entity type. Format:
projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
, or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
.
If Environment ID
is not specified, we assume default 'draft'
environment. If User ID
is not specified, we assume default '-' user.
<Entity Type Display Name>
must be the display name of an existing entity
type in the same agent that will be overridden or supplemented.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
SessionEntityTypeName
SessionEntityTypeName-typed view over the Name resource name property.
Declaration
public SessionEntityTypeName SessionEntityTypeName { get; set; }
Property Value
Type | Description |
---|---|
SessionEntityTypeName |