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

Request message for
CreateEntryGroup.

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

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

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

### getParent

Required. The names of the project and location that the new entry group
belongs to.

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

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

### setParent

Required. The names of the project and location that the new entry group
belongs to.

Note: The entry group 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` |   |

### getEntryGroupId

Required. The ID of the entry group to create.

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

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

### setEntryGroupId

Required. The ID of the entry group to create.

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

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

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

### getEntryGroup

The entry group to create. Defaults to empty.

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

### hasEntryGroup

### clearEntryGroup

### setEntryGroup

The entry group to create. Defaults to empty.

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

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

### static::build

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

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