Reference documentation and code samples for the Data Loss Prevention V2 Client class TransformationDescription.
A flattened description of aPrimitiveTransformationorRecordSuppression.
Generated from protobuf messagegoogle.privacy.dlp.v2.TransformationDescription
Namespace
Google \ Cloud \ Dlp \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ type
int
The transformation type.
↳ description
string
A description of the transformation. This is empty for a RECORD_SUPPRESSION, or is the output of calling toString() on thePrimitiveTransformationprotocol buffer message for any other type of transformation.
↳ condition
string
A human-readable string representation of theRecordConditioncorresponding to this transformation. Set if aRecordConditionwas used to determine whether or not to apply this transformation. Examples: * * (age_field > 85) * * (age_field <= 18) * * (zip_field exists) * * (zip_field == 01234) && (city_field != "Springville") * * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
Set if the transformation was limited to a specificInfoType.
getType
The transformation type.
Returns
Type
Description
int
setType
The transformation type.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getDescription
A description of the transformation. This is empty for a
RECORD_SUPPRESSION, or is the output of calling toString() on thePrimitiveTransformationprotocol buffer message for any other type of
transformation.
Returns
Type
Description
string
setDescription
A description of the transformation. This is empty for a
RECORD_SUPPRESSION, or is the output of calling toString() on thePrimitiveTransformationprotocol buffer message for any other type of
transformation.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCondition
A human-readable string representation of theRecordConditioncorresponding to this transformation. Set if aRecordConditionwas used
to determine whether or not to apply this transformation.
A human-readable string representation of theRecordConditioncorresponding to this transformation. Set if aRecordConditionwas used
to determine whether or not to apply this transformation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Data Loss Prevention V2 Client - Class TransformationDescription (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.TransformationDescription)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.TransformationDescription)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.TransformationDescription)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.TransformationDescription)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.TransformationDescription)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.TransformationDescription)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.TransformationDescription)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.TransformationDescription)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.TransformationDescription)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.TransformationDescription)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.TransformationDescription)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.TransformationDescription)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.TransformationDescription)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.TransformationDescription)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.TransformationDescription)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.TransformationDescription)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.TransformationDescription)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.TransformationDescription)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.TransformationDescription) \nReference documentation and code samples for the Data Loss Prevention V2 Client class TransformationDescription.\n\nA flattened description of a `PrimitiveTransformation` or\n`RecordSuppression`.\n\nGenerated from protobuf message `google.privacy.dlp.v2.TransformationDescription`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getType\n\nThe transformation type.\n\n### setType\n\nThe transformation type.\n\n### getDescription\n\nA description of the transformation. This is empty for a\nRECORD_SUPPRESSION, or is the output of calling toString() on the\n`PrimitiveTransformation` protocol buffer message for any other type of\ntransformation.\n\n### setDescription\n\nA description of the transformation. This is empty for a\nRECORD_SUPPRESSION, or is the output of calling toString() on the\n`PrimitiveTransformation` protocol buffer message for any other type of\ntransformation.\n\n### getCondition\n\nA human-readable string representation of the `RecordCondition`\ncorresponding to this transformation. Set if a `RecordCondition` was used\nto determine whether or not to apply this transformation.\n\nExamples:\n\n- (age_field \\\u003e 85)\n- (age_field \\\u003c= 18)\n- (zip_field exists)\n- (zip_field == 01234) \\&\\& (city_field != \"Springville\")\n- (zip_field == 01234) \\&\\& (age_field \\\u003c= 18) \\&\\& (city_field exists)\n\n### setCondition\n\nA human-readable string representation of the `RecordCondition`\ncorresponding to this transformation. Set if a `RecordCondition` was used\nto determine whether or not to apply this transformation.\n\nExamples:\n\n- (age_field \\\u003e 85)\n- (age_field \\\u003c= 18)\n- (zip_field exists)\n- (zip_field == 01234) \\&\\& (city_field != \"Springville\")\n- (zip_field == 01234) \\&\\& (age_field \\\u003c= 18) \\&\\& (city_field exists)\n\n### getInfoType\n\nSet if the transformation was limited to a specific `InfoType`.\n\n### hasInfoType\n\n### clearInfoType\n\n### setInfoType\n\nSet if the transformation was limited to a specific `InfoType`."]]