# Google Cloud Device Streaming V1 Client - Class GetDeviceSessionRequest (0.2.4)

0.2.4 (latest) 0.2.3 0.1.1 Reference documentation and code samples for the Google Cloud Device Streaming V1 Client class GetDeviceSessionRequest.

Request message for DirectAccessService.GetDeviceSession.

Generated from protobuf message `google.cloud.devicestreaming.v1.GetDeviceSessionRequest`

## Namespace

Google \\ Cloud \\ DeviceStreaming \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}" |

### getName

Required. Name of the DeviceSession, e.g.

"projects/{project_id}/deviceSessions/{session_id}"

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Required. Name of the DeviceSession, e.g.

"projects/{project_id}/deviceSessions/{session_id}"

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}" Please see DirectAccessServiceClient::deviceSessionName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-devicestreaming/latest/V1.GetDeviceSessionRequest` |   |