# Google Cloud Network Management V1 Client - Class DropInfo (2.9.2)

2.9.2 (latest) 2.9.1 2.8.0 2.7.0 2.6.1 2.5.0 2.4.2 2.3.2 2.2.1 2.1.1 2.0.1 1.7.3 1.5.0 1.4.2 1.3.0 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Network Management V1 Client class DropInfo.

Details of the final state "drop" and associated resource.

Generated from protobuf message `google.cloud.networkmanagement.v1.DropInfo`

## Namespace

Google \\ Cloud \\ NetworkManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cause` | `int` Cause that the packet is dropped. |
| `↳ resource_uri` | `string` URI of the resource that caused the drop. |
| `↳ source_ip` | `string` Source IP address of the dropped packet (if relevant). |
| `↳ destination_ip` | `string` Destination IP address of the dropped packet (if relevant). |
| `↳ region` | `string` Region of the dropped packet (if relevant). |
| `↳ source_geolocation_code` | `string` Geolocation (region code) of the source IP address (if relevant). |
| `↳ destination_geolocation_code` | `string` Geolocation (region code) of the destination IP address (if relevant). |

### getCause

Cause that the packet is dropped.

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

### setCause

Cause that the packet is dropped.

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

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

### getResourceUri

URI of the resource that caused the drop.

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

### setResourceUri

URI of the resource that caused the drop.

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

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

### getSourceIp

Source IP address of the dropped packet (if relevant).

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

### setSourceIp

Source IP address of the dropped packet (if relevant).

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

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

### getDestinationIp

Destination IP address of the dropped packet (if relevant).

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

### setDestinationIp

Destination IP address of the dropped packet (if relevant).

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

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

### getRegion

Region of the dropped packet (if relevant).

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

### setRegion

Region of the dropped packet (if relevant).

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

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

### getSourceGeolocationCode

Geolocation (region code) of the source IP address (if relevant).

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

### setSourceGeolocationCode

Geolocation (region code) of the source IP address (if relevant).

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

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

### getDestinationGeolocationCode

Geolocation (region code) of the destination IP address (if relevant).

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

### setDestinationGeolocationCode

Geolocation (region code) of the destination IP address (if relevant).

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

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