1.1.0 (latest) 1.0.0

    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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CreateDeviceSessionRequest

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[CreateDeviceSessionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeviceStreaming.V1/latest/Google.Cloud.DeviceStreaming.V1.CreateDeviceSessionRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateDeviceSessionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeviceStreaming.V1/latest/Google.Cloud.DeviceStreaming.V1.CreateDeviceSessionRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[CreateDeviceSessionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeviceStreaming.V1/latest/Google.Cloud.DeviceStreaming.V1.CreateDeviceSessionRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DeviceStreaming.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeviceStreaming.V1/latest/Google.Cloud.DeviceStreaming.V1.md.txt)

## Assembly

Google.Cloud.DeviceStreaming.V1.dll

## Constructors

### CreateDeviceSessionRequest()

    public CreateDeviceSessionRequest()

### CreateDeviceSessionRequest(CreateDeviceSessionRequest)

    public CreateDeviceSessionRequest(CreateDeviceSessionRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `CreateDeviceSessionRequest` |

## Properties

### DeviceSession

    public DeviceSession DeviceSession { get; set; }

Required. A DeviceSession to create.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DeviceSession` |   |

### DeviceSessionId

    public string DeviceSessionId { get; set; }

Optional. The ID to use for the DeviceSession, which will become the final
component of the DeviceSession's resource name.

This value should be 4-63 characters, and valid characters
are /\[a-z\]\[0-9\]-/.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Parent

    public string Parent { get; set; }

Required. The Compute Engine project under which this device will be
allocated. "projects/{project_id}"

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ParentAsProjectName

    public ProjectName ParentAsProjectName { get; set; }

[ProjectName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.md.txt)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeviceStreaming.V1/latest/Google.Cloud.DeviceStreaming.V1.CreateDeviceSessionRequest.md.txt#Google_Cloud_DeviceStreaming_V1_CreateDeviceSessionRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ProjectName` |   |