public sealed class CreateSessionRequest : IMessage<CreateSessionRequest>, IEquatable<CreateSessionRequest>, IDeepCloneable<CreateSessionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class CreateSessionRequest.
[[["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-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCreateSessionRequest\u003c/code\u003e class is part of the Google Cloud Discovery Engine v1 API, with version 1.6.0 being the latest release, and it serves as a request object for the \u003ccode\u003eCreateSession\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and 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, which provides capabilities for message handling, equality comparisons, deep cloning, and buffered message operations.\u003c/p\u003e\n"],["\u003cp\u003eIt contains properties \u003ccode\u003eParent\u003c/code\u003e, a string representing the full resource name of the parent data store, and \u003ccode\u003eSession\u003c/code\u003e, which is a required \u003ccode\u003eSession\u003c/code\u003e object to be created.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes two constructors, a default constructor \u003ccode\u003eCreateSessionRequest()\u003c/code\u003e and a copy constructor \u003ccode\u003eCreateSessionRequest(CreateSessionRequest other)\u003c/code\u003e that allows for creating a new instance from an existing \u003ccode\u003eCreateSessionRequest\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eParentAsDataStoreName\u003c/code\u003e property provides a \u003ccode\u003eDataStoreName\u003c/code\u003e-typed view over the \u003ccode\u003eParent\u003c/code\u003e resource name property, for the purpose of working with the resource name in an object oriented way.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class CreateSessionRequest (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateSessionRequest)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.CreateSessionRequest)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.CreateSessionRequest)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.CreateSessionRequest)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.CreateSessionRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.CreateSessionRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.CreateSessionRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.CreateSessionRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.CreateSessionRequest)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.CreateSessionRequest) \n\n public sealed class CreateSessionRequest : IMessage\u003cCreateSessionRequest\u003e, IEquatable\u003cCreateSessionRequest\u003e, IDeepCloneable\u003cCreateSessionRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class CreateSessionRequest.\n\nRequest for CreateSession method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateSessionRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateSessionRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateSessionRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateSessionRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateSessionRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateSessionRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateSessionRequest), [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.DiscoveryEngine.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.dll\n\nConstructors\n------------\n\n### CreateSessionRequest()\n\n public CreateSessionRequest()\n\n### CreateSessionRequest(CreateSessionRequest)\n\n public CreateSessionRequest(CreateSessionRequest other)\n\nProperties\n----------\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. Full resource name of parent data store. Format:\n`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`\n\n### ParentAsDataStoreName\n\n public DataStoreName ParentAsDataStoreName { get; set; }\n\n[DataStoreName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DataStoreName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateSessionRequest#Google_Cloud_DiscoveryEngine_V1_CreateSessionRequest_Parent) resource name property.\n\n### Session\n\n public Session Session { get; set; }\n\nRequired. The session to create."]]