# Google Cloud Data Catalog V1 Client - Class CreateEntryRequest (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 CreateEntryRequest.

Request message for
CreateEntry.

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

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The name of the entry group this entry belongs to. Note: The entry itself and its child resources might not be stored in the location specified in its name. |
| `↳ entry_id` | `string` Required. The ID of the entry to create. The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores (_). The maximum size is 64 bytes when encoded in UTF-8. |
| `↳ entry` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.Entry` Required. The entry to create. |

### getParent

Required. The name of the entry group this entry belongs to.

Note: The entry itself and its child resources might not be stored in
the location specified in its name.

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

### setParent

Required. The name of the entry group this entry belongs to.

Note: The entry itself and its child resources might not be stored in
the location specified in its name.

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

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

### getEntryId

Required. The ID of the entry to create.

The ID must contain only letters (a-z, A-Z), numbers (0-9),
and underscores (_).
The maximum size is 64 bytes when encoded in UTF-8.

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

### setEntryId

Required. The ID of the entry to create.

The ID must contain only letters (a-z, A-Z), numbers (0-9),
and underscores (_).
The maximum size is 64 bytes when encoded in UTF-8.

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

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

### getEntry

Required. The entry to create.

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

### hasEntry

### clearEntry

### setEntry

Required. The entry to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The name of the entry group this entry belongs to. Note: The entry itself and its child resources might not be stored in the location specified in its name. Please see DataCatalogClient::entryGroupName() for help formatting this field. |
| `entryId` | `string` Required. The ID of the entry to create. The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores (_). The maximum size is 64 bytes when encoded in UTF-8. |
| `entry` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.Entry` Required. The entry to create. |

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