public virtual Task<Session> UpdateSession(UpdateSessionRequest request, ServerCallContext context)
Updates a Session.
[Session][google.cloud.discoveryengine.v1.Session] action type cannot be
changed. If the [Session][google.cloud.discoveryengine.v1.Session] to
update does not exist, a NOT_FOUND error is returned.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Discovery Engine v1 API - Class SessionService.SessionServiceBase (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.SessionService.SessionServiceBase)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.SessionService.SessionServiceBase)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.SessionService.SessionServiceBase)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.SessionService.SessionServiceBase)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.SessionService.SessionServiceBase)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.SessionService.SessionServiceBase)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.SessionService.SessionServiceBase)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.SessionService.SessionServiceBase)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.SessionService.SessionServiceBase)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.SessionService.SessionServiceBase) \n\n [BindServiceMethod(typeof(SessionService), \"BindService\")]\n public abstract class SessionService.SessionServiceBase\n\nReference documentation and code samples for the Discovery Engine v1 API class SessionService.SessionServiceBase.\n\nBase class for server-side implementations of SessionService \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SessionService.SessionServiceBase \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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \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\nMethods\n-------\n\n### CreateSession(CreateSessionRequest, ServerCallContext)\n\n public virtual Task\u003cSession\u003e CreateSession(CreateSessionRequest request, ServerCallContext context)\n\nCreates a Session.\n\nIf the \\[Session\\]\\[google.cloud.discoveryengine.v1.Session\\] to create already\nexists, an ALREADY_EXISTS error is returned.\n\n### DeleteSession(DeleteSessionRequest, ServerCallContext)\n\n public virtual Task\u003cEmpty\u003e DeleteSession(DeleteSessionRequest request, ServerCallContext context)\n\nDeletes a Session.\n\nIf the \\[Session\\]\\[google.cloud.discoveryengine.v1.Session\\] to delete does\nnot exist, a NOT_FOUND error is returned.\n\n### GetSession(GetSessionRequest, ServerCallContext)\n\n public virtual Task\u003cSession\u003e GetSession(GetSessionRequest request, ServerCallContext context)\n\nGets a Session.\n\n### ListSessions(ListSessionsRequest, ServerCallContext)\n\n public virtual Task\u003cListSessionsResponse\u003e ListSessions(ListSessionsRequest request, ServerCallContext context)\n\nLists all Sessions by their parent\n\\[DataStore\\]\\[google.cloud.discoveryengine.v1.DataStore\\].\n\n### UpdateSession(UpdateSessionRequest, ServerCallContext)\n\n public virtual Task\u003cSession\u003e UpdateSession(UpdateSessionRequest request, ServerCallContext context)\n\nUpdates a Session.\n\n\\[Session\\]\\[google.cloud.discoveryengine.v1.Session\\] action type cannot be\nchanged. If the \\[Session\\]\\[google.cloud.discoveryengine.v1.Session\\] to\nupdate does not exist, a NOT_FOUND error is returned."]]