Data Loss Prevention V2 Client - Class ByteContentItem (1.9.0)

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

Container for bytes to inspect or redact.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ type int

The type of data stored in the bytes string. Default will be TEXT_UTF8.

↳ data string

Content data to inspect or redact.

getType

The type of data stored in the bytes string. Default will be TEXT_UTF8.

Returns
TypeDescription
int

setType

The type of data stored in the bytes string. Default will be TEXT_UTF8.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getData

Content data to inspect or redact.

Returns
TypeDescription
string

setData

Content data to inspect or redact.

Parameter
NameDescription
var string
Returns
TypeDescription
$this