# Google Cloud Domains V1 Client - Class Contact (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 Contact.

Details required for a contact associated with a `Registration`.

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

## Namespace

Google \\ Cloud \\ Domains \\ V1 \\ ContactSettings

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ postal_address` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.PostalAddress.html` Required. Postal address of the contact. |
| `↳ email` | `string` Required. Email address of the contact. |
| `↳ phone_number` | `string` Required. Phone number of the contact in international format. For example, `"+1-800-555-0123"`. |
| `↳ fax_number` | `string` Fax number of the contact in international format. For example, `"+1-800-555-0123"`. |

### getPostalAddress

Required. Postal address of the contact.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.PostalAddress.html|null` |   |

### hasPostalAddress

### clearPostalAddress

### setPostalAddress

Required. Postal address of the contact.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.PostalAddress.html` |

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

### getEmail

Required. Email address of the contact.

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

### setEmail

Required. Email address of the contact.

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

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

### getPhoneNumber

Required. Phone number of the contact in international format. For example,
`"+1-800-555-0123"`.

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

### setPhoneNumber

Required. Phone number of the contact in international format. For example,
`"+1-800-555-0123"`.

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

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

### getFaxNumber

Fax number of the contact in international format. For example,
`"+1-800-555-0123"`.

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

### setFaxNumber

Fax number of the contact in international format. For example,
`"+1-800-555-0123"`.

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

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