Reference documentation and code samples for the Data Loss Prevention V2 Client class HybridOptions.
Configuration to control jobs where the content being inspected is outside
of Google Cloud Platform.
Generated from protobuf messagegoogle.privacy.dlp.v2.HybridOptions
Namespace
Google \ Cloud \ Dlp \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ description
string
A short description of where the data is coming from. Will be stored once in the job. 256 max length.
↳ required_finding_label_keys
array
These are labels that each inspection request must include within their 'finding_labels' map. Request may contain others, but any missing one of these will be rejected. Label keys must be between 1 and 63 characters long and must conform to the following regular expression:[a-z]([-a-z0-9]*[a-z0-9])?. No more than 10 keys can be required.
To organize findings, these labels will be added to each finding. Label keys must be between 1 and 63 characters long and must conform to the following regular expression:[a-z]([-a-z0-9]*[a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression([a-z]([-a-z0-9]*[a-z0-9])?)?. No more than 10 labels can be associated with a given finding. Examples: * *"environment" : "production"* *"pipeline" : "etl"
If the container is a table, additional information to make findings meaningful such as the columns that are primary keys.
getDescription
A short description of where the data is coming from. Will be stored once
in the job. 256 max length.
Returns
Type
Description
string
setDescription
A short description of where the data is coming from. Will be stored once
in the job. 256 max length.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getRequiredFindingLabelKeys
These are labels that each inspection request must include within their
'finding_labels' map. Request may contain others, but any missing one of
these will be rejected.
Label keys must be between 1 and 63 characters long and must conform
to the following regular expression:[a-z]([-a-z0-9]*[a-z0-9])?.
No more than 10 keys can be required.
These are labels that each inspection request must include within their
'finding_labels' map. Request may contain others, but any missing one of
these will be rejected.
Label keys must be between 1 and 63 characters long and must conform
to the following regular expression:[a-z]([-a-z0-9]*[a-z0-9])?.
No more than 10 keys can be required.
Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
getLabels
To organize findings, these labels will be added to each finding.
Label keys must be between 1 and 63 characters long and must conform
to the following regular expression:[a-z]([-a-z0-9]*[a-z0-9])?.
Label values must be between 0 and 63 characters long and must conform
to the regular expression([a-z]([-a-z0-9]*[a-z0-9])?)?.
No more than 10 labels can be associated with a given finding.
Examples:
To organize findings, these labels will be added to each finding.
Label keys must be between 1 and 63 characters long and must conform
to the following regular expression:[a-z]([-a-z0-9]*[a-z0-9])?.
Label values must be between 0 and 63 characters long and must conform
to the regular expression([a-z]([-a-z0-9]*[a-z0-9])?)?.
No more than 10 labels can be associated with a given finding.
Examples:
[[["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 HybridOptions (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.HybridOptions)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.HybridOptions)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.HybridOptions)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.HybridOptions)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.HybridOptions)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.HybridOptions)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.HybridOptions)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.HybridOptions)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.HybridOptions)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.HybridOptions)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.HybridOptions)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.HybridOptions)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.HybridOptions)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.HybridOptions)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.HybridOptions)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.HybridOptions)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.HybridOptions)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.HybridOptions)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.HybridOptions) \nReference documentation and code samples for the Data Loss Prevention V2 Client class HybridOptions.\n\nConfiguration to control jobs where the content being inspected is outside\nof Google Cloud Platform.\n\nGenerated from protobuf message `google.privacy.dlp.v2.HybridOptions`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getDescription\n\nA short description of where the data is coming from. Will be stored once\nin the job. 256 max length.\n\n### setDescription\n\nA short description of where the data is coming from. Will be stored once\nin the job. 256 max length.\n\n### getRequiredFindingLabelKeys\n\nThese are labels that each inspection request must include within their\n'finding_labels' map. Request may contain others, but any missing one of\nthese will be rejected.\n\nLabel keys must be between 1 and 63 characters long and must conform\nto the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.\nNo more than 10 keys can be required.\n\n### setRequiredFindingLabelKeys\n\nThese are labels that each inspection request must include within their\n'finding_labels' map. Request may contain others, but any missing one of\nthese will be rejected.\n\nLabel keys must be between 1 and 63 characters long and must conform\nto the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.\nNo more than 10 keys can be required.\n\n### getLabels\n\nTo organize findings, these labels will be added to each finding.\n\nLabel keys must be between 1 and 63 characters long and must conform\nto the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.\nLabel values must be between 0 and 63 characters long and must conform\nto the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.\nNo more than 10 labels can be associated with a given finding.\nExamples:\n\n- `\"environment\" : \"production\"`\n- `\"pipeline\" : \"etl\"`\n\n### setLabels\n\nTo organize findings, these labels will be added to each finding.\n\nLabel keys must be between 1 and 63 characters long and must conform\nto the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.\nLabel values must be between 0 and 63 characters long and must conform\nto the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.\nNo more than 10 labels can be associated with a given finding.\nExamples:\n\n- `\"environment\" : \"production\"`\n- `\"pipeline\" : \"etl\"`\n\n### getTableOptions\n\nIf the container is a table, additional information to make findings\nmeaningful such as the columns that are primary keys.\n\n### hasTableOptions\n\n### clearTableOptions\n\n### setTableOptions\n\nIf the container is a table, additional information to make findings\nmeaningful such as the columns that are primary keys."]]