# Google Cloud Datastream V1 Client - Class RunStreamRequest (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.0 2.1.1 2.0.1 1.5.5 1.4.2 1.3.0 1.2.1 1.1.0 1.0.5 Reference documentation and code samples for the Google Cloud Datastream V1 Client class RunStreamRequest.

Request message for running a stream.

Generated from protobuf message `google.cloud.datastream.v1.RunStreamRequest`

## Namespace

Google \\ Cloud \\ Datastream \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Name of the stream resource to start, in the format: projects/{project_id}/locations/{location}/streams/{stream_name} |
| `↳ cdc_strategy` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.CdcStrategy` Optional. The CDC strategy of the stream. If not set, the system's default value will be used. |
| `↳ force` | `bool` Optional. Update the stream without validating it. |

### getName

Required. Name of the stream resource to start, in the format:
projects/{project_id}/locations/{location}/streams/{stream_name}

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

### setName

Required. Name of the stream resource to start, in the format:
projects/{project_id}/locations/{location}/streams/{stream_name}

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

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

### getCdcStrategy

Optional. The CDC strategy of the stream. If not set, the system's default
value will be used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.CdcStrategy|null` |   |

### hasCdcStrategy

### clearCdcStrategy

### setCdcStrategy

Optional. The CDC strategy of the stream. If not set, the system's default
value will be used.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.CdcStrategy` |

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

### getForce

Optional. Update the stream without validating it.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setForce

Optional. Update the stream without validating it.

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

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