public sealed class SessionEntityType : IMessage<SessionEntityType>, IEquatable<SessionEntityType>, IDeepCloneable<SessionEntityType>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API 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.
Required. The unique identifier of this session entity type. Supported
formats:
projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity
Type Display Name>
projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session
ID>/entityTypes/<Entity Type Display Name>
projects/<Project ID>/agent/environments/<Environment ID>/users/<User
ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
projects/<Project ID>/locations/<Location ID>/agent/environments/
<Environment ID>/users/<User ID>/sessions/<Session
ID>/entityTypes/<Entity Type Display Name>
If Location ID is not specified we assume default 'us' location. 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eSessionEntityType\u003c/code\u003e class in the Google Cloud Dialogflow v2beta1 API represents a special type of entity that exists only during a specific conversation session.\u003c/p\u003e\n"],["\u003cp\u003eSession entities can either extend or replace custom entity types within a session, and they are stored by Dialogflow for a duration of 20 minutes.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, enabling various operations and comparisons.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eSessionEntityType\u003c/code\u003e include \u003ccode\u003eEntities\u003c/code\u003e, a collection of entities associated with the session entity type, \u003ccode\u003eEntityOverrideMode\u003c/code\u003e, indicating whether to override or supplement the custom entity type, and \u003ccode\u003eName\u003c/code\u003e, the unique identifier of the session entity type.\u003c/p\u003e\n"],["\u003cp\u003eThe class also provides constructor options to create a \u003ccode\u003eSessionEntityType\u003c/code\u003e object, either as a new object or by copying from another existing \u003ccode\u003eSessionEntityType\u003c/code\u003e instance.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dialogflow v2beta1 API - Class SessionEntityType (1.0.0-beta23)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta23 (latest)](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SessionEntityType)\n- [1.0.0-beta22](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/1.0.0-beta22/Google.Cloud.Dialogflow.V2Beta1.SessionEntityType) \n\n public sealed class SessionEntityType : IMessage\u003cSessionEntityType\u003e, IEquatable\u003cSessionEntityType\u003e, IDeepCloneable\u003cSessionEntityType\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class SessionEntityType.\n\nA session represents a conversation between a Dialogflow agent and an\nend-user. You can create special entities, called session entities, during a\nsession. Session entities can extend or replace custom entity types and only\nexist during the session that they were created for. All session data,\nincluding session entities, is stored by Dialogflow for 20 minutes.\n\nFor more information, see the [session entity\nguide](https://cloud.google.com/dialogflow/docs/entities-session). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SessionEntityType \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SessionEntityType](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SessionEntityType), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SessionEntityType](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SessionEntityType), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SessionEntityType](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SessionEntityType), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dialogflow.V2Beta1](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.Dialogflow.V2Beta1.dll\n\nConstructors\n------------\n\n### SessionEntityType()\n\n public SessionEntityType()\n\n### SessionEntityType(SessionEntityType)\n\n public SessionEntityType(SessionEntityType other)\n\nProperties\n----------\n\n### Entities\n\n public RepeatedField\u003cEntityType.Types.Entity\u003e Entities { get; }\n\nRequired. The collection of entities associated with this session entity\ntype.\n\n### EntityOverrideMode\n\n public SessionEntityType.Types.EntityOverrideMode EntityOverrideMode { get; set; }\n\nRequired. Indicates whether the additional data should override or\nsupplement the custom entity type definition.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The unique identifier of this session entity type. Supported\nformats:\n\n- `projects/\u003cProject ID\u003e/agent/sessions/\u003cSession ID\u003e/entityTypes/\u003cEntity\n Type Display Name\u003e`\n- `projects/\u003cProject ID\u003e/locations/\u003cLocation ID\u003e/agent/sessions/\u003cSession\n ID\u003e/entityTypes/\u003cEntity Type Display Name\u003e`\n- `projects/\u003cProject ID\u003e/agent/environments/\u003cEnvironment ID\u003e/users/\u003cUser\n ID\u003e/sessions/\u003cSession ID\u003e/entityTypes/\u003cEntity Type Display Name\u003e`\n- `projects/\u003cProject ID\u003e/locations/\u003cLocation ID\u003e/agent/environments/\n \u003cEnvironment ID\u003e/users/\u003cUser ID\u003e/sessions/\u003cSession\n ID\u003e/entityTypes/\u003cEntity Type Display Name\u003e`\n\nIf `Location ID` is not specified we assume default 'us' location. If\n`Environment ID` is not specified, we assume default 'draft' environment.\nIf `User ID` is not specified, we assume default '-' user.\n`\u003cEntity Type Display Name\u003e` must be the display name of an existing entity\ntype in the same agent that will be overridden or supplemented.\n\n### SessionEntityTypeName\n\n public SessionEntityTypeName SessionEntityTypeName { get; set; }\n\n[SessionEntityTypeName](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SessionEntityTypeName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SessionEntityType#Google_Cloud_Dialogflow_V2Beta1_SessionEntityType_Name) resource name property."]]