Data Loss Prevention V2 Client - Class ContentItem (1.10.2)

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

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ value string

String data to inspect or redact.

↳ table Google\Cloud\Dlp\V2\Table

Structured content for inspection. See https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to learn more.

↳ byte_item Google\Cloud\Dlp\V2\ByteContentItem

Content data to inspect or redact. Replaces type and data.

getValue

String data to inspect or redact.

Returns
TypeDescription
string

hasValue

setValue

String data to inspect or redact.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTable

Structured content for inspection. See https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to learn more.

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

hasTable

setTable

Structured content for inspection. See https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to learn more.

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

getByteItem

Content data to inspect or redact. Replaces type and data.

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

hasByteItem

setByteItem

Content data to inspect or redact. Replaces type and data.

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

getDataItem

Returns
TypeDescription
string