# Google Cloud BigQuery Analytics Hub V1 Client - Class SelectedResource (1.5.1)

1.5.1 (latest) 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.4 0.5.3 0.4.0 0.3.2 0.2.2 0.1.6 Reference documentation and code samples for the Google Cloud BigQuery Analytics Hub V1 Client class SelectedResource.

Resource in this dataset that is selectively shared.

Generated from protobuf message `google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource`

## Namespace

Google \\ Cloud \\ BigQuery \\ AnalyticsHub \\ V1 \\ Listing \\ BigQueryDatasetSource

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ table` | `string` Optional. Format: For table: `projects/{projectId}/datasets/{datasetId}/tables/{tableId}` Example:"projects/test_project/datasets/test_dataset/tables/test_table" |
| `↳ routine` | `string` Optional. Format: For routine: `projects/{projectId}/datasets/{datasetId}/routines/{routineId}` Example:"projects/test_project/datasets/test_dataset/routines/test_routine" |

### getTable

Optional. Format:
For table:
`projects/{projectId}/datasets/{datasetId}/tables/{tableId}`
Example:"projects/test_project/datasets/test_dataset/tables/test_table"

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

### hasTable

### setTable

Optional. Format:
For table:
`projects/{projectId}/datasets/{datasetId}/tables/{tableId}`
Example:"projects/test_project/datasets/test_dataset/tables/test_table"

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

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

### getRoutine

Optional. Format:
For routine:
`projects/{projectId}/datasets/{datasetId}/routines/{routineId}`
Example:"projects/test_project/datasets/test_dataset/routines/test_routine"

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

### hasRoutine

### setRoutine

Optional. Format:
For routine:
`projects/{projectId}/datasets/{datasetId}/routines/{routineId}`
Example:"projects/test_project/datasets/test_dataset/routines/test_routine"

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

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

### getResource

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