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

Message for creating a listing.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource path of the listing. e.g. `projects/myproject/locations/us/dataExchanges/123`. |
| `↳ listing_id` | `string` Required. The ID of the listing to create. Must contain only Unicode letters, numbers (0-9), underscores (_). Max length: 100 bytes. |
| `↳ listing` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-analyticshub/latest/V1.Listing` Required. The listing to create. |

### getParent

Required. The parent resource path of the listing.

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

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

### setParent

Required. The parent resource path of the listing.

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

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

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

### getListingId

Required. The ID of the listing to create.

Must contain only Unicode letters, numbers (0-9), underscores (_).
Max length: 100 bytes.

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

### setListingId

Required. The ID of the listing to create.

Must contain only Unicode letters, numbers (0-9), underscores (_).
Max length: 100 bytes.

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

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

### getListing

Required. The listing to create.

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

### hasListing

### clearListing

### setListing

Required. The listing to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource path of the listing. e.g. `projects/myproject/locations/us/dataExchanges/123`. Please see AnalyticsHubServiceClient::dataExchangeName() for help formatting this field. |
| `listing` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-analyticshub/latest/V1.Listing` Required. The listing to create. |

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