# Google Cloud Data Catalog V1 Client - Class CreateTaxonomyRequest (2.4.2)

2.4.2 (latest) 2.4.1 2.3.2 2.2.4 2.1.0 2.0.2 1.10.3 1.9.1 1.8.2 1.7.1 1.6.0 1.5.1 1.4.2 1.3.9 Reference documentation and code samples for the Google Cloud Data Catalog V1 Client class CreateTaxonomyRequest.

Request message for
[CreateTaxonomy](https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.Client.PolicyTagManagerClient#_Google_Cloud_DataCatalog_V1_Client_PolicyTagManagerClient__createTaxonomy__).

Generated from protobuf message `google.cloud.datacatalog.v1.CreateTaxonomyRequest`

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Resource name of the project that the taxonomy will belong to. |
| `↳ taxonomy` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.Taxonomy` The taxonomy to create. |

### getParent

Required. Resource name of the project that the taxonomy will belong to.

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

### setParent

Required. Resource name of the project that the taxonomy will belong to.

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

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

### getTaxonomy

The taxonomy to create.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.Taxonomy|null` |   |

### hasTaxonomy

### clearTaxonomy

### setTaxonomy

The taxonomy to create.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.Taxonomy` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Resource name of the project that the taxonomy will belong to. Please see PolicyTagManagerClient::locationName() for help formatting this field. |
| `taxonomy` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.Taxonomy` The taxonomy to create. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.CreateTaxonomyRequest` |   |