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 \ SdpFindingMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ byte_range |
Google\Cloud\ModelArmor\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 |
Google\Cloud\ModelArmor\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<Google\Cloud\ModelArmor\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 |
Google\Cloud\ModelArmor\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 |
Google\Cloud\ModelArmor\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 |
Google\Cloud\ModelArmor\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 |
Google\Cloud\ModelArmor\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<Google\Cloud\ModelArmor\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<Google\Cloud\ModelArmor\V1\SdpContentLocation>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|