# Google Cloud Datastream V1 Client - Class SourceHierarchyDatasets (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 SourceHierarchyDatasets.

Destination datasets are created so that hierarchy of the destination data
objects matches the source hierarchy.

Generated from protobuf message `google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets`

## Namespace

Google \\ Cloud \\ Datastream \\ V1 \\ BigQueryDestinationConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ dataset_template` | `https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate` The dataset template to use for dynamic dataset creation. |
| `↳ project_id` | `string` Optional. The project id of the BigQuery dataset. If not specified, the project will be inferred from the stream resource. |

### getDatasetTemplate

The dataset template to use for dynamic dataset creation.

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

### hasDatasetTemplate

### clearDatasetTemplate

### setDatasetTemplate

The dataset template to use for dynamic dataset creation.

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

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

### getProjectId

Optional. The project id of the BigQuery dataset. If not specified, the
project will be inferred from the stream resource.

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

### hasProjectId

### clearProjectId

### setProjectId

Optional. The project id of the BigQuery dataset. If not specified, the
project will be inferred from the stream resource.

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

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