Google Cloud Model Armor V1 Client - Class SdpFindingLocation (0.4.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 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.

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

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.

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.

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.

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.

Parameter
Name Description
var Google\Cloud\ModelArmor\V1\RangeInfo
Returns
Type Description
$this