# Google Cloud Recaptcha Enterprise V1 Client - Class Address (2.3.1)

2.3.1 (latest) 2.3.0 2.2.1 2.1.3 2.0.1 1.17.2 1.16.1 1.15.0 1.14.0 1.13.0 1.12.2 1.8.0 1.7.0 1.6.0 1.5.2 1.4.2 1.3.2 1.2.6 Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class Address.

Structured address format for billing and shipping addresses.

Generated from protobuf message `google.cloud.recaptchaenterprise.v1.TransactionData.Address`

## Namespace

Google \\ Cloud \\ RecaptchaEnterprise \\ V1 \\ TransactionData

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ recipient` | `string` Optional. The recipient name, potentially including information such as "care of". |
| `↳ address` | `string[]` Optional. The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number. |
| `↳ locality` | `string` Optional. The town/city of the address. |
| `↳ administrative_area` | `string` Optional. The state, province, or otherwise administrative area of the address. |
| `↳ region_code` | `string` Optional. The CLDR country/region of the address. |
| `↳ postal_code` | `string` Optional. The postal or ZIP code of the address. |

### getRecipient

Optional. The recipient name, potentially including information such as
"care of".

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

### setRecipient

Optional. The recipient name, potentially including information such as
"care of".

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

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

### getAddress

Optional. The first lines of the address. The first line generally
contains the street name and number, and further lines may include
information such as an apartment number.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setAddress

Optional. The first lines of the address. The first line generally
contains the street name and number, and further lines may include
information such as an apartment number.

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

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

### getLocality

Optional. The town/city of the address.

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

### setLocality

Optional. The town/city of the address.

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

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

### getAdministrativeArea

Optional. The state, province, or otherwise administrative area of the
address.

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

### setAdministrativeArea

Optional. The state, province, or otherwise administrative area of the
address.

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

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

### getRegionCode

Optional. The CLDR country/region of the address.

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

### setRegionCode

Optional. The CLDR country/region of the address.

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

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

### getPostalCode

Optional. The postal or ZIP code of the address.

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

### setPostalCode

Optional. The postal or ZIP code of the address.

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

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