# Google Cloud Backup Dr V1 Client - Class GetDataSourceReferenceRequest (0.13.0)

0.13.0 (latest) 0.12.1 0.11.1 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class GetDataSourceReferenceRequest.

Request for the GetDataSourceReference method.

Generated from protobuf message `google.cloud.backupdr.v1.GetDataSourceReferenceRequest`

## Namespace

Google \\ Cloud \\ BackupDR \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the DataSourceReference to retrieve. Format: projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference} |

### getName

Required. The name of the DataSourceReference to retrieve.

Format:
projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}

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

### setName

Required. The name of the DataSourceReference to retrieve.

Format:
projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the DataSourceReference to retrieve. Format: projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference} Please see BackupDRClient::dataSourceReferenceName() for help formatting this field. |

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