0.34.0 (latest) 0.33.0 0.31.0 0.28.0 0.27.0 0.25.0 0.23.0 0.22.0 0.21.0 0.20.0 0.18.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.10.0 0.8.0 0.7.0 0.4.0 0.3.0 0.2.0

    public interface CreateDeviceSessionRequestOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getDeviceSession()

    public abstract DeviceSession getDeviceSession()

Required. A DeviceSession to create.

`
.google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-devicestreaming/latest/com.google.cloud.devicestreaming.v1.DeviceSession` | The deviceSession. |

### getDeviceSessionId()

    public abstract String getDeviceSessionId()

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-/.

`string device_session_id = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The deviceSessionId. |

### getDeviceSessionIdBytes()

    public abstract ByteString getDeviceSessionIdBytes()

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-/.

`string device_session_id = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for deviceSessionId. |

### getDeviceSessionOrBuilder()

    public abstract DeviceSessionOrBuilder getDeviceSessionOrBuilder()

Required. A DeviceSession to create.

`
.google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-devicestreaming/latest/com.google.cloud.devicestreaming.v1.DeviceSessionOrBuilder` |   |

### getParent()

    public abstract String getParent()

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

`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The parent. |

### getParentBytes()

    public abstract ByteString getParentBytes()

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

`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for parent. |

### hasDeviceSession()

    public abstract boolean hasDeviceSession()

Required. A DeviceSession to create.

`
.google.cloud.devicestreaming.v1.DeviceSession device_session = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the deviceSession field is set. |