0.10.0 (latest) 0.9.0 0.8.4 0.7.0 0.6.0 0.5.3 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Model Armor V1 Client class SdpBoundingBox.

Bounding box encompassing a finding within an image.

Generated from protobuf message `google.cloud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox`

## Namespace

Google \\ Cloud \\ ModelArmor \\ V1 \\ SdpImageFindingLocation

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ top` | `int` Top coordinate of the bounding box. (0,0) is upper left. |
| `↳ left` | `int` Left coordinate of the bounding box. (0,0) is upper left. |
| `↳ width` | `int` Width of the bounding box in pixels. |
| `↳ height` | `int` Height of the bounding box in pixels. |

### getTop

Top coordinate of the bounding box. (0,0) is upper left.

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

### setTop

Top coordinate of the bounding box. (0,0) is upper left.

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

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

### getLeft

Left coordinate of the bounding box. (0,0) is upper left.

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

### setLeft

Left coordinate of the bounding box. (0,0) is upper left.

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

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

### getWidth

Width of the bounding box in pixels.

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

### setWidth

Width of the bounding box in pixels.

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

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

### getHeight

Height of the bounding box in pixels.

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

### setHeight

Height of the bounding box in pixels.

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

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