# Google Cloud BigQuery Analytics Hub V1 Client - Class LinkedResource (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 LinkedResource.

Reference to a linked resource tracked by this Subscription.

Generated from protobuf message `google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource`

## Namespace

Google \\ Cloud \\ BigQuery \\ AnalyticsHub \\ V1 \\ Subscription

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ linked_dataset` | `string` Output only. Name of the linked dataset, e.g. projects/subscriberproject/datasets/linked_dataset |
| `↳ linked_pubsub_subscription` | `string` Output only. Name of the Pub/Sub subscription, e.g. projects/subscriberproject/subscriptions/subscriptions/sub_id |
| `↳ listing` | `string` Output only. Listing for which linked resource is created. |

### getLinkedDataset

Output only. Name of the linked dataset, e.g.

projects/subscriberproject/datasets/linked_dataset

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

### hasLinkedDataset

### setLinkedDataset

Output only. Name of the linked dataset, e.g.

projects/subscriberproject/datasets/linked_dataset

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

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

### getLinkedPubsubSubscription

Output only. Name of the Pub/Sub subscription, e.g.

projects/subscriberproject/subscriptions/subscriptions/sub_id

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

### hasLinkedPubsubSubscription

### setLinkedPubsubSubscription

Output only. Name of the Pub/Sub subscription, e.g.

projects/subscriberproject/subscriptions/subscriptions/sub_id

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

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

### getListing

Output only. Listing for which linked resource is created.

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

### setListing

Output only. Listing for which linked resource is created.

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

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

### getReference

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