2.6.0 (latest) 2.5.4 2.3.1 2.2.1 2.1.5 2.0.0 1.10.4 1.9.0 1.8.0 1.7.1 1.6.0 1.5.0 1.4.1 1.3.2 1.2.12 Reference documentation and code samples for the Google BigQuery Storage V1 Client class GetWriteStreamRequest.

Request message for `GetWriteStreamRequest`.

Generated from protobuf message `google.cloud.bigquery.storage.v1.GetWriteStreamRequest`

## Namespace

Google \\ Cloud \\ BigQuery \\ Storage \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Name of the stream to get, in the form of `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`. |
| `↳ view` | `int` Indicates whether to get full or partial view of the WriteStream. If not set, view returned will be basic. |

### getName

Required. Name of the stream to get, in the form of
`projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.

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

### setName

Required. Name of the stream to get, in the form of
`projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.

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

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

### getView

Indicates whether to get full or partial view of the WriteStream. If
not set, view returned will be basic.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [WriteStreamView](https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-storage/latest/V1.WriteStreamView). |

### setView

Indicates whether to get full or partial view of the WriteStream. If
not set, view returned will be basic.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [WriteStreamView](https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-storage/latest/V1.WriteStreamView). |

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the stream to get, in the form of `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`. Please see BigQueryWriteClient::writeStreamName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-storage/latest/V1.GetWriteStreamRequest` |   |