Data Loss Prevention V2 Client - Class ColumnDataProfile (1.11.0)

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

The profile for a scanned column within a table.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The name of the profile.

↳ profile_status Google\Cloud\Dlp\V2\ProfileStatus

Success or error status from the most recent profile generation attempt. May be empty if the profile is still being generated.

↳ state int

State of a profile.

↳ profile_last_generated Google\Protobuf\Timestamp

The last time the profile was generated.

↳ table_data_profile string

The resource name of the table data profile.

↳ table_full_resource string

The resource name of the table this column is within.

↳ dataset_project_id string

The Google Cloud project ID that owns the BigQuery dataset.

↳ dataset_location string

The BigQuery location where the dataset's data is stored. See https://cloud.google.com/bigquery/docs/locations for supported locations.

↳ dataset_id string

The BigQuery dataset ID.

↳ table_id string

The BigQuery table ID.

↳ column string

The name of the column.

↳ sensitivity_score Google\Cloud\Dlp\V2\SensitivityScore

The sensitivity of this column.

↳ data_risk_level Google\Cloud\Dlp\V2\DataRiskLevel

The data risk level for this column.

↳ column_info_type Google\Cloud\Dlp\V2\InfoTypeSummary

If it's been determined this column can be identified as a single type, this will be set. Otherwise the column either has unidentifiable content or mixed types.

↳ other_matches array<Google\Cloud\Dlp\V2\OtherInfoTypeSummary>

Other types found within this column. List will be unordered.

↳ estimated_null_percentage int

Approximate percentage of entries being null in the column.

↳ estimated_uniqueness_score int

Approximate uniqueness of the column.

↳ free_text_score float

The likelihood that this column contains free-form text. A value close to 1 may indicate the column is likely to contain free-form or natural language text. Range in 0-1.

↳ column_type int

The data type of a given column.

↳ policy_state int

Indicates if a policy tag has been applied to the column.

getName

The name of the profile.

Returns
TypeDescription
string

setName

The name of the profile.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProfileStatus

Success or error status from the most recent profile generation attempt.

May be empty if the profile is still being generated.

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

hasProfileStatus

clearProfileStatus

setProfileStatus

Success or error status from the most recent profile generation attempt.

May be empty if the profile is still being generated.

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

getState

State of a profile.

Returns
TypeDescription
int

setState

State of a profile.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getProfileLastGenerated

The last time the profile was generated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasProfileLastGenerated

clearProfileLastGenerated

setProfileLastGenerated

The last time the profile was generated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getTableDataProfile

The resource name of the table data profile.

Returns
TypeDescription
string

setTableDataProfile

The resource name of the table data profile.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTableFullResource

The resource name of the table this column is within.

Returns
TypeDescription
string

setTableFullResource

The resource name of the table this column is within.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDatasetProjectId

The Google Cloud project ID that owns the BigQuery dataset.

Returns
TypeDescription
string

setDatasetProjectId

The Google Cloud project ID that owns the BigQuery dataset.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDatasetLocation

The BigQuery location where the dataset's data is stored.

See https://cloud.google.com/bigquery/docs/locations for supported locations.

Returns
TypeDescription
string

setDatasetLocation

The BigQuery location where the dataset's data is stored.

See https://cloud.google.com/bigquery/docs/locations for supported locations.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDatasetId

The BigQuery dataset ID.

Returns
TypeDescription
string

setDatasetId

The BigQuery dataset ID.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTableId

The BigQuery table ID.

Returns
TypeDescription
string

setTableId

The BigQuery table ID.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getColumn

The name of the column.

Returns
TypeDescription
string

setColumn

The name of the column.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSensitivityScore

The sensitivity of this column.

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

hasSensitivityScore

clearSensitivityScore

setSensitivityScore

The sensitivity of this column.

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

getDataRiskLevel

The data risk level for this column.

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

hasDataRiskLevel

clearDataRiskLevel

setDataRiskLevel

The data risk level for this column.

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

getColumnInfoType

If it's been determined this column can be identified as a single type, this will be set. Otherwise the column either has unidentifiable content or mixed types.

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

hasColumnInfoType

clearColumnInfoType

setColumnInfoType

If it's been determined this column can be identified as a single type, this will be set. Otherwise the column either has unidentifiable content or mixed types.

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

getOtherMatches

Other types found within this column. List will be unordered.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setOtherMatches

Other types found within this column. List will be unordered.

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

getEstimatedNullPercentage

Approximate percentage of entries being null in the column.

Returns
TypeDescription
int

setEstimatedNullPercentage

Approximate percentage of entries being null in the column.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getEstimatedUniquenessScore

Approximate uniqueness of the column.

Returns
TypeDescription
int

setEstimatedUniquenessScore

Approximate uniqueness of the column.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getFreeTextScore

The likelihood that this column contains free-form text.

A value close to 1 may indicate the column is likely to contain free-form or natural language text. Range in 0-1.

Returns
TypeDescription
float

setFreeTextScore

The likelihood that this column contains free-form text.

A value close to 1 may indicate the column is likely to contain free-form or natural language text. Range in 0-1.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getColumnType

The data type of a given column.

Returns
TypeDescription
int

setColumnType

The data type of a given column.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPolicyState

Indicates if a policy tag has been applied to the column.

Returns
TypeDescription
int

setPolicyState

Indicates if a policy tag has been applied to the column.

Parameter
NameDescription
var int
Returns
TypeDescription
$this