Reference documentation and code samples for the Data Loss Prevention V2 Client class ContentItem.
Type of content to inspect.
Generated from protobuf message google.privacy.dlp.v2.ContentItem
Namespace
Google \ Cloud \ Dlp \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ value |
string
String data to inspect or redact. |
↳ table |
Table
Structured content for inspection. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table to learn more. |
↳ byte_item |
ByteContentItem
Content data to inspect or redact. Replaces |
getValue
String data to inspect or redact.
Returns | |
---|---|
Type | Description |
string |
hasValue
setValue
String data to inspect or redact.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTable
Structured content for inspection. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table to learn more.
Returns | |
---|---|
Type | Description |
Table|null |
hasTable
setTable
Structured content for inspection. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table to learn more.
Parameter | |
---|---|
Name | Description |
var |
Table
|
Returns | |
---|---|
Type | Description |
$this |
getByteItem
Content data to inspect or redact. Replaces type
and data
.
Returns | |
---|---|
Type | Description |
ByteContentItem|null |
hasByteItem
setByteItem
Content data to inspect or redact. Replaces type
and data
.
Parameter | |
---|---|
Name | Description |
var |
ByteContentItem
|
Returns | |
---|---|
Type | Description |
$this |
getDataItem
Returns | |
---|---|
Type | Description |
string |