Data Loss Prevention V2 Client - Class Location (1.9.0)

Reference documentation and code samples for the Data Loss Prevention V2 Client class Location.

Specifies the location of the finding.

Generated from protobuf message google.privacy.dlp.v2.Location

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ byte_range Google\Cloud\Dlp\V2\Range

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. Omitted if content is an image.

↳ codepoint_range Google\Cloud\Dlp\V2\Range

Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text.

↳ content_locations array<Google\Cloud\Dlp\V2\ContentLocation>

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

↳ container Google\Cloud\Dlp\V2\Container

Information about the container where this finding occurred, if available.

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. Omitted if content is an image.

Returns
TypeDescription
Google\Cloud\Dlp\V2\Range|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. Omitted if content is an image.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\Range
Returns
TypeDescription
$this

getCodepointRange

Unicode character offsets delimiting the finding.

These are relative to the finding's containing element. Provided when the content is text.

Returns
TypeDescription
Google\Cloud\Dlp\V2\Range|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
NameDescription
var Google\Cloud\Dlp\V2\Range
Returns
TypeDescription
$this

getContentLocations

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setContentLocations

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

Parameter
NameDescription
var array<Google\Cloud\Dlp\V2\ContentLocation>
Returns
TypeDescription
$this

getContainer

Information about the container where this finding occurred, if available.

Returns
TypeDescription
Google\Cloud\Dlp\V2\Container|null

hasContainer

clearContainer

setContainer

Information about the container where this finding occurred, if available.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\Container
Returns
TypeDescription
$this