# Google Cloud Domains V1 Client - Class ContactSettings (1.1.3)

1.1.3 (latest) 1.1.2 1.0.4 0.5.5 0.4.2 0.3.1 0.2.11 Reference documentation and code samples for the Google Cloud Domains V1 Client class ContactSettings.

Defines the contact information associated with a `Registration`.

[ICANN](https://icann.org/) requires all domain names to have associated
contact information. The `registrant_contact` is considered the
domain's legal owner, and often the other contacts are identical.

Generated from protobuf message `google.cloud.domains.v1.ContactSettings`

## Namespace

Google \\ Cloud \\ Domains \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ privacy` | `int` Required. Privacy setting for the contacts associated with the `Registration`. |
| `↳ registrant_contact` | `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.ContactSettings.Contact` Required. The registrant contact for the `Registration`. *Caution: Anyone with access to this email address, phone number, and/or postal address can take control of the domain.* *Warning: For new `Registration`s, the registrant receives an email confirmation that they must complete within 15 days to avoid domain suspension.* |
| `↳ admin_contact` | `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.ContactSettings.Contact` Required. The administrative contact for the `Registration`. |
| `↳ technical_contact` | `https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.ContactSettings.Contact` Required. The technical contact for the `Registration`. |

### getPrivacy

Required. Privacy setting for the contacts associated with the `Registration`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ContactPrivacy](https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.ContactPrivacy). |

### setPrivacy

Required. Privacy setting for the contacts associated with the `Registration`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ContactPrivacy](https://docs.cloud.google.com/php/docs/reference/cloud-domains/latest/V1.ContactPrivacy). |

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

### getRegistrantContact

Required. The registrant contact for the `Registration`.

*Caution: Anyone with access to this email address, phone number,
and/or postal address can take control of the domain.*
*Warning: For new `Registration`s, the registrant receives an email
confirmation that they must complete within 15 days to avoid domain
suspension.*

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

### hasRegistrantContact

### clearRegistrantContact

### setRegistrantContact

Required. The registrant contact for the `Registration`.

*Caution: Anyone with access to this email address, phone number,
and/or postal address can take control of the domain.*
*Warning: For new `Registration`s, the registrant receives an email
confirmation that they must complete within 15 days to avoid domain
suspension.*

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

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

### getAdminContact

Required. The administrative contact for the `Registration`.

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

### hasAdminContact

### clearAdminContact

### setAdminContact

Required. The administrative contact for the `Registration`.

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

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

### getTechnicalContact

Required. The technical contact for the `Registration`.

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

### hasTechnicalContact

### clearTechnicalContact

### setTechnicalContact

Required. The technical contact for the `Registration`.

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

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