Store findings in an existing table or a new table in an existing dataset. If table_id is not set a new one will be generated for you with the following format: dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used for generating the date details. For Inspect, each column in an existing output table must have the same name, type, and mode of a field in theFindingobject. For Risk, an existing output table should be the output of a previous Risk analysis job run on the same source table, with the same privacy metric and quasi-identifiers. Risk jobs that analyze the same table but compute a different privacy metric, or use different sets of quasi-identifiers, cannot store their results in the same table.
↳ output_schema
int
Schema used for writing the findings for Inspect jobs. This field is only used for Inspect and must be unspecified for Risk jobs. Columns are derived from theFindingobject. If appending to an existing table, any columns from the predefined schema that are missing will be added. No columns in the existing table will be deleted. If unspecified, then all available columns will be used for a new table or an (existing) table with no schema, and no changes will be made to an existing table that has a schema. Only for use with external storage.
getTable
Store findings in an existing table or a new table in an existing
dataset. If table_id is not set a new one will be generated
for you with the following format:
dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
for generating the date details.
For Inspect, each column in an existing output table must have the same
name, type, and mode of a field in theFindingobject.
For Risk, an existing output table should be the output of a previous
Risk analysis job run on the same source table, with the same privacy
metric and quasi-identifiers. Risk jobs that analyze the same table but
compute a different privacy metric, or use different sets of
quasi-identifiers, cannot store their results in the same table.
Store findings in an existing table or a new table in an existing
dataset. If table_id is not set a new one will be generated
for you with the following format:
dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
for generating the date details.
For Inspect, each column in an existing output table must have the same
name, type, and mode of a field in theFindingobject.
For Risk, an existing output table should be the output of a previous
Risk analysis job run on the same source table, with the same privacy
metric and quasi-identifiers. Risk jobs that analyze the same table but
compute a different privacy metric, or use different sets of
quasi-identifiers, cannot store their results in the same table.
Schema used for writing the findings for Inspect jobs. This field is only
used for Inspect and must be unspecified for Risk jobs. Columns are derived
from theFindingobject. If appending to an existing table, any columns
from the predefined schema that are missing will be added. No columns in
the existing table will be deleted.
If unspecified, then all available columns will be used for a new table or
an (existing) table with no schema, and no changes will be made to an
existing table that has a schema.
Only for use with external storage.
Returns
Type
Description
int
Enum of typeOutputSchema.
setOutputSchema
Schema used for writing the findings for Inspect jobs. This field is only
used for Inspect and must be unspecified for Risk jobs. Columns are derived
from theFindingobject. If appending to an existing table, any columns
from the predefined schema that are missing will be added. No columns in
the existing table will be deleted.
If unspecified, then all available columns will be used for a new table or
an (existing) table with no schema, and no changes will be made to an
existing table that has a schema.
Only for use with external storage.
[[["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-09 UTC."],[],[],null,["# Data Loss Prevention V2 Client - Class OutputStorageConfig (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.OutputStorageConfig)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.OutputStorageConfig)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.OutputStorageConfig)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.OutputStorageConfig)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.OutputStorageConfig)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.OutputStorageConfig)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.OutputStorageConfig)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.OutputStorageConfig)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.OutputStorageConfig)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.OutputStorageConfig)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.OutputStorageConfig)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.OutputStorageConfig)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.OutputStorageConfig)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.OutputStorageConfig)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.OutputStorageConfig)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.OutputStorageConfig)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.OutputStorageConfig)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.OutputStorageConfig)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.OutputStorageConfig) \nReference documentation and code samples for the Data Loss Prevention V2 Client class OutputStorageConfig.\n\nCloud repository for storing output.\n\nGenerated from protobuf message `google.privacy.dlp.v2.OutputStorageConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTable\n\nStore findings in an existing table or a new table in an existing\ndataset. If table_id is not set a new one will be generated\nfor you with the following format:\ndlp_googleapis_yyyy_mm_dd_\\[dlp_job_id\\]. Pacific time zone will be used\nfor generating the date details.\n\nFor Inspect, each column in an existing output table must have the same\nname, type, and mode of a field in the `Finding` object.\nFor Risk, an existing output table should be the output of a previous\nRisk analysis job run on the same source table, with the same privacy\nmetric and quasi-identifiers. Risk jobs that analyze the same table but\ncompute a different privacy metric, or use different sets of\nquasi-identifiers, cannot store their results in the same table.\n\n### hasTable\n\n### setTable\n\nStore findings in an existing table or a new table in an existing\ndataset. If table_id is not set a new one will be generated\nfor you with the following format:\ndlp_googleapis_yyyy_mm_dd_\\[dlp_job_id\\]. Pacific time zone will be used\nfor generating the date details.\n\nFor Inspect, each column in an existing output table must have the same\nname, type, and mode of a field in the `Finding` object.\nFor Risk, an existing output table should be the output of a previous\nRisk analysis job run on the same source table, with the same privacy\nmetric and quasi-identifiers. Risk jobs that analyze the same table but\ncompute a different privacy metric, or use different sets of\nquasi-identifiers, cannot store their results in the same table.\n\n### getOutputSchema\n\nSchema used for writing the findings for Inspect jobs. This field is only\nused for Inspect and must be unspecified for Risk jobs. Columns are derived\nfrom the `Finding` object. If appending to an existing table, any columns\nfrom the predefined schema that are missing will be added. No columns in\nthe existing table will be deleted.\n\nIf unspecified, then all available columns will be used for a new table or\nan (existing) table with no schema, and no changes will be made to an\nexisting table that has a schema.\nOnly for use with external storage.\n\n### setOutputSchema\n\nSchema used for writing the findings for Inspect jobs. This field is only\nused for Inspect and must be unspecified for Risk jobs. Columns are derived\nfrom the `Finding` object. If appending to an existing table, any columns\nfrom the predefined schema that are missing will be added. No columns in\nthe existing table will be deleted.\n\nIf unspecified, then all available columns will be used for a new table or\nan (existing) table with no schema, and no changes will be made to an\nexisting table that has a schema.\nOnly for use with external storage.\n\n### getType"]]