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

Message for subscribing to a listing.

Generated from protobuf message `google.cloud.bigquery.analyticshub.v1.SubscribeListingRequest`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ destination_dataset` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-analyticshub/latest/V1.DestinationDataset` Input only. BigQuery destination dataset to create for the subscriber. |
| `↳ destination_pubsub_subscription` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-analyticshub/latest/V1.DestinationPubSubSubscription` Input only. Destination Pub/Sub subscription to create for the subscriber. |
| `↳ name` | `string` Required. Resource name of the listing that you want to subscribe to. e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`. |

### getDestinationDataset

Input only. BigQuery destination dataset to create for the subscriber.

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

### hasDestinationDataset

### setDestinationDataset

Input only. BigQuery destination dataset to create for the subscriber.

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

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

### getDestinationPubsubSubscription

Input only. Destination Pub/Sub subscription to create for the
subscriber.

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

### hasDestinationPubsubSubscription

### setDestinationPubsubSubscription

Input only. Destination Pub/Sub subscription to create for the
subscriber.

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

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

### getName

Required. Resource name of the listing that you want to subscribe to.

e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.

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

### setName

Required. Resource name of the listing that you want to subscribe to.

e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.

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

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

### getDestination

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Resource name of the listing that you want to subscribe to. e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`. Please see AnalyticsHubServiceClient::listingName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-analyticshub/latest/V1.SubscribeListingRequest` |   |