# Google Cloud Essential Contacts V1 Client - Class CreateContactRequest (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.4.5 0.3.4 0.2.13 Reference documentation and code samples for the Google Cloud Essential Contacts V1 Client class CreateContactRequest.

Request message for the CreateContact method.

Generated from protobuf message `google.cloud.essentialcontacts.v1.CreateContactRequest`

## Namespace

Google \\ Cloud \\ EssentialContacts \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The resource to save this contact for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id} |
| `↳ contact` | `https://docs.cloud.google.com/php/docs/reference/cloud-essential-contacts/latest/V1.Contact` Required. The contact to create. Must specify an email address and language tag. |

### getParent

Required. The resource to save this contact for.

Format: organizations/{organization_id}, folders/{folder_id} or
projects/{project_id}

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

### setParent

Required. The resource to save this contact for.

Format: organizations/{organization_id}, folders/{folder_id} or
projects/{project_id}

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

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

### getContact

Required. The contact to create. Must specify an email address and language
tag.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-essential-contacts/latest/V1.Contact|null` |   |

### hasContact

### clearContact

### setContact

Required. The contact to create. Must specify an email address and language
tag.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-essential-contacts/latest/V1.Contact` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The resource to save this contact for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id} Please see EssentialContactsServiceClient::projectName() for help formatting this field. |
| `contact` | `https://docs.cloud.google.com/php/docs/reference/cloud-essential-contacts/latest/V1.Contact` Required. The contact to create. Must specify an email address and language tag. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-essential-contacts/latest/V1.CreateContactRequest` |   |