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 SdpFindingLocation.

Location of this Sensitive Data Protection Finding within input content.

Generated from protobuf message `google.cloud.modelarmor.v1.SdpFinding.SdpFindingLocation`

## Namespace

Google \\ Cloud \\ ModelArmor \\ V1 \\ SdpFinding

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ byte_range` | `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.RangeInfo` Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Note: Omitted if content is an image. |
| `↳ codepoint_range` | `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.RangeInfo` Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text. Note: Omitted if content is an image. |
| `↳ content_locations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.SdpContentLocation>` List of nested objects pointing to the precise location of the finding within an image, file or record. For example, a single finding might be detected in two separate bounding boxes within an image (e.g., if it wraps across a line or is partially obscured). In such cases, content_locations would contain two SdpContentLocation entries, each with an image_finding_location pointing to a different bounding box. |

### getByteRange

Zero-based byte offsets delimiting the finding.

These are relative to the finding's containing element.
Note that when the content is not textual, this references
the UTF-8 encoded textual representation of the content.
Note: Omitted if content is an image.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.RangeInfo|null` |   |

### hasByteRange

### clearByteRange

### setByteRange

Zero-based byte offsets delimiting the finding.

These are relative to the finding's containing element.
Note that when the content is not textual, this references
the UTF-8 encoded textual representation of the content.
Note: Omitted if content is an image.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.RangeInfo` |

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

### getCodepointRange

Unicode character offsets delimiting the finding.

These are relative to the finding's containing element.
Provided when the content is text.
Note: Omitted if content is an image.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.RangeInfo|null` |   |

### hasCodepointRange

### clearCodepointRange

### setCodepointRange

Unicode character offsets delimiting the finding.

These are relative to the finding's containing element.
Provided when the content is text.
Note: Omitted if content is an image.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.RangeInfo` |

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

### getContentLocations

List of nested objects pointing to the precise location of the finding
within an image, file or record.

For example, a single finding might be detected in two
separate bounding boxes within an image (e.g., if it wraps across
a line or is partially obscured). In such cases, content_locations
would contain two SdpContentLocation entries, each with an
image_finding_location pointing to a different bounding box.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.SdpContentLocation>` |   |

### setContentLocations

List of nested objects pointing to the precise location of the finding
within an image, file or record.

For example, a single finding might be detected in two
separate bounding boxes within an image (e.g., if it wraps across
a line or is partially obscured). In such cases, content_locations
would contain two SdpContentLocation entries, each with an
image_finding_location pointing to a different bounding box.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.SdpContentLocation>` |

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