# Google Cloud Network Security V1 Client - Class IpBlock (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.0 1.0.4 0.6.5 0.5.2 0.4.1 0.3.7 Reference documentation and code samples for the Google Cloud Network Security V1 Client class IpBlock.

Represents a range of IP Addresses.

Generated from protobuf message `google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1 \\ AuthzPolicy \\ AuthzRule

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ prefix` | `string` Required. The address prefix. |
| `↳ length` | `int` Required. The length of the address range. |

### getPrefix

Required. The address prefix.

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

### setPrefix

Required. The address prefix.

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

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

### getLength

Required. The length of the address range.

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

### setLength

Required. The length of the address range.

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

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