Device Streaming v1 API - Class CreateDeviceSessionRequest (1.0.0-beta01)
Stay organized with collections
Save and categorize content based on your preferences.
public sealed class CreateDeviceSessionRequest : IMessage<CreateDeviceSessionRequest>, IEquatable<CreateDeviceSessionRequest>, IDeepCloneable<CreateDeviceSessionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Device Streaming v1 API class CreateDeviceSessionRequest.
Request message for DirectAccessService.CreateDeviceSession.
[[["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."],[],[],null,["# Device Streaming v1 API - Class CreateDeviceSessionRequest (1.0.0-beta01)\n\n public sealed class CreateDeviceSessionRequest : IMessage\u003cCreateDeviceSessionRequest\u003e, IEquatable\u003cCreateDeviceSessionRequest\u003e, IDeepCloneable\u003cCreateDeviceSessionRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Device Streaming v1 API class CreateDeviceSessionRequest.\n\nRequest message for DirectAccessService.CreateDeviceSession. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateDeviceSessionRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateDeviceSessionRequest](/dotnet/docs/reference/Google.Cloud.DeviceStreaming.V1/latest/Google.Cloud.DeviceStreaming.V1.CreateDeviceSessionRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateDeviceSessionRequest](/dotnet/docs/reference/Google.Cloud.DeviceStreaming.V1/latest/Google.Cloud.DeviceStreaming.V1.CreateDeviceSessionRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateDeviceSessionRequest](/dotnet/docs/reference/Google.Cloud.DeviceStreaming.V1/latest/Google.Cloud.DeviceStreaming.V1.CreateDeviceSessionRequest), [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.DeviceStreaming.V1](/dotnet/docs/reference/Google.Cloud.DeviceStreaming.V1/latest/Google.Cloud.DeviceStreaming.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DeviceStreaming.V1.dll\n\nConstructors\n------------\n\n### CreateDeviceSessionRequest()\n\n public CreateDeviceSessionRequest()\n\n### CreateDeviceSessionRequest(CreateDeviceSessionRequest)\n\n public CreateDeviceSessionRequest(CreateDeviceSessionRequest other)\n\nProperties\n----------\n\n### DeviceSession\n\n public DeviceSession DeviceSession { get; set; }\n\nRequired. A DeviceSession to create.\n\n### DeviceSessionId\n\n public string DeviceSessionId { get; set; }\n\nOptional. The ID to use for the DeviceSession, which will become the final\ncomponent of the DeviceSession's resource name.\n\nThis value should be 4-63 characters, and valid characters\nare /\\[a-z\\]\\[0-9\\]-/.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The Compute Engine project under which this device will be\nallocated. \"projects/{project_id}\"\n\n### ParentAsProjectName\n\n public ProjectName ParentAsProjectName { get; set; }\n\n[ProjectName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.DeviceStreaming.V1/latest/Google.Cloud.DeviceStreaming.V1.CreateDeviceSessionRequest#Google_Cloud_DeviceStreaming_V1_CreateDeviceSessionRequest_Parent) resource name property."]]