public sealed class SessionTemplate : IMessage<SessionTemplate>, IEquatable<SessionTemplate>, IDeepCloneable<SessionTemplate>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dataproc v1 API class SessionTemplate.
Optional. Labels to associate with sessions created using this template.
Label keys must contain 1 to 63 characters, and must conform to
RFC 1035.
Label values can be empty, but, if present, must contain 1 to 63
characters and conform to RFC
1035. No more than 32 labels can be
associated with a session.
[[["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."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eSessionTemplate\u003c/code\u003e class within the Google Cloud Dataproc v1 API is version 5.17.0, which can be found under the \u003ca href=\"https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html\"\u003e/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionTemplate\u003c/a\u003e path.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSessionTemplate\u003c/code\u003e is a representation of a session template 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, inheriting members like \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e from the object class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSessionTemplate\u003c/code\u003e class includes properties such as \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eCreator\u003c/code\u003e, \u003ccode\u003eDescription\u003c/code\u003e, \u003ccode\u003eEnvironmentConfig\u003c/code\u003e, and many others, allowing detailed configuration and tracking of session template characteristics, including labels and associated configurations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSessionTemplate\u003c/code\u003e class also allows for the specification of different configurations for session execution, including configurations for \u003ccode\u003eJupyterSession\u003c/code\u003e, \u003ccode\u003eRuntimeConfig\u003c/code\u003e, and \u003ccode\u003eSparkConnectSession\u003c/code\u003e, enhancing the versatility of session template management.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dataproc v1 API - Class SessionTemplate (5.20.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.20.0 (latest)](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.19.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.19.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.18.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.18.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.17.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.17.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.16.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.16.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.15.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.15.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.14.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.14.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.13.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.13.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.12.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.12.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.11.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.11.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.10.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.10.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.9.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.9.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.8.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.8.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.7.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.7.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.6.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.6.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.5.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.5.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.4.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.4.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.3.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.3.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.2.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.2.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.1.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.1.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.0.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/4.0.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.4.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.3.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.2.0/Google.Cloud.Dataproc.V1.SessionTemplate)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.1.0/Google.Cloud.Dataproc.V1.SessionTemplate) \n\n public sealed class SessionTemplate : IMessage\u003cSessionTemplate\u003e, IEquatable\u003cSessionTemplate\u003e, IDeepCloneable\u003cSessionTemplate\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dataproc v1 API class SessionTemplate.\n\nA representation of a session template. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SessionTemplate \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SessionTemplate](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionTemplate), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SessionTemplate](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionTemplate), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SessionTemplate](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionTemplate), [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.Dataproc.V1](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Dataproc.V1.dll\n\nConstructors\n------------\n\n### SessionTemplate()\n\n public SessionTemplate()\n\n### SessionTemplate(SessionTemplate)\n\n public SessionTemplate(SessionTemplate other)\n\nProperties\n----------\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. The time when the template was created.\n\n### Creator\n\n public string Creator { get; set; }\n\nOutput only. The email address of the user who created the template.\n\n### Description\n\n public string Description { get; set; }\n\nOptional. Brief description of the template.\n\n### EnvironmentConfig\n\n public EnvironmentConfig EnvironmentConfig { get; set; }\n\nOptional. Environment configuration for session execution.\n\n### JupyterSession\n\n public JupyterConfig JupyterSession { get; set; }\n\nOptional. Jupyter session config.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nOptional. Labels to associate with sessions created using this template.\nLabel **keys** must contain 1 to 63 characters, and must conform to\n[RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).\nLabel **values** can be empty, but, if present, must contain 1 to 63\ncharacters and conform to [RFC\n1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be\nassociated with a session.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The resource name of the session template.\n\n### RuntimeConfig\n\n public RuntimeConfig RuntimeConfig { get; set; }\n\nOptional. Runtime configuration for session execution.\n\n### SessionConfigCase\n\n public SessionTemplate.SessionConfigOneofCase SessionConfigCase { get; }\n\n### SessionTemplateName\n\n public SessionTemplateName SessionTemplateName { get; set; }\n\n[SessionTemplateName](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionTemplateName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionTemplate#Google_Cloud_Dataproc_V1_SessionTemplate_Name) resource name property.\n\n### SparkConnectSession\n\n public SparkConnectConfig SparkConnectSession { get; set; }\n\nOptional. Spark Connect session config.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. The time the template was last updated.\n\n### Uuid\n\n public string Uuid { get; set; }\n\nOutput only. A session template UUID (Unique Universal Identifier). The\nservice generates this value when it creates the session template."]]