# Google Shopping Merchant Accounts V1 Client - Class Distance (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.0 1.0.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.3 0.2.0 0.1.0 Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class Distance.

Maximum delivery radius.

This is only required for the local delivery shipment type.

Generated from protobuf message `google.shopping.merchant.accounts.v1.Distance`

## Namespace

Google \\ Shopping \\ Merchant \\ Accounts \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ value` | `int|string` Integer value of distance. |
| `↳ unit` | `int` Unit can differ based on country, it is parameterized to include miles and kilometers. |

### getValue

Integer value of distance.

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

### hasValue

### clearValue

### setValue

Integer value of distance.

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

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

### getUnit

Unit can differ based on country, it is parameterized to include miles
and kilometers.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasUnit

### clearUnit

### setUnit

Unit can differ based on country, it is parameterized to include miles
and kilometers.

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

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