Constants
DlpService_InspectContent_FullMethodName, DlpService_RedactImage_FullMethodName, DlpService_DeidentifyContent_FullMethodName, DlpService_ReidentifyContent_FullMethodName, DlpService_ListInfoTypes_FullMethodName, DlpService_CreateInspectTemplate_FullMethodName, DlpService_UpdateInspectTemplate_FullMethodName, DlpService_GetInspectTemplate_FullMethodName, DlpService_ListInspectTemplates_FullMethodName, DlpService_DeleteInspectTemplate_FullMethodName, DlpService_CreateDeidentifyTemplate_FullMethodName, DlpService_UpdateDeidentifyTemplate_FullMethodName, DlpService_GetDeidentifyTemplate_FullMethodName, DlpService_ListDeidentifyTemplates_FullMethodName, DlpService_DeleteDeidentifyTemplate_FullMethodName, DlpService_CreateJobTrigger_FullMethodName, DlpService_UpdateJobTrigger_FullMethodName, DlpService_HybridInspectJobTrigger_FullMethodName, DlpService_GetJobTrigger_FullMethodName, DlpService_ListJobTriggers_FullMethodName, DlpService_DeleteJobTrigger_FullMethodName, DlpService_ActivateJobTrigger_FullMethodName, DlpService_CreateDiscoveryConfig_FullMethodName, DlpService_UpdateDiscoveryConfig_FullMethodName, DlpService_GetDiscoveryConfig_FullMethodName, DlpService_ListDiscoveryConfigs_FullMethodName, DlpService_DeleteDiscoveryConfig_FullMethodName, DlpService_CreateDlpJob_FullMethodName, DlpService_ListDlpJobs_FullMethodName, DlpService_GetDlpJob_FullMethodName, DlpService_DeleteDlpJob_FullMethodName, DlpService_CancelDlpJob_FullMethodName, DlpService_CreateStoredInfoType_FullMethodName, DlpService_UpdateStoredInfoType_FullMethodName, DlpService_GetStoredInfoType_FullMethodName, DlpService_ListStoredInfoTypes_FullMethodName, DlpService_DeleteStoredInfoType_FullMethodName, DlpService_ListProjectDataProfiles_FullMethodName, DlpService_ListTableDataProfiles_FullMethodName, DlpService_ListColumnDataProfiles_FullMethodName, DlpService_GetProjectDataProfile_FullMethodName, DlpService_ListFileStoreDataProfiles_FullMethodName, DlpService_GetFileStoreDataProfile_FullMethodName, DlpService_DeleteFileStoreDataProfile_FullMethodName, DlpService_GetTableDataProfile_FullMethodName, DlpService_GetColumnDataProfile_FullMethodName, DlpService_DeleteTableDataProfile_FullMethodName, DlpService_HybridInspectDlpJob_FullMethodName, DlpService_FinishDlpJob_FullMethodName, DlpService_CreateConnection_FullMethodName, DlpService_GetConnection_FullMethodName, DlpService_ListConnections_FullMethodName, DlpService_SearchConnections_FullMethodName, DlpService_DeleteConnection_FullMethodName, DlpService_UpdateConnection_FullMethodName
const (
DlpService_InspectContent_FullMethodName = "/google.privacy.dlp.v2.DlpService/InspectContent"
DlpService_RedactImage_FullMethodName = "/google.privacy.dlp.v2.DlpService/RedactImage"
DlpService_DeidentifyContent_FullMethodName = "/google.privacy.dlp.v2.DlpService/DeidentifyContent"
DlpService_ReidentifyContent_FullMethodName = "/google.privacy.dlp.v2.DlpService/ReidentifyContent"
DlpService_ListInfoTypes_FullMethodName = "/google.privacy.dlp.v2.DlpService/ListInfoTypes"
DlpService_CreateInspectTemplate_FullMethodName = "/google.privacy.dlp.v2.DlpService/CreateInspectTemplate"
DlpService_UpdateInspectTemplate_FullMethodName = "/google.privacy.dlp.v2.DlpService/UpdateInspectTemplate"
DlpService_GetInspectTemplate_FullMethodName = "/google.privacy.dlp.v2.DlpService/GetInspectTemplate"
DlpService_ListInspectTemplates_FullMethodName = "/google.privacy.dlp.v2.DlpService/ListInspectTemplates"
DlpService_DeleteInspectTemplate_FullMethodName = "/google.privacy.dlp.v2.DlpService/DeleteInspectTemplate"
DlpService_CreateDeidentifyTemplate_FullMethodName = "/google.privacy.dlp.v2.DlpService/CreateDeidentifyTemplate"
DlpService_UpdateDeidentifyTemplate_FullMethodName = "/google.privacy.dlp.v2.DlpService/UpdateDeidentifyTemplate"
DlpService_GetDeidentifyTemplate_FullMethodName = "/google.privacy.dlp.v2.DlpService/GetDeidentifyTemplate"
DlpService_ListDeidentifyTemplates_FullMethodName = "/google.privacy.dlp.v2.DlpService/ListDeidentifyTemplates"
DlpService_DeleteDeidentifyTemplate_FullMethodName = "/google.privacy.dlp.v2.DlpService/DeleteDeidentifyTemplate"
DlpService_CreateJobTrigger_FullMethodName = "/google.privacy.dlp.v2.DlpService/CreateJobTrigger"
DlpService_UpdateJobTrigger_FullMethodName = "/google.privacy.dlp.v2.DlpService/UpdateJobTrigger"
DlpService_HybridInspectJobTrigger_FullMethodName = "/google.privacy.dlp.v2.DlpService/HybridInspectJobTrigger"
DlpService_GetJobTrigger_FullMethodName = "/google.privacy.dlp.v2.DlpService/GetJobTrigger"
DlpService_ListJobTriggers_FullMethodName = "/google.privacy.dlp.v2.DlpService/ListJobTriggers"
DlpService_DeleteJobTrigger_FullMethodName = "/google.privacy.dlp.v2.DlpService/DeleteJobTrigger"
DlpService_ActivateJobTrigger_FullMethodName = "/google.privacy.dlp.v2.DlpService/ActivateJobTrigger"
DlpService_CreateDiscoveryConfig_FullMethodName = "/google.privacy.dlp.v2.DlpService/CreateDiscoveryConfig"
DlpService_UpdateDiscoveryConfig_FullMethodName = "/google.privacy.dlp.v2.DlpService/UpdateDiscoveryConfig"
DlpService_GetDiscoveryConfig_FullMethodName = "/google.privacy.dlp.v2.DlpService/GetDiscoveryConfig"
DlpService_ListDiscoveryConfigs_FullMethodName = "/google.privacy.dlp.v2.DlpService/ListDiscoveryConfigs"
DlpService_DeleteDiscoveryConfig_FullMethodName = "/google.privacy.dlp.v2.DlpService/DeleteDiscoveryConfig"
DlpService_CreateDlpJob_FullMethodName = "/google.privacy.dlp.v2.DlpService/CreateDlpJob"
DlpService_ListDlpJobs_FullMethodName = "/google.privacy.dlp.v2.DlpService/ListDlpJobs"
DlpService_GetDlpJob_FullMethodName = "/google.privacy.dlp.v2.DlpService/GetDlpJob"
DlpService_DeleteDlpJob_FullMethodName = "/google.privacy.dlp.v2.DlpService/DeleteDlpJob"
DlpService_CancelDlpJob_FullMethodName = "/google.privacy.dlp.v2.DlpService/CancelDlpJob"
DlpService_CreateStoredInfoType_FullMethodName = "/google.privacy.dlp.v2.DlpService/CreateStoredInfoType"
DlpService_UpdateStoredInfoType_FullMethodName = "/google.privacy.dlp.v2.DlpService/UpdateStoredInfoType"
DlpService_GetStoredInfoType_FullMethodName = "/google.privacy.dlp.v2.DlpService/GetStoredInfoType"
DlpService_ListStoredInfoTypes_FullMethodName = "/google.privacy.dlp.v2.DlpService/ListStoredInfoTypes"
DlpService_DeleteStoredInfoType_FullMethodName = "/google.privacy.dlp.v2.DlpService/DeleteStoredInfoType"
DlpService_ListProjectDataProfiles_FullMethodName = "/google.privacy.dlp.v2.DlpService/ListProjectDataProfiles"
DlpService_ListTableDataProfiles_FullMethodName = "/google.privacy.dlp.v2.DlpService/ListTableDataProfiles"
DlpService_ListColumnDataProfiles_FullMethodName = "/google.privacy.dlp.v2.DlpService/ListColumnDataProfiles"
DlpService_GetProjectDataProfile_FullMethodName = "/google.privacy.dlp.v2.DlpService/GetProjectDataProfile"
DlpService_ListFileStoreDataProfiles_FullMethodName = "/google.privacy.dlp.v2.DlpService/ListFileStoreDataProfiles"
DlpService_GetFileStoreDataProfile_FullMethodName = "/google.privacy.dlp.v2.DlpService/GetFileStoreDataProfile"
DlpService_DeleteFileStoreDataProfile_FullMethodName = "/google.privacy.dlp.v2.DlpService/DeleteFileStoreDataProfile"
DlpService_GetTableDataProfile_FullMethodName = "/google.privacy.dlp.v2.DlpService/GetTableDataProfile"
DlpService_GetColumnDataProfile_FullMethodName = "/google.privacy.dlp.v2.DlpService/GetColumnDataProfile"
DlpService_DeleteTableDataProfile_FullMethodName = "/google.privacy.dlp.v2.DlpService/DeleteTableDataProfile"
DlpService_HybridInspectDlpJob_FullMethodName = "/google.privacy.dlp.v2.DlpService/HybridInspectDlpJob"
DlpService_FinishDlpJob_FullMethodName = "/google.privacy.dlp.v2.DlpService/FinishDlpJob"
DlpService_CreateConnection_FullMethodName = "/google.privacy.dlp.v2.DlpService/CreateConnection"
DlpService_GetConnection_FullMethodName = "/google.privacy.dlp.v2.DlpService/GetConnection"
DlpService_ListConnections_FullMethodName = "/google.privacy.dlp.v2.DlpService/ListConnections"
DlpService_SearchConnections_FullMethodName = "/google.privacy.dlp.v2.DlpService/SearchConnections"
DlpService_DeleteConnection_FullMethodName = "/google.privacy.dlp.v2.DlpService/DeleteConnection"
DlpService_UpdateConnection_FullMethodName = "/google.privacy.dlp.v2.DlpService/UpdateConnection"
)Variables
TransformationResultStatusType_name, TransformationResultStatusType_value
var (
TransformationResultStatusType_name = map[int32]string{
0: "STATE_TYPE_UNSPECIFIED",
1: "INVALID_TRANSFORM",
2: "BIGQUERY_MAX_ROW_SIZE_EXCEEDED",
3: "METADATA_UNRETRIEVABLE",
4: "SUCCESS",
}
TransformationResultStatusType_value = map[string]int32{
"STATE_TYPE_UNSPECIFIED": 0,
"INVALID_TRANSFORM": 1,
"BIGQUERY_MAX_ROW_SIZE_EXCEEDED": 2,
"METADATA_UNRETRIEVABLE": 3,
"SUCCESS": 4,
}
)Enum value maps for TransformationResultStatusType.
TransformationContainerType_name, TransformationContainerType_value
var (
TransformationContainerType_name = map[int32]string{
0: "TRANSFORM_UNKNOWN_CONTAINER",
1: "TRANSFORM_BODY",
2: "TRANSFORM_METADATA",
3: "TRANSFORM_TABLE",
}
TransformationContainerType_value = map[string]int32{
"TRANSFORM_UNKNOWN_CONTAINER": 0,
"TRANSFORM_BODY": 1,
"TRANSFORM_METADATA": 2,
"TRANSFORM_TABLE": 3,
}
)Enum value maps for TransformationContainerType.
TransformationType_name, TransformationType_value
var (
TransformationType_name = map[int32]string{
0: "TRANSFORMATION_TYPE_UNSPECIFIED",
1: "RECORD_SUPPRESSION",
2: "REPLACE_VALUE",
15: "REPLACE_DICTIONARY",
3: "REDACT",
4: "CHARACTER_MASK",
5: "CRYPTO_REPLACE_FFX_FPE",
6: "FIXED_SIZE_BUCKETING",
7: "BUCKETING",
8: "REPLACE_WITH_INFO_TYPE",
9: "TIME_PART",
10: "CRYPTO_HASH",
12: "DATE_SHIFT",
13: "CRYPTO_DETERMINISTIC_CONFIG",
14: "REDACT_IMAGE",
}
TransformationType_value = map[string]int32{
"TRANSFORMATION_TYPE_UNSPECIFIED": 0,
"RECORD_SUPPRESSION": 1,
"REPLACE_VALUE": 2,
"REPLACE_DICTIONARY": 15,
"REDACT": 3,
"CHARACTER_MASK": 4,
"CRYPTO_REPLACE_FFX_FPE": 5,
"FIXED_SIZE_BUCKETING": 6,
"BUCKETING": 7,
"REPLACE_WITH_INFO_TYPE": 8,
"TIME_PART": 9,
"CRYPTO_HASH": 10,
"DATE_SHIFT": 12,
"CRYPTO_DETERMINISTIC_CONFIG": 13,
"REDACT_IMAGE": 14,
}
)Enum value maps for TransformationType.
ProfileGeneration_name, ProfileGeneration_value
var (
ProfileGeneration_name = map[int32]string{
0: "PROFILE_GENERATION_UNSPECIFIED",
1: "PROFILE_GENERATION_NEW",
2: "PROFILE_GENERATION_UPDATE",
}
ProfileGeneration_value = map[string]int32{
"PROFILE_GENERATION_UNSPECIFIED": 0,
"PROFILE_GENERATION_NEW": 1,
"PROFILE_GENERATION_UPDATE": 2,
}
)Enum value maps for ProfileGeneration.
BigQueryTableTypeCollection_name, BigQueryTableTypeCollection_value
var (
BigQueryTableTypeCollection_name = map[int32]string{
0: "BIG_QUERY_COLLECTION_UNSPECIFIED",
1: "BIG_QUERY_COLLECTION_ALL_TYPES",
2: "BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES",
}
BigQueryTableTypeCollection_value = map[string]int32{
"BIG_QUERY_COLLECTION_UNSPECIFIED": 0,
"BIG_QUERY_COLLECTION_ALL_TYPES": 1,
"BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES": 2,
}
)Enum value maps for BigQueryTableTypeCollection.
BigQueryTableType_name, BigQueryTableType_value
var (
BigQueryTableType_name = map[int32]string{
0: "BIG_QUERY_TABLE_TYPE_UNSPECIFIED",
1: "BIG_QUERY_TABLE_TYPE_TABLE",
2: "BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE",
3: "BIG_QUERY_TABLE_TYPE_SNAPSHOT",
}
BigQueryTableType_value = map[string]int32{
"BIG_QUERY_TABLE_TYPE_UNSPECIFIED": 0,
"BIG_QUERY_TABLE_TYPE_TABLE": 1,
"BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE": 2,
"BIG_QUERY_TABLE_TYPE_SNAPSHOT": 3,
}
)Enum value maps for BigQueryTableType.
DataProfileUpdateFrequency_name, DataProfileUpdateFrequency_value
var (
DataProfileUpdateFrequency_name = map[int32]string{
0: "UPDATE_FREQUENCY_UNSPECIFIED",
1: "UPDATE_FREQUENCY_NEVER",
2: "UPDATE_FREQUENCY_DAILY",
4: "UPDATE_FREQUENCY_MONTHLY",
}
DataProfileUpdateFrequency_value = map[string]int32{
"UPDATE_FREQUENCY_UNSPECIFIED": 0,
"UPDATE_FREQUENCY_NEVER": 1,
"UPDATE_FREQUENCY_DAILY": 2,
"UPDATE_FREQUENCY_MONTHLY": 4,
}
)Enum value maps for DataProfileUpdateFrequency.
BigQueryTableModification_name, BigQueryTableModification_value
var (
BigQueryTableModification_name = map[int32]string{
0: "TABLE_MODIFICATION_UNSPECIFIED",
1: "TABLE_MODIFIED_TIMESTAMP",
}
BigQueryTableModification_value = map[string]int32{
"TABLE_MODIFICATION_UNSPECIFIED": 0,
"TABLE_MODIFIED_TIMESTAMP": 1,
}
)Enum value maps for BigQueryTableModification.
BigQuerySchemaModification_name, BigQuerySchemaModification_value
var (
BigQuerySchemaModification_name = map[int32]string{
0: "SCHEMA_MODIFICATION_UNSPECIFIED",
1: "SCHEMA_NEW_COLUMNS",
2: "SCHEMA_REMOVED_COLUMNS",
}
BigQuerySchemaModification_value = map[string]int32{
"SCHEMA_MODIFICATION_UNSPECIFIED": 0,
"SCHEMA_NEW_COLUMNS": 1,
"SCHEMA_REMOVED_COLUMNS": 2,
}
)Enum value maps for BigQuerySchemaModification.
RelationalOperator_name, RelationalOperator_value
var (
RelationalOperator_name = map[int32]string{
0: "RELATIONAL_OPERATOR_UNSPECIFIED",
1: "EQUAL_TO",
2: "NOT_EQUAL_TO",
3: "GREATER_THAN",
4: "LESS_THAN",
5: "GREATER_THAN_OR_EQUALS",
6: "LESS_THAN_OR_EQUALS",
7: "EXISTS",
}
RelationalOperator_value = map[string]int32{
"RELATIONAL_OPERATOR_UNSPECIFIED": 0,
"EQUAL_TO": 1,
"NOT_EQUAL_TO": 2,
"GREATER_THAN": 3,
"LESS_THAN": 4,
"GREATER_THAN_OR_EQUALS": 5,
"LESS_THAN_OR_EQUALS": 6,
"EXISTS": 7,
}
)Enum value maps for RelationalOperator.
MatchingType_name, MatchingType_value
var (
MatchingType_name = map[int32]string{
0: "MATCHING_TYPE_UNSPECIFIED",
1: "MATCHING_TYPE_FULL_MATCH",
2: "MATCHING_TYPE_PARTIAL_MATCH",
3: "MATCHING_TYPE_INVERSE_MATCH",
}
MatchingType_value = map[string]int32{
"MATCHING_TYPE_UNSPECIFIED": 0,
"MATCHING_TYPE_FULL_MATCH": 1,
"MATCHING_TYPE_PARTIAL_MATCH": 2,
"MATCHING_TYPE_INVERSE_MATCH": 3,
}
)Enum value maps for MatchingType.
ContentOption_name, ContentOption_value
var (
ContentOption_name = map[int32]string{
0: "CONTENT_UNSPECIFIED",
1: "CONTENT_TEXT",
2: "CONTENT_IMAGE",
}
ContentOption_value = map[string]int32{
"CONTENT_UNSPECIFIED": 0,
"CONTENT_TEXT": 1,
"CONTENT_IMAGE": 2,
}
)Enum value maps for ContentOption.
MetadataType_name, MetadataType_value
var (
MetadataType_name = map[int32]string{
0: "METADATATYPE_UNSPECIFIED",
2: "STORAGE_METADATA",
}
MetadataType_value = map[string]int32{
"METADATATYPE_UNSPECIFIED": 0,
"STORAGE_METADATA": 2,
}
)Enum value maps for MetadataType.
InfoTypeSupportedBy_name, InfoTypeSupportedBy_value
var (
InfoTypeSupportedBy_name = map[int32]string{
0: "ENUM_TYPE_UNSPECIFIED",
1: "INSPECT",
2: "RISK_ANALYSIS",
}
InfoTypeSupportedBy_value = map[string]int32{
"ENUM_TYPE_UNSPECIFIED": 0,
"INSPECT": 1,
"RISK_ANALYSIS": 2,
}
)Enum value maps for InfoTypeSupportedBy.
DlpJobType_name, DlpJobType_value
var (
DlpJobType_name = map[int32]string{
0: "DLP_JOB_TYPE_UNSPECIFIED",
1: "INSPECT_JOB",
2: "RISK_ANALYSIS_JOB",
}
DlpJobType_value = map[string]int32{
"DLP_JOB_TYPE_UNSPECIFIED": 0,
"INSPECT_JOB": 1,
"RISK_ANALYSIS_JOB": 2,
}
)Enum value maps for DlpJobType.
StoredInfoTypeState_name, StoredInfoTypeState_value
var (
StoredInfoTypeState_name = map[int32]string{
0: "STORED_INFO_TYPE_STATE_UNSPECIFIED",
1: "PENDING",
2: "READY",
3: "FAILED",
4: "INVALID",
}
StoredInfoTypeState_value = map[string]int32{
"STORED_INFO_TYPE_STATE_UNSPECIFIED": 0,
"PENDING": 1,
"READY": 2,
"FAILED": 3,
"INVALID": 4,
}
)Enum value maps for StoredInfoTypeState.
ResourceVisibility_name, ResourceVisibility_value
var (
ResourceVisibility_name = map[int32]string{
0: "RESOURCE_VISIBILITY_UNSPECIFIED",
10: "RESOURCE_VISIBILITY_PUBLIC",
15: "RESOURCE_VISIBILITY_INCONCLUSIVE",
20: "RESOURCE_VISIBILITY_RESTRICTED",
}
ResourceVisibility_value = map[string]int32{
"RESOURCE_VISIBILITY_UNSPECIFIED": 0,
"RESOURCE_VISIBILITY_PUBLIC": 10,
"RESOURCE_VISIBILITY_INCONCLUSIVE": 15,
"RESOURCE_VISIBILITY_RESTRICTED": 20,
}
)Enum value maps for ResourceVisibility.
EncryptionStatus_name, EncryptionStatus_value
var (
EncryptionStatus_name = map[int32]string{
0: "ENCRYPTION_STATUS_UNSPECIFIED",
1: "ENCRYPTION_GOOGLE_MANAGED",
2: "ENCRYPTION_CUSTOMER_MANAGED",
}
EncryptionStatus_value = map[string]int32{
"ENCRYPTION_STATUS_UNSPECIFIED": 0,
"ENCRYPTION_GOOGLE_MANAGED": 1,
"ENCRYPTION_CUSTOMER_MANAGED": 2,
}
)Enum value maps for EncryptionStatus.
NullPercentageLevel_name, NullPercentageLevel_value
var (
NullPercentageLevel_name = map[int32]string{
0: "NULL_PERCENTAGE_LEVEL_UNSPECIFIED",
1: "NULL_PERCENTAGE_VERY_LOW",
2: "NULL_PERCENTAGE_LOW",
3: "NULL_PERCENTAGE_MEDIUM",
4: "NULL_PERCENTAGE_HIGH",
}
NullPercentageLevel_value = map[string]int32{
"NULL_PERCENTAGE_LEVEL_UNSPECIFIED": 0,
"NULL_PERCENTAGE_VERY_LOW": 1,
"NULL_PERCENTAGE_LOW": 2,
"NULL_PERCENTAGE_MEDIUM": 3,
"NULL_PERCENTAGE_HIGH": 4,
}
)Enum value maps for NullPercentageLevel.
UniquenessScoreLevel_name, UniquenessScoreLevel_value
var (
UniquenessScoreLevel_name = map[int32]string{
0: "UNIQUENESS_SCORE_LEVEL_UNSPECIFIED",
1: "UNIQUENESS_SCORE_LOW",
2: "UNIQUENESS_SCORE_MEDIUM",
3: "UNIQUENESS_SCORE_HIGH",
}
UniquenessScoreLevel_value = map[string]int32{
"UNIQUENESS_SCORE_LEVEL_UNSPECIFIED": 0,
"UNIQUENESS_SCORE_LOW": 1,
"UNIQUENESS_SCORE_MEDIUM": 2,
"UNIQUENESS_SCORE_HIGH": 3,
}
)Enum value maps for UniquenessScoreLevel.
ConnectionState_name, ConnectionState_value
var (
ConnectionState_name = map[int32]string{
0: "CONNECTION_STATE_UNSPECIFIED",
1: "MISSING_CREDENTIALS",
2: "AVAILABLE",
3: "ERROR",
}
ConnectionState_value = map[string]int32{
"CONNECTION_STATE_UNSPECIFIED": 0,
"MISSING_CREDENTIALS": 1,
"AVAILABLE": 2,
"ERROR": 3,
}
)Enum value maps for ConnectionState.
ByteContentItem_BytesType_name, ByteContentItem_BytesType_value
var (
ByteContentItem_BytesType_name = map[int32]string{
0: "BYTES_TYPE_UNSPECIFIED",
6: "IMAGE",
1: "IMAGE_JPEG",
2: "IMAGE_BMP",
3: "IMAGE_PNG",
4: "IMAGE_SVG",
5: "TEXT_UTF8",
7: "WORD_DOCUMENT",
8: "PDF",
9: "POWERPOINT_DOCUMENT",
10: "EXCEL_DOCUMENT",
11: "AVRO",
12: "CSV",
13: "TSV",
15: "AUDIO",
16: "VIDEO",
17: "EXECUTABLE",
18: "AI_MODEL",
}
ByteContentItem_BytesType_value = map[string]int32{
"BYTES_TYPE_UNSPECIFIED": 0,
"IMAGE": 6,
"IMAGE_JPEG": 1,
"IMAGE_BMP": 2,
"IMAGE_PNG": 3,
"IMAGE_SVG": 4,
"TEXT_UTF8": 5,
"WORD_DOCUMENT": 7,
"PDF": 8,
"POWERPOINT_DOCUMENT": 9,
"EXCEL_DOCUMENT": 10,
"AVRO": 11,
"CSV": 12,
"TSV": 13,
"AUDIO": 15,
"VIDEO": 16,
"EXECUTABLE": 17,
"AI_MODEL": 18,
}
)Enum value maps for ByteContentItem_BytesType.
OutputStorageConfig_OutputSchema_name, OutputStorageConfig_OutputSchema_value
var (
OutputStorageConfig_OutputSchema_name = map[int32]string{
0: "OUTPUT_SCHEMA_UNSPECIFIED",
1: "BASIC_COLUMNS",
2: "GCS_COLUMNS",
3: "DATASTORE_COLUMNS",
4: "BIG_QUERY_COLUMNS",
5: "ALL_COLUMNS",
}
OutputStorageConfig_OutputSchema_value = map[string]int32{
"OUTPUT_SCHEMA_UNSPECIFIED": 0,
"BASIC_COLUMNS": 1,
"GCS_COLUMNS": 2,
"DATASTORE_COLUMNS": 3,
"BIG_QUERY_COLUMNS": 4,
"ALL_COLUMNS": 5,
}
)Enum value maps for OutputStorageConfig_OutputSchema.
LocationSupport_RegionalizationScope_name, LocationSupport_RegionalizationScope_value
var (
LocationSupport_RegionalizationScope_name = map[int32]string{
0: "REGIONALIZATION_SCOPE_UNSPECIFIED",
1: "REGIONAL",
2: "ANY_LOCATION",
}
LocationSupport_RegionalizationScope_value = map[string]int32{
"REGIONALIZATION_SCOPE_UNSPECIFIED": 0,
"REGIONAL": 1,
"ANY_LOCATION": 2,
}
)Enum value maps for LocationSupport_RegionalizationScope.
InfoTypeCategory_LocationCategory_name, InfoTypeCategory_LocationCategory_value
var (
InfoTypeCategory_LocationCategory_name = map[int32]string{
0: "LOCATION_UNSPECIFIED",
1: "GLOBAL",
2: "ARGENTINA",
51: "ARMENIA",
3: "AUSTRALIA",
53: "AUSTRIA",
48: "AZERBAIJAN",
50: "BELARUS",
4: "BELGIUM",
5: "BRAZIL",
6: "CANADA",
7: "CHILE",
8: "CHINA",
9: "COLOMBIA",
42: "CROATIA",
52: "CZECHIA",
10: "DENMARK",
11: "FRANCE",
12: "FINLAND",
13: "GERMANY",
14: "HONG_KONG",
15: "INDIA",
16: "INDONESIA",
17: "IRELAND",
18: "ISRAEL",
19: "ITALY",
20: "JAPAN",
47: "KAZAKHSTAN",
21: "KOREA",
22: "MEXICO",
23: "THE_NETHERLANDS",
41: "NEW_ZEALAND",
24: "NORWAY",
25: "PARAGUAY",
26: "PERU",
27: "POLAND",
28: "PORTUGAL",
44: "RUSSIA",
29: "SINGAPORE",
30: "SOUTH_AFRICA",
31: "SPAIN",
32: "SWEDEN",
43: "SWITZERLAND",
33: "TAIWAN",
34: "THAILAND",
35: "TURKEY",
45: "UKRAINE",
36: "UNITED_KINGDOM",
37: "UNITED_STATES",
38: "URUGUAY",
46: "UZBEKISTAN",
39: "VENEZUELA",
40: "INTERNAL",
}
InfoTypeCategory_LocationCategory_value = map[string]int32{
"LOCATION_UNSPECIFIED": 0,
"GLOBAL": 1,
"ARGENTINA": 2,
"ARMENIA": 51,
"AUSTRALIA": 3,
"AUSTRIA": 53,
"AZERBAIJAN": 48,
"BELARUS": 50,
"BELGIUM": 4,
"BRAZIL": 5,
"CANADA": 6,
"CHILE": 7,
"CHINA": 8,
"COLOMBIA": 9,
"CROATIA": 42,
"CZECHIA": 52,
"DENMARK": 10,
"FRANCE": 11,
"FINLAND": 12,
"GERMANY": 13,
"HONG_KONG": 14,
"INDIA": 15,
"INDONESIA": 16,
"IRELAND": 17,
"ISRAEL": 18,
"ITALY": 19,
"JAPAN": 20,
"KAZAKHSTAN": 47,
"KOREA": 21,
"MEXICO": 22,
"THE_NETHERLANDS": 23,
"NEW_ZEALAND": 41,
"NORWAY": 24,
"PARAGUAY": 25,
"PERU": 26,
"POLAND": 27,
"PORTUGAL": 28,
"RUSSIA": 44,
"SINGAPORE": 29,
"SOUTH_AFRICA": 30,
"SPAIN": 31,
"SWEDEN": 32,
"SWITZERLAND": 43,
"TAIWAN": 33,
"THAILAND": 34,
"TURKEY": 35,
"UKRAINE": 45,
"UNITED_KINGDOM": 36,
"UNITED_STATES": 37,
"URUGUAY": 38,
"UZBEKISTAN": 46,
"VENEZUELA": 39,
"INTERNAL": 40,
}
)Enum value maps for InfoTypeCategory_LocationCategory.
InfoTypeCategory_IndustryCategory_name, InfoTypeCategory_IndustryCategory_value
var (
InfoTypeCategory_IndustryCategory_name = map[int32]string{
0: "INDUSTRY_UNSPECIFIED",
1: "FINANCE",
2: "HEALTH",
3: "TELECOMMUNICATIONS",
}
InfoTypeCategory_IndustryCategory_value = map[string]int32{
"INDUSTRY_UNSPECIFIED": 0,
"FINANCE": 1,
"HEALTH": 2,
"TELECOMMUNICATIONS": 3,
}
)Enum value maps for InfoTypeCategory_IndustryCategory.
InfoTypeCategory_TypeCategory_name, InfoTypeCategory_TypeCategory_value
var (
InfoTypeCategory_TypeCategory_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "PII",
2: "SPII",
3: "DEMOGRAPHIC",
4: "CREDENTIAL",
5: "GOVERNMENT_ID",
6: "DOCUMENT",
7: "CONTEXTUAL_INFORMATION",
8: "CUSTOM",
}
InfoTypeCategory_TypeCategory_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"PII": 1,
"SPII": 2,
"DEMOGRAPHIC": 3,
"CREDENTIAL": 4,
"GOVERNMENT_ID": 5,
"DOCUMENT": 6,
"CONTEXTUAL_INFORMATION": 7,
"CUSTOM": 8,
}
)Enum value maps for InfoTypeCategory_TypeCategory.
TimePartConfig_TimePart_name, TimePartConfig_TimePart_value
var (
TimePartConfig_TimePart_name = map[int32]string{
0: "TIME_PART_UNSPECIFIED",
1: "YEAR",
2: "MONTH",
3: "DAY_OF_MONTH",
4: "DAY_OF_WEEK",
5: "WEEK_OF_YEAR",
6: "HOUR_OF_DAY",
}
TimePartConfig_TimePart_value = map[string]int32{
"TIME_PART_UNSPECIFIED": 0,
"YEAR": 1,
"MONTH": 2,
"DAY_OF_MONTH": 3,
"DAY_OF_WEEK": 4,
"WEEK_OF_YEAR": 5,
"HOUR_OF_DAY": 6,
}
)Enum value maps for TimePartConfig_TimePart.
CharsToIgnore_CommonCharsToIgnore_name, CharsToIgnore_CommonCharsToIgnore_value
var (
CharsToIgnore_CommonCharsToIgnore_name = map[int32]string{
0: "COMMON_CHARS_TO_IGNORE_UNSPECIFIED",
1: "NUMERIC",
2: "ALPHA_UPPER_CASE",
3: "ALPHA_LOWER_CASE",
4: "PUNCTUATION",
5: "WHITESPACE",
}
CharsToIgnore_CommonCharsToIgnore_value = map[string]int32{
"COMMON_CHARS_TO_IGNORE_UNSPECIFIED": 0,
"NUMERIC": 1,
"ALPHA_UPPER_CASE": 2,
"ALPHA_LOWER_CASE": 3,
"PUNCTUATION": 4,
"WHITESPACE": 5,
}
)Enum value maps for CharsToIgnore_CommonCharsToIgnore.
CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet_name, CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet_value
var (
CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet_name = map[int32]string{
0: "FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED",
1: "NUMERIC",
2: "HEXADECIMAL",
3: "UPPER_CASE_ALPHA_NUMERIC",
4: "ALPHA_NUMERIC",
}
CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet_value = map[string]int32{
"FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED": 0,
"NUMERIC": 1,
"HEXADECIMAL": 2,
"UPPER_CASE_ALPHA_NUMERIC": 3,
"ALPHA_NUMERIC": 4,
}
)Enum value maps for CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet.
RecordCondition_Expressions_LogicalOperator_name, RecordCondition_Expressions_LogicalOperator_value
var (
RecordCondition_Expressions_LogicalOperator_name = map[int32]string{
0: "LOGICAL_OPERATOR_UNSPECIFIED",
1: "AND",
}
RecordCondition_Expressions_LogicalOperator_value = map[string]int32{
"LOGICAL_OPERATOR_UNSPECIFIED": 0,
"AND": 1,
}
)Enum value maps for RecordCondition_Expressions_LogicalOperator.
TransformationSummary_TransformationResultCode_name, TransformationSummary_TransformationResultCode_value
var (
TransformationSummary_TransformationResultCode_name = map[int32]string{
0: "TRANSFORMATION_RESULT_CODE_UNSPECIFIED",
1: "SUCCESS",
2: "ERROR",
}
TransformationSummary_TransformationResultCode_value = map[string]int32{
"TRANSFORMATION_RESULT_CODE_UNSPECIFIED": 0,
"SUCCESS": 1,
"ERROR": 2,
}
)Enum value maps for TransformationSummary_TransformationResultCode.
Error_ErrorExtraInfo_name, Error_ErrorExtraInfo_value
var (
Error_ErrorExtraInfo_name = map[int32]string{
0: "ERROR_INFO_UNSPECIFIED",
1: "IMAGE_SCAN_UNAVAILABLE_IN_REGION",
2: "FILE_STORE_CLUSTER_UNSUPPORTED",
}
Error_ErrorExtraInfo_value = map[string]int32{
"ERROR_INFO_UNSPECIFIED": 0,
"IMAGE_SCAN_UNAVAILABLE_IN_REGION": 1,
"FILE_STORE_CLUSTER_UNSUPPORTED": 2,
}
)Enum value maps for Error_ErrorExtraInfo.
JobTrigger_Status_name, JobTrigger_Status_value
var (
JobTrigger_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "HEALTHY",
2: "PAUSED",
3: "CANCELLED",
}
JobTrigger_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"HEALTHY": 1,
"PAUSED": 2,
"CANCELLED": 3,
}
)Enum value maps for JobTrigger_Status.
DataProfileAction_EventType_name, DataProfileAction_EventType_value
var (
DataProfileAction_EventType_name = map[int32]string{
0: "EVENT_TYPE_UNSPECIFIED",
1: "NEW_PROFILE",
2: "CHANGED_PROFILE",
3: "SCORE_INCREASED",
4: "ERROR_CHANGED",
}
DataProfileAction_EventType_value = map[string]int32{
"EVENT_TYPE_UNSPECIFIED": 0,
"NEW_PROFILE": 1,
"CHANGED_PROFILE": 2,
"SCORE_INCREASED": 3,
"ERROR_CHANGED": 4,
}
)Enum value maps for DataProfileAction_EventType.
DataProfileAction_PubSubNotification_DetailLevel_name, DataProfileAction_PubSubNotification_DetailLevel_value
var (
DataProfileAction_PubSubNotification_DetailLevel_name = map[int32]string{
0: "DETAIL_LEVEL_UNSPECIFIED",
1: "TABLE_PROFILE",
2: "RESOURCE_NAME",
3: "FILE_STORE_PROFILE",
}
DataProfileAction_PubSubNotification_DetailLevel_value = map[string]int32{
"DETAIL_LEVEL_UNSPECIFIED": 0,
"TABLE_PROFILE": 1,
"RESOURCE_NAME": 2,
"FILE_STORE_PROFILE": 3,
}
)Enum value maps for DataProfileAction_PubSubNotification_DetailLevel.
DiscoveryConfig_Status_name, DiscoveryConfig_Status_value
var (
DiscoveryConfig_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "RUNNING",
2: "PAUSED",
}
DiscoveryConfig_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"RUNNING": 1,
"PAUSED": 2,
}
)Enum value maps for DiscoveryConfig_Status.
DiscoveryCloudSqlConditions_DatabaseEngine_name, DiscoveryCloudSqlConditions_DatabaseEngine_value
var (
DiscoveryCloudSqlConditions_DatabaseEngine_name = map[int32]string{
0: "DATABASE_ENGINE_UNSPECIFIED",
1: "ALL_SUPPORTED_DATABASE_ENGINES",
2: "MYSQL",
3: "POSTGRES",
}
DiscoveryCloudSqlConditions_DatabaseEngine_value = map[string]int32{
"DATABASE_ENGINE_UNSPECIFIED": 0,
"ALL_SUPPORTED_DATABASE_ENGINES": 1,
"MYSQL": 2,
"POSTGRES": 3,
}
)Enum value maps for DiscoveryCloudSqlConditions_DatabaseEngine.
DiscoveryCloudSqlConditions_DatabaseResourceType_name, DiscoveryCloudSqlConditions_DatabaseResourceType_value
var (
DiscoveryCloudSqlConditions_DatabaseResourceType_name = map[int32]string{
0: "DATABASE_RESOURCE_TYPE_UNSPECIFIED",
1: "DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES",
2: "DATABASE_RESOURCE_TYPE_TABLE",
}
DiscoveryCloudSqlConditions_DatabaseResourceType_value = map[string]int32{
"DATABASE_RESOURCE_TYPE_UNSPECIFIED": 0,
"DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES": 1,
"DATABASE_RESOURCE_TYPE_TABLE": 2,
}
)Enum value maps for DiscoveryCloudSqlConditions_DatabaseResourceType.
DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification_name, DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification_value
var (
DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification_name = map[int32]string{
0: "SQL_SCHEMA_MODIFICATION_UNSPECIFIED",
1: "NEW_COLUMNS",
2: "REMOVED_COLUMNS",
}
DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification_value = map[string]int32{
"SQL_SCHEMA_MODIFICATION_UNSPECIFIED": 0,
"NEW_COLUMNS": 1,
"REMOVED_COLUMNS": 2,
}
)Enum value maps for DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification.
DiscoveryCloudStorageConditions_CloudStorageObjectAttribute_name, DiscoveryCloudStorageConditions_CloudStorageObjectAttribute_value
var (
DiscoveryCloudStorageConditions_CloudStorageObjectAttribute_name = map[int32]string{
0: "CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED",
1: "ALL_SUPPORTED_OBJECTS",
2: "STANDARD",
3: "NEARLINE",
4: "COLDLINE",
5: "ARCHIVE",
6: "REGIONAL",
7: "MULTI_REGIONAL",
8: "DURABLE_REDUCED_AVAILABILITY",
}
DiscoveryCloudStorageConditions_CloudStorageObjectAttribute_value = map[string]int32{
"CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED": 0,
"ALL_SUPPORTED_OBJECTS": 1,
"STANDARD": 2,
"NEARLINE": 3,
"COLDLINE": 4,
"ARCHIVE": 5,
"REGIONAL": 6,
"MULTI_REGIONAL": 7,
"DURABLE_REDUCED_AVAILABILITY": 8,
}
)Enum value maps for DiscoveryCloudStorageConditions_CloudStorageObjectAttribute.
DiscoveryCloudStorageConditions_CloudStorageBucketAttribute_name, DiscoveryCloudStorageConditions_CloudStorageBucketAttribute_value
var (
DiscoveryCloudStorageConditions_CloudStorageBucketAttribute_name = map[int32]string{
0: "CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED",
1: "ALL_SUPPORTED_BUCKETS",
2: "AUTOCLASS_DISABLED",
3: "AUTOCLASS_ENABLED",
}
DiscoveryCloudStorageConditions_CloudStorageBucketAttribute_value = map[string]int32{
"CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED": 0,
"ALL_SUPPORTED_BUCKETS": 1,
"AUTOCLASS_DISABLED": 2,
"AUTOCLASS_ENABLED": 3,
}
)Enum value maps for DiscoveryCloudStorageConditions_CloudStorageBucketAttribute.
AmazonS3BucketConditions_BucketType_name, AmazonS3BucketConditions_BucketType_value
var (
AmazonS3BucketConditions_BucketType_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "TYPE_ALL_SUPPORTED",
2: "TYPE_GENERAL_PURPOSE",
}
AmazonS3BucketConditions_BucketType_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"TYPE_ALL_SUPPORTED": 1,
"TYPE_GENERAL_PURPOSE": 2,
}
)Enum value maps for AmazonS3BucketConditions_BucketType.
AmazonS3BucketConditions_ObjectStorageClass_name, AmazonS3BucketConditions_ObjectStorageClass_value
var (
AmazonS3BucketConditions_ObjectStorageClass_name = map[int32]string{
0: "UNSPECIFIED",
1: "ALL_SUPPORTED_CLASSES",
2: "STANDARD",
4: "STANDARD_INFREQUENT_ACCESS",
6: "GLACIER_INSTANT_RETRIEVAL",
7: "INTELLIGENT_TIERING",
}
AmazonS3BucketConditions_ObjectStorageClass_value = map[string]int32{
"UNSPECIFIED": 0,
"ALL_SUPPORTED_CLASSES": 1,
"STANDARD": 2,
"STANDARD_INFREQUENT_ACCESS": 4,
"GLACIER_INSTANT_RETRIEVAL": 6,
"INTELLIGENT_TIERING": 7,
}
)Enum value maps for AmazonS3BucketConditions_ObjectStorageClass.
DlpJob_JobState_name, DlpJob_JobState_value
var (
DlpJob_JobState_name = map[int32]string{
0: "JOB_STATE_UNSPECIFIED",
1: "PENDING",
2: "RUNNING",
3: "DONE",
4: "CANCELED",
5: "FAILED",
6: "ACTIVE",
}
DlpJob_JobState_value = map[string]int32{
"JOB_STATE_UNSPECIFIED": 0,
"PENDING": 1,
"RUNNING": 2,
"DONE": 3,
"CANCELED": 4,
"FAILED": 5,
"ACTIVE": 6,
}
)Enum value maps for DlpJob_JobState.
DataRiskLevel_DataRiskLevelScore_name, DataRiskLevel_DataRiskLevelScore_value
var (
DataRiskLevel_DataRiskLevelScore_name = map[int32]string{
0: "RISK_SCORE_UNSPECIFIED",
10: "RISK_LOW",
12: "RISK_UNKNOWN",
20: "RISK_MODERATE",
30: "RISK_HIGH",
}
DataRiskLevel_DataRiskLevelScore_value = map[string]int32{
"RISK_SCORE_UNSPECIFIED": 0,
"RISK_LOW": 10,
"RISK_UNKNOWN": 12,
"RISK_MODERATE": 20,
"RISK_HIGH": 30,
}
)Enum value maps for DataRiskLevel_DataRiskLevelScore.
TableDataProfile_State_name, TableDataProfile_State_value
var (
TableDataProfile_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "RUNNING",
2: "DONE",
}
TableDataProfile_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"RUNNING": 1,
"DONE": 2,
}
)Enum value maps for TableDataProfile_State.
ColumnDataProfile_State_name, ColumnDataProfile_State_value
var (
ColumnDataProfile_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "RUNNING",
2: "DONE",
}
ColumnDataProfile_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"RUNNING": 1,
"DONE": 2,
}
)Enum value maps for ColumnDataProfile_State.
ColumnDataProfile_ColumnDataType_name, ColumnDataProfile_ColumnDataType_value
var (
ColumnDataProfile_ColumnDataType_name = map[int32]string{
0: "COLUMN_DATA_TYPE_UNSPECIFIED",
1: "TYPE_INT64",
2: "TYPE_BOOL",
3: "TYPE_FLOAT64",
4: "TYPE_STRING",
5: "TYPE_BYTES",
6: "TYPE_TIMESTAMP",
7: "TYPE_DATE",
8: "TYPE_TIME",
9: "TYPE_DATETIME",
10: "TYPE_GEOGRAPHY",
11: "TYPE_NUMERIC",
12: "TYPE_RECORD",
13: "TYPE_BIGNUMERIC",
14: "TYPE_JSON",
15: "TYPE_INTERVAL",
16: "TYPE_RANGE_DATE",
17: "TYPE_RANGE_DATETIME",
18: "TYPE_RANGE_TIMESTAMP",
}
ColumnDataProfile_ColumnDataType_value = map[string]int32{
"COLUMN_DATA_TYPE_UNSPECIFIED": 0,
"TYPE_INT64": 1,
"TYPE_BOOL": 2,
"TYPE_FLOAT64": 3,
"TYPE_STRING": 4,
"TYPE_BYTES": 5,
"TYPE_TIMESTAMP": 6,
"TYPE_DATE": 7,
"TYPE_TIME": 8,
"TYPE_DATETIME": 9,
"TYPE_GEOGRAPHY": 10,
"TYPE_NUMERIC": 11,
"TYPE_RECORD": 12,
"TYPE_BIGNUMERIC": 13,
"TYPE_JSON": 14,
"TYPE_INTERVAL": 15,
"TYPE_RANGE_DATE": 16,
"TYPE_RANGE_DATETIME": 17,
"TYPE_RANGE_TIMESTAMP": 18,
}
)Enum value maps for ColumnDataProfile_ColumnDataType.
ColumnDataProfile_ColumnPolicyState_name, ColumnDataProfile_ColumnPolicyState_value
var (
ColumnDataProfile_ColumnPolicyState_name = map[int32]string{
0: "COLUMN_POLICY_STATE_UNSPECIFIED",
1: "COLUMN_POLICY_TAGGED",
}
ColumnDataProfile_ColumnPolicyState_value = map[string]int32{
"COLUMN_POLICY_STATE_UNSPECIFIED": 0,
"COLUMN_POLICY_TAGGED": 1,
}
)Enum value maps for ColumnDataProfile_ColumnPolicyState.
FileStoreDataProfile_State_name, FileStoreDataProfile_State_value
var (
FileStoreDataProfile_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "RUNNING",
2: "DONE",
}
FileStoreDataProfile_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"RUNNING": 1,
"DONE": 2,
}
)Enum value maps for FileStoreDataProfile_State.
DataProfilePubSubCondition_ProfileScoreBucket_name, DataProfilePubSubCondition_ProfileScoreBucket_value
var (
DataProfilePubSubCondition_ProfileScoreBucket_name = map[int32]string{
0: "PROFILE_SCORE_BUCKET_UNSPECIFIED",
1: "HIGH",
2: "MEDIUM_OR_HIGH",
}
DataProfilePubSubCondition_ProfileScoreBucket_value = map[string]int32{
"PROFILE_SCORE_BUCKET_UNSPECIFIED": 0,
"HIGH": 1,
"MEDIUM_OR_HIGH": 2,
}
)Enum value maps for DataProfilePubSubCondition_ProfileScoreBucket.
DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator_name, DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator_value
var (
DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator_name = map[int32]string{
0: "LOGICAL_OPERATOR_UNSPECIFIED",
1: "OR",
2: "AND",
}
DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator_value = map[string]int32{
"LOGICAL_OPERATOR_UNSPECIFIED": 0,
"OR": 1,
"AND": 2,
}
)Enum value maps for DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator.
CloudSqlProperties_DatabaseEngine_name, CloudSqlProperties_DatabaseEngine_value
var (
CloudSqlProperties_DatabaseEngine_name = map[int32]string{
0: "DATABASE_ENGINE_UNKNOWN",
1: "DATABASE_ENGINE_MYSQL",
2: "DATABASE_ENGINE_POSTGRES",
}
CloudSqlProperties_DatabaseEngine_value = map[string]int32{
"DATABASE_ENGINE_UNKNOWN": 0,
"DATABASE_ENGINE_MYSQL": 1,
"DATABASE_ENGINE_POSTGRES": 2,
}
)Enum value maps for CloudSqlProperties_DatabaseEngine.
FileClusterType_Cluster_name, FileClusterType_Cluster_value
var (
FileClusterType_Cluster_name = map[int32]string{
0: "CLUSTER_UNSPECIFIED",
1: "CLUSTER_UNKNOWN",
2: "CLUSTER_TEXT",
3: "CLUSTER_STRUCTURED_DATA",
4: "CLUSTER_SOURCE_CODE",
5: "CLUSTER_RICH_DOCUMENT",
6: "CLUSTER_IMAGE",
7: "CLUSTER_ARCHIVE",
8: "CLUSTER_MULTIMEDIA",
9: "CLUSTER_EXECUTABLE",
10: "CLUSTER_AI_MODEL",
}
FileClusterType_Cluster_value = map[string]int32{
"CLUSTER_UNSPECIFIED": 0,
"CLUSTER_UNKNOWN": 1,
"CLUSTER_TEXT": 2,
"CLUSTER_STRUCTURED_DATA": 3,
"CLUSTER_SOURCE_CODE": 4,
"CLUSTER_RICH_DOCUMENT": 5,
"CLUSTER_IMAGE": 6,
"CLUSTER_ARCHIVE": 7,
"CLUSTER_MULTIMEDIA": 8,
"CLUSTER_EXECUTABLE": 9,
"CLUSTER_AI_MODEL": 10,
}
)Enum value maps for FileClusterType_Cluster.
Domain_Category_name, Domain_Category_value
var (
Domain_Category_name = map[int32]string{
0: "CATEGORY_UNSPECIFIED",
1: "AI",
2: "CODE",
}
Domain_Category_value = map[string]int32{
"CATEGORY_UNSPECIFIED": 0,
"AI": 1,
"CODE": 2,
}
)Enum value maps for Domain_Category.
Domain_Signal_name, Domain_Signal_value
var (
Domain_Signal_name = map[int32]string{
0: "SIGNAL_UNSPECIFIED",
1: "MODEL",
2: "TEXT_EMBEDDING",
3: "VERTEX_PLUGIN",
4: "VECTOR_PLUGIN",
5: "SOURCE_CODE",
6: "SERVICE",
}
Domain_Signal_value = map[string]int32{
"SIGNAL_UNSPECIFIED": 0,
"MODEL": 1,
"TEXT_EMBEDDING": 2,
"VERTEX_PLUGIN": 3,
"VECTOR_PLUGIN": 4,
"SOURCE_CODE": 5,
"SERVICE": 6,
}
)Enum value maps for Domain_Signal.
Likelihood_name, Likelihood_value
var (
Likelihood_name = map[int32]string{
0: "LIKELIHOOD_UNSPECIFIED",
1: "VERY_UNLIKELY",
2: "UNLIKELY",
3: "POSSIBLE",
4: "LIKELY",
5: "VERY_LIKELY",
}
Likelihood_value = map[string]int32{
"LIKELIHOOD_UNSPECIFIED": 0,
"VERY_UNLIKELY": 1,
"UNLIKELY": 2,
"POSSIBLE": 3,
"LIKELY": 4,
"VERY_LIKELY": 5,
}
)Enum value maps for Likelihood.
FileType_name, FileType_value
var (
FileType_name = map[int32]string{
0: "FILE_TYPE_UNSPECIFIED",
1: "BINARY_FILE",
2: "TEXT_FILE",
3: "IMAGE",
5: "WORD",
6: "PDF",
7: "AVRO",
8: "CSV",
9: "TSV",
11: "POWERPOINT",
12: "EXCEL",
}
FileType_value = map[string]int32{
"FILE_TYPE_UNSPECIFIED": 0,
"BINARY_FILE": 1,
"TEXT_FILE": 2,
"IMAGE": 3,
"WORD": 5,
"PDF": 6,
"AVRO": 7,
"CSV": 8,
"TSV": 9,
"POWERPOINT": 11,
"EXCEL": 12,
}
)Enum value maps for FileType.
SensitivityScore_SensitivityScoreLevel_name, SensitivityScore_SensitivityScoreLevel_value
var (
SensitivityScore_SensitivityScoreLevel_name = map[int32]string{
0: "SENSITIVITY_SCORE_UNSPECIFIED",
10: "SENSITIVITY_LOW",
12: "SENSITIVITY_UNKNOWN",
20: "SENSITIVITY_MODERATE",
30: "SENSITIVITY_HIGH",
}
SensitivityScore_SensitivityScoreLevel_value = map[string]int32{
"SENSITIVITY_SCORE_UNSPECIFIED": 0,
"SENSITIVITY_LOW": 10,
"SENSITIVITY_UNKNOWN": 12,
"SENSITIVITY_MODERATE": 20,
"SENSITIVITY_HIGH": 30,
}
)Enum value maps for SensitivityScore_SensitivityScoreLevel.
CustomInfoType_ExclusionType_name, CustomInfoType_ExclusionType_value
var (
CustomInfoType_ExclusionType_name = map[int32]string{
0: "EXCLUSION_TYPE_UNSPECIFIED",
1: "EXCLUSION_TYPE_EXCLUDE",
}
CustomInfoType_ExclusionType_value = map[string]int32{
"EXCLUSION_TYPE_UNSPECIFIED": 0,
"EXCLUSION_TYPE_EXCLUDE": 1,
}
)Enum value maps for CustomInfoType_ExclusionType.
CloudStorageOptions_SampleMethod_name, CloudStorageOptions_SampleMethod_value
var (
CloudStorageOptions_SampleMethod_name = map[int32]string{
0: "SAMPLE_METHOD_UNSPECIFIED",
1: "TOP",
2: "RANDOM_START",
}
CloudStorageOptions_SampleMethod_value = map[string]int32{
"SAMPLE_METHOD_UNSPECIFIED": 0,
"TOP": 1,
"RANDOM_START": 2,
}
)Enum value maps for CloudStorageOptions_SampleMethod.
BigQueryOptions_SampleMethod_name, BigQueryOptions_SampleMethod_value
var (
BigQueryOptions_SampleMethod_name = map[int32]string{
0: "SAMPLE_METHOD_UNSPECIFIED",
1: "TOP",
2: "RANDOM_START",
}
BigQueryOptions_SampleMethod_value = map[string]int32{
"SAMPLE_METHOD_UNSPECIFIED": 0,
"TOP": 1,
"RANDOM_START": 2,
}
)Enum value maps for BigQueryOptions_SampleMethod.
DlpService_ServiceDesc
var DlpService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.privacy.dlp.v2.DlpService",
HandlerType: (*DlpServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "InspectContent",
Handler: _DlpService_InspectContent_Handler,
},
{
MethodName: "RedactImage",
Handler: _DlpService_RedactImage_Handler,
},
{
MethodName: "DeidentifyContent",
Handler: _DlpService_DeidentifyContent_Handler,
},
{
MethodName: "ReidentifyContent",
Handler: _DlpService_ReidentifyContent_Handler,
},
{
MethodName: "ListInfoTypes",
Handler: _DlpService_ListInfoTypes_Handler,
},
{
MethodName: "CreateInspectTemplate",
Handler: _DlpService_CreateInspectTemplate_Handler,
},
{
MethodName: "UpdateInspectTemplate",
Handler: _DlpService_UpdateInspectTemplate_Handler,
},
{
MethodName: "GetInspectTemplate",
Handler: _DlpService_GetInspectTemplate_Handler,
},
{
MethodName: "ListInspectTemplates",
Handler: _DlpService_ListInspectTemplates_Handler,
},
{
MethodName: "DeleteInspectTemplate",
Handler: _DlpService_DeleteInspectTemplate_Handler,
},
{
MethodName: "CreateDeidentifyTemplate",
Handler: _DlpService_CreateDeidentifyTemplate_Handler,
},
{
MethodName: "UpdateDeidentifyTemplate",
Handler: _DlpService_UpdateDeidentifyTemplate_Handler,
},
{
MethodName: "GetDeidentifyTemplate",
Handler: _DlpService_GetDeidentifyTemplate_Handler,
},
{
MethodName: "ListDeidentifyTemplates",
Handler: _DlpService_ListDeidentifyTemplates_Handler,
},
{
MethodName: "DeleteDeidentifyTemplate",
Handler: _DlpService_DeleteDeidentifyTemplate_Handler,
},
{
MethodName: "CreateJobTrigger",
Handler: _DlpService_CreateJobTrigger_Handler,
},
{
MethodName: "UpdateJobTrigger",
Handler: _DlpService_UpdateJobTrigger_Handler,
},
{
MethodName: "HybridInspectJobTrigger",
Handler: _DlpService_HybridInspectJobTrigger_Handler,
},
{
MethodName: "GetJobTrigger",
Handler: _DlpService_GetJobTrigger_Handler,
},
{
MethodName: "ListJobTriggers",
Handler: _DlpService_ListJobTriggers_Handler,
},
{
MethodName: "DeleteJobTrigger",
Handler: _DlpService_DeleteJobTrigger_Handler,
},
{
MethodName: "ActivateJobTrigger",
Handler: _DlpService_ActivateJobTrigger_Handler,
},
{
MethodName: "CreateDiscoveryConfig",
Handler: _DlpService_CreateDiscoveryConfig_Handler,
},
{
MethodName: "UpdateDiscoveryConfig",
Handler: _DlpService_UpdateDiscoveryConfig_Handler,
},
{
MethodName: "GetDiscoveryConfig",
Handler: _DlpService_GetDiscoveryConfig_Handler,
},
{
MethodName: "ListDiscoveryConfigs",
Handler: _DlpService_ListDiscoveryConfigs_Handler,
},
{
MethodName: "DeleteDiscoveryConfig",
Handler: _DlpService_DeleteDiscoveryConfig_Handler,
},
{
MethodName: "CreateDlpJob",
Handler: _DlpService_CreateDlpJob_Handler,
},
{
MethodName: "ListDlpJobs",
Handler: _DlpService_ListDlpJobs_Handler,
},
{
MethodName: "GetDlpJob",
Handler: _DlpService_GetDlpJob_Handler,
},
{
MethodName: "DeleteDlpJob",
Handler: _DlpService_DeleteDlpJob_Handler,
},
{
MethodName: "CancelDlpJob",
Handler: _DlpService_CancelDlpJob_Handler,
},
{
MethodName: "CreateStoredInfoType",
Handler: _DlpService_CreateStoredInfoType_Handler,
},
{
MethodName: "UpdateStoredInfoType",
Handler: _DlpService_UpdateStoredInfoType_Handler,
},
{
MethodName: "GetStoredInfoType",
Handler: _DlpService_GetStoredInfoType_Handler,
},
{
MethodName: "ListStoredInfoTypes",
Handler: _DlpService_ListStoredInfoTypes_Handler,
},
{
MethodName: "DeleteStoredInfoType",
Handler: _DlpService_DeleteStoredInfoType_Handler,
},
{
MethodName: "ListProjectDataProfiles",
Handler: _DlpService_ListProjectDataProfiles_Handler,
},
{
MethodName: "ListTableDataProfiles",
Handler: _DlpService_ListTableDataProfiles_Handler,
},
{
MethodName: "ListColumnDataProfiles",
Handler: _DlpService_ListColumnDataProfiles_Handler,
},
{
MethodName: "GetProjectDataProfile",
Handler: _DlpService_GetProjectDataProfile_Handler,
},
{
MethodName: "ListFileStoreDataProfiles",
Handler: _DlpService_ListFileStoreDataProfiles_Handler,
},
{
MethodName: "GetFileStoreDataProfile",
Handler: _DlpService_GetFileStoreDataProfile_Handler,
},
{
MethodName: "DeleteFileStoreDataProfile",
Handler: _DlpService_DeleteFileStoreDataProfile_Handler,
},
{
MethodName: "GetTableDataProfile",
Handler: _DlpService_GetTableDataProfile_Handler,
},
{
MethodName: "GetColumnDataProfile",
Handler: _DlpService_GetColumnDataProfile_Handler,
},
{
MethodName: "DeleteTableDataProfile",
Handler: _DlpService_DeleteTableDataProfile_Handler,
},
{
MethodName: "HybridInspectDlpJob",
Handler: _DlpService_HybridInspectDlpJob_Handler,
},
{
MethodName: "FinishDlpJob",
Handler: _DlpService_FinishDlpJob_Handler,
},
{
MethodName: "CreateConnection",
Handler: _DlpService_CreateConnection_Handler,
},
{
MethodName: "GetConnection",
Handler: _DlpService_GetConnection_Handler,
},
{
MethodName: "ListConnections",
Handler: _DlpService_ListConnections_Handler,
},
{
MethodName: "SearchConnections",
Handler: _DlpService_SearchConnections_Handler,
},
{
MethodName: "DeleteConnection",
Handler: _DlpService_DeleteConnection_Handler,
},
{
MethodName: "UpdateConnection",
Handler: _DlpService_UpdateConnection_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/privacy/dlp/v2/dlp.proto",
}DlpService_ServiceDesc is the grpc.ServiceDesc for DlpService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
File_google_privacy_dlp_v2_dlp_proto
var File_google_privacy_dlp_v2_dlp_proto protoreflect.FileDescriptorFile_google_privacy_dlp_v2_storage_proto
var File_google_privacy_dlp_v2_storage_proto protoreflect.FileDescriptorFunctions
func RegisterDlpServiceServer
func RegisterDlpServiceServer(s grpc.ServiceRegistrar, srv DlpServiceServer)Action
type Action struct {
// Extra events to execute after the job has finished.
//
// Types that are assignable to Action:
//
// *Action_SaveFindings_
// *Action_PubSub
// *Action_PublishSummaryToCscc_
// *Action_PublishFindingsToCloudDataCatalog_
// *Action_PublishFindingsToDataplexCatalog_
// *Action_Deidentify_
// *Action_JobNotificationEmails_
// *Action_PublishToStackdriver_
Action isAction_Action `protobuf_oneof:"action"`
// contains filtered or unexported fields
}A task to execute on the completion of a job. See https://cloud.google.com/sensitive-data-protection/docs/concepts-actions to learn more.
func (*Action) Descriptor
Deprecated: Use Action.ProtoReflect.Descriptor instead.
func (*Action) GetAction
func (m *Action) GetAction() isAction_Actionfunc (*Action) GetDeidentify
func (x *Action) GetDeidentify() *Action_Deidentifyfunc (*Action) GetJobNotificationEmails
func (x *Action) GetJobNotificationEmails() *Action_JobNotificationEmailsfunc (*Action) GetPubSub
func (x *Action) GetPubSub() *Action_PublishToPubSubfunc (*Action) GetPublishFindingsToCloudDataCatalog
func (x *Action) GetPublishFindingsToCloudDataCatalog() *Action_PublishFindingsToCloudDataCatalogfunc (*Action) GetPublishFindingsToDataplexCatalog
func (x *Action) GetPublishFindingsToDataplexCatalog() *Action_PublishFindingsToDataplexCatalogfunc (*Action) GetPublishSummaryToCscc
func (x *Action) GetPublishSummaryToCscc() *Action_PublishSummaryToCsccfunc (*Action) GetPublishToStackdriver
func (x *Action) GetPublishToStackdriver() *Action_PublishToStackdriverfunc (*Action) GetSaveFindings
func (x *Action) GetSaveFindings() *Action_SaveFindingsfunc (*Action) ProtoMessage
func (*Action) ProtoMessage()func (*Action) ProtoReflect
func (x *Action) ProtoReflect() protoreflect.Messagefunc (*Action) Reset
func (x *Action) Reset()func (*Action) String
ActionDetails
type ActionDetails struct {
// Summary of what occurred in the actions.
//
// Types that are assignable to Details:
//
// *ActionDetails_DeidentifyDetails
Details isActionDetails_Details `protobuf_oneof:"details"`
// contains filtered or unexported fields
}The results of an [Action][google.privacy.dlp.v2.Action].
func (*ActionDetails) Descriptor
func (*ActionDetails) Descriptor() ([]byte, []int)Deprecated: Use ActionDetails.ProtoReflect.Descriptor instead.
func (*ActionDetails) GetDeidentifyDetails
func (x *ActionDetails) GetDeidentifyDetails() *DeidentifyDataSourceDetailsfunc (*ActionDetails) GetDetails
func (m *ActionDetails) GetDetails() isActionDetails_Detailsfunc (*ActionDetails) ProtoMessage
func (*ActionDetails) ProtoMessage()func (*ActionDetails) ProtoReflect
func (x *ActionDetails) ProtoReflect() protoreflect.Messagefunc (*ActionDetails) Reset
func (x *ActionDetails) Reset()func (*ActionDetails) String
func (x *ActionDetails) String() stringActionDetails_DeidentifyDetails
type ActionDetails_DeidentifyDetails struct {
// Outcome of a de-identification action.
DeidentifyDetails *DeidentifyDataSourceDetails `protobuf:"bytes,1,opt,name=deidentify_details,json=deidentifyDetails,proto3,oneof"`
}Action_Deidentify
type Action_Deidentify struct {
// User specified deidentify templates and configs for structured,
// unstructured, and image files.
TransformationConfig *TransformationConfig `protobuf:"bytes,7,opt,name=transformation_config,json=transformationConfig,proto3" json:"transformation_config,omitempty"`
// Config for storing transformation details.
//
// This field specifies the configuration for storing detailed metadata
// about each transformation performed during a de-identification process.
// The metadata is stored separately from the de-identified content itself
// and provides a granular record of both successful transformations and any
// failures that occurred.
//
// Enabling this configuration is essential for users who need to access
// comprehensive information about the status, outcome, and specifics of
// each transformation. The details are captured in the
// [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
// message for each operation.
//
// Key use cases:
//
// * **Auditing and compliance**
// - Provides a verifiable audit trail of de-identification activities,
// which is crucial for meeting regulatory requirements and internal
// data governance policies.
// - Logs what data was transformed, what transformations were applied,
// when they occurred, and their success status. This helps
// demonstrate accountability and due diligence in protecting
// sensitive data.
//
// * **Troubleshooting and debugging**
// - Offers detailed error messages and context if a transformation
// fails. This information is useful for diagnosing and resolving
// issues in the de-identification pipeline.
// - Helps pinpoint the exact location and nature of failures, speeding
// up the debugging process.
//
// * **Process verification and quality assurance**
// - Allows users to confirm that de-identification rules and
// transformations were applied correctly and consistently across
// the dataset as intended.
// - Helps in verifying the effectiveness of the chosen
// de-identification strategies.
//
// * **Data lineage and impact analysis**
// - Creates a record of how data elements were modified, contributing
// to data lineage. This is useful for understanding the provenance
// of de-identified data.
// - Aids in assessing the potential impact of de-identification choices
// on downstream analytical processes or data usability.
//
// * **Reporting and operational insights**
// - You can analyze the metadata stored in a queryable BigQuery table
// to generate reports on transformation success rates, common
// error types, processing volumes (e.g., transformedBytes), and the
// types of transformations applied.
// - These insights can inform optimization of de-identification
// configurations and resource planning.
//
// To take advantage of these benefits, set this configuration. The stored
// details include a description of the transformation, success or
// error codes, error messages, the number of bytes transformed, the
// location of the transformed content, and identifiers for the job and
// source data.
TransformationDetailsStorageConfig *TransformationDetailsStorageConfig `protobuf:"bytes,3,opt,name=transformation_details_storage_config,json=transformationDetailsStorageConfig,proto3" json:"transformation_details_storage_config,omitempty"`
// Where to store the output.
//
// Types that are assignable to Output:
//
// *Action_Deidentify_CloudStorageOutput
Output isAction_Deidentify_Output `protobuf_oneof:"output"`
// List of user-specified file type groups to transform. If specified, only
// the files with these file types are transformed. If empty, all
// supported files are transformed. Supported types may be automatically
// added over time. Any unsupported file types that are set in this field
// are excluded from de-identification. An error is recorded for each
// unsupported file in the TransformationDetails output table. Currently the
// only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
FileTypesToTransform []FileType `protobuf:"varint,8,rep,packed,name=file_types_to_transform,json=fileTypesToTransform,proto3,enum=google.privacy.dlp.v2.FileType" json:"file_types_to_transform,omitempty"`
// contains filtered or unexported fields
}Create a de-identified copy of a storage bucket. Only compatible with Cloud Storage buckets.
A TransformationDetail will be created for each transformation.
Compatible with: Inspection of Cloud Storage
func (*Action_Deidentify) Descriptor
func (*Action_Deidentify) Descriptor() ([]byte, []int)Deprecated: Use Action_Deidentify.ProtoReflect.Descriptor instead.
func (*Action_Deidentify) GetCloudStorageOutput
func (x *Action_Deidentify) GetCloudStorageOutput() stringfunc (*Action_Deidentify) GetFileTypesToTransform
func (x *Action_Deidentify) GetFileTypesToTransform() []FileTypefunc (*Action_Deidentify) GetOutput
func (m *Action_Deidentify) GetOutput() isAction_Deidentify_Outputfunc (*Action_Deidentify) GetTransformationConfig
func (x *Action_Deidentify) GetTransformationConfig() *TransformationConfigfunc (*Action_Deidentify) GetTransformationDetailsStorageConfig
func (x *Action_Deidentify) GetTransformationDetailsStorageConfig() *TransformationDetailsStorageConfigfunc (*Action_Deidentify) ProtoMessage
func (*Action_Deidentify) ProtoMessage()func (*Action_Deidentify) ProtoReflect
func (x *Action_Deidentify) ProtoReflect() protoreflect.Messagefunc (*Action_Deidentify) Reset
func (x *Action_Deidentify) Reset()func (*Action_Deidentify) String
func (x *Action_Deidentify) String() stringAction_Deidentify_
type Action_Deidentify_ struct {
// Create a de-identified copy of the input data.
Deidentify *Action_Deidentify `protobuf:"bytes,7,opt,name=deidentify,proto3,oneof"`
}Action_Deidentify_CloudStorageOutput
type Action_Deidentify_CloudStorageOutput struct {
// Required. User settable Cloud Storage bucket and folders to store
// de-identified files. This field must be set for Cloud Storage
// deidentification. The output Cloud Storage bucket must be different
// from the input bucket. De-identified files will overwrite files in the
// output path.
//
// Form of: gs://bucket/folder/ or gs://bucket
CloudStorageOutput string `protobuf:"bytes,9,opt,name=cloud_storage_output,json=cloudStorageOutput,proto3,oneof"`
}Action_JobNotificationEmails
type Action_JobNotificationEmails struct {
// contains filtered or unexported fields
}Sends an email when the job completes. The email goes to IAM project owners and technical Essential Contacts.
func (*Action_JobNotificationEmails) Descriptor
func (*Action_JobNotificationEmails) Descriptor() ([]byte, []int)Deprecated: Use Action_JobNotificationEmails.ProtoReflect.Descriptor instead.
func (*Action_JobNotificationEmails) ProtoMessage
func (*Action_JobNotificationEmails) ProtoMessage()func (*Action_JobNotificationEmails) ProtoReflect
func (x *Action_JobNotificationEmails) ProtoReflect() protoreflect.Messagefunc (*Action_JobNotificationEmails) Reset
func (x *Action_JobNotificationEmails) Reset()func (*Action_JobNotificationEmails) String
func (x *Action_JobNotificationEmails) String() stringAction_JobNotificationEmails_
type Action_JobNotificationEmails_ struct {
// Sends an email when the job completes. The email goes to IAM project
// owners and technical [Essential
// Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).
JobNotificationEmails *Action_JobNotificationEmails `protobuf:"bytes,8,opt,name=job_notification_emails,json=jobNotificationEmails,proto3,oneof"`
}Action_PubSub
type Action_PubSub struct {
// Publish a notification to a Pub/Sub topic.
PubSub *Action_PublishToPubSub `protobuf:"bytes,2,opt,name=pub_sub,json=pubSub,proto3,oneof"`
}Action_PublishFindingsToCloudDataCatalog
type Action_PublishFindingsToCloudDataCatalog struct {
// contains filtered or unexported fields
}Publish findings of a DlpJob to Data Catalog. In Data Catalog, tag
templates are applied to the resource that Cloud DLP scanned. Data
Catalog tag templates are stored in the same project and region where the
BigQuery table exists. For Cloud DLP to create and apply the tag template,
the Cloud DLP service agent must have the
roles/datacatalog.tagTemplateOwner permission on the project. The tag
template contains fields summarizing the results of the DlpJob. Any field
values previously written by another DlpJob are deleted. [InfoType naming
patterns][google.privacy.dlp.v2.InfoType] are strictly enforced when using
this feature.
Findings are persisted in Data Catalog storage and are governed by service-specific policies for Data Catalog. For more information, see Service Specific Terms.
Only a single instance of this action can be specified. This action is allowed only if all resources being scanned are BigQuery tables. Compatible with: Inspect
func (*Action_PublishFindingsToCloudDataCatalog) Descriptor
func (*Action_PublishFindingsToCloudDataCatalog) Descriptor() ([]byte, []int)Deprecated: Use Action_PublishFindingsToCloudDataCatalog.ProtoReflect.Descriptor instead.
func (*Action_PublishFindingsToCloudDataCatalog) ProtoMessage
func (*Action_PublishFindingsToCloudDataCatalog) ProtoMessage()func (*Action_PublishFindingsToCloudDataCatalog) ProtoReflect
func (x *Action_PublishFindingsToCloudDataCatalog) ProtoReflect() protoreflect.Messagefunc (*Action_PublishFindingsToCloudDataCatalog) Reset
func (x *Action_PublishFindingsToCloudDataCatalog) Reset()func (*Action_PublishFindingsToCloudDataCatalog) String
func (x *Action_PublishFindingsToCloudDataCatalog) String() stringAction_PublishFindingsToCloudDataCatalog_
type Action_PublishFindingsToCloudDataCatalog_ struct {
// Publish findings to Cloud Datahub.
PublishFindingsToCloudDataCatalog *Action_PublishFindingsToCloudDataCatalog `protobuf:"bytes,5,opt,name=publish_findings_to_cloud_data_catalog,json=publishFindingsToCloudDataCatalog,proto3,oneof"`
}Action_PublishFindingsToDataplexCatalog
type Action_PublishFindingsToDataplexCatalog struct {
// contains filtered or unexported fields
}Publish findings of a DlpJob to Dataplex Universal Catalog as a
sensitive-data-protection-job-result aspect. For more information,
see Send inspection results to Dataplex Universal Catalog as
aspects.
Aspects are stored in Dataplex Universal Catalog storage and are governed by service-specific policies for Dataplex Universal Catalog. For more information, see Service Specific Terms.
Only a single instance of this action can be specified. This action is allowed only if all resources being scanned are BigQuery tables. Compatible with: Inspect
func (*Action_PublishFindingsToDataplexCatalog) Descriptor
func (*Action_PublishFindingsToDataplexCatalog) Descriptor() ([]byte, []int)Deprecated: Use Action_PublishFindingsToDataplexCatalog.ProtoReflect.Descriptor instead.
func (*Action_PublishFindingsToDataplexCatalog) ProtoMessage
func (*Action_PublishFindingsToDataplexCatalog) ProtoMessage()func (*Action_PublishFindingsToDataplexCatalog) ProtoReflect
func (x *Action_PublishFindingsToDataplexCatalog) ProtoReflect() protoreflect.Messagefunc (*Action_PublishFindingsToDataplexCatalog) Reset
func (x *Action_PublishFindingsToDataplexCatalog) Reset()func (*Action_PublishFindingsToDataplexCatalog) String
func (x *Action_PublishFindingsToDataplexCatalog) String() stringAction_PublishFindingsToDataplexCatalog_
type Action_PublishFindingsToDataplexCatalog_ struct {
// Publish findings as an aspect to Dataplex Universal Catalog.
PublishFindingsToDataplexCatalog *Action_PublishFindingsToDataplexCatalog `protobuf:"bytes,10,opt,name=publish_findings_to_dataplex_catalog,json=publishFindingsToDataplexCatalog,proto3,oneof"`
}Action_PublishSummaryToCscc
type Action_PublishSummaryToCscc struct {
// contains filtered or unexported fields
}Publish the result summary of a DlpJob to Security Command Center. This action is available for only projects that belong to an organization. This action publishes the count of finding instances and their infoTypes. The summary of findings are persisted in Security Command Center and are governed by service-specific policies for Security Command Center. Only a single instance of this action can be specified. Compatible with: Inspect
func (*Action_PublishSummaryToCscc) Descriptor
func (*Action_PublishSummaryToCscc) Descriptor() ([]byte, []int)Deprecated: Use Action_PublishSummaryToCscc.ProtoReflect.Descriptor instead.
func (*Action_PublishSummaryToCscc) ProtoMessage
func (*Action_PublishSummaryToCscc) ProtoMessage()func (*Action_PublishSummaryToCscc) ProtoReflect
func (x *Action_PublishSummaryToCscc) ProtoReflect() protoreflect.Messagefunc (*Action_PublishSummaryToCscc) Reset
func (x *Action_PublishSummaryToCscc) Reset()func (*Action_PublishSummaryToCscc) String
func (x *Action_PublishSummaryToCscc) String() stringAction_PublishSummaryToCscc_
type Action_PublishSummaryToCscc_ struct {
// Publish summary to Cloud Security Command Center (Alpha).
PublishSummaryToCscc *Action_PublishSummaryToCscc `protobuf:"bytes,3,opt,name=publish_summary_to_cscc,json=publishSummaryToCscc,proto3,oneof"`
}Action_PublishToPubSub
type Action_PublishToPubSub struct {
// Cloud Pub/Sub topic to send notifications to. The topic must have given
// publishing access rights to the DLP API service account executing
// the long running DlpJob sending the notifications.
// Format is projects/{project}/topics/{topic}.
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
// contains filtered or unexported fields
}Publish a message into a given Pub/Sub topic when DlpJob has completed. The
message contains a single field, DlpJobName, which is equal to the
finished job's
DlpJob.name.
Compatible with: Inspect, Risk
func (*Action_PublishToPubSub) Descriptor
func (*Action_PublishToPubSub) Descriptor() ([]byte, []int)Deprecated: Use Action_PublishToPubSub.ProtoReflect.Descriptor instead.
func (*Action_PublishToPubSub) GetTopic
func (x *Action_PublishToPubSub) GetTopic() stringfunc (*Action_PublishToPubSub) ProtoMessage
func (*Action_PublishToPubSub) ProtoMessage()func (*Action_PublishToPubSub) ProtoReflect
func (x *Action_PublishToPubSub) ProtoReflect() protoreflect.Messagefunc (*Action_PublishToPubSub) Reset
func (x *Action_PublishToPubSub) Reset()func (*Action_PublishToPubSub) String
func (x *Action_PublishToPubSub) String() stringAction_PublishToStackdriver
type Action_PublishToStackdriver struct {
// contains filtered or unexported fields
}Enable Stackdriver metric dlp.googleapis.com/finding_count. This will publish a metric to stack driver on each infotype requested and how many findings were found for it. CustomDetectors will be bucketed as 'Custom' under the Stackdriver label 'info_type'.
func (*Action_PublishToStackdriver) Descriptor
func (*Action_PublishToStackdriver) Descriptor() ([]byte, []int)Deprecated: Use Action_PublishToStackdriver.ProtoReflect.Descriptor instead.
func (*Action_PublishToStackdriver) ProtoMessage
func (*Action_PublishToStackdriver) ProtoMessage()func (*Action_PublishToStackdriver) ProtoReflect
func (x *Action_PublishToStackdriver) ProtoReflect() protoreflect.Messagefunc (*Action_PublishToStackdriver) Reset
func (x *Action_PublishToStackdriver) Reset()func (*Action_PublishToStackdriver) String
func (x *Action_PublishToStackdriver) String() stringAction_PublishToStackdriver_
type Action_PublishToStackdriver_ struct {
// Enable Stackdriver metric dlp.googleapis.com/finding_count.
PublishToStackdriver *Action_PublishToStackdriver `protobuf:"bytes,9,opt,name=publish_to_stackdriver,json=publishToStackdriver,proto3,oneof"`
}Action_SaveFindings
type Action_SaveFindings struct {
// Location to store findings outside of DLP.
OutputConfig *OutputStorageConfig `protobuf:"bytes,1,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
// contains filtered or unexported fields
}If set, the detailed findings will be persisted to the specified OutputStorageConfig. Only a single instance of this action can be specified. Compatible with: Inspect, Risk
func (*Action_SaveFindings) Descriptor
func (*Action_SaveFindings) Descriptor() ([]byte, []int)Deprecated: Use Action_SaveFindings.ProtoReflect.Descriptor instead.
func (*Action_SaveFindings) GetOutputConfig
func (x *Action_SaveFindings) GetOutputConfig() *OutputStorageConfigfunc (*Action_SaveFindings) ProtoMessage
func (*Action_SaveFindings) ProtoMessage()func (*Action_SaveFindings) ProtoReflect
func (x *Action_SaveFindings) ProtoReflect() protoreflect.Messagefunc (*Action_SaveFindings) Reset
func (x *Action_SaveFindings) Reset()func (*Action_SaveFindings) String
func (x *Action_SaveFindings) String() stringAction_SaveFindings_
type Action_SaveFindings_ struct {
// Save resulting findings in a provided location.
SaveFindings *Action_SaveFindings `protobuf:"bytes,1,opt,name=save_findings,json=saveFindings,proto3,oneof"`
}ActivateJobTriggerRequest
type ActivateJobTriggerRequest struct {
// Required. Resource name of the trigger to activate, for example
// `projects/dlp-test-project/jobTriggers/53234423`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for ActivateJobTrigger.
func (*ActivateJobTriggerRequest) Descriptor
func (*ActivateJobTriggerRequest) Descriptor() ([]byte, []int)Deprecated: Use ActivateJobTriggerRequest.ProtoReflect.Descriptor instead.
func (*ActivateJobTriggerRequest) GetName
func (x *ActivateJobTriggerRequest) GetName() stringfunc (*ActivateJobTriggerRequest) ProtoMessage
func (*ActivateJobTriggerRequest) ProtoMessage()func (*ActivateJobTriggerRequest) ProtoReflect
func (x *ActivateJobTriggerRequest) ProtoReflect() protoreflect.Messagefunc (*ActivateJobTriggerRequest) Reset
func (x *ActivateJobTriggerRequest) Reset()func (*ActivateJobTriggerRequest) String
func (x *ActivateJobTriggerRequest) String() stringAllOtherDatabaseResources
type AllOtherDatabaseResources struct {
// contains filtered or unexported fields
}Match database resources not covered by any other filter.
func (*AllOtherDatabaseResources) Descriptor
func (*AllOtherDatabaseResources) Descriptor() ([]byte, []int)Deprecated: Use AllOtherDatabaseResources.ProtoReflect.Descriptor instead.
func (*AllOtherDatabaseResources) ProtoMessage
func (*AllOtherDatabaseResources) ProtoMessage()func (*AllOtherDatabaseResources) ProtoReflect
func (x *AllOtherDatabaseResources) ProtoReflect() protoreflect.Messagefunc (*AllOtherDatabaseResources) Reset
func (x *AllOtherDatabaseResources) Reset()func (*AllOtherDatabaseResources) String
func (x *AllOtherDatabaseResources) String() stringAllOtherResources
type AllOtherResources struct {
// contains filtered or unexported fields
}Match discovery resources not covered by any other filter.
func (*AllOtherResources) Descriptor
func (*AllOtherResources) Descriptor() ([]byte, []int)Deprecated: Use AllOtherResources.ProtoReflect.Descriptor instead.
func (*AllOtherResources) ProtoMessage
func (*AllOtherResources) ProtoMessage()func (*AllOtherResources) ProtoReflect
func (x *AllOtherResources) ProtoReflect() protoreflect.Messagefunc (*AllOtherResources) Reset
func (x *AllOtherResources) Reset()func (*AllOtherResources) String
func (x *AllOtherResources) String() stringAmazonS3Bucket
type AmazonS3Bucket struct {
// The AWS account.
AwsAccount *AwsAccount `protobuf:"bytes,1,opt,name=aws_account,json=awsAccount,proto3" json:"aws_account,omitempty"`
// Required. The bucket name.
BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
// contains filtered or unexported fields
}Amazon S3 bucket.
func (*AmazonS3Bucket) Descriptor
func (*AmazonS3Bucket) Descriptor() ([]byte, []int)Deprecated: Use AmazonS3Bucket.ProtoReflect.Descriptor instead.
func (*AmazonS3Bucket) GetAwsAccount
func (x *AmazonS3Bucket) GetAwsAccount() *AwsAccountfunc (*AmazonS3Bucket) GetBucketName
func (x *AmazonS3Bucket) GetBucketName() stringfunc (*AmazonS3Bucket) ProtoMessage
func (*AmazonS3Bucket) ProtoMessage()func (*AmazonS3Bucket) ProtoReflect
func (x *AmazonS3Bucket) ProtoReflect() protoreflect.Messagefunc (*AmazonS3Bucket) Reset
func (x *AmazonS3Bucket) Reset()func (*AmazonS3Bucket) String
func (x *AmazonS3Bucket) String() stringAmazonS3BucketConditions
type AmazonS3BucketConditions struct {
// Optional. Bucket types that should be profiled.
// Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.
BucketTypes []AmazonS3BucketConditions_BucketType `protobuf:"varint,1,rep,packed,name=bucket_types,json=bucketTypes,proto3,enum=google.privacy.dlp.v2.AmazonS3BucketConditions_BucketType" json:"bucket_types,omitempty"`
// Optional. Object classes that should be profiled.
// Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.
ObjectStorageClasses []AmazonS3BucketConditions_ObjectStorageClass `protobuf:"varint,2,rep,packed,name=object_storage_classes,json=objectStorageClasses,proto3,enum=google.privacy.dlp.v2.AmazonS3BucketConditions_ObjectStorageClass" json:"object_storage_classes,omitempty"`
// contains filtered or unexported fields
}Amazon S3 bucket conditions.
func (*AmazonS3BucketConditions) Descriptor
func (*AmazonS3BucketConditions) Descriptor() ([]byte, []int)Deprecated: Use AmazonS3BucketConditions.ProtoReflect.Descriptor instead.
func (*AmazonS3BucketConditions) GetBucketTypes
func (x *AmazonS3BucketConditions) GetBucketTypes() []AmazonS3BucketConditions_BucketTypefunc (*AmazonS3BucketConditions) GetObjectStorageClasses
func (x *AmazonS3BucketConditions) GetObjectStorageClasses() []AmazonS3BucketConditions_ObjectStorageClassfunc (*AmazonS3BucketConditions) ProtoMessage
func (*AmazonS3BucketConditions) ProtoMessage()func (*AmazonS3BucketConditions) ProtoReflect
func (x *AmazonS3BucketConditions) ProtoReflect() protoreflect.Messagefunc (*AmazonS3BucketConditions) Reset
func (x *AmazonS3BucketConditions) Reset()func (*AmazonS3BucketConditions) String
func (x *AmazonS3BucketConditions) String() stringAmazonS3BucketConditions_BucketType
type AmazonS3BucketConditions_BucketType int32Supported Amazon S3 bucket types. Defaults to TYPE_ALL_SUPPORTED.
AmazonS3BucketConditions_TYPE_UNSPECIFIED, AmazonS3BucketConditions_TYPE_ALL_SUPPORTED, AmazonS3BucketConditions_TYPE_GENERAL_PURPOSE
const (
// Unused.
AmazonS3BucketConditions_TYPE_UNSPECIFIED AmazonS3BucketConditions_BucketType = 0
// All supported classes.
AmazonS3BucketConditions_TYPE_ALL_SUPPORTED AmazonS3BucketConditions_BucketType = 1
// A general purpose Amazon S3 bucket.
AmazonS3BucketConditions_TYPE_GENERAL_PURPOSE AmazonS3BucketConditions_BucketType = 2
)func (AmazonS3BucketConditions_BucketType) Descriptor
func (AmazonS3BucketConditions_BucketType) Descriptor() protoreflect.EnumDescriptorfunc (AmazonS3BucketConditions_BucketType) Enum
func (x AmazonS3BucketConditions_BucketType) Enum() *AmazonS3BucketConditions_BucketTypefunc (AmazonS3BucketConditions_BucketType) EnumDescriptor
func (AmazonS3BucketConditions_BucketType) EnumDescriptor() ([]byte, []int)Deprecated: Use AmazonS3BucketConditions_BucketType.Descriptor instead.
func (AmazonS3BucketConditions_BucketType) Number
func (x AmazonS3BucketConditions_BucketType) Number() protoreflect.EnumNumberfunc (AmazonS3BucketConditions_BucketType) String
func (x AmazonS3BucketConditions_BucketType) String() stringfunc (AmazonS3BucketConditions_BucketType) Type
func (AmazonS3BucketConditions_BucketType) Type() protoreflect.EnumTypeAmazonS3BucketConditions_ObjectStorageClass
type AmazonS3BucketConditions_ObjectStorageClass int32Supported Amazon S3 object storage classes. Defaults to ALL_SUPPORTED_CLASSES.
AmazonS3BucketConditions_UNSPECIFIED, AmazonS3BucketConditions_ALL_SUPPORTED_CLASSES, AmazonS3BucketConditions_STANDARD, AmazonS3BucketConditions_STANDARD_INFREQUENT_ACCESS, AmazonS3BucketConditions_GLACIER_INSTANT_RETRIEVAL, AmazonS3BucketConditions_INTELLIGENT_TIERING
const (
// Unused.
AmazonS3BucketConditions_UNSPECIFIED AmazonS3BucketConditions_ObjectStorageClass = 0
// All supported classes.
AmazonS3BucketConditions_ALL_SUPPORTED_CLASSES AmazonS3BucketConditions_ObjectStorageClass = 1
// Standard object class.
AmazonS3BucketConditions_STANDARD AmazonS3BucketConditions_ObjectStorageClass = 2
// Standard - infrequent access object class.
AmazonS3BucketConditions_STANDARD_INFREQUENT_ACCESS AmazonS3BucketConditions_ObjectStorageClass = 4
// Glacier - instant retrieval object class.
AmazonS3BucketConditions_GLACIER_INSTANT_RETRIEVAL AmazonS3BucketConditions_ObjectStorageClass = 6
// Objects in the S3 Intelligent-Tiering access tiers.
AmazonS3BucketConditions_INTELLIGENT_TIERING AmazonS3BucketConditions_ObjectStorageClass = 7
)func (AmazonS3BucketConditions_ObjectStorageClass) Descriptor
func (AmazonS3BucketConditions_ObjectStorageClass) Descriptor() protoreflect.EnumDescriptorfunc (AmazonS3BucketConditions_ObjectStorageClass) Enum
func (x AmazonS3BucketConditions_ObjectStorageClass) Enum() *AmazonS3BucketConditions_ObjectStorageClassfunc (AmazonS3BucketConditions_ObjectStorageClass) EnumDescriptor
func (AmazonS3BucketConditions_ObjectStorageClass) EnumDescriptor() ([]byte, []int)Deprecated: Use AmazonS3BucketConditions_ObjectStorageClass.Descriptor instead.
func (AmazonS3BucketConditions_ObjectStorageClass) Number
func (x AmazonS3BucketConditions_ObjectStorageClass) Number() protoreflect.EnumNumberfunc (AmazonS3BucketConditions_ObjectStorageClass) String
func (x AmazonS3BucketConditions_ObjectStorageClass) String() stringfunc (AmazonS3BucketConditions_ObjectStorageClass) Type
func (AmazonS3BucketConditions_ObjectStorageClass) Type() protoreflect.EnumTypeAmazonS3BucketRegex
type AmazonS3BucketRegex struct {
// The AWS account regex.
AwsAccountRegex *AwsAccountRegex `protobuf:"bytes,1,opt,name=aws_account_regex,json=awsAccountRegex,proto3" json:"aws_account_regex,omitempty"`
// Optional. Regex to test the bucket name against.
// If empty, all buckets match.
BucketNameRegex string `protobuf:"bytes,2,opt,name=bucket_name_regex,json=bucketNameRegex,proto3" json:"bucket_name_regex,omitempty"`
// contains filtered or unexported fields
}Amazon S3 bucket regex.
func (*AmazonS3BucketRegex) Descriptor
func (*AmazonS3BucketRegex) Descriptor() ([]byte, []int)Deprecated: Use AmazonS3BucketRegex.ProtoReflect.Descriptor instead.
func (*AmazonS3BucketRegex) GetAwsAccountRegex
func (x *AmazonS3BucketRegex) GetAwsAccountRegex() *AwsAccountRegexfunc (*AmazonS3BucketRegex) GetBucketNameRegex
func (x *AmazonS3BucketRegex) GetBucketNameRegex() stringfunc (*AmazonS3BucketRegex) ProtoMessage
func (*AmazonS3BucketRegex) ProtoMessage()func (*AmazonS3BucketRegex) ProtoReflect
func (x *AmazonS3BucketRegex) ProtoReflect() protoreflect.Messagefunc (*AmazonS3BucketRegex) Reset
func (x *AmazonS3BucketRegex) Reset()func (*AmazonS3BucketRegex) String
func (x *AmazonS3BucketRegex) String() stringAnalyzeDataSourceRiskDetails
type AnalyzeDataSourceRiskDetails struct {
// Privacy metric to compute.
RequestedPrivacyMetric *PrivacyMetric `protobuf:"bytes,1,opt,name=requested_privacy_metric,json=requestedPrivacyMetric,proto3" json:"requested_privacy_metric,omitempty"`
// Input dataset to compute metrics over.
RequestedSourceTable *BigQueryTable `protobuf:"bytes,2,opt,name=requested_source_table,json=requestedSourceTable,proto3" json:"requested_source_table,omitempty"`
// Values associated with this metric.
//
// Types that are assignable to Result:
//
// *AnalyzeDataSourceRiskDetails_NumericalStatsResult_
// *AnalyzeDataSourceRiskDetails_CategoricalStatsResult_
// *AnalyzeDataSourceRiskDetails_KAnonymityResult_
// *AnalyzeDataSourceRiskDetails_LDiversityResult_
// *AnalyzeDataSourceRiskDetails_KMapEstimationResult_
// *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_
Result isAnalyzeDataSourceRiskDetails_Result `protobuf_oneof:"result"`
// The configuration used for this job.
RequestedOptions *AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions `protobuf:"bytes,10,opt,name=requested_options,json=requestedOptions,proto3" json:"requested_options,omitempty"`
// contains filtered or unexported fields
}Result of a risk analysis operation request.
func (*AnalyzeDataSourceRiskDetails) Descriptor
func (*AnalyzeDataSourceRiskDetails) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails) GetCategoricalStatsResult
func (x *AnalyzeDataSourceRiskDetails) GetCategoricalStatsResult() *AnalyzeDataSourceRiskDetails_CategoricalStatsResultfunc (*AnalyzeDataSourceRiskDetails) GetDeltaPresenceEstimationResult
func (x *AnalyzeDataSourceRiskDetails) GetDeltaPresenceEstimationResult() *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResultfunc (*AnalyzeDataSourceRiskDetails) GetKAnonymityResult
func (x *AnalyzeDataSourceRiskDetails) GetKAnonymityResult() *AnalyzeDataSourceRiskDetails_KAnonymityResultfunc (*AnalyzeDataSourceRiskDetails) GetKMapEstimationResult
func (x *AnalyzeDataSourceRiskDetails) GetKMapEstimationResult() *AnalyzeDataSourceRiskDetails_KMapEstimationResultfunc (*AnalyzeDataSourceRiskDetails) GetLDiversityResult
func (x *AnalyzeDataSourceRiskDetails) GetLDiversityResult() *AnalyzeDataSourceRiskDetails_LDiversityResultfunc (*AnalyzeDataSourceRiskDetails) GetNumericalStatsResult
func (x *AnalyzeDataSourceRiskDetails) GetNumericalStatsResult() *AnalyzeDataSourceRiskDetails_NumericalStatsResultfunc (*AnalyzeDataSourceRiskDetails) GetRequestedOptions
func (x *AnalyzeDataSourceRiskDetails) GetRequestedOptions() *AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptionsfunc (*AnalyzeDataSourceRiskDetails) GetRequestedPrivacyMetric
func (x *AnalyzeDataSourceRiskDetails) GetRequestedPrivacyMetric() *PrivacyMetricfunc (*AnalyzeDataSourceRiskDetails) GetRequestedSourceTable
func (x *AnalyzeDataSourceRiskDetails) GetRequestedSourceTable() *BigQueryTablefunc (*AnalyzeDataSourceRiskDetails) GetResult
func (m *AnalyzeDataSourceRiskDetails) GetResult() isAnalyzeDataSourceRiskDetails_Resultfunc (*AnalyzeDataSourceRiskDetails) ProtoMessage
func (*AnalyzeDataSourceRiskDetails) ProtoMessage()func (*AnalyzeDataSourceRiskDetails) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails) Reset
func (x *AnalyzeDataSourceRiskDetails) Reset()func (*AnalyzeDataSourceRiskDetails) String
func (x *AnalyzeDataSourceRiskDetails) String() stringAnalyzeDataSourceRiskDetails_CategoricalStatsResult
type AnalyzeDataSourceRiskDetails_CategoricalStatsResult struct {
// Histogram of value frequencies in the column.
ValueFrequencyHistogramBuckets []*AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket `protobuf:"bytes,5,rep,name=value_frequency_histogram_buckets,json=valueFrequencyHistogramBuckets,proto3" json:"value_frequency_histogram_buckets,omitempty"`
// contains filtered or unexported fields
}Result of the categorical stats computation.
func (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult) Descriptor
func (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails_CategoricalStatsResult.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult) GetValueFrequencyHistogramBuckets
func (x *AnalyzeDataSourceRiskDetails_CategoricalStatsResult) GetValueFrequencyHistogramBuckets() []*AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucketfunc (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult) ProtoMessage
func (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult) ProtoMessage()func (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails_CategoricalStatsResult) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult) Reset
func (x *AnalyzeDataSourceRiskDetails_CategoricalStatsResult) Reset()func (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult) String
func (x *AnalyzeDataSourceRiskDetails_CategoricalStatsResult) String() stringAnalyzeDataSourceRiskDetails_CategoricalStatsResult_
type AnalyzeDataSourceRiskDetails_CategoricalStatsResult_ struct {
// Categorical stats result
CategoricalStatsResult *AnalyzeDataSourceRiskDetails_CategoricalStatsResult `protobuf:"bytes,4,opt,name=categorical_stats_result,json=categoricalStatsResult,proto3,oneof"`
}AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket
type AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket struct {
// Lower bound on the value frequency of the values in this bucket.
ValueFrequencyLowerBound int64 `protobuf:"varint,1,opt,name=value_frequency_lower_bound,json=valueFrequencyLowerBound,proto3" json:"value_frequency_lower_bound,omitempty"`
// Upper bound on the value frequency of the values in this bucket.
ValueFrequencyUpperBound int64 `protobuf:"varint,2,opt,name=value_frequency_upper_bound,json=valueFrequencyUpperBound,proto3" json:"value_frequency_upper_bound,omitempty"`
// Total number of values in this bucket.
BucketSize int64 `protobuf:"varint,3,opt,name=bucket_size,json=bucketSize,proto3" json:"bucket_size,omitempty"`
// Sample of value frequencies in this bucket. The total number of
// values returned per bucket is capped at 20.
BucketValues []*ValueFrequency `protobuf:"bytes,4,rep,name=bucket_values,json=bucketValues,proto3" json:"bucket_values,omitempty"`
// Total number of distinct values in this bucket.
BucketValueCount int64 `protobuf:"varint,5,opt,name=bucket_value_count,json=bucketValueCount,proto3" json:"bucket_value_count,omitempty"`
// contains filtered or unexported fields
}Histogram of value frequencies in the column.
func (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) Descriptor
func (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) GetBucketSize
func (x *AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) GetBucketSize() int64func (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) GetBucketValueCount
func (x *AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) GetBucketValueCount() int64func (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) GetBucketValues
func (x *AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) GetBucketValues() []*ValueFrequencyfunc (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) GetValueFrequencyLowerBound
func (x *AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) GetValueFrequencyLowerBound() int64func (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) GetValueFrequencyUpperBound
func (x *AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) GetValueFrequencyUpperBound() int64func (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) ProtoMessage
func (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) ProtoMessage()func (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) Reset
func (x *AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) Reset()func (*AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) String
func (x *AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket) String() stringAnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult
type AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult struct {
// The intervals [min_probability, max_probability) do not overlap. If a
// value doesn't correspond to any such interval, the associated frequency
// is zero. For example, the following records:
//
// {min_probability: 0, max_probability: 0.1, frequency: 17}
// {min_probability: 0.2, max_probability: 0.3, frequency: 42}
// {min_probability: 0.3, max_probability: 0.4, frequency: 99}
//
// mean that there are no record with an estimated probability in [0.1, 0.2)
// nor larger or equal to 0.4.
DeltaPresenceEstimationHistogram []*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket `protobuf:"bytes,1,rep,name=delta_presence_estimation_histogram,json=deltaPresenceEstimationHistogram,proto3" json:"delta_presence_estimation_histogram,omitempty"`
// contains filtered or unexported fields
}Result of the δ-presence computation. Note that these results are an estimation, not exact values.
func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult) Descriptor
func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult) GetDeltaPresenceEstimationHistogram
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult) GetDeltaPresenceEstimationHistogram() []*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucketfunc (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult) ProtoMessage
func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult) ProtoMessage()func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult) Reset
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult) Reset()func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult) String
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult) String() stringAnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_
type AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_ struct {
// Delta-presence result
DeltaPresenceEstimationResult *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult `protobuf:"bytes,9,opt,name=delta_presence_estimation_result,json=deltaPresenceEstimationResult,proto3,oneof"`
}AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket
type AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket struct {
// Between 0 and 1.
MinProbability float64 `protobuf:"fixed64,1,opt,name=min_probability,json=minProbability,proto3" json:"min_probability,omitempty"`
// Always greater than or equal to min_probability.
MaxProbability float64 `protobuf:"fixed64,2,opt,name=max_probability,json=maxProbability,proto3" json:"max_probability,omitempty"`
// Number of records within these probability bounds.
BucketSize int64 `protobuf:"varint,5,opt,name=bucket_size,json=bucketSize,proto3" json:"bucket_size,omitempty"`
// Sample of quasi-identifier tuple values in this bucket. The total
// number of classes returned per bucket is capped at 20.
BucketValues []*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues `protobuf:"bytes,6,rep,name=bucket_values,json=bucketValues,proto3" json:"bucket_values,omitempty"`
// Total number of distinct quasi-identifier tuple values in this bucket.
BucketValueCount int64 `protobuf:"varint,7,opt,name=bucket_value_count,json=bucketValueCount,proto3" json:"bucket_value_count,omitempty"`
// contains filtered or unexported fields
}A DeltaPresenceEstimationHistogramBucket message with the following values:
min_probability: 0.1
max_probability: 0.2
frequency: 42
means that there are 42 records for which δ is in [0.1, 0.2). An important particular case is when min_probability = max_probability = 1: then, every individual who shares this quasi-identifier combination is in the dataset.
func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) Descriptor
func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) GetBucketSize
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) GetBucketSize() int64func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) GetBucketValueCount
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) GetBucketValueCount() int64func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) GetBucketValues
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) GetBucketValues() []*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValuesfunc (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) GetMaxProbability
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) GetMaxProbability() float64func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) GetMinProbability
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) GetMinProbability() float64func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) ProtoMessage
func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) ProtoMessage()func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) Reset
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) Reset()func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) String
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket) String() stringAnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues
type AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues struct {
// The quasi-identifier values.
QuasiIdsValues []*Value `protobuf:"bytes,1,rep,name=quasi_ids_values,json=quasiIdsValues,proto3" json:"quasi_ids_values,omitempty"`
// The estimated probability that a given individual sharing these
// quasi-identifier values is in the dataset. This value, typically
// called δ, is the ratio between the number of records in the dataset
// with these quasi-identifier values, and the total number of individuals
// (inside *and* outside the dataset) with these quasi-identifier values.
// For example, if there are 15 individuals in the dataset who share the
// same quasi-identifier values, and an estimated 100 people in the entire
// population with these values, then δ is 0.15.
EstimatedProbability float64 `protobuf:"fixed64,2,opt,name=estimated_probability,json=estimatedProbability,proto3" json:"estimated_probability,omitempty"`
// contains filtered or unexported fields
}A tuple of values for the quasi-identifier columns.
func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues) Descriptor
func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues) GetEstimatedProbability
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues) GetEstimatedProbability() float64func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues) GetQuasiIdsValues
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues) GetQuasiIdsValues() []*Valuefunc (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues) ProtoMessage
func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues) ProtoMessage()func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues) Reset
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues) Reset()func (*AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues) String
func (x *AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues) String() stringAnalyzeDataSourceRiskDetails_KAnonymityResult
type AnalyzeDataSourceRiskDetails_KAnonymityResult struct {
// Histogram of k-anonymity equivalence classes.
EquivalenceClassHistogramBuckets []*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket `protobuf:"bytes,5,rep,name=equivalence_class_histogram_buckets,json=equivalenceClassHistogramBuckets,proto3" json:"equivalence_class_histogram_buckets,omitempty"`
// contains filtered or unexported fields
}Result of the k-anonymity computation.
func (*AnalyzeDataSourceRiskDetails_KAnonymityResult) Descriptor
func (*AnalyzeDataSourceRiskDetails_KAnonymityResult) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails_KAnonymityResult.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails_KAnonymityResult) GetEquivalenceClassHistogramBuckets
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult) GetEquivalenceClassHistogramBuckets() []*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucketfunc (*AnalyzeDataSourceRiskDetails_KAnonymityResult) ProtoMessage
func (*AnalyzeDataSourceRiskDetails_KAnonymityResult) ProtoMessage()func (*AnalyzeDataSourceRiskDetails_KAnonymityResult) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails_KAnonymityResult) Reset
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult) Reset()func (*AnalyzeDataSourceRiskDetails_KAnonymityResult) String
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult) String() stringAnalyzeDataSourceRiskDetails_KAnonymityResult_
type AnalyzeDataSourceRiskDetails_KAnonymityResult_ struct {
// K-anonymity result
KAnonymityResult *AnalyzeDataSourceRiskDetails_KAnonymityResult `protobuf:"bytes,5,opt,name=k_anonymity_result,json=kAnonymityResult,proto3,oneof"`
}AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass
type AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass struct {
// Set of values defining the equivalence class. One value per
// quasi-identifier column in the original KAnonymity metric message.
// The order is always the same as the original request.
QuasiIdsValues []*Value `protobuf:"bytes,1,rep,name=quasi_ids_values,json=quasiIdsValues,proto3" json:"quasi_ids_values,omitempty"`
// Size of the equivalence class, for example number of rows with the
// above set of values.
EquivalenceClassSize int64 `protobuf:"varint,2,opt,name=equivalence_class_size,json=equivalenceClassSize,proto3" json:"equivalence_class_size,omitempty"`
// contains filtered or unexported fields
}The set of columns' values that share the same ldiversity value
func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass) Descriptor
func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass) GetEquivalenceClassSize
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass) GetEquivalenceClassSize() int64func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass) GetQuasiIdsValues
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass) GetQuasiIdsValues() []*Valuefunc (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass) ProtoMessage
func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass) ProtoMessage()func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass) Reset
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass) Reset()func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass) String
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass) String() stringAnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket
type AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket struct {
// Lower bound on the size of the equivalence classes in this bucket.
EquivalenceClassSizeLowerBound int64 `protobuf:"varint,1,opt,name=equivalence_class_size_lower_bound,json=equivalenceClassSizeLowerBound,proto3" json:"equivalence_class_size_lower_bound,omitempty"`
// Upper bound on the size of the equivalence classes in this bucket.
EquivalenceClassSizeUpperBound int64 `protobuf:"varint,2,opt,name=equivalence_class_size_upper_bound,json=equivalenceClassSizeUpperBound,proto3" json:"equivalence_class_size_upper_bound,omitempty"`
// Total number of equivalence classes in this bucket.
BucketSize int64 `protobuf:"varint,3,opt,name=bucket_size,json=bucketSize,proto3" json:"bucket_size,omitempty"`
// Sample of equivalence classes in this bucket. The total number of
// classes returned per bucket is capped at 20.
BucketValues []*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass `protobuf:"bytes,4,rep,name=bucket_values,json=bucketValues,proto3" json:"bucket_values,omitempty"`
// Total number of distinct equivalence classes in this bucket.
BucketValueCount int64 `protobuf:"varint,5,opt,name=bucket_value_count,json=bucketValueCount,proto3" json:"bucket_value_count,omitempty"`
// contains filtered or unexported fields
}Histogram of k-anonymity equivalence classes.
func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) Descriptor
func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) GetBucketSize
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) GetBucketSize() int64func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) GetBucketValueCount
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) GetBucketValueCount() int64func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) GetBucketValues
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) GetBucketValues() []*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClassfunc (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) GetEquivalenceClassSizeLowerBound
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) GetEquivalenceClassSizeLowerBound() int64func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) GetEquivalenceClassSizeUpperBound
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) GetEquivalenceClassSizeUpperBound() int64func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) ProtoMessage
func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) ProtoMessage()func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) Reset
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) Reset()func (*AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) String
func (x *AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket) String() stringAnalyzeDataSourceRiskDetails_KMapEstimationResult
type AnalyzeDataSourceRiskDetails_KMapEstimationResult struct {
// The intervals [min_anonymity, max_anonymity] do not overlap. If a value
// doesn't correspond to any such interval, the associated frequency is
// zero. For example, the following records:
//
// {min_anonymity: 1, max_anonymity: 1, frequency: 17}
// {min_anonymity: 2, max_anonymity: 3, frequency: 42}
// {min_anonymity: 5, max_anonymity: 10, frequency: 99}
//
// mean that there are no record with an estimated anonymity of 4, 5, or
// larger than 10.
KMapEstimationHistogram []*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket `protobuf:"bytes,1,rep,name=k_map_estimation_histogram,json=kMapEstimationHistogram,proto3" json:"k_map_estimation_histogram,omitempty"`
// contains filtered or unexported fields
}Result of the reidentifiability analysis. Note that these results are an estimation, not exact values.
func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult) Descriptor
func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails_KMapEstimationResult.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult) GetKMapEstimationHistogram
func (x *AnalyzeDataSourceRiskDetails_KMapEstimationResult) GetKMapEstimationHistogram() []*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucketfunc (*AnalyzeDataSourceRiskDetails_KMapEstimationResult) ProtoMessage
func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult) ProtoMessage()func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails_KMapEstimationResult) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails_KMapEstimationResult) Reset
func (x *AnalyzeDataSourceRiskDetails_KMapEstimationResult) Reset()func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult) String
func (x *AnalyzeDataSourceRiskDetails_KMapEstimationResult) String() stringAnalyzeDataSourceRiskDetails_KMapEstimationResult_
type AnalyzeDataSourceRiskDetails_KMapEstimationResult_ struct {
// K-map result
KMapEstimationResult *AnalyzeDataSourceRiskDetails_KMapEstimationResult `protobuf:"bytes,7,opt,name=k_map_estimation_result,json=kMapEstimationResult,proto3,oneof"`
}AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket
type AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket struct {
// Always positive.
MinAnonymity int64 `protobuf:"varint,1,opt,name=min_anonymity,json=minAnonymity,proto3" json:"min_anonymity,omitempty"`
// Always greater than or equal to min_anonymity.
MaxAnonymity int64 `protobuf:"varint,2,opt,name=max_anonymity,json=maxAnonymity,proto3" json:"max_anonymity,omitempty"`
// Number of records within these anonymity bounds.
BucketSize int64 `protobuf:"varint,5,opt,name=bucket_size,json=bucketSize,proto3" json:"bucket_size,omitempty"`
// Sample of quasi-identifier tuple values in this bucket. The total
// number of classes returned per bucket is capped at 20.
BucketValues []*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues `protobuf:"bytes,6,rep,name=bucket_values,json=bucketValues,proto3" json:"bucket_values,omitempty"`
// Total number of distinct quasi-identifier tuple values in this bucket.
BucketValueCount int64 `protobuf:"varint,7,opt,name=bucket_value_count,json=bucketValueCount,proto3" json:"bucket_value_count,omitempty"`
// contains filtered or unexported fields
}A KMapEstimationHistogramBucket message with the following values:
min_anonymity: 3
max_anonymity: 5
frequency: 42
means that there are 42 records whose quasi-identifier values correspond to 3, 4 or 5 people in the overlying population. An important particular case is when min_anonymity = max_anonymity = 1: the frequency field then corresponds to the number of uniquely identifiable records.
func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) Descriptor
func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) GetBucketSize
func (x *AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) GetBucketSize() int64func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) GetBucketValueCount
func (x *AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) GetBucketValueCount() int64func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) GetBucketValues
func (x *AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) GetBucketValues() []*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValuesfunc (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) GetMaxAnonymity
func (x *AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) GetMaxAnonymity() int64func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) GetMinAnonymity
func (x *AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) GetMinAnonymity() int64func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) ProtoMessage
func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) ProtoMessage()func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) Reset
func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) String
func (x *AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket) String() stringAnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues
type AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues struct {
// The quasi-identifier values.
QuasiIdsValues []*Value `protobuf:"bytes,1,rep,name=quasi_ids_values,json=quasiIdsValues,proto3" json:"quasi_ids_values,omitempty"`
// The estimated anonymity for these quasi-identifier values.
EstimatedAnonymity int64 `protobuf:"varint,2,opt,name=estimated_anonymity,json=estimatedAnonymity,proto3" json:"estimated_anonymity,omitempty"`
// contains filtered or unexported fields
}A tuple of values for the quasi-identifier columns.
func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues) Descriptor
func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues) GetEstimatedAnonymity
func (x *AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues) GetEstimatedAnonymity() int64func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues) GetQuasiIdsValues
func (x *AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues) GetQuasiIdsValues() []*Valuefunc (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues) ProtoMessage
func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues) ProtoMessage()func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues) Reset
func (*AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues) String
func (x *AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues) String() stringAnalyzeDataSourceRiskDetails_LDiversityResult
type AnalyzeDataSourceRiskDetails_LDiversityResult struct {
// Histogram of l-diversity equivalence class sensitive value frequencies.
SensitiveValueFrequencyHistogramBuckets []*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket `protobuf:"bytes,5,rep,name=sensitive_value_frequency_histogram_buckets,json=sensitiveValueFrequencyHistogramBuckets,proto3" json:"sensitive_value_frequency_histogram_buckets,omitempty"`
// contains filtered or unexported fields
}Result of the l-diversity computation.
func (*AnalyzeDataSourceRiskDetails_LDiversityResult) Descriptor
func (*AnalyzeDataSourceRiskDetails_LDiversityResult) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails_LDiversityResult.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails_LDiversityResult) GetSensitiveValueFrequencyHistogramBuckets
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult) GetSensitiveValueFrequencyHistogramBuckets() []*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucketfunc (*AnalyzeDataSourceRiskDetails_LDiversityResult) ProtoMessage
func (*AnalyzeDataSourceRiskDetails_LDiversityResult) ProtoMessage()func (*AnalyzeDataSourceRiskDetails_LDiversityResult) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails_LDiversityResult) Reset
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult) Reset()func (*AnalyzeDataSourceRiskDetails_LDiversityResult) String
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult) String() stringAnalyzeDataSourceRiskDetails_LDiversityResult_
type AnalyzeDataSourceRiskDetails_LDiversityResult_ struct {
// L-divesity result
LDiversityResult *AnalyzeDataSourceRiskDetails_LDiversityResult `protobuf:"bytes,6,opt,name=l_diversity_result,json=lDiversityResult,proto3,oneof"`
}AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass
type AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass struct {
// Quasi-identifier values defining the k-anonymity equivalence
// class. The order is always the same as the original request.
QuasiIdsValues []*Value `protobuf:"bytes,1,rep,name=quasi_ids_values,json=quasiIdsValues,proto3" json:"quasi_ids_values,omitempty"`
// Size of the k-anonymity equivalence class.
EquivalenceClassSize int64 `protobuf:"varint,2,opt,name=equivalence_class_size,json=equivalenceClassSize,proto3" json:"equivalence_class_size,omitempty"`
// Number of distinct sensitive values in this equivalence class.
NumDistinctSensitiveValues int64 `protobuf:"varint,3,opt,name=num_distinct_sensitive_values,json=numDistinctSensitiveValues,proto3" json:"num_distinct_sensitive_values,omitempty"`
// Estimated frequencies of top sensitive values.
TopSensitiveValues []*ValueFrequency `protobuf:"bytes,4,rep,name=top_sensitive_values,json=topSensitiveValues,proto3" json:"top_sensitive_values,omitempty"`
// contains filtered or unexported fields
}The set of columns' values that share the same ldiversity value.
func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) Descriptor
func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) GetEquivalenceClassSize
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) GetEquivalenceClassSize() int64func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) GetNumDistinctSensitiveValues
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) GetNumDistinctSensitiveValues() int64func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) GetQuasiIdsValues
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) GetQuasiIdsValues() []*Valuefunc (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) GetTopSensitiveValues
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) GetTopSensitiveValues() []*ValueFrequencyfunc (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) ProtoMessage
func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) ProtoMessage()func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) Reset
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) Reset()func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) String
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass) String() stringAnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket
type AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket struct {
// Lower bound on the sensitive value frequencies of the equivalence
// classes in this bucket.
SensitiveValueFrequencyLowerBound int64 `protobuf:"varint,1,opt,name=sensitive_value_frequency_lower_bound,json=sensitiveValueFrequencyLowerBound,proto3" json:"sensitive_value_frequency_lower_bound,omitempty"`
// Upper bound on the sensitive value frequencies of the equivalence
// classes in this bucket.
SensitiveValueFrequencyUpperBound int64 `protobuf:"varint,2,opt,name=sensitive_value_frequency_upper_bound,json=sensitiveValueFrequencyUpperBound,proto3" json:"sensitive_value_frequency_upper_bound,omitempty"`
// Total number of equivalence classes in this bucket.
BucketSize int64 `protobuf:"varint,3,opt,name=bucket_size,json=bucketSize,proto3" json:"bucket_size,omitempty"`
// Sample of equivalence classes in this bucket. The total number of
// classes returned per bucket is capped at 20.
BucketValues []*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass `protobuf:"bytes,4,rep,name=bucket_values,json=bucketValues,proto3" json:"bucket_values,omitempty"`
// Total number of distinct equivalence classes in this bucket.
BucketValueCount int64 `protobuf:"varint,5,opt,name=bucket_value_count,json=bucketValueCount,proto3" json:"bucket_value_count,omitempty"`
// contains filtered or unexported fields
}Histogram of l-diversity equivalence class sensitive value frequencies.
func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) Descriptor
func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) GetBucketSize
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) GetBucketSize() int64func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) GetBucketValueCount
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) GetBucketValueCount() int64func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) GetBucketValues
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) GetBucketValues() []*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClassfunc (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) GetSensitiveValueFrequencyLowerBound
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) GetSensitiveValueFrequencyLowerBound() int64func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) GetSensitiveValueFrequencyUpperBound
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) GetSensitiveValueFrequencyUpperBound() int64func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) ProtoMessage
func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) ProtoMessage()func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) Reset
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) Reset()func (*AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) String
func (x *AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket) String() stringAnalyzeDataSourceRiskDetails_NumericalStatsResult
type AnalyzeDataSourceRiskDetails_NumericalStatsResult struct {
// Minimum value appearing in the column.
MinValue *Value `protobuf:"bytes,1,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"`
// Maximum value appearing in the column.
MaxValue *Value `protobuf:"bytes,2,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"`
// List of 99 values that partition the set of field values into 100 equal
// sized buckets.
QuantileValues []*Value `protobuf:"bytes,4,rep,name=quantile_values,json=quantileValues,proto3" json:"quantile_values,omitempty"`
// contains filtered or unexported fields
}Result of the numerical stats computation.
func (*AnalyzeDataSourceRiskDetails_NumericalStatsResult) Descriptor
func (*AnalyzeDataSourceRiskDetails_NumericalStatsResult) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails_NumericalStatsResult.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails_NumericalStatsResult) GetMaxValue
func (x *AnalyzeDataSourceRiskDetails_NumericalStatsResult) GetMaxValue() *Valuefunc (*AnalyzeDataSourceRiskDetails_NumericalStatsResult) GetMinValue
func (x *AnalyzeDataSourceRiskDetails_NumericalStatsResult) GetMinValue() *Valuefunc (*AnalyzeDataSourceRiskDetails_NumericalStatsResult) GetQuantileValues
func (x *AnalyzeDataSourceRiskDetails_NumericalStatsResult) GetQuantileValues() []*Valuefunc (*AnalyzeDataSourceRiskDetails_NumericalStatsResult) ProtoMessage
func (*AnalyzeDataSourceRiskDetails_NumericalStatsResult) ProtoMessage()func (*AnalyzeDataSourceRiskDetails_NumericalStatsResult) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails_NumericalStatsResult) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails_NumericalStatsResult) Reset
func (x *AnalyzeDataSourceRiskDetails_NumericalStatsResult) Reset()func (*AnalyzeDataSourceRiskDetails_NumericalStatsResult) String
func (x *AnalyzeDataSourceRiskDetails_NumericalStatsResult) String() stringAnalyzeDataSourceRiskDetails_NumericalStatsResult_
type AnalyzeDataSourceRiskDetails_NumericalStatsResult_ struct {
// Numerical stats result
NumericalStatsResult *AnalyzeDataSourceRiskDetails_NumericalStatsResult `protobuf:"bytes,3,opt,name=numerical_stats_result,json=numericalStatsResult,proto3,oneof"`
}AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions
type AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions struct {
// The job config for the risk job.
JobConfig *RiskAnalysisJobConfig `protobuf:"bytes,1,opt,name=job_config,json=jobConfig,proto3" json:"job_config,omitempty"`
// contains filtered or unexported fields
}Risk analysis options.
func (*AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions) Descriptor
func (*AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions.ProtoReflect.Descriptor instead.
func (*AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions) GetJobConfig
func (x *AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions) GetJobConfig() *RiskAnalysisJobConfigfunc (*AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions) ProtoMessage
func (*AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions) ProtoMessage()func (*AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions) ProtoReflect
func (x *AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions) ProtoReflect() protoreflect.Messagefunc (*AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions) Reset
func (x *AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions) Reset()func (*AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions) String
func (x *AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions) String() stringAwsAccount
type AwsAccount struct {
// Required. AWS account ID.
AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
// contains filtered or unexported fields
}AWS account.
func (*AwsAccount) Descriptor
func (*AwsAccount) Descriptor() ([]byte, []int)Deprecated: Use AwsAccount.ProtoReflect.Descriptor instead.
func (*AwsAccount) GetAccountId
func (x *AwsAccount) GetAccountId() stringfunc (*AwsAccount) ProtoMessage
func (*AwsAccount) ProtoMessage()func (*AwsAccount) ProtoReflect
func (x *AwsAccount) ProtoReflect() protoreflect.Messagefunc (*AwsAccount) Reset
func (x *AwsAccount) Reset()func (*AwsAccount) String
func (x *AwsAccount) String() stringAwsAccountRegex
type AwsAccountRegex struct {
// Optional. Regex to test the AWS account ID against.
// If empty, all accounts match.
AccountIdRegex string `protobuf:"bytes,1,opt,name=account_id_regex,json=accountIdRegex,proto3" json:"account_id_regex,omitempty"`
// contains filtered or unexported fields
}AWS account regex.
func (*AwsAccountRegex) Descriptor
func (*AwsAccountRegex) Descriptor() ([]byte, []int)Deprecated: Use AwsAccountRegex.ProtoReflect.Descriptor instead.
func (*AwsAccountRegex) GetAccountIdRegex
func (x *AwsAccountRegex) GetAccountIdRegex() stringfunc (*AwsAccountRegex) ProtoMessage
func (*AwsAccountRegex) ProtoMessage()func (*AwsAccountRegex) ProtoReflect
func (x *AwsAccountRegex) ProtoReflect() protoreflect.Messagefunc (*AwsAccountRegex) Reset
func (x *AwsAccountRegex) Reset()func (*AwsAccountRegex) String
func (x *AwsAccountRegex) String() stringBigQueryDiscoveryTarget
type BigQueryDiscoveryTarget struct {
// Required. The tables the discovery cadence applies to. The first target
// with a matching filter will be the one to apply to a table.
Filter *DiscoveryBigQueryFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
// In addition to matching the filter, these conditions must be true
// before a profile is generated.
Conditions *DiscoveryBigQueryConditions `protobuf:"bytes,2,opt,name=conditions,proto3" json:"conditions,omitempty"`
// The generation rule includes the logic on how frequently
// to update the data profiles. If not specified, discovery will re-run and
// update no more than once a month if new columns appear in the table.
//
// Types that are assignable to Frequency:
//
// *BigQueryDiscoveryTarget_Cadence
// *BigQueryDiscoveryTarget_Disabled
Frequency isBigQueryDiscoveryTarget_Frequency `protobuf_oneof:"frequency"`
// contains filtered or unexported fields
}Target used to match against for discovery with BigQuery tables
func (*BigQueryDiscoveryTarget) Descriptor
func (*BigQueryDiscoveryTarget) Descriptor() ([]byte, []int)Deprecated: Use BigQueryDiscoveryTarget.ProtoReflect.Descriptor instead.
func (*BigQueryDiscoveryTarget) GetCadence
func (x *BigQueryDiscoveryTarget) GetCadence() *DiscoveryGenerationCadencefunc (*BigQueryDiscoveryTarget) GetConditions
func (x *BigQueryDiscoveryTarget) GetConditions() *DiscoveryBigQueryConditionsfunc (*BigQueryDiscoveryTarget) GetDisabled
func (x *BigQueryDiscoveryTarget) GetDisabled() *Disabledfunc (*BigQueryDiscoveryTarget) GetFilter
func (x *BigQueryDiscoveryTarget) GetFilter() *DiscoveryBigQueryFilterfunc (*BigQueryDiscoveryTarget) GetFrequency
func (m *BigQueryDiscoveryTarget) GetFrequency() isBigQueryDiscoveryTarget_Frequencyfunc (*BigQueryDiscoveryTarget) ProtoMessage
func (*BigQueryDiscoveryTarget) ProtoMessage()func (*BigQueryDiscoveryTarget) ProtoReflect
func (x *BigQueryDiscoveryTarget) ProtoReflect() protoreflect.Messagefunc (*BigQueryDiscoveryTarget) Reset
func (x *BigQueryDiscoveryTarget) Reset()func (*BigQueryDiscoveryTarget) String
func (x *BigQueryDiscoveryTarget) String() stringBigQueryDiscoveryTarget_Cadence
type BigQueryDiscoveryTarget_Cadence struct {
// How often and when to update profiles. New tables that match both the
// filter and conditions are scanned as quickly as possible depending on
// system capacity.
Cadence *DiscoveryGenerationCadence `protobuf:"bytes,3,opt,name=cadence,proto3,oneof"`
}BigQueryDiscoveryTarget_Disabled
type BigQueryDiscoveryTarget_Disabled struct {
// Tables that match this filter will not have profiles created.
Disabled *Disabled `protobuf:"bytes,4,opt,name=disabled,proto3,oneof"`
}BigQueryField
type BigQueryField struct {
// Source table of the field.
Table *BigQueryTable `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
// Designated field in the BigQuery table.
Field *FieldId `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"`
// contains filtered or unexported fields
}Message defining a field of a BigQuery table.
func (*BigQueryField) Descriptor
func (*BigQueryField) Descriptor() ([]byte, []int)Deprecated: Use BigQueryField.ProtoReflect.Descriptor instead.
func (*BigQueryField) GetField
func (x *BigQueryField) GetField() *FieldIdfunc (*BigQueryField) GetTable
func (x *BigQueryField) GetTable() *BigQueryTablefunc (*BigQueryField) ProtoMessage
func (*BigQueryField) ProtoMessage()func (*BigQueryField) ProtoReflect
func (x *BigQueryField) ProtoReflect() protoreflect.Messagefunc (*BigQueryField) Reset
func (x *BigQueryField) Reset()func (*BigQueryField) String
func (x *BigQueryField) String() stringBigQueryKey
type BigQueryKey struct {
// Complete BigQuery table reference.
TableReference *BigQueryTable `protobuf:"bytes,1,opt,name=table_reference,json=tableReference,proto3" json:"table_reference,omitempty"`
// Row number inferred at the time the table was scanned. This value is
// nondeterministic, cannot be queried, and may be null for inspection
// jobs. To locate findings within a table, specify
// `inspect_job.storage_config.big_query_options.identifying_fields` in
// `CreateDlpJobRequest`.
RowNumber int64 `protobuf:"varint,2,opt,name=row_number,json=rowNumber,proto3" json:"row_number,omitempty"`
// contains filtered or unexported fields
}Row key for identifying a record in BigQuery table.
func (*BigQueryKey) Descriptor
func (*BigQueryKey) Descriptor() ([]byte, []int)Deprecated: Use BigQueryKey.ProtoReflect.Descriptor instead.
func (*BigQueryKey) GetRowNumber
func (x *BigQueryKey) GetRowNumber() int64func (*BigQueryKey) GetTableReference
func (x *BigQueryKey) GetTableReference() *BigQueryTablefunc (*BigQueryKey) ProtoMessage
func (*BigQueryKey) ProtoMessage()func (*BigQueryKey) ProtoReflect
func (x *BigQueryKey) ProtoReflect() protoreflect.Messagefunc (*BigQueryKey) Reset
func (x *BigQueryKey) Reset()func (*BigQueryKey) String
func (x *BigQueryKey) String() stringBigQueryOptions
type BigQueryOptions struct {
// Complete BigQuery table reference.
TableReference *BigQueryTable `protobuf:"bytes,1,opt,name=table_reference,json=tableReference,proto3" json:"table_reference,omitempty"`
// Table fields that may uniquely identify a row within the table. When
// `actions.saveFindings.outputConfig.table` is specified, the values of
// columns specified here are available in the output table under
// `location.content_locations.record_location.record_key.id_values`. Nested
// fields such as `person.birthdate.year` are allowed.
IdentifyingFields []*FieldId `protobuf:"bytes,2,rep,name=identifying_fields,json=identifyingFields,proto3" json:"identifying_fields,omitempty"`
// Max number of rows to scan. If the table has more rows than this value, the
// rest of the rows are omitted. If not set, or if set to 0, all rows will be
// scanned. Only one of rows_limit and rows_limit_percent can be specified.
// Cannot be used in conjunction with TimespanConfig.
RowsLimit int64 `protobuf:"varint,3,opt,name=rows_limit,json=rowsLimit,proto3" json:"rows_limit,omitempty"`
// Max percentage of rows to scan. The rest are omitted. The number of rows
// scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and
// 100 means no limit. Defaults to 0. Only one of rows_limit and
// rows_limit_percent can be specified. Cannot be used in conjunction with
// TimespanConfig.
//
// Caution: A [known
// issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling)
// is causing the `rowsLimitPercent` field to behave unexpectedly. We
// recommend using `rowsLimit` instead.
RowsLimitPercent int32 `protobuf:"varint,6,opt,name=rows_limit_percent,json=rowsLimitPercent,proto3" json:"rows_limit_percent,omitempty"`
// How to sample the data.
SampleMethod BigQueryOptions_SampleMethod `protobuf:"varint,4,opt,name=sample_method,json=sampleMethod,proto3,enum=google.privacy.dlp.v2.BigQueryOptions_SampleMethod" json:"sample_method,omitempty"`
// References to fields excluded from scanning. This allows you to skip
// inspection of entire columns which you know have no findings.
// When inspecting a table, we recommend that you inspect all columns.
// Otherwise, findings might be affected because hints from excluded columns
// will not be used.
ExcludedFields []*FieldId `protobuf:"bytes,5,rep,name=excluded_fields,json=excludedFields,proto3" json:"excluded_fields,omitempty"`
// Limit scanning only to these fields.
// When inspecting a table, we recommend that you inspect all columns.
// Otherwise, findings might be affected because hints from excluded columns
// will not be used.
IncludedFields []*FieldId `protobuf:"bytes,7,rep,name=included_fields,json=includedFields,proto3" json:"included_fields,omitempty"`
// contains filtered or unexported fields
}Options defining BigQuery table and row identifiers.
func (*BigQueryOptions) Descriptor
func (*BigQueryOptions) Descriptor() ([]byte, []int)Deprecated: Use BigQueryOptions.ProtoReflect.Descriptor instead.
func (*BigQueryOptions) GetExcludedFields
func (x *BigQueryOptions) GetExcludedFields() []*FieldIdfunc (*BigQueryOptions) GetIdentifyingFields
func (x *BigQueryOptions) GetIdentifyingFields() []*FieldIdfunc (*BigQueryOptions) GetIncludedFields
func (x *BigQueryOptions) GetIncludedFields() []*FieldIdfunc (*BigQueryOptions) GetRowsLimit
func (x *BigQueryOptions) GetRowsLimit() int64func (*BigQueryOptions) GetRowsLimitPercent
func (x *BigQueryOptions) GetRowsLimitPercent() int32func (*BigQueryOptions) GetSampleMethod
func (x *BigQueryOptions) GetSampleMethod() BigQueryOptions_SampleMethodfunc (*BigQueryOptions) GetTableReference
func (x *BigQueryOptions) GetTableReference() *BigQueryTablefunc (*BigQueryOptions) ProtoMessage
func (*BigQueryOptions) ProtoMessage()func (*BigQueryOptions) ProtoReflect
func (x *BigQueryOptions) ProtoReflect() protoreflect.Messagefunc (*BigQueryOptions) Reset
func (x *BigQueryOptions) Reset()func (*BigQueryOptions) String
func (x *BigQueryOptions) String() stringBigQueryOptions_SampleMethod
type BigQueryOptions_SampleMethod int32How to sample rows if not all rows are scanned. Meaningful only when used in conjunction with either rows_limit or rows_limit_percent. If not specified, rows are scanned in the order BigQuery reads them.
BigQueryOptions_SAMPLE_METHOD_UNSPECIFIED, BigQueryOptions_TOP, BigQueryOptions_RANDOM_START
const (
// No sampling.
BigQueryOptions_SAMPLE_METHOD_UNSPECIFIED BigQueryOptions_SampleMethod = 0
// Scan groups of rows in the order BigQuery provides (default). Multiple
// groups of rows may be scanned in parallel, so results may not appear in
// the same order the rows are read.
BigQueryOptions_TOP BigQueryOptions_SampleMethod = 1
// Randomly pick groups of rows to scan.
BigQueryOptions_RANDOM_START BigQueryOptions_SampleMethod = 2
)func (BigQueryOptions_SampleMethod) Descriptor
func (BigQueryOptions_SampleMethod) Descriptor() protoreflect.EnumDescriptorfunc (BigQueryOptions_SampleMethod) Enum
func (x BigQueryOptions_SampleMethod) Enum() *BigQueryOptions_SampleMethodfunc (BigQueryOptions_SampleMethod) EnumDescriptor
func (BigQueryOptions_SampleMethod) EnumDescriptor() ([]byte, []int)Deprecated: Use BigQueryOptions_SampleMethod.Descriptor instead.
func (BigQueryOptions_SampleMethod) Number
func (x BigQueryOptions_SampleMethod) Number() protoreflect.EnumNumberfunc (BigQueryOptions_SampleMethod) String
func (x BigQueryOptions_SampleMethod) String() stringfunc (BigQueryOptions_SampleMethod) Type
func (BigQueryOptions_SampleMethod) Type() protoreflect.EnumTypeBigQueryRegex
type BigQueryRegex struct {
// For organizations, if unset, will match all projects. Has no effect
// for data profile configurations created within a project.
ProjectIdRegex string `protobuf:"bytes,1,opt,name=project_id_regex,json=projectIdRegex,proto3" json:"project_id_regex,omitempty"`
// If unset, this property matches all datasets.
DatasetIdRegex string `protobuf:"bytes,2,opt,name=dataset_id_regex,json=datasetIdRegex,proto3" json:"dataset_id_regex,omitempty"`
// If unset, this property matches all tables.
TableIdRegex string `protobuf:"bytes,3,opt,name=table_id_regex,json=tableIdRegex,proto3" json:"table_id_regex,omitempty"`
// contains filtered or unexported fields
}A pattern to match against one or more tables, datasets, or projects that contain BigQuery tables. At least one pattern must be specified. Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.
func (*BigQueryRegex) Descriptor
func (*BigQueryRegex) Descriptor() ([]byte, []int)Deprecated: Use BigQueryRegex.ProtoReflect.Descriptor instead.
func (*BigQueryRegex) GetDatasetIdRegex
func (x *BigQueryRegex) GetDatasetIdRegex() stringfunc (*BigQueryRegex) GetProjectIdRegex
func (x *BigQueryRegex) GetProjectIdRegex() stringfunc (*BigQueryRegex) GetTableIdRegex
func (x *BigQueryRegex) GetTableIdRegex() stringfunc (*BigQueryRegex) ProtoMessage
func (*BigQueryRegex) ProtoMessage()func (*BigQueryRegex) ProtoReflect
func (x *BigQueryRegex) ProtoReflect() protoreflect.Messagefunc (*BigQueryRegex) Reset
func (x *BigQueryRegex) Reset()func (*BigQueryRegex) String
func (x *BigQueryRegex) String() stringBigQueryRegexes
type BigQueryRegexes struct {
// A single BigQuery regular expression pattern to match against one or more
// tables, datasets, or projects that contain BigQuery tables.
Patterns []*BigQueryRegex `protobuf:"bytes,1,rep,name=patterns,proto3" json:"patterns,omitempty"`
// contains filtered or unexported fields
}A collection of regular expressions to determine what tables to match against.
func (*BigQueryRegexes) Descriptor
func (*BigQueryRegexes) Descriptor() ([]byte, []int)Deprecated: Use BigQueryRegexes.ProtoReflect.Descriptor instead.
func (*BigQueryRegexes) GetPatterns
func (x *BigQueryRegexes) GetPatterns() []*BigQueryRegexfunc (*BigQueryRegexes) ProtoMessage
func (*BigQueryRegexes) ProtoMessage()func (*BigQueryRegexes) ProtoReflect
func (x *BigQueryRegexes) ProtoReflect() protoreflect.Messagefunc (*BigQueryRegexes) Reset
func (x *BigQueryRegexes) Reset()func (*BigQueryRegexes) String
func (x *BigQueryRegexes) String() stringBigQuerySchemaModification
type BigQuerySchemaModification int32Attributes evaluated to determine if a schema has been modified. New values may be added at a later time.
BigQuerySchemaModification_SCHEMA_MODIFICATION_UNSPECIFIED, BigQuerySchemaModification_SCHEMA_NEW_COLUMNS, BigQuerySchemaModification_SCHEMA_REMOVED_COLUMNS
const (
// Unused
BigQuerySchemaModification_SCHEMA_MODIFICATION_UNSPECIFIED BigQuerySchemaModification = 0
// Profiles should be regenerated when new columns are added to the table.
// Default.
BigQuerySchemaModification_SCHEMA_NEW_COLUMNS BigQuerySchemaModification = 1
// Profiles should be regenerated when columns are removed from the table.
BigQuerySchemaModification_SCHEMA_REMOVED_COLUMNS BigQuerySchemaModification = 2
)func (BigQuerySchemaModification) Descriptor
func (BigQuerySchemaModification) Descriptor() protoreflect.EnumDescriptorfunc (BigQuerySchemaModification) Enum
func (x BigQuerySchemaModification) Enum() *BigQuerySchemaModificationfunc (BigQuerySchemaModification) EnumDescriptor
func (BigQuerySchemaModification) EnumDescriptor() ([]byte, []int)Deprecated: Use BigQuerySchemaModification.Descriptor instead.
func (BigQuerySchemaModification) Number
func (x BigQuerySchemaModification) Number() protoreflect.EnumNumberfunc (BigQuerySchemaModification) String
func (x BigQuerySchemaModification) String() stringfunc (BigQuerySchemaModification) Type
func (BigQuerySchemaModification) Type() protoreflect.EnumTypeBigQueryTable
type BigQueryTable struct {
// The Google Cloud project ID of the project containing the table.
// If omitted, project ID is inferred from the API call.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Dataset ID of the table.
DatasetId string `protobuf:"bytes,2,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"`
// Name of the table.
TableId string `protobuf:"bytes,3,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
// contains filtered or unexported fields
}Message defining the location of a BigQuery table. A table is uniquely
identified by its project_id, dataset_id, and table_name. Within a query
a table is often referenced with a string in the format of:
<project_id>:<dataset_id>.<table_id> or
<project_id>.<dataset_id>.<table_id>.
func (*BigQueryTable) Descriptor
func (*BigQueryTable) Descriptor() ([]byte, []int)Deprecated: Use BigQueryTable.ProtoReflect.Descriptor instead.
func (*BigQueryTable) GetDatasetId
func (x *BigQueryTable) GetDatasetId() stringfunc (*BigQueryTable) GetProjectId
func (x *BigQueryTable) GetProjectId() stringfunc (*BigQueryTable) GetTableId
func (x *BigQueryTable) GetTableId() stringfunc (*BigQueryTable) ProtoMessage
func (*BigQueryTable) ProtoMessage()func (*BigQueryTable) ProtoReflect
func (x *BigQueryTable) ProtoReflect() protoreflect.Messagefunc (*BigQueryTable) Reset
func (x *BigQueryTable) Reset()func (*BigQueryTable) String
func (x *BigQueryTable) String() stringBigQueryTableCollection
type BigQueryTableCollection struct {
// Maximum of 100 entries.
// The first filter containing a pattern that matches a table will be used.
//
// Types that are assignable to Pattern:
//
// *BigQueryTableCollection_IncludeRegexes
Pattern isBigQueryTableCollection_Pattern `protobuf_oneof:"pattern"`
// contains filtered or unexported fields
}Specifies a collection of BigQuery tables. Used for Discovery.
func (*BigQueryTableCollection) Descriptor
func (*BigQueryTableCollection) Descriptor() ([]byte, []int)Deprecated: Use BigQueryTableCollection.ProtoReflect.Descriptor instead.
func (*BigQueryTableCollection) GetIncludeRegexes
func (x *BigQueryTableCollection) GetIncludeRegexes() *BigQueryRegexesfunc (*BigQueryTableCollection) GetPattern
func (m *BigQueryTableCollection) GetPattern() isBigQueryTableCollection_Patternfunc (*BigQueryTableCollection) ProtoMessage
func (*BigQueryTableCollection) ProtoMessage()func (*BigQueryTableCollection) ProtoReflect
func (x *BigQueryTableCollection) ProtoReflect() protoreflect.Messagefunc (*BigQueryTableCollection) Reset
func (x *BigQueryTableCollection) Reset()func (*BigQueryTableCollection) String
func (x *BigQueryTableCollection) String() stringBigQueryTableCollection_IncludeRegexes
type BigQueryTableCollection_IncludeRegexes struct {
// A collection of regular expressions to match a BigQuery table against.
IncludeRegexes *BigQueryRegexes `protobuf:"bytes,1,opt,name=include_regexes,json=includeRegexes,proto3,oneof"`
}BigQueryTableModification
type BigQueryTableModification int32Attributes evaluated to determine if a table has been modified. New values may be added at a later time.
BigQueryTableModification_TABLE_MODIFICATION_UNSPECIFIED, BigQueryTableModification_TABLE_MODIFIED_TIMESTAMP
const (
// Unused.
BigQueryTableModification_TABLE_MODIFICATION_UNSPECIFIED BigQueryTableModification = 0
// A table will be considered modified when the last_modified_time from
// BigQuery has been updated.
BigQueryTableModification_TABLE_MODIFIED_TIMESTAMP BigQueryTableModification = 1
)func (BigQueryTableModification) Descriptor
func (BigQueryTableModification) Descriptor() protoreflect.EnumDescriptorfunc (BigQueryTableModification) Enum
func (x BigQueryTableModification) Enum() *BigQueryTableModificationfunc (BigQueryTableModification) EnumDescriptor
func (BigQueryTableModification) EnumDescriptor() ([]byte, []int)Deprecated: Use BigQueryTableModification.Descriptor instead.
func (BigQueryTableModification) Number
func (x BigQueryTableModification) Number() protoreflect.EnumNumberfunc (BigQueryTableModification) String
func (x BigQueryTableModification) String() stringfunc (BigQueryTableModification) Type
func (BigQueryTableModification) Type() protoreflect.EnumTypeBigQueryTableType
type BigQueryTableType int32Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW, and non-BigLake external tables are not supported.
BigQueryTableType_BIG_QUERY_TABLE_TYPE_UNSPECIFIED, BigQueryTableType_BIG_QUERY_TABLE_TYPE_TABLE, BigQueryTableType_BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE, BigQueryTableType_BIG_QUERY_TABLE_TYPE_SNAPSHOT
const (
// Unused.
BigQueryTableType_BIG_QUERY_TABLE_TYPE_UNSPECIFIED BigQueryTableType = 0
// A normal BigQuery table.
BigQueryTableType_BIG_QUERY_TABLE_TYPE_TABLE BigQueryTableType = 1
// A table that references data stored in Cloud Storage.
BigQueryTableType_BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE BigQueryTableType = 2
// A snapshot of a BigQuery table.
BigQueryTableType_BIG_QUERY_TABLE_TYPE_SNAPSHOT BigQueryTableType = 3
)func (BigQueryTableType) Descriptor
func (BigQueryTableType) Descriptor() protoreflect.EnumDescriptorfunc (BigQueryTableType) Enum
func (x BigQueryTableType) Enum() *BigQueryTableTypefunc (BigQueryTableType) EnumDescriptor
func (BigQueryTableType) EnumDescriptor() ([]byte, []int)Deprecated: Use BigQueryTableType.Descriptor instead.
func (BigQueryTableType) Number
func (x BigQueryTableType) Number() protoreflect.EnumNumberfunc (BigQueryTableType) String
func (x BigQueryTableType) String() stringfunc (BigQueryTableType) Type
func (BigQueryTableType) Type() protoreflect.EnumTypeBigQueryTableTypeCollection
type BigQueryTableTypeCollection int32Over time new types may be added. Currently VIEW, MATERIALIZED_VIEW, and non-BigLake external tables are not supported.
BigQueryTableTypeCollection_BIG_QUERY_COLLECTION_UNSPECIFIED, BigQueryTableTypeCollection_BIG_QUERY_COLLECTION_ALL_TYPES, BigQueryTableTypeCollection_BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES
const (
// Unused.
BigQueryTableTypeCollection_BIG_QUERY_COLLECTION_UNSPECIFIED BigQueryTableTypeCollection = 0
// Automatically generate profiles for all tables, even if the table type is
// not yet fully supported for analysis. Profiles for unsupported tables will
// be generated with errors to indicate their partial support. When full
// support is added, the tables will automatically be profiled during the next
// scheduled run.
BigQueryTableTypeCollection_BIG_QUERY_COLLECTION_ALL_TYPES BigQueryTableTypeCollection = 1
// Only those types fully supported will be profiled. Will expand
// automatically as Cloud DLP adds support for new table types. Unsupported
// table types will not have partial profiles generated.
BigQueryTableTypeCollection_BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES BigQueryTableTypeCollection = 2
)func (BigQueryTableTypeCollection) Descriptor
func (BigQueryTableTypeCollection) Descriptor() protoreflect.EnumDescriptorfunc (BigQueryTableTypeCollection) Enum
func (x BigQueryTableTypeCollection) Enum() *BigQueryTableTypeCollectionfunc (BigQueryTableTypeCollection) EnumDescriptor
func (BigQueryTableTypeCollection) EnumDescriptor() ([]byte, []int)Deprecated: Use BigQueryTableTypeCollection.Descriptor instead.
func (BigQueryTableTypeCollection) Number
func (x BigQueryTableTypeCollection) Number() protoreflect.EnumNumberfunc (BigQueryTableTypeCollection) String
func (x BigQueryTableTypeCollection) String() stringfunc (BigQueryTableTypeCollection) Type
func (BigQueryTableTypeCollection) Type() protoreflect.EnumTypeBigQueryTableTypes
type BigQueryTableTypes struct {
// A set of BigQuery table types.
Types []BigQueryTableType `protobuf:"varint,1,rep,packed,name=types,proto3,enum=google.privacy.dlp.v2.BigQueryTableType" json:"types,omitempty"`
// contains filtered or unexported fields
}The types of BigQuery tables supported by Cloud DLP.
func (*BigQueryTableTypes) Descriptor
func (*BigQueryTableTypes) Descriptor() ([]byte, []int)Deprecated: Use BigQueryTableTypes.ProtoReflect.Descriptor instead.
func (*BigQueryTableTypes) GetTypes
func (x *BigQueryTableTypes) GetTypes() []BigQueryTableTypefunc (*BigQueryTableTypes) ProtoMessage
func (*BigQueryTableTypes) ProtoMessage()func (*BigQueryTableTypes) ProtoReflect
func (x *BigQueryTableTypes) ProtoReflect() protoreflect.Messagefunc (*BigQueryTableTypes) Reset
func (x *BigQueryTableTypes) Reset()func (*BigQueryTableTypes) String
func (x *BigQueryTableTypes) String() stringBoundingBox
type BoundingBox struct {
// Top coordinate of the bounding box. (0,0) is upper left.
Top int32 `protobuf:"varint,1,opt,name=top,proto3" json:"top,omitempty"`
// Left coordinate of the bounding box. (0,0) is upper left.
Left int32 `protobuf:"varint,2,opt,name=left,proto3" json:"left,omitempty"`
// Width of the bounding box in pixels.
Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
// Height of the bounding box in pixels.
Height int32 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
// contains filtered or unexported fields
}Bounding box encompassing detected text within an image.
func (*BoundingBox) Descriptor
func (*BoundingBox) Descriptor() ([]byte, []int)Deprecated: Use BoundingBox.ProtoReflect.Descriptor instead.
func (*BoundingBox) GetHeight
func (x *BoundingBox) GetHeight() int32func (*BoundingBox) GetLeft
func (x *BoundingBox) GetLeft() int32func (*BoundingBox) GetTop
func (x *BoundingBox) GetTop() int32func (*BoundingBox) GetWidth
func (x *BoundingBox) GetWidth() int32func (*BoundingBox) ProtoMessage
func (*BoundingBox) ProtoMessage()func (*BoundingBox) ProtoReflect
func (x *BoundingBox) ProtoReflect() protoreflect.Messagefunc (*BoundingBox) Reset
func (x *BoundingBox) Reset()func (*BoundingBox) String
func (x *BoundingBox) String() stringBucketingConfig
type BucketingConfig struct {
// Set of buckets. Ranges must be non-overlapping.
Buckets []*BucketingConfig_Bucket `protobuf:"bytes,1,rep,name=buckets,proto3" json:"buckets,omitempty"`
// contains filtered or unexported fields
}Generalization function that buckets values based on ranges. The ranges and replacement values are dynamically provided by the user for custom behavior, such as 1-30 -> LOW, 31-65 -> MEDIUM, 66-100 -> HIGH.
This can be used on data of type: number, long, string, timestamp.
If the bound Value type differs from the type of data being transformed, we
will first attempt converting the type of the data to be transformed to match
the type of the bound before comparing.
See
https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to
learn more.
func (*BucketingConfig) Descriptor
func (*BucketingConfig) Descriptor() ([]byte, []int)Deprecated: Use BucketingConfig.ProtoReflect.Descriptor instead.
func (*BucketingConfig) GetBuckets
func (x *BucketingConfig) GetBuckets() []*BucketingConfig_Bucketfunc (*BucketingConfig) ProtoMessage
func (*BucketingConfig) ProtoMessage()func (*BucketingConfig) ProtoReflect
func (x *BucketingConfig) ProtoReflect() protoreflect.Messagefunc (*BucketingConfig) Reset
func (x *BucketingConfig) Reset()func (*BucketingConfig) String
func (x *BucketingConfig) String() stringBucketingConfig_Bucket
type BucketingConfig_Bucket struct {
// Lower bound of the range, inclusive. Type should be the same as max if
// used.
Min *Value `protobuf:"bytes,1,opt,name=min,proto3" json:"min,omitempty"`
// Upper bound of the range, exclusive; type must match min.
Max *Value `protobuf:"bytes,2,opt,name=max,proto3" json:"max,omitempty"`
// Required. Replacement value for this bucket.
ReplacementValue *Value `protobuf:"bytes,3,opt,name=replacement_value,json=replacementValue,proto3" json:"replacement_value,omitempty"`
// contains filtered or unexported fields
}Bucket is represented as a range, along with replacement values.
func (*BucketingConfig_Bucket) Descriptor
func (*BucketingConfig_Bucket) Descriptor() ([]byte, []int)Deprecated: Use BucketingConfig_Bucket.ProtoReflect.Descriptor instead.
func (*BucketingConfig_Bucket) GetMax
func (x *BucketingConfig_Bucket) GetMax() *Valuefunc (*BucketingConfig_Bucket) GetMin
func (x *BucketingConfig_Bucket) GetMin() *Valuefunc (*BucketingConfig_Bucket) GetReplacementValue
func (x *BucketingConfig_Bucket) GetReplacementValue() *Valuefunc (*BucketingConfig_Bucket) ProtoMessage
func (*BucketingConfig_Bucket) ProtoMessage()func (*BucketingConfig_Bucket) ProtoReflect
func (x *BucketingConfig_Bucket) ProtoReflect() protoreflect.Messagefunc (*BucketingConfig_Bucket) Reset
func (x *BucketingConfig_Bucket) Reset()func (*BucketingConfig_Bucket) String
func (x *BucketingConfig_Bucket) String() stringByteContentItem
type ByteContentItem struct {
// The type of data stored in the bytes string. Default will be TEXT_UTF8.
Type ByteContentItem_BytesType `protobuf:"varint,1,opt,name=type,proto3,enum=google.privacy.dlp.v2.ByteContentItem_BytesType" json:"type,omitempty"`
// Content data to inspect or redact.
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}Container for bytes to inspect or redact.
func (*ByteContentItem) Descriptor
func (*ByteContentItem) Descriptor() ([]byte, []int)Deprecated: Use ByteContentItem.ProtoReflect.Descriptor instead.
func (*ByteContentItem) GetData
func (x *ByteContentItem) GetData() []bytefunc (*ByteContentItem) GetType
func (x *ByteContentItem) GetType() ByteContentItem_BytesTypefunc (*ByteContentItem) ProtoMessage
func (*ByteContentItem) ProtoMessage()func (*ByteContentItem) ProtoReflect
func (x *ByteContentItem) ProtoReflect() protoreflect.Messagefunc (*ByteContentItem) Reset
func (x *ByteContentItem) Reset()func (*ByteContentItem) String
func (x *ByteContentItem) String() stringByteContentItem_BytesType
type ByteContentItem_BytesType int32The type of data being sent for inspection. To learn more, see Supported file types.
Only the first frame of each multiframe image is inspected. Metadata and other frames aren't inspected.
ByteContentItem_BYTES_TYPE_UNSPECIFIED, ByteContentItem_IMAGE, ByteContentItem_IMAGE_JPEG, ByteContentItem_IMAGE_BMP, ByteContentItem_IMAGE_PNG, ByteContentItem_IMAGE_SVG, ByteContentItem_TEXT_UTF8, ByteContentItem_WORD_DOCUMENT, ByteContentItem_PDF, ByteContentItem_POWERPOINT_DOCUMENT, ByteContentItem_EXCEL_DOCUMENT, ByteContentItem_AVRO, ByteContentItem_CSV, ByteContentItem_TSV, ByteContentItem_AUDIO, ByteContentItem_VIDEO, ByteContentItem_EXECUTABLE, ByteContentItem_AI_MODEL
const (
// Unused
ByteContentItem_BYTES_TYPE_UNSPECIFIED ByteContentItem_BytesType = 0
// Any image type.
ByteContentItem_IMAGE ByteContentItem_BytesType = 6
// jpeg
ByteContentItem_IMAGE_JPEG ByteContentItem_BytesType = 1
// bmp
ByteContentItem_IMAGE_BMP ByteContentItem_BytesType = 2
// png
ByteContentItem_IMAGE_PNG ByteContentItem_BytesType = 3
// svg
ByteContentItem_IMAGE_SVG ByteContentItem_BytesType = 4
// plain text
ByteContentItem_TEXT_UTF8 ByteContentItem_BytesType = 5
// docx, docm, dotx, dotm
ByteContentItem_WORD_DOCUMENT ByteContentItem_BytesType = 7
// pdf
ByteContentItem_PDF ByteContentItem_BytesType = 8
// pptx, pptm, potx, potm, pot
ByteContentItem_POWERPOINT_DOCUMENT ByteContentItem_BytesType = 9
// xlsx, xlsm, xltx, xltm
ByteContentItem_EXCEL_DOCUMENT ByteContentItem_BytesType = 10
// avro
ByteContentItem_AVRO ByteContentItem_BytesType = 11
// csv
ByteContentItem_CSV ByteContentItem_BytesType = 12
// tsv
ByteContentItem_TSV ByteContentItem_BytesType = 13
// Audio file types. Only used for profiling.
ByteContentItem_AUDIO ByteContentItem_BytesType = 15
// Video file types. Only used for profiling.
ByteContentItem_VIDEO ByteContentItem_BytesType = 16
// Executable file types. Only used for profiling.
ByteContentItem_EXECUTABLE ByteContentItem_BytesType = 17
// AI model file types. Only used for profiling.
ByteContentItem_AI_MODEL ByteContentItem_BytesType = 18
)func (ByteContentItem_BytesType) Descriptor
func (ByteContentItem_BytesType) Descriptor() protoreflect.EnumDescriptorfunc (ByteContentItem_BytesType) Enum
func (x ByteContentItem_BytesType) Enum() *ByteContentItem_BytesTypefunc (ByteContentItem_BytesType) EnumDescriptor
func (ByteContentItem_BytesType) EnumDescriptor() ([]byte, []int)Deprecated: Use ByteContentItem_BytesType.Descriptor instead.
func (ByteContentItem_BytesType) Number
func (x ByteContentItem_BytesType) Number() protoreflect.EnumNumberfunc (ByteContentItem_BytesType) String
func (x ByteContentItem_BytesType) String() stringfunc (ByteContentItem_BytesType) Type
func (ByteContentItem_BytesType) Type() protoreflect.EnumTypeCancelDlpJobRequest
type CancelDlpJobRequest struct {
// Required. The name of the DlpJob resource to be cancelled.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request message for canceling a DLP job.
func (*CancelDlpJobRequest) Descriptor
func (*CancelDlpJobRequest) Descriptor() ([]byte, []int)Deprecated: Use CancelDlpJobRequest.ProtoReflect.Descriptor instead.
func (*CancelDlpJobRequest) GetName
func (x *CancelDlpJobRequest) GetName() stringfunc (*CancelDlpJobRequest) ProtoMessage
func (*CancelDlpJobRequest) ProtoMessage()func (*CancelDlpJobRequest) ProtoReflect
func (x *CancelDlpJobRequest) ProtoReflect() protoreflect.Messagefunc (*CancelDlpJobRequest) Reset
func (x *CancelDlpJobRequest) Reset()func (*CancelDlpJobRequest) String
func (x *CancelDlpJobRequest) String() stringCharacterMaskConfig
type CharacterMaskConfig struct {
// Character to use to mask the sensitive values—for example, `*` for an
// alphabetic string such as a name, or `0` for a numeric string such as ZIP
// code or credit card number. This string must have a length of 1. If not
// supplied, this value defaults to `*` for strings, and `0` for digits.
MaskingCharacter string `protobuf:"bytes,1,opt,name=masking_character,json=maskingCharacter,proto3" json:"masking_character,omitempty"`
// Number of characters to mask. If not set, all matching chars will be
// masked. Skipped characters do not count towards this tally.
//
// If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP
// masks all but a number of characters.
// For example, suppose you have the following values:
//
// - `masking_character` is `*`
// - `number_to_mask` is `-4`
// - `reverse_order` is `false`
// - `CharsToIgnore` includes `-`
// - Input string is `1234-5678-9012-3456`
//
// The resulting de-identified string is
// `****-****-****-3456`. Cloud DLP masks all but the last four characters.
// If `reverse_order` is `true`, all but the first four characters are masked
// as `1234-****-****-****`.
NumberToMask int32 `protobuf:"varint,2,opt,name=number_to_mask,json=numberToMask,proto3" json:"number_to_mask,omitempty"`
// Mask characters in reverse order. For example, if `masking_character` is
// `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the
// input string `1234-5678-9012-3456` is masked as `00000000000000-3456`.
// If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order`
// is `true`, then the string `12345` is masked as `12***`.
ReverseOrder bool `protobuf:"varint,3,opt,name=reverse_order,json=reverseOrder,proto3" json:"reverse_order,omitempty"`
// When masking a string, items in this list will be skipped when replacing
// characters. For example, if the input string is `555-555-5555` and you
// instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP
// returns `***-**5-5555`.
CharactersToIgnore []*CharsToIgnore `protobuf:"bytes,4,rep,name=characters_to_ignore,json=charactersToIgnore,proto3" json:"characters_to_ignore,omitempty"`
// contains filtered or unexported fields
}Partially mask a string by replacing a given number of characters with a fixed character. Masking can start from the beginning or end of the string. This can be used on data of any type (numbers, longs, and so on) and when de-identifying structured data we'll attempt to preserve the original data's type. (This allows you to take a long like 123 and modify it to a string like **3.
func (*CharacterMaskConfig) Descriptor
func (*CharacterMaskConfig) Descriptor() ([]byte, []int)Deprecated: Use CharacterMaskConfig.ProtoReflect.Descriptor instead.
func (*CharacterMaskConfig) GetCharactersToIgnore
func (x *CharacterMaskConfig) GetCharactersToIgnore() []*CharsToIgnorefunc (*CharacterMaskConfig) GetMaskingCharacter
func (x *CharacterMaskConfig) GetMaskingCharacter() stringfunc (*CharacterMaskConfig) GetNumberToMask
func (x *CharacterMaskConfig) GetNumberToMask() int32func (*CharacterMaskConfig) GetReverseOrder
func (x *CharacterMaskConfig) GetReverseOrder() boolfunc (*CharacterMaskConfig) ProtoMessage
func (*CharacterMaskConfig) ProtoMessage()func (*CharacterMaskConfig) ProtoReflect
func (x *CharacterMaskConfig) ProtoReflect() protoreflect.Messagefunc (*CharacterMaskConfig) Reset
func (x *CharacterMaskConfig) Reset()func (*CharacterMaskConfig) String
func (x *CharacterMaskConfig) String() stringCharsToIgnore
type CharsToIgnore struct {
// Type of characters to skip.
//
// Types that are assignable to Characters:
//
// *CharsToIgnore_CharactersToSkip
// *CharsToIgnore_CommonCharactersToIgnore
Characters isCharsToIgnore_Characters `protobuf_oneof:"characters"`
// contains filtered or unexported fields
}Characters to skip when doing deidentification of a value. These will be left alone and skipped.
func (*CharsToIgnore) Descriptor
func (*CharsToIgnore) Descriptor() ([]byte, []int)Deprecated: Use CharsToIgnore.ProtoReflect.Descriptor instead.
func (*CharsToIgnore) GetCharacters
func (m *CharsToIgnore) GetCharacters() isCharsToIgnore_Charactersfunc (*CharsToIgnore) GetCharactersToSkip
func (x *CharsToIgnore) GetCharactersToSkip() stringfunc (*CharsToIgnore) GetCommonCharactersToIgnore
func (x *CharsToIgnore) GetCommonCharactersToIgnore() CharsToIgnore_CommonCharsToIgnorefunc (*CharsToIgnore) ProtoMessage
func (*CharsToIgnore) ProtoMessage()func (*CharsToIgnore) ProtoReflect
func (x *CharsToIgnore) ProtoReflect() protoreflect.Messagefunc (*CharsToIgnore) Reset
func (x *CharsToIgnore) Reset()func (*CharsToIgnore) String
func (x *CharsToIgnore) String() stringCharsToIgnore_CharactersToSkip
type CharsToIgnore_CharactersToSkip struct {
// Characters to not transform when masking.
CharactersToSkip string `protobuf:"bytes,1,opt,name=characters_to_skip,json=charactersToSkip,proto3,oneof"`
}CharsToIgnore_CommonCharactersToIgnore
type CharsToIgnore_CommonCharactersToIgnore struct {
// Common characters to not transform when masking. Useful to avoid removing
// punctuation.
CommonCharactersToIgnore CharsToIgnore_CommonCharsToIgnore `protobuf:"varint,2,opt,name=common_characters_to_ignore,json=commonCharactersToIgnore,proto3,enum=google.privacy.dlp.v2.CharsToIgnore_CommonCharsToIgnore,oneof"`
}CharsToIgnore_CommonCharsToIgnore
type CharsToIgnore_CommonCharsToIgnore int32Convenience enum for indicating common characters to not transform.
CharsToIgnore_COMMON_CHARS_TO_IGNORE_UNSPECIFIED, CharsToIgnore_NUMERIC, CharsToIgnore_ALPHA_UPPER_CASE, CharsToIgnore_ALPHA_LOWER_CASE, CharsToIgnore_PUNCTUATION, CharsToIgnore_WHITESPACE
const (
// Unused.
CharsToIgnore_COMMON_CHARS_TO_IGNORE_UNSPECIFIED CharsToIgnore_CommonCharsToIgnore = 0
// 0-9
CharsToIgnore_NUMERIC CharsToIgnore_CommonCharsToIgnore = 1
// A-Z
CharsToIgnore_ALPHA_UPPER_CASE CharsToIgnore_CommonCharsToIgnore = 2
// a-z
CharsToIgnore_ALPHA_LOWER_CASE CharsToIgnore_CommonCharsToIgnore = 3
// US Punctuation, one of !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
CharsToIgnore_PUNCTUATION CharsToIgnore_CommonCharsToIgnore = 4
// Whitespace character, one of [ \t\n\x0B\f\r]
CharsToIgnore_WHITESPACE CharsToIgnore_CommonCharsToIgnore = 5
)func (CharsToIgnore_CommonCharsToIgnore) Descriptor
func (CharsToIgnore_CommonCharsToIgnore) Descriptor() protoreflect.EnumDescriptorfunc (CharsToIgnore_CommonCharsToIgnore) Enum
func (x CharsToIgnore_CommonCharsToIgnore) Enum() *CharsToIgnore_CommonCharsToIgnorefunc (CharsToIgnore_CommonCharsToIgnore) EnumDescriptor
func (CharsToIgnore_CommonCharsToIgnore) EnumDescriptor() ([]byte, []int)Deprecated: Use CharsToIgnore_CommonCharsToIgnore.Descriptor instead.
func (CharsToIgnore_CommonCharsToIgnore) Number
func (x CharsToIgnore_CommonCharsToIgnore) Number() protoreflect.EnumNumberfunc (CharsToIgnore_CommonCharsToIgnore) String
func (x CharsToIgnore_CommonCharsToIgnore) String() stringfunc (CharsToIgnore_CommonCharsToIgnore) Type
func (CharsToIgnore_CommonCharsToIgnore) Type() protoreflect.EnumTypeCloudSqlDiscoveryTarget
type CloudSqlDiscoveryTarget struct {
// Required. The tables the discovery cadence applies to. The first target
// with a matching filter will be the one to apply to a table.
Filter *DiscoveryCloudSqlFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
// In addition to matching the filter, these conditions must be true
// before a profile is generated.
Conditions *DiscoveryCloudSqlConditions `protobuf:"bytes,2,opt,name=conditions,proto3" json:"conditions,omitempty"`
// Type of schedule.
//
// Types that are assignable to Cadence:
//
// *CloudSqlDiscoveryTarget_GenerationCadence
// *CloudSqlDiscoveryTarget_Disabled
Cadence isCloudSqlDiscoveryTarget_Cadence `protobuf_oneof:"cadence"`
// contains filtered or unexported fields
}Target used to match against for discovery with Cloud SQL tables.
func (*CloudSqlDiscoveryTarget) Descriptor
func (*CloudSqlDiscoveryTarget) Descriptor() ([]byte, []int)Deprecated: Use CloudSqlDiscoveryTarget.ProtoReflect.Descriptor instead.
func (*CloudSqlDiscoveryTarget) GetCadence
func (m *CloudSqlDiscoveryTarget) GetCadence() isCloudSqlDiscoveryTarget_Cadencefunc (*CloudSqlDiscoveryTarget) GetConditions
func (x *CloudSqlDiscoveryTarget) GetConditions() *DiscoveryCloudSqlConditionsfunc (*CloudSqlDiscoveryTarget) GetDisabled
func (x *CloudSqlDiscoveryTarget) GetDisabled() *Disabledfunc (*CloudSqlDiscoveryTarget) GetFilter
func (x *CloudSqlDiscoveryTarget) GetFilter() *DiscoveryCloudSqlFilterfunc (*CloudSqlDiscoveryTarget) GetGenerationCadence
func (x *CloudSqlDiscoveryTarget) GetGenerationCadence() *DiscoveryCloudSqlGenerationCadencefunc (*CloudSqlDiscoveryTarget) ProtoMessage
func (*CloudSqlDiscoveryTarget) ProtoMessage()func (*CloudSqlDiscoveryTarget) ProtoReflect
func (x *CloudSqlDiscoveryTarget) ProtoReflect() protoreflect.Messagefunc (*CloudSqlDiscoveryTarget) Reset
func (x *CloudSqlDiscoveryTarget) Reset()func (*CloudSqlDiscoveryTarget) String
func (x *CloudSqlDiscoveryTarget) String() stringCloudSqlDiscoveryTarget_Disabled
type CloudSqlDiscoveryTarget_Disabled struct {
// Disable profiling for database resources that match this filter.
Disabled *Disabled `protobuf:"bytes,4,opt,name=disabled,proto3,oneof"`
}CloudSqlDiscoveryTarget_GenerationCadence
type CloudSqlDiscoveryTarget_GenerationCadence struct {
// How often and when to update profiles. New tables that match both the
// filter and conditions are scanned as quickly as possible depending on
// system capacity.
GenerationCadence *DiscoveryCloudSqlGenerationCadence `protobuf:"bytes,3,opt,name=generation_cadence,json=generationCadence,proto3,oneof"`
}CloudSqlIamCredential
type CloudSqlIamCredential struct {
// contains filtered or unexported fields
}Use IAM authentication to connect. This requires the Cloud SQL IAM feature to be enabled on the instance, which is not the default for Cloud SQL. See https://cloud.google.com/sql/docs/postgres/authentication and https://cloud.google.com/sql/docs/mysql/authentication.
func (*CloudSqlIamCredential) Descriptor
func (*CloudSqlIamCredential) Descriptor() ([]byte, []int)Deprecated: Use CloudSqlIamCredential.ProtoReflect.Descriptor instead.
func (*CloudSqlIamCredential) ProtoMessage
func (*CloudSqlIamCredential) ProtoMessage()func (*CloudSqlIamCredential) ProtoReflect
func (x *CloudSqlIamCredential) ProtoReflect() protoreflect.Messagefunc (*CloudSqlIamCredential) Reset
func (x *CloudSqlIamCredential) Reset()func (*CloudSqlIamCredential) String
func (x *CloudSqlIamCredential) String() stringCloudSqlProperties
type CloudSqlProperties struct {
// Optional. Immutable. The Cloud SQL instance for which the connection is
// defined. Only one connection per instance is allowed. This can only be set
// at creation time, and cannot be updated.
//
// It is an error to use a connection_name from different project or region
// than the one that holds the connection.
// For example, a Connection resource for Cloud SQL connection_name
// `project-id:us-central1:sql-instance`
// must be created under the parent
// `projects/project-id/locations/us-central1`
ConnectionName string `protobuf:"bytes,1,opt,name=connection_name,json=connectionName,proto3" json:"connection_name,omitempty"`
// How to authenticate to the instance.
//
// Types that are assignable to Credential:
//
// *CloudSqlProperties_UsernamePassword
// *CloudSqlProperties_CloudSqlIam
Credential isCloudSqlProperties_Credential `protobuf_oneof:"credential"`
// Required. The DLP API will limit its connections to max_connections.
// Must be 2 or greater.
MaxConnections int32 `protobuf:"varint,4,opt,name=max_connections,json=maxConnections,proto3" json:"max_connections,omitempty"`
// Required. The database engine used by the Cloud SQL instance that this
// connection configures.
DatabaseEngine CloudSqlProperties_DatabaseEngine `protobuf:"varint,7,opt,name=database_engine,json=databaseEngine,proto3,enum=google.privacy.dlp.v2.CloudSqlProperties_DatabaseEngine" json:"database_engine,omitempty"`
// contains filtered or unexported fields
}Cloud SQL connection properties.
func (*CloudSqlProperties) Descriptor
func (*CloudSqlProperties) Descriptor() ([]byte, []int)Deprecated: Use CloudSqlProperties.ProtoReflect.Descriptor instead.
func (*CloudSqlProperties) GetCloudSqlIam
func (x *CloudSqlProperties) GetCloudSqlIam() *CloudSqlIamCredentialfunc (*CloudSqlProperties) GetConnectionName
func (x *CloudSqlProperties) GetConnectionName() stringfunc (*CloudSqlProperties) GetCredential
func (m *CloudSqlProperties) GetCredential() isCloudSqlProperties_Credentialfunc (*CloudSqlProperties) GetDatabaseEngine
func (x *CloudSqlProperties) GetDatabaseEngine() CloudSqlProperties_DatabaseEnginefunc (*CloudSqlProperties) GetMaxConnections
func (x *CloudSqlProperties) GetMaxConnections() int32func (*CloudSqlProperties) GetUsernamePassword
func (x *CloudSqlProperties) GetUsernamePassword() *SecretManagerCredentialfunc (*CloudSqlProperties) ProtoMessage
func (*CloudSqlProperties) ProtoMessage()func (*CloudSqlProperties) ProtoReflect
func (x *CloudSqlProperties) ProtoReflect() protoreflect.Messagefunc (*CloudSqlProperties) Reset
func (x *CloudSqlProperties) Reset()func (*CloudSqlProperties) String
func (x *CloudSqlProperties) String() stringCloudSqlProperties_CloudSqlIam
type CloudSqlProperties_CloudSqlIam struct {
// Built-in IAM authentication (must be configured in Cloud SQL).
CloudSqlIam *CloudSqlIamCredential `protobuf:"bytes,3,opt,name=cloud_sql_iam,json=cloudSqlIam,proto3,oneof"`
}CloudSqlProperties_DatabaseEngine
type CloudSqlProperties_DatabaseEngine int32Database engine of a Cloud SQL instance. New values may be added over time.
CloudSqlProperties_DATABASE_ENGINE_UNKNOWN, CloudSqlProperties_DATABASE_ENGINE_MYSQL, CloudSqlProperties_DATABASE_ENGINE_POSTGRES
const (
// An engine that is not currently supported by Sensitive Data Protection.
CloudSqlProperties_DATABASE_ENGINE_UNKNOWN CloudSqlProperties_DatabaseEngine = 0
// Cloud SQL for MySQL instance.
CloudSqlProperties_DATABASE_ENGINE_MYSQL CloudSqlProperties_DatabaseEngine = 1
// Cloud SQL for PostgreSQL instance.
CloudSqlProperties_DATABASE_ENGINE_POSTGRES CloudSqlProperties_DatabaseEngine = 2
)func (CloudSqlProperties_DatabaseEngine) Descriptor
func (CloudSqlProperties_DatabaseEngine) Descriptor() protoreflect.EnumDescriptorfunc (CloudSqlProperties_DatabaseEngine) Enum
func (x CloudSqlProperties_DatabaseEngine) Enum() *CloudSqlProperties_DatabaseEnginefunc (CloudSqlProperties_DatabaseEngine) EnumDescriptor
func (CloudSqlProperties_DatabaseEngine) EnumDescriptor() ([]byte, []int)Deprecated: Use CloudSqlProperties_DatabaseEngine.Descriptor instead.
func (CloudSqlProperties_DatabaseEngine) Number
func (x CloudSqlProperties_DatabaseEngine) Number() protoreflect.EnumNumberfunc (CloudSqlProperties_DatabaseEngine) String
func (x CloudSqlProperties_DatabaseEngine) String() stringfunc (CloudSqlProperties_DatabaseEngine) Type
func (CloudSqlProperties_DatabaseEngine) Type() protoreflect.EnumTypeCloudSqlProperties_UsernamePassword
type CloudSqlProperties_UsernamePassword struct {
// A username and password stored in Secret Manager.
UsernamePassword *SecretManagerCredential `protobuf:"bytes,2,opt,name=username_password,json=usernamePassword,proto3,oneof"`
}CloudStorageDiscoveryTarget
type CloudStorageDiscoveryTarget struct {
// Required. The buckets the generation_cadence applies to. The first target
// with a matching filter will be the one to apply to a bucket.
Filter *DiscoveryCloudStorageFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. In addition to matching the filter, these conditions must be true
// before a profile is generated.
Conditions *DiscoveryFileStoreConditions `protobuf:"bytes,4,opt,name=conditions,proto3" json:"conditions,omitempty"`
// How often and when to update profiles.
//
// Types that are assignable to Cadence:
//
// *CloudStorageDiscoveryTarget_GenerationCadence
// *CloudStorageDiscoveryTarget_Disabled
Cadence isCloudStorageDiscoveryTarget_Cadence `protobuf_oneof:"cadence"`
// contains filtered or unexported fields
}Target used to match against for discovery with Cloud Storage buckets.
func (*CloudStorageDiscoveryTarget) Descriptor
func (*CloudStorageDiscoveryTarget) Descriptor() ([]byte, []int)Deprecated: Use CloudStorageDiscoveryTarget.ProtoReflect.Descriptor instead.
func (*CloudStorageDiscoveryTarget) GetCadence
func (m *CloudStorageDiscoveryTarget) GetCadence() isCloudStorageDiscoveryTarget_Cadencefunc (*CloudStorageDiscoveryTarget) GetConditions
func (x *CloudStorageDiscoveryTarget) GetConditions() *DiscoveryFileStoreConditionsfunc (*CloudStorageDiscoveryTarget) GetDisabled
func (x *CloudStorageDiscoveryTarget) GetDisabled() *Disabledfunc (*CloudStorageDiscoveryTarget) GetFilter
func (x *CloudStorageDiscoveryTarget) GetFilter() *DiscoveryCloudStorageFilterfunc (*CloudStorageDiscoveryTarget) GetGenerationCadence
func (x *CloudStorageDiscoveryTarget) GetGenerationCadence() *DiscoveryCloudStorageGenerationCadencefunc (*CloudStorageDiscoveryTarget) ProtoMessage
func (*CloudStorageDiscoveryTarget) ProtoMessage()func (*CloudStorageDiscoveryTarget) ProtoReflect
func (x *CloudStorageDiscoveryTarget) ProtoReflect() protoreflect.Messagefunc (*CloudStorageDiscoveryTarget) Reset
func (x *CloudStorageDiscoveryTarget) Reset()func (*CloudStorageDiscoveryTarget) String
func (x *CloudStorageDiscoveryTarget) String() stringCloudStorageDiscoveryTarget_Disabled
type CloudStorageDiscoveryTarget_Disabled struct {
// Optional. Disable profiling for buckets that match this filter.
Disabled *Disabled `protobuf:"bytes,3,opt,name=disabled,proto3,oneof"`
}CloudStorageDiscoveryTarget_GenerationCadence
type CloudStorageDiscoveryTarget_GenerationCadence struct {
// Optional. How often and when to update profiles. New buckets that match
// both the filter and conditions are scanned as quickly as possible
// depending on system capacity.
GenerationCadence *DiscoveryCloudStorageGenerationCadence `protobuf:"bytes,2,opt,name=generation_cadence,json=generationCadence,proto3,oneof"`
}CloudStorageFileSet
type CloudStorageFileSet struct {
// The url, in the format `gs://Message representing a set of files in Cloud Storage.
func (*CloudStorageFileSet) Descriptor
func (*CloudStorageFileSet) Descriptor() ([]byte, []int)Deprecated: Use CloudStorageFileSet.ProtoReflect.Descriptor instead.
func (*CloudStorageFileSet) GetUrl
func (x *CloudStorageFileSet) GetUrl() stringfunc (*CloudStorageFileSet) ProtoMessage
func (*CloudStorageFileSet) ProtoMessage()func (*CloudStorageFileSet) ProtoReflect
func (x *CloudStorageFileSet) ProtoReflect() protoreflect.Messagefunc (*CloudStorageFileSet) Reset
func (x *CloudStorageFileSet) Reset()func (*CloudStorageFileSet) String
func (x *CloudStorageFileSet) String() stringCloudStorageOptions
type CloudStorageOptions struct {
// The set of one or more files to scan.
FileSet *CloudStorageOptions_FileSet `protobuf:"bytes,1,opt,name=file_set,json=fileSet,proto3" json:"file_set,omitempty"`
// Max number of bytes to scan from a file. If a scanned file's size is bigger
// than this value then the rest of the bytes are omitted. Only one of
// `bytes_limit_per_file` and `bytes_limit_per_file_percent` can be specified.
// This field can't be set if de-identification is requested. For certain file
// types, setting this field has no effect. For more information, see [Limits
// on bytes scanned per
// file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file).
BytesLimitPerFile int64 `protobuf:"varint,4,opt,name=bytes_limit_per_file,json=bytesLimitPerFile,proto3" json:"bytes_limit_per_file,omitempty"`
// Max percentage of bytes to scan from a file. The rest are omitted. The
// number of bytes scanned is rounded down. Must be between 0 and 100,
// inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of
// bytes_limit_per_file and bytes_limit_per_file_percent can be specified.
// This field can't be set if de-identification is requested. For certain file
// types, setting this field has no effect. For more information, see [Limits
// on bytes scanned per
// file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file).
BytesLimitPerFilePercent int32 `protobuf:"varint,8,opt,name=bytes_limit_per_file_percent,json=bytesLimitPerFilePercent,proto3" json:"bytes_limit_per_file_percent,omitempty"`
// List of file type groups to include in the scan.
// If empty, all files are scanned and available data format processors
// are applied. In addition, the binary content of the selected files
// is always scanned as well.
// Images are scanned only as binary if the specified region
// does not support image inspection and no file_types were specified.
// Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
FileTypes []FileType `protobuf:"varint,5,rep,packed,name=file_types,json=fileTypes,proto3,enum=google.privacy.dlp.v2.FileType" json:"file_types,omitempty"`
// How to sample the data.
SampleMethod CloudStorageOptions_SampleMethod `protobuf:"varint,6,opt,name=sample_method,json=sampleMethod,proto3,enum=google.privacy.dlp.v2.CloudStorageOptions_SampleMethod" json:"sample_method,omitempty"`
// Limits the number of files to scan to this percentage of the input FileSet.
// Number of files scanned is rounded down. Must be between 0 and 100,
// inclusively. Both 0 and 100 means no limit. Defaults to 0.
FilesLimitPercent int32 `protobuf:"varint,7,opt,name=files_limit_percent,json=filesLimitPercent,proto3" json:"files_limit_percent,omitempty"`
// contains filtered or unexported fields
}Options defining a file or a set of files within a Cloud Storage bucket.
func (*CloudStorageOptions) Descriptor
func (*CloudStorageOptions) Descriptor() ([]byte, []int)Deprecated: Use CloudStorageOptions.ProtoReflect.Descriptor instead.
func (*CloudStorageOptions) GetBytesLimitPerFile
func (x *CloudStorageOptions) GetBytesLimitPerFile() int64func (*CloudStorageOptions) GetBytesLimitPerFilePercent
func (x *CloudStorageOptions) GetBytesLimitPerFilePercent() int32func (*CloudStorageOptions) GetFileSet
func (x *CloudStorageOptions) GetFileSet() *CloudStorageOptions_FileSetfunc (*CloudStorageOptions) GetFileTypes
func (x *CloudStorageOptions) GetFileTypes() []FileTypefunc (*CloudStorageOptions) GetFilesLimitPercent
func (x *CloudStorageOptions) GetFilesLimitPercent() int32func (*CloudStorageOptions) GetSampleMethod
func (x *CloudStorageOptions) GetSampleMethod() CloudStorageOptions_SampleMethodfunc (*CloudStorageOptions) ProtoMessage
func (*CloudStorageOptions) ProtoMessage()func (*CloudStorageOptions) ProtoReflect
func (x *CloudStorageOptions) ProtoReflect() protoreflect.Messagefunc (*CloudStorageOptions) Reset
func (x *CloudStorageOptions) Reset()func (*CloudStorageOptions) String
func (x *CloudStorageOptions) String() stringCloudStorageOptions_FileSet
type CloudStorageOptions_FileSet struct {
// The Cloud Storage url of the file(s) to scan, in the format
// `gs://Set of files to scan.
func (*CloudStorageOptions_FileSet) Descriptor
func (*CloudStorageOptions_FileSet) Descriptor() ([]byte, []int)Deprecated: Use CloudStorageOptions_FileSet.ProtoReflect.Descriptor instead.
func (*CloudStorageOptions_FileSet) GetRegexFileSet
func (x *CloudStorageOptions_FileSet) GetRegexFileSet() *CloudStorageRegexFileSetfunc (*CloudStorageOptions_FileSet) GetUrl
func (x *CloudStorageOptions_FileSet) GetUrl() stringfunc (*CloudStorageOptions_FileSet) ProtoMessage
func (*CloudStorageOptions_FileSet) ProtoMessage()func (*CloudStorageOptions_FileSet) ProtoReflect
func (x *CloudStorageOptions_FileSet) ProtoReflect() protoreflect.Messagefunc (*CloudStorageOptions_FileSet) Reset
func (x *CloudStorageOptions_FileSet) Reset()func (*CloudStorageOptions_FileSet) String
func (x *CloudStorageOptions_FileSet) String() stringCloudStorageOptions_SampleMethod
type CloudStorageOptions_SampleMethod int32How to sample bytes if not all bytes are scanned. Meaningful only when used in conjunction with bytes_limit_per_file. If not specified, scanning would start from the top.
CloudStorageOptions_SAMPLE_METHOD_UNSPECIFIED, CloudStorageOptions_TOP, CloudStorageOptions_RANDOM_START
const (
// No sampling.
CloudStorageOptions_SAMPLE_METHOD_UNSPECIFIED CloudStorageOptions_SampleMethod = 0
// Scan from the top (default).
CloudStorageOptions_TOP CloudStorageOptions_SampleMethod = 1
// For each file larger than bytes_limit_per_file, randomly pick the offset
// to start scanning. The scanned bytes are contiguous.
CloudStorageOptions_RANDOM_START CloudStorageOptions_SampleMethod = 2
)func (CloudStorageOptions_SampleMethod) Descriptor
func (CloudStorageOptions_SampleMethod) Descriptor() protoreflect.EnumDescriptorfunc (CloudStorageOptions_SampleMethod) Enum
func (x CloudStorageOptions_SampleMethod) Enum() *CloudStorageOptions_SampleMethodfunc (CloudStorageOptions_SampleMethod) EnumDescriptor
func (CloudStorageOptions_SampleMethod) EnumDescriptor() ([]byte, []int)Deprecated: Use CloudStorageOptions_SampleMethod.Descriptor instead.
func (CloudStorageOptions_SampleMethod) Number
func (x CloudStorageOptions_SampleMethod) Number() protoreflect.EnumNumberfunc (CloudStorageOptions_SampleMethod) String
func (x CloudStorageOptions_SampleMethod) String() stringfunc (CloudStorageOptions_SampleMethod) Type
func (CloudStorageOptions_SampleMethod) Type() protoreflect.EnumTypeCloudStoragePath
type CloudStoragePath struct {
// A URL representing a file or path (no wildcards) in Cloud Storage.
// Example: `gs://[BUCKET_NAME]/dictionary.txt`
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}Message representing a single file or path in Cloud Storage.
func (*CloudStoragePath) Descriptor
func (*CloudStoragePath) Descriptor() ([]byte, []int)Deprecated: Use CloudStoragePath.ProtoReflect.Descriptor instead.
func (*CloudStoragePath) GetPath
func (x *CloudStoragePath) GetPath() stringfunc (*CloudStoragePath) ProtoMessage
func (*CloudStoragePath) ProtoMessage()func (*CloudStoragePath) ProtoReflect
func (x *CloudStoragePath) ProtoReflect() protoreflect.Messagefunc (*CloudStoragePath) Reset
func (x *CloudStoragePath) Reset()func (*CloudStoragePath) String
func (x *CloudStoragePath) String() stringCloudStorageRegex
type CloudStorageRegex struct {
// Optional. For organizations, if unset, will match all projects.
ProjectIdRegex string `protobuf:"bytes,1,opt,name=project_id_regex,json=projectIdRegex,proto3" json:"project_id_regex,omitempty"`
// Optional. Regex to test the bucket name against. If empty, all buckets
// match. Example: "marketing2021" or "(marketing)\d{4}" will both match the
// bucket gs://marketing2021
BucketNameRegex string `protobuf:"bytes,2,opt,name=bucket_name_regex,json=bucketNameRegex,proto3" json:"bucket_name_regex,omitempty"`
// contains filtered or unexported fields
}A pattern to match against one or more file stores. At least one pattern must be specified. Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.
func (*CloudStorageRegex) Descriptor
func (*CloudStorageRegex) Descriptor() ([]byte, []int)Deprecated: Use CloudStorageRegex.ProtoReflect.Descriptor instead.
func (*CloudStorageRegex) GetBucketNameRegex
func (x *CloudStorageRegex) GetBucketNameRegex() stringfunc (*CloudStorageRegex) GetProjectIdRegex
func (x *CloudStorageRegex) GetProjectIdRegex() stringfunc (*CloudStorageRegex) ProtoMessage
func (*CloudStorageRegex) ProtoMessage()func (*CloudStorageRegex) ProtoReflect
func (x *CloudStorageRegex) ProtoReflect() protoreflect.Messagefunc (*CloudStorageRegex) Reset
func (x *CloudStorageRegex) Reset()func (*CloudStorageRegex) String
func (x *CloudStorageRegex) String() stringCloudStorageRegexFileSet
type CloudStorageRegexFileSet struct {
// The name of a Cloud Storage bucket. Required.
BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
// A list of regular expressions matching file paths to include. All files in
// the bucket that match at least one of these regular expressions will be
// included in the set of files, except for those that also match an item in
// `exclude_regex`. Leaving this field empty will match all files by default
// (this is equivalent to including `.*` in the list).
//
// Regular expressions use RE2
// [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
// under the google/re2 repository on GitHub.
IncludeRegex []string `protobuf:"bytes,2,rep,name=include_regex,json=includeRegex,proto3" json:"include_regex,omitempty"`
// A list of regular expressions matching file paths to exclude. All files in
// the bucket that match at least one of these regular expressions will be
// excluded from the scan.
//
// Regular expressions use RE2
// [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
// under the google/re2 repository on GitHub.
ExcludeRegex []string `protobuf:"bytes,3,rep,name=exclude_regex,json=excludeRegex,proto3" json:"exclude_regex,omitempty"`
// contains filtered or unexported fields
}Message representing a set of files in a Cloud Storage bucket. Regular expressions are used to allow fine-grained control over which files in the bucket to include.
Included files are those that match at least one item in include_regex and
do not match any items in exclude_regex. Note that a file that matches
items from both lists will not be included. For a match to occur, the
entire file path (i.e., everything in the url after the bucket name) must
match the regular expression.
For example, given the input {bucket_name: "mybucket", include_regex:
["directory1/.*"], exclude_regex:
["directory1/excluded.*"]}:
gs://mybucket/directory1/myfilewill be includedgs://mybucket/directory1/directory2/myfilewill be included (.*matches across/)gs://mybucket/directory0/directory1/myfilewill not be included (the full path doesn't match any items ininclude_regex)gs://mybucket/directory1/excludedfilewill not be included (the path matches an item inexclude_regex)
If include_regex is left empty, it will match all files by default
(this is equivalent to setting include_regex: [".*"]).
Some other common use cases:
{bucket_name: "mybucket", exclude_regex: [".*\.pdf"]}will include all files inmybucketexcept for .pdf files{bucket_name: "mybucket", include_regex: ["directory/[^/]+"]}will include all files directly undergs://mybucket/directory/, without matching across/
func (*CloudStorageRegexFileSet) Descriptor
func (*CloudStorageRegexFileSet) Descriptor() ([]byte, []int)Deprecated: Use CloudStorageRegexFileSet.ProtoReflect.Descriptor instead.
func (*CloudStorageRegexFileSet) GetBucketName
func (x *CloudStorageRegexFileSet) GetBucketName() stringfunc (*CloudStorageRegexFileSet) GetExcludeRegex
func (x *CloudStorageRegexFileSet) GetExcludeRegex() []stringfunc (*CloudStorageRegexFileSet) GetIncludeRegex
func (x *CloudStorageRegexFileSet) GetIncludeRegex() []stringfunc (*CloudStorageRegexFileSet) ProtoMessage
func (*CloudStorageRegexFileSet) ProtoMessage()func (*CloudStorageRegexFileSet) ProtoReflect
func (x *CloudStorageRegexFileSet) ProtoReflect() protoreflect.Messagefunc (*CloudStorageRegexFileSet) Reset
func (x *CloudStorageRegexFileSet) Reset()func (*CloudStorageRegexFileSet) String
func (x *CloudStorageRegexFileSet) String() stringCloudStorageResourceReference
type CloudStorageResourceReference struct {
// Required. The bucket to scan.
BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
// Required. If within a project-level config, then this must match the
// config's project id.
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// contains filtered or unexported fields
}Identifies a single Cloud Storage bucket.
func (*CloudStorageResourceReference) Descriptor
func (*CloudStorageResourceReference) Descriptor() ([]byte, []int)Deprecated: Use CloudStorageResourceReference.ProtoReflect.Descriptor instead.
func (*CloudStorageResourceReference) GetBucketName
func (x *CloudStorageResourceReference) GetBucketName() stringfunc (*CloudStorageResourceReference) GetProjectId
func (x *CloudStorageResourceReference) GetProjectId() stringfunc (*CloudStorageResourceReference) ProtoMessage
func (*CloudStorageResourceReference) ProtoMessage()func (*CloudStorageResourceReference) ProtoReflect
func (x *CloudStorageResourceReference) ProtoReflect() protoreflect.Messagefunc (*CloudStorageResourceReference) Reset
func (x *CloudStorageResourceReference) Reset()func (*CloudStorageResourceReference) String
func (x *CloudStorageResourceReference) String() stringColor
type Color struct {
// The amount of red in the color as a value in the interval [0, 1].
Red float32 `protobuf:"fixed32,1,opt,name=red,proto3" json:"red,omitempty"`
// The amount of green in the color as a value in the interval [0, 1].
Green float32 `protobuf:"fixed32,2,opt,name=green,proto3" json:"green,omitempty"`
// The amount of blue in the color as a value in the interval [0, 1].
Blue float32 `protobuf:"fixed32,3,opt,name=blue,proto3" json:"blue,omitempty"`
// contains filtered or unexported fields
}Represents a color in the RGB color space.
func (*Color) Descriptor
Deprecated: Use Color.ProtoReflect.Descriptor instead.
func (*Color) GetBlue
func (*Color) GetGreen
func (*Color) GetRed
func (*Color) ProtoMessage
func (*Color) ProtoMessage()func (*Color) ProtoReflect
func (x *Color) ProtoReflect() protoreflect.Messagefunc (*Color) Reset
func (x *Color) Reset()func (*Color) String
ColumnDataProfile
type ColumnDataProfile struct {
// The name of the profile.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Success or error status from the most recent profile generation attempt.
// May be empty if the profile is still being generated.
ProfileStatus *ProfileStatus `protobuf:"bytes,17,opt,name=profile_status,json=profileStatus,proto3" json:"profile_status,omitempty"`
// State of a profile.
State ColumnDataProfile_State `protobuf:"varint,18,opt,name=state,proto3,enum=google.privacy.dlp.v2.ColumnDataProfile_State" json:"state,omitempty"`
// The last time the profile was generated.
ProfileLastGenerated *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=profile_last_generated,json=profileLastGenerated,proto3" json:"profile_last_generated,omitempty"`
// The resource name of the table data profile.
TableDataProfile string `protobuf:"bytes,4,opt,name=table_data_profile,json=tableDataProfile,proto3" json:"table_data_profile,omitempty"`
// The resource name of the resource this column is within.
TableFullResource string `protobuf:"bytes,5,opt,name=table_full_resource,json=tableFullResource,proto3" json:"table_full_resource,omitempty"`
// The Google Cloud project ID that owns the profiled resource.
DatasetProjectId string `protobuf:"bytes,19,opt,name=dataset_project_id,json=datasetProjectId,proto3" json:"dataset_project_id,omitempty"`
// If supported, the location where the dataset's data is stored.
// See https://cloud.google.com/bigquery/docs/locations for supported
// BigQuery locations.
DatasetLocation string `protobuf:"bytes,20,opt,name=dataset_location,json=datasetLocation,proto3" json:"dataset_location,omitempty"`
// The BigQuery dataset ID, if the resource profiled is a BigQuery table.
DatasetId string `protobuf:"bytes,21,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"`
// The table ID.
TableId string `protobuf:"bytes,22,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
// The name of the column.
Column string `protobuf:"bytes,6,opt,name=column,proto3" json:"column,omitempty"`
// The sensitivity of this column.
SensitivityScore *SensitivityScore `protobuf:"bytes,7,opt,name=sensitivity_score,json=sensitivityScore,proto3" json:"sensitivity_score,omitempty"`
// The data risk level for this column.
DataRiskLevel *DataRiskLevel `protobuf:"bytes,8,opt,name=data_risk_level,json=dataRiskLevel,proto3" json:"data_risk_level,omitempty"`
// 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.
ColumnInfoType *InfoTypeSummary `protobuf:"bytes,9,opt,name=column_info_type,json=columnInfoType,proto3" json:"column_info_type,omitempty"`
// Other types found within this column. List will be unordered.
OtherMatches []*OtherInfoTypeSummary `protobuf:"bytes,10,rep,name=other_matches,json=otherMatches,proto3" json:"other_matches,omitempty"`
// Approximate percentage of entries being null in the column.
EstimatedNullPercentage NullPercentageLevel `protobuf:"varint,23,opt,name=estimated_null_percentage,json=estimatedNullPercentage,proto3,enum=google.privacy.dlp.v2.NullPercentageLevel" json:"estimated_null_percentage,omitempty"`
// Approximate uniqueness of the column.
EstimatedUniquenessScore UniquenessScoreLevel `protobuf:"varint,24,opt,name=estimated_uniqueness_score,json=estimatedUniquenessScore,proto3,enum=google.privacy.dlp.v2.UniquenessScoreLevel" json:"estimated_uniqueness_score,omitempty"`
// 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.
FreeTextScore float64 `protobuf:"fixed64,13,opt,name=free_text_score,json=freeTextScore,proto3" json:"free_text_score,omitempty"`
// The data type of a given column.
ColumnType ColumnDataProfile_ColumnDataType `protobuf:"varint,14,opt,name=column_type,json=columnType,proto3,enum=google.privacy.dlp.v2.ColumnDataProfile_ColumnDataType" json:"column_type,omitempty"`
// Indicates if a policy tag has been applied to the column.
PolicyState ColumnDataProfile_ColumnPolicyState `protobuf:"varint,15,opt,name=policy_state,json=policyState,proto3,enum=google.privacy.dlp.v2.ColumnDataProfile_ColumnPolicyState" json:"policy_state,omitempty"`
// contains filtered or unexported fields
}The profile for a scanned column within a table.
func (*ColumnDataProfile) Descriptor
func (*ColumnDataProfile) Descriptor() ([]byte, []int)Deprecated: Use ColumnDataProfile.ProtoReflect.Descriptor instead.
func (*ColumnDataProfile) GetColumn
func (x *ColumnDataProfile) GetColumn() stringfunc (*ColumnDataProfile) GetColumnInfoType
func (x *ColumnDataProfile) GetColumnInfoType() *InfoTypeSummaryfunc (*ColumnDataProfile) GetColumnType
func (x *ColumnDataProfile) GetColumnType() ColumnDataProfile_ColumnDataTypefunc (*ColumnDataProfile) GetDataRiskLevel
func (x *ColumnDataProfile) GetDataRiskLevel() *DataRiskLevelfunc (*ColumnDataProfile) GetDatasetId
func (x *ColumnDataProfile) GetDatasetId() stringfunc (*ColumnDataProfile) GetDatasetLocation
func (x *ColumnDataProfile) GetDatasetLocation() stringfunc (*ColumnDataProfile) GetDatasetProjectId
func (x *ColumnDataProfile) GetDatasetProjectId() stringfunc (*ColumnDataProfile) GetEstimatedNullPercentage
func (x *ColumnDataProfile) GetEstimatedNullPercentage() NullPercentageLevelfunc (*ColumnDataProfile) GetEstimatedUniquenessScore
func (x *ColumnDataProfile) GetEstimatedUniquenessScore() UniquenessScoreLevelfunc (*ColumnDataProfile) GetFreeTextScore
func (x *ColumnDataProfile) GetFreeTextScore() float64func (*ColumnDataProfile) GetName
func (x *ColumnDataProfile) GetName() stringfunc (*ColumnDataProfile) GetOtherMatches
func (x *ColumnDataProfile) GetOtherMatches() []*OtherInfoTypeSummaryfunc (*ColumnDataProfile) GetPolicyState
func (x *ColumnDataProfile) GetPolicyState() ColumnDataProfile_ColumnPolicyStatefunc (*ColumnDataProfile) GetProfileLastGenerated
func (x *ColumnDataProfile) GetProfileLastGenerated() *timestamppb.Timestampfunc (*ColumnDataProfile) GetProfileStatus
func (x *ColumnDataProfile) GetProfileStatus() *ProfileStatusfunc (*ColumnDataProfile) GetSensitivityScore
func (x *ColumnDataProfile) GetSensitivityScore() *SensitivityScorefunc (*ColumnDataProfile) GetState
func (x *ColumnDataProfile) GetState() ColumnDataProfile_Statefunc (*ColumnDataProfile) GetTableDataProfile
func (x *ColumnDataProfile) GetTableDataProfile() stringfunc (*ColumnDataProfile) GetTableFullResource
func (x *ColumnDataProfile) GetTableFullResource() stringfunc (*ColumnDataProfile) GetTableId
func (x *ColumnDataProfile) GetTableId() stringfunc (*ColumnDataProfile) ProtoMessage
func (*ColumnDataProfile) ProtoMessage()func (*ColumnDataProfile) ProtoReflect
func (x *ColumnDataProfile) ProtoReflect() protoreflect.Messagefunc (*ColumnDataProfile) Reset
func (x *ColumnDataProfile) Reset()func (*ColumnDataProfile) String
func (x *ColumnDataProfile) String() stringColumnDataProfile_ColumnDataType
type ColumnDataProfile_ColumnDataType int32Data types of the data in a column. Types may be added over time.
ColumnDataProfile_COLUMN_DATA_TYPE_UNSPECIFIED, ColumnDataProfile_TYPE_INT64, ColumnDataProfile_TYPE_BOOL, ColumnDataProfile_TYPE_FLOAT64, ColumnDataProfile_TYPE_STRING, ColumnDataProfile_TYPE_BYTES, ColumnDataProfile_TYPE_TIMESTAMP, ColumnDataProfile_TYPE_DATE, ColumnDataProfile_TYPE_TIME, ColumnDataProfile_TYPE_DATETIME, ColumnDataProfile_TYPE_GEOGRAPHY, ColumnDataProfile_TYPE_NUMERIC, ColumnDataProfile_TYPE_RECORD, ColumnDataProfile_TYPE_BIGNUMERIC, ColumnDataProfile_TYPE_JSON, ColumnDataProfile_TYPE_INTERVAL, ColumnDataProfile_TYPE_RANGE_DATE, ColumnDataProfile_TYPE_RANGE_DATETIME, ColumnDataProfile_TYPE_RANGE_TIMESTAMP
const (
// Invalid type.
ColumnDataProfile_COLUMN_DATA_TYPE_UNSPECIFIED ColumnDataProfile_ColumnDataType = 0
// Encoded as a string in decimal format.
ColumnDataProfile_TYPE_INT64 ColumnDataProfile_ColumnDataType = 1
// Encoded as a boolean "false" or "true".
ColumnDataProfile_TYPE_BOOL ColumnDataProfile_ColumnDataType = 2
// Encoded as a number, or string "NaN", "Infinity" or "-Infinity".
ColumnDataProfile_TYPE_FLOAT64 ColumnDataProfile_ColumnDataType = 3
// Encoded as a string value.
ColumnDataProfile_TYPE_STRING ColumnDataProfile_ColumnDataType = 4
// Encoded as a base64 string per RFC 4648, section 4.
ColumnDataProfile_TYPE_BYTES ColumnDataProfile_ColumnDataType = 5
// Encoded as an RFC 3339 timestamp with mandatory "Z" time zone string:
// 1985-04-12T23:20:50.52Z
ColumnDataProfile_TYPE_TIMESTAMP ColumnDataProfile_ColumnDataType = 6
// Encoded as RFC 3339 full-date format string: 1985-04-12
ColumnDataProfile_TYPE_DATE ColumnDataProfile_ColumnDataType = 7
// Encoded as RFC 3339 partial-time format string: 23:20:50.52
ColumnDataProfile_TYPE_TIME ColumnDataProfile_ColumnDataType = 8
// Encoded as RFC 3339 full-date "T" partial-time: 1985-04-12T23:20:50.52
ColumnDataProfile_TYPE_DATETIME ColumnDataProfile_ColumnDataType = 9
// Encoded as WKT
ColumnDataProfile_TYPE_GEOGRAPHY ColumnDataProfile_ColumnDataType = 10
// Encoded as a decimal string.
ColumnDataProfile_TYPE_NUMERIC ColumnDataProfile_ColumnDataType = 11
// Container of ordered fields, each with a type and field name.
ColumnDataProfile_TYPE_RECORD ColumnDataProfile_ColumnDataType = 12
// Decimal type.
ColumnDataProfile_TYPE_BIGNUMERIC ColumnDataProfile_ColumnDataType = 13
// Json type.
ColumnDataProfile_TYPE_JSON ColumnDataProfile_ColumnDataType = 14
// Interval type.
ColumnDataProfile_TYPE_INTERVAL ColumnDataProfile_ColumnDataType = 15
// `Rangefunc (ColumnDataProfile_ColumnDataType) Descriptor
func (ColumnDataProfile_ColumnDataType) Descriptor() protoreflect.EnumDescriptorfunc (ColumnDataProfile_ColumnDataType) Enum
func (x ColumnDataProfile_ColumnDataType) Enum() *ColumnDataProfile_ColumnDataTypefunc (ColumnDataProfile_ColumnDataType) EnumDescriptor
func (ColumnDataProfile_ColumnDataType) EnumDescriptor() ([]byte, []int)Deprecated: Use ColumnDataProfile_ColumnDataType.Descriptor instead.
func (ColumnDataProfile_ColumnDataType) Number
func (x ColumnDataProfile_ColumnDataType) Number() protoreflect.EnumNumberfunc (ColumnDataProfile_ColumnDataType) String
func (x ColumnDataProfile_ColumnDataType) String() stringfunc (ColumnDataProfile_ColumnDataType) Type
func (ColumnDataProfile_ColumnDataType) Type() protoreflect.EnumTypeColumnDataProfile_ColumnPolicyState
type ColumnDataProfile_ColumnPolicyState int32The possible policy states for a column.
ColumnDataProfile_COLUMN_POLICY_STATE_UNSPECIFIED, ColumnDataProfile_COLUMN_POLICY_TAGGED
const (
// No policy tags.
ColumnDataProfile_COLUMN_POLICY_STATE_UNSPECIFIED ColumnDataProfile_ColumnPolicyState = 0
// Column has policy tag applied.
ColumnDataProfile_COLUMN_POLICY_TAGGED ColumnDataProfile_ColumnPolicyState = 1
)func (ColumnDataProfile_ColumnPolicyState) Descriptor
func (ColumnDataProfile_ColumnPolicyState) Descriptor() protoreflect.EnumDescriptorfunc (ColumnDataProfile_ColumnPolicyState) Enum
func (x ColumnDataProfile_ColumnPolicyState) Enum() *ColumnDataProfile_ColumnPolicyStatefunc (ColumnDataProfile_ColumnPolicyState) EnumDescriptor
func (ColumnDataProfile_ColumnPolicyState) EnumDescriptor() ([]byte, []int)Deprecated: Use ColumnDataProfile_ColumnPolicyState.Descriptor instead.
func (ColumnDataProfile_ColumnPolicyState) Number
func (x ColumnDataProfile_ColumnPolicyState) Number() protoreflect.EnumNumberfunc (ColumnDataProfile_ColumnPolicyState) String
func (x ColumnDataProfile_ColumnPolicyState) String() stringfunc (ColumnDataProfile_ColumnPolicyState) Type
func (ColumnDataProfile_ColumnPolicyState) Type() protoreflect.EnumTypeColumnDataProfile_State
type ColumnDataProfile_State int32Possible states of a profile. New items may be added.
ColumnDataProfile_STATE_UNSPECIFIED, ColumnDataProfile_RUNNING, ColumnDataProfile_DONE
const (
// Unused.
ColumnDataProfile_STATE_UNSPECIFIED ColumnDataProfile_State = 0
// The profile is currently running. Once a profile has finished it will
// transition to DONE.
ColumnDataProfile_RUNNING ColumnDataProfile_State = 1
// The profile is no longer generating.
// If profile_status.status.code is 0, the profile succeeded, otherwise, it
// failed.
ColumnDataProfile_DONE ColumnDataProfile_State = 2
)func (ColumnDataProfile_State) Descriptor
func (ColumnDataProfile_State) Descriptor() protoreflect.EnumDescriptorfunc (ColumnDataProfile_State) Enum
func (x ColumnDataProfile_State) Enum() *ColumnDataProfile_Statefunc (ColumnDataProfile_State) EnumDescriptor
func (ColumnDataProfile_State) EnumDescriptor() ([]byte, []int)Deprecated: Use ColumnDataProfile_State.Descriptor instead.
func (ColumnDataProfile_State) Number
func (x ColumnDataProfile_State) Number() protoreflect.EnumNumberfunc (ColumnDataProfile_State) String
func (x ColumnDataProfile_State) String() stringfunc (ColumnDataProfile_State) Type
func (ColumnDataProfile_State) Type() protoreflect.EnumTypeConnection
type Connection struct {
// Output only. Name of the connection:
// `projects/{project}/locations/{location}/connections/{name}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The connection's state in its lifecycle.
State ConnectionState `protobuf:"varint,2,opt,name=state,proto3,enum=google.privacy.dlp.v2.ConnectionState" json:"state,omitempty"`
// Output only. Set if status == ERROR, to provide additional details. Will
// store the last 10 errors sorted with the most recent first.
Errors []*Error `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"`
// Type of connection.
//
// Types that are assignable to Properties:
//
// *Connection_CloudSql
Properties isConnection_Properties `protobuf_oneof:"properties"`
// contains filtered or unexported fields
}A data connection to allow the DLP API to profile data in locations that require additional configuration.
func (*Connection) Descriptor
func (*Connection) Descriptor() ([]byte, []int)Deprecated: Use Connection.ProtoReflect.Descriptor instead.
func (*Connection) GetCloudSql
func (x *Connection) GetCloudSql() *CloudSqlPropertiesfunc (*Connection) GetErrors
func (x *Connection) GetErrors() []*Errorfunc (*Connection) GetName
func (x *Connection) GetName() stringfunc (*Connection) GetProperties
func (m *Connection) GetProperties() isConnection_Propertiesfunc (*Connection) GetState
func (x *Connection) GetState() ConnectionStatefunc (*Connection) ProtoMessage
func (*Connection) ProtoMessage()func (*Connection) ProtoReflect
func (x *Connection) ProtoReflect() protoreflect.Messagefunc (*Connection) Reset
func (x *Connection) Reset()func (*Connection) String
func (x *Connection) String() stringConnectionState
type ConnectionState int32State of the connection. New values may be added over time.
ConnectionState_CONNECTION_STATE_UNSPECIFIED, ConnectionState_MISSING_CREDENTIALS, ConnectionState_AVAILABLE, ConnectionState_ERROR
const (
// Unused
ConnectionState_CONNECTION_STATE_UNSPECIFIED ConnectionState = 0
// The DLP API automatically created this connection during an initial scan,
// and it is awaiting full configuration by a user.
ConnectionState_MISSING_CREDENTIALS ConnectionState = 1
// A configured connection that has not encountered any errors.
ConnectionState_AVAILABLE ConnectionState = 2
// A configured connection that encountered errors during its last use. It
// will not be used again until it is set to AVAILABLE.
//
// If the resolution requires external action, then the client must send a
// request to set the status to AVAILABLE when the connection is ready for
// use. If the resolution doesn't require external action, then any changes to
// the connection properties will automatically mark it as AVAILABLE.
ConnectionState_ERROR ConnectionState = 3
)func (ConnectionState) Descriptor
func (ConnectionState) Descriptor() protoreflect.EnumDescriptorfunc (ConnectionState) Enum
func (x ConnectionState) Enum() *ConnectionStatefunc (ConnectionState) EnumDescriptor
func (ConnectionState) EnumDescriptor() ([]byte, []int)Deprecated: Use ConnectionState.Descriptor instead.
func (ConnectionState) Number
func (x ConnectionState) Number() protoreflect.EnumNumberfunc (ConnectionState) String
func (x ConnectionState) String() stringfunc (ConnectionState) Type
func (ConnectionState) Type() protoreflect.EnumTypeConnection_CloudSql
type Connection_CloudSql struct {
// Connect to a Cloud SQL instance.
CloudSql *CloudSqlProperties `protobuf:"bytes,4,opt,name=cloud_sql,json=cloudSql,proto3,oneof"`
}Container
type Container struct {
// Container type, for example BigQuery or Cloud Storage.
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
// Project where the finding was found.
// Can be different from the project that owns the finding.
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// A string representation of the full container name.
// Examples:
// - BigQuery: 'Project:DataSetId.TableId'
// - Cloud Storage: 'gs://Bucket/folders/filename.txt'
FullPath string `protobuf:"bytes,3,opt,name=full_path,json=fullPath,proto3" json:"full_path,omitempty"`
// The root of the container.
// Examples:
//
// - For BigQuery table `project_id:dataset_id.table_id`, the root is
// `dataset_id`
// - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root
// is `gs://bucket`
RootPath string `protobuf:"bytes,4,opt,name=root_path,json=rootPath,proto3" json:"root_path,omitempty"`
// The rest of the path after the root.
// Examples:
//
// - For BigQuery table `project_id:dataset_id.table_id`, the relative path is
// `table_id`
// - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
// path is `folder/filename.txt`
RelativePath string `protobuf:"bytes,5,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"`
// Findings container modification timestamp, if applicable. For Cloud
// Storage, this field contains the last file modification timestamp. For a
// BigQuery table, this field contains the last_modified_time property. For
// Datastore, this field isn't populated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Findings container version, if available
// ("generation" for Cloud Storage).
Version string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}Represents a container that may contain DLP findings. Examples of a container include a file, table, or database record.
func (*Container) Descriptor
Deprecated: Use Container.ProtoReflect.Descriptor instead.
func (*Container) GetFullPath
func (*Container) GetProjectId
func (*Container) GetRelativePath
func (*Container) GetRootPath
func (*Container) GetType
func (*Container) GetUpdateTime
func (x *Container) GetUpdateTime() *timestamppb.Timestampfunc (*Container) GetVersion
func (*Container) ProtoMessage
func (*Container) ProtoMessage()func (*Container) ProtoReflect
func (x *Container) ProtoReflect() protoreflect.Messagefunc (*Container) Reset
func (x *Container) Reset()func (*Container) String
ContentItem
type ContentItem struct {
// Data of the item either in the byte array or UTF-8 string form, or table.
//
// Types that are assignable to DataItem:
//
// *ContentItem_Value
// *ContentItem_Table
// *ContentItem_ByteItem
DataItem isContentItem_DataItem `protobuf_oneof:"data_item"`
// contains filtered or unexported fields
}Type of content to inspect.
func (*ContentItem) Descriptor
func (*ContentItem) Descriptor() ([]byte, []int)Deprecated: Use ContentItem.ProtoReflect.Descriptor instead.
func (*ContentItem) GetByteItem
func (x *ContentItem) GetByteItem() *ByteContentItemfunc (*ContentItem) GetDataItem
func (m *ContentItem) GetDataItem() isContentItem_DataItemfunc (*ContentItem) GetTable
func (x *ContentItem) GetTable() *Tablefunc (*ContentItem) GetValue
func (x *ContentItem) GetValue() stringfunc (*ContentItem) ProtoMessage
func (*ContentItem) ProtoMessage()func (*ContentItem) ProtoReflect
func (x *ContentItem) ProtoReflect() protoreflect.Messagefunc (*ContentItem) Reset
func (x *ContentItem) Reset()func (*ContentItem) String
func (x *ContentItem) String() stringContentItem_ByteItem
type ContentItem_ByteItem struct {
// Content data to inspect or redact. Replaces `type` and `data`.
ByteItem *ByteContentItem `protobuf:"bytes,5,opt,name=byte_item,json=byteItem,proto3,oneof"`
}ContentItem_Table
type ContentItem_Table struct {
// Structured content for inspection. See
// https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
// to learn more.
Table *Table `protobuf:"bytes,4,opt,name=table,proto3,oneof"`
}ContentItem_Value
type ContentItem_Value struct {
// String data to inspect or redact.
Value string `protobuf:"bytes,3,opt,name=value,proto3,oneof"`
}ContentLocation
type ContentLocation struct {
// Name of the container where the finding is located.
// The top level name is the source file name or table name. Names of some
// common storage containers are formatted as follows:
//
// * BigQuery tables: `{project_id}:{dataset_id}.{table_id}`
// * Cloud Storage files: `gs://{bucket}/{path}`
// * Datastore namespace: {namespace}
//
// Nested names could be absent if the embedded object has no string
// identifier (for example, an image contained within a document).
ContainerName string `protobuf:"bytes,1,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"`
// Type of the container within the file with location of the finding.
//
// Types that are assignable to Location:
//
// *ContentLocation_RecordLocation
// *ContentLocation_ImageLocation
// *ContentLocation_DocumentLocation
// *ContentLocation_MetadataLocation
Location isContentLocation_Location `protobuf_oneof:"location"`
// Finding container modification timestamp, if applicable. For Cloud Storage,
// this field contains the last file modification timestamp. For a BigQuery
// table, this field contains the last_modified_time property. For Datastore,
// this field isn't populated.
ContainerTimestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=container_timestamp,json=containerTimestamp,proto3" json:"container_timestamp,omitempty"`
// Finding container version, if available
// ("generation" for Cloud Storage).
ContainerVersion string `protobuf:"bytes,7,opt,name=container_version,json=containerVersion,proto3" json:"container_version,omitempty"`
// contains filtered or unexported fields
}Precise location of the finding within a document, record, image, or metadata container.
func (*ContentLocation) Descriptor
func (*ContentLocation) Descriptor() ([]byte, []int)Deprecated: Use ContentLocation.ProtoReflect.Descriptor instead.
func (*ContentLocation) GetContainerName
func (x *ContentLocation) GetContainerName() stringfunc (*ContentLocation) GetContainerTimestamp
func (x *ContentLocation) GetContainerTimestamp() *timestamppb.Timestampfunc (*ContentLocation) GetContainerVersion
func (x *ContentLocation) GetContainerVersion() stringfunc (*ContentLocation) GetDocumentLocation
func (x *ContentLocation) GetDocumentLocation() *DocumentLocationfunc (*ContentLocation) GetImageLocation
func (x *ContentLocation) GetImageLocation() *ImageLocationfunc (*ContentLocation) GetLocation
func (m *ContentLocation) GetLocation() isContentLocation_Locationfunc (*ContentLocation) GetMetadataLocation
func (x *ContentLocation) GetMetadataLocation() *MetadataLocationfunc (*ContentLocation) GetRecordLocation
func (x *ContentLocation) GetRecordLocation() *RecordLocationfunc (*ContentLocation) ProtoMessage
func (*ContentLocation) ProtoMessage()func (*ContentLocation) ProtoReflect
func (x *ContentLocation) ProtoReflect() protoreflect.Messagefunc (*ContentLocation) Reset
func (x *ContentLocation) Reset()func (*ContentLocation) String
func (x *ContentLocation) String() stringContentLocation_DocumentLocation
type ContentLocation_DocumentLocation struct {
// Location data for document files.
DocumentLocation *DocumentLocation `protobuf:"bytes,5,opt,name=document_location,json=documentLocation,proto3,oneof"`
}ContentLocation_ImageLocation
type ContentLocation_ImageLocation struct {
// Location within an image's pixels.
ImageLocation *ImageLocation `protobuf:"bytes,3,opt,name=image_location,json=imageLocation,proto3,oneof"`
}ContentLocation_MetadataLocation
type ContentLocation_MetadataLocation struct {
// Location within the metadata for inspected content.
MetadataLocation *MetadataLocation `protobuf:"bytes,8,opt,name=metadata_location,json=metadataLocation,proto3,oneof"`
}ContentLocation_RecordLocation
type ContentLocation_RecordLocation struct {
// Location within a row or record of a database table.
RecordLocation *RecordLocation `protobuf:"bytes,2,opt,name=record_location,json=recordLocation,proto3,oneof"`
}ContentOption
type ContentOption int32Deprecated and unused.
ContentOption_CONTENT_UNSPECIFIED, ContentOption_CONTENT_TEXT, ContentOption_CONTENT_IMAGE
const (
// Includes entire content of a file or a data stream.
ContentOption_CONTENT_UNSPECIFIED ContentOption = 0
// Text content within the data, excluding any metadata.
ContentOption_CONTENT_TEXT ContentOption = 1
// Images found in the data.
ContentOption_CONTENT_IMAGE ContentOption = 2
)func (ContentOption) Descriptor
func (ContentOption) Descriptor() protoreflect.EnumDescriptorfunc (ContentOption) Enum
func (x ContentOption) Enum() *ContentOptionfunc (ContentOption) EnumDescriptor
func (ContentOption) EnumDescriptor() ([]byte, []int)Deprecated: Use ContentOption.Descriptor instead.
func (ContentOption) Number
func (x ContentOption) Number() protoreflect.EnumNumberfunc (ContentOption) String
func (x ContentOption) String() stringfunc (ContentOption) Type
func (ContentOption) Type() protoreflect.EnumTypeCreateConnectionRequest
type CreateConnectionRequest struct {
// Required. Parent resource name.
//
// The format of this value varies depending on the scope of the request
// (project or organization):
//
// - Projects scope:
// `projects/{project_id}/locations/{location_id}`
// - Organizations scope:
// `organizations/{org_id}/locations/{location_id}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The connection resource.
Connection *Connection `protobuf:"bytes,2,opt,name=connection,proto3" json:"connection,omitempty"`
// contains filtered or unexported fields
}Request message for CreateConnection.
func (*CreateConnectionRequest) Descriptor
func (*CreateConnectionRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateConnectionRequest.ProtoReflect.Descriptor instead.
func (*CreateConnectionRequest) GetConnection
func (x *CreateConnectionRequest) GetConnection() *Connectionfunc (*CreateConnectionRequest) GetParent
func (x *CreateConnectionRequest) GetParent() stringfunc (*CreateConnectionRequest) ProtoMessage
func (*CreateConnectionRequest) ProtoMessage()func (*CreateConnectionRequest) ProtoReflect
func (x *CreateConnectionRequest) ProtoReflect() protoreflect.Messagefunc (*CreateConnectionRequest) Reset
func (x *CreateConnectionRequest) Reset()func (*CreateConnectionRequest) String
func (x *CreateConnectionRequest) String() stringCreateDeidentifyTemplateRequest
type CreateDeidentifyTemplateRequest struct {
// Required. Parent resource name.
//
// The format of this value varies depending on the scope of the request
// (project or organization) and whether you have [specified a processing
// location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
//
// - Projects scope, location specified:
// `projects/{project_id}/locations/{location_id}`
// - Projects scope, no location specified (defaults to global):
// `projects/{project_id}`
// - Organizations scope, location specified:
// `organizations/{org_id}/locations/{location_id}`
// - Organizations scope, no location specified (defaults to global):
// `organizations/{org_id}`
//
// The following example `parent` string specifies a parent project with the
// identifier `example-project`, and specifies the `europe-west3` location
// for processing data:
//
// parent=projects/example-project/locations/europe-west3
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The DeidentifyTemplate to create.
DeidentifyTemplate *DeidentifyTemplate `protobuf:"bytes,2,opt,name=deidentify_template,json=deidentifyTemplate,proto3" json:"deidentify_template,omitempty"`
// The template id can contain uppercase and lowercase letters,
// numbers, and hyphens; that is, it must match the regular
// expression: `[a-zA-Z\d-_]+`. The maximum length is 100
// characters. Can be empty to allow the system to generate one.
TemplateId string `protobuf:"bytes,3,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"`
// Deprecated. This field has no effect.
LocationId string `protobuf:"bytes,4,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
// contains filtered or unexported fields
}Request message for CreateDeidentifyTemplate.
func (*CreateDeidentifyTemplateRequest) Descriptor
func (*CreateDeidentifyTemplateRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateDeidentifyTemplateRequest.ProtoReflect.Descriptor instead.
func (*CreateDeidentifyTemplateRequest) GetDeidentifyTemplate
func (x *CreateDeidentifyTemplateRequest) GetDeidentifyTemplate() *DeidentifyTemplatefunc (*CreateDeidentifyTemplateRequest) GetLocationId
func (x *CreateDeidentifyTemplateRequest) GetLocationId() stringfunc (*CreateDeidentifyTemplateRequest) GetParent
func (x *CreateDeidentifyTemplateRequest) GetParent() stringfunc (*CreateDeidentifyTemplateRequest) GetTemplateId
func (x *CreateDeidentifyTemplateRequest) GetTemplateId() stringfunc (*CreateDeidentifyTemplateRequest) ProtoMessage
func (*CreateDeidentifyTemplateRequest) ProtoMessage()func (*CreateDeidentifyTemplateRequest) ProtoReflect
func (x *CreateDeidentifyTemplateRequest) ProtoReflect() protoreflect.Messagefunc (*CreateDeidentifyTemplateRequest) Reset
func (x *CreateDeidentifyTemplateRequest) Reset()func (*CreateDeidentifyTemplateRequest) String
func (x *CreateDeidentifyTemplateRequest) String() stringCreateDiscoveryConfigRequest
type CreateDiscoveryConfigRequest struct {
// Required. Parent resource name.
//
// The format of this value varies depending on the scope of the request
// (project or organization):
//
// - Projects scope:
// `projects/{project_id}/locations/{location_id}`
// - Organizations scope:
// `organizations/{org_id}/locations/{location_id}`
//
// The following example `parent` string specifies a parent project with the
// identifier `example-project`, and specifies the `europe-west3` location
// for processing data:
//
// parent=projects/example-project/locations/europe-west3
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The DiscoveryConfig to create.
DiscoveryConfig *DiscoveryConfig `protobuf:"bytes,2,opt,name=discovery_config,json=discoveryConfig,proto3" json:"discovery_config,omitempty"`
// The config ID can contain uppercase and lowercase letters,
// numbers, and hyphens; that is, it must match the regular
// expression: `[a-zA-Z\d-_]+`. The maximum length is 100
// characters. Can be empty to allow the system to generate one.
ConfigId string `protobuf:"bytes,3,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"`
// contains filtered or unexported fields
}Request message for CreateDiscoveryConfig.
func (*CreateDiscoveryConfigRequest) Descriptor
func (*CreateDiscoveryConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateDiscoveryConfigRequest.ProtoReflect.Descriptor instead.
func (*CreateDiscoveryConfigRequest) GetConfigId
func (x *CreateDiscoveryConfigRequest) GetConfigId() stringfunc (*CreateDiscoveryConfigRequest) GetDiscoveryConfig
func (x *CreateDiscoveryConfigRequest) GetDiscoveryConfig() *DiscoveryConfigfunc (*CreateDiscoveryConfigRequest) GetParent
func (x *CreateDiscoveryConfigRequest) GetParent() stringfunc (*CreateDiscoveryConfigRequest) ProtoMessage
func (*CreateDiscoveryConfigRequest) ProtoMessage()func (*CreateDiscoveryConfigRequest) ProtoReflect
func (x *CreateDiscoveryConfigRequest) ProtoReflect() protoreflect.Messagefunc (*CreateDiscoveryConfigRequest) Reset
func (x *CreateDiscoveryConfigRequest) Reset()func (*CreateDiscoveryConfigRequest) String
func (x *CreateDiscoveryConfigRequest) String() stringCreateDlpJobRequest
type CreateDlpJobRequest struct {
// Required. Parent resource name.
//
// The format of this value varies depending on whether you have [specified a
// processing
// location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
//
// - Projects scope, location specified:
// `projects/{project_id}/locations/{location_id}`
// - Projects scope, no location specified (defaults to global):
// `projects/{project_id}`
//
// The following example `parent` string specifies a parent project with the
// identifier `example-project`, and specifies the `europe-west3` location
// for processing data:
//
// parent=projects/example-project/locations/europe-west3
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The configuration details for the specific type of job to run.
//
// Types that are assignable to Job:
//
// *CreateDlpJobRequest_InspectJob
// *CreateDlpJobRequest_RiskJob
Job isCreateDlpJobRequest_Job `protobuf_oneof:"job"`
// The job id can contain uppercase and lowercase letters,
// numbers, and hyphens; that is, it must match the regular
// expression: `[a-zA-Z\d-_]+`. The maximum length is 100
// characters. Can be empty to allow the system to generate one.
JobId string `protobuf:"bytes,4,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
// Deprecated. This field has no effect.
LocationId string `protobuf:"bytes,5,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
// contains filtered or unexported fields
}Request message for CreateDlpJobRequest. Used to initiate long running jobs such as calculating risk metrics or inspecting Google Cloud Storage.
func (*CreateDlpJobRequest) Descriptor
func (*CreateDlpJobRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateDlpJobRequest.ProtoReflect.Descriptor instead.
func (*CreateDlpJobRequest) GetInspectJob
func (x *CreateDlpJobRequest) GetInspectJob() *InspectJobConfigfunc (*CreateDlpJobRequest) GetJob
func (m *CreateDlpJobRequest) GetJob() isCreateDlpJobRequest_Jobfunc (*CreateDlpJobRequest) GetJobId
func (x *CreateDlpJobRequest) GetJobId() stringfunc (*CreateDlpJobRequest) GetLocationId
func (x *CreateDlpJobRequest) GetLocationId() stringfunc (*CreateDlpJobRequest) GetParent
func (x *CreateDlpJobRequest) GetParent() stringfunc (*CreateDlpJobRequest) GetRiskJob
func (x *CreateDlpJobRequest) GetRiskJob() *RiskAnalysisJobConfigfunc (*CreateDlpJobRequest) ProtoMessage
func (*CreateDlpJobRequest) ProtoMessage()func (*CreateDlpJobRequest) ProtoReflect
func (x *CreateDlpJobRequest) ProtoReflect() protoreflect.Messagefunc (*CreateDlpJobRequest) Reset
func (x *CreateDlpJobRequest) Reset()func (*CreateDlpJobRequest) String
func (x *CreateDlpJobRequest) String() stringCreateDlpJobRequest_InspectJob
type CreateDlpJobRequest_InspectJob struct {
// An inspection job scans a storage repository for InfoTypes.
InspectJob *InspectJobConfig `protobuf:"bytes,2,opt,name=inspect_job,json=inspectJob,proto3,oneof"`
}CreateDlpJobRequest_RiskJob
type CreateDlpJobRequest_RiskJob struct {
// A risk analysis job calculates re-identification risk metrics for a
// BigQuery table.
RiskJob *RiskAnalysisJobConfig `protobuf:"bytes,3,opt,name=risk_job,json=riskJob,proto3,oneof"`
}CreateInspectTemplateRequest
type CreateInspectTemplateRequest struct {
// Required. Parent resource name.
//
// The format of this value varies depending on the scope of the request
// (project or organization) and whether you have [specified a processing
// location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
//
// - Projects scope, location specified:
// `projects/{project_id}/locations/{location_id}`
// - Projects scope, no location specified (defaults to global):
// `projects/{project_id}`
// - Organizations scope, location specified:
// `organizations/{org_id}/locations/{location_id}`
// - Organizations scope, no location specified (defaults to global):
// `organizations/{org_id}`
//
// The following example `parent` string specifies a parent project with the
// identifier `example-project`, and specifies the `europe-west3` location
// for processing data:
//
// parent=projects/example-project/locations/europe-west3
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The InspectTemplate to create.
InspectTemplate *InspectTemplate `protobuf:"bytes,2,opt,name=inspect_template,json=inspectTemplate,proto3" json:"inspect_template,omitempty"`
// The template id can contain uppercase and lowercase letters,
// numbers, and hyphens; that is, it must match the regular
// expression: `[a-zA-Z\d-_]+`. The maximum length is 100
// characters. Can be empty to allow the system to generate one.
TemplateId string `protobuf:"bytes,3,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"`
// Deprecated. This field has no effect.
LocationId string `protobuf:"bytes,4,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
// contains filtered or unexported fields
}Request message for CreateInspectTemplate.
func (*CreateInspectTemplateRequest) Descriptor
func (*CreateInspectTemplateRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateInspectTemplateRequest.ProtoReflect.Descriptor instead.
func (*CreateInspectTemplateRequest) GetInspectTemplate
func (x *CreateInspectTemplateRequest) GetInspectTemplate() *InspectTemplatefunc (*CreateInspectTemplateRequest) GetLocationId
func (x *CreateInspectTemplateRequest) GetLocationId() stringfunc (*CreateInspectTemplateRequest) GetParent
func (x *CreateInspectTemplateRequest) GetParent() stringfunc (*CreateInspectTemplateRequest) GetTemplateId
func (x *CreateInspectTemplateRequest) GetTemplateId() stringfunc (*CreateInspectTemplateRequest) ProtoMessage
func (*CreateInspectTemplateRequest) ProtoMessage()func (*CreateInspectTemplateRequest) ProtoReflect
func (x *CreateInspectTemplateRequest) ProtoReflect() protoreflect.Messagefunc (*CreateInspectTemplateRequest) Reset
func (x *CreateInspectTemplateRequest) Reset()func (*CreateInspectTemplateRequest) String
func (x *CreateInspectTemplateRequest) String() stringCreateJobTriggerRequest
type CreateJobTriggerRequest struct {
// Required. Parent resource name.
//
// The format of this value varies depending on whether you have [specified a
// processing
// location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
//
// - Projects scope, location specified:
// `projects/{project_id}/locations/{location_id}`
// - Projects scope, no location specified (defaults to global):
// `projects/{project_id}`
//
// The following example `parent` string specifies a parent project with the
// identifier `example-project`, and specifies the `europe-west3` location
// for processing data:
//
// parent=projects/example-project/locations/europe-west3
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The JobTrigger to create.
JobTrigger *JobTrigger `protobuf:"bytes,2,opt,name=job_trigger,json=jobTrigger,proto3" json:"job_trigger,omitempty"`
// The trigger id can contain uppercase and lowercase letters,
// numbers, and hyphens; that is, it must match the regular
// expression: `[a-zA-Z\d-_]+`. The maximum length is 100
// characters. Can be empty to allow the system to generate one.
TriggerId string `protobuf:"bytes,3,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"`
// Deprecated. This field has no effect.
LocationId string `protobuf:"bytes,4,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
// contains filtered or unexported fields
}Request message for CreateJobTrigger.
func (*CreateJobTriggerRequest) Descriptor
func (*CreateJobTriggerRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateJobTriggerRequest.ProtoReflect.Descriptor instead.
func (*CreateJobTriggerRequest) GetJobTrigger
func (x *CreateJobTriggerRequest) GetJobTrigger() *JobTriggerfunc (*CreateJobTriggerRequest) GetLocationId
func (x *CreateJobTriggerRequest) GetLocationId() stringfunc (*CreateJobTriggerRequest) GetParent
func (x *CreateJobTriggerRequest) GetParent() stringfunc (*CreateJobTriggerRequest) GetTriggerId
func (x *CreateJobTriggerRequest) GetTriggerId() stringfunc (*CreateJobTriggerRequest) ProtoMessage
func (*CreateJobTriggerRequest) ProtoMessage()func (*CreateJobTriggerRequest) ProtoReflect
func (x *CreateJobTriggerRequest) ProtoReflect() protoreflect.Messagefunc (*CreateJobTriggerRequest) Reset
func (x *CreateJobTriggerRequest) Reset()func (*CreateJobTriggerRequest) String
func (x *CreateJobTriggerRequest) String() stringCreateStoredInfoTypeRequest
type CreateStoredInfoTypeRequest struct {
// Required. Parent resource name.
//
// The format of this value varies depending on the scope of the request
// (project or organization) and whether you have [specified a processing
// location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
//
// - Projects scope, location specified:
// `projects/{project_id}/locations/{location_id}`
// - Projects scope, no location specified (defaults to global):
// `projects/{project_id}`
// - Organizations scope, location specified:
// `organizations/{org_id}/locations/{location_id}`
// - Organizations scope, no location specified (defaults to global):
// `organizations/{org_id}`
//
// The following example `parent` string specifies a parent project with the
// identifier `example-project`, and specifies the `europe-west3` location
// for processing data:
//
// parent=projects/example-project/locations/europe-west3
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Configuration of the storedInfoType to create.
Config *StoredInfoTypeConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
// The storedInfoType ID can contain uppercase and lowercase letters,
// numbers, and hyphens; that is, it must match the regular
// expression: `[a-zA-Z\d-_]+`. The maximum length is 100
// characters. Can be empty to allow the system to generate one.
StoredInfoTypeId string `protobuf:"bytes,3,opt,name=stored_info_type_id,json=storedInfoTypeId,proto3" json:"stored_info_type_id,omitempty"`
// Deprecated. This field has no effect.
LocationId string `protobuf:"bytes,4,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
// contains filtered or unexported fields
}Request message for CreateStoredInfoType.
func (*CreateStoredInfoTypeRequest) Descriptor
func (*CreateStoredInfoTypeRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateStoredInfoTypeRequest.ProtoReflect.Descriptor instead.
func (*CreateStoredInfoTypeRequest) GetConfig
func (x *CreateStoredInfoTypeRequest) GetConfig() *StoredInfoTypeConfigfunc (*CreateStoredInfoTypeRequest) GetLocationId
func (x *CreateStoredInfoTypeRequest) GetLocationId() stringfunc (*CreateStoredInfoTypeRequest) GetParent
func (x *CreateStoredInfoTypeRequest) GetParent() stringfunc (*CreateStoredInfoTypeRequest) GetStoredInfoTypeId
func (x *CreateStoredInfoTypeRequest) GetStoredInfoTypeId() stringfunc (*CreateStoredInfoTypeRequest) ProtoMessage
func (*CreateStoredInfoTypeRequest) ProtoMessage()func (*CreateStoredInfoTypeRequest) ProtoReflect
func (x *CreateStoredInfoTypeRequest) ProtoReflect() protoreflect.Messagefunc (*CreateStoredInfoTypeRequest) Reset
func (x *CreateStoredInfoTypeRequest) Reset()func (*CreateStoredInfoTypeRequest) String
func (x *CreateStoredInfoTypeRequest) String() stringCryptoDeterministicConfig
type CryptoDeterministicConfig struct {
// The key used by the encryption function. For deterministic encryption
// using AES-SIV, the provided key is internally expanded to 64 bytes prior to
// use.
CryptoKey *CryptoKey `protobuf:"bytes,1,opt,name=crypto_key,json=cryptoKey,proto3" json:"crypto_key,omitempty"`
// The custom info type to annotate the surrogate with.
// This annotation will be applied to the surrogate by prefixing it with
// the name of the custom info type followed by the number of
// characters comprising the surrogate. The following scheme defines the
// format: {info type name}({surrogate character count}):{surrogate}
//
// For example, if the name of custom info type is 'MY_TOKEN_INFO_TYPE' and
// the surrogate is 'abc', the full replacement value
// will be: 'MY_TOKEN_INFO_TYPE(3):abc'
//
// This annotation identifies the surrogate when inspecting content using the
// custom info type 'Surrogate'. This facilitates reversal of the
// surrogate when it occurs in free text.
//
// Note: For record transformations where the entire cell in a table is being
// transformed, surrogates are not mandatory. Surrogates are used to denote
// the location of the token and are necessary for re-identification in free
// form text.
//
// In order for inspection to work properly, the name of this info type must
// not occur naturally anywhere in your data; otherwise, inspection may either
//
// - reverse a surrogate that does not correspond to an actual identifier
// - be unable to parse the surrogate and result in an error
//
// Therefore, choose your custom info type name carefully after considering
// what your data looks like. One way to select a name that has a high chance
// of yielding reliable detection is to include one or more unicode characters
// that are highly improbable to exist in your data.
// For example, assuming your data is entered from a regular ASCII keyboard,
// the symbol with the hex code point 29DD might be used like so:
// ⧝MY_TOKEN_TYPE.
SurrogateInfoType *InfoType `protobuf:"bytes,2,opt,name=surrogate_info_type,json=surrogateInfoType,proto3" json:"surrogate_info_type,omitempty"`
// A context may be used for higher security and maintaining
// referential integrity such that the same identifier in two different
// contexts will be given a distinct surrogate. The context is appended to
// plaintext value being encrypted. On decryption the provided context is
// validated against the value used during encryption. If a context was
// provided during encryption, same context must be provided during decryption
// as well.
//
// If the context is not set, plaintext would be used as is for encryption.
// If the context is set but:
//
// 1. there is no record present when transforming a given value or
// 2. the field is not present when transforming a given value,
//
// plaintext would be used as is for encryption.
//
// Note that case (1) is expected when an `InfoTypeTransformation` is
// applied to both structured and unstructured `ContentItem`s.
Context *FieldId `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"`
// contains filtered or unexported fields
}Pseudonymization method that generates deterministic encryption for the given input. Outputs a base64 encoded representation of the encrypted output. Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
func (*CryptoDeterministicConfig) Descriptor
func (*CryptoDeterministicConfig) Descriptor() ([]byte, []int)Deprecated: Use CryptoDeterministicConfig.ProtoReflect.Descriptor instead.
func (*CryptoDeterministicConfig) GetContext
func (x *CryptoDeterministicConfig) GetContext() *FieldIdfunc (*CryptoDeterministicConfig) GetCryptoKey
func (x *CryptoDeterministicConfig) GetCryptoKey() *CryptoKeyfunc (*CryptoDeterministicConfig) GetSurrogateInfoType
func (x *CryptoDeterministicConfig) GetSurrogateInfoType() *InfoTypefunc (*CryptoDeterministicConfig) ProtoMessage
func (*CryptoDeterministicConfig) ProtoMessage()func (*CryptoDeterministicConfig) ProtoReflect
func (x *CryptoDeterministicConfig) ProtoReflect() protoreflect.Messagefunc (*CryptoDeterministicConfig) Reset
func (x *CryptoDeterministicConfig) Reset()func (*CryptoDeterministicConfig) String
func (x *CryptoDeterministicConfig) String() stringCryptoHashConfig
type CryptoHashConfig struct {
// The key used by the hash function.
CryptoKey *CryptoKey `protobuf:"bytes,1,opt,name=crypto_key,json=cryptoKey,proto3" json:"crypto_key,omitempty"`
// contains filtered or unexported fields
}Pseudonymization method that generates surrogates via cryptographic hashing. Uses SHA-256. The key size must be either 32 or 64 bytes. Outputs a base64 encoded representation of the hashed output (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=). Currently, only string and integer values can be hashed. See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization to learn more.
func (*CryptoHashConfig) Descriptor
func (*CryptoHashConfig) Descriptor() ([]byte, []int)Deprecated: Use CryptoHashConfig.ProtoReflect.Descriptor instead.
func (*CryptoHashConfig) GetCryptoKey
func (x *CryptoHashConfig) GetCryptoKey() *CryptoKeyfunc (*CryptoHashConfig) ProtoMessage
func (*CryptoHashConfig) ProtoMessage()func (*CryptoHashConfig) ProtoReflect
func (x *CryptoHashConfig) ProtoReflect() protoreflect.Messagefunc (*CryptoHashConfig) Reset
func (x *CryptoHashConfig) Reset()func (*CryptoHashConfig) String
func (x *CryptoHashConfig) String() stringCryptoKey
type CryptoKey struct {
// Sources of crypto keys.
//
// Types that are assignable to Source:
//
// *CryptoKey_Transient
// *CryptoKey_Unwrapped
// *CryptoKey_KmsWrapped
Source isCryptoKey_Source `protobuf_oneof:"source"`
// contains filtered or unexported fields
}This is a data encryption key (DEK) (as opposed to a key encryption key (KEK) stored by Cloud Key Management Service (Cloud KMS). When using Cloud KMS to wrap or unwrap a DEK, be sure to set an appropriate IAM policy on the KEK to ensure an attacker cannot unwrap the DEK.
func (*CryptoKey) Descriptor
Deprecated: Use CryptoKey.ProtoReflect.Descriptor instead.
func (*CryptoKey) GetKmsWrapped
func (x *CryptoKey) GetKmsWrapped() *KmsWrappedCryptoKeyfunc (*CryptoKey) GetSource
func (m *CryptoKey) GetSource() isCryptoKey_Sourcefunc (*CryptoKey) GetTransient
func (x *CryptoKey) GetTransient() *TransientCryptoKeyfunc (*CryptoKey) GetUnwrapped
func (x *CryptoKey) GetUnwrapped() *UnwrappedCryptoKeyfunc (*CryptoKey) ProtoMessage
func (*CryptoKey) ProtoMessage()func (*CryptoKey) ProtoReflect
func (x *CryptoKey) ProtoReflect() protoreflect.Messagefunc (*CryptoKey) Reset
func (x *CryptoKey) Reset()func (*CryptoKey) String
CryptoKey_KmsWrapped
type CryptoKey_KmsWrapped struct {
// Key wrapped using Cloud KMS
KmsWrapped *KmsWrappedCryptoKey `protobuf:"bytes,3,opt,name=kms_wrapped,json=kmsWrapped,proto3,oneof"`
}CryptoKey_Transient
type CryptoKey_Transient struct {
// Transient crypto key
Transient *TransientCryptoKey `protobuf:"bytes,1,opt,name=transient,proto3,oneof"`
}CryptoKey_Unwrapped
type CryptoKey_Unwrapped struct {
// Unwrapped crypto key
Unwrapped *UnwrappedCryptoKey `protobuf:"bytes,2,opt,name=unwrapped,proto3,oneof"`
}CryptoReplaceFfxFpeConfig
type CryptoReplaceFfxFpeConfig struct {
// Required. The key used by the encryption algorithm.
CryptoKey *CryptoKey `protobuf:"bytes,1,opt,name=crypto_key,json=cryptoKey,proto3" json:"crypto_key,omitempty"`
// The 'tweak', a context may be used for higher security since the same
// identifier in two different contexts won't be given the same surrogate. If
// the context is not set, a default tweak will be used.
//
// If the context is set but:
//
// 1. there is no record present when transforming a given value or
// 1. the field is not present when transforming a given value,
//
// a default tweak will be used.
//
// Note that case (1) is expected when an `InfoTypeTransformation` is
// applied to both structured and unstructured `ContentItem`s.
// Currently, the referenced field may be of value type integer or string.
//
// The tweak is constructed as a sequence of bytes in big endian byte order
// such that:
//
// - a 64 bit integer is encoded followed by a single byte of value 1
// - a string is encoded in UTF-8 format followed by a single byte of value 2
Context *FieldId `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
// Choose an alphabet which the data being transformed will be made up of.
//
// Types that are assignable to Alphabet:
//
// *CryptoReplaceFfxFpeConfig_CommonAlphabet
// *CryptoReplaceFfxFpeConfig_CustomAlphabet
// *CryptoReplaceFfxFpeConfig_Radix
Alphabet isCryptoReplaceFfxFpeConfig_Alphabet `protobuf_oneof:"alphabet"`
// The custom infoType to annotate the surrogate with.
// This annotation will be applied to the surrogate by prefixing it with
// the name of the custom infoType followed by the number of
// characters comprising the surrogate. The following scheme defines the
// format: info_type_name(surrogate_character_count):surrogate
//
// For example, if the name of custom infoType is 'MY_TOKEN_INFO_TYPE' and
// the surrogate is 'abc', the full replacement value
// will be: 'MY_TOKEN_INFO_TYPE(3):abc'
//
// This annotation identifies the surrogate when inspecting content using the
// custom infoType
// [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype).
// This facilitates reversal of the surrogate when it occurs in free text.
//
// In order for inspection to work properly, the name of this infoType must
// not occur naturally anywhere in your data; otherwise, inspection may
// find a surrogate that does not correspond to an actual identifier.
// Therefore, choose your custom infoType name carefully after considering
// what your data looks like. One way to select a name that has a high chance
// of yielding reliable detection is to include one or more unicode characters
// that are highly improbable to exist in your data.
// For example, assuming your data is entered from a regular ASCII keyboard,
// the symbol with the hex code point 29DD might be used like so:
// ⧝MY_TOKEN_TYPE
SurrogateInfoType *InfoType `protobuf:"bytes,8,opt,name=surrogate_info_type,json=surrogateInfoType,proto3" json:"surrogate_info_type,omitempty"`
// contains filtered or unexported fields
}Replaces an identifier with a surrogate using Format Preserving Encryption
(FPE) with the FFX mode of operation; however when used in the
ReidentifyContent API method, it serves the opposite function by reversing
the surrogate back into the original identifier. The identifier must be
encoded as ASCII. For a given crypto key and context, the same identifier
will be replaced with the same surrogate. Identifiers must be at least two
characters long. In the case that the identifier is the empty string, it will
be skipped. See
https://cloud.google.com/sensitive-data-protection/docs/pseudonymization to
learn more.
Note: We recommend using CryptoDeterministicConfig for all use cases which do not require preserving the input alphabet space and size, plus warrant referential integrity. FPE incurs significant latency costs.
func (*CryptoReplaceFfxFpeConfig) Descriptor
func (*CryptoReplaceFfxFpeConfig) Descriptor() ([]byte, []int)Deprecated: Use CryptoReplaceFfxFpeConfig.ProtoReflect.Descriptor instead.
func (*CryptoReplaceFfxFpeConfig) GetAlphabet
func (m *CryptoReplaceFfxFpeConfig) GetAlphabet() isCryptoReplaceFfxFpeConfig_Alphabetfunc (*CryptoReplaceFfxFpeConfig) GetCommonAlphabet
func (x *CryptoReplaceFfxFpeConfig) GetCommonAlphabet() CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabetfunc (*CryptoReplaceFfxFpeConfig) GetContext
func (x *CryptoReplaceFfxFpeConfig) GetContext() *FieldIdfunc (*CryptoReplaceFfxFpeConfig) GetCryptoKey
func (x *CryptoReplaceFfxFpeConfig) GetCryptoKey() *CryptoKeyfunc (*CryptoReplaceFfxFpeConfig) GetCustomAlphabet
func (x *CryptoReplaceFfxFpeConfig) GetCustomAlphabet() stringfunc (*CryptoReplaceFfxFpeConfig) GetRadix
func (x *CryptoReplaceFfxFpeConfig) GetRadix() int32func (*CryptoReplaceFfxFpeConfig) GetSurrogateInfoType
func (x *CryptoReplaceFfxFpeConfig) GetSurrogateInfoType() *InfoTypefunc (*CryptoReplaceFfxFpeConfig) ProtoMessage
func (*CryptoReplaceFfxFpeConfig) ProtoMessage()func (*CryptoReplaceFfxFpeConfig) ProtoReflect
func (x *CryptoReplaceFfxFpeConfig) ProtoReflect() protoreflect.Messagefunc (*CryptoReplaceFfxFpeConfig) Reset
func (x *CryptoReplaceFfxFpeConfig) Reset()func (*CryptoReplaceFfxFpeConfig) String
func (x *CryptoReplaceFfxFpeConfig) String() stringCryptoReplaceFfxFpeConfig_CommonAlphabet
type CryptoReplaceFfxFpeConfig_CommonAlphabet struct {
// Common alphabets.
CommonAlphabet CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet `protobuf:"varint,4,opt,name=common_alphabet,json=commonAlphabet,proto3,enum=google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet,oneof"`
}CryptoReplaceFfxFpeConfig_CustomAlphabet
type CryptoReplaceFfxFpeConfig_CustomAlphabet struct {
// This is supported by mapping these to the alphanumeric characters
// that the FFX mode natively supports. This happens before/after
// encryption/decryption.
// Each character listed must appear only once.
// Number of characters must be in the range [2, 95].
// This must be encoded as ASCII.
// The order of characters does not matter.
// The full list of allowed characters is:
// “0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/“
CustomAlphabet string `protobuf:"bytes,5,opt,name=custom_alphabet,json=customAlphabet,proto3,oneof"`
}CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet
type CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet int32These are commonly used subsets of the alphabet that the FFX mode natively supports. In the algorithm, the alphabet is selected using the "radix". Therefore each corresponds to a particular radix.
CryptoReplaceFfxFpeConfig_FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED, CryptoReplaceFfxFpeConfig_NUMERIC, CryptoReplaceFfxFpeConfig_HEXADECIMAL, CryptoReplaceFfxFpeConfig_UPPER_CASE_ALPHA_NUMERIC, CryptoReplaceFfxFpeConfig_ALPHA_NUMERIC
const (
// Unused.
CryptoReplaceFfxFpeConfig_FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet = 0
// `[0-9]` (radix of 10)
CryptoReplaceFfxFpeConfig_NUMERIC CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet = 1
// `[0-9A-F]` (radix of 16)
CryptoReplaceFfxFpeConfig_HEXADECIMAL CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet = 2
// `[0-9A-Z]` (radix of 36)
CryptoReplaceFfxFpeConfig_UPPER_CASE_ALPHA_NUMERIC CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet = 3
// `[0-9A-Za-z]` (radix of 62)
CryptoReplaceFfxFpeConfig_ALPHA_NUMERIC CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet = 4
)func (CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet) Descriptor
func (CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet) Descriptor() protoreflect.EnumDescriptorfunc (CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet) Enum
func (x CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet) Enum() *CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabetfunc (CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet) EnumDescriptor
func (CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet) EnumDescriptor() ([]byte, []int)Deprecated: Use CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet.Descriptor instead.
func (CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet) Number
func (x CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet) Number() protoreflect.EnumNumberfunc (CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet) String
func (x CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet) String() stringfunc (CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet) Type
CryptoReplaceFfxFpeConfig_Radix
type CryptoReplaceFfxFpeConfig_Radix struct {
// The native way to select the alphabet. Must be in the range [2, 95].
Radix int32 `protobuf:"varint,6,opt,name=radix,proto3,oneof"`
}CustomInfoType
type CustomInfoType struct {
// CustomInfoType can either be a new infoType, or an extension of built-in
// infoType, when the name matches one of existing infoTypes and that infoType
// is specified in `InspectContent.info_types` field. Specifying the latter
// adds findings to the one detected by the system. If built-in info type is
// not specified in `InspectContent.info_types` list then the name is treated
// as a custom info type.
InfoType *InfoType `protobuf:"bytes,1,opt,name=info_type,json=infoType,proto3" json:"info_type,omitempty"`
// Likelihood to return for this CustomInfoType. This base value can be
// altered by a detection rule if the finding meets the criteria specified by
// the rule. Defaults to `VERY_LIKELY` if not specified.
Likelihood Likelihood `protobuf:"varint,6,opt,name=likelihood,proto3,enum=google.privacy.dlp.v2.Likelihood" json:"likelihood,omitempty"`
// Type of custom detector.
//
// Types that are assignable to Type:
//
// *CustomInfoType_Dictionary_
// *CustomInfoType_Regex_
// *CustomInfoType_SurrogateType_
// *CustomInfoType_StoredType
Type isCustomInfoType_Type `protobuf_oneof:"type"`
// Set of detection rules to apply to all findings of this CustomInfoType.
// Rules are applied in order that they are specified. Not supported for the
// `surrogate_type` CustomInfoType.
DetectionRules []*CustomInfoType_DetectionRule `protobuf:"bytes,7,rep,name=detection_rules,json=detectionRules,proto3" json:"detection_rules,omitempty"`
// If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding
// to be returned. It still can be used for rules matching.
ExclusionType CustomInfoType_ExclusionType `protobuf:"varint,8,opt,name=exclusion_type,json=exclusionType,proto3,enum=google.privacy.dlp.v2.CustomInfoType_ExclusionType" json:"exclusion_type,omitempty"`
// Sensitivity for this CustomInfoType. If this CustomInfoType extends an
// existing InfoType, the sensitivity here will take precedence over that of
// the original InfoType. If unset for a CustomInfoType, it will default to
// HIGH.
// This only applies to data profiling.
SensitivityScore *SensitivityScore `protobuf:"bytes,9,opt,name=sensitivity_score,json=sensitivityScore,proto3" json:"sensitivity_score,omitempty"`
// contains filtered or unexported fields
}Custom information type provided by the user. Used to find domain-specific sensitive information configurable to the data in question.
func (*CustomInfoType) Descriptor
func (*CustomInfoType) Descriptor() ([]byte, []int)Deprecated: Use CustomInfoType.ProtoReflect.Descriptor instead.
func (*CustomInfoType) GetDetectionRules
func (x *CustomInfoType) GetDetectionRules() []*CustomInfoType_DetectionRulefunc (*CustomInfoType) GetDictionary
func (x *CustomInfoType) GetDictionary() *CustomInfoType_Dictionaryfunc (*CustomInfoType) GetExclusionType
func (x *CustomInfoType) GetExclusionType() CustomInfoType_ExclusionTypefunc (*CustomInfoType) GetInfoType
func (x *CustomInfoType) GetInfoType() *InfoTypefunc (*CustomInfoType) GetLikelihood
func (x *CustomInfoType) GetLikelihood() Likelihoodfunc (*CustomInfoType) GetRegex
func (x *CustomInfoType) GetRegex() *CustomInfoType_Regexfunc (*CustomInfoType) GetSensitivityScore
func (x *CustomInfoType) GetSensitivityScore() *SensitivityScorefunc (*CustomInfoType) GetStoredType
func (x *CustomInfoType) GetStoredType() *StoredTypefunc (*CustomInfoType) GetSurrogateType
func (x *CustomInfoType) GetSurrogateType() *CustomInfoType_SurrogateTypefunc (*CustomInfoType) GetType
func (m *CustomInfoType) GetType() isCustomInfoType_Typefunc (*CustomInfoType) ProtoMessage
func (*CustomInfoType) ProtoMessage()func (*CustomInfoType) ProtoReflect
func (x *CustomInfoType) ProtoReflect() protoreflect.Messagefunc (*CustomInfoType) Reset
func (x *CustomInfoType) Reset()func (*CustomInfoType) String
func (x *CustomInfoType) String() stringCustomInfoType_DetectionRule
type CustomInfoType_DetectionRule struct {
// Type of hotword rule.
//
// Types that are assignable to Type:
//
// *CustomInfoType_DetectionRule_HotwordRule_
Type isCustomInfoType_DetectionRule_Type `protobuf_oneof:"type"`
// contains filtered or unexported fields
}Deprecated; use InspectionRuleSet instead. Rule for modifying a
CustomInfoType to alter behavior under certain circumstances, depending
on the specific details of the rule. Not supported for the surrogate_type
custom infoType.
func (*CustomInfoType_DetectionRule) Descriptor
func (*CustomInfoType_DetectionRule) Descriptor() ([]byte, []int)Deprecated: Use CustomInfoType_DetectionRule.ProtoReflect.Descriptor instead.
func (*CustomInfoType_DetectionRule) GetHotwordRule
func (x *CustomInfoType_DetectionRule) GetHotwordRule() *CustomInfoType_DetectionRule_HotwordRulefunc (*CustomInfoType_DetectionRule) GetType
func (m *CustomInfoType_DetectionRule) GetType() isCustomInfoType_DetectionRule_Typefunc (*CustomInfoType_DetectionRule) ProtoMessage
func (*CustomInfoType_DetectionRule) ProtoMessage()func (*CustomInfoType_DetectionRule) ProtoReflect
func (x *CustomInfoType_DetectionRule) ProtoReflect() protoreflect.Messagefunc (*CustomInfoType_DetectionRule) Reset
func (x *CustomInfoType_DetectionRule) Reset()func (*CustomInfoType_DetectionRule) String
func (x *CustomInfoType_DetectionRule) String() stringCustomInfoType_DetectionRule_HotwordRule
type CustomInfoType_DetectionRule_HotwordRule struct {
// Regular expression pattern defining what qualifies as a hotword.
HotwordRegex *CustomInfoType_Regex `protobuf:"bytes,1,opt,name=hotword_regex,json=hotwordRegex,proto3" json:"hotword_regex,omitempty"`
// Range of characters within which the entire hotword must reside.
// The total length of the window cannot exceed 1000 characters.
// The finding itself will be included in the window, so that hotwords can
// be used to match substrings of the finding itself. Suppose you
// want Cloud DLP to promote the likelihood of the phone number
// regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the
// area code of a company's office. In this case, use the hotword regex
// "\(xxx\)", where "xxx" is the area code in question.
//
// For tabular data, if you want to modify the likelihood of an entire
// column of findngs, see
// [Hotword example: Set the match likelihood of a table column]
// (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values).
Proximity *CustomInfoType_DetectionRule_Proximity `protobuf:"bytes,2,opt,name=proximity,proto3" json:"proximity,omitempty"`
// Likelihood adjustment to apply to all matching findings.
LikelihoodAdjustment *CustomInfoType_DetectionRule_LikelihoodAdjustment `protobuf:"bytes,3,opt,name=likelihood_adjustment,json=likelihoodAdjustment,proto3" json:"likelihood_adjustment,omitempty"`
// contains filtered or unexported fields
}The rule that adjusts the likelihood of findings within a certain proximity of hotwords.
func (*CustomInfoType_DetectionRule_HotwordRule) Descriptor
func (*CustomInfoType_DetectionRule_HotwordRule) Descriptor() ([]byte, []int)Deprecated: Use CustomInfoType_DetectionRule_HotwordRule.ProtoReflect.Descriptor instead.
func (*CustomInfoType_DetectionRule_HotwordRule) GetHotwordRegex
func (x *CustomInfoType_DetectionRule_HotwordRule) GetHotwordRegex() *CustomInfoType_Regexfunc (*CustomInfoType_DetectionRule_HotwordRule) GetLikelihoodAdjustment
func (x *CustomInfoType_DetectionRule_HotwordRule) GetLikelihoodAdjustment() *CustomInfoType_DetectionRule_LikelihoodAdjustmentfunc (*CustomInfoType_DetectionRule_HotwordRule) GetProximity
func (x *CustomInfoType_DetectionRule_HotwordRule) GetProximity() *CustomInfoType_DetectionRule_Proximityfunc (*CustomInfoType_DetectionRule_HotwordRule) ProtoMessage
func (*CustomInfoType_DetectionRule_HotwordRule) ProtoMessage()func (*CustomInfoType_DetectionRule_HotwordRule) ProtoReflect
func (x *CustomInfoType_DetectionRule_HotwordRule) ProtoReflect() protoreflect.Messagefunc (*CustomInfoType_DetectionRule_HotwordRule) Reset
func (x *CustomInfoType_DetectionRule_HotwordRule) Reset()func (*CustomInfoType_DetectionRule_HotwordRule) String
func (x *CustomInfoType_DetectionRule_HotwordRule) String() stringCustomInfoType_DetectionRule_HotwordRule_
type CustomInfoType_DetectionRule_HotwordRule_ struct {
// Hotword-based detection rule.
HotwordRule *CustomInfoType_DetectionRule_HotwordRule `protobuf:"bytes,1,opt,name=hotword_rule,json=hotwordRule,proto3,oneof"`
}CustomInfoType_DetectionRule_LikelihoodAdjustment
type CustomInfoType_DetectionRule_LikelihoodAdjustment struct {
// How the likelihood will be modified.
//
// Types that are assignable to Adjustment:
//
// *CustomInfoType_DetectionRule_LikelihoodAdjustment_FixedLikelihood
// *CustomInfoType_DetectionRule_LikelihoodAdjustment_RelativeLikelihood
Adjustment isCustomInfoType_DetectionRule_LikelihoodAdjustment_Adjustment `protobuf_oneof:"adjustment"`
// contains filtered or unexported fields
}Message for specifying an adjustment to the likelihood of a finding as part of a detection rule.
func (*CustomInfoType_DetectionRule_LikelihoodAdjustment) Descriptor
func (*CustomInfoType_DetectionRule_LikelihoodAdjustment) Descriptor() ([]byte, []int)Deprecated: Use CustomInfoType_DetectionRule_LikelihoodAdjustment.ProtoReflect.Descriptor instead.
func (*CustomInfoType_DetectionRule_LikelihoodAdjustment) GetAdjustment
func (m *CustomInfoType_DetectionRule_LikelihoodAdjustment) GetAdjustment() isCustomInfoType_DetectionRule_LikelihoodAdjustment_Adjustmentfunc (*CustomInfoType_DetectionRule_LikelihoodAdjustment) GetFixedLikelihood
func (x *CustomInfoType_DetectionRule_LikelihoodAdjustment) GetFixedLikelihood() Likelihoodfunc (*CustomInfoType_DetectionRule_LikelihoodAdjustment) GetRelativeLikelihood
func (x *CustomInfoType_DetectionRule_LikelihoodAdjustment) GetRelativeLikelihood() int32func (*CustomInfoType_DetectionRule_LikelihoodAdjustment) ProtoMessage
func (*CustomInfoType_DetectionRule_LikelihoodAdjustment) ProtoMessage()func (*CustomInfoType_DetectionRule_LikelihoodAdjustment) ProtoReflect
func (x *CustomInfoType_DetectionRule_LikelihoodAdjustment) ProtoReflect() protoreflect.Messagefunc (*CustomInfoType_DetectionRule_LikelihoodAdjustment) Reset
func (x *CustomInfoType_DetectionRule_LikelihoodAdjustment) Reset()func (*CustomInfoType_DetectionRule_LikelihoodAdjustment) String
func (x *CustomInfoType_DetectionRule_LikelihoodAdjustment) String() stringCustomInfoType_DetectionRule_LikelihoodAdjustment_FixedLikelihood
type CustomInfoType_DetectionRule_LikelihoodAdjustment_FixedLikelihood struct {
// Set the likelihood of a finding to a fixed value.
FixedLikelihood Likelihood `protobuf:"varint,1,opt,name=fixed_likelihood,json=fixedLikelihood,proto3,enum=google.privacy.dlp.v2.Likelihood,oneof"`
}CustomInfoType_DetectionRule_LikelihoodAdjustment_RelativeLikelihood
type CustomInfoType_DetectionRule_LikelihoodAdjustment_RelativeLikelihood struct {
// Increase or decrease the likelihood by the specified number of
// levels. For example, if a finding would be `POSSIBLE` without the
// detection rule and `relative_likelihood` is 1, then it is upgraded to
// `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`.
// Likelihood may never drop below `VERY_UNLIKELY` or exceed
// `VERY_LIKELY`, so applying an adjustment of 1 followed by an
// adjustment of -1 when base likelihood is `VERY_LIKELY` will result in
// a final likelihood of `LIKELY`.
RelativeLikelihood int32 `protobuf:"varint,2,opt,name=relative_likelihood,json=relativeLikelihood,proto3,oneof"`
}CustomInfoType_DetectionRule_Proximity
type CustomInfoType_DetectionRule_Proximity struct {
// Number of characters before the finding to consider. For tabular data,
// if you want to modify the likelihood of an entire column of findngs,
// set this to 1. For more information, see
// [Hotword example: Set the match likelihood of a table column]
// (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values).
WindowBefore int32 `protobuf:"varint,1,opt,name=window_before,json=windowBefore,proto3" json:"window_before,omitempty"`
// Number of characters after the finding to consider.
WindowAfter int32 `protobuf:"varint,2,opt,name=window_after,json=windowAfter,proto3" json:"window_after,omitempty"`
// contains filtered or unexported fields
}Message for specifying a window around a finding to apply a detection rule.
func (*CustomInfoType_DetectionRule_Proximity) Descriptor
func (*CustomInfoType_DetectionRule_Proximity) Descriptor() ([]byte, []int)Deprecated: Use CustomInfoType_DetectionRule_Proximity.ProtoReflect.Descriptor instead.
func (*CustomInfoType_DetectionRule_Proximity) GetWindowAfter
func (x *CustomInfoType_DetectionRule_Proximity) GetWindowAfter() int32func (*CustomInfoType_DetectionRule_Proximity) GetWindowBefore
func (x *CustomInfoType_DetectionRule_Proximity) GetWindowBefore() int32func (*CustomInfoType_DetectionRule_Proximity) ProtoMessage
func (*CustomInfoType_DetectionRule_Proximity) ProtoMessage()func (*CustomInfoType_DetectionRule_Proximity) ProtoReflect
func (x *CustomInfoType_DetectionRule_Proximity) ProtoReflect() protoreflect.Messagefunc (*CustomInfoType_DetectionRule_Proximity) Reset
func (x *CustomInfoType_DetectionRule_Proximity) Reset()func (*CustomInfoType_DetectionRule_Proximity) String
func (x *CustomInfoType_DetectionRule_Proximity) String() stringCustomInfoType_Dictionary
type CustomInfoType_Dictionary struct {
// The potential places the data can be read from.
//
// Types that are assignable to Source:
//
// *CustomInfoType_Dictionary_WordList_
// *CustomInfoType_Dictionary_CloudStoragePath
Source isCustomInfoType_Dictionary_Source `protobuf_oneof:"source"`
// contains filtered or unexported fields
}Custom information type based on a dictionary of words or phrases. This can be used to match sensitive information specific to the data, such as a list of employee IDs or job titles.
Dictionary words are case-insensitive and all characters other than letters and digits in the unicode Basic Multilingual Plane will be replaced with whitespace when scanning for matches, so the dictionary phrase "Sam Johnson" will match all three phrases "sam johnson", "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters surrounding any match must be of a different type than the adjacent characters within the word, so letters must be next to non-letters and digits next to non-digits. For example, the dictionary word "jen" will match the first three letters of the text "jen123" but will return no matches for "jennifer".
Dictionary words containing a large number of characters that are not
letters or digits may result in unexpected findings because such characters
are treated as whitespace. The
limits page
contains details about the size limits of dictionaries. For dictionaries
that do not fit within these constraints, consider using
LargeCustomDictionaryConfig in the StoredInfoType API.
func (*CustomInfoType_Dictionary) Descriptor
func (*CustomInfoType_Dictionary) Descriptor() ([]byte, []int)Deprecated: Use CustomInfoType_Dictionary.ProtoReflect.Descriptor instead.
func (*CustomInfoType_Dictionary) GetCloudStoragePath
func (x *CustomInfoType_Dictionary) GetCloudStoragePath() *CloudStoragePathfunc (*CustomInfoType_Dictionary) GetSource
func (m *CustomInfoType_Dictionary) GetSource() isCustomInfoType_Dictionary_Sourcefunc (*CustomInfoType_Dictionary) GetWordList
func (x *CustomInfoType_Dictionary) GetWordList() *CustomInfoType_Dictionary_WordListfunc (*CustomInfoType_Dictionary) ProtoMessage
func (*CustomInfoType_Dictionary) ProtoMessage()func (*CustomInfoType_Dictionary) ProtoReflect
func (x *CustomInfoType_Dictionary) ProtoReflect() protoreflect.Messagefunc (*CustomInfoType_Dictionary) Reset
func (x *CustomInfoType_Dictionary) Reset()func (*CustomInfoType_Dictionary) String
func (x *CustomInfoType_Dictionary) String() stringCustomInfoType_Dictionary_
type CustomInfoType_Dictionary_ struct {
// A list of phrases to detect as a CustomInfoType.
Dictionary *CustomInfoType_Dictionary `protobuf:"bytes,2,opt,name=dictionary,proto3,oneof"`
}CustomInfoType_Dictionary_CloudStoragePath
type CustomInfoType_Dictionary_CloudStoragePath struct {
// Newline-delimited file of words in Cloud Storage. Only a single file
// is accepted.
CloudStoragePath *CloudStoragePath `protobuf:"bytes,3,opt,name=cloud_storage_path,json=cloudStoragePath,proto3,oneof"`
}CustomInfoType_Dictionary_WordList
type CustomInfoType_Dictionary_WordList struct {
// Words or phrases defining the dictionary. The dictionary must contain
// at least one phrase and every phrase must contain at least 2 characters
// that are letters or digits. [required]
Words []string `protobuf:"bytes,1,rep,name=words,proto3" json:"words,omitempty"`
// contains filtered or unexported fields
}Message defining a list of words or phrases to search for in the data.
func (*CustomInfoType_Dictionary_WordList) Descriptor
func (*CustomInfoType_Dictionary_WordList) Descriptor() ([]byte, []int)Deprecated: Use CustomInfoType_Dictionary_WordList.ProtoReflect.Descriptor instead.
func (*CustomInfoType_Dictionary_WordList) GetWords
func (x *CustomInfoType_Dictionary_WordList) GetWords() []stringfunc (*CustomInfoType_Dictionary_WordList) ProtoMessage
func (*CustomInfoType_Dictionary_WordList) ProtoMessage()func (*CustomInfoType_Dictionary_WordList) ProtoReflect
func (x *CustomInfoType_Dictionary_WordList) ProtoReflect() protoreflect.Messagefunc (*CustomInfoType_Dictionary_WordList) Reset
func (x *CustomInfoType_Dictionary_WordList) Reset()func (*CustomInfoType_Dictionary_WordList) String
func (x *CustomInfoType_Dictionary_WordList) String() stringCustomInfoType_Dictionary_WordList_
type CustomInfoType_Dictionary_WordList_ struct {
// List of words or phrases to search for.
WordList *CustomInfoType_Dictionary_WordList `protobuf:"bytes,1,opt,name=word_list,json=wordList,proto3,oneof"`
}CustomInfoType_ExclusionType
type CustomInfoType_ExclusionType int32Type of exclusion rule.
CustomInfoType_EXCLUSION_TYPE_UNSPECIFIED, CustomInfoType_EXCLUSION_TYPE_EXCLUDE
const (
// A finding of this custom info type will not be excluded from results.
CustomInfoType_EXCLUSION_TYPE_UNSPECIFIED CustomInfoType_ExclusionType = 0
// A finding of this custom info type will be excluded from final results,
// but can still affect rule execution.
CustomInfoType_EXCLUSION_TYPE_EXCLUDE CustomInfoType_ExclusionType = 1
)func (CustomInfoType_ExclusionType) Descriptor
func (CustomInfoType_ExclusionType) Descriptor() protoreflect.EnumDescriptorfunc (CustomInfoType_ExclusionType) Enum
func (x CustomInfoType_ExclusionType) Enum() *CustomInfoType_ExclusionTypefunc (CustomInfoType_ExclusionType) EnumDescriptor
func (CustomInfoType_ExclusionType) EnumDescriptor() ([]byte, []int)Deprecated: Use CustomInfoType_ExclusionType.Descriptor instead.
func (CustomInfoType_ExclusionType) Number
func (x CustomInfoType_ExclusionType) Number() protoreflect.EnumNumberfunc (CustomInfoType_ExclusionType) String
func (x CustomInfoType_ExclusionType) String() stringfunc (CustomInfoType_ExclusionType) Type
func (CustomInfoType_ExclusionType) Type() protoreflect.EnumTypeCustomInfoType_Regex
type CustomInfoType_Regex struct {
// Pattern defining the regular expression. Its syntax
// (https://github.com/google/re2/wiki/Syntax) can be found under the
// google/re2 repository on GitHub.
Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"`
// The index of the submatch to extract as findings. When not
// specified, the entire match is returned. No more than 3 may be included.
GroupIndexes []int32 `protobuf:"varint,2,rep,packed,name=group_indexes,json=groupIndexes,proto3" json:"group_indexes,omitempty"`
// contains filtered or unexported fields
}Message defining a custom regular expression.
func (*CustomInfoType_Regex) Descriptor
func (*CustomInfoType_Regex) Descriptor() ([]byte, []int)Deprecated: Use CustomInfoType_Regex.ProtoReflect.Descriptor instead.
func (*CustomInfoType_Regex) GetGroupIndexes
func (x *CustomInfoType_Regex) GetGroupIndexes() []int32func (*CustomInfoType_Regex) GetPattern
func (x *CustomInfoType_Regex) GetPattern() stringfunc (*CustomInfoType_Regex) ProtoMessage
func (*CustomInfoType_Regex) ProtoMessage()func (*CustomInfoType_Regex) ProtoReflect
func (x *CustomInfoType_Regex) ProtoReflect() protoreflect.Messagefunc (*CustomInfoType_Regex) Reset
func (x *CustomInfoType_Regex) Reset()func (*CustomInfoType_Regex) String
func (x *CustomInfoType_Regex) String() stringCustomInfoType_Regex_
type CustomInfoType_Regex_ struct {
// Regular expression based CustomInfoType.
Regex *CustomInfoType_Regex `protobuf:"bytes,3,opt,name=regex,proto3,oneof"`
}CustomInfoType_StoredType
type CustomInfoType_StoredType struct {
// Load an existing `StoredInfoType` resource for use in
// `InspectDataSource`. Not currently supported in `InspectContent`.
StoredType *StoredType `protobuf:"bytes,5,opt,name=stored_type,json=storedType,proto3,oneof"`
}CustomInfoType_SurrogateType
type CustomInfoType_SurrogateType struct {
// contains filtered or unexported fields
}Message for detecting output from deidentification transformations
such as
CryptoReplaceFfxFpeConfig.
These types of transformations are
those that perform pseudonymization, thereby producing a "surrogate" as
output. This should be used in conjunction with a field on the
transformation such as surrogate_info_type. This CustomInfoType does
not support the use of detection_rules.
func (*CustomInfoType_SurrogateType) Descriptor
func (*CustomInfoType_SurrogateType) Descriptor() ([]byte, []int)Deprecated: Use CustomInfoType_SurrogateType.ProtoReflect.Descriptor instead.
func (*CustomInfoType_SurrogateType) ProtoMessage
func (*CustomInfoType_SurrogateType) ProtoMessage()func (*CustomInfoType_SurrogateType) ProtoReflect
func (x *CustomInfoType_SurrogateType) ProtoReflect() protoreflect.Messagefunc (*CustomInfoType_SurrogateType) Reset
func (x *CustomInfoType_SurrogateType) Reset()func (*CustomInfoType_SurrogateType) String
func (x *CustomInfoType_SurrogateType) String() stringCustomInfoType_SurrogateType_
type CustomInfoType_SurrogateType_ struct {
// Message for detecting output from deidentification transformations that
// support reversing.
SurrogateType *CustomInfoType_SurrogateType `protobuf:"bytes,4,opt,name=surrogate_type,json=surrogateType,proto3,oneof"`
}DataProfileAction
type DataProfileAction struct {
// Type of action to execute when a profile is generated.
//
// Types that are assignable to Action:
//
// *DataProfileAction_ExportData
// *DataProfileAction_PubSubNotification_
// *DataProfileAction_PublishToChronicle_
// *DataProfileAction_PublishToScc
// *DataProfileAction_TagResources_
// *DataProfileAction_PublishToDataplexCatalog_
Action isDataProfileAction_Action `protobuf_oneof:"action"`
// contains filtered or unexported fields
}A task to execute when a data profile has been generated.
func (*DataProfileAction) Descriptor
func (*DataProfileAction) Descriptor() ([]byte, []int)Deprecated: Use DataProfileAction.ProtoReflect.Descriptor instead.
func (*DataProfileAction) GetAction
func (m *DataProfileAction) GetAction() isDataProfileAction_Actionfunc (*DataProfileAction) GetExportData
func (x *DataProfileAction) GetExportData() *DataProfileAction_Exportfunc (*DataProfileAction) GetPubSubNotification
func (x *DataProfileAction) GetPubSubNotification() *DataProfileAction_PubSubNotificationfunc (*DataProfileAction) GetPublishToChronicle
func (x *DataProfileAction) GetPublishToChronicle() *DataProfileAction_PublishToChroniclefunc (*DataProfileAction) GetPublishToDataplexCatalog
func (x *DataProfileAction) GetPublishToDataplexCatalog() *DataProfileAction_PublishToDataplexCatalogfunc (*DataProfileAction) GetPublishToScc
func (x *DataProfileAction) GetPublishToScc() *DataProfileAction_PublishToSecurityCommandCenterfunc (*DataProfileAction) GetTagResources
func (x *DataProfileAction) GetTagResources() *DataProfileAction_TagResourcesfunc (*DataProfileAction) ProtoMessage
func (*DataProfileAction) ProtoMessage()func (*DataProfileAction) ProtoReflect
func (x *DataProfileAction) ProtoReflect() protoreflect.Messagefunc (*DataProfileAction) Reset
func (x *DataProfileAction) Reset()func (*DataProfileAction) String
func (x *DataProfileAction) String() stringDataProfileAction_EventType
type DataProfileAction_EventType int32Types of event that can trigger an action.
DataProfileAction_EVENT_TYPE_UNSPECIFIED, DataProfileAction_NEW_PROFILE, DataProfileAction_CHANGED_PROFILE, DataProfileAction_SCORE_INCREASED, DataProfileAction_ERROR_CHANGED
const (
// Unused.
DataProfileAction_EVENT_TYPE_UNSPECIFIED DataProfileAction_EventType = 0
// New profile (not a re-profile).
DataProfileAction_NEW_PROFILE DataProfileAction_EventType = 1
// One of the following profile metrics changed: Data risk score,
// Sensitivity score, Resource visibility, Encryption type, Predicted
// infoTypes, Other infoTypes
DataProfileAction_CHANGED_PROFILE DataProfileAction_EventType = 2
// Table data risk score or sensitivity score increased.
DataProfileAction_SCORE_INCREASED DataProfileAction_EventType = 3
// A user (non-internal) error occurred.
DataProfileAction_ERROR_CHANGED DataProfileAction_EventType = 4
)func (DataProfileAction_EventType) Descriptor
func (DataProfileAction_EventType) Descriptor() protoreflect.EnumDescriptorfunc (DataProfileAction_EventType) Enum
func (x DataProfileAction_EventType) Enum() *DataProfileAction_EventTypefunc (DataProfileAction_EventType) EnumDescriptor
func (DataProfileAction_EventType) EnumDescriptor() ([]byte, []int)Deprecated: Use DataProfileAction_EventType.Descriptor instead.
func (DataProfileAction_EventType) Number
func (x DataProfileAction_EventType) Number() protoreflect.EnumNumberfunc (DataProfileAction_EventType) String
func (x DataProfileAction_EventType) String() stringfunc (DataProfileAction_EventType) Type
func (DataProfileAction_EventType) Type() protoreflect.EnumTypeDataProfileAction_Export
type DataProfileAction_Export struct {
// Store all profiles to BigQuery.
//
// - The system will create a new dataset and table for you if none are
// are provided. The dataset will be named
// `sensitive_data_protection_discovery` and table will be named
// `discovery_profiles`. This table will be placed in the same project as
// the container project running the scan. After the first profile is
// generated and the dataset and table are created, the discovery scan
// configuration will be updated with the dataset and table names.
// - See [Analyze data profiles stored in
//
// BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles).
// * See [Sample queries for your BigQuery
// table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries).
// - Data is inserted using [streaming
// insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
// and so data may be in the buffer for a period of time after the
// profile has finished.
// - The Pub/Sub notification is sent before the streaming buffer is
// guaranteed to be written, so data may not be instantly
// visible to queries by the time your topic receives the Pub/Sub
// notification.
// - The best practice is to use the same table for an entire organization
// so that you can take advantage of the [provided Looker
// reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report).
// If you use VPC Service Controls to define security perimeters, then
// you must use a separate table for each boundary.
ProfileTable *BigQueryTable `protobuf:"bytes,1,opt,name=profile_table,json=profileTable,proto3" json:"profile_table,omitempty"`
// Store sample [data profile
// findings][google.privacy.dlp.v2.DataProfileFinding] in an existing table
// or a new table in an existing dataset. Each regeneration will result in
// new rows in BigQuery. Data is inserted using [streaming
// insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert)
// and so data may be in the buffer for a period of time after the profile
// has finished.
SampleFindingsTable *BigQueryTable `protobuf:"bytes,2,opt,name=sample_findings_table,json=sampleFindingsTable,proto3" json:"sample_findings_table,omitempty"`
// contains filtered or unexported fields
}If set, the detailed data profiles will be persisted to the location of your choice whenever updated.
func (*DataProfileAction_Export) Descriptor
func (*DataProfileAction_Export) Descriptor() ([]byte, []int)Deprecated: Use DataProfileAction_Export.ProtoReflect.Descriptor instead.
func (*DataProfileAction_Export) GetProfileTable
func (x *DataProfileAction_Export) GetProfileTable() *BigQueryTablefunc (*DataProfileAction_Export) GetSampleFindingsTable
func (x *DataProfileAction_Export) GetSampleFindingsTable() *BigQueryTablefunc (*DataProfileAction_Export) ProtoMessage
func (*DataProfileAction_Export) ProtoMessage()func (*DataProfileAction_Export) ProtoReflect
func (x *DataProfileAction_Export) ProtoReflect() protoreflect.Messagefunc (*DataProfileAction_Export) Reset
func (x *DataProfileAction_Export) Reset()func (*DataProfileAction_Export) String
func (x *DataProfileAction_Export) String() stringDataProfileAction_ExportData
type DataProfileAction_ExportData struct {
// Export data profiles into a provided location.
ExportData *DataProfileAction_Export `protobuf:"bytes,1,opt,name=export_data,json=exportData,proto3,oneof"`
}DataProfileAction_PubSubNotification
type DataProfileAction_PubSubNotification struct {
// Cloud Pub/Sub topic to send notifications to.
// Format is projects/{project}/topics/{topic}.
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
// The type of event that triggers a Pub/Sub. At most one
// `PubSubNotification` per EventType is permitted.
Event DataProfileAction_EventType `protobuf:"varint,2,opt,name=event,proto3,enum=google.privacy.dlp.v2.DataProfileAction_EventType" json:"event,omitempty"`
// Conditions (e.g., data risk or sensitivity level) for triggering a
// Pub/Sub.
PubsubCondition *DataProfilePubSubCondition `protobuf:"bytes,3,opt,name=pubsub_condition,json=pubsubCondition,proto3" json:"pubsub_condition,omitempty"`
// How much data to include in the Pub/Sub message. If the user wishes to
// limit the size of the message, they can use resource_name and fetch the
// profile fields they wish to. Per table profile (not per column).
DetailOfMessage DataProfileAction_PubSubNotification_DetailLevel `protobuf:"varint,4,opt,name=detail_of_message,json=detailOfMessage,proto3,enum=google.privacy.dlp.v2.DataProfileAction_PubSubNotification_DetailLevel" json:"detail_of_message,omitempty"`
// contains filtered or unexported fields
}Send a Pub/Sub message into the given Pub/Sub topic to connect other
systems to data profile generation. The message payload data will
be the byte serialization of DataProfilePubSubMessage.
func (*DataProfileAction_PubSubNotification) Descriptor
func (*DataProfileAction_PubSubNotification) Descriptor() ([]byte, []int)Deprecated: Use DataProfileAction_PubSubNotification.ProtoReflect.Descriptor instead.
func (*DataProfileAction_PubSubNotification) GetDetailOfMessage
func (x *DataProfileAction_PubSubNotification) GetDetailOfMessage() DataProfileAction_PubSubNotification_DetailLevelfunc (*DataProfileAction_PubSubNotification) GetEvent
func (x *DataProfileAction_PubSubNotification) GetEvent() DataProfileAction_EventTypefunc (*DataProfileAction_PubSubNotification) GetPubsubCondition
func (x *DataProfileAction_PubSubNotification) GetPubsubCondition() *DataProfilePubSubConditionfunc (*DataProfileAction_PubSubNotification) GetTopic
func (x *DataProfileAction_PubSubNotification) GetTopic() stringfunc (*DataProfileAction_PubSubNotification) ProtoMessage
func (*DataProfileAction_PubSubNotification) ProtoMessage()func (*DataProfileAction_PubSubNotification) ProtoReflect
func (x *DataProfileAction_PubSubNotification) ProtoReflect() protoreflect.Messagefunc (*DataProfileAction_PubSubNotification) Reset
func (x *DataProfileAction_PubSubNotification) Reset()func (*DataProfileAction_PubSubNotification) String
func (x *DataProfileAction_PubSubNotification) String() stringDataProfileAction_PubSubNotification_
type DataProfileAction_PubSubNotification_ struct {
// Publish a message into the Pub/Sub topic.
PubSubNotification *DataProfileAction_PubSubNotification `protobuf:"bytes,2,opt,name=pub_sub_notification,json=pubSubNotification,proto3,oneof"`
}DataProfileAction_PubSubNotification_DetailLevel
type DataProfileAction_PubSubNotification_DetailLevel int32The levels of detail that can be included in the Pub/Sub message.
DataProfileAction_PubSubNotification_DETAIL_LEVEL_UNSPECIFIED, DataProfileAction_PubSubNotification_TABLE_PROFILE, DataProfileAction_PubSubNotification_RESOURCE_NAME, DataProfileAction_PubSubNotification_FILE_STORE_PROFILE
const (
// Unused.
DataProfileAction_PubSubNotification_DETAIL_LEVEL_UNSPECIFIED DataProfileAction_PubSubNotification_DetailLevel = 0
// The full table data profile.
DataProfileAction_PubSubNotification_TABLE_PROFILE DataProfileAction_PubSubNotification_DetailLevel = 1
// The name of the profiled resource.
DataProfileAction_PubSubNotification_RESOURCE_NAME DataProfileAction_PubSubNotification_DetailLevel = 2
// The full file store data profile.
DataProfileAction_PubSubNotification_FILE_STORE_PROFILE DataProfileAction_PubSubNotification_DetailLevel = 3
)func (DataProfileAction_PubSubNotification_DetailLevel) Descriptor
func (DataProfileAction_PubSubNotification_DetailLevel) Descriptor() protoreflect.EnumDescriptorfunc (DataProfileAction_PubSubNotification_DetailLevel) Enum
func (x DataProfileAction_PubSubNotification_DetailLevel) Enum() *DataProfileAction_PubSubNotification_DetailLevelfunc (DataProfileAction_PubSubNotification_DetailLevel) EnumDescriptor
func (DataProfileAction_PubSubNotification_DetailLevel) EnumDescriptor() ([]byte, []int)Deprecated: Use DataProfileAction_PubSubNotification_DetailLevel.Descriptor instead.
func (DataProfileAction_PubSubNotification_DetailLevel) Number
func (x DataProfileAction_PubSubNotification_DetailLevel) Number() protoreflect.EnumNumberfunc (DataProfileAction_PubSubNotification_DetailLevel) String
func (x DataProfileAction_PubSubNotification_DetailLevel) String() stringfunc (DataProfileAction_PubSubNotification_DetailLevel) Type
DataProfileAction_PublishToChronicle
type DataProfileAction_PublishToChronicle struct {
// contains filtered or unexported fields
}Message expressing intention to publish to Google Security Operations.
func (*DataProfileAction_PublishToChronicle) Descriptor
func (*DataProfileAction_PublishToChronicle) Descriptor() ([]byte, []int)Deprecated: Use DataProfileAction_PublishToChronicle.ProtoReflect.Descriptor instead.
func (*DataProfileAction_PublishToChronicle) ProtoMessage
func (*DataProfileAction_PublishToChronicle) ProtoMessage()func (*DataProfileAction_PublishToChronicle) ProtoReflect
func (x *DataProfileAction_PublishToChronicle) ProtoReflect() protoreflect.Messagefunc (*DataProfileAction_PublishToChronicle) Reset
func (x *DataProfileAction_PublishToChronicle) Reset()func (*DataProfileAction_PublishToChronicle) String
func (x *DataProfileAction_PublishToChronicle) String() stringDataProfileAction_PublishToChronicle_
type DataProfileAction_PublishToChronicle_ struct {
// Publishes generated data profiles to Google Security Operations.
// For more information, see [Use Sensitive Data Protection data in
// context-aware
// analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).
PublishToChronicle *DataProfileAction_PublishToChronicle `protobuf:"bytes,3,opt,name=publish_to_chronicle,json=publishToChronicle,proto3,oneof"`
}DataProfileAction_PublishToDataplexCatalog
type DataProfileAction_PublishToDataplexCatalog struct {
// Whether creating a Dataplex Universal Catalog aspect for a profiled
// resource should lower the risk of the profile for that resource. This
// also lowers the data risk of resources at the lower levels of the
// resource hierarchy. For example, reducing the data risk of a table data
// profile also reduces the data risk of the constituent column data
// profiles.
LowerDataRiskToLow bool `protobuf:"varint,1,opt,name=lower_data_risk_to_low,json=lowerDataRiskToLow,proto3" json:"lower_data_risk_to_low,omitempty"`
// contains filtered or unexported fields
}Create Dataplex Universal Catalog aspects for profiled resources with the aspect type Sensitive Data Protection Profile. To learn more about aspects, see https://cloud.google.com/sensitive-data-protection/docs/add-aspects.
func (*DataProfileAction_PublishToDataplexCatalog) Descriptor
func (*DataProfileAction_PublishToDataplexCatalog) Descriptor() ([]byte, []int)Deprecated: Use DataProfileAction_PublishToDataplexCatalog.ProtoReflect.Descriptor instead.
func (*DataProfileAction_PublishToDataplexCatalog) GetLowerDataRiskToLow
func (x *DataProfileAction_PublishToDataplexCatalog) GetLowerDataRiskToLow() boolfunc (*DataProfileAction_PublishToDataplexCatalog) ProtoMessage
func (*DataProfileAction_PublishToDataplexCatalog) ProtoMessage()func (*DataProfileAction_PublishToDataplexCatalog) ProtoReflect
func (x *DataProfileAction_PublishToDataplexCatalog) ProtoReflect() protoreflect.Messagefunc (*DataProfileAction_PublishToDataplexCatalog) Reset
func (x *DataProfileAction_PublishToDataplexCatalog) Reset()func (*DataProfileAction_PublishToDataplexCatalog) String
func (x *DataProfileAction_PublishToDataplexCatalog) String() stringDataProfileAction_PublishToDataplexCatalog_
type DataProfileAction_PublishToDataplexCatalog_ struct {
// Publishes a portion of each profile to Dataplex Universal Catalog with
// the aspect type Sensitive Data Protection Profile.
PublishToDataplexCatalog *DataProfileAction_PublishToDataplexCatalog `protobuf:"bytes,9,opt,name=publish_to_dataplex_catalog,json=publishToDataplexCatalog,proto3,oneof"`
}DataProfileAction_PublishToScc
type DataProfileAction_PublishToScc struct {
// Publishes findings to Security Command Center for each data profile.
PublishToScc *DataProfileAction_PublishToSecurityCommandCenter `protobuf:"bytes,4,opt,name=publish_to_scc,json=publishToScc,proto3,oneof"`
}DataProfileAction_PublishToSecurityCommandCenter
type DataProfileAction_PublishToSecurityCommandCenter struct {
// contains filtered or unexported fields
}If set, a summary finding will be created or updated in Security Command Center for each profile.
func (*DataProfileAction_PublishToSecurityCommandCenter) Descriptor
func (*DataProfileAction_PublishToSecurityCommandCenter) Descriptor() ([]byte, []int)Deprecated: Use DataProfileAction_PublishToSecurityCommandCenter.ProtoReflect.Descriptor instead.
func (*DataProfileAction_PublishToSecurityCommandCenter) ProtoMessage
func (*DataProfileAction_PublishToSecurityCommandCenter) ProtoMessage()func (*DataProfileAction_PublishToSecurityCommandCenter) ProtoReflect
func (x *DataProfileAction_PublishToSecurityCommandCenter) ProtoReflect() protoreflect.Messagefunc (*DataProfileAction_PublishToSecurityCommandCenter) Reset
func (x *DataProfileAction_PublishToSecurityCommandCenter) Reset()func (*DataProfileAction_PublishToSecurityCommandCenter) String
func (x *DataProfileAction_PublishToSecurityCommandCenter) String() stringDataProfileAction_TagResources
type DataProfileAction_TagResources struct {
// The tags to associate with different conditions.
TagConditions []*DataProfileAction_TagResources_TagCondition `protobuf:"bytes,1,rep,name=tag_conditions,json=tagConditions,proto3" json:"tag_conditions,omitempty"`
// The profile generations for which the tag should be attached to
// resources. If you attach a tag to only new profiles, then if the
// sensitivity score of a profile subsequently changes, its tag doesn't
// change. By default, this field includes only new profiles. To include
// both new and updated profiles for tagging, this field should explicitly
// include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`.
ProfileGenerationsToTag []ProfileGeneration `protobuf:"varint,2,rep,packed,name=profile_generations_to_tag,json=profileGenerationsToTag,proto3,enum=google.privacy.dlp.v2.ProfileGeneration" json:"profile_generations_to_tag,omitempty"`
// Whether applying a tag to a resource should lower the risk of the profile
// for that resource. For example, in conjunction with an [IAM deny
// policy](https://cloud.google.com/iam/docs/deny-overview), you can deny
// all principals a permission if a tag value is present, mitigating the
// risk of the resource. This also lowers the data risk of resources at the
// lower levels of the resource hierarchy. For example, reducing the data
// risk of a table data profile also reduces the data risk of the
// constituent column data profiles.
LowerDataRiskToLow bool `protobuf:"varint,3,opt,name=lower_data_risk_to_low,json=lowerDataRiskToLow,proto3" json:"lower_data_risk_to_low,omitempty"`
// contains filtered or unexported fields
}If set, attaches the tags provided to profiled resources. Tags support access control. You can conditionally grant or deny access to a resource based on whether the resource has a specific tag.
func (*DataProfileAction_TagResources) Descriptor
func (*DataProfileAction_TagResources) Descriptor() ([]byte, []int)Deprecated: Use DataProfileAction_TagResources.ProtoReflect.Descriptor instead.
func (*DataProfileAction_TagResources) GetLowerDataRiskToLow
func (x *DataProfileAction_TagResources) GetLowerDataRiskToLow() boolfunc (*DataProfileAction_TagResources) GetProfileGenerationsToTag
func (x *DataProfileAction_TagResources) GetProfileGenerationsToTag() []ProfileGenerationfunc (*DataProfileAction_TagResources) GetTagConditions
func (x *DataProfileAction_TagResources) GetTagConditions() []*DataProfileAction_TagResources_TagConditionfunc (*DataProfileAction_TagResources) ProtoMessage
func (*DataProfileAction_TagResources) ProtoMessage()func (*DataProfileAction_TagResources) ProtoReflect
func (x *DataProfileAction_TagResources) ProtoReflect() protoreflect.Messagefunc (*DataProfileAction_TagResources) Reset
func (x *DataProfileAction_TagResources) Reset()func (*DataProfileAction_TagResources) String
func (x *DataProfileAction_TagResources) String() stringDataProfileAction_TagResources_
type DataProfileAction_TagResources_ struct {
// Tags the profiled resources with the specified tag values.
TagResources *DataProfileAction_TagResources `protobuf:"bytes,8,opt,name=tag_resources,json=tagResources,proto3,oneof"`
}DataProfileAction_TagResources_TagCondition
type DataProfileAction_TagResources_TagCondition struct {
// The tag value to attach to resources.
Tag *DataProfileAction_TagResources_TagValue `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
// The type of condition on which attaching the tag will be predicated.
//
// Types that are assignable to Type:
//
// *DataProfileAction_TagResources_TagCondition_SensitivityScore
Type isDataProfileAction_TagResources_TagCondition_Type `protobuf_oneof:"type"`
// contains filtered or unexported fields
}The tag to attach to profiles matching the condition. At most one
TagCondition can be specified per sensitivity level.
func (*DataProfileAction_TagResources_TagCondition) Descriptor
func (*DataProfileAction_TagResources_TagCondition) Descriptor() ([]byte, []int)Deprecated: Use DataProfileAction_TagResources_TagCondition.ProtoReflect.Descriptor instead.
func (*DataProfileAction_TagResources_TagCondition) GetSensitivityScore
func (x *DataProfileAction_TagResources_TagCondition) GetSensitivityScore() *SensitivityScorefunc (*DataProfileAction_TagResources_TagCondition) GetTag
func (x *DataProfileAction_TagResources_TagCondition) GetTag() *DataProfileAction_TagResources_TagValuefunc (*DataProfileAction_TagResources_TagCondition) GetType
func (m *DataProfileAction_TagResources_TagCondition) GetType() isDataProfileAction_TagResources_TagCondition_Typefunc (*DataProfileAction_TagResources_TagCondition) ProtoMessage
func (*DataProfileAction_TagResources_TagCondition) ProtoMessage()func (*DataProfileAction_TagResources_TagCondition) ProtoReflect
func (x *DataProfileAction_TagResources_TagCondition) ProtoReflect() protoreflect.Messagefunc (*DataProfileAction_TagResources_TagCondition) Reset
func (x *DataProfileAction_TagResources_TagCondition) Reset()func (*DataProfileAction_TagResources_TagCondition) String
func (x *DataProfileAction_TagResources_TagCondition) String() stringDataProfileAction_TagResources_TagCondition_SensitivityScore
type DataProfileAction_TagResources_TagCondition_SensitivityScore struct {
// Conditions attaching the tag to a resource on its profile having this
// sensitivity score.
SensitivityScore *SensitivityScore `protobuf:"bytes,2,opt,name=sensitivity_score,json=sensitivityScore,proto3,oneof"`
}DataProfileAction_TagResources_TagValue
type DataProfileAction_TagResources_TagValue struct {
// The format of the tag value.
//
// Types that are assignable to Format:
//
// *DataProfileAction_TagResources_TagValue_NamespacedValue
Format isDataProfileAction_TagResources_TagValue_Format `protobuf_oneof:"format"`
// contains filtered or unexported fields
}A value of a tag.
func (*DataProfileAction_TagResources_TagValue) Descriptor
func (*DataProfileAction_TagResources_TagValue) Descriptor() ([]byte, []int)Deprecated: Use DataProfileAction_TagResources_TagValue.ProtoReflect.Descriptor instead.
func (*DataProfileAction_TagResources_TagValue) GetFormat
func (m *DataProfileAction_TagResources_TagValue) GetFormat() isDataProfileAction_TagResources_TagValue_Formatfunc (*DataProfileAction_TagResources_TagValue) GetNamespacedValue
func (x *DataProfileAction_TagResources_TagValue) GetNamespacedValue() stringfunc (*DataProfileAction_TagResources_TagValue) ProtoMessage
func (*DataProfileAction_TagResources_TagValue) ProtoMessage()func (*DataProfileAction_TagResources_TagValue) ProtoReflect
func (x *DataProfileAction_TagResources_TagValue) ProtoReflect() protoreflect.Messagefunc (*DataProfileAction_TagResources_TagValue) Reset
func (x *DataProfileAction_TagResources_TagValue) Reset()func (*DataProfileAction_TagResources_TagValue) String
func (x *DataProfileAction_TagResources_TagValue) String() stringDataProfileAction_TagResources_TagValue_NamespacedValue
type DataProfileAction_TagResources_TagValue_NamespacedValue struct {
// The namespaced name for the tag value to attach to resources. Must be
// in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
// example, "123456/environment/prod" for an organization parent, or
// "my-project/environment/prod" for a project parent.
NamespacedValue string `protobuf:"bytes,1,opt,name=namespaced_value,json=namespacedValue,proto3,oneof"`
}DataProfileBigQueryRowSchema
type DataProfileBigQueryRowSchema struct {
// Data profile type.
//
// Types that are assignable to DataProfile:
//
// *DataProfileBigQueryRowSchema_TableProfile
// *DataProfileBigQueryRowSchema_ColumnProfile
// *DataProfileBigQueryRowSchema_FileStoreProfile
DataProfile isDataProfileBigQueryRowSchema_DataProfile `protobuf_oneof:"data_profile"`
// contains filtered or unexported fields
}The schema of data to be saved to the BigQuery table when the
DataProfileAction is enabled.
func (*DataProfileBigQueryRowSchema) Descriptor
func (*DataProfileBigQueryRowSchema) Descriptor() ([]byte, []int)Deprecated: Use DataProfileBigQueryRowSchema.ProtoReflect.Descriptor instead.
func (*DataProfileBigQueryRowSchema) GetColumnProfile
func (x *DataProfileBigQueryRowSchema) GetColumnProfile() *ColumnDataProfilefunc (*DataProfileBigQueryRowSchema) GetDataProfile
func (m *DataProfileBigQueryRowSchema) GetDataProfile() isDataProfileBigQueryRowSchema_DataProfilefunc (*DataProfileBigQueryRowSchema) GetFileStoreProfile
func (x *DataProfileBigQueryRowSchema) GetFileStoreProfile() *FileStoreDataProfilefunc (*DataProfileBigQueryRowSchema) GetTableProfile
func (x *DataProfileBigQueryRowSchema) GetTableProfile() *TableDataProfilefunc (*DataProfileBigQueryRowSchema) ProtoMessage
func (*DataProfileBigQueryRowSchema) ProtoMessage()func (*DataProfileBigQueryRowSchema) ProtoReflect
func (x *DataProfileBigQueryRowSchema) ProtoReflect() protoreflect.Messagefunc (*DataProfileBigQueryRowSchema) Reset
func (x *DataProfileBigQueryRowSchema) Reset()func (*DataProfileBigQueryRowSchema) String
func (x *DataProfileBigQueryRowSchema) String() stringDataProfileBigQueryRowSchema_ColumnProfile
type DataProfileBigQueryRowSchema_ColumnProfile struct {
// Column data profile column
ColumnProfile *ColumnDataProfile `protobuf:"bytes,2,opt,name=column_profile,json=columnProfile,proto3,oneof"`
}DataProfileBigQueryRowSchema_FileStoreProfile
type DataProfileBigQueryRowSchema_FileStoreProfile struct {
// File store data profile column.
FileStoreProfile *FileStoreDataProfile `protobuf:"bytes,3,opt,name=file_store_profile,json=fileStoreProfile,proto3,oneof"`
}DataProfileBigQueryRowSchema_TableProfile
type DataProfileBigQueryRowSchema_TableProfile struct {
// Table data profile column
TableProfile *TableDataProfile `protobuf:"bytes,1,opt,name=table_profile,json=tableProfile,proto3,oneof"`
}DataProfileConfigSnapshot
type DataProfileConfigSnapshot struct {
// A copy of the inspection config used to generate this profile. This
// is a copy of the inspect_template specified in `DataProfileJobConfig`.
InspectConfig *InspectConfig `protobuf:"bytes,2,opt,name=inspect_config,json=inspectConfig,proto3" json:"inspect_config,omitempty"`
// A copy of the configuration used to generate this profile. This is
// deprecated, and the DiscoveryConfig field is preferred moving forward.
// DataProfileJobConfig will still be written here for Discovery in BigQuery
// for backwards compatibility, but will not be updated with new fields, while
// DiscoveryConfig will.
//
// Deprecated: Marked as deprecated in google/privacy/dlp/v2/dlp.proto.
DataProfileJob *DataProfileJobConfig `protobuf:"bytes,3,opt,name=data_profile_job,json=dataProfileJob,proto3" json:"data_profile_job,omitempty"`
// A copy of the configuration used to generate this profile.
DiscoveryConfig *DiscoveryConfig `protobuf:"bytes,4,opt,name=discovery_config,json=discoveryConfig,proto3" json:"discovery_config,omitempty"`
// Name of the inspection template used to generate this profile
InspectTemplateName string `protobuf:"bytes,5,opt,name=inspect_template_name,json=inspectTemplateName,proto3" json:"inspect_template_name,omitempty"`
// Timestamp when the template was modified
InspectTemplateModifiedTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=inspect_template_modified_time,json=inspectTemplateModifiedTime,proto3" json:"inspect_template_modified_time,omitempty"`
// contains filtered or unexported fields
}Snapshot of the configurations used to generate the profile.
func (*DataProfileConfigSnapshot) Descriptor
func (*DataProfileConfigSnapshot) Descriptor() ([]byte, []int)Deprecated: Use DataProfileConfigSnapshot.ProtoReflect.Descriptor instead.
func (*DataProfileConfigSnapshot) GetDataProfileJob
func (x *DataProfileConfigSnapshot) GetDataProfileJob() *DataProfileJobConfigDeprecated: Marked as deprecated in google/privacy/dlp/v2/dlp.proto.
func (*DataProfileConfigSnapshot) GetDiscoveryConfig
func (x *DataProfileConfigSnapshot) GetDiscoveryConfig() *DiscoveryConfigfunc (*DataProfileConfigSnapshot) GetInspectConfig
func (x *DataProfileConfigSnapshot) GetInspectConfig() *InspectConfigfunc (*DataProfileConfigSnapshot) GetInspectTemplateModifiedTime
func (x *DataProfileConfigSnapshot) GetInspectTemplateModifiedTime() *timestamppb.Timestampfunc (*DataProfileConfigSnapshot) GetInspectTemplateName
func (x *DataProfileConfigSnapshot) GetInspectTemplateName() stringfunc (*DataProfileConfigSnapshot) ProtoMessage
func (*DataProfileConfigSnapshot) ProtoMessage()func (*DataProfileConfigSnapshot) ProtoReflect
func (x *DataProfileConfigSnapshot) ProtoReflect() protoreflect.Messagefunc (*DataProfileConfigSnapshot) Reset
func (x *DataProfileConfigSnapshot) Reset()func (*DataProfileConfigSnapshot) String
func (x *DataProfileConfigSnapshot) String() stringDataProfileFinding
type DataProfileFinding struct {
// The content that was found. Even if the content is not textual, it
// may be converted to a textual representation here. If the finding exceeds
// 4096 bytes in length, the quote may be omitted.
Quote string `protobuf:"bytes,1,opt,name=quote,proto3" json:"quote,omitempty"`
// The [type of
// content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference)
// that might have been found.
Infotype *InfoType `protobuf:"bytes,2,opt,name=infotype,proto3" json:"infotype,omitempty"`
// Contains data parsed from quotes. Currently supported infoTypes: DATE,
// DATE_OF_BIRTH, and TIME.
QuoteInfo *QuoteInfo `protobuf:"bytes,3,opt,name=quote_info,json=quoteInfo,proto3" json:"quote_info,omitempty"`
// Resource name of the data profile associated with the finding.
DataProfileResourceName string `protobuf:"bytes,4,opt,name=data_profile_resource_name,json=dataProfileResourceName,proto3" json:"data_profile_resource_name,omitempty"`
// A unique identifier for the finding.
FindingId string `protobuf:"bytes,5,opt,name=finding_id,json=findingId,proto3" json:"finding_id,omitempty"`
// Timestamp when the finding was detected.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// Where the content was found.
Location *DataProfileFindingLocation `protobuf:"bytes,7,opt,name=location,proto3" json:"location,omitempty"`
// How broadly a resource has been shared.
ResourceVisibility ResourceVisibility `protobuf:"varint,8,opt,name=resource_visibility,json=resourceVisibility,proto3,enum=google.privacy.dlp.v2.ResourceVisibility" json:"resource_visibility,omitempty"`
// The [full resource
// name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
// of the resource profiled for this finding.
FullResourceName string `protobuf:"bytes,9,opt,name=full_resource_name,json=fullResourceName,proto3" json:"full_resource_name,omitempty"`
// The type of the resource that was profiled.
DataSourceType *DataSourceType `protobuf:"bytes,10,opt,name=data_source_type,json=dataSourceType,proto3" json:"data_source_type,omitempty"`
// contains filtered or unexported fields
}Details about a piece of potentially sensitive information that was detected when the data resource was profiled.
func (*DataProfileFinding) Descriptor
func (*DataProfileFinding) Descriptor() ([]byte, []int)Deprecated: Use DataProfileFinding.ProtoReflect.Descriptor instead.
func (*DataProfileFinding) GetDataProfileResourceName
func (x *DataProfileFinding) GetDataProfileResourceName() stringfunc (*DataProfileFinding) GetDataSourceType
func (x *DataProfileFinding) GetDataSourceType() *DataSourceTypefunc (*DataProfileFinding) GetFindingId
func (x *DataProfileFinding) GetFindingId() stringfunc (*DataProfileFinding) GetFullResourceName
func (x *DataProfileFinding) GetFullResourceName() stringfunc (*DataProfileFinding) GetInfotype
func (x *DataProfileFinding) GetInfotype() *InfoTypefunc (*DataProfileFinding) GetLocation
func (x *DataProfileFinding) GetLocation() *DataProfileFindingLocationfunc (*DataProfileFinding) GetQuote
func (x *DataProfileFinding) GetQuote() stringfunc (*DataProfileFinding) GetQuoteInfo
func (x *DataProfileFinding) GetQuoteInfo() *QuoteInfofunc (*DataProfileFinding) GetResourceVisibility
func (x *DataProfileFinding) GetResourceVisibility() ResourceVisibilityfunc (*DataProfileFinding) GetTimestamp
func (x *DataProfileFinding) GetTimestamp() *timestamppb.Timestampfunc (*DataProfileFinding) ProtoMessage
func (*DataProfileFinding) ProtoMessage()func (*DataProfileFinding) ProtoReflect
func (x *DataProfileFinding) ProtoReflect() protoreflect.Messagefunc (*DataProfileFinding) Reset
func (x *DataProfileFinding) Reset()func (*DataProfileFinding) String
func (x *DataProfileFinding) String() stringDataProfileFindingLocation
type DataProfileFindingLocation struct {
// Name of the container where the finding is located.
// The top-level name is the source file name or table name. Names of some
// common storage containers are formatted as follows:
//
// * BigQuery tables: `{project_id}:{dataset_id}.{table_id}`
// * Cloud Storage files: `gs://{bucket}/{path}`
ContainerName string `protobuf:"bytes,1,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"`
// Additional location details that may be provided for some types of
// profiles. At this time, only findings for table data profiles include such
// details.
//
// Types that are assignable to LocationExtraDetails:
//
// *DataProfileFindingLocation_DataProfileFindingRecordLocation
LocationExtraDetails isDataProfileFindingLocation_LocationExtraDetails `protobuf_oneof:"location_extra_details"`
// contains filtered or unexported fields
}Location of a data profile finding within a resource.
func (*DataProfileFindingLocation) Descriptor
func (*DataProfileFindingLocation) Descriptor() ([]byte, []int)Deprecated: Use DataProfileFindingLocation.ProtoReflect.Descriptor instead.
func (*DataProfileFindingLocation) GetContainerName
func (x *DataProfileFindingLocation) GetContainerName() stringfunc (*DataProfileFindingLocation) GetDataProfileFindingRecordLocation
func (x *DataProfileFindingLocation) GetDataProfileFindingRecordLocation() *DataProfileFindingRecordLocationfunc (*DataProfileFindingLocation) GetLocationExtraDetails
func (m *DataProfileFindingLocation) GetLocationExtraDetails() isDataProfileFindingLocation_LocationExtraDetailsfunc (*DataProfileFindingLocation) ProtoMessage
func (*DataProfileFindingLocation) ProtoMessage()func (*DataProfileFindingLocation) ProtoReflect
func (x *DataProfileFindingLocation) ProtoReflect() protoreflect.Messagefunc (*DataProfileFindingLocation) Reset
func (x *DataProfileFindingLocation) Reset()func (*DataProfileFindingLocation) String
func (x *DataProfileFindingLocation) String() stringDataProfileFindingLocation_DataProfileFindingRecordLocation
type DataProfileFindingLocation_DataProfileFindingRecordLocation struct {
// Location of a finding within a resource that produces a table data
// profile.
DataProfileFindingRecordLocation *DataProfileFindingRecordLocation `protobuf:"bytes,2,opt,name=data_profile_finding_record_location,json=dataProfileFindingRecordLocation,proto3,oneof"`
}DataProfileFindingRecordLocation
type DataProfileFindingRecordLocation struct {
// Field ID of the column containing the finding.
Field *FieldId `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
// contains filtered or unexported fields
}Location of a finding within a resource that produces a table data profile.
func (*DataProfileFindingRecordLocation) Descriptor
func (*DataProfileFindingRecordLocation) Descriptor() ([]byte, []int)Deprecated: Use DataProfileFindingRecordLocation.ProtoReflect.Descriptor instead.
func (*DataProfileFindingRecordLocation) GetField
func (x *DataProfileFindingRecordLocation) GetField() *FieldIdfunc (*DataProfileFindingRecordLocation) ProtoMessage
func (*DataProfileFindingRecordLocation) ProtoMessage()func (*DataProfileFindingRecordLocation) ProtoReflect
func (x *DataProfileFindingRecordLocation) ProtoReflect() protoreflect.Messagefunc (*DataProfileFindingRecordLocation) Reset
func (x *DataProfileFindingRecordLocation) Reset()func (*DataProfileFindingRecordLocation) String
func (x *DataProfileFindingRecordLocation) String() stringDataProfileJobConfig
type DataProfileJobConfig struct {
// The data to scan.
Location *DataProfileLocation `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
// The project that will run the scan. The DLP service
// account that exists within this project must have access to all resources
// that are profiled, and the DLP API must be enabled.
ProjectId string `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Must be set only when scanning other clouds.
OtherCloudStartingLocation *OtherCloudDiscoveryStartingLocation `protobuf:"bytes,8,opt,name=other_cloud_starting_location,json=otherCloudStartingLocation,proto3" json:"other_cloud_starting_location,omitempty"`
// Detection logic for profile generation.
//
// Not all template features are used by profiles. FindingLimits,
// include_quote and exclude_info_types have no impact on
// data profiling.
//
// Multiple templates may be provided if there is data in multiple regions.
// At most one template must be specified per-region (including "global").
// Each region is scanned using the applicable template. If no region-specific
// template is specified, but a "global" template is specified, it will be
// copied to that region and used instead. If no global or region-specific
// template is provided for a region with data, that region's data will not be
// scanned.
//
// For more information, see
// https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
InspectTemplates []string `protobuf:"bytes,7,rep,name=inspect_templates,json=inspectTemplates,proto3" json:"inspect_templates,omitempty"`
// Actions to execute at the completion of the job.
DataProfileActions []*DataProfileAction `protobuf:"bytes,6,rep,name=data_profile_actions,json=dataProfileActions,proto3" json:"data_profile_actions,omitempty"`
// contains filtered or unexported fields
}Configuration for setting up a job to scan resources for profile generation. Only one data profile configuration may exist per organization, folder, or project.
The generated data profiles are retained according to the data retention policy.
func (*DataProfileJobConfig) Descriptor
func (*DataProfileJobConfig) Descriptor() ([]byte, []int)Deprecated: Use DataProfileJobConfig.ProtoReflect.Descriptor instead.
func (*DataProfileJobConfig) GetDataProfileActions
func (x *DataProfileJobConfig) GetDataProfileActions() []*DataProfileActionfunc (*DataProfileJobConfig) GetInspectTemplates
func (x *DataProfileJobConfig) GetInspectTemplates() []stringfunc (*DataProfileJobConfig) GetLocation
func (x *DataProfileJobConfig) GetLocation() *DataProfileLocationfunc (*DataProfileJobConfig) GetOtherCloudStartingLocation
func (x *DataProfileJobConfig) GetOtherCloudStartingLocation() *OtherCloudDiscoveryStartingLocationfunc (*DataProfileJobConfig) GetProjectId
func (x *DataProfileJobConfig) GetProjectId() stringfunc (*DataProfileJobConfig) ProtoMessage
func (*DataProfileJobConfig) ProtoMessage()func (*DataProfileJobConfig) ProtoReflect
func (x *DataProfileJobConfig) ProtoReflect() protoreflect.Messagefunc (*DataProfileJobConfig) Reset
func (x *DataProfileJobConfig) Reset()func (*DataProfileJobConfig) String
func (x *DataProfileJobConfig) String() stringDataProfileLocation
type DataProfileLocation struct {
// The location to be scanned.
//
// Types that are assignable to Location:
//
// *DataProfileLocation_OrganizationId
// *DataProfileLocation_FolderId
Location isDataProfileLocation_Location `protobuf_oneof:"location"`
// contains filtered or unexported fields
}The data that will be profiled.
func (*DataProfileLocation) Descriptor
func (*DataProfileLocation) Descriptor() ([]byte, []int)Deprecated: Use DataProfileLocation.ProtoReflect.Descriptor instead.
func (*DataProfileLocation) GetFolderId
func (x *DataProfileLocation) GetFolderId() int64func (*DataProfileLocation) GetLocation
func (m *DataProfileLocation) GetLocation() isDataProfileLocation_Locationfunc (*DataProfileLocation) GetOrganizationId
func (x *DataProfileLocation) GetOrganizationId() int64func (*DataProfileLocation) ProtoMessage
func (*DataProfileLocation) ProtoMessage()func (*DataProfileLocation) ProtoReflect
func (x *DataProfileLocation) ProtoReflect() protoreflect.Messagefunc (*DataProfileLocation) Reset
func (x *DataProfileLocation) Reset()func (*DataProfileLocation) String
func (x *DataProfileLocation) String() stringDataProfileLocation_FolderId
type DataProfileLocation_FolderId struct {
// The ID of the folder within an organization to scan.
FolderId int64 `protobuf:"varint,2,opt,name=folder_id,json=folderId,proto3,oneof"`
}DataProfileLocation_OrganizationId
type DataProfileLocation_OrganizationId struct {
// The ID of an organization to scan.
OrganizationId int64 `protobuf:"varint,1,opt,name=organization_id,json=organizationId,proto3,oneof"`
}DataProfilePubSubCondition
type DataProfilePubSubCondition struct {
// An expression.
Expressions *DataProfilePubSubCondition_PubSubExpressions `protobuf:"bytes,1,opt,name=expressions,proto3" json:"expressions,omitempty"`
// contains filtered or unexported fields
}A condition for determining whether a Pub/Sub should be triggered.
func (*DataProfilePubSubCondition) Descriptor
func (*DataProfilePubSubCondition) Descriptor() ([]byte, []int)Deprecated: Use DataProfilePubSubCondition.ProtoReflect.Descriptor instead.
func (*DataProfilePubSubCondition) GetExpressions
func (x *DataProfilePubSubCondition) GetExpressions() *DataProfilePubSubCondition_PubSubExpressionsfunc (*DataProfilePubSubCondition) ProtoMessage
func (*DataProfilePubSubCondition) ProtoMessage()func (*DataProfilePubSubCondition) ProtoReflect
func (x *DataProfilePubSubCondition) ProtoReflect() protoreflect.Messagefunc (*DataProfilePubSubCondition) Reset
func (x *DataProfilePubSubCondition) Reset()func (*DataProfilePubSubCondition) String
func (x *DataProfilePubSubCondition) String() stringDataProfilePubSubCondition_ProfileScoreBucket
type DataProfilePubSubCondition_ProfileScoreBucket int32Various score levels for resources.
DataProfilePubSubCondition_PROFILE_SCORE_BUCKET_UNSPECIFIED, DataProfilePubSubCondition_HIGH, DataProfilePubSubCondition_MEDIUM_OR_HIGH
const (
// Unused.
DataProfilePubSubCondition_PROFILE_SCORE_BUCKET_UNSPECIFIED DataProfilePubSubCondition_ProfileScoreBucket = 0
// High risk/sensitivity detected.
DataProfilePubSubCondition_HIGH DataProfilePubSubCondition_ProfileScoreBucket = 1
// Medium or high risk/sensitivity detected.
DataProfilePubSubCondition_MEDIUM_OR_HIGH DataProfilePubSubCondition_ProfileScoreBucket = 2
)func (DataProfilePubSubCondition_ProfileScoreBucket) Descriptor
func (DataProfilePubSubCondition_ProfileScoreBucket) Descriptor() protoreflect.EnumDescriptorfunc (DataProfilePubSubCondition_ProfileScoreBucket) Enum
func (x DataProfilePubSubCondition_ProfileScoreBucket) Enum() *DataProfilePubSubCondition_ProfileScoreBucketfunc (DataProfilePubSubCondition_ProfileScoreBucket) EnumDescriptor
func (DataProfilePubSubCondition_ProfileScoreBucket) EnumDescriptor() ([]byte, []int)Deprecated: Use DataProfilePubSubCondition_ProfileScoreBucket.Descriptor instead.
func (DataProfilePubSubCondition_ProfileScoreBucket) Number
func (x DataProfilePubSubCondition_ProfileScoreBucket) Number() protoreflect.EnumNumberfunc (DataProfilePubSubCondition_ProfileScoreBucket) String
func (x DataProfilePubSubCondition_ProfileScoreBucket) String() stringfunc (DataProfilePubSubCondition_ProfileScoreBucket) Type
DataProfilePubSubCondition_PubSubCondition
type DataProfilePubSubCondition_PubSubCondition struct {
// The value for the condition to trigger.
//
// Types that are assignable to Value:
//
// *DataProfilePubSubCondition_PubSubCondition_MinimumRiskScore
// *DataProfilePubSubCondition_PubSubCondition_MinimumSensitivityScore
Value isDataProfilePubSubCondition_PubSubCondition_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}A condition consisting of a value.
func (*DataProfilePubSubCondition_PubSubCondition) Descriptor
func (*DataProfilePubSubCondition_PubSubCondition) Descriptor() ([]byte, []int)Deprecated: Use DataProfilePubSubCondition_PubSubCondition.ProtoReflect.Descriptor instead.
func (*DataProfilePubSubCondition_PubSubCondition) GetMinimumRiskScore
func (x *DataProfilePubSubCondition_PubSubCondition) GetMinimumRiskScore() DataProfilePubSubCondition_ProfileScoreBucketfunc (*DataProfilePubSubCondition_PubSubCondition) GetMinimumSensitivityScore
func (x *DataProfilePubSubCondition_PubSubCondition) GetMinimumSensitivityScore() DataProfilePubSubCondition_ProfileScoreBucketfunc (*DataProfilePubSubCondition_PubSubCondition) GetValue
func (m *DataProfilePubSubCondition_PubSubCondition) GetValue() isDataProfilePubSubCondition_PubSubCondition_Valuefunc (*DataProfilePubSubCondition_PubSubCondition) ProtoMessage
func (*DataProfilePubSubCondition_PubSubCondition) ProtoMessage()func (*DataProfilePubSubCondition_PubSubCondition) ProtoReflect
func (x *DataProfilePubSubCondition_PubSubCondition) ProtoReflect() protoreflect.Messagefunc (*DataProfilePubSubCondition_PubSubCondition) Reset
func (x *DataProfilePubSubCondition_PubSubCondition) Reset()func (*DataProfilePubSubCondition_PubSubCondition) String
func (x *DataProfilePubSubCondition_PubSubCondition) String() stringDataProfilePubSubCondition_PubSubCondition_MinimumRiskScore
type DataProfilePubSubCondition_PubSubCondition_MinimumRiskScore struct {
// The minimum data risk score that triggers the condition.
MinimumRiskScore DataProfilePubSubCondition_ProfileScoreBucket `protobuf:"varint,1,opt,name=minimum_risk_score,json=minimumRiskScore,proto3,enum=google.privacy.dlp.v2.DataProfilePubSubCondition_ProfileScoreBucket,oneof"`
}DataProfilePubSubCondition_PubSubCondition_MinimumSensitivityScore
type DataProfilePubSubCondition_PubSubCondition_MinimumSensitivityScore struct {
// The minimum sensitivity level that triggers the condition.
MinimumSensitivityScore DataProfilePubSubCondition_ProfileScoreBucket `protobuf:"varint,2,opt,name=minimum_sensitivity_score,json=minimumSensitivityScore,proto3,enum=google.privacy.dlp.v2.DataProfilePubSubCondition_ProfileScoreBucket,oneof"`
}DataProfilePubSubCondition_PubSubExpressions
type DataProfilePubSubCondition_PubSubExpressions struct {
// The operator to apply to the collection of conditions.
LogicalOperator DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator `protobuf:"varint,1,opt,name=logical_operator,json=logicalOperator,proto3,enum=google.privacy.dlp.v2.DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator" json:"logical_operator,omitempty"`
// Conditions to apply to the expression.
Conditions []*DataProfilePubSubCondition_PubSubCondition `protobuf:"bytes,2,rep,name=conditions,proto3" json:"conditions,omitempty"`
// contains filtered or unexported fields
}An expression, consisting of an operator and conditions.
func (*DataProfilePubSubCondition_PubSubExpressions) Descriptor
func (*DataProfilePubSubCondition_PubSubExpressions) Descriptor() ([]byte, []int)Deprecated: Use DataProfilePubSubCondition_PubSubExpressions.ProtoReflect.Descriptor instead.
func (*DataProfilePubSubCondition_PubSubExpressions) GetConditions
func (x *DataProfilePubSubCondition_PubSubExpressions) GetConditions() []*DataProfilePubSubCondition_PubSubConditionfunc (*DataProfilePubSubCondition_PubSubExpressions) GetLogicalOperator
func (x *DataProfilePubSubCondition_PubSubExpressions) GetLogicalOperator() DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperatorfunc (*DataProfilePubSubCondition_PubSubExpressions) ProtoMessage
func (*DataProfilePubSubCondition_PubSubExpressions) ProtoMessage()func (*DataProfilePubSubCondition_PubSubExpressions) ProtoReflect
func (x *DataProfilePubSubCondition_PubSubExpressions) ProtoReflect() protoreflect.Messagefunc (*DataProfilePubSubCondition_PubSubExpressions) Reset
func (x *DataProfilePubSubCondition_PubSubExpressions) Reset()func (*DataProfilePubSubCondition_PubSubExpressions) String
func (x *DataProfilePubSubCondition_PubSubExpressions) String() stringDataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator
type DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator int32Logical operators for conditional checks.
DataProfilePubSubCondition_PubSubExpressions_LOGICAL_OPERATOR_UNSPECIFIED, DataProfilePubSubCondition_PubSubExpressions_OR, DataProfilePubSubCondition_PubSubExpressions_AND
const (
// Unused.
DataProfilePubSubCondition_PubSubExpressions_LOGICAL_OPERATOR_UNSPECIFIED DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator = 0
// Conditional OR.
DataProfilePubSubCondition_PubSubExpressions_OR DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator = 1
// Conditional AND.
DataProfilePubSubCondition_PubSubExpressions_AND DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator = 2
)func (DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator) Descriptor
func (DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator) Descriptor() protoreflect.EnumDescriptorfunc (DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator) Enum
func (x DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator) Enum() *DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperatorfunc (DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator) EnumDescriptor
func (DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator) EnumDescriptor() ([]byte, []int)Deprecated: Use DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator.Descriptor instead.
func (DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator) Number
func (x DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator) Number() protoreflect.EnumNumberfunc (DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator) String
func (x DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator) String() stringfunc (DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator) Type
func (DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator) Type() protoreflect.EnumTypeDataProfilePubSubMessage
type DataProfilePubSubMessage struct {
// If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.
// Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
// `full_resource` will be populated.
Profile *TableDataProfile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
// If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated.
// Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
// `file_store_path` will be populated.
FileStoreProfile *FileStoreDataProfile `protobuf:"bytes,3,opt,name=file_store_profile,json=fileStoreProfile,proto3" json:"file_store_profile,omitempty"`
// The event that caused the Pub/Sub message to be sent.
Event DataProfileAction_EventType `protobuf:"varint,2,opt,name=event,proto3,enum=google.privacy.dlp.v2.DataProfileAction_EventType" json:"event,omitempty"`
// contains filtered or unexported fields
}Pub/Sub topic message for a DataProfileAction.PubSubNotification event. To receive a message of protocol buffer schema type, convert the message data to an object of this proto class.
func (*DataProfilePubSubMessage) Descriptor
func (*DataProfilePubSubMessage) Descriptor() ([]byte, []int)Deprecated: Use DataProfilePubSubMessage.ProtoReflect.Descriptor instead.
func (*DataProfilePubSubMessage) GetEvent
func (x *DataProfilePubSubMessage) GetEvent() DataProfileAction_EventTypefunc (*DataProfilePubSubMessage) GetFileStoreProfile
func (x *DataProfilePubSubMessage) GetFileStoreProfile() *FileStoreDataProfilefunc (*DataProfilePubSubMessage) GetProfile
func (x *DataProfilePubSubMessage) GetProfile() *TableDataProfilefunc (*DataProfilePubSubMessage) ProtoMessage
func (*DataProfilePubSubMessage) ProtoMessage()func (*DataProfilePubSubMessage) ProtoReflect
func (x *DataProfilePubSubMessage) ProtoReflect() protoreflect.Messagefunc (*DataProfilePubSubMessage) Reset
func (x *DataProfilePubSubMessage) Reset()func (*DataProfilePubSubMessage) String
func (x *DataProfilePubSubMessage) String() stringDataProfileUpdateFrequency
type DataProfileUpdateFrequency int32How frequently data profiles can be updated. New options can be added at a later time.
DataProfileUpdateFrequency_UPDATE_FREQUENCY_UNSPECIFIED, DataProfileUpdateFrequency_UPDATE_FREQUENCY_NEVER, DataProfileUpdateFrequency_UPDATE_FREQUENCY_DAILY, DataProfileUpdateFrequency_UPDATE_FREQUENCY_MONTHLY
const (
// Unspecified.
DataProfileUpdateFrequency_UPDATE_FREQUENCY_UNSPECIFIED DataProfileUpdateFrequency = 0
// After the data profile is created, it will never be updated.
DataProfileUpdateFrequency_UPDATE_FREQUENCY_NEVER DataProfileUpdateFrequency = 1
// The data profile can be updated up to once every 24 hours.
DataProfileUpdateFrequency_UPDATE_FREQUENCY_DAILY DataProfileUpdateFrequency = 2
// The data profile can be updated up to once every 30 days. Default.
DataProfileUpdateFrequency_UPDATE_FREQUENCY_MONTHLY DataProfileUpdateFrequency = 4
)func (DataProfileUpdateFrequency) Descriptor
func (DataProfileUpdateFrequency) Descriptor() protoreflect.EnumDescriptorfunc (DataProfileUpdateFrequency) Enum
func (x DataProfileUpdateFrequency) Enum() *DataProfileUpdateFrequencyfunc (DataProfileUpdateFrequency) EnumDescriptor
func (DataProfileUpdateFrequency) EnumDescriptor() ([]byte, []int)Deprecated: Use DataProfileUpdateFrequency.Descriptor instead.
func (DataProfileUpdateFrequency) Number
func (x DataProfileUpdateFrequency) Number() protoreflect.EnumNumberfunc (DataProfileUpdateFrequency) String
func (x DataProfileUpdateFrequency) String() stringfunc (DataProfileUpdateFrequency) Type
func (DataProfileUpdateFrequency) Type() protoreflect.EnumTypeDataRiskLevel
type DataRiskLevel struct {
// The score applied to the resource.
Score DataRiskLevel_DataRiskLevelScore `protobuf:"varint,1,opt,name=score,proto3,enum=google.privacy.dlp.v2.DataRiskLevel_DataRiskLevelScore" json:"score,omitempty"`
// contains filtered or unexported fields
}Score is a summary of all elements in the data profile. A higher number means more risk.
func (*DataRiskLevel) Descriptor
func (*DataRiskLevel) Descriptor() ([]byte, []int)Deprecated: Use DataRiskLevel.ProtoReflect.Descriptor instead.
func (*DataRiskLevel) GetScore
func (x *DataRiskLevel) GetScore() DataRiskLevel_DataRiskLevelScorefunc (*DataRiskLevel) ProtoMessage
func (*DataRiskLevel) ProtoMessage()func (*DataRiskLevel) ProtoReflect
func (x *DataRiskLevel) ProtoReflect() protoreflect.Messagefunc (*DataRiskLevel) Reset
func (x *DataRiskLevel) Reset()func (*DataRiskLevel) String
func (x *DataRiskLevel) String() stringDataRiskLevel_DataRiskLevelScore
type DataRiskLevel_DataRiskLevelScore int32Various score levels for resources.
DataRiskLevel_RISK_SCORE_UNSPECIFIED, DataRiskLevel_RISK_LOW, DataRiskLevel_RISK_UNKNOWN, DataRiskLevel_RISK_MODERATE, DataRiskLevel_RISK_HIGH
const (
// Unused.
DataRiskLevel_RISK_SCORE_UNSPECIFIED DataRiskLevel_DataRiskLevelScore = 0
// Low risk - Lower indication of sensitive data that appears to have
// additional access restrictions in place or no indication of sensitive
// data found.
DataRiskLevel_RISK_LOW DataRiskLevel_DataRiskLevelScore = 10
// Unable to determine risk.
DataRiskLevel_RISK_UNKNOWN DataRiskLevel_DataRiskLevelScore = 12
// Medium risk - Sensitive data may be present but additional access or fine
// grain access restrictions appear to be present. Consider limiting
// access even further or transform data to mask.
DataRiskLevel_RISK_MODERATE DataRiskLevel_DataRiskLevelScore = 20
// High risk – SPII may be present. Access controls may include public
// ACLs. Exfiltration of data may lead to user data loss. Re-identification
// of users may be possible. Consider limiting usage and or removing SPII.
DataRiskLevel_RISK_HIGH DataRiskLevel_DataRiskLevelScore = 30
)func (DataRiskLevel_DataRiskLevelScore) Descriptor
func (DataRiskLevel_DataRiskLevelScore) Descriptor() protoreflect.EnumDescriptorfunc (DataRiskLevel_DataRiskLevelScore) Enum
func (x DataRiskLevel_DataRiskLevelScore) Enum() *DataRiskLevel_DataRiskLevelScorefunc (DataRiskLevel_DataRiskLevelScore) EnumDescriptor
func (DataRiskLevel_DataRiskLevelScore) EnumDescriptor() ([]byte, []int)Deprecated: Use DataRiskLevel_DataRiskLevelScore.Descriptor instead.
func (DataRiskLevel_DataRiskLevelScore) Number
func (x DataRiskLevel_DataRiskLevelScore) Number() protoreflect.EnumNumberfunc (DataRiskLevel_DataRiskLevelScore) String
func (x DataRiskLevel_DataRiskLevelScore) String() stringfunc (DataRiskLevel_DataRiskLevelScore) Type
func (DataRiskLevel_DataRiskLevelScore) Type() protoreflect.EnumTypeDataSourceType
type DataSourceType struct {
// Output only. An identifying string to the type of resource being profiled.
// Current values:
//
// * google/bigquery/table
// * google/project
// * google/sql/table
// * google/gcs/bucket
DataSource string `protobuf:"bytes,1,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
// contains filtered or unexported fields
}Message used to identify the type of resource being profiled.
func (*DataSourceType) Descriptor
func (*DataSourceType) Descriptor() ([]byte, []int)Deprecated: Use DataSourceType.ProtoReflect.Descriptor instead.
func (*DataSourceType) GetDataSource
func (x *DataSourceType) GetDataSource() stringfunc (*DataSourceType) ProtoMessage
func (*DataSourceType) ProtoMessage()func (*DataSourceType) ProtoReflect
func (x *DataSourceType) ProtoReflect() protoreflect.Messagefunc (*DataSourceType) Reset
func (x *DataSourceType) Reset()func (*DataSourceType) String
func (x *DataSourceType) String() stringDatabaseResourceCollection
type DatabaseResourceCollection struct {
// The first filter containing a pattern that matches a database resource will
// be used.
//
// Types that are assignable to Pattern:
//
// *DatabaseResourceCollection_IncludeRegexes
Pattern isDatabaseResourceCollection_Pattern `protobuf_oneof:"pattern"`
// contains filtered or unexported fields
}Match database resources using regex filters. Examples of database resources are tables, views, and stored procedures.
func (*DatabaseResourceCollection) Descriptor
func (*DatabaseResourceCollection) Descriptor() ([]byte, []int)Deprecated: Use DatabaseResourceCollection.ProtoReflect.Descriptor instead.
func (*DatabaseResourceCollection) GetIncludeRegexes
func (x *DatabaseResourceCollection) GetIncludeRegexes() *DatabaseResourceRegexesfunc (*DatabaseResourceCollection) GetPattern
func (m *DatabaseResourceCollection) GetPattern() isDatabaseResourceCollection_Patternfunc (*DatabaseResourceCollection) ProtoMessage
func (*DatabaseResourceCollection) ProtoMessage()func (*DatabaseResourceCollection) ProtoReflect
func (x *DatabaseResourceCollection) ProtoReflect() protoreflect.Messagefunc (*DatabaseResourceCollection) Reset
func (x *DatabaseResourceCollection) Reset()func (*DatabaseResourceCollection) String
func (x *DatabaseResourceCollection) String() stringDatabaseResourceCollection_IncludeRegexes
type DatabaseResourceCollection_IncludeRegexes struct {
// A collection of regular expressions to match a database resource against.
IncludeRegexes *DatabaseResourceRegexes `protobuf:"bytes,1,opt,name=include_regexes,json=includeRegexes,proto3,oneof"`
}DatabaseResourceReference
type DatabaseResourceReference struct {
// Required. If within a project-level config, then this must match the
// config's project ID.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Required. The instance where this resource is located. For example: Cloud
// SQL instance ID.
Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"`
// Required. Name of a database within the instance.
Database string `protobuf:"bytes,3,opt,name=database,proto3" json:"database,omitempty"`
// Required. Name of a database resource, for example, a table within the
// database.
DatabaseResource string `protobuf:"bytes,4,opt,name=database_resource,json=databaseResource,proto3" json:"database_resource,omitempty"`
// contains filtered or unexported fields
}Identifies a single database resource, like a table within a database.
func (*DatabaseResourceReference) Descriptor
func (*DatabaseResourceReference) Descriptor() ([]byte, []int)Deprecated: Use DatabaseResourceReference.ProtoReflect.Descriptor instead.
func (*DatabaseResourceReference) GetDatabase
func (x *DatabaseResourceReference) GetDatabase() stringfunc (*DatabaseResourceReference) GetDatabaseResource
func (x *DatabaseResourceReference) GetDatabaseResource() stringfunc (*DatabaseResourceReference) GetInstance
func (x *DatabaseResourceReference) GetInstance() stringfunc (*DatabaseResourceReference) GetProjectId
func (x *DatabaseResourceReference) GetProjectId() stringfunc (*DatabaseResourceReference) ProtoMessage
func (*DatabaseResourceReference) ProtoMessage()func (*DatabaseResourceReference) ProtoReflect
func (x *DatabaseResourceReference) ProtoReflect() protoreflect.Messagefunc (*DatabaseResourceReference) Reset
func (x *DatabaseResourceReference) Reset()func (*DatabaseResourceReference) String
func (x *DatabaseResourceReference) String() stringDatabaseResourceRegex
type DatabaseResourceRegex struct {
// For organizations, if unset, will match all projects. Has no effect
// for configurations created within a project.
ProjectIdRegex string `protobuf:"bytes,1,opt,name=project_id_regex,json=projectIdRegex,proto3" json:"project_id_regex,omitempty"`
// Regex to test the instance name against. If empty, all instances match.
InstanceRegex string `protobuf:"bytes,2,opt,name=instance_regex,json=instanceRegex,proto3" json:"instance_regex,omitempty"`
// Regex to test the database name against. If empty, all databases match.
DatabaseRegex string `protobuf:"bytes,3,opt,name=database_regex,json=databaseRegex,proto3" json:"database_regex,omitempty"`
// Regex to test the database resource's name against. An example of a
// database resource name is a table's name. Other database resource names
// like view names could be included in the future. If empty, all database
// resources match.
DatabaseResourceNameRegex string `protobuf:"bytes,4,opt,name=database_resource_name_regex,json=databaseResourceNameRegex,proto3" json:"database_resource_name_regex,omitempty"`
// contains filtered or unexported fields
}A pattern to match against one or more database resources. At least one pattern must be specified. Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.
func (*DatabaseResourceRegex) Descriptor
func (*DatabaseResourceRegex) Descriptor() ([]byte, []int)Deprecated: Use DatabaseResourceRegex.ProtoReflect.Descriptor instead.
func (*DatabaseResourceRegex) GetDatabaseRegex
func (x *DatabaseResourceRegex) GetDatabaseRegex() stringfunc (*DatabaseResourceRegex) GetDatabaseResourceNameRegex
func (x *DatabaseResourceRegex) GetDatabaseResourceNameRegex() stringfunc (*DatabaseResourceRegex) GetInstanceRegex
func (x *DatabaseResourceRegex) GetInstanceRegex() stringfunc (*DatabaseResourceRegex) GetProjectIdRegex
func (x *DatabaseResourceRegex) GetProjectIdRegex() stringfunc (*DatabaseResourceRegex) ProtoMessage
func (*DatabaseResourceRegex) ProtoMessage()func (*DatabaseResourceRegex) ProtoReflect
func (x *DatabaseResourceRegex) ProtoReflect() protoreflect.Messagefunc (*DatabaseResourceRegex) Reset
func (x *DatabaseResourceRegex) Reset()func (*DatabaseResourceRegex) String
func (x *DatabaseResourceRegex) String() stringDatabaseResourceRegexes
type DatabaseResourceRegexes struct {
// A group of regular expression patterns to match against one or more
// database resources.
// Maximum of 100 entries. The sum of all regular expression's length can't
// exceed 10 KiB.
Patterns []*DatabaseResourceRegex `protobuf:"bytes,1,rep,name=patterns,proto3" json:"patterns,omitempty"`
// contains filtered or unexported fields
}A collection of regular expressions to determine what database resources to match against.
func (*DatabaseResourceRegexes) Descriptor
func (*DatabaseResourceRegexes) Descriptor() ([]byte, []int)Deprecated: Use DatabaseResourceRegexes.ProtoReflect.Descriptor instead.
func (*DatabaseResourceRegexes) GetPatterns
func (x *DatabaseResourceRegexes) GetPatterns() []*DatabaseResourceRegexfunc (*DatabaseResourceRegexes) ProtoMessage
func (*DatabaseResourceRegexes) ProtoMessage()func (*DatabaseResourceRegexes) ProtoReflect
func (x *DatabaseResourceRegexes) ProtoReflect() protoreflect.Messagefunc (*DatabaseResourceRegexes) Reset
func (x *DatabaseResourceRegexes) Reset()func (*DatabaseResourceRegexes) String
func (x *DatabaseResourceRegexes) String() stringDatastoreKey
type DatastoreKey struct {
// Datastore entity key.
EntityKey *Key `protobuf:"bytes,1,opt,name=entity_key,json=entityKey,proto3" json:"entity_key,omitempty"`
// contains filtered or unexported fields
}Record key for a finding in Cloud Datastore.
func (*DatastoreKey) Descriptor
func (*DatastoreKey) Descriptor() ([]byte, []int)Deprecated: Use DatastoreKey.ProtoReflect.Descriptor instead.
func (*DatastoreKey) GetEntityKey
func (x *DatastoreKey) GetEntityKey() *Keyfunc (*DatastoreKey) ProtoMessage
func (*DatastoreKey) ProtoMessage()func (*DatastoreKey) ProtoReflect
func (x *DatastoreKey) ProtoReflect() protoreflect.Messagefunc (*DatastoreKey) Reset
func (x *DatastoreKey) Reset()func (*DatastoreKey) String
func (x *DatastoreKey) String() stringDatastoreOptions
type DatastoreOptions struct {
// A partition ID identifies a grouping of entities. The grouping is always
// by project and namespace, however the namespace ID may be empty.
PartitionId *PartitionId `protobuf:"bytes,1,opt,name=partition_id,json=partitionId,proto3" json:"partition_id,omitempty"`
// The kind to process.
Kind *KindExpression `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
// contains filtered or unexported fields
}Options defining a data set within Google Cloud Datastore.
func (*DatastoreOptions) Descriptor
func (*DatastoreOptions) Descriptor() ([]byte, []int)Deprecated: Use DatastoreOptions.ProtoReflect.Descriptor instead.
func (*DatastoreOptions) GetKind
func (x *DatastoreOptions) GetKind() *KindExpressionfunc (*DatastoreOptions) GetPartitionId
func (x *DatastoreOptions) GetPartitionId() *PartitionIdfunc (*DatastoreOptions) ProtoMessage
func (*DatastoreOptions) ProtoMessage()func (*DatastoreOptions) ProtoReflect
func (x *DatastoreOptions) ProtoReflect() protoreflect.Messagefunc (*DatastoreOptions) Reset
func (x *DatastoreOptions) Reset()func (*DatastoreOptions) String
func (x *DatastoreOptions) String() stringDateShiftConfig
type DateShiftConfig struct {
// Required. Range of shift in days. Actual shift will be selected at random
// within this range (inclusive ends). Negative means shift to earlier in
// time. Must not be more than 365250 days (1000 years) each direction.
//
// For example, 3 means shift date to at most 3 days into the future.
UpperBoundDays int32 `protobuf:"varint,1,opt,name=upper_bound_days,json=upperBoundDays,proto3" json:"upper_bound_days,omitempty"`
// Required. For example, -5 means shift date to at most 5 days back in the
// past.
LowerBoundDays int32 `protobuf:"varint,2,opt,name=lower_bound_days,json=lowerBoundDays,proto3" json:"lower_bound_days,omitempty"`
// Points to the field that contains the context, for example, an entity id.
// If set, must also set cryptoKey. If set, shift will be consistent for the
// given context.
Context *FieldId `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"`
// Method for calculating shift that takes context into consideration. If
// set, must also set context. Can only be applied to table items.
//
// Types that are assignable to Method:
//
// *DateShiftConfig_CryptoKey
Method isDateShiftConfig_Method `protobuf_oneof:"method"`
// contains filtered or unexported fields
}Shifts dates by random number of days, with option to be consistent for the same context. See https://cloud.google.com/sensitive-data-protection/docs/concepts-date-shifting to learn more.
func (*DateShiftConfig) Descriptor
func (*DateShiftConfig) Descriptor() ([]byte, []int)Deprecated: Use DateShiftConfig.ProtoReflect.Descriptor instead.
func (*DateShiftConfig) GetContext
func (x *DateShiftConfig) GetContext() *FieldIdfunc (*DateShiftConfig) GetCryptoKey
func (x *DateShiftConfig) GetCryptoKey() *CryptoKeyfunc (*DateShiftConfig) GetLowerBoundDays
func (x *DateShiftConfig) GetLowerBoundDays() int32func (*DateShiftConfig) GetMethod
func (m *DateShiftConfig) GetMethod() isDateShiftConfig_Methodfunc (*DateShiftConfig) GetUpperBoundDays
func (x *DateShiftConfig) GetUpperBoundDays() int32func (*DateShiftConfig) ProtoMessage
func (*DateShiftConfig) ProtoMessage()func (*DateShiftConfig) ProtoReflect
func (x *DateShiftConfig) ProtoReflect() protoreflect.Messagefunc (*DateShiftConfig) Reset
func (x *DateShiftConfig) Reset()func (*DateShiftConfig) String
func (x *DateShiftConfig) String() stringDateShiftConfig_CryptoKey
type DateShiftConfig_CryptoKey struct {
// Causes the shift to be computed based on this key and the context. This
// results in the same shift for the same context and crypto_key. If
// set, must also set context. Can only be applied to table items.
CryptoKey *CryptoKey `protobuf:"bytes,4,opt,name=crypto_key,json=cryptoKey,proto3,oneof"`
}DateTime
type DateTime struct {
// One or more of the following must be set.
// Must be a valid date or time value.
Date *date.Date `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
// Day of week
DayOfWeek dayofweek.DayOfWeek `protobuf:"varint,2,opt,name=day_of_week,json=dayOfWeek,proto3,enum=google.type.DayOfWeek" json:"day_of_week,omitempty"`
// Time of day
Time *timeofday.TimeOfDay `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
// Time zone
TimeZone *DateTime_TimeZone `protobuf:"bytes,4,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
// contains filtered or unexported fields
}Message for a date time object. e.g. 2018-01-01, 5th August.
func (*DateTime) Descriptor
Deprecated: Use DateTime.ProtoReflect.Descriptor instead.
func (*DateTime) GetDate
func (*DateTime) GetDayOfWeek
func (*DateTime) GetTime
func (*DateTime) GetTimeZone
func (x *DateTime) GetTimeZone() *DateTime_TimeZonefunc (*DateTime) ProtoMessage
func (*DateTime) ProtoMessage()func (*DateTime) ProtoReflect
func (x *DateTime) ProtoReflect() protoreflect.Messagefunc (*DateTime) Reset
func (x *DateTime) Reset()func (*DateTime) String
DateTime_TimeZone
type DateTime_TimeZone struct {
// Set only if the offset can be determined. Positive for time ahead of UTC.
// E.g. For "UTC-9", this value is -540.
OffsetMinutes int32 `protobuf:"varint,1,opt,name=offset_minutes,json=offsetMinutes,proto3" json:"offset_minutes,omitempty"`
// contains filtered or unexported fields
}Time zone of the date time object.
func (*DateTime_TimeZone) Descriptor
func (*DateTime_TimeZone) Descriptor() ([]byte, []int)Deprecated: Use DateTime_TimeZone.ProtoReflect.Descriptor instead.
func (*DateTime_TimeZone) GetOffsetMinutes
func (x *DateTime_TimeZone) GetOffsetMinutes() int32func (*DateTime_TimeZone) ProtoMessage
func (*DateTime_TimeZone) ProtoMessage()func (*DateTime_TimeZone) ProtoReflect
func (x *DateTime_TimeZone) ProtoReflect() protoreflect.Messagefunc (*DateTime_TimeZone) Reset
func (x *DateTime_TimeZone) Reset()func (*DateTime_TimeZone) String
func (x *DateTime_TimeZone) String() stringDeidentifyConfig
type DeidentifyConfig struct {
// Type of transformation
//
// Types that are assignable to Transformation:
//
// *DeidentifyConfig_InfoTypeTransformations
// *DeidentifyConfig_RecordTransformations
// *DeidentifyConfig_ImageTransformations
Transformation isDeidentifyConfig_Transformation `protobuf_oneof:"transformation"`
// Mode for handling transformation errors. If left unspecified, the default
// mode is `TransformationErrorHandling.ThrowError`.
TransformationErrorHandling *TransformationErrorHandling `protobuf:"bytes,3,opt,name=transformation_error_handling,json=transformationErrorHandling,proto3" json:"transformation_error_handling,omitempty"`
// contains filtered or unexported fields
}The configuration that controls how the data will change.
func (*DeidentifyConfig) Descriptor
func (*DeidentifyConfig) Descriptor() ([]byte, []int)Deprecated: Use DeidentifyConfig.ProtoReflect.Descriptor instead.
func (*DeidentifyConfig) GetImageTransformations
func (x *DeidentifyConfig) GetImageTransformations() *ImageTransformationsfunc (*DeidentifyConfig) GetInfoTypeTransformations
func (x *DeidentifyConfig) GetInfoTypeTransformations() *InfoTypeTransformationsfunc (*DeidentifyConfig) GetRecordTransformations
func (x *DeidentifyConfig) GetRecordTransformations() *RecordTransformationsfunc (*DeidentifyConfig) GetTransformation
func (m *DeidentifyConfig) GetTransformation() isDeidentifyConfig_Transformationfunc (*DeidentifyConfig) GetTransformationErrorHandling
func (x *DeidentifyConfig) GetTransformationErrorHandling() *TransformationErrorHandlingfunc (*DeidentifyConfig) ProtoMessage
func (*DeidentifyConfig) ProtoMessage()func (*DeidentifyConfig) ProtoReflect
func (x *DeidentifyConfig) ProtoReflect() protoreflect.Messagefunc (*DeidentifyConfig) Reset
func (x *DeidentifyConfig) Reset()func (*DeidentifyConfig) String
func (x *DeidentifyConfig) String() stringDeidentifyConfig_ImageTransformations
type DeidentifyConfig_ImageTransformations struct {
// Treat the dataset as an image and redact.
ImageTransformations *ImageTransformations `protobuf:"bytes,4,opt,name=image_transformations,json=imageTransformations,proto3,oneof"`
}DeidentifyConfig_InfoTypeTransformations
type DeidentifyConfig_InfoTypeTransformations struct {
// Treat the dataset as free-form text and apply the same free text
// transformation everywhere.
InfoTypeTransformations *InfoTypeTransformations `protobuf:"bytes,1,opt,name=info_type_transformations,json=infoTypeTransformations,proto3,oneof"`
}DeidentifyConfig_RecordTransformations
type DeidentifyConfig_RecordTransformations struct {
// Treat the dataset as structured. Transformations can be applied to
// specific locations within structured datasets, such as transforming
// a column within a table.
RecordTransformations *RecordTransformations `protobuf:"bytes,2,opt,name=record_transformations,json=recordTransformations,proto3,oneof"`
}DeidentifyContentRequest
type DeidentifyContentRequest struct {
// Parent resource name.
//
// The format of this value varies depending on whether you have [specified a
// processing
// location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
//
// - Projects scope, location specified:
// `projects/{project_id}/locations/{location_id}`
// - Projects scope, no location specified (defaults to global):
// `projects/{project_id}`
//
// The following example `parent` string specifies a parent project with the
// identifier `example-project`, and specifies the `europe-west3` location
// for processing data:
//
// parent=projects/example-project/locations/europe-west3
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Configuration for the de-identification of the content item.
// Items specified here will override the template referenced by the
// deidentify_template_name argument.
DeidentifyConfig *DeidentifyConfig `protobuf:"bytes,2,opt,name=deidentify_config,json=deidentifyConfig,proto3" json:"deidentify_config,omitempty"`
// Configuration for the inspector.
// Items specified here will override the template referenced by the
// inspect_template_name argument.
InspectConfig *InspectConfig `protobuf:"bytes,3,opt,name=inspect_config,json=inspectConfig,proto3" json:"inspect_config,omitempty"`
// The item to de-identify. Will be treated as text.
//
// This value must be of type
// [Table][google.privacy.dlp.v2.Table] if your
// [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config]
// is a
// [RecordTransformations][google.privacy.dlp.v2.RecordTransformations]
// object.
Item *ContentItem `protobuf:"bytes,4,opt,name=item,proto3" json:"item,omitempty"`
// Template to use. Any configuration directly specified in
// inspect_config will override those set in the template. Singular fields
// that are set in this request will replace their corresponding fields in the
// template. Repeated fields are appended. Singular sub-messages and groups
// are recursively merged.
InspectTemplateName string `protobuf:"bytes,5,opt,name=inspect_template_name,json=inspectTemplateName,proto3" json:"inspect_template_name,omitempty"`
// Template to use. Any configuration directly specified in
// deidentify_config will override those set in the template. Singular fields
// that are set in this request will replace their corresponding fields in the
// template. Repeated fields are appended. Singular sub-messages and groups
// are recursively merged.
DeidentifyTemplateName string `protobuf:"bytes,6,opt,name=deidentify_template_name,json=deidentifyTemplateName,proto3" json:"deidentify_template_name,omitempty"`
// Deprecated. This field has no effect.
LocationId string `protobuf:"bytes,7,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
// contains filtered or unexported fields
}Request to de-identify a ContentItem.
func (*DeidentifyContentRequest) Descriptor
func (*DeidentifyContentRequest) Descriptor() ([]byte, []int)Deprecated: Use DeidentifyContentRequest.ProtoReflect.Descriptor instead.
func (*DeidentifyContentRequest) GetDeidentifyConfig
func (x *DeidentifyContentRequest) GetDeidentifyConfig() *DeidentifyConfigfunc (*DeidentifyContentRequest) GetDeidentifyTemplateName
func (x *DeidentifyContentRequest) GetDeidentifyTemplateName() stringfunc (*DeidentifyContentRequest) GetInspectConfig
func (x *DeidentifyContentRequest) GetInspectConfig() *InspectConfigfunc (*DeidentifyContentRequest) GetInspectTemplateName
func (x *DeidentifyContentRequest) GetInspectTemplateName() stringfunc (*DeidentifyContentRequest) GetItem
func (x *DeidentifyContentRequest) GetItem() *ContentItemfunc (*DeidentifyContentRequest) GetLocationId
func (x *DeidentifyContentRequest) GetLocationId() stringfunc (*DeidentifyContentRequest) GetParent
func (x *DeidentifyContentRequest) GetParent() stringfunc (*DeidentifyContentRequest) ProtoMessage
func (*DeidentifyContentRequest) ProtoMessage()func (*DeidentifyContentRequest) ProtoReflect
func (x *DeidentifyContentRequest) ProtoReflect() protoreflect.Messagefunc (*DeidentifyContentRequest) Reset
func (x *DeidentifyContentRequest) Reset()func (*DeidentifyContentRequest) String
func (x *DeidentifyContentRequest) String() stringDeidentifyContentResponse
type DeidentifyContentResponse struct {
// The de-identified item.
Item *ContentItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
// An overview of the changes that were made on the `item`.
Overview *TransformationOverview `protobuf:"bytes,2,opt,name=overview,proto3" json:"overview,omitempty"`
// contains filtered or unexported fields
}Results of de-identifying a ContentItem.
func (*DeidentifyContentResponse) Descriptor
func (*DeidentifyContentResponse) Descriptor() ([]byte, []int)Deprecated: Use DeidentifyContentResponse.ProtoReflect.Descriptor instead.
func (*DeidentifyContentResponse) GetItem
func (x *DeidentifyContentResponse) GetItem() *ContentItemfunc (*DeidentifyContentResponse) GetOverview
func (x *DeidentifyContentResponse) GetOverview() *TransformationOverviewfunc (*DeidentifyContentResponse) ProtoMessage
func (*DeidentifyContentResponse) ProtoMessage()func (*DeidentifyContentResponse) ProtoReflect
func (x *DeidentifyContentResponse) ProtoReflect() protoreflect.Messagefunc (*DeidentifyContentResponse) Reset
func (x *DeidentifyContentResponse) Reset()func (*DeidentifyContentResponse) String
func (x *DeidentifyContentResponse) String() stringDeidentifyDataSourceDetails
type DeidentifyDataSourceDetails struct {
// De-identification config used for the request.
RequestedOptions *DeidentifyDataSourceDetails_RequestedDeidentifyOptions `protobuf:"bytes,1,opt,name=requested_options,json=requestedOptions,proto3" json:"requested_options,omitempty"`
// Stats about the de-identification operation.
DeidentifyStats *DeidentifyDataSourceStats `protobuf:"bytes,2,opt,name=deidentify_stats,json=deidentifyStats,proto3" json:"deidentify_stats,omitempty"`
// contains filtered or unexported fields
}The results of a [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action from an inspect job.
func (*DeidentifyDataSourceDetails) Descriptor
func (*DeidentifyDataSourceDetails) Descriptor() ([]byte, []int)Deprecated: Use DeidentifyDataSourceDetails.ProtoReflect.Descriptor instead.
func (*DeidentifyDataSourceDetails) GetDeidentifyStats
func (x *DeidentifyDataSourceDetails) GetDeidentifyStats() *DeidentifyDataSourceStatsfunc (*DeidentifyDataSourceDetails) GetRequestedOptions
func (x *DeidentifyDataSourceDetails) GetRequestedOptions() *DeidentifyDataSourceDetails_RequestedDeidentifyOptionsfunc (*DeidentifyDataSourceDetails) ProtoMessage
func (*DeidentifyDataSourceDetails) ProtoMessage()func (*DeidentifyDataSourceDetails) ProtoReflect
func (x *DeidentifyDataSourceDetails) ProtoReflect() protoreflect.Messagefunc (*DeidentifyDataSourceDetails) Reset
func (x *DeidentifyDataSourceDetails) Reset()func (*DeidentifyDataSourceDetails) String
func (x *DeidentifyDataSourceDetails) String() stringDeidentifyDataSourceDetails_RequestedDeidentifyOptions
type DeidentifyDataSourceDetails_RequestedDeidentifyOptions struct {
// Snapshot of the state of the `DeidentifyTemplate` from the
// [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time
// this job was run.
SnapshotDeidentifyTemplate *DeidentifyTemplate `protobuf:"bytes,1,opt,name=snapshot_deidentify_template,json=snapshotDeidentifyTemplate,proto3" json:"snapshot_deidentify_template,omitempty"`
// Snapshot of the state of the structured `DeidentifyTemplate` from the
// `Deidentify` action at the time this job was run.
SnapshotStructuredDeidentifyTemplate *DeidentifyTemplate `protobuf:"bytes,2,opt,name=snapshot_structured_deidentify_template,json=snapshotStructuredDeidentifyTemplate,proto3" json:"snapshot_structured_deidentify_template,omitempty"`
// Snapshot of the state of the image transformation `DeidentifyTemplate`
// from the `Deidentify` action at the time this job was run.
SnapshotImageRedactTemplate *DeidentifyTemplate `protobuf:"bytes,3,opt,name=snapshot_image_redact_template,json=snapshotImageRedactTemplate,proto3" json:"snapshot_image_redact_template,omitempty"`
// contains filtered or unexported fields
}De-identification options.
func (*DeidentifyDataSourceDetails_RequestedDeidentifyOptions) Descriptor
func (*DeidentifyDataSourceDetails_RequestedDeidentifyOptions) Descriptor() ([]byte, []int)Deprecated: Use DeidentifyDataSourceDetails_RequestedDeidentifyOptions.ProtoReflect.Descriptor instead.
func (*DeidentifyDataSourceDetails_RequestedDeidentifyOptions) GetSnapshotDeidentifyTemplate
func (x *DeidentifyDataSourceDetails_RequestedDeidentifyOptions) GetSnapshotDeidentifyTemplate() *DeidentifyTemplatefunc (*DeidentifyDataSourceDetails_RequestedDeidentifyOptions) GetSnapshotImageRedactTemplate
func (x *DeidentifyDataSourceDetails_RequestedDeidentifyOptions) GetSnapshotImageRedactTemplate() *DeidentifyTemplatefunc (*DeidentifyDataSourceDetails_RequestedDeidentifyOptions) GetSnapshotStructuredDeidentifyTemplate
func (x *DeidentifyDataSourceDetails_RequestedDeidentifyOptions) GetSnapshotStructuredDeidentifyTemplate() *DeidentifyTemplatefunc (*DeidentifyDataSourceDetails_RequestedDeidentifyOptions) ProtoMessage
func (*DeidentifyDataSourceDetails_RequestedDeidentifyOptions) ProtoMessage()func (*DeidentifyDataSourceDetails_RequestedDeidentifyOptions) ProtoReflect
func (x *DeidentifyDataSourceDetails_RequestedDeidentifyOptions) ProtoReflect() protoreflect.Messagefunc (*DeidentifyDataSourceDetails_RequestedDeidentifyOptions) Reset
func (x *DeidentifyDataSourceDetails_RequestedDeidentifyOptions) Reset()func (*DeidentifyDataSourceDetails_RequestedDeidentifyOptions) String
func (x *DeidentifyDataSourceDetails_RequestedDeidentifyOptions) String() stringDeidentifyDataSourceStats
type DeidentifyDataSourceStats struct {
// Total size in bytes that were transformed in some way.
TransformedBytes int64 `protobuf:"varint,1,opt,name=transformed_bytes,json=transformedBytes,proto3" json:"transformed_bytes,omitempty"`
// Number of successfully applied transformations.
TransformationCount int64 `protobuf:"varint,2,opt,name=transformation_count,json=transformationCount,proto3" json:"transformation_count,omitempty"`
// Number of errors encountered while trying to apply transformations.
TransformationErrorCount int64 `protobuf:"varint,3,opt,name=transformation_error_count,json=transformationErrorCount,proto3" json:"transformation_error_count,omitempty"`
// contains filtered or unexported fields
}Summary of what was modified during a transformation.
func (*DeidentifyDataSourceStats) Descriptor
func (*DeidentifyDataSourceStats) Descriptor() ([]byte, []int)Deprecated: Use DeidentifyDataSourceStats.ProtoReflect.Descriptor instead.
func (*DeidentifyDataSourceStats) GetTransformationCount
func (x *DeidentifyDataSourceStats) GetTransformationCount() int64func (*DeidentifyDataSourceStats) GetTransformationErrorCount
func (x *DeidentifyDataSourceStats) GetTransformationErrorCount() int64func (*DeidentifyDataSourceStats) GetTransformedBytes
func (x *DeidentifyDataSourceStats) GetTransformedBytes() int64func (*DeidentifyDataSourceStats) ProtoMessage
func (*DeidentifyDataSourceStats) ProtoMessage()func (*DeidentifyDataSourceStats) ProtoReflect
func (x *DeidentifyDataSourceStats) ProtoReflect() protoreflect.Messagefunc (*DeidentifyDataSourceStats) Reset
func (x *DeidentifyDataSourceStats) Reset()func (*DeidentifyDataSourceStats) String
func (x *DeidentifyDataSourceStats) String() stringDeidentifyTemplate
type DeidentifyTemplate struct {
// Output only. The template name.
//
// The template will have one of the following formats:
// `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR
// `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Display name (max 256 chars).
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Short description (max 256 chars).
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The creation timestamp of an inspectTemplate.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The last update timestamp of an inspectTemplate.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// The core content of the template.
DeidentifyConfig *DeidentifyConfig `protobuf:"bytes,6,opt,name=deidentify_config,json=deidentifyConfig,proto3" json:"deidentify_config,omitempty"`
// contains filtered or unexported fields
}DeidentifyTemplates contains instructions on how to de-identify content. See https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to learn more.
func (*DeidentifyTemplate) Descriptor
func (*DeidentifyTemplate) Descriptor() ([]byte, []int)Deprecated: Use DeidentifyTemplate.ProtoReflect.Descriptor instead.
func (*DeidentifyTemplate) GetCreateTime
func (x *DeidentifyTemplate) GetCreateTime() *timestamppb.Timestampfunc (*DeidentifyTemplate) GetDeidentifyConfig
func (x *DeidentifyTemplate) GetDeidentifyConfig() *DeidentifyConfigfunc (*DeidentifyTemplate) GetDescription
func (x *DeidentifyTemplate) GetDescription() stringfunc (*DeidentifyTemplate) GetDisplayName
func (x *DeidentifyTemplate) GetDisplayName() stringfunc (*DeidentifyTemplate) GetName
func (x *DeidentifyTemplate) GetName() stringfunc (*DeidentifyTemplate) GetUpdateTime
func (x *DeidentifyTemplate) GetUpdateTime() *timestamppb.Timestampfunc (*DeidentifyTemplate) ProtoMessage
func (*DeidentifyTemplate) ProtoMessage()func (*DeidentifyTemplate) ProtoReflect
func (x *DeidentifyTemplate) ProtoReflect() protoreflect.Messagefunc (*DeidentifyTemplate) Reset
func (x *DeidentifyTemplate) Reset()func (*DeidentifyTemplate) String
func (x *DeidentifyTemplate) String() stringDeleteConnectionRequest
type DeleteConnectionRequest struct {
// Required. Resource name of the Connection to be deleted, in the format:
// `projects/{project}/locations/{location}/connections/{connection}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteConnection.
func (*DeleteConnectionRequest) Descriptor
func (*DeleteConnectionRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteConnectionRequest.ProtoReflect.Descriptor instead.
func (*DeleteConnectionRequest) GetName
func (x *DeleteConnectionRequest) GetName() stringfunc (*DeleteConnectionRequest) ProtoMessage
func (*DeleteConnectionRequest) ProtoMessage()func (*DeleteConnectionRequest) ProtoReflect
func (x *DeleteConnectionRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteConnectionRequest) Reset
func (x *DeleteConnectionRequest) Reset()func (*DeleteConnectionRequest) String
func (x *DeleteConnectionRequest) String() stringDeleteDeidentifyTemplateRequest
type DeleteDeidentifyTemplateRequest struct {
// Required. Resource name of the organization and deidentify template to be
// deleted, for example
// `organizations/433245324/deidentifyTemplates/432452342` or
// projects/project-id/deidentifyTemplates/432452342.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteDeidentifyTemplate.
func (*DeleteDeidentifyTemplateRequest) Descriptor
func (*DeleteDeidentifyTemplateRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteDeidentifyTemplateRequest.ProtoReflect.Descriptor instead.
func (*DeleteDeidentifyTemplateRequest) GetName
func (x *DeleteDeidentifyTemplateRequest) GetName() stringfunc (*DeleteDeidentifyTemplateRequest) ProtoMessage
func (*DeleteDeidentifyTemplateRequest) ProtoMessage()func (*DeleteDeidentifyTemplateRequest) ProtoReflect
func (x *DeleteDeidentifyTemplateRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteDeidentifyTemplateRequest) Reset
func (x *DeleteDeidentifyTemplateRequest) Reset()func (*DeleteDeidentifyTemplateRequest) String
func (x *DeleteDeidentifyTemplateRequest) String() stringDeleteDiscoveryConfigRequest
type DeleteDiscoveryConfigRequest struct {
// Required. Resource name of the project and the config, for example
// `projects/dlp-test-project/discoveryConfigs/53234423`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteDiscoveryConfig.
func (*DeleteDiscoveryConfigRequest) Descriptor
func (*DeleteDiscoveryConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteDiscoveryConfigRequest.ProtoReflect.Descriptor instead.
func (*DeleteDiscoveryConfigRequest) GetName
func (x *DeleteDiscoveryConfigRequest) GetName() stringfunc (*DeleteDiscoveryConfigRequest) ProtoMessage
func (*DeleteDiscoveryConfigRequest) ProtoMessage()func (*DeleteDiscoveryConfigRequest) ProtoReflect
func (x *DeleteDiscoveryConfigRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteDiscoveryConfigRequest) Reset
func (x *DeleteDiscoveryConfigRequest) Reset()func (*DeleteDiscoveryConfigRequest) String
func (x *DeleteDiscoveryConfigRequest) String() stringDeleteDlpJobRequest
type DeleteDlpJobRequest struct {
// Required. The name of the DlpJob resource to be deleted.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request message for deleting a DLP job.
func (*DeleteDlpJobRequest) Descriptor
func (*DeleteDlpJobRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteDlpJobRequest.ProtoReflect.Descriptor instead.
func (*DeleteDlpJobRequest) GetName
func (x *DeleteDlpJobRequest) GetName() stringfunc (*DeleteDlpJobRequest) ProtoMessage
func (*DeleteDlpJobRequest) ProtoMessage()func (*DeleteDlpJobRequest) ProtoReflect
func (x *DeleteDlpJobRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteDlpJobRequest) Reset
func (x *DeleteDlpJobRequest) Reset()func (*DeleteDlpJobRequest) String
func (x *DeleteDlpJobRequest) String() stringDeleteFileStoreDataProfileRequest
type DeleteFileStoreDataProfileRequest struct {
// Required. Resource name of the file store data profile.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteFileStoreProfile.
func (*DeleteFileStoreDataProfileRequest) Descriptor
func (*DeleteFileStoreDataProfileRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteFileStoreDataProfileRequest.ProtoReflect.Descriptor instead.
func (*DeleteFileStoreDataProfileRequest) GetName
func (x *DeleteFileStoreDataProfileRequest) GetName() stringfunc (*DeleteFileStoreDataProfileRequest) ProtoMessage
func (*DeleteFileStoreDataProfileRequest) ProtoMessage()func (*DeleteFileStoreDataProfileRequest) ProtoReflect
func (x *DeleteFileStoreDataProfileRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteFileStoreDataProfileRequest) Reset
func (x *DeleteFileStoreDataProfileRequest) Reset()func (*DeleteFileStoreDataProfileRequest) String
func (x *DeleteFileStoreDataProfileRequest) String() stringDeleteInspectTemplateRequest
type DeleteInspectTemplateRequest struct {
// Required. Resource name of the organization and inspectTemplate to be
// deleted, for example `organizations/433245324/inspectTemplates/432452342`
// or projects/project-id/inspectTemplates/432452342.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteInspectTemplate.
func (*DeleteInspectTemplateRequest) Descriptor
func (*DeleteInspectTemplateRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteInspectTemplateRequest.ProtoReflect.Descriptor instead.
func (*DeleteInspectTemplateRequest) GetName
func (x *DeleteInspectTemplateRequest) GetName() stringfunc (*DeleteInspectTemplateRequest) ProtoMessage
func (*DeleteInspectTemplateRequest) ProtoMessage()func (*DeleteInspectTemplateRequest) ProtoReflect
func (x *DeleteInspectTemplateRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteInspectTemplateRequest) Reset
func (x *DeleteInspectTemplateRequest) Reset()func (*DeleteInspectTemplateRequest) String
func (x *DeleteInspectTemplateRequest) String() stringDeleteJobTriggerRequest
type DeleteJobTriggerRequest struct {
// Required. Resource name of the project and the triggeredJob, for example
// `projects/dlp-test-project/jobTriggers/53234423`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteJobTrigger.
func (*DeleteJobTriggerRequest) Descriptor
func (*DeleteJobTriggerRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteJobTriggerRequest.ProtoReflect.Descriptor instead.
func (*DeleteJobTriggerRequest) GetName
func (x *DeleteJobTriggerRequest) GetName() stringfunc (*DeleteJobTriggerRequest) ProtoMessage
func (*DeleteJobTriggerRequest) ProtoMessage()func (*DeleteJobTriggerRequest) ProtoReflect
func (x *DeleteJobTriggerRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteJobTriggerRequest) Reset
func (x *DeleteJobTriggerRequest) Reset()func (*DeleteJobTriggerRequest) String
func (x *DeleteJobTriggerRequest) String() stringDeleteStoredInfoTypeRequest
type DeleteStoredInfoTypeRequest struct {
// Required. Resource name of the organization and storedInfoType to be
// deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
// projects/project-id/storedInfoTypes/432452342.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteStoredInfoType.
func (*DeleteStoredInfoTypeRequest) Descriptor
func (*DeleteStoredInfoTypeRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteStoredInfoTypeRequest.ProtoReflect.Descriptor instead.
func (*DeleteStoredInfoTypeRequest) GetName
func (x *DeleteStoredInfoTypeRequest) GetName() stringfunc (*DeleteStoredInfoTypeRequest) ProtoMessage
func (*DeleteStoredInfoTypeRequest) ProtoMessage()func (*DeleteStoredInfoTypeRequest) ProtoReflect
func (x *DeleteStoredInfoTypeRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteStoredInfoTypeRequest) Reset
func (x *DeleteStoredInfoTypeRequest) Reset()func (*DeleteStoredInfoTypeRequest) String
func (x *DeleteStoredInfoTypeRequest) String() stringDeleteTableDataProfileRequest
type DeleteTableDataProfileRequest struct {
// Required. Resource name of the table data profile.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for DeleteTableProfile.
func (*DeleteTableDataProfileRequest) Descriptor
func (*DeleteTableDataProfileRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteTableDataProfileRequest.ProtoReflect.Descriptor instead.
func (*DeleteTableDataProfileRequest) GetName
func (x *DeleteTableDataProfileRequest) GetName() stringfunc (*DeleteTableDataProfileRequest) ProtoMessage
func (*DeleteTableDataProfileRequest) ProtoMessage()func (*DeleteTableDataProfileRequest) ProtoReflect
func (x *DeleteTableDataProfileRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteTableDataProfileRequest) Reset
func (x *DeleteTableDataProfileRequest) Reset()func (*DeleteTableDataProfileRequest) String
func (x *DeleteTableDataProfileRequest) String() stringDisabled
type Disabled struct {
// contains filtered or unexported fields
}Do not profile the tables.
func (*Disabled) Descriptor
Deprecated: Use Disabled.ProtoReflect.Descriptor instead.
func (*Disabled) ProtoMessage
func (*Disabled) ProtoMessage()func (*Disabled) ProtoReflect
func (x *Disabled) ProtoReflect() protoreflect.Messagefunc (*Disabled) Reset
func (x *Disabled) Reset()func (*Disabled) String
DiscoveryBigQueryConditions
type DiscoveryBigQueryConditions struct {
// BigQuery table must have been created after this date. Used to avoid
// backfilling.
CreatedAfter *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_after,json=createdAfter,proto3" json:"created_after,omitempty"`
// The type of BigQuery tables to scan. If nothing is set the default
// behavior is to scan only tables of type TABLE and to give errors
// for all unsupported tables.
//
// Types that are assignable to IncludedTypes:
//
// *DiscoveryBigQueryConditions_Types
// *DiscoveryBigQueryConditions_TypeCollection
IncludedTypes isDiscoveryBigQueryConditions_IncludedTypes `protobuf_oneof:"included_types"`
// At least one of the conditions must be true for a table to be scanned.
OrConditions *DiscoveryBigQueryConditions_OrConditions `protobuf:"bytes,4,opt,name=or_conditions,json=orConditions,proto3" json:"or_conditions,omitempty"`
// contains filtered or unexported fields
}Requirements that must be true before a table is scanned in discovery for the first time. There is an AND relationship between the top-level attributes. Additionally, minimum conditions with an OR relationship that must be met before Cloud DLP scans a table can be set (like a minimum row count or a minimum table age).
func (*DiscoveryBigQueryConditions) Descriptor
func (*DiscoveryBigQueryConditions) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryBigQueryConditions.ProtoReflect.Descriptor instead.
func (*DiscoveryBigQueryConditions) GetCreatedAfter
func (x *DiscoveryBigQueryConditions) GetCreatedAfter() *timestamppb.Timestampfunc (*DiscoveryBigQueryConditions) GetIncludedTypes
func (m *DiscoveryBigQueryConditions) GetIncludedTypes() isDiscoveryBigQueryConditions_IncludedTypesfunc (*DiscoveryBigQueryConditions) GetOrConditions
func (x *DiscoveryBigQueryConditions) GetOrConditions() *DiscoveryBigQueryConditions_OrConditionsfunc (*DiscoveryBigQueryConditions) GetTypeCollection
func (x *DiscoveryBigQueryConditions) GetTypeCollection() BigQueryTableTypeCollectionfunc (*DiscoveryBigQueryConditions) GetTypes
func (x *DiscoveryBigQueryConditions) GetTypes() *BigQueryTableTypesfunc (*DiscoveryBigQueryConditions) ProtoMessage
func (*DiscoveryBigQueryConditions) ProtoMessage()func (*DiscoveryBigQueryConditions) ProtoReflect
func (x *DiscoveryBigQueryConditions) ProtoReflect() protoreflect.Messagefunc (*DiscoveryBigQueryConditions) Reset
func (x *DiscoveryBigQueryConditions) Reset()func (*DiscoveryBigQueryConditions) String
func (x *DiscoveryBigQueryConditions) String() stringDiscoveryBigQueryConditions_OrConditions
type DiscoveryBigQueryConditions_OrConditions struct {
// Minimum number of rows that should be present before Cloud DLP
// profiles a table
MinRowCount int32 `protobuf:"varint,1,opt,name=min_row_count,json=minRowCount,proto3" json:"min_row_count,omitempty"`
// Minimum age a table must have before Cloud DLP can profile it. Value must
// be 1 hour or greater.
MinAge *durationpb.Duration `protobuf:"bytes,2,opt,name=min_age,json=minAge,proto3" json:"min_age,omitempty"`
// contains filtered or unexported fields
}There is an OR relationship between these attributes. They are used to determine if a table should be scanned or not in Discovery.
func (*DiscoveryBigQueryConditions_OrConditions) Descriptor
func (*DiscoveryBigQueryConditions_OrConditions) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryBigQueryConditions_OrConditions.ProtoReflect.Descriptor instead.
func (*DiscoveryBigQueryConditions_OrConditions) GetMinAge
func (x *DiscoveryBigQueryConditions_OrConditions) GetMinAge() *durationpb.Durationfunc (*DiscoveryBigQueryConditions_OrConditions) GetMinRowCount
func (x *DiscoveryBigQueryConditions_OrConditions) GetMinRowCount() int32func (*DiscoveryBigQueryConditions_OrConditions) ProtoMessage
func (*DiscoveryBigQueryConditions_OrConditions) ProtoMessage()func (*DiscoveryBigQueryConditions_OrConditions) ProtoReflect
func (x *DiscoveryBigQueryConditions_OrConditions) ProtoReflect() protoreflect.Messagefunc (*DiscoveryBigQueryConditions_OrConditions) Reset
func (x *DiscoveryBigQueryConditions_OrConditions) Reset()func (*DiscoveryBigQueryConditions_OrConditions) String
func (x *DiscoveryBigQueryConditions_OrConditions) String() stringDiscoveryBigQueryConditions_TypeCollection
type DiscoveryBigQueryConditions_TypeCollection struct {
// Restrict discovery to categories of table types.
TypeCollection BigQueryTableTypeCollection `protobuf:"varint,3,opt,name=type_collection,json=typeCollection,proto3,enum=google.privacy.dlp.v2.BigQueryTableTypeCollection,oneof"`
}DiscoveryBigQueryConditions_Types
type DiscoveryBigQueryConditions_Types struct {
// Restrict discovery to specific table types.
Types *BigQueryTableTypes `protobuf:"bytes,2,opt,name=types,proto3,oneof"`
}DiscoveryBigQueryFilter
type DiscoveryBigQueryFilter struct {
// Whether the filter applies to a specific set of tables or all other tables
// within the location being profiled. The first filter to match will be
// applied, regardless of the condition. If none is set, will default to
// `other_tables`.
//
// Types that are assignable to Filter:
//
// *DiscoveryBigQueryFilter_Tables
// *DiscoveryBigQueryFilter_OtherTables
// *DiscoveryBigQueryFilter_TableReference
Filter isDiscoveryBigQueryFilter_Filter `protobuf_oneof:"filter"`
// contains filtered or unexported fields
}Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, dataset ID, and table ID.
func (*DiscoveryBigQueryFilter) Descriptor
func (*DiscoveryBigQueryFilter) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryBigQueryFilter.ProtoReflect.Descriptor instead.
func (*DiscoveryBigQueryFilter) GetFilter
func (m *DiscoveryBigQueryFilter) GetFilter() isDiscoveryBigQueryFilter_Filterfunc (*DiscoveryBigQueryFilter) GetOtherTables
func (x *DiscoveryBigQueryFilter) GetOtherTables() *DiscoveryBigQueryFilter_AllOtherBigQueryTablesfunc (*DiscoveryBigQueryFilter) GetTableReference
func (x *DiscoveryBigQueryFilter) GetTableReference() *TableReferencefunc (*DiscoveryBigQueryFilter) GetTables
func (x *DiscoveryBigQueryFilter) GetTables() *BigQueryTableCollectionfunc (*DiscoveryBigQueryFilter) ProtoMessage
func (*DiscoveryBigQueryFilter) ProtoMessage()func (*DiscoveryBigQueryFilter) ProtoReflect
func (x *DiscoveryBigQueryFilter) ProtoReflect() protoreflect.Messagefunc (*DiscoveryBigQueryFilter) Reset
func (x *DiscoveryBigQueryFilter) Reset()func (*DiscoveryBigQueryFilter) String
func (x *DiscoveryBigQueryFilter) String() stringDiscoveryBigQueryFilter_AllOtherBigQueryTables
type DiscoveryBigQueryFilter_AllOtherBigQueryTables struct {
// contains filtered or unexported fields
}Catch-all for all other tables not specified by other filters. Should always be last, except for single-table configurations, which will only have a TableReference target.
func (*DiscoveryBigQueryFilter_AllOtherBigQueryTables) Descriptor
func (*DiscoveryBigQueryFilter_AllOtherBigQueryTables) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryBigQueryFilter_AllOtherBigQueryTables.ProtoReflect.Descriptor instead.
func (*DiscoveryBigQueryFilter_AllOtherBigQueryTables) ProtoMessage
func (*DiscoveryBigQueryFilter_AllOtherBigQueryTables) ProtoMessage()func (*DiscoveryBigQueryFilter_AllOtherBigQueryTables) ProtoReflect
func (x *DiscoveryBigQueryFilter_AllOtherBigQueryTables) ProtoReflect() protoreflect.Messagefunc (*DiscoveryBigQueryFilter_AllOtherBigQueryTables) Reset
func (x *DiscoveryBigQueryFilter_AllOtherBigQueryTables) Reset()func (*DiscoveryBigQueryFilter_AllOtherBigQueryTables) String
func (x *DiscoveryBigQueryFilter_AllOtherBigQueryTables) String() stringDiscoveryBigQueryFilter_OtherTables
type DiscoveryBigQueryFilter_OtherTables struct {
// Catch-all. This should always be the last filter in the list because
// anything above it will apply first. Should only appear once in a
// configuration. If none is specified, a default one will be added
// automatically.
OtherTables *DiscoveryBigQueryFilter_AllOtherBigQueryTables `protobuf:"bytes,2,opt,name=other_tables,json=otherTables,proto3,oneof"`
}DiscoveryBigQueryFilter_TableReference
type DiscoveryBigQueryFilter_TableReference struct {
// The table to scan. Discovery configurations including this can only
// include one DiscoveryTarget (the DiscoveryTarget with this
// TableReference).
TableReference *TableReference `protobuf:"bytes,3,opt,name=table_reference,json=tableReference,proto3,oneof"`
}DiscoveryBigQueryFilter_Tables
type DiscoveryBigQueryFilter_Tables struct {
// A specific set of tables for this filter to apply to. A table collection
// must be specified in only one filter per config.
// If a table id or dataset is empty, Cloud DLP assumes all tables in that
// collection must be profiled. Must specify a project ID.
Tables *BigQueryTableCollection `protobuf:"bytes,1,opt,name=tables,proto3,oneof"`
}DiscoveryCloudSqlConditions
type DiscoveryCloudSqlConditions struct {
// Optional. Database engines that should be profiled.
// Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
DatabaseEngines []DiscoveryCloudSqlConditions_DatabaseEngine `protobuf:"varint,1,rep,packed,name=database_engines,json=databaseEngines,proto3,enum=google.privacy.dlp.v2.DiscoveryCloudSqlConditions_DatabaseEngine" json:"database_engines,omitempty"`
// Data profiles will only be generated for the database resource types
// specified in this field.
// If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
Types []DiscoveryCloudSqlConditions_DatabaseResourceType `protobuf:"varint,3,rep,packed,name=types,proto3,enum=google.privacy.dlp.v2.DiscoveryCloudSqlConditions_DatabaseResourceType" json:"types,omitempty"`
// contains filtered or unexported fields
}Requirements that must be true before a table is profiled for the first time.
func (*DiscoveryCloudSqlConditions) Descriptor
func (*DiscoveryCloudSqlConditions) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryCloudSqlConditions.ProtoReflect.Descriptor instead.
func (*DiscoveryCloudSqlConditions) GetDatabaseEngines
func (x *DiscoveryCloudSqlConditions) GetDatabaseEngines() []DiscoveryCloudSqlConditions_DatabaseEnginefunc (*DiscoveryCloudSqlConditions) GetTypes
func (x *DiscoveryCloudSqlConditions) GetTypes() []DiscoveryCloudSqlConditions_DatabaseResourceTypefunc (*DiscoveryCloudSqlConditions) ProtoMessage
func (*DiscoveryCloudSqlConditions) ProtoMessage()func (*DiscoveryCloudSqlConditions) ProtoReflect
func (x *DiscoveryCloudSqlConditions) ProtoReflect() protoreflect.Messagefunc (*DiscoveryCloudSqlConditions) Reset
func (x *DiscoveryCloudSqlConditions) Reset()func (*DiscoveryCloudSqlConditions) String
func (x *DiscoveryCloudSqlConditions) String() stringDiscoveryCloudSqlConditions_DatabaseEngine
type DiscoveryCloudSqlConditions_DatabaseEngine int32The database engines that should be profiled.
DiscoveryCloudSqlConditions_DATABASE_ENGINE_UNSPECIFIED, DiscoveryCloudSqlConditions_ALL_SUPPORTED_DATABASE_ENGINES, DiscoveryCloudSqlConditions_MYSQL, DiscoveryCloudSqlConditions_POSTGRES
const (
// Unused.
DiscoveryCloudSqlConditions_DATABASE_ENGINE_UNSPECIFIED DiscoveryCloudSqlConditions_DatabaseEngine = 0
// Include all supported database engines.
DiscoveryCloudSqlConditions_ALL_SUPPORTED_DATABASE_ENGINES DiscoveryCloudSqlConditions_DatabaseEngine = 1
// MySQL database.
DiscoveryCloudSqlConditions_MYSQL DiscoveryCloudSqlConditions_DatabaseEngine = 2
// PostgreSQL database.
DiscoveryCloudSqlConditions_POSTGRES DiscoveryCloudSqlConditions_DatabaseEngine = 3
)func (DiscoveryCloudSqlConditions_DatabaseEngine) Descriptor
func (DiscoveryCloudSqlConditions_DatabaseEngine) Descriptor() protoreflect.EnumDescriptorfunc (DiscoveryCloudSqlConditions_DatabaseEngine) Enum
func (x DiscoveryCloudSqlConditions_DatabaseEngine) Enum() *DiscoveryCloudSqlConditions_DatabaseEnginefunc (DiscoveryCloudSqlConditions_DatabaseEngine) EnumDescriptor
func (DiscoveryCloudSqlConditions_DatabaseEngine) EnumDescriptor() ([]byte, []int)Deprecated: Use DiscoveryCloudSqlConditions_DatabaseEngine.Descriptor instead.
func (DiscoveryCloudSqlConditions_DatabaseEngine) Number
func (x DiscoveryCloudSqlConditions_DatabaseEngine) Number() protoreflect.EnumNumberfunc (DiscoveryCloudSqlConditions_DatabaseEngine) String
func (x DiscoveryCloudSqlConditions_DatabaseEngine) String() stringfunc (DiscoveryCloudSqlConditions_DatabaseEngine) Type
func (DiscoveryCloudSqlConditions_DatabaseEngine) Type() protoreflect.EnumTypeDiscoveryCloudSqlConditions_DatabaseResourceType
type DiscoveryCloudSqlConditions_DatabaseResourceType int32Cloud SQL database resource types. New values can be added at a later time.
DiscoveryCloudSqlConditions_DATABASE_RESOURCE_TYPE_UNSPECIFIED, DiscoveryCloudSqlConditions_DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES, DiscoveryCloudSqlConditions_DATABASE_RESOURCE_TYPE_TABLE
const (
// Unused.
DiscoveryCloudSqlConditions_DATABASE_RESOURCE_TYPE_UNSPECIFIED DiscoveryCloudSqlConditions_DatabaseResourceType = 0
// Includes database resource types that become supported at a later time.
DiscoveryCloudSqlConditions_DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES DiscoveryCloudSqlConditions_DatabaseResourceType = 1
// Tables.
DiscoveryCloudSqlConditions_DATABASE_RESOURCE_TYPE_TABLE DiscoveryCloudSqlConditions_DatabaseResourceType = 2
)func (DiscoveryCloudSqlConditions_DatabaseResourceType) Descriptor
func (DiscoveryCloudSqlConditions_DatabaseResourceType) Descriptor() protoreflect.EnumDescriptorfunc (DiscoveryCloudSqlConditions_DatabaseResourceType) Enum
func (x DiscoveryCloudSqlConditions_DatabaseResourceType) Enum() *DiscoveryCloudSqlConditions_DatabaseResourceTypefunc (DiscoveryCloudSqlConditions_DatabaseResourceType) EnumDescriptor
func (DiscoveryCloudSqlConditions_DatabaseResourceType) EnumDescriptor() ([]byte, []int)Deprecated: Use DiscoveryCloudSqlConditions_DatabaseResourceType.Descriptor instead.
func (DiscoveryCloudSqlConditions_DatabaseResourceType) Number
func (x DiscoveryCloudSqlConditions_DatabaseResourceType) Number() protoreflect.EnumNumberfunc (DiscoveryCloudSqlConditions_DatabaseResourceType) String
func (x DiscoveryCloudSqlConditions_DatabaseResourceType) String() stringfunc (DiscoveryCloudSqlConditions_DatabaseResourceType) Type
DiscoveryCloudSqlFilter
type DiscoveryCloudSqlFilter struct {
// Whether the filter applies to a specific set of database resources or all
// other database resources within the location being profiled. The first
// filter to match will be applied, regardless of the condition. If none is
// set, will default to `others`.
//
// Types that are assignable to Filter:
//
// *DiscoveryCloudSqlFilter_Collection
// *DiscoveryCloudSqlFilter_Others
// *DiscoveryCloudSqlFilter_DatabaseResourceReference
Filter isDiscoveryCloudSqlFilter_Filter `protobuf_oneof:"filter"`
// contains filtered or unexported fields
}Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name.
func (*DiscoveryCloudSqlFilter) Descriptor
func (*DiscoveryCloudSqlFilter) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryCloudSqlFilter.ProtoReflect.Descriptor instead.
func (*DiscoveryCloudSqlFilter) GetCollection
func (x *DiscoveryCloudSqlFilter) GetCollection() *DatabaseResourceCollectionfunc (*DiscoveryCloudSqlFilter) GetDatabaseResourceReference
func (x *DiscoveryCloudSqlFilter) GetDatabaseResourceReference() *DatabaseResourceReferencefunc (*DiscoveryCloudSqlFilter) GetFilter
func (m *DiscoveryCloudSqlFilter) GetFilter() isDiscoveryCloudSqlFilter_Filterfunc (*DiscoveryCloudSqlFilter) GetOthers
func (x *DiscoveryCloudSqlFilter) GetOthers() *AllOtherDatabaseResourcesfunc (*DiscoveryCloudSqlFilter) ProtoMessage
func (*DiscoveryCloudSqlFilter) ProtoMessage()func (*DiscoveryCloudSqlFilter) ProtoReflect
func (x *DiscoveryCloudSqlFilter) ProtoReflect() protoreflect.Messagefunc (*DiscoveryCloudSqlFilter) Reset
func (x *DiscoveryCloudSqlFilter) Reset()func (*DiscoveryCloudSqlFilter) String
func (x *DiscoveryCloudSqlFilter) String() stringDiscoveryCloudSqlFilter_Collection
type DiscoveryCloudSqlFilter_Collection struct {
// A specific set of database resources for this filter to apply to.
Collection *DatabaseResourceCollection `protobuf:"bytes,1,opt,name=collection,proto3,oneof"`
}DiscoveryCloudSqlFilter_DatabaseResourceReference
type DiscoveryCloudSqlFilter_DatabaseResourceReference struct {
// The database resource to scan. Targets including this can only include
// one target (the target with this database resource reference).
DatabaseResourceReference *DatabaseResourceReference `protobuf:"bytes,3,opt,name=database_resource_reference,json=databaseResourceReference,proto3,oneof"`
}DiscoveryCloudSqlFilter_Others
type DiscoveryCloudSqlFilter_Others struct {
// Catch-all. This should always be the last target in the list because
// anything above it will apply first. Should only appear once in a
// configuration. If none is specified, a default one will be added
// automatically.
Others *AllOtherDatabaseResources `protobuf:"bytes,2,opt,name=others,proto3,oneof"`
}DiscoveryCloudSqlGenerationCadence
type DiscoveryCloudSqlGenerationCadence struct {
// When to reprofile if the schema has changed.
SchemaModifiedCadence *DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence `protobuf:"bytes,1,opt,name=schema_modified_cadence,json=schemaModifiedCadence,proto3" json:"schema_modified_cadence,omitempty"`
// Data changes (non-schema changes) in Cloud SQL tables can't trigger
// reprofiling. If you set this field, profiles are refreshed at this
// frequency regardless of whether the underlying tables have changed.
// Defaults to never.
RefreshFrequency DataProfileUpdateFrequency `protobuf:"varint,2,opt,name=refresh_frequency,json=refreshFrequency,proto3,enum=google.privacy.dlp.v2.DataProfileUpdateFrequency" json:"refresh_frequency,omitempty"`
// Governs when to update data profiles when the inspection rules
// defined by the `InspectTemplate` change.
// If not set, changing the template will not cause a data profile to update.
InspectTemplateModifiedCadence *DiscoveryInspectTemplateModifiedCadence `protobuf:"bytes,3,opt,name=inspect_template_modified_cadence,json=inspectTemplateModifiedCadence,proto3" json:"inspect_template_modified_cadence,omitempty"`
// contains filtered or unexported fields
}How often existing tables should have their profiles refreshed. New tables are scanned as quickly as possible depending on system capacity.
func (*DiscoveryCloudSqlGenerationCadence) Descriptor
func (*DiscoveryCloudSqlGenerationCadence) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryCloudSqlGenerationCadence.ProtoReflect.Descriptor instead.
func (*DiscoveryCloudSqlGenerationCadence) GetInspectTemplateModifiedCadence
func (x *DiscoveryCloudSqlGenerationCadence) GetInspectTemplateModifiedCadence() *DiscoveryInspectTemplateModifiedCadencefunc (*DiscoveryCloudSqlGenerationCadence) GetRefreshFrequency
func (x *DiscoveryCloudSqlGenerationCadence) GetRefreshFrequency() DataProfileUpdateFrequencyfunc (*DiscoveryCloudSqlGenerationCadence) GetSchemaModifiedCadence
func (x *DiscoveryCloudSqlGenerationCadence) GetSchemaModifiedCadence() *DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadencefunc (*DiscoveryCloudSqlGenerationCadence) ProtoMessage
func (*DiscoveryCloudSqlGenerationCadence) ProtoMessage()func (*DiscoveryCloudSqlGenerationCadence) ProtoReflect
func (x *DiscoveryCloudSqlGenerationCadence) ProtoReflect() protoreflect.Messagefunc (*DiscoveryCloudSqlGenerationCadence) Reset
func (x *DiscoveryCloudSqlGenerationCadence) Reset()func (*DiscoveryCloudSqlGenerationCadence) String
func (x *DiscoveryCloudSqlGenerationCadence) String() stringDiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence
type DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence struct {
// The types of schema modifications to consider.
// Defaults to NEW_COLUMNS.
Types []DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification `protobuf:"varint,1,rep,packed,name=types,proto3,enum=google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification" json:"types,omitempty"`
// Frequency to regenerate data profiles when the schema is modified.
// Defaults to monthly.
Frequency DataProfileUpdateFrequency `protobuf:"varint,2,opt,name=frequency,proto3,enum=google.privacy.dlp.v2.DataProfileUpdateFrequency" json:"frequency,omitempty"`
// contains filtered or unexported fields
}How frequently to modify the profile when the table's schema is modified.
func (*DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence) Descriptor
func (*DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence.ProtoReflect.Descriptor instead.
func (*DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence) GetFrequency
func (x *DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence) GetFrequency() DataProfileUpdateFrequencyfunc (*DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence) GetTypes
func (x *DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence) GetTypes() []DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModificationfunc (*DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence) ProtoMessage
func (*DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence) ProtoMessage()func (*DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence) ProtoReflect
func (x *DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence) ProtoReflect() protoreflect.Messagefunc (*DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence) Reset
func (x *DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence) Reset()func (*DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence) String
func (x *DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence) String() stringDiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification
type DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification int32The type of modification that causes a profile update.
DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_SQL_SCHEMA_MODIFICATION_UNSPECIFIED, DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_NEW_COLUMNS, DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_REMOVED_COLUMNS
const (
// Unused.
DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_SQL_SCHEMA_MODIFICATION_UNSPECIFIED DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification = 0
// New columns have appeared.
DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_NEW_COLUMNS DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification = 1
// Columns have been removed from the table.
DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_REMOVED_COLUMNS DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification = 2
)func (DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification) Descriptor
func (DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification) Descriptor() protoreflect.EnumDescriptorfunc (DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification) Enum
func (x DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification) Enum() *DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModificationfunc (DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification) EnumDescriptor
func (DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification) EnumDescriptor() ([]byte, []int)Deprecated: Use DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification.Descriptor instead.
func (DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification) Number
func (x DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification) Number() protoreflect.EnumNumberfunc (DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification) String
func (x DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification) String() stringfunc (DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification) Type
func (DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification) Type() protoreflect.EnumTypeDiscoveryCloudStorageConditions
type DiscoveryCloudStorageConditions struct {
// Required. Only objects with the specified attributes will be scanned. If an
// object has one of the specified attributes but is inside an excluded
// bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A
// profile will be created even if no objects match the
// included_object_attributes.
IncludedObjectAttributes []DiscoveryCloudStorageConditions_CloudStorageObjectAttribute `protobuf:"varint,1,rep,packed,name=included_object_attributes,json=includedObjectAttributes,proto3,enum=google.privacy.dlp.v2.DiscoveryCloudStorageConditions_CloudStorageObjectAttribute" json:"included_object_attributes,omitempty"`
// Required. Only objects with the specified attributes will be scanned.
// Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
IncludedBucketAttributes []DiscoveryCloudStorageConditions_CloudStorageBucketAttribute `protobuf:"varint,2,rep,packed,name=included_bucket_attributes,json=includedBucketAttributes,proto3,enum=google.privacy.dlp.v2.DiscoveryCloudStorageConditions_CloudStorageBucketAttribute" json:"included_bucket_attributes,omitempty"`
// contains filtered or unexported fields
}Requirements that must be true before a Cloud Storage bucket or object is scanned in discovery for the first time. There is an AND relationship between the top-level attributes.
func (*DiscoveryCloudStorageConditions) Descriptor
func (*DiscoveryCloudStorageConditions) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryCloudStorageConditions.ProtoReflect.Descriptor instead.
func (*DiscoveryCloudStorageConditions) GetIncludedBucketAttributes
func (x *DiscoveryCloudStorageConditions) GetIncludedBucketAttributes() []DiscoveryCloudStorageConditions_CloudStorageBucketAttributefunc (*DiscoveryCloudStorageConditions) GetIncludedObjectAttributes
func (x *DiscoveryCloudStorageConditions) GetIncludedObjectAttributes() []DiscoveryCloudStorageConditions_CloudStorageObjectAttributefunc (*DiscoveryCloudStorageConditions) ProtoMessage
func (*DiscoveryCloudStorageConditions) ProtoMessage()func (*DiscoveryCloudStorageConditions) ProtoReflect
func (x *DiscoveryCloudStorageConditions) ProtoReflect() protoreflect.Messagefunc (*DiscoveryCloudStorageConditions) Reset
func (x *DiscoveryCloudStorageConditions) Reset()func (*DiscoveryCloudStorageConditions) String
func (x *DiscoveryCloudStorageConditions) String() stringDiscoveryCloudStorageConditions_CloudStorageBucketAttribute
type DiscoveryCloudStorageConditions_CloudStorageBucketAttribute int32The attribute of a bucket.
DiscoveryCloudStorageConditions_CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED, DiscoveryCloudStorageConditions_ALL_SUPPORTED_BUCKETS, DiscoveryCloudStorageConditions_AUTOCLASS_DISABLED, DiscoveryCloudStorageConditions_AUTOCLASS_ENABLED
const (
// Unused.
DiscoveryCloudStorageConditions_CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED DiscoveryCloudStorageConditions_CloudStorageBucketAttribute = 0
// Scan buckets regardless of the attribute.
DiscoveryCloudStorageConditions_ALL_SUPPORTED_BUCKETS DiscoveryCloudStorageConditions_CloudStorageBucketAttribute = 1
// Buckets with [Autoclass](https://cloud.google.com/storage/docs/autoclass)
// disabled. Only one of
// AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set.
DiscoveryCloudStorageConditions_AUTOCLASS_DISABLED DiscoveryCloudStorageConditions_CloudStorageBucketAttribute = 2
// Buckets with [Autoclass](https://cloud.google.com/storage/docs/autoclass)
// enabled. Only one of
// AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. Scanning
// Autoclass-enabled buckets can affect object storage classes.
DiscoveryCloudStorageConditions_AUTOCLASS_ENABLED DiscoveryCloudStorageConditions_CloudStorageBucketAttribute = 3
)func (DiscoveryCloudStorageConditions_CloudStorageBucketAttribute) Descriptor
func (DiscoveryCloudStorageConditions_CloudStorageBucketAttribute) Descriptor() protoreflect.EnumDescriptorfunc (DiscoveryCloudStorageConditions_CloudStorageBucketAttribute) Enum
func (x DiscoveryCloudStorageConditions_CloudStorageBucketAttribute) Enum() *DiscoveryCloudStorageConditions_CloudStorageBucketAttributefunc (DiscoveryCloudStorageConditions_CloudStorageBucketAttribute) EnumDescriptor
func (DiscoveryCloudStorageConditions_CloudStorageBucketAttribute) EnumDescriptor() ([]byte, []int)Deprecated: Use DiscoveryCloudStorageConditions_CloudStorageBucketAttribute.Descriptor instead.
func (DiscoveryCloudStorageConditions_CloudStorageBucketAttribute) Number
func (x DiscoveryCloudStorageConditions_CloudStorageBucketAttribute) Number() protoreflect.EnumNumberfunc (DiscoveryCloudStorageConditions_CloudStorageBucketAttribute) String
func (x DiscoveryCloudStorageConditions_CloudStorageBucketAttribute) String() stringfunc (DiscoveryCloudStorageConditions_CloudStorageBucketAttribute) Type
DiscoveryCloudStorageConditions_CloudStorageObjectAttribute
type DiscoveryCloudStorageConditions_CloudStorageObjectAttribute int32The attribute of an object. See https://cloud.google.com/storage/docs/storage-classes for more information on storage classes.
DiscoveryCloudStorageConditions_CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED, DiscoveryCloudStorageConditions_ALL_SUPPORTED_OBJECTS, DiscoveryCloudStorageConditions_STANDARD, DiscoveryCloudStorageConditions_NEARLINE, DiscoveryCloudStorageConditions_COLDLINE, DiscoveryCloudStorageConditions_ARCHIVE, DiscoveryCloudStorageConditions_REGIONAL, DiscoveryCloudStorageConditions_MULTI_REGIONAL, DiscoveryCloudStorageConditions_DURABLE_REDUCED_AVAILABILITY
const (
// Unused.
DiscoveryCloudStorageConditions_CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED DiscoveryCloudStorageConditions_CloudStorageObjectAttribute = 0
// Scan objects regardless of the attribute.
DiscoveryCloudStorageConditions_ALL_SUPPORTED_OBJECTS DiscoveryCloudStorageConditions_CloudStorageObjectAttribute = 1
// Scan objects with the standard storage class.
DiscoveryCloudStorageConditions_STANDARD DiscoveryCloudStorageConditions_CloudStorageObjectAttribute = 2
// Scan objects with the nearline storage class. This will incur retrieval
// fees.
DiscoveryCloudStorageConditions_NEARLINE DiscoveryCloudStorageConditions_CloudStorageObjectAttribute = 3
// Scan objects with the coldline storage class. This will incur retrieval
// fees.
DiscoveryCloudStorageConditions_COLDLINE DiscoveryCloudStorageConditions_CloudStorageObjectAttribute = 4
// Scan objects with the archive storage class. This will incur retrieval
// fees.
DiscoveryCloudStorageConditions_ARCHIVE DiscoveryCloudStorageConditions_CloudStorageObjectAttribute = 5
// Scan objects with the regional storage class.
DiscoveryCloudStorageConditions_REGIONAL DiscoveryCloudStorageConditions_CloudStorageObjectAttribute = 6
// Scan objects with the multi-regional storage class.
DiscoveryCloudStorageConditions_MULTI_REGIONAL DiscoveryCloudStorageConditions_CloudStorageObjectAttribute = 7
// Scan objects with the dual-regional storage class. This will incur
// retrieval fees.
DiscoveryCloudStorageConditions_DURABLE_REDUCED_AVAILABILITY DiscoveryCloudStorageConditions_CloudStorageObjectAttribute = 8
)func (DiscoveryCloudStorageConditions_CloudStorageObjectAttribute) Descriptor
func (DiscoveryCloudStorageConditions_CloudStorageObjectAttribute) Descriptor() protoreflect.EnumDescriptorfunc (DiscoveryCloudStorageConditions_CloudStorageObjectAttribute) Enum
func (x DiscoveryCloudStorageConditions_CloudStorageObjectAttribute) Enum() *DiscoveryCloudStorageConditions_CloudStorageObjectAttributefunc (DiscoveryCloudStorageConditions_CloudStorageObjectAttribute) EnumDescriptor
func (DiscoveryCloudStorageConditions_CloudStorageObjectAttribute) EnumDescriptor() ([]byte, []int)Deprecated: Use DiscoveryCloudStorageConditions_CloudStorageObjectAttribute.Descriptor instead.
func (DiscoveryCloudStorageConditions_CloudStorageObjectAttribute) Number
func (x DiscoveryCloudStorageConditions_CloudStorageObjectAttribute) Number() protoreflect.EnumNumberfunc (DiscoveryCloudStorageConditions_CloudStorageObjectAttribute) String
func (x DiscoveryCloudStorageConditions_CloudStorageObjectAttribute) String() stringfunc (DiscoveryCloudStorageConditions_CloudStorageObjectAttribute) Type
DiscoveryCloudStorageFilter
type DiscoveryCloudStorageFilter struct {
// Whether the filter applies to a specific set of buckets or all
// other buckets within the location being profiled. The first
// filter to match will be applied, regardless of the condition. If none is
// set, will default to `others`.
//
// Types that are assignable to Filter:
//
// *DiscoveryCloudStorageFilter_Collection
// *DiscoveryCloudStorageFilter_CloudStorageResourceReference
// *DiscoveryCloudStorageFilter_Others
Filter isDiscoveryCloudStorageFilter_Filter `protobuf_oneof:"filter"`
// contains filtered or unexported fields
}Determines which buckets will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID and bucket name.
func (*DiscoveryCloudStorageFilter) Descriptor
func (*DiscoveryCloudStorageFilter) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryCloudStorageFilter.ProtoReflect.Descriptor instead.
func (*DiscoveryCloudStorageFilter) GetCloudStorageResourceReference
func (x *DiscoveryCloudStorageFilter) GetCloudStorageResourceReference() *CloudStorageResourceReferencefunc (*DiscoveryCloudStorageFilter) GetCollection
func (x *DiscoveryCloudStorageFilter) GetCollection() *FileStoreCollectionfunc (*DiscoveryCloudStorageFilter) GetFilter
func (m *DiscoveryCloudStorageFilter) GetFilter() isDiscoveryCloudStorageFilter_Filterfunc (*DiscoveryCloudStorageFilter) GetOthers
func (x *DiscoveryCloudStorageFilter) GetOthers() *AllOtherResourcesfunc (*DiscoveryCloudStorageFilter) ProtoMessage
func (*DiscoveryCloudStorageFilter) ProtoMessage()func (*DiscoveryCloudStorageFilter) ProtoReflect
func (x *DiscoveryCloudStorageFilter) ProtoReflect() protoreflect.Messagefunc (*DiscoveryCloudStorageFilter) Reset
func (x *DiscoveryCloudStorageFilter) Reset()func (*DiscoveryCloudStorageFilter) String
func (x *DiscoveryCloudStorageFilter) String() stringDiscoveryCloudStorageFilter_CloudStorageResourceReference
type DiscoveryCloudStorageFilter_CloudStorageResourceReference struct {
// Optional. The bucket to scan. Targets including this can only include one
// target (the target with this bucket). This enables profiling the contents
// of a single bucket, while the other options allow for easy profiling of
// many bucets within a project or an organization.
CloudStorageResourceReference *CloudStorageResourceReference `protobuf:"bytes,2,opt,name=cloud_storage_resource_reference,json=cloudStorageResourceReference,proto3,oneof"`
}DiscoveryCloudStorageFilter_Collection
type DiscoveryCloudStorageFilter_Collection struct {
// Optional. A specific set of buckets for this filter to apply to.
Collection *FileStoreCollection `protobuf:"bytes,1,opt,name=collection,proto3,oneof"`
}DiscoveryCloudStorageFilter_Others
type DiscoveryCloudStorageFilter_Others struct {
// Optional. Catch-all. This should always be the last target in the list
// because anything above it will apply first. Should only appear once in a
// configuration. If none is specified, a default one will be added
// automatically.
Others *AllOtherResources `protobuf:"bytes,100,opt,name=others,proto3,oneof"`
}DiscoveryCloudStorageGenerationCadence
type DiscoveryCloudStorageGenerationCadence struct {
// Optional. Data changes in Cloud Storage can't trigger reprofiling. If you
// set this field, profiles are refreshed at this frequency regardless of
// whether the underlying buckets have changed. Defaults to never.
RefreshFrequency DataProfileUpdateFrequency `protobuf:"varint,1,opt,name=refresh_frequency,json=refreshFrequency,proto3,enum=google.privacy.dlp.v2.DataProfileUpdateFrequency" json:"refresh_frequency,omitempty"`
// Optional. Governs when to update data profiles when the inspection rules
// defined by the `InspectTemplate` change.
// If not set, changing the template will not cause a data profile to update.
InspectTemplateModifiedCadence *DiscoveryInspectTemplateModifiedCadence `protobuf:"bytes,2,opt,name=inspect_template_modified_cadence,json=inspectTemplateModifiedCadence,proto3" json:"inspect_template_modified_cadence,omitempty"`
// contains filtered or unexported fields
}How often existing buckets should have their profiles refreshed. New buckets are scanned as quickly as possible depending on system capacity.
func (*DiscoveryCloudStorageGenerationCadence) Descriptor
func (*DiscoveryCloudStorageGenerationCadence) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryCloudStorageGenerationCadence.ProtoReflect.Descriptor instead.
func (*DiscoveryCloudStorageGenerationCadence) GetInspectTemplateModifiedCadence
func (x *DiscoveryCloudStorageGenerationCadence) GetInspectTemplateModifiedCadence() *DiscoveryInspectTemplateModifiedCadencefunc (*DiscoveryCloudStorageGenerationCadence) GetRefreshFrequency
func (x *DiscoveryCloudStorageGenerationCadence) GetRefreshFrequency() DataProfileUpdateFrequencyfunc (*DiscoveryCloudStorageGenerationCadence) ProtoMessage
func (*DiscoveryCloudStorageGenerationCadence) ProtoMessage()func (*DiscoveryCloudStorageGenerationCadence) ProtoReflect
func (x *DiscoveryCloudStorageGenerationCadence) ProtoReflect() protoreflect.Messagefunc (*DiscoveryCloudStorageGenerationCadence) Reset
func (x *DiscoveryCloudStorageGenerationCadence) Reset()func (*DiscoveryCloudStorageGenerationCadence) String
func (x *DiscoveryCloudStorageGenerationCadence) String() stringDiscoveryConfig
type DiscoveryConfig struct {
// Unique resource name for the DiscoveryConfig, assigned by the service when
// the DiscoveryConfig is created, for example
// `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Display name (max 100 chars)
DisplayName string `protobuf:"bytes,11,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Only set when the parent is an org.
OrgConfig *DiscoveryConfig_OrgConfig `protobuf:"bytes,2,opt,name=org_config,json=orgConfig,proto3" json:"org_config,omitempty"`
// Must be set only when scanning other clouds.
OtherCloudStartingLocation *OtherCloudDiscoveryStartingLocation `protobuf:"bytes,12,opt,name=other_cloud_starting_location,json=otherCloudStartingLocation,proto3" json:"other_cloud_starting_location,omitempty"`
// Detection logic for profile generation.
//
// Not all template features are used by Discovery. FindingLimits,
// include_quote and exclude_info_types have no impact on
// Discovery.
//
// Multiple templates may be provided if there is data in multiple regions.
// At most one template must be specified per-region (including "global").
// Each region is scanned using the applicable template. If no region-specific
// template is specified, but a "global" template is specified, it will be
// copied to that region and used instead. If no global or region-specific
// template is provided for a region with data, that region's data will not be
// scanned.
//
// For more information, see
// https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
InspectTemplates []string `protobuf:"bytes,3,rep,name=inspect_templates,json=inspectTemplates,proto3" json:"inspect_templates,omitempty"`
// Actions to execute at the completion of scanning.
Actions []*DataProfileAction `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"`
// Target to match against for determining what to scan and how frequently.
Targets []*DiscoveryTarget `protobuf:"bytes,5,rep,name=targets,proto3" json:"targets,omitempty"`
// Output only. A stream of errors encountered when the config was activated.
// Repeated errors may result in the config automatically being paused. Output
// only field. Will return the last 100 errors. Whenever the config is
// modified this list will be cleared.
Errors []*Error `protobuf:"bytes,6,rep,name=errors,proto3" json:"errors,omitempty"`
// Output only. The creation timestamp of a DiscoveryConfig.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The last update timestamp of a DiscoveryConfig.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. The timestamp of the last time this config was executed.
LastRunTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=last_run_time,json=lastRunTime,proto3" json:"last_run_time,omitempty"`
// Required. A status for this configuration.
Status DiscoveryConfig_Status `protobuf:"varint,10,opt,name=status,proto3,enum=google.privacy.dlp.v2.DiscoveryConfig_Status" json:"status,omitempty"`
// Optional. Processing location configuration. Vertex AI dataset scanning
// will set processing_location.image_fallback_type to MultiRegionProcessing
// by default.
ProcessingLocation *ProcessingLocation `protobuf:"bytes,13,opt,name=processing_location,json=processingLocation,proto3" json:"processing_location,omitempty"`
// contains filtered or unexported fields
}Configuration for discovery to scan resources for profile generation. Only one discovery configuration may exist per organization, folder, or project.
The generated data profiles are retained according to the data retention policy.
func (*DiscoveryConfig) Descriptor
func (*DiscoveryConfig) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryConfig.ProtoReflect.Descriptor instead.
func (*DiscoveryConfig) GetActions
func (x *DiscoveryConfig) GetActions() []*DataProfileActionfunc (*DiscoveryConfig) GetCreateTime
func (x *DiscoveryConfig) GetCreateTime() *timestamppb.Timestampfunc (*DiscoveryConfig) GetDisplayName
func (x *DiscoveryConfig) GetDisplayName() stringfunc (*DiscoveryConfig) GetErrors
func (x *DiscoveryConfig) GetErrors() []*Errorfunc (*DiscoveryConfig) GetInspectTemplates
func (x *DiscoveryConfig) GetInspectTemplates() []stringfunc (*DiscoveryConfig) GetLastRunTime
func (x *DiscoveryConfig) GetLastRunTime() *timestamppb.Timestampfunc (*DiscoveryConfig) GetName
func (x *DiscoveryConfig) GetName() stringfunc (*DiscoveryConfig) GetOrgConfig
func (x *DiscoveryConfig) GetOrgConfig() *DiscoveryConfig_OrgConfigfunc (*DiscoveryConfig) GetOtherCloudStartingLocation
func (x *DiscoveryConfig) GetOtherCloudStartingLocation() *OtherCloudDiscoveryStartingLocationfunc (*DiscoveryConfig) GetProcessingLocation
func (x *DiscoveryConfig) GetProcessingLocation() *ProcessingLocationfunc (*DiscoveryConfig) GetStatus
func (x *DiscoveryConfig) GetStatus() DiscoveryConfig_Statusfunc (*DiscoveryConfig) GetTargets
func (x *DiscoveryConfig) GetTargets() []*DiscoveryTargetfunc (*DiscoveryConfig) GetUpdateTime
func (x *DiscoveryConfig) GetUpdateTime() *timestamppb.Timestampfunc (*DiscoveryConfig) ProtoMessage
func (*DiscoveryConfig) ProtoMessage()func (*DiscoveryConfig) ProtoReflect
func (x *DiscoveryConfig) ProtoReflect() protoreflect.Messagefunc (*DiscoveryConfig) Reset
func (x *DiscoveryConfig) Reset()func (*DiscoveryConfig) String
func (x *DiscoveryConfig) String() stringDiscoveryConfig_OrgConfig
type DiscoveryConfig_OrgConfig struct {
// The data to scan: folder, org, or project
Location *DiscoveryStartingLocation `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
// The project that will run the scan. The DLP service
// account that exists within this project must have access to all resources
// that are profiled, and the DLP API must be enabled.
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// contains filtered or unexported fields
}Project and scan location information. Only set when the parent is an org.
func (*DiscoveryConfig_OrgConfig) Descriptor
func (*DiscoveryConfig_OrgConfig) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryConfig_OrgConfig.ProtoReflect.Descriptor instead.
func (*DiscoveryConfig_OrgConfig) GetLocation
func (x *DiscoveryConfig_OrgConfig) GetLocation() *DiscoveryStartingLocationfunc (*DiscoveryConfig_OrgConfig) GetProjectId
func (x *DiscoveryConfig_OrgConfig) GetProjectId() stringfunc (*DiscoveryConfig_OrgConfig) ProtoMessage
func (*DiscoveryConfig_OrgConfig) ProtoMessage()func (*DiscoveryConfig_OrgConfig) ProtoReflect
func (x *DiscoveryConfig_OrgConfig) ProtoReflect() protoreflect.Messagefunc (*DiscoveryConfig_OrgConfig) Reset
func (x *DiscoveryConfig_OrgConfig) Reset()func (*DiscoveryConfig_OrgConfig) String
func (x *DiscoveryConfig_OrgConfig) String() stringDiscoveryConfig_Status
type DiscoveryConfig_Status int32Whether the discovery config is currently active. New options may be added at a later time.
DiscoveryConfig_STATUS_UNSPECIFIED, DiscoveryConfig_RUNNING, DiscoveryConfig_PAUSED
const (
// Unused
DiscoveryConfig_STATUS_UNSPECIFIED DiscoveryConfig_Status = 0
// The discovery config is currently active.
DiscoveryConfig_RUNNING DiscoveryConfig_Status = 1
// The discovery config is paused temporarily.
DiscoveryConfig_PAUSED DiscoveryConfig_Status = 2
)func (DiscoveryConfig_Status) Descriptor
func (DiscoveryConfig_Status) Descriptor() protoreflect.EnumDescriptorfunc (DiscoveryConfig_Status) Enum
func (x DiscoveryConfig_Status) Enum() *DiscoveryConfig_Statusfunc (DiscoveryConfig_Status) EnumDescriptor
func (DiscoveryConfig_Status) EnumDescriptor() ([]byte, []int)Deprecated: Use DiscoveryConfig_Status.Descriptor instead.
func (DiscoveryConfig_Status) Number
func (x DiscoveryConfig_Status) Number() protoreflect.EnumNumberfunc (DiscoveryConfig_Status) String
func (x DiscoveryConfig_Status) String() stringfunc (DiscoveryConfig_Status) Type
func (DiscoveryConfig_Status) Type() protoreflect.EnumTypeDiscoveryFileStoreConditions
type DiscoveryFileStoreConditions struct {
// Optional. File store must have been created after this date. Used to avoid
// backfilling.
CreatedAfter *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_after,json=createdAfter,proto3" json:"created_after,omitempty"`
// Optional. Minimum age a file store must have. If set, the value must be 1
// hour or greater.
MinAge *durationpb.Duration `protobuf:"bytes,2,opt,name=min_age,json=minAge,proto3" json:"min_age,omitempty"`
// File store specific conditions.
//
// Types that are assignable to Conditions:
//
// *DiscoveryFileStoreConditions_CloudStorageConditions
Conditions isDiscoveryFileStoreConditions_Conditions `protobuf_oneof:"conditions"`
// contains filtered or unexported fields
}Requirements that must be true before a file store is scanned in discovery for the first time. There is an AND relationship between the top-level attributes.
func (*DiscoveryFileStoreConditions) Descriptor
func (*DiscoveryFileStoreConditions) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryFileStoreConditions.ProtoReflect.Descriptor instead.
func (*DiscoveryFileStoreConditions) GetCloudStorageConditions
func (x *DiscoveryFileStoreConditions) GetCloudStorageConditions() *DiscoveryCloudStorageConditionsfunc (*DiscoveryFileStoreConditions) GetConditions
func (m *DiscoveryFileStoreConditions) GetConditions() isDiscoveryFileStoreConditions_Conditionsfunc (*DiscoveryFileStoreConditions) GetCreatedAfter
func (x *DiscoveryFileStoreConditions) GetCreatedAfter() *timestamppb.Timestampfunc (*DiscoveryFileStoreConditions) GetMinAge
func (x *DiscoveryFileStoreConditions) GetMinAge() *durationpb.Durationfunc (*DiscoveryFileStoreConditions) ProtoMessage
func (*DiscoveryFileStoreConditions) ProtoMessage()func (*DiscoveryFileStoreConditions) ProtoReflect
func (x *DiscoveryFileStoreConditions) ProtoReflect() protoreflect.Messagefunc (*DiscoveryFileStoreConditions) Reset
func (x *DiscoveryFileStoreConditions) Reset()func (*DiscoveryFileStoreConditions) String
func (x *DiscoveryFileStoreConditions) String() stringDiscoveryFileStoreConditions_CloudStorageConditions
type DiscoveryFileStoreConditions_CloudStorageConditions struct {
// Optional. Cloud Storage conditions.
CloudStorageConditions *DiscoveryCloudStorageConditions `protobuf:"bytes,3,opt,name=cloud_storage_conditions,json=cloudStorageConditions,proto3,oneof"`
}DiscoveryGenerationCadence
type DiscoveryGenerationCadence struct {
// Governs when to update data profiles when a schema is modified.
SchemaModifiedCadence *DiscoverySchemaModifiedCadence `protobuf:"bytes,1,opt,name=schema_modified_cadence,json=schemaModifiedCadence,proto3" json:"schema_modified_cadence,omitempty"`
// Governs when to update data profiles when a table is modified.
TableModifiedCadence *DiscoveryTableModifiedCadence `protobuf:"bytes,2,opt,name=table_modified_cadence,json=tableModifiedCadence,proto3" json:"table_modified_cadence,omitempty"`
// Governs when to update data profiles when the inspection rules
// defined by the `InspectTemplate` change.
// If not set, changing the template will not cause a data profile to update.
InspectTemplateModifiedCadence *DiscoveryInspectTemplateModifiedCadence `protobuf:"bytes,3,opt,name=inspect_template_modified_cadence,json=inspectTemplateModifiedCadence,proto3" json:"inspect_template_modified_cadence,omitempty"`
// Frequency at which profiles should be updated, regardless of whether the
// underlying resource has changed. Defaults to never.
RefreshFrequency DataProfileUpdateFrequency `protobuf:"varint,4,opt,name=refresh_frequency,json=refreshFrequency,proto3,enum=google.privacy.dlp.v2.DataProfileUpdateFrequency" json:"refresh_frequency,omitempty"`
// contains filtered or unexported fields
}What must take place for a profile to be updated and how frequently it should occur. New tables are scanned as quickly as possible depending on system capacity.
func (*DiscoveryGenerationCadence) Descriptor
func (*DiscoveryGenerationCadence) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryGenerationCadence.ProtoReflect.Descriptor instead.
func (*DiscoveryGenerationCadence) GetInspectTemplateModifiedCadence
func (x *DiscoveryGenerationCadence) GetInspectTemplateModifiedCadence() *DiscoveryInspectTemplateModifiedCadencefunc (*DiscoveryGenerationCadence) GetRefreshFrequency
func (x *DiscoveryGenerationCadence) GetRefreshFrequency() DataProfileUpdateFrequencyfunc (*DiscoveryGenerationCadence) GetSchemaModifiedCadence
func (x *DiscoveryGenerationCadence) GetSchemaModifiedCadence() *DiscoverySchemaModifiedCadencefunc (*DiscoveryGenerationCadence) GetTableModifiedCadence
func (x *DiscoveryGenerationCadence) GetTableModifiedCadence() *DiscoveryTableModifiedCadencefunc (*DiscoveryGenerationCadence) ProtoMessage
func (*DiscoveryGenerationCadence) ProtoMessage()func (*DiscoveryGenerationCadence) ProtoReflect
func (x *DiscoveryGenerationCadence) ProtoReflect() protoreflect.Messagefunc (*DiscoveryGenerationCadence) Reset
func (x *DiscoveryGenerationCadence) Reset()func (*DiscoveryGenerationCadence) String
func (x *DiscoveryGenerationCadence) String() stringDiscoveryInspectTemplateModifiedCadence
type DiscoveryInspectTemplateModifiedCadence struct {
// How frequently data profiles can be updated when the template is modified.
// Defaults to never.
Frequency DataProfileUpdateFrequency `protobuf:"varint,1,opt,name=frequency,proto3,enum=google.privacy.dlp.v2.DataProfileUpdateFrequency" json:"frequency,omitempty"`
// contains filtered or unexported fields
}The cadence at which to update data profiles when the inspection rules
defined by the InspectTemplate change.
func (*DiscoveryInspectTemplateModifiedCadence) Descriptor
func (*DiscoveryInspectTemplateModifiedCadence) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryInspectTemplateModifiedCadence.ProtoReflect.Descriptor instead.
func (*DiscoveryInspectTemplateModifiedCadence) GetFrequency
func (x *DiscoveryInspectTemplateModifiedCadence) GetFrequency() DataProfileUpdateFrequencyfunc (*DiscoveryInspectTemplateModifiedCadence) ProtoMessage
func (*DiscoveryInspectTemplateModifiedCadence) ProtoMessage()func (*DiscoveryInspectTemplateModifiedCadence) ProtoReflect
func (x *DiscoveryInspectTemplateModifiedCadence) ProtoReflect() protoreflect.Messagefunc (*DiscoveryInspectTemplateModifiedCadence) Reset
func (x *DiscoveryInspectTemplateModifiedCadence) Reset()func (*DiscoveryInspectTemplateModifiedCadence) String
func (x *DiscoveryInspectTemplateModifiedCadence) String() stringDiscoveryOtherCloudConditions
type DiscoveryOtherCloudConditions struct {
// Minimum age a resource must be before Cloud DLP can profile it. Value must
// be 1 hour or greater.
MinAge *durationpb.Duration `protobuf:"bytes,1,opt,name=min_age,json=minAge,proto3" json:"min_age,omitempty"`
// The conditions to apply.
//
// Types that are assignable to Conditions:
//
// *DiscoveryOtherCloudConditions_AmazonS3BucketConditions
Conditions isDiscoveryOtherCloudConditions_Conditions `protobuf_oneof:"conditions"`
// contains filtered or unexported fields
}Requirements that must be true before a resource is profiled for the first time.
func (*DiscoveryOtherCloudConditions) Descriptor
func (*DiscoveryOtherCloudConditions) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryOtherCloudConditions.ProtoReflect.Descriptor instead.
func (*DiscoveryOtherCloudConditions) GetAmazonS3BucketConditions
func (x *DiscoveryOtherCloudConditions) GetAmazonS3BucketConditions() *AmazonS3BucketConditionsfunc (*DiscoveryOtherCloudConditions) GetConditions
func (m *DiscoveryOtherCloudConditions) GetConditions() isDiscoveryOtherCloudConditions_Conditionsfunc (*DiscoveryOtherCloudConditions) GetMinAge
func (x *DiscoveryOtherCloudConditions) GetMinAge() *durationpb.Durationfunc (*DiscoveryOtherCloudConditions) ProtoMessage
func (*DiscoveryOtherCloudConditions) ProtoMessage()func (*DiscoveryOtherCloudConditions) ProtoReflect
func (x *DiscoveryOtherCloudConditions) ProtoReflect() protoreflect.Messagefunc (*DiscoveryOtherCloudConditions) Reset
func (x *DiscoveryOtherCloudConditions) Reset()func (*DiscoveryOtherCloudConditions) String
func (x *DiscoveryOtherCloudConditions) String() stringDiscoveryOtherCloudConditions_AmazonS3BucketConditions
type DiscoveryOtherCloudConditions_AmazonS3BucketConditions struct {
// Amazon S3 bucket conditions.
AmazonS3BucketConditions *AmazonS3BucketConditions `protobuf:"bytes,2,opt,name=amazon_s3_bucket_conditions,json=amazonS3BucketConditions,proto3,oneof"`
}DiscoveryOtherCloudFilter
type DiscoveryOtherCloudFilter struct {
// Whether the filter applies to a specific set of resources or all
// other resources. The first filter to match will be applied, regardless of
// the condition. Defaults to `others` if none is set.
//
// Types that are assignable to Filter:
//
// *DiscoveryOtherCloudFilter_Collection
// *DiscoveryOtherCloudFilter_SingleResource
// *DiscoveryOtherCloudFilter_Others
Filter isDiscoveryOtherCloudFilter_Filter `protobuf_oneof:"filter"`
// contains filtered or unexported fields
}Determines which resources from the other cloud will have profiles generated. Includes the ability to filter by resource names.
func (*DiscoveryOtherCloudFilter) Descriptor
func (*DiscoveryOtherCloudFilter) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryOtherCloudFilter.ProtoReflect.Descriptor instead.
func (*DiscoveryOtherCloudFilter) GetCollection
func (x *DiscoveryOtherCloudFilter) GetCollection() *OtherCloudResourceCollectionfunc (*DiscoveryOtherCloudFilter) GetFilter
func (m *DiscoveryOtherCloudFilter) GetFilter() isDiscoveryOtherCloudFilter_Filterfunc (*DiscoveryOtherCloudFilter) GetOthers
func (x *DiscoveryOtherCloudFilter) GetOthers() *AllOtherResourcesfunc (*DiscoveryOtherCloudFilter) GetSingleResource
func (x *DiscoveryOtherCloudFilter) GetSingleResource() *OtherCloudSingleResourceReferencefunc (*DiscoveryOtherCloudFilter) ProtoMessage
func (*DiscoveryOtherCloudFilter) ProtoMessage()func (*DiscoveryOtherCloudFilter) ProtoReflect
func (x *DiscoveryOtherCloudFilter) ProtoReflect() protoreflect.Messagefunc (*DiscoveryOtherCloudFilter) Reset
func (x *DiscoveryOtherCloudFilter) Reset()func (*DiscoveryOtherCloudFilter) String
func (x *DiscoveryOtherCloudFilter) String() stringDiscoveryOtherCloudFilter_Collection
type DiscoveryOtherCloudFilter_Collection struct {
// A collection of resources for this filter to apply to.
Collection *OtherCloudResourceCollection `protobuf:"bytes,1,opt,name=collection,proto3,oneof"`
}DiscoveryOtherCloudFilter_Others
type DiscoveryOtherCloudFilter_Others struct {
// Optional. Catch-all. This should always be the last target in the list
// because anything above it will apply first. Should only appear once in a
// configuration. If none is specified, a default one will be added
// automatically.
Others *AllOtherResources `protobuf:"bytes,100,opt,name=others,proto3,oneof"`
}DiscoveryOtherCloudFilter_SingleResource
type DiscoveryOtherCloudFilter_SingleResource struct {
// The resource to scan. Configs using this filter can only have one target
// (the target with this single resource reference).
SingleResource *OtherCloudSingleResourceReference `protobuf:"bytes,2,opt,name=single_resource,json=singleResource,proto3,oneof"`
}DiscoveryOtherCloudGenerationCadence
type DiscoveryOtherCloudGenerationCadence struct {
// Optional. Frequency to update profiles regardless of whether the underlying
// resource has changes. Defaults to never.
RefreshFrequency DataProfileUpdateFrequency `protobuf:"varint,1,opt,name=refresh_frequency,json=refreshFrequency,proto3,enum=google.privacy.dlp.v2.DataProfileUpdateFrequency" json:"refresh_frequency,omitempty"`
// Optional. Governs when to update data profiles when the inspection rules
// defined by the `InspectTemplate` change.
// If not set, changing the template will not cause a data profile to update.
InspectTemplateModifiedCadence *DiscoveryInspectTemplateModifiedCadence `protobuf:"bytes,2,opt,name=inspect_template_modified_cadence,json=inspectTemplateModifiedCadence,proto3" json:"inspect_template_modified_cadence,omitempty"`
// contains filtered or unexported fields
}How often existing resources should have their profiles refreshed. New resources are scanned as quickly as possible depending on system capacity.
func (*DiscoveryOtherCloudGenerationCadence) Descriptor
func (*DiscoveryOtherCloudGenerationCadence) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryOtherCloudGenerationCadence.ProtoReflect.Descriptor instead.
func (*DiscoveryOtherCloudGenerationCadence) GetInspectTemplateModifiedCadence
func (x *DiscoveryOtherCloudGenerationCadence) GetInspectTemplateModifiedCadence() *DiscoveryInspectTemplateModifiedCadencefunc (*DiscoveryOtherCloudGenerationCadence) GetRefreshFrequency
func (x *DiscoveryOtherCloudGenerationCadence) GetRefreshFrequency() DataProfileUpdateFrequencyfunc (*DiscoveryOtherCloudGenerationCadence) ProtoMessage
func (*DiscoveryOtherCloudGenerationCadence) ProtoMessage()func (*DiscoveryOtherCloudGenerationCadence) ProtoReflect
func (x *DiscoveryOtherCloudGenerationCadence) ProtoReflect() protoreflect.Messagefunc (*DiscoveryOtherCloudGenerationCadence) Reset
func (x *DiscoveryOtherCloudGenerationCadence) Reset()func (*DiscoveryOtherCloudGenerationCadence) String
func (x *DiscoveryOtherCloudGenerationCadence) String() stringDiscoverySchemaModifiedCadence
type DiscoverySchemaModifiedCadence struct {
// The type of events to consider when deciding if the table's schema
// has been modified and should have the profile updated. Defaults to
// NEW_COLUMNS.
Types []BigQuerySchemaModification `protobuf:"varint,1,rep,packed,name=types,proto3,enum=google.privacy.dlp.v2.BigQuerySchemaModification" json:"types,omitempty"`
// How frequently profiles may be updated when schemas are
// modified. Defaults to monthly.
Frequency DataProfileUpdateFrequency `protobuf:"varint,2,opt,name=frequency,proto3,enum=google.privacy.dlp.v2.DataProfileUpdateFrequency" json:"frequency,omitempty"`
// contains filtered or unexported fields
}The cadence at which to update data profiles when a schema is modified.
func (*DiscoverySchemaModifiedCadence) Descriptor
func (*DiscoverySchemaModifiedCadence) Descriptor() ([]byte, []int)Deprecated: Use DiscoverySchemaModifiedCadence.ProtoReflect.Descriptor instead.
func (*DiscoverySchemaModifiedCadence) GetFrequency
func (x *DiscoverySchemaModifiedCadence) GetFrequency() DataProfileUpdateFrequencyfunc (*DiscoverySchemaModifiedCadence) GetTypes
func (x *DiscoverySchemaModifiedCadence) GetTypes() []BigQuerySchemaModificationfunc (*DiscoverySchemaModifiedCadence) ProtoMessage
func (*DiscoverySchemaModifiedCadence) ProtoMessage()func (*DiscoverySchemaModifiedCadence) ProtoReflect
func (x *DiscoverySchemaModifiedCadence) ProtoReflect() protoreflect.Messagefunc (*DiscoverySchemaModifiedCadence) Reset
func (x *DiscoverySchemaModifiedCadence) Reset()func (*DiscoverySchemaModifiedCadence) String
func (x *DiscoverySchemaModifiedCadence) String() stringDiscoveryStartingLocation
type DiscoveryStartingLocation struct {
// The location to be scanned.
//
// Types that are assignable to Location:
//
// *DiscoveryStartingLocation_OrganizationId
// *DiscoveryStartingLocation_FolderId
Location isDiscoveryStartingLocation_Location `protobuf_oneof:"location"`
// contains filtered or unexported fields
}The location to begin a discovery scan. Denotes an organization ID or folder ID within an organization.
func (*DiscoveryStartingLocation) Descriptor
func (*DiscoveryStartingLocation) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryStartingLocation.ProtoReflect.Descriptor instead.
func (*DiscoveryStartingLocation) GetFolderId
func (x *DiscoveryStartingLocation) GetFolderId() int64func (*DiscoveryStartingLocation) GetLocation
func (m *DiscoveryStartingLocation) GetLocation() isDiscoveryStartingLocation_Locationfunc (*DiscoveryStartingLocation) GetOrganizationId
func (x *DiscoveryStartingLocation) GetOrganizationId() int64func (*DiscoveryStartingLocation) ProtoMessage
func (*DiscoveryStartingLocation) ProtoMessage()func (*DiscoveryStartingLocation) ProtoReflect
func (x *DiscoveryStartingLocation) ProtoReflect() protoreflect.Messagefunc (*DiscoveryStartingLocation) Reset
func (x *DiscoveryStartingLocation) Reset()func (*DiscoveryStartingLocation) String
func (x *DiscoveryStartingLocation) String() stringDiscoveryStartingLocation_FolderId
type DiscoveryStartingLocation_FolderId struct {
// The ID of the folder within an organization to be scanned.
FolderId int64 `protobuf:"varint,2,opt,name=folder_id,json=folderId,proto3,oneof"`
}DiscoveryStartingLocation_OrganizationId
type DiscoveryStartingLocation_OrganizationId struct {
// The ID of an organization to scan.
OrganizationId int64 `protobuf:"varint,1,opt,name=organization_id,json=organizationId,proto3,oneof"`
}DiscoveryTableModifiedCadence
type DiscoveryTableModifiedCadence struct {
// The type of events to consider when deciding if the table has been
// modified and should have the profile updated. Defaults to
// MODIFIED_TIMESTAMP.
Types []BigQueryTableModification `protobuf:"varint,1,rep,packed,name=types,proto3,enum=google.privacy.dlp.v2.BigQueryTableModification" json:"types,omitempty"`
// How frequently data profiles can be updated when tables are modified.
// Defaults to never.
Frequency DataProfileUpdateFrequency `protobuf:"varint,2,opt,name=frequency,proto3,enum=google.privacy.dlp.v2.DataProfileUpdateFrequency" json:"frequency,omitempty"`
// contains filtered or unexported fields
}The cadence at which to update data profiles when a table is modified.
func (*DiscoveryTableModifiedCadence) Descriptor
func (*DiscoveryTableModifiedCadence) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryTableModifiedCadence.ProtoReflect.Descriptor instead.
func (*DiscoveryTableModifiedCadence) GetFrequency
func (x *DiscoveryTableModifiedCadence) GetFrequency() DataProfileUpdateFrequencyfunc (*DiscoveryTableModifiedCadence) GetTypes
func (x *DiscoveryTableModifiedCadence) GetTypes() []BigQueryTableModificationfunc (*DiscoveryTableModifiedCadence) ProtoMessage
func (*DiscoveryTableModifiedCadence) ProtoMessage()func (*DiscoveryTableModifiedCadence) ProtoReflect
func (x *DiscoveryTableModifiedCadence) ProtoReflect() protoreflect.Messagefunc (*DiscoveryTableModifiedCadence) Reset
func (x *DiscoveryTableModifiedCadence) Reset()func (*DiscoveryTableModifiedCadence) String
func (x *DiscoveryTableModifiedCadence) String() stringDiscoveryTarget
type DiscoveryTarget struct {
// A target to match against for Discovery.
//
// Types that are assignable to Target:
//
// *DiscoveryTarget_BigQueryTarget
// *DiscoveryTarget_CloudSqlTarget
// *DiscoveryTarget_SecretsTarget
// *DiscoveryTarget_CloudStorageTarget
// *DiscoveryTarget_OtherCloudTarget
// *DiscoveryTarget_VertexDatasetTarget
Target isDiscoveryTarget_Target `protobuf_oneof:"target"`
// contains filtered or unexported fields
}Target used to match against for Discovery.
func (*DiscoveryTarget) Descriptor
func (*DiscoveryTarget) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryTarget.ProtoReflect.Descriptor instead.
func (*DiscoveryTarget) GetBigQueryTarget
func (x *DiscoveryTarget) GetBigQueryTarget() *BigQueryDiscoveryTargetfunc (*DiscoveryTarget) GetCloudSqlTarget
func (x *DiscoveryTarget) GetCloudSqlTarget() *CloudSqlDiscoveryTargetfunc (*DiscoveryTarget) GetCloudStorageTarget
func (x *DiscoveryTarget) GetCloudStorageTarget() *CloudStorageDiscoveryTargetfunc (*DiscoveryTarget) GetOtherCloudTarget
func (x *DiscoveryTarget) GetOtherCloudTarget() *OtherCloudDiscoveryTargetfunc (*DiscoveryTarget) GetSecretsTarget
func (x *DiscoveryTarget) GetSecretsTarget() *SecretsDiscoveryTargetfunc (*DiscoveryTarget) GetTarget
func (m *DiscoveryTarget) GetTarget() isDiscoveryTarget_Targetfunc (*DiscoveryTarget) GetVertexDatasetTarget
func (x *DiscoveryTarget) GetVertexDatasetTarget() *VertexDatasetDiscoveryTargetfunc (*DiscoveryTarget) ProtoMessage
func (*DiscoveryTarget) ProtoMessage()func (*DiscoveryTarget) ProtoReflect
func (x *DiscoveryTarget) ProtoReflect() protoreflect.Messagefunc (*DiscoveryTarget) Reset
func (x *DiscoveryTarget) Reset()func (*DiscoveryTarget) String
func (x *DiscoveryTarget) String() stringDiscoveryTarget_BigQueryTarget
type DiscoveryTarget_BigQueryTarget struct {
// BigQuery target for Discovery. The first target to match a table will be
// the one applied.
BigQueryTarget *BigQueryDiscoveryTarget `protobuf:"bytes,1,opt,name=big_query_target,json=bigQueryTarget,proto3,oneof"`
}DiscoveryTarget_CloudSqlTarget
type DiscoveryTarget_CloudSqlTarget struct {
// Cloud SQL target for Discovery. The first target to match a table will be
// the one applied.
CloudSqlTarget *CloudSqlDiscoveryTarget `protobuf:"bytes,2,opt,name=cloud_sql_target,json=cloudSqlTarget,proto3,oneof"`
}DiscoveryTarget_CloudStorageTarget
type DiscoveryTarget_CloudStorageTarget struct {
// Cloud Storage target for Discovery. The first target to match a table
// will be the one applied.
CloudStorageTarget *CloudStorageDiscoveryTarget `protobuf:"bytes,4,opt,name=cloud_storage_target,json=cloudStorageTarget,proto3,oneof"`
}DiscoveryTarget_OtherCloudTarget
type DiscoveryTarget_OtherCloudTarget struct {
// Other clouds target for discovery. The first target to match a resource
// will be the one applied.
OtherCloudTarget *OtherCloudDiscoveryTarget `protobuf:"bytes,5,opt,name=other_cloud_target,json=otherCloudTarget,proto3,oneof"`
}DiscoveryTarget_SecretsTarget
type DiscoveryTarget_SecretsTarget struct {
// Discovery target that looks for credentials and secrets stored in cloud
// resource metadata and reports them as vulnerabilities to Security Command
// Center. Only one target of this type is allowed.
SecretsTarget *SecretsDiscoveryTarget `protobuf:"bytes,3,opt,name=secrets_target,json=secretsTarget,proto3,oneof"`
}DiscoveryTarget_VertexDatasetTarget
type DiscoveryTarget_VertexDatasetTarget struct {
// Vertex AI dataset target for Discovery. The first target to match a
// dataset will be the one applied. Note that discovery for Vertex AI can
// incur Cloud Storage Class B operation charges for storage.objects.get
// operations and retrieval fees. For more information, see [Cloud Storage
// pricing](https://cloud.google.com/storage/pricing#price-tables).
// Note that discovery for Vertex AI dataset will not be able to scan images
// unless DiscoveryConfig.processing_location.image_fallback_location has
// multi_region_processing or global_processing configured.
VertexDatasetTarget *VertexDatasetDiscoveryTarget `protobuf:"bytes,7,opt,name=vertex_dataset_target,json=vertexDatasetTarget,proto3,oneof"`
}DiscoveryVertexDatasetConditions
type DiscoveryVertexDatasetConditions struct {
// Vertex AI dataset must have been created after this date. Used to avoid
// backfilling.
CreatedAfter *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_after,json=createdAfter,proto3" json:"created_after,omitempty"`
// Minimum age a Vertex AI dataset must have. If set, the value must be 1 hour
// or greater.
MinAge *durationpb.Duration `protobuf:"bytes,2,opt,name=min_age,json=minAge,proto3" json:"min_age,omitempty"`
// contains filtered or unexported fields
}Requirements that must be true before a dataset is profiled for the first time.
func (*DiscoveryVertexDatasetConditions) Descriptor
func (*DiscoveryVertexDatasetConditions) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryVertexDatasetConditions.ProtoReflect.Descriptor instead.
func (*DiscoveryVertexDatasetConditions) GetCreatedAfter
func (x *DiscoveryVertexDatasetConditions) GetCreatedAfter() *timestamppb.Timestampfunc (*DiscoveryVertexDatasetConditions) GetMinAge
func (x *DiscoveryVertexDatasetConditions) GetMinAge() *durationpb.Durationfunc (*DiscoveryVertexDatasetConditions) ProtoMessage
func (*DiscoveryVertexDatasetConditions) ProtoMessage()func (*DiscoveryVertexDatasetConditions) ProtoReflect
func (x *DiscoveryVertexDatasetConditions) ProtoReflect() protoreflect.Messagefunc (*DiscoveryVertexDatasetConditions) Reset
func (x *DiscoveryVertexDatasetConditions) Reset()func (*DiscoveryVertexDatasetConditions) String
func (x *DiscoveryVertexDatasetConditions) String() stringDiscoveryVertexDatasetFilter
type DiscoveryVertexDatasetFilter struct {
// Whether the filter applies to a specific set of datasets or all
// other datasets within the location being profiled. The first
// filter to match will be applied, regardless of the condition. If none is
// set, this field defaults to `others`.
//
// Types that are assignable to Filter:
//
// *DiscoveryVertexDatasetFilter_Collection
// *DiscoveryVertexDatasetFilter_VertexDatasetResourceReference
// *DiscoveryVertexDatasetFilter_Others
Filter isDiscoveryVertexDatasetFilter_Filter `protobuf_oneof:"filter"`
// contains filtered or unexported fields
}Determines what datasets will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID or dataset regex.
func (*DiscoveryVertexDatasetFilter) Descriptor
func (*DiscoveryVertexDatasetFilter) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryVertexDatasetFilter.ProtoReflect.Descriptor instead.
func (*DiscoveryVertexDatasetFilter) GetCollection
func (x *DiscoveryVertexDatasetFilter) GetCollection() *VertexDatasetCollectionfunc (*DiscoveryVertexDatasetFilter) GetFilter
func (m *DiscoveryVertexDatasetFilter) GetFilter() isDiscoveryVertexDatasetFilter_Filterfunc (*DiscoveryVertexDatasetFilter) GetOthers
func (x *DiscoveryVertexDatasetFilter) GetOthers() *AllOtherResourcesfunc (*DiscoveryVertexDatasetFilter) GetVertexDatasetResourceReference
func (x *DiscoveryVertexDatasetFilter) GetVertexDatasetResourceReference() *VertexDatasetResourceReferencefunc (*DiscoveryVertexDatasetFilter) ProtoMessage
func (*DiscoveryVertexDatasetFilter) ProtoMessage()func (*DiscoveryVertexDatasetFilter) ProtoReflect
func (x *DiscoveryVertexDatasetFilter) ProtoReflect() protoreflect.Messagefunc (*DiscoveryVertexDatasetFilter) Reset
func (x *DiscoveryVertexDatasetFilter) Reset()func (*DiscoveryVertexDatasetFilter) String
func (x *DiscoveryVertexDatasetFilter) String() stringDiscoveryVertexDatasetFilter_Collection
type DiscoveryVertexDatasetFilter_Collection struct {
// A specific set of Vertex AI datasets for this filter to apply to.
Collection *VertexDatasetCollection `protobuf:"bytes,1,opt,name=collection,proto3,oneof"`
}DiscoveryVertexDatasetFilter_Others
type DiscoveryVertexDatasetFilter_Others struct {
// Catch-all. This should always be the last target in the list because
// anything above it will apply first. Should only appear once in a
// configuration. If none is specified, a default one will be added
// automatically.
Others *AllOtherResources `protobuf:"bytes,100,opt,name=others,proto3,oneof"`
}DiscoveryVertexDatasetFilter_VertexDatasetResourceReference
type DiscoveryVertexDatasetFilter_VertexDatasetResourceReference struct {
// The dataset resource to scan. Targets including this can only include
// one target (the target with this dataset resource reference).
VertexDatasetResourceReference *VertexDatasetResourceReference `protobuf:"bytes,2,opt,name=vertex_dataset_resource_reference,json=vertexDatasetResourceReference,proto3,oneof"`
}DiscoveryVertexDatasetGenerationCadence
type DiscoveryVertexDatasetGenerationCadence struct {
// If you set this field, profiles are refreshed at this
// frequency regardless of whether the underlying datasets have changed.
// Defaults to never.
RefreshFrequency DataProfileUpdateFrequency `protobuf:"varint,1,opt,name=refresh_frequency,json=refreshFrequency,proto3,enum=google.privacy.dlp.v2.DataProfileUpdateFrequency" json:"refresh_frequency,omitempty"`
// Governs when to update data profiles when the inspection rules
// defined by the `InspectTemplate` change.
// If not set, changing the template will not cause a data profile to be
// updated.
InspectTemplateModifiedCadence *DiscoveryInspectTemplateModifiedCadence `protobuf:"bytes,2,opt,name=inspect_template_modified_cadence,json=inspectTemplateModifiedCadence,proto3" json:"inspect_template_modified_cadence,omitempty"`
// contains filtered or unexported fields
}How often existing datasets should have their profiles refreshed. New datasets are scanned as quickly as possible depending on system capacity.
func (*DiscoveryVertexDatasetGenerationCadence) Descriptor
func (*DiscoveryVertexDatasetGenerationCadence) Descriptor() ([]byte, []int)Deprecated: Use DiscoveryVertexDatasetGenerationCadence.ProtoReflect.Descriptor instead.
func (*DiscoveryVertexDatasetGenerationCadence) GetInspectTemplateModifiedCadence
func (x *DiscoveryVertexDatasetGenerationCadence) GetInspectTemplateModifiedCadence() *DiscoveryInspectTemplateModifiedCadencefunc (*DiscoveryVertexDatasetGenerationCadence) GetRefreshFrequency
func (x *DiscoveryVertexDatasetGenerationCadence) GetRefreshFrequency() DataProfileUpdateFrequencyfunc (*DiscoveryVertexDatasetGenerationCadence) ProtoMessage
func (*DiscoveryVertexDatasetGenerationCadence) ProtoMessage()func (*DiscoveryVertexDatasetGenerationCadence) ProtoReflect
func (x *DiscoveryVertexDatasetGenerationCadence) ProtoReflect() protoreflect.Messagefunc (*DiscoveryVertexDatasetGenerationCadence) Reset
func (x *DiscoveryVertexDatasetGenerationCadence) Reset()func (*DiscoveryVertexDatasetGenerationCadence) String
func (x *DiscoveryVertexDatasetGenerationCadence) String() stringDlpJob
type DlpJob struct {
// The server-assigned name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The type of job.
Type DlpJobType `protobuf:"varint,2,opt,name=type,proto3,enum=google.privacy.dlp.v2.DlpJobType" json:"type,omitempty"`
// State of a job.
State DlpJob_JobState `protobuf:"varint,3,opt,name=state,proto3,enum=google.privacy.dlp.v2.DlpJob_JobState" json:"state,omitempty"`
// Job details.
//
// Types that are assignable to Details:
//
// *DlpJob_RiskDetails
// *DlpJob_InspectDetails
Details isDlpJob_Details `protobuf_oneof:"details"`
// Time when the job was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Time when the job started.
StartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Time when the job finished.
EndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Time when the job was last modified by the system.
LastModified *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"`
// If created by a job trigger, the resource name of the trigger that
// instantiated the job.
JobTriggerName string `protobuf:"bytes,10,opt,name=job_trigger_name,json=jobTriggerName,proto3" json:"job_trigger_name,omitempty"`
// A stream of errors encountered running the job.
Errors []*Error `protobuf:"bytes,11,rep,name=errors,proto3" json:"errors,omitempty"`
// Events that should occur after the job has completed.
ActionDetails []*ActionDetails `protobuf:"bytes,12,rep,name=action_details,json=actionDetails,proto3" json:"action_details,omitempty"`
// contains filtered or unexported fields
}Combines all of the information about a DLP job.
func (*DlpJob) Descriptor
Deprecated: Use DlpJob.ProtoReflect.Descriptor instead.
func (*DlpJob) GetActionDetails
func (x *DlpJob) GetActionDetails() []*ActionDetailsfunc (*DlpJob) GetCreateTime
func (x *DlpJob) GetCreateTime() *timestamppb.Timestampfunc (*DlpJob) GetDetails
func (m *DlpJob) GetDetails() isDlpJob_Detailsfunc (*DlpJob) GetEndTime
func (x *DlpJob) GetEndTime() *timestamppb.Timestampfunc (*DlpJob) GetErrors
func (*DlpJob) GetInspectDetails
func (x *DlpJob) GetInspectDetails() *InspectDataSourceDetailsfunc (*DlpJob) GetJobTriggerName
func (*DlpJob) GetLastModified
func (x *DlpJob) GetLastModified() *timestamppb.Timestampfunc (*DlpJob) GetName
func (*DlpJob) GetRiskDetails
func (x *DlpJob) GetRiskDetails() *AnalyzeDataSourceRiskDetailsfunc (*DlpJob) GetStartTime
func (x *DlpJob) GetStartTime() *timestamppb.Timestampfunc (*DlpJob) GetState
func (x *DlpJob) GetState() DlpJob_JobStatefunc (*DlpJob) GetType
func (x *DlpJob) GetType() DlpJobTypefunc (*DlpJob) ProtoMessage
func (*DlpJob) ProtoMessage()func (*DlpJob) ProtoReflect
func (x *DlpJob) ProtoReflect() protoreflect.Messagefunc (*DlpJob) Reset
func (x *DlpJob) Reset()func (*DlpJob) String
DlpJobType
type DlpJobType int32An enum to represent the various types of DLP jobs.
DlpJobType_DLP_JOB_TYPE_UNSPECIFIED, DlpJobType_INSPECT_JOB, DlpJobType_RISK_ANALYSIS_JOB
const (
// Defaults to INSPECT_JOB.
DlpJobType_DLP_JOB_TYPE_UNSPECIFIED DlpJobType = 0
// The job inspected Google Cloud for sensitive data.
DlpJobType_INSPECT_JOB DlpJobType = 1
// The job executed a Risk Analysis computation.
DlpJobType_RISK_ANALYSIS_JOB DlpJobType = 2
)func (DlpJobType) Descriptor
func (DlpJobType) Descriptor() protoreflect.EnumDescriptorfunc (DlpJobType) Enum
func (x DlpJobType) Enum() *DlpJobTypefunc (DlpJobType) EnumDescriptor
func (DlpJobType) EnumDescriptor() ([]byte, []int)Deprecated: Use DlpJobType.Descriptor instead.
func (DlpJobType) Number
func (x DlpJobType) Number() protoreflect.EnumNumberfunc (DlpJobType) String
func (x DlpJobType) String() stringfunc (DlpJobType) Type
func (DlpJobType) Type() protoreflect.EnumTypeDlpJob_InspectDetails
type DlpJob_InspectDetails struct {
// Results from inspecting a data source.
InspectDetails *InspectDataSourceDetails `protobuf:"bytes,5,opt,name=inspect_details,json=inspectDetails,proto3,oneof"`
}DlpJob_JobState
type DlpJob_JobState int32Possible states of a job. New items may be added.
DlpJob_JOB_STATE_UNSPECIFIED, DlpJob_PENDING, DlpJob_RUNNING, DlpJob_DONE, DlpJob_CANCELED, DlpJob_FAILED, DlpJob_ACTIVE
const (
// Unused.
DlpJob_JOB_STATE_UNSPECIFIED DlpJob_JobState = 0
// The job has not yet started.
DlpJob_PENDING DlpJob_JobState = 1
// The job is currently running. Once a job has finished it will transition
// to FAILED or DONE.
DlpJob_RUNNING DlpJob_JobState = 2
// The job is no longer running.
DlpJob_DONE DlpJob_JobState = 3
// The job was canceled before it could be completed.
DlpJob_CANCELED DlpJob_JobState = 4
// The job had an error and did not complete.
DlpJob_FAILED DlpJob_JobState = 5
// The job is currently accepting findings via hybridInspect.
// A hybrid job in ACTIVE state may continue to have findings added to it
// through the calling of hybridInspect. After the job has finished no more
// calls to hybridInspect may be made. ACTIVE jobs can transition to DONE.
DlpJob_ACTIVE DlpJob_JobState = 6
)func (DlpJob_JobState) Descriptor
func (DlpJob_JobState) Descriptor() protoreflect.EnumDescriptorfunc (DlpJob_JobState) Enum
func (x DlpJob_JobState) Enum() *DlpJob_JobStatefunc (DlpJob_JobState) EnumDescriptor
func (DlpJob_JobState) EnumDescriptor() ([]byte, []int)Deprecated: Use DlpJob_JobState.Descriptor instead.
func (DlpJob_JobState) Number
func (x DlpJob_JobState) Number() protoreflect.EnumNumberfunc (DlpJob_JobState) String
func (x DlpJob_JobState) String() stringfunc (DlpJob_JobState) Type
func (DlpJob_JobState) Type() protoreflect.EnumTypeDlpJob_RiskDetails
type DlpJob_RiskDetails struct {
// Results from analyzing risk of a data source.
RiskDetails *AnalyzeDataSourceRiskDetails `protobuf:"bytes,4,opt,name=risk_details,json=riskDetails,proto3,oneof"`
}DlpServiceClient
type DlpServiceClient interface {
// Finds potentially sensitive info in content.
// This method has limits on input size, processing time, and output size.
//
// When no InfoTypes or CustomInfoTypes are specified in this request, the
// system will automatically choose what detectors to run. By default this may
// be all types, but may change over time as detectors are updated.
//
// For how to guides, see
// https://cloud.google.com/sensitive-data-protection/docs/inspecting-images
// and
// https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,
InspectContent(ctx context.Context, in *InspectContentRequest, opts ...grpc.CallOption) (*InspectContentResponse, error)
// Redacts potentially sensitive info from an image.
// This method has limits on input size, processing time, and output size.
// See
// https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images
// to learn more.
//
// When no InfoTypes or CustomInfoTypes are specified in this request, the
// system will automatically choose what detectors to run. By default this may
// be all types, but may change over time as detectors are updated.
//
// Only the first frame of each multiframe image is redacted. Metadata and
// other frames are omitted in the response.
RedactImage(ctx context.Context, in *RedactImageRequest, opts ...grpc.CallOption) (*RedactImageResponse, error)
// De-identifies potentially sensitive info from a ContentItem.
// This method has limits on input size and output size.
// See
// https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data
// to learn more.
//
// When no InfoTypes or CustomInfoTypes are specified in this request, the
// system will automatically choose what detectors to run. By default this may
// be all types, but may change over time as detectors are updated.
DeidentifyContent(ctx context.Context, in *DeidentifyContentRequest, opts ...grpc.CallOption) (*DeidentifyContentResponse, error)
// Re-identifies content that has been de-identified.
// See
// https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
// to learn more.
ReidentifyContent(ctx context.Context, in *ReidentifyContentRequest, opts ...grpc.CallOption) (*ReidentifyContentResponse, error)
// Returns a list of the sensitive information types that the DLP API
// supports. See
// https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
// to learn more.
ListInfoTypes(ctx context.Context, in *ListInfoTypesRequest, opts ...grpc.CallOption) (*ListInfoTypesResponse, error)
// Creates an InspectTemplate for reusing frequently used configuration
// for inspecting content, images, and storage.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates
// to learn more.
CreateInspectTemplate(ctx context.Context, in *CreateInspectTemplateRequest, opts ...grpc.CallOption) (*InspectTemplate, error)
// Updates the InspectTemplate.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates
// to learn more.
UpdateInspectTemplate(ctx context.Context, in *UpdateInspectTemplateRequest, opts ...grpc.CallOption) (*InspectTemplate, error)
// Gets an InspectTemplate.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates
// to learn more.
GetInspectTemplate(ctx context.Context, in *GetInspectTemplateRequest, opts ...grpc.CallOption) (*InspectTemplate, error)
// Lists InspectTemplates.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates
// to learn more.
ListInspectTemplates(ctx context.Context, in *ListInspectTemplatesRequest, opts ...grpc.CallOption) (*ListInspectTemplatesResponse, error)
// Deletes an InspectTemplate.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates
// to learn more.
DeleteInspectTemplate(ctx context.Context, in *DeleteInspectTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Creates a DeidentifyTemplate for reusing frequently used configuration
// for de-identifying content, images, and storage.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
// to learn more.
CreateDeidentifyTemplate(ctx context.Context, in *CreateDeidentifyTemplateRequest, opts ...grpc.CallOption) (*DeidentifyTemplate, error)
// Updates the DeidentifyTemplate.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
// to learn more.
UpdateDeidentifyTemplate(ctx context.Context, in *UpdateDeidentifyTemplateRequest, opts ...grpc.CallOption) (*DeidentifyTemplate, error)
// Gets a DeidentifyTemplate.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
// to learn more.
GetDeidentifyTemplate(ctx context.Context, in *GetDeidentifyTemplateRequest, opts ...grpc.CallOption) (*DeidentifyTemplate, error)
// Lists DeidentifyTemplates.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
// to learn more.
ListDeidentifyTemplates(ctx context.Context, in *ListDeidentifyTemplatesRequest, opts ...grpc.CallOption) (*ListDeidentifyTemplatesResponse, error)
// Deletes a DeidentifyTemplate.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
// to learn more.
DeleteDeidentifyTemplate(ctx context.Context, in *DeleteDeidentifyTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Creates a job trigger to run DLP actions such as scanning storage for
// sensitive information on a set schedule.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
// to learn more.
CreateJobTrigger(ctx context.Context, in *CreateJobTriggerRequest, opts ...grpc.CallOption) (*JobTrigger, error)
// Updates a job trigger.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
// to learn more.
UpdateJobTrigger(ctx context.Context, in *UpdateJobTriggerRequest, opts ...grpc.CallOption) (*JobTrigger, error)
// Inspect hybrid content and store findings to a trigger. The inspection
// will be processed asynchronously. To review the findings monitor the
// jobs within the trigger.
HybridInspectJobTrigger(ctx context.Context, in *HybridInspectJobTriggerRequest, opts ...grpc.CallOption) (*HybridInspectResponse, error)
// Gets a job trigger.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
// to learn more.
GetJobTrigger(ctx context.Context, in *GetJobTriggerRequest, opts ...grpc.CallOption) (*JobTrigger, error)
// Lists job triggers.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
// to learn more.
ListJobTriggers(ctx context.Context, in *ListJobTriggersRequest, opts ...grpc.CallOption) (*ListJobTriggersResponse, error)
// Deletes a job trigger.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
// to learn more.
DeleteJobTrigger(ctx context.Context, in *DeleteJobTriggerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Activate a job trigger. Causes the immediate execute of a trigger
// instead of waiting on the trigger event to occur.
ActivateJobTrigger(ctx context.Context, in *ActivateJobTriggerRequest, opts ...grpc.CallOption) (*DlpJob, error)
// Creates a config for discovery to scan and profile storage.
CreateDiscoveryConfig(ctx context.Context, in *CreateDiscoveryConfigRequest, opts ...grpc.CallOption) (*DiscoveryConfig, error)
// Updates a discovery configuration.
UpdateDiscoveryConfig(ctx context.Context, in *UpdateDiscoveryConfigRequest, opts ...grpc.CallOption) (*DiscoveryConfig, error)
// Gets a discovery configuration.
GetDiscoveryConfig(ctx context.Context, in *GetDiscoveryConfigRequest, opts ...grpc.CallOption) (*DiscoveryConfig, error)
// Lists discovery configurations.
ListDiscoveryConfigs(ctx context.Context, in *ListDiscoveryConfigsRequest, opts ...grpc.CallOption) (*ListDiscoveryConfigsResponse, error)
// Deletes a discovery configuration.
DeleteDiscoveryConfig(ctx context.Context, in *DeleteDiscoveryConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Creates a new job to inspect storage or calculate risk metrics.
// See
// https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
// and
// https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
// to learn more.
//
// When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
// system will automatically choose what detectors to run. By default this may
// be all types, but may change over time as detectors are updated.
CreateDlpJob(ctx context.Context, in *CreateDlpJobRequest, opts ...grpc.CallOption) (*DlpJob, error)
// Lists DlpJobs that match the specified filter in the request.
// See
// https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
// and
// https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
// to learn more.
ListDlpJobs(ctx context.Context, in *ListDlpJobsRequest, opts ...grpc.CallOption) (*ListDlpJobsResponse, error)
// Gets the latest state of a long-running DlpJob.
// See
// https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
// and
// https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
// to learn more.
GetDlpJob(ctx context.Context, in *GetDlpJobRequest, opts ...grpc.CallOption) (*DlpJob, error)
// Deletes a long-running DlpJob. This method indicates that the client is
// no longer interested in the DlpJob result. The job will be canceled if
// possible.
// See
// https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
// and
// https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
// to learn more.
DeleteDlpJob(ctx context.Context, in *DeleteDlpJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Starts asynchronous cancellation on a long-running DlpJob. The server
// makes a best effort to cancel the DlpJob, but success is not
// guaranteed.
// See
// https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
// and
// https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
// to learn more.
CancelDlpJob(ctx context.Context, in *CancelDlpJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Creates a pre-built stored infoType to be used for inspection.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
// to learn more.
CreateStoredInfoType(ctx context.Context, in *CreateStoredInfoTypeRequest, opts ...grpc.CallOption) (*StoredInfoType, error)
// Updates the stored infoType by creating a new version. The existing version
// will continue to be used until the new version is ready.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
// to learn more.
UpdateStoredInfoType(ctx context.Context, in *UpdateStoredInfoTypeRequest, opts ...grpc.CallOption) (*StoredInfoType, error)
// Gets a stored infoType.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
// to learn more.
GetStoredInfoType(ctx context.Context, in *GetStoredInfoTypeRequest, opts ...grpc.CallOption) (*StoredInfoType, error)
// Lists stored infoTypes.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
// to learn more.
ListStoredInfoTypes(ctx context.Context, in *ListStoredInfoTypesRequest, opts ...grpc.CallOption) (*ListStoredInfoTypesResponse, error)
// Deletes a stored infoType.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
// to learn more.
DeleteStoredInfoType(ctx context.Context, in *DeleteStoredInfoTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Lists project data profiles for an organization.
ListProjectDataProfiles(ctx context.Context, in *ListProjectDataProfilesRequest, opts ...grpc.CallOption) (*ListProjectDataProfilesResponse, error)
// Lists table data profiles for an organization.
ListTableDataProfiles(ctx context.Context, in *ListTableDataProfilesRequest, opts ...grpc.CallOption) (*ListTableDataProfilesResponse, error)
// Lists column data profiles for an organization.
ListColumnDataProfiles(ctx context.Context, in *ListColumnDataProfilesRequest, opts ...grpc.CallOption) (*ListColumnDataProfilesResponse, error)
// Gets a project data profile.
GetProjectDataProfile(ctx context.Context, in *GetProjectDataProfileRequest, opts ...grpc.CallOption) (*ProjectDataProfile, error)
// Lists file store data profiles for an organization.
ListFileStoreDataProfiles(ctx context.Context, in *ListFileStoreDataProfilesRequest, opts ...grpc.CallOption) (*ListFileStoreDataProfilesResponse, error)
// Gets a file store data profile.
GetFileStoreDataProfile(ctx context.Context, in *GetFileStoreDataProfileRequest, opts ...grpc.CallOption) (*FileStoreDataProfile, error)
// Delete a FileStoreDataProfile. Will not prevent the profile from being
// regenerated if the resource is still included in a discovery configuration.
DeleteFileStoreDataProfile(ctx context.Context, in *DeleteFileStoreDataProfileRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Gets a table data profile.
GetTableDataProfile(ctx context.Context, in *GetTableDataProfileRequest, opts ...grpc.CallOption) (*TableDataProfile, error)
// Gets a column data profile.
GetColumnDataProfile(ctx context.Context, in *GetColumnDataProfileRequest, opts ...grpc.CallOption) (*ColumnDataProfile, error)
// Delete a TableDataProfile. Will not prevent the profile from being
// regenerated if the table is still included in a discovery configuration.
DeleteTableDataProfile(ctx context.Context, in *DeleteTableDataProfileRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Inspect hybrid content and store findings to a job.
// To review the findings, inspect the job. Inspection will occur
// asynchronously.
HybridInspectDlpJob(ctx context.Context, in *HybridInspectDlpJobRequest, opts ...grpc.CallOption) (*HybridInspectResponse, error)
// Finish a running hybrid DlpJob. Triggers the finalization steps and running
// of any enabled actions that have not yet run.
FinishDlpJob(ctx context.Context, in *FinishDlpJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Create a Connection to an external data source.
CreateConnection(ctx context.Context, in *CreateConnectionRequest, opts ...grpc.CallOption) (*Connection, error)
// Get a Connection by name.
GetConnection(ctx context.Context, in *GetConnectionRequest, opts ...grpc.CallOption) (*Connection, error)
// Lists Connections in a parent. Use SearchConnections to see all connections
// within an organization.
ListConnections(ctx context.Context, in *ListConnectionsRequest, opts ...grpc.CallOption) (*ListConnectionsResponse, error)
// Searches for Connections in a parent.
SearchConnections(ctx context.Context, in *SearchConnectionsRequest, opts ...grpc.CallOption) (*SearchConnectionsResponse, error)
// Delete a Connection.
DeleteConnection(ctx context.Context, in *DeleteConnectionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Update a Connection.
UpdateConnection(ctx context.Context, in *UpdateConnectionRequest, opts ...grpc.CallOption) (*Connection, error)
}DlpServiceClient is the client API for DlpService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDlpServiceClient
func NewDlpServiceClient(cc grpc.ClientConnInterface) DlpServiceClientDlpServiceServer
type DlpServiceServer interface {
// Finds potentially sensitive info in content.
// This method has limits on input size, processing time, and output size.
//
// When no InfoTypes or CustomInfoTypes are specified in this request, the
// system will automatically choose what detectors to run. By default this may
// be all types, but may change over time as detectors are updated.
//
// For how to guides, see
// https://cloud.google.com/sensitive-data-protection/docs/inspecting-images
// and
// https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,
InspectContent(context.Context, *InspectContentRequest) (*InspectContentResponse, error)
// Redacts potentially sensitive info from an image.
// This method has limits on input size, processing time, and output size.
// See
// https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images
// to learn more.
//
// When no InfoTypes or CustomInfoTypes are specified in this request, the
// system will automatically choose what detectors to run. By default this may
// be all types, but may change over time as detectors are updated.
//
// Only the first frame of each multiframe image is redacted. Metadata and
// other frames are omitted in the response.
RedactImage(context.Context, *RedactImageRequest) (*RedactImageResponse, error)
// De-identifies potentially sensitive info from a ContentItem.
// This method has limits on input size and output size.
// See
// https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data
// to learn more.
//
// When no InfoTypes or CustomInfoTypes are specified in this request, the
// system will automatically choose what detectors to run. By default this may
// be all types, but may change over time as detectors are updated.
DeidentifyContent(context.Context, *DeidentifyContentRequest) (*DeidentifyContentResponse, error)
// Re-identifies content that has been de-identified.
// See
// https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
// to learn more.
ReidentifyContent(context.Context, *ReidentifyContentRequest) (*ReidentifyContentResponse, error)
// Returns a list of the sensitive information types that the DLP API
// supports. See
// https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
// to learn more.
ListInfoTypes(context.Context, *ListInfoTypesRequest) (*ListInfoTypesResponse, error)
// Creates an InspectTemplate for reusing frequently used configuration
// for inspecting content, images, and storage.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates
// to learn more.
CreateInspectTemplate(context.Context, *CreateInspectTemplateRequest) (*InspectTemplate, error)
// Updates the InspectTemplate.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates
// to learn more.
UpdateInspectTemplate(context.Context, *UpdateInspectTemplateRequest) (*InspectTemplate, error)
// Gets an InspectTemplate.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates
// to learn more.
GetInspectTemplate(context.Context, *GetInspectTemplateRequest) (*InspectTemplate, error)
// Lists InspectTemplates.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates
// to learn more.
ListInspectTemplates(context.Context, *ListInspectTemplatesRequest) (*ListInspectTemplatesResponse, error)
// Deletes an InspectTemplate.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates
// to learn more.
DeleteInspectTemplate(context.Context, *DeleteInspectTemplateRequest) (*emptypb.Empty, error)
// Creates a DeidentifyTemplate for reusing frequently used configuration
// for de-identifying content, images, and storage.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
// to learn more.
CreateDeidentifyTemplate(context.Context, *CreateDeidentifyTemplateRequest) (*DeidentifyTemplate, error)
// Updates the DeidentifyTemplate.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
// to learn more.
UpdateDeidentifyTemplate(context.Context, *UpdateDeidentifyTemplateRequest) (*DeidentifyTemplate, error)
// Gets a DeidentifyTemplate.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
// to learn more.
GetDeidentifyTemplate(context.Context, *GetDeidentifyTemplateRequest) (*DeidentifyTemplate, error)
// Lists DeidentifyTemplates.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
// to learn more.
ListDeidentifyTemplates(context.Context, *ListDeidentifyTemplatesRequest) (*ListDeidentifyTemplatesResponse, error)
// Deletes a DeidentifyTemplate.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
// to learn more.
DeleteDeidentifyTemplate(context.Context, *DeleteDeidentifyTemplateRequest) (*emptypb.Empty, error)
// Creates a job trigger to run DLP actions such as scanning storage for
// sensitive information on a set schedule.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
// to learn more.
CreateJobTrigger(context.Context, *CreateJobTriggerRequest) (*JobTrigger, error)
// Updates a job trigger.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
// to learn more.
UpdateJobTrigger(context.Context, *UpdateJobTriggerRequest) (*JobTrigger, error)
// Inspect hybrid content and store findings to a trigger. The inspection
// will be processed asynchronously. To review the findings monitor the
// jobs within the trigger.
HybridInspectJobTrigger(context.Context, *HybridInspectJobTriggerRequest) (*HybridInspectResponse, error)
// Gets a job trigger.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
// to learn more.
GetJobTrigger(context.Context, *GetJobTriggerRequest) (*JobTrigger, error)
// Lists job triggers.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
// to learn more.
ListJobTriggers(context.Context, *ListJobTriggersRequest) (*ListJobTriggersResponse, error)
// Deletes a job trigger.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
// to learn more.
DeleteJobTrigger(context.Context, *DeleteJobTriggerRequest) (*emptypb.Empty, error)
// Activate a job trigger. Causes the immediate execute of a trigger
// instead of waiting on the trigger event to occur.
ActivateJobTrigger(context.Context, *ActivateJobTriggerRequest) (*DlpJob, error)
// Creates a config for discovery to scan and profile storage.
CreateDiscoveryConfig(context.Context, *CreateDiscoveryConfigRequest) (*DiscoveryConfig, error)
// Updates a discovery configuration.
UpdateDiscoveryConfig(context.Context, *UpdateDiscoveryConfigRequest) (*DiscoveryConfig, error)
// Gets a discovery configuration.
GetDiscoveryConfig(context.Context, *GetDiscoveryConfigRequest) (*DiscoveryConfig, error)
// Lists discovery configurations.
ListDiscoveryConfigs(context.Context, *ListDiscoveryConfigsRequest) (*ListDiscoveryConfigsResponse, error)
// Deletes a discovery configuration.
DeleteDiscoveryConfig(context.Context, *DeleteDiscoveryConfigRequest) (*emptypb.Empty, error)
// Creates a new job to inspect storage or calculate risk metrics.
// See
// https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
// and
// https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
// to learn more.
//
// When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
// system will automatically choose what detectors to run. By default this may
// be all types, but may change over time as detectors are updated.
CreateDlpJob(context.Context, *CreateDlpJobRequest) (*DlpJob, error)
// Lists DlpJobs that match the specified filter in the request.
// See
// https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
// and
// https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
// to learn more.
ListDlpJobs(context.Context, *ListDlpJobsRequest) (*ListDlpJobsResponse, error)
// Gets the latest state of a long-running DlpJob.
// See
// https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
// and
// https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
// to learn more.
GetDlpJob(context.Context, *GetDlpJobRequest) (*DlpJob, error)
// Deletes a long-running DlpJob. This method indicates that the client is
// no longer interested in the DlpJob result. The job will be canceled if
// possible.
// See
// https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
// and
// https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
// to learn more.
DeleteDlpJob(context.Context, *DeleteDlpJobRequest) (*emptypb.Empty, error)
// Starts asynchronous cancellation on a long-running DlpJob. The server
// makes a best effort to cancel the DlpJob, but success is not
// guaranteed.
// See
// https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
// and
// https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
// to learn more.
CancelDlpJob(context.Context, *CancelDlpJobRequest) (*emptypb.Empty, error)
// Creates a pre-built stored infoType to be used for inspection.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
// to learn more.
CreateStoredInfoType(context.Context, *CreateStoredInfoTypeRequest) (*StoredInfoType, error)
// Updates the stored infoType by creating a new version. The existing version
// will continue to be used until the new version is ready.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
// to learn more.
UpdateStoredInfoType(context.Context, *UpdateStoredInfoTypeRequest) (*StoredInfoType, error)
// Gets a stored infoType.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
// to learn more.
GetStoredInfoType(context.Context, *GetStoredInfoTypeRequest) (*StoredInfoType, error)
// Lists stored infoTypes.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
// to learn more.
ListStoredInfoTypes(context.Context, *ListStoredInfoTypesRequest) (*ListStoredInfoTypesResponse, error)
// Deletes a stored infoType.
// See
// https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
// to learn more.
DeleteStoredInfoType(context.Context, *DeleteStoredInfoTypeRequest) (*emptypb.Empty, error)
// Lists project data profiles for an organization.
ListProjectDataProfiles(context.Context, *ListProjectDataProfilesRequest) (*ListProjectDataProfilesResponse, error)
// Lists table data profiles for an organization.
ListTableDataProfiles(context.Context, *ListTableDataProfilesRequest) (*ListTableDataProfilesResponse, error)
// Lists column data profiles for an organization.
ListColumnDataProfiles(context.Context, *ListColumnDataProfilesRequest) (*ListColumnDataProfilesResponse, error)
// Gets a project data profile.
GetProjectDataProfile(context.Context, *GetProjectDataProfileRequest) (*ProjectDataProfile, error)
// Lists file store data profiles for an organization.
ListFileStoreDataProfiles(context.Context, *ListFileStoreDataProfilesRequest) (*ListFileStoreDataProfilesResponse, error)
// Gets a file store data profile.
GetFileStoreDataProfile(context.Context, *GetFileStoreDataProfileRequest) (*FileStoreDataProfile, error)
// Delete a FileStoreDataProfile. Will not prevent the profile from being
// regenerated if the resource is still included in a discovery configuration.
DeleteFileStoreDataProfile(context.Context, *DeleteFileStoreDataProfileRequest) (*emptypb.Empty, error)
// Gets a table data profile.
GetTableDataProfile(context.Context, *GetTableDataProfileRequest) (*TableDataProfile, error)
// Gets a column data profile.
GetColumnDataProfile(context.Context, *GetColumnDataProfileRequest) (*ColumnDataProfile, error)
// Delete a TableDataProfile. Will not prevent the profile from being
// regenerated if the table is still included in a discovery configuration.
DeleteTableDataProfile(context.Context, *DeleteTableDataProfileRequest) (*emptypb.Empty, error)
// Inspect hybrid content and store findings to a job.
// To review the findings, inspect the job. Inspection will occur
// asynchronously.
HybridInspectDlpJob(context.Context, *HybridInspectDlpJobRequest) (*HybridInspectResponse, error)
// Finish a running hybrid DlpJob. Triggers the finalization steps and running
// of any enabled actions that have not yet run.
FinishDlpJob(context.Context, *FinishDlpJobRequest) (*emptypb.Empty, error)
// Create a Connection to an external data source.
CreateConnection(context.Context, *CreateConnectionRequest) (*Connection, error)
// Get a Connection by name.
GetConnection(context.Context, *GetConnectionRequest) (*Connection, error)
// Lists Connections in a parent. Use SearchConnections to see all connections
// within an organization.
ListConnections(context.Context, *ListConnectionsRequest) (*ListConnectionsResponse, error)
// Searches for Connections in a parent.
SearchConnections(context.Context, *SearchConnectionsRequest) (*SearchConnectionsResponse, error)
// Delete a Connection.
DeleteConnection(context.Context, *DeleteConnectionRequest) (*emptypb.Empty, error)
// Update a Connection.
UpdateConnection(context.Context, *UpdateConnectionRequest) (*Connection, error)
}DlpServiceServer is the server API for DlpService service. All implementations should embed UnimplementedDlpServiceServer for forward compatibility
DocumentLocation
type DocumentLocation struct {
// Offset of the line, from the beginning of the file, where the finding
// is located.
FileOffset int64 `protobuf:"varint,1,opt,name=file_offset,json=fileOffset,proto3" json:"file_offset,omitempty"`
// contains filtered or unexported fields
}Location of a finding within a document.
func (*DocumentLocation) Descriptor
func (*DocumentLocation) Descriptor() ([]byte, []int)Deprecated: Use DocumentLocation.ProtoReflect.Descriptor instead.
func (*DocumentLocation) GetFileOffset
func (x *DocumentLocation) GetFileOffset() int64func (*DocumentLocation) ProtoMessage
func (*DocumentLocation) ProtoMessage()func (*DocumentLocation) ProtoReflect
func (x *DocumentLocation) ProtoReflect() protoreflect.Messagefunc (*DocumentLocation) Reset
func (x *DocumentLocation) Reset()func (*DocumentLocation) String
func (x *DocumentLocation) String() stringDomain
type Domain struct {
// A domain category that this profile is related to.
Category Domain_Category `protobuf:"varint,1,opt,name=category,proto3,enum=google.privacy.dlp.v2.Domain_Category" json:"category,omitempty"`
// The collection of signals that influenced selection of the category.
Signals []Domain_Signal `protobuf:"varint,2,rep,packed,name=signals,proto3,enum=google.privacy.dlp.v2.Domain_Signal" json:"signals,omitempty"`
// contains filtered or unexported fields
}A domain represents a thematic category that a data profile can fall under.
func (*Domain) Descriptor
Deprecated: Use Domain.ProtoReflect.Descriptor instead.
func (*Domain) GetCategory
func (x *Domain) GetCategory() Domain_Categoryfunc (*Domain) GetSignals
func (x *Domain) GetSignals() []Domain_Signalfunc (*Domain) ProtoMessage
func (*Domain) ProtoMessage()func (*Domain) ProtoReflect
func (x *Domain) ProtoReflect() protoreflect.Messagefunc (*Domain) Reset
func (x *Domain) Reset()func (*Domain) String
Domain_Category
type Domain_Category int32This enum defines the various domain categories a data profile can fall under.
Domain_CATEGORY_UNSPECIFIED, Domain_AI, Domain_CODE
const (
// Category unspecified.
Domain_CATEGORY_UNSPECIFIED Domain_Category = 0
// Indicates that the data profile is related to artificial intelligence.
// When set, all findings stored to Security Command Center will set the
// corresponding AI domain field of `Finding` objects.
Domain_AI Domain_Category = 1
// Indicates that the data profile is related to code.
Domain_CODE Domain_Category = 2
)func (Domain_Category) Descriptor
func (Domain_Category) Descriptor() protoreflect.EnumDescriptorfunc (Domain_Category) Enum
func (x Domain_Category) Enum() *Domain_Categoryfunc (Domain_Category) EnumDescriptor
func (Domain_Category) EnumDescriptor() ([]byte, []int)Deprecated: Use Domain_Category.Descriptor instead.
func (Domain_Category) Number
func (x Domain_Category) Number() protoreflect.EnumNumberfunc (Domain_Category) String
func (x Domain_Category) String() stringfunc (Domain_Category) Type
func (Domain_Category) Type() protoreflect.EnumTypeDomain_Signal
type Domain_Signal int32The signal used to determine the category. This list may increase over time.
Domain_SIGNAL_UNSPECIFIED, Domain_MODEL, Domain_TEXT_EMBEDDING, Domain_VERTEX_PLUGIN, Domain_VECTOR_PLUGIN, Domain_SOURCE_CODE, Domain_SERVICE
const (
// Unused.
Domain_SIGNAL_UNSPECIFIED Domain_Signal = 0
// One or more machine learning models are present.
Domain_MODEL Domain_Signal = 1
// A table appears to be a text embedding.
Domain_TEXT_EMBEDDING Domain_Signal = 2
// The [Cloud SQL Vertex
// AI](https://cloud.google.com/sql/docs/postgres/integrate-cloud-sql-with-vertex-ai)
// plugin is installed on the database.
Domain_VERTEX_PLUGIN Domain_Signal = 3
// Support for [Cloud SQL vector
// embeddings](https://cloud.google.com/sql/docs/mysql/enable-vector-search)
// is enabled on the database.
Domain_VECTOR_PLUGIN Domain_Signal = 4
// Source code is present.
Domain_SOURCE_CODE Domain_Signal = 5
// If the service determines the category type. For example, Vertex AI
// assets would always have a `Category` of `AI`.
Domain_SERVICE Domain_Signal = 6
)func (Domain_Signal) Descriptor
func (Domain_Signal) Descriptor() protoreflect.EnumDescriptorfunc (Domain_Signal) Enum
func (x Domain_Signal) Enum() *Domain_Signalfunc (Domain_Signal) EnumDescriptor
func (Domain_Signal) EnumDescriptor() ([]byte, []int)Deprecated: Use Domain_Signal.Descriptor instead.
func (Domain_Signal) Number
func (x Domain_Signal) Number() protoreflect.EnumNumberfunc (Domain_Signal) String
func (x Domain_Signal) String() stringfunc (Domain_Signal) Type
func (Domain_Signal) Type() protoreflect.EnumTypeEncryptionStatus
type EncryptionStatus int32How a resource is encrypted.
EncryptionStatus_ENCRYPTION_STATUS_UNSPECIFIED, EncryptionStatus_ENCRYPTION_GOOGLE_MANAGED, EncryptionStatus_ENCRYPTION_CUSTOMER_MANAGED
const (
// Unused.
EncryptionStatus_ENCRYPTION_STATUS_UNSPECIFIED EncryptionStatus = 0
// Google manages server-side encryption keys on your behalf.
EncryptionStatus_ENCRYPTION_GOOGLE_MANAGED EncryptionStatus = 1
// Customer provides the key.
EncryptionStatus_ENCRYPTION_CUSTOMER_MANAGED EncryptionStatus = 2
)func (EncryptionStatus) Descriptor
func (EncryptionStatus) Descriptor() protoreflect.EnumDescriptorfunc (EncryptionStatus) Enum
func (x EncryptionStatus) Enum() *EncryptionStatusfunc (EncryptionStatus) EnumDescriptor
func (EncryptionStatus) EnumDescriptor() ([]byte, []int)Deprecated: Use EncryptionStatus.Descriptor instead.
func (EncryptionStatus) Number
func (x EncryptionStatus) Number() protoreflect.EnumNumberfunc (EncryptionStatus) String
func (x EncryptionStatus) String() stringfunc (EncryptionStatus) Type
func (EncryptionStatus) Type() protoreflect.EnumTypeEntityId
type EntityId struct {
// Composite key indicating which field contains the entity identifier.
Field *FieldId `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
// contains filtered or unexported fields
}An entity in a dataset is a field or set of fields that correspond to a
single person. For example, in medical records the EntityId might be a
patient identifier, or for financial records it might be an account
identifier. This message is used when generalizations or analysis must take
into account that multiple rows correspond to the same entity.
func (*EntityId) Descriptor
Deprecated: Use EntityId.ProtoReflect.Descriptor instead.
func (*EntityId) GetField
func (*EntityId) ProtoMessage
func (*EntityId) ProtoMessage()func (*EntityId) ProtoReflect
func (x *EntityId) ProtoReflect() protoreflect.Messagefunc (*EntityId) Reset
func (x *EntityId) Reset()func (*EntityId) String
Error
type Error struct {
// Detailed error codes and messages.
Details *status.Status `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"`
// The times the error occurred. List includes the oldest timestamp and the
// last 9 timestamps.
Timestamps []*timestamppb.Timestamp `protobuf:"bytes,2,rep,name=timestamps,proto3" json:"timestamps,omitempty"`
// Additional information about the error.
ExtraInfo Error_ErrorExtraInfo `protobuf:"varint,4,opt,name=extra_info,json=extraInfo,proto3,enum=google.privacy.dlp.v2.Error_ErrorExtraInfo" json:"extra_info,omitempty"`
// contains filtered or unexported fields
}Details information about an error encountered during job execution or the results of an unsuccessful activation of the JobTrigger.
func (*Error) Descriptor
Deprecated: Use Error.ProtoReflect.Descriptor instead.
func (*Error) GetDetails
func (*Error) GetExtraInfo
func (x *Error) GetExtraInfo() Error_ErrorExtraInfofunc (*Error) GetTimestamps
func (x *Error) GetTimestamps() []*timestamppb.Timestampfunc (*Error) ProtoMessage
func (*Error) ProtoMessage()func (*Error) ProtoReflect
func (x *Error) ProtoReflect() protoreflect.Messagefunc (*Error) Reset
func (x *Error) Reset()func (*Error) String
Error_ErrorExtraInfo
type Error_ErrorExtraInfo int32Additional information about the error.
Error_ERROR_INFO_UNSPECIFIED, Error_IMAGE_SCAN_UNAVAILABLE_IN_REGION, Error_FILE_STORE_CLUSTER_UNSUPPORTED
const (
// Unused.
Error_ERROR_INFO_UNSPECIFIED Error_ErrorExtraInfo = 0
// Image scan is not available in the region.
Error_IMAGE_SCAN_UNAVAILABLE_IN_REGION Error_ErrorExtraInfo = 1
// File store cluster is not supported for profile generation.
Error_FILE_STORE_CLUSTER_UNSUPPORTED Error_ErrorExtraInfo = 2
)func (Error_ErrorExtraInfo) Descriptor
func (Error_ErrorExtraInfo) Descriptor() protoreflect.EnumDescriptorfunc (Error_ErrorExtraInfo) Enum
func (x Error_ErrorExtraInfo) Enum() *Error_ErrorExtraInfofunc (Error_ErrorExtraInfo) EnumDescriptor
func (Error_ErrorExtraInfo) EnumDescriptor() ([]byte, []int)Deprecated: Use Error_ErrorExtraInfo.Descriptor instead.
func (Error_ErrorExtraInfo) Number
func (x Error_ErrorExtraInfo) Number() protoreflect.EnumNumberfunc (Error_ErrorExtraInfo) String
func (x Error_ErrorExtraInfo) String() stringfunc (Error_ErrorExtraInfo) Type
func (Error_ErrorExtraInfo) Type() protoreflect.EnumTypeExcludeByHotword
type ExcludeByHotword struct {
// Regular expression pattern defining what qualifies as a hotword.
HotwordRegex *CustomInfoType_Regex `protobuf:"bytes,1,opt,name=hotword_regex,json=hotwordRegex,proto3" json:"hotword_regex,omitempty"`
// Range of characters within which the entire hotword must reside.
// The total length of the window cannot exceed 1000 characters.
// The windowBefore property in proximity should be set to 1 if the hotword
// needs to be included in a column header.
Proximity *CustomInfoType_DetectionRule_Proximity `protobuf:"bytes,2,opt,name=proximity,proto3" json:"proximity,omitempty"`
// contains filtered or unexported fields
}The rule to exclude findings based on a hotword. For record inspection of tables, column names are considered hotwords. An example of this is to exclude a finding if it belongs to a BigQuery column that matches a specific pattern.
func (*ExcludeByHotword) Descriptor
func (*ExcludeByHotword) Descriptor() ([]byte, []int)Deprecated: Use ExcludeByHotword.ProtoReflect.Descriptor instead.
func (*ExcludeByHotword) GetHotwordRegex
func (x *ExcludeByHotword) GetHotwordRegex() *CustomInfoType_Regexfunc (*ExcludeByHotword) GetProximity
func (x *ExcludeByHotword) GetProximity() *CustomInfoType_DetectionRule_Proximityfunc (*ExcludeByHotword) ProtoMessage
func (*ExcludeByHotword) ProtoMessage()func (*ExcludeByHotword) ProtoReflect
func (x *ExcludeByHotword) ProtoReflect() protoreflect.Messagefunc (*ExcludeByHotword) Reset
func (x *ExcludeByHotword) Reset()func (*ExcludeByHotword) String
func (x *ExcludeByHotword) String() stringExcludeInfoTypes
type ExcludeInfoTypes struct {
// InfoType list in ExclusionRule rule drops a finding when it overlaps or
// contained within with a finding of an infoType from this list. For
// example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
// `exclusion_rule` containing `exclude_info_types.info_types` with
// "EMAIL_ADDRESS" the phone number findings are dropped if they overlap
// with EMAIL_ADDRESS finding.
// That leads to "555-222-2222@example.org" to generate only a single
// finding, namely email address.
InfoTypes []*InfoType `protobuf:"bytes,1,rep,name=info_types,json=infoTypes,proto3" json:"info_types,omitempty"`
// contains filtered or unexported fields
}List of excluded infoTypes.
func (*ExcludeInfoTypes) Descriptor
func (*ExcludeInfoTypes) Descriptor() ([]byte, []int)Deprecated: Use ExcludeInfoTypes.ProtoReflect.Descriptor instead.
func (*ExcludeInfoTypes) GetInfoTypes
func (x *ExcludeInfoTypes) GetInfoTypes() []*InfoTypefunc (*ExcludeInfoTypes) ProtoMessage
func (*ExcludeInfoTypes) ProtoMessage()func (*ExcludeInfoTypes) ProtoReflect
func (x *ExcludeInfoTypes) ProtoReflect() protoreflect.Messagefunc (*ExcludeInfoTypes) Reset
func (x *ExcludeInfoTypes) Reset()func (*ExcludeInfoTypes) String
func (x *ExcludeInfoTypes) String() stringExclusionRule
type ExclusionRule struct {
// Exclusion rule types.
//
// Types that are assignable to Type:
//
// *ExclusionRule_Dictionary
// *ExclusionRule_Regex
// *ExclusionRule_ExcludeInfoTypes
// *ExclusionRule_ExcludeByHotword
Type isExclusionRule_Type `protobuf_oneof:"type"`
// How the rule is applied, see MatchingType documentation for details.
MatchingType MatchingType `protobuf:"varint,4,opt,name=matching_type,json=matchingType,proto3,enum=google.privacy.dlp.v2.MatchingType" json:"matching_type,omitempty"`
// contains filtered or unexported fields
}The rule that specifies conditions when findings of infoTypes specified in
InspectionRuleSet are removed from results.
func (*ExclusionRule) Descriptor
func (*ExclusionRule) Descriptor() ([]byte, []int)Deprecated: Use ExclusionRule.ProtoReflect.Descriptor instead.
func (*ExclusionRule) GetDictionary
func (x *ExclusionRule) GetDictionary() *CustomInfoType_Dictionaryfunc (*ExclusionRule) GetExcludeByHotword
func (x *ExclusionRule) GetExcludeByHotword() *ExcludeByHotwordfunc (*ExclusionRule) GetExcludeInfoTypes
func (x *ExclusionRule) GetExcludeInfoTypes() *ExcludeInfoTypesfunc (*ExclusionRule) GetMatchingType
func (x *ExclusionRule) GetMatchingType() MatchingTypefunc (*ExclusionRule) GetRegex
func (x *ExclusionRule) GetRegex() *CustomInfoType_Regexfunc (*ExclusionRule) GetType
func (m *ExclusionRule) GetType() isExclusionRule_Typefunc (*ExclusionRule) ProtoMessage
func (*ExclusionRule) ProtoMessage()func (*ExclusionRule) ProtoReflect
func (x *ExclusionRule) ProtoReflect() protoreflect.Messagefunc (*ExclusionRule) Reset
func (x *ExclusionRule) Reset()func (*ExclusionRule) String
func (x *ExclusionRule) String() stringExclusionRule_Dictionary
type ExclusionRule_Dictionary struct {
// Dictionary which defines the rule.
Dictionary *CustomInfoType_Dictionary `protobuf:"bytes,1,opt,name=dictionary,proto3,oneof"`
}ExclusionRule_ExcludeByHotword
type ExclusionRule_ExcludeByHotword struct {
// Drop if the hotword rule is contained in the proximate context. For
// tabular data, the context includes the column name.
ExcludeByHotword *ExcludeByHotword `protobuf:"bytes,5,opt,name=exclude_by_hotword,json=excludeByHotword,proto3,oneof"`
}ExclusionRule_ExcludeInfoTypes
type ExclusionRule_ExcludeInfoTypes struct {
// Set of infoTypes for which findings would affect this rule.
ExcludeInfoTypes *ExcludeInfoTypes `protobuf:"bytes,3,opt,name=exclude_info_types,json=excludeInfoTypes,proto3,oneof"`
}ExclusionRule_Regex
type ExclusionRule_Regex struct {
// Regular expression which defines the rule.
Regex *CustomInfoType_Regex `protobuf:"bytes,2,opt,name=regex,proto3,oneof"`
}FieldId
type FieldId struct {
// Name describing the field.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}General identifier of a data field in a storage service.
func (*FieldId) Descriptor
Deprecated: Use FieldId.ProtoReflect.Descriptor instead.
func (*FieldId) GetName
func (*FieldId) ProtoMessage
func (*FieldId) ProtoMessage()func (*FieldId) ProtoReflect
func (x *FieldId) ProtoReflect() protoreflect.Messagefunc (*FieldId) Reset
func (x *FieldId) Reset()func (*FieldId) String
FieldTransformation
type FieldTransformation struct {
// Required. Input field(s) to apply the transformation to.
// When you have columns that reference their position within a list,
// omit the index from the FieldId. FieldId name matching ignores the index.
// For example, instead of "contact.nums[0].type", use "contact.nums.type".
Fields []*FieldId `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
// Only apply the transformation if the condition evaluates to true for the
// given `RecordCondition`. The conditions are allowed to reference fields
// that are not used in the actual transformation.
//
// Example Use Cases:
//
// - Apply a different bucket transformation to an age column if the zip code
// column for the same record is within a specific range.
// - Redact a field if the date of birth field is greater than 85.
Condition *RecordCondition `protobuf:"bytes,3,opt,name=condition,proto3" json:"condition,omitempty"`
// Transformation to apply. [required]
//
// Types that are assignable to Transformation:
//
// *FieldTransformation_PrimitiveTransformation
// *FieldTransformation_InfoTypeTransformations
Transformation isFieldTransformation_Transformation `protobuf_oneof:"transformation"`
// contains filtered or unexported fields
}The transformation to apply to the field.
func (*FieldTransformation) Descriptor
func (*FieldTransformation) Descriptor() ([]byte, []int)Deprecated: Use FieldTransformation.ProtoReflect.Descriptor instead.
func (*FieldTransformation) GetCondition
func (x *FieldTransformation) GetCondition() *RecordConditionfunc (*FieldTransformation) GetFields
func (x *FieldTransformation) GetFields() []*FieldIdfunc (*FieldTransformation) GetInfoTypeTransformations
func (x *FieldTransformation) GetInfoTypeTransformations() *InfoTypeTransformationsfunc (*FieldTransformation) GetPrimitiveTransformation
func (x *FieldTransformation) GetPrimitiveTransformation() *PrimitiveTransformationfunc (*FieldTransformation) GetTransformation
func (m *FieldTransformation) GetTransformation() isFieldTransformation_Transformationfunc (*FieldTransformation) ProtoMessage
func (*FieldTransformation) ProtoMessage()func (*FieldTransformation) ProtoReflect
func (x *FieldTransformation) ProtoReflect() protoreflect.Messagefunc (*FieldTransformation) Reset
func (x *FieldTransformation) Reset()func (*FieldTransformation) String
func (x *FieldTransformation) String() stringFieldTransformation_InfoTypeTransformations
type FieldTransformation_InfoTypeTransformations struct {
// Treat the contents of the field as free text, and selectively
// transform content that matches an `InfoType`.
InfoTypeTransformations *InfoTypeTransformations `protobuf:"bytes,5,opt,name=info_type_transformations,json=infoTypeTransformations,proto3,oneof"`
}FieldTransformation_PrimitiveTransformation
type FieldTransformation_PrimitiveTransformation struct {
// Apply the transformation to the entire field.
PrimitiveTransformation *PrimitiveTransformation `protobuf:"bytes,4,opt,name=primitive_transformation,json=primitiveTransformation,proto3,oneof"`
}FileClusterSummary
type FileClusterSummary struct {
// The file cluster type.
FileClusterType *FileClusterType `protobuf:"bytes,1,opt,name=file_cluster_type,json=fileClusterType,proto3" json:"file_cluster_type,omitempty"`
// InfoTypes detected in this cluster.
FileStoreInfoTypeSummaries []*FileStoreInfoTypeSummary `protobuf:"bytes,2,rep,name=file_store_info_type_summaries,json=fileStoreInfoTypeSummaries,proto3" json:"file_store_info_type_summaries,omitempty"`
// The sensitivity score of this cluster. The score will be SENSITIVITY_LOW
// if nothing has been scanned.
SensitivityScore *SensitivityScore `protobuf:"bytes,3,opt,name=sensitivity_score,json=sensitivityScore,proto3" json:"sensitivity_score,omitempty"`
// The data risk level of this cluster. RISK_LOW if nothing has been
// scanned.
DataRiskLevel *DataRiskLevel `protobuf:"bytes,4,opt,name=data_risk_level,json=dataRiskLevel,proto3" json:"data_risk_level,omitempty"`
// A list of errors detected while scanning this cluster. The list is
// truncated to 10 per cluster.
Errors []*Error `protobuf:"bytes,6,rep,name=errors,proto3" json:"errors,omitempty"`
// A sample of file types scanned in this cluster. Empty if no files were
// scanned. File extensions can be derived from the file name or the file
// content.
FileExtensionsScanned []*FileExtensionInfo `protobuf:"bytes,7,rep,name=file_extensions_scanned,json=fileExtensionsScanned,proto3" json:"file_extensions_scanned,omitempty"`
// A sample of file types seen in this cluster. Empty if no files were seen.
// File extensions can be derived from the file name or the file content.
FileExtensionsSeen []*FileExtensionInfo `protobuf:"bytes,8,rep,name=file_extensions_seen,json=fileExtensionsSeen,proto3" json:"file_extensions_seen,omitempty"`
// True if no files exist in this cluster. If the file store had more files
// than could be listed, this will be false even if no files for this cluster
// were seen and file_extensions_seen is empty.
NoFilesExist bool `protobuf:"varint,9,opt,name=no_files_exist,json=noFilesExist,proto3" json:"no_files_exist,omitempty"`
// contains filtered or unexported fields
}The file cluster summary.
func (*FileClusterSummary) Descriptor
func (*FileClusterSummary) Descriptor() ([]byte, []int)Deprecated: Use FileClusterSummary.ProtoReflect.Descriptor instead.
func (*FileClusterSummary) GetDataRiskLevel
func (x *FileClusterSummary) GetDataRiskLevel() *DataRiskLevelfunc (*FileClusterSummary) GetErrors
func (x *FileClusterSummary) GetErrors() []*Errorfunc (*FileClusterSummary) GetFileClusterType
func (x *FileClusterSummary) GetFileClusterType() *FileClusterTypefunc (*FileClusterSummary) GetFileExtensionsScanned
func (x *FileClusterSummary) GetFileExtensionsScanned() []*FileExtensionInfofunc (*FileClusterSummary) GetFileExtensionsSeen
func (x *FileClusterSummary) GetFileExtensionsSeen() []*FileExtensionInfofunc (*FileClusterSummary) GetFileStoreInfoTypeSummaries
func (x *FileClusterSummary) GetFileStoreInfoTypeSummaries() []*FileStoreInfoTypeSummaryfunc (*FileClusterSummary) GetNoFilesExist
func (x *FileClusterSummary) GetNoFilesExist() boolfunc (*FileClusterSummary) GetSensitivityScore
func (x *FileClusterSummary) GetSensitivityScore() *SensitivityScorefunc (*FileClusterSummary) ProtoMessage
func (*FileClusterSummary) ProtoMessage()func (*FileClusterSummary) ProtoReflect
func (x *FileClusterSummary) ProtoReflect() protoreflect.Messagefunc (*FileClusterSummary) Reset
func (x *FileClusterSummary) Reset()func (*FileClusterSummary) String
func (x *FileClusterSummary) String() stringFileClusterType
type FileClusterType struct {
// File cluster type.
//
// Types that are assignable to FileClusterType:
//
// *FileClusterType_Cluster_
FileClusterType isFileClusterType_FileClusterType `protobuf_oneof:"file_cluster_type"`
// contains filtered or unexported fields
}Message used to identify file cluster type being profiled.
func (*FileClusterType) Descriptor
func (*FileClusterType) Descriptor() ([]byte, []int)Deprecated: Use FileClusterType.ProtoReflect.Descriptor instead.
func (*FileClusterType) GetCluster
func (x *FileClusterType) GetCluster() FileClusterType_Clusterfunc (*FileClusterType) GetFileClusterType
func (m *FileClusterType) GetFileClusterType() isFileClusterType_FileClusterTypefunc (*FileClusterType) ProtoMessage
func (*FileClusterType) ProtoMessage()func (*FileClusterType) ProtoReflect
func (x *FileClusterType) ProtoReflect() protoreflect.Messagefunc (*FileClusterType) Reset
func (x *FileClusterType) Reset()func (*FileClusterType) String
func (x *FileClusterType) String() stringFileClusterType_Cluster
type FileClusterType_Cluster int32Cluster type. Each cluster corresponds to a set of file types. Over time, new types may be added and files may move between clusters.
FileClusterType_CLUSTER_UNSPECIFIED, FileClusterType_CLUSTER_UNKNOWN, FileClusterType_CLUSTER_TEXT, FileClusterType_CLUSTER_STRUCTURED_DATA, FileClusterType_CLUSTER_SOURCE_CODE, FileClusterType_CLUSTER_RICH_DOCUMENT, FileClusterType_CLUSTER_IMAGE, FileClusterType_CLUSTER_ARCHIVE, FileClusterType_CLUSTER_MULTIMEDIA, FileClusterType_CLUSTER_EXECUTABLE, FileClusterType_CLUSTER_AI_MODEL
const (
// Unused.
FileClusterType_CLUSTER_UNSPECIFIED FileClusterType_Cluster = 0
// Unsupported files.
FileClusterType_CLUSTER_UNKNOWN FileClusterType_Cluster = 1
// Plain text.
FileClusterType_CLUSTER_TEXT FileClusterType_Cluster = 2
// Structured data like CSV, TSV etc.
FileClusterType_CLUSTER_STRUCTURED_DATA FileClusterType_Cluster = 3
// Source code.
FileClusterType_CLUSTER_SOURCE_CODE FileClusterType_Cluster = 4
// Rich document like docx, xlsx etc.
FileClusterType_CLUSTER_RICH_DOCUMENT FileClusterType_Cluster = 5
// Images like jpeg, bmp.
FileClusterType_CLUSTER_IMAGE FileClusterType_Cluster = 6
// Archives and containers like .zip, .tar etc.
FileClusterType_CLUSTER_ARCHIVE FileClusterType_Cluster = 7
// Multimedia like .mp4, .avi etc.
FileClusterType_CLUSTER_MULTIMEDIA FileClusterType_Cluster = 8
// Executable files like .exe, .class, .apk etc.
FileClusterType_CLUSTER_EXECUTABLE FileClusterType_Cluster = 9
// AI models like .tflite etc.
FileClusterType_CLUSTER_AI_MODEL FileClusterType_Cluster = 10
)func (FileClusterType_Cluster) Descriptor
func (FileClusterType_Cluster) Descriptor() protoreflect.EnumDescriptorfunc (FileClusterType_Cluster) Enum
func (x FileClusterType_Cluster) Enum() *FileClusterType_Clusterfunc (FileClusterType_Cluster) EnumDescriptor
func (FileClusterType_Cluster) EnumDescriptor() ([]byte, []int)Deprecated: Use FileClusterType_Cluster.Descriptor instead.
func (FileClusterType_Cluster) Number
func (x FileClusterType_Cluster) Number() protoreflect.EnumNumberfunc (FileClusterType_Cluster) String
func (x FileClusterType_Cluster) String() stringfunc (FileClusterType_Cluster) Type
func (FileClusterType_Cluster) Type() protoreflect.EnumTypeFileClusterType_Cluster_
type FileClusterType_Cluster_ struct {
// Cluster type.
Cluster FileClusterType_Cluster `protobuf:"varint,1,opt,name=cluster,proto3,enum=google.privacy.dlp.v2.FileClusterType_Cluster,oneof"`
}FileExtensionInfo
type FileExtensionInfo struct {
// The file extension if set. (aka .pdf, .jpg, .txt)
FileExtension string `protobuf:"bytes,1,opt,name=file_extension,json=fileExtension,proto3" json:"file_extension,omitempty"`
// contains filtered or unexported fields
}Information regarding the discovered file extension.
func (*FileExtensionInfo) Descriptor
func (*FileExtensionInfo) Descriptor() ([]byte, []int)Deprecated: Use FileExtensionInfo.ProtoReflect.Descriptor instead.
func (*FileExtensionInfo) GetFileExtension
func (x *FileExtensionInfo) GetFileExtension() stringfunc (*FileExtensionInfo) ProtoMessage
func (*FileExtensionInfo) ProtoMessage()func (*FileExtensionInfo) ProtoReflect
func (x *FileExtensionInfo) ProtoReflect() protoreflect.Messagefunc (*FileExtensionInfo) Reset
func (x *FileExtensionInfo) Reset()func (*FileExtensionInfo) String
func (x *FileExtensionInfo) String() stringFileStoreCollection
type FileStoreCollection struct {
// The first filter containing a pattern that matches a file store will be
// used.
//
// Types that are assignable to Pattern:
//
// *FileStoreCollection_IncludeRegexes
Pattern isFileStoreCollection_Pattern `protobuf_oneof:"pattern"`
// Optional. To be included in the collection, a resource must meet all of the
// following requirements:
//
// - If tag filters are provided, match all provided tag filters.
// - If one or more patterns are specified, match at least one pattern.
//
// For a resource to match the tag filters, the resource must have all of the
// provided tags attached. Tags refer to Resource Manager tags bound to the
// resource or its ancestors. For more information, see [Manage
// schedules](https://cloud.google.com/sensitive-data-protection/docs/profile-project-cloud-storage#manage-schedules).
IncludeTags *TagFilters `protobuf:"bytes,2,opt,name=include_tags,json=includeTags,proto3" json:"include_tags,omitempty"`
// contains filtered or unexported fields
}Match file stores (e.g. buckets) using filters.
func (*FileStoreCollection) Descriptor
func (*FileStoreCollection) Descriptor() ([]byte, []int)Deprecated: Use FileStoreCollection.ProtoReflect.Descriptor instead.
func (*FileStoreCollection) GetIncludeRegexes
func (x *FileStoreCollection) GetIncludeRegexes() *FileStoreRegexesfunc (*FileStoreCollection) GetIncludeTags
func (x *FileStoreCollection) GetIncludeTags() *TagFiltersfunc (*FileStoreCollection) GetPattern
func (m *FileStoreCollection) GetPattern() isFileStoreCollection_Patternfunc (*FileStoreCollection) ProtoMessage
func (*FileStoreCollection) ProtoMessage()func (*FileStoreCollection) ProtoReflect
func (x *FileStoreCollection) ProtoReflect() protoreflect.Messagefunc (*FileStoreCollection) Reset
func (x *FileStoreCollection) Reset()func (*FileStoreCollection) String
func (x *FileStoreCollection) String() stringFileStoreCollection_IncludeRegexes
type FileStoreCollection_IncludeRegexes struct {
// Optional. A collection of regular expressions to match a file store
// against.
IncludeRegexes *FileStoreRegexes `protobuf:"bytes,1,opt,name=include_regexes,json=includeRegexes,proto3,oneof"`
}FileStoreDataProfile
type FileStoreDataProfile struct {
// The name of the profile.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The resource type that was profiled.
DataSourceType *DataSourceType `protobuf:"bytes,2,opt,name=data_source_type,json=dataSourceType,proto3" json:"data_source_type,omitempty"`
// The resource name of the project data profile for this file store.
ProjectDataProfile string `protobuf:"bytes,3,opt,name=project_data_profile,json=projectDataProfile,proto3" json:"project_data_profile,omitempty"`
// The Google Cloud project ID that owns the resource.
// For Amazon S3 buckets, this is the AWS Account Id.
ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// The location of the file store.
//
// * Cloud Storage:
// https://cloud.google.com/storage/docs/locations#available-locations
// * Amazon S3:
// https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints
FileStoreLocation string `protobuf:"bytes,5,opt,name=file_store_location,json=fileStoreLocation,proto3" json:"file_store_location,omitempty"`
// For resources that have multiple storage locations, these are those
// regions. For Cloud Storage this is the list of regions chosen for
// dual-region storage. `file_store_location` will normally be the
// corresponding multi-region for the list of individual locations. The first
// region is always picked as the processing and storage location for the data
// profile.
DataStorageLocations []string `protobuf:"bytes,19,rep,name=data_storage_locations,json=dataStorageLocations,proto3" json:"data_storage_locations,omitempty"`
// The location type of the file store (region, dual-region, multi-region,
// etc). If dual-region, expect data_storage_locations to be populated.
LocationType string `protobuf:"bytes,20,opt,name=location_type,json=locationType,proto3" json:"location_type,omitempty"`
// The file store path.
//
// * Cloud Storage: `gs://{bucket}`
// * Amazon S3: `s3://{bucket}`
// * Vertex AI dataset:
// `projects/{project_number}/locations/{location}/datasets/{dataset_id}`
FileStorePath string `protobuf:"bytes,6,opt,name=file_store_path,json=fileStorePath,proto3" json:"file_store_path,omitempty"`
// The resource name of the resource profiled.
// https://cloud.google.com/apis/design/resource_names#full_resource_name
//
// Example format of an S3 bucket full resource name:
// `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}`
FullResource string `protobuf:"bytes,24,opt,name=full_resource,json=fullResource,proto3" json:"full_resource,omitempty"`
// The snapshot of the configurations used to generate the profile.
ConfigSnapshot *DataProfileConfigSnapshot `protobuf:"bytes,7,opt,name=config_snapshot,json=configSnapshot,proto3" json:"config_snapshot,omitempty"`
// Success or error status from the most recent profile generation attempt.
// May be empty if the profile is still being generated.
ProfileStatus *ProfileStatus `protobuf:"bytes,8,opt,name=profile_status,json=profileStatus,proto3" json:"profile_status,omitempty"`
// State of a profile.
State FileStoreDataProfile_State `protobuf:"varint,9,opt,name=state,proto3,enum=google.privacy.dlp.v2.FileStoreDataProfile_State" json:"state,omitempty"`
// The last time the profile was generated.
ProfileLastGenerated *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=profile_last_generated,json=profileLastGenerated,proto3" json:"profile_last_generated,omitempty"`
// How broadly a resource has been shared.
ResourceVisibility ResourceVisibility `protobuf:"varint,11,opt,name=resource_visibility,json=resourceVisibility,proto3,enum=google.privacy.dlp.v2.ResourceVisibility" json:"resource_visibility,omitempty"`
// The sensitivity score of this resource.
SensitivityScore *SensitivityScore `protobuf:"bytes,12,opt,name=sensitivity_score,json=sensitivityScore,proto3" json:"sensitivity_score,omitempty"`
// The data risk level of this resource.
DataRiskLevel *DataRiskLevel `protobuf:"bytes,13,opt,name=data_risk_level,json=dataRiskLevel,proto3" json:"data_risk_level,omitempty"`
// The time the file store was first created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// The time the file store was last modified.
LastModifiedTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=last_modified_time,json=lastModifiedTime,proto3" json:"last_modified_time,omitempty"`
// FileClusterSummary per each cluster.
FileClusterSummaries []*FileClusterSummary `protobuf:"bytes,16,rep,name=file_cluster_summaries,json=fileClusterSummaries,proto3" json:"file_cluster_summaries,omitempty"`
// Attributes of the resource being profiled.
// Currently used attributes:
//
// * customer_managed_encryption: boolean
// - true: the resource is encrypted with a customer-managed key.
// - false: the resource is encrypted with a provider-managed key.
ResourceAttributes map[string]*Value `protobuf:"bytes,17,rep,name=resource_attributes,json=resourceAttributes,proto3" json:"resource_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// The labels applied to the resource at the time the profile was generated.
ResourceLabels map[string]string `protobuf:"bytes,18,rep,name=resource_labels,json=resourceLabels,proto3" json:"resource_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// InfoTypes detected in this file store.
FileStoreInfoTypeSummaries []*FileStoreInfoTypeSummary `protobuf:"bytes,21,rep,name=file_store_info_type_summaries,json=fileStoreInfoTypeSummaries,proto3" json:"file_store_info_type_summaries,omitempty"`
// The BigQuery table to which the sample findings are written.
SampleFindingsTable *BigQueryTable `protobuf:"bytes,22,opt,name=sample_findings_table,json=sampleFindingsTable,proto3" json:"sample_findings_table,omitempty"`
// The file store does not have any files. If the profiling operation failed,
// this is false.
FileStoreIsEmpty bool `protobuf:"varint,23,opt,name=file_store_is_empty,json=fileStoreIsEmpty,proto3" json:"file_store_is_empty,omitempty"`
// The tags attached to the resource, including any tags attached during
// profiling.
Tags []*Tag `protobuf:"bytes,25,rep,name=tags,proto3" json:"tags,omitempty"`
// Resources related to this profile.
RelatedResources []*RelatedResource `protobuf:"bytes,26,rep,name=related_resources,json=relatedResources,proto3" json:"related_resources,omitempty"`
// Domains associated with the profile.
Domains []*Domain `protobuf:"bytes,27,rep,name=domains,proto3" json:"domains,omitempty"`
// contains filtered or unexported fields
}The profile for a file store.
- Cloud Storage: maps 1:1 with a bucket.
- Amazon S3: maps 1:1 with a bucket.
func (*FileStoreDataProfile) Descriptor
func (*FileStoreDataProfile) Descriptor() ([]byte, []int)Deprecated: Use FileStoreDataProfile.ProtoReflect.Descriptor instead.
func (*FileStoreDataProfile) GetConfigSnapshot
func (x *FileStoreDataProfile) GetConfigSnapshot() *DataProfileConfigSnapshotfunc (*FileStoreDataProfile) GetCreateTime
func (x *FileStoreDataProfile) GetCreateTime() *timestamppb.Timestampfunc (*FileStoreDataProfile) GetDataRiskLevel
func (x *FileStoreDataProfile) GetDataRiskLevel() *DataRiskLevelfunc (*FileStoreDataProfile) GetDataSourceType
func (x *FileStoreDataProfile) GetDataSourceType() *DataSourceTypefunc (*FileStoreDataProfile) GetDataStorageLocations
func (x *FileStoreDataProfile) GetDataStorageLocations() []stringfunc (*FileStoreDataProfile) GetDomains
func (x *FileStoreDataProfile) GetDomains() []*Domainfunc (*FileStoreDataProfile) GetFileClusterSummaries
func (x *FileStoreDataProfile) GetFileClusterSummaries() []*FileClusterSummaryfunc (*FileStoreDataProfile) GetFileStoreInfoTypeSummaries
func (x *FileStoreDataProfile) GetFileStoreInfoTypeSummaries() []*FileStoreInfoTypeSummaryfunc (*FileStoreDataProfile) GetFileStoreIsEmpty
func (x *FileStoreDataProfile) GetFileStoreIsEmpty() boolfunc (*FileStoreDataProfile) GetFileStoreLocation
func (x *FileStoreDataProfile) GetFileStoreLocation() stringfunc (*FileStoreDataProfile) GetFileStorePath
func (x *FileStoreDataProfile) GetFileStorePath() stringfunc (*FileStoreDataProfile) GetFullResource
func (x *FileStoreDataProfile) GetFullResource() stringfunc (*FileStoreDataProfile) GetLastModifiedTime
func (x *FileStoreDataProfile) GetLastModifiedTime() *timestamppb.Timestampfunc (*FileStoreDataProfile) GetLocationType
func (x *FileStoreDataProfile) GetLocationType() stringfunc (*FileStoreDataProfile) GetName
func (x *FileStoreDataProfile) GetName() stringfunc (*FileStoreDataProfile) GetProfileLastGenerated
func (x *FileStoreDataProfile) GetProfileLastGenerated() *timestamppb.Timestampfunc (*FileStoreDataProfile) GetProfileStatus
func (x *FileStoreDataProfile) GetProfileStatus() *ProfileStatusfunc (*FileStoreDataProfile) GetProjectDataProfile
func (x *FileStoreDataProfile) GetProjectDataProfile() stringfunc (*FileStoreDataProfile) GetProjectId
func (x *FileStoreDataProfile) GetProjectId() stringfunc (*FileStoreDataProfile) GetRelatedResources
func (x *FileStoreDataProfile) GetRelatedResources() []*RelatedResourcefunc (*FileStoreDataProfile) GetResourceAttributes
func (x *FileStoreDataProfile) GetResourceAttributes() map[string]*Valuefunc (*FileStoreDataProfile) GetResourceLabels
func (x *FileStoreDataProfile) GetResourceLabels() map[string]stringfunc (*FileStoreDataProfile) GetResourceVisibility
func (x *FileStoreDataProfile) GetResourceVisibility() ResourceVisibilityfunc (*FileStoreDataProfile) GetSampleFindingsTable
func (x *FileStoreDataProfile) GetSampleFindingsTable() *BigQueryTablefunc (*FileStoreDataProfile) GetSensitivityScore
func (x *FileStoreDataProfile) GetSensitivityScore() *SensitivityScorefunc (*FileStoreDataProfile) GetState
func (x *FileStoreDataProfile) GetState() FileStoreDataProfile_Statefunc (*FileStoreDataProfile) GetTags
func (x *FileStoreDataProfile) GetTags() []*Tagfunc (*FileStoreDataProfile) ProtoMessage
func (*FileStoreDataProfile) ProtoMessage()func (*FileStoreDataProfile) ProtoReflect
func (x *FileStoreDataProfile) ProtoReflect() protoreflect.Messagefunc (*FileStoreDataProfile) Reset
func (x *FileStoreDataProfile) Reset()func (*FileStoreDataProfile) String
func (x *FileStoreDataProfile) String() stringFileStoreDataProfile_State
type FileStoreDataProfile_State int32Possible states of a profile. New items may be added.
FileStoreDataProfile_STATE_UNSPECIFIED, FileStoreDataProfile_RUNNING, FileStoreDataProfile_DONE
const (
// Unused.
FileStoreDataProfile_STATE_UNSPECIFIED FileStoreDataProfile_State = 0
// The profile is currently running. Once a profile has finished it will
// transition to DONE.
FileStoreDataProfile_RUNNING FileStoreDataProfile_State = 1
// The profile is no longer generating.
// If profile_status.status.code is 0, the profile succeeded, otherwise, it
// failed.
FileStoreDataProfile_DONE FileStoreDataProfile_State = 2
)func (FileStoreDataProfile_State) Descriptor
func (FileStoreDataProfile_State) Descriptor() protoreflect.EnumDescriptorfunc (FileStoreDataProfile_State) Enum
func (x FileStoreDataProfile_State) Enum() *FileStoreDataProfile_Statefunc (FileStoreDataProfile_State) EnumDescriptor
func (FileStoreDataProfile_State) EnumDescriptor() ([]byte, []int)Deprecated: Use FileStoreDataProfile_State.Descriptor instead.
func (FileStoreDataProfile_State) Number
func (x FileStoreDataProfile_State) Number() protoreflect.EnumNumberfunc (FileStoreDataProfile_State) String
func (x FileStoreDataProfile_State) String() stringfunc (FileStoreDataProfile_State) Type
func (FileStoreDataProfile_State) Type() protoreflect.EnumTypeFileStoreInfoTypeSummary
type FileStoreInfoTypeSummary struct {
// The InfoType seen.
InfoType *InfoType `protobuf:"bytes,1,opt,name=info_type,json=infoType,proto3" json:"info_type,omitempty"`
// contains filtered or unexported fields
}Information regarding the discovered InfoType.
func (*FileStoreInfoTypeSummary) Descriptor
func (*FileStoreInfoTypeSummary) Descriptor() ([]byte, []int)Deprecated: Use FileStoreInfoTypeSummary.ProtoReflect.Descriptor instead.
func (*FileStoreInfoTypeSummary) GetInfoType
func (x *FileStoreInfoTypeSummary) GetInfoType() *InfoTypefunc (*FileStoreInfoTypeSummary) ProtoMessage
func (*FileStoreInfoTypeSummary) ProtoMessage()func (*FileStoreInfoTypeSummary) ProtoReflect
func (x *FileStoreInfoTypeSummary) ProtoReflect() protoreflect.Messagefunc (*FileStoreInfoTypeSummary) Reset
func (x *FileStoreInfoTypeSummary) Reset()func (*FileStoreInfoTypeSummary) String
func (x *FileStoreInfoTypeSummary) String() stringFileStoreRegex
type FileStoreRegex struct {
// The type of resource regex to use.
//
// Types that are assignable to ResourceRegex:
//
// *FileStoreRegex_CloudStorageRegex
ResourceRegex isFileStoreRegex_ResourceRegex `protobuf_oneof:"resource_regex"`
// contains filtered or unexported fields
}A pattern to match against one or more file stores.
func (*FileStoreRegex) Descriptor
func (*FileStoreRegex) Descriptor() ([]byte, []int)Deprecated: Use FileStoreRegex.ProtoReflect.Descriptor instead.
func (*FileStoreRegex) GetCloudStorageRegex
func (x *FileStoreRegex) GetCloudStorageRegex() *CloudStorageRegexfunc (*FileStoreRegex) GetResourceRegex
func (m *FileStoreRegex) GetResourceRegex() isFileStoreRegex_ResourceRegexfunc (*FileStoreRegex) ProtoMessage
func (*FileStoreRegex) ProtoMessage()func (*FileStoreRegex) ProtoReflect
func (x *FileStoreRegex) ProtoReflect() protoreflect.Messagefunc (*FileStoreRegex) Reset
func (x *FileStoreRegex) Reset()func (*FileStoreRegex) String
func (x *FileStoreRegex) String() stringFileStoreRegex_CloudStorageRegex
type FileStoreRegex_CloudStorageRegex struct {
// Optional. Regex for Cloud Storage.
CloudStorageRegex *CloudStorageRegex `protobuf:"bytes,1,opt,name=cloud_storage_regex,json=cloudStorageRegex,proto3,oneof"`
}FileStoreRegexes
type FileStoreRegexes struct {
// Required. The group of regular expression patterns to match against one or
// more file stores. Maximum of 100 entries. The sum of all regular
// expression's length can't exceed 10 KiB.
Patterns []*FileStoreRegex `protobuf:"bytes,1,rep,name=patterns,proto3" json:"patterns,omitempty"`
// contains filtered or unexported fields
}A collection of regular expressions to determine what file store to match against.
func (*FileStoreRegexes) Descriptor
func (*FileStoreRegexes) Descriptor() ([]byte, []int)Deprecated: Use FileStoreRegexes.ProtoReflect.Descriptor instead.
func (*FileStoreRegexes) GetPatterns
func (x *FileStoreRegexes) GetPatterns() []*FileStoreRegexfunc (*FileStoreRegexes) ProtoMessage
func (*FileStoreRegexes) ProtoMessage()func (*FileStoreRegexes) ProtoReflect
func (x *FileStoreRegexes) ProtoReflect() protoreflect.Messagefunc (*FileStoreRegexes) Reset
func (x *FileStoreRegexes) Reset()func (*FileStoreRegexes) String
func (x *FileStoreRegexes) String() stringFileType
type FileType int32Definitions of file type groups to scan. New types will be added to this list.
FileType_FILE_TYPE_UNSPECIFIED, FileType_BINARY_FILE, FileType_TEXT_FILE, FileType_IMAGE, FileType_WORD, FileType_PDF, FileType_AVRO, FileType_CSV, FileType_TSV, FileType_POWERPOINT, FileType_EXCEL
const (
// Includes all files.
FileType_FILE_TYPE_UNSPECIFIED FileType = 0
// Includes all file extensions not covered by another entry. Binary
// scanning attempts to convert the content of the file to utf_8 to scan
// the file.
// If you wish to avoid this fall back, specify one or more of the other
// file types in your storage scan.
FileType_BINARY_FILE FileType = 1
// Included file extensions:
//
// asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart,
// dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm,
// mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht,
// properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex,
// shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml,
// ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd,
// yml, yaml.
FileType_TEXT_FILE FileType = 2
// Included file extensions:
//
// bmp, gif, jpg, jpeg, jpe, png. Setting
//
// [bytes_limit_per_file][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file]
// or
// [bytes_limit_per_file_percent][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file]
// has no effect on image files. Image inspection is restricted to the
// `global`, `us`, `asia`, and `europe` regions.
FileType_IMAGE FileType = 3
// Microsoft Word files larger than 30 MB will be scanned as binary files.
// Included file extensions:
//
// docx, dotx, docm, dotm. Setting `bytes_limit_per_file` or
// `bytes_limit_per_file_percent` has no effect on Word files.
FileType_WORD FileType = 5
// PDF files larger than 30 MB will be scanned as binary files.
// Included file extensions:
//
// pdf. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent`
//
// has no effect on PDF files.
FileType_PDF FileType = 6
// Included file extensions:
//
// avro
FileType_AVRO FileType = 7
// Included file extensions:
//
// csv
FileType_CSV FileType = 8
// Included file extensions:
//
// tsv
FileType_TSV FileType = 9
// Microsoft PowerPoint files larger than 30 MB will be scanned as binary
// files. Included file extensions:
//
// pptx, pptm, potx, potm, pot. Setting `bytes_limit_per_file` or
// `bytes_limit_per_file_percent` has no effect on PowerPoint files.
FileType_POWERPOINT FileType = 11
// Microsoft Excel files larger than 30 MB will be scanned as binary files.
// Included file extensions:
//
// xlsx, xlsm, xltx, xltm. Setting `bytes_limit_per_file` or
// `bytes_limit_per_file_percent` has no effect on Excel files.
FileType_EXCEL FileType = 12
)func (FileType) Descriptor
func (FileType) Descriptor() protoreflect.EnumDescriptorfunc (FileType) Enum
func (FileType) EnumDescriptor
Deprecated: Use FileType.Descriptor instead.
func (FileType) Number
func (x FileType) Number() protoreflect.EnumNumberfunc (FileType) String
func (FileType) Type
func (FileType) Type() protoreflect.EnumTypeFinding
type Finding struct {
// Resource name in format
// projects/{project}/locations/{location}/findings/{finding} Populated only
// when viewing persisted findings.
Name string `protobuf:"bytes,14,opt,name=name,proto3" json:"name,omitempty"`
// The content that was found. Even if the content is not textual, it
// may be converted to a textual representation here.
// Provided if `include_quote` is true and the finding is
// less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes
// in length, the quote may be omitted.
Quote string `protobuf:"bytes,1,opt,name=quote,proto3" json:"quote,omitempty"`
// The type of content that might have been found.
// Provided if `excluded_types` is false.
InfoType *InfoType `protobuf:"bytes,2,opt,name=info_type,json=infoType,proto3" json:"info_type,omitempty"`
// Confidence of how likely it is that the `info_type` is correct.
Likelihood Likelihood `protobuf:"varint,3,opt,name=likelihood,proto3,enum=google.privacy.dlp.v2.Likelihood" json:"likelihood,omitempty"`
// Where the content was found.
Location *Location `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
// Timestamp when finding was detected.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Contains data parsed from quotes. Only populated if include_quote was set
// to true and a supported infoType was requested. Currently supported
// infoTypes: DATE, DATE_OF_BIRTH and TIME.
QuoteInfo *QuoteInfo `protobuf:"bytes,7,opt,name=quote_info,json=quoteInfo,proto3" json:"quote_info,omitempty"`
// The job that stored the finding.
ResourceName string `protobuf:"bytes,8,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
// Job trigger name, if applicable, for this finding.
TriggerName string `protobuf:"bytes,9,opt,name=trigger_name,json=triggerName,proto3" json:"trigger_name,omitempty"`
// The labels associated with this `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"`
Labels map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Time the job started that produced this finding.
JobCreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=job_create_time,json=jobCreateTime,proto3" json:"job_create_time,omitempty"`
// The job that stored the finding.
JobName string `protobuf:"bytes,13,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"`
// The unique finding id.
FindingId string `protobuf:"bytes,15,opt,name=finding_id,json=findingId,proto3" json:"finding_id,omitempty"`
// contains filtered or unexported fields
}Represents a piece of potentially sensitive content.
func (*Finding) Descriptor
Deprecated: Use Finding.ProtoReflect.Descriptor instead.
func (*Finding) GetCreateTime
func (x *Finding) GetCreateTime() *timestamppb.Timestampfunc (*Finding) GetFindingId
func (*Finding) GetInfoType
func (*Finding) GetJobCreateTime
func (x *Finding) GetJobCreateTime() *timestamppb.Timestampfunc (*Finding) GetJobName
func (*Finding) GetLabels
func (*Finding) GetLikelihood
func (x *Finding) GetLikelihood() Likelihoodfunc (*Finding) GetLocation
func (*Finding) GetName
func (*Finding) GetQuote
func (*Finding) GetQuoteInfo
func (*Finding) GetResourceName
func (*Finding) GetTriggerName
func (*Finding) ProtoMessage
func (*Finding) ProtoMessage()func (*Finding) ProtoReflect
func (x *Finding) ProtoReflect() protoreflect.Messagefunc (*Finding) Reset
func (x *Finding) Reset()func (*Finding) String
FinishDlpJobRequest
type FinishDlpJobRequest struct {
// Required. The name of the DlpJob resource to be finished.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request message for finishing a DLP hybrid job.
func (*FinishDlpJobRequest) Descriptor
func (*FinishDlpJobRequest) Descriptor() ([]byte, []int)Deprecated: Use FinishDlpJobRequest.ProtoReflect.Descriptor instead.
func (*FinishDlpJobRequest) GetName
func (x *FinishDlpJobRequest) GetName() stringfunc (*FinishDlpJobRequest) ProtoMessage
func (*FinishDlpJobRequest) ProtoMessage()func (*FinishDlpJobRequest) ProtoReflect
func (x *FinishDlpJobRequest) ProtoReflect() protoreflect.Messagefunc (*FinishDlpJobRequest) Reset
func (x *FinishDlpJobRequest) Reset()func (*FinishDlpJobRequest) String
func (x *FinishDlpJobRequest) String() stringFixedSizeBucketingConfig
type FixedSizeBucketingConfig struct {
// Required. Lower bound value of buckets. All values less than `lower_bound`
// are grouped together into a single bucket; for example if `lower_bound` =
// 10, then all values less than 10 are replaced with the value "-10".
LowerBound *Value `protobuf:"bytes,1,opt,name=lower_bound,json=lowerBound,proto3" json:"lower_bound,omitempty"`
// Required. Upper bound value of buckets. All values greater than upper_bound
// are grouped together into a single bucket; for example if `upper_bound` =
// 89, then all values greater than 89 are replaced with the value "89+".
UpperBound *Value `protobuf:"bytes,2,opt,name=upper_bound,json=upperBound,proto3" json:"upper_bound,omitempty"`
// Required. Size of each bucket (except for minimum and maximum buckets). So
// if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
// following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
// 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
BucketSize float64 `protobuf:"fixed64,3,opt,name=bucket_size,json=bucketSize,proto3" json:"bucket_size,omitempty"`
// contains filtered or unexported fields
}Buckets values based on fixed size ranges. The Bucketing transformation can provide all of this functionality, but requires more configuration. This message is provided as a convenience to the user for simple bucketing strategies.
The transformed value will be a hyphenated string of {lower_bound}-{upper_bound}. For example, if lower_bound = 10 and upper_bound = 20, all values that are within this bucket will be replaced with "10-20".
This can be used on data of type: double, long.
If the bound Value type differs from the type of data being transformed, we will first attempt converting the type of the data to be transformed to match the type of the bound before comparing.
See https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to learn more.
func (*FixedSizeBucketingConfig) Descriptor
func (*FixedSizeBucketingConfig) Descriptor() ([]byte, []int)Deprecated: Use FixedSizeBucketingConfig.ProtoReflect.Descriptor instead.
func (*FixedSizeBucketingConfig) GetBucketSize
func (x *FixedSizeBucketingConfig) GetBucketSize() float64func (*FixedSizeBucketingConfig) GetLowerBound
func (x *FixedSizeBucketingConfig) GetLowerBound() *Valuefunc (*FixedSizeBucketingConfig) GetUpperBound
func (x *FixedSizeBucketingConfig) GetUpperBound() *Valuefunc (*FixedSizeBucketingConfig) ProtoMessage
func (*FixedSizeBucketingConfig) ProtoMessage()func (*FixedSizeBucketingConfig) ProtoReflect
func (x *FixedSizeBucketingConfig) ProtoReflect() protoreflect.Messagefunc (*FixedSizeBucketingConfig) Reset
func (x *FixedSizeBucketingConfig) Reset()func (*FixedSizeBucketingConfig) String
func (x *FixedSizeBucketingConfig) String() stringGetColumnDataProfileRequest
type GetColumnDataProfileRequest struct {
// Required. Resource name, for example
// `organizations/12345/locations/us/columnDataProfiles/53234423`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request to get a column data profile.
func (*GetColumnDataProfileRequest) Descriptor
func (*GetColumnDataProfileRequest) Descriptor() ([]byte, []int)Deprecated: Use GetColumnDataProfileRequest.ProtoReflect.Descriptor instead.
func (*GetColumnDataProfileRequest) GetName
func (x *GetColumnDataProfileRequest) GetName() stringfunc (*GetColumnDataProfileRequest) ProtoMessage
func (*GetColumnDataProfileRequest) ProtoMessage()func (*GetColumnDataProfileRequest) ProtoReflect
func (x *GetColumnDataProfileRequest) ProtoReflect() protoreflect.Messagefunc (*GetColumnDataProfileRequest) Reset
func (x *GetColumnDataProfileRequest) Reset()func (*GetColumnDataProfileRequest) String
func (x *GetColumnDataProfileRequest) String() stringGetConnectionRequest
type GetConnectionRequest struct {
// Required. Resource name in the format:
// `projects/{project}/locations/{location}/connections/{connection}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetConnection.
func (*GetConnectionRequest) Descriptor
func (*GetConnectionRequest) Descriptor() ([]byte, []int)Deprecated: Use GetConnectionRequest.ProtoReflect.Descriptor instead.
func (*GetConnectionRequest) GetName
func (x *GetConnectionRequest) GetName() stringfunc (*GetConnectionRequest) ProtoMessage
func (*GetConnectionRequest) ProtoMessage()func (*GetConnectionRequest) ProtoReflect
func (x *GetConnectionRequest) ProtoReflect() protoreflect.Messagefunc (*GetConnectionRequest) Reset
func (x *GetConnectionRequest) Reset()func (*GetConnectionRequest) String
func (x *GetConnectionRequest) String() stringGetDeidentifyTemplateRequest
type GetDeidentifyTemplateRequest struct {
// Required. Resource name of the organization and deidentify template to be
// read, for example `organizations/433245324/deidentifyTemplates/432452342`
// or projects/project-id/deidentifyTemplates/432452342.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetDeidentifyTemplate.
func (*GetDeidentifyTemplateRequest) Descriptor
func (*GetDeidentifyTemplateRequest) Descriptor() ([]byte, []int)Deprecated: Use GetDeidentifyTemplateRequest.ProtoReflect.Descriptor instead.
func (*GetDeidentifyTemplateRequest) GetName
func (x *GetDeidentifyTemplateRequest) GetName() stringfunc (*GetDeidentifyTemplateRequest) ProtoMessage
func (*GetDeidentifyTemplateRequest) ProtoMessage()func (*GetDeidentifyTemplateRequest) ProtoReflect
func (x *GetDeidentifyTemplateRequest) ProtoReflect() protoreflect.Messagefunc (*GetDeidentifyTemplateRequest) Reset
func (x *GetDeidentifyTemplateRequest) Reset()func (*GetDeidentifyTemplateRequest) String
func (x *GetDeidentifyTemplateRequest) String() stringGetDiscoveryConfigRequest
type GetDiscoveryConfigRequest struct {
// Required. Resource name of the project and the configuration, for example
// `projects/dlp-test-project/discoveryConfigs/53234423`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetDiscoveryConfig.
func (*GetDiscoveryConfigRequest) Descriptor
func (*GetDiscoveryConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use GetDiscoveryConfigRequest.ProtoReflect.Descriptor instead.
func (*GetDiscoveryConfigRequest) GetName
func (x *GetDiscoveryConfigRequest) GetName() stringfunc (*GetDiscoveryConfigRequest) ProtoMessage
func (*GetDiscoveryConfigRequest) ProtoMessage()func (*GetDiscoveryConfigRequest) ProtoReflect
func (x *GetDiscoveryConfigRequest) ProtoReflect() protoreflect.Messagefunc (*GetDiscoveryConfigRequest) Reset
func (x *GetDiscoveryConfigRequest) Reset()func (*GetDiscoveryConfigRequest) String
func (x *GetDiscoveryConfigRequest) String() stringGetDlpJobRequest
type GetDlpJobRequest struct {
// Required. The name of the DlpJob resource.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request message for [GetDlpJob][google.privacy.dlp.v2.DlpService.GetDlpJob].
func (*GetDlpJobRequest) Descriptor
func (*GetDlpJobRequest) Descriptor() ([]byte, []int)Deprecated: Use GetDlpJobRequest.ProtoReflect.Descriptor instead.
func (*GetDlpJobRequest) GetName
func (x *GetDlpJobRequest) GetName() stringfunc (*GetDlpJobRequest) ProtoMessage
func (*GetDlpJobRequest) ProtoMessage()func (*GetDlpJobRequest) ProtoReflect
func (x *GetDlpJobRequest) ProtoReflect() protoreflect.Messagefunc (*GetDlpJobRequest) Reset
func (x *GetDlpJobRequest) Reset()func (*GetDlpJobRequest) String
func (x *GetDlpJobRequest) String() stringGetFileStoreDataProfileRequest
type GetFileStoreDataProfileRequest struct {
// Required. Resource name, for example
// `organizations/12345/locations/us/fileStoreDataProfiles/53234423`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request to get a file store data profile.
func (*GetFileStoreDataProfileRequest) Descriptor
func (*GetFileStoreDataProfileRequest) Descriptor() ([]byte, []int)Deprecated: Use GetFileStoreDataProfileRequest.ProtoReflect.Descriptor instead.
func (*GetFileStoreDataProfileRequest) GetName
func (x *GetFileStoreDataProfileRequest) GetName() stringfunc (*GetFileStoreDataProfileRequest) ProtoMessage
func (*GetFileStoreDataProfileRequest) ProtoMessage()func (*GetFileStoreDataProfileRequest) ProtoReflect
func (x *GetFileStoreDataProfileRequest) ProtoReflect() protoreflect.Messagefunc (*GetFileStoreDataProfileRequest) Reset
func (x *GetFileStoreDataProfileRequest) Reset()func (*GetFileStoreDataProfileRequest) String
func (x *GetFileStoreDataProfileRequest) String() stringGetInspectTemplateRequest
type GetInspectTemplateRequest struct {
// Required. Resource name of the organization and inspectTemplate to be read,
// for example `organizations/433245324/inspectTemplates/432452342` or
// projects/project-id/inspectTemplates/432452342.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetInspectTemplate.
func (*GetInspectTemplateRequest) Descriptor
func (*GetInspectTemplateRequest) Descriptor() ([]byte, []int)Deprecated: Use GetInspectTemplateRequest.ProtoReflect.Descriptor instead.
func (*GetInspectTemplateRequest) GetName
func (x *GetInspectTemplateRequest) GetName() stringfunc (*GetInspectTemplateRequest) ProtoMessage
func (*GetInspectTemplateRequest) ProtoMessage()func (*GetInspectTemplateRequest) ProtoReflect
func (x *GetInspectTemplateRequest) ProtoReflect() protoreflect.Messagefunc (*GetInspectTemplateRequest) Reset
func (x *GetInspectTemplateRequest) Reset()func (*GetInspectTemplateRequest) String
func (x *GetInspectTemplateRequest) String() stringGetJobTriggerRequest
type GetJobTriggerRequest struct {
// Required. Resource name of the project and the triggeredJob, for example
// `projects/dlp-test-project/jobTriggers/53234423`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetJobTrigger.
func (*GetJobTriggerRequest) Descriptor
func (*GetJobTriggerRequest) Descriptor() ([]byte, []int)Deprecated: Use GetJobTriggerRequest.ProtoReflect.Descriptor instead.
func (*GetJobTriggerRequest) GetName
func (x *GetJobTriggerRequest) GetName() stringfunc (*GetJobTriggerRequest) ProtoMessage
func (*GetJobTriggerRequest) ProtoMessage()func (*GetJobTriggerRequest) ProtoReflect
func (x *GetJobTriggerRequest) ProtoReflect() protoreflect.Messagefunc (*GetJobTriggerRequest) Reset
func (x *GetJobTriggerRequest) Reset()func (*GetJobTriggerRequest) String
func (x *GetJobTriggerRequest) String() stringGetProjectDataProfileRequest
type GetProjectDataProfileRequest struct {
// Required. Resource name, for example
// `organizations/12345/locations/us/projectDataProfiles/53234423`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request to get a project data profile.
func (*GetProjectDataProfileRequest) Descriptor
func (*GetProjectDataProfileRequest) Descriptor() ([]byte, []int)Deprecated: Use GetProjectDataProfileRequest.ProtoReflect.Descriptor instead.
func (*GetProjectDataProfileRequest) GetName
func (x *GetProjectDataProfileRequest) GetName() stringfunc (*GetProjectDataProfileRequest) ProtoMessage
func (*GetProjectDataProfileRequest) ProtoMessage()func (*GetProjectDataProfileRequest) ProtoReflect
func (x *GetProjectDataProfileRequest) ProtoReflect() protoreflect.Messagefunc (*GetProjectDataProfileRequest) Reset
func (x *GetProjectDataProfileRequest) Reset()func (*GetProjectDataProfileRequest) String
func (x *GetProjectDataProfileRequest) String() stringGetStoredInfoTypeRequest
type GetStoredInfoTypeRequest struct {
// Required. Resource name of the organization and storedInfoType to be read,
// for example `organizations/433245324/storedInfoTypes/432452342` or
// projects/project-id/storedInfoTypes/432452342.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetStoredInfoType.
func (*GetStoredInfoTypeRequest) Descriptor
func (*GetStoredInfoTypeRequest) Descriptor() ([]byte, []int)Deprecated: Use GetStoredInfoTypeRequest.ProtoReflect.Descriptor instead.
func (*GetStoredInfoTypeRequest) GetName
func (x *GetStoredInfoTypeRequest) GetName() stringfunc (*GetStoredInfoTypeRequest) ProtoMessage
func (*GetStoredInfoTypeRequest) ProtoMessage()func (*GetStoredInfoTypeRequest) ProtoReflect
func (x *GetStoredInfoTypeRequest) ProtoReflect() protoreflect.Messagefunc (*GetStoredInfoTypeRequest) Reset
func (x *GetStoredInfoTypeRequest) Reset()func (*GetStoredInfoTypeRequest) String
func (x *GetStoredInfoTypeRequest) String() stringGetTableDataProfileRequest
type GetTableDataProfileRequest struct {
// Required. Resource name, for example
// `organizations/12345/locations/us/tableDataProfiles/53234423`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request to get a table data profile.
func (*GetTableDataProfileRequest) Descriptor
func (*GetTableDataProfileRequest) Descriptor() ([]byte, []int)Deprecated: Use GetTableDataProfileRequest.ProtoReflect.Descriptor instead.
func (*GetTableDataProfileRequest) GetName
func (x *GetTableDataProfileRequest) GetName() stringfunc (*GetTableDataProfileRequest) ProtoMessage
func (*GetTableDataProfileRequest) ProtoMessage()func (*GetTableDataProfileRequest) ProtoReflect
func (x *GetTableDataProfileRequest) ProtoReflect() protoreflect.Messagefunc (*GetTableDataProfileRequest) Reset
func (x *GetTableDataProfileRequest) Reset()func (*GetTableDataProfileRequest) String
func (x *GetTableDataProfileRequest) String() stringHybridContentItem
type HybridContentItem struct {
// The item to inspect.
Item *ContentItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
// Supplementary information that will be added to each finding.
FindingDetails *HybridFindingDetails `protobuf:"bytes,2,opt,name=finding_details,json=findingDetails,proto3" json:"finding_details,omitempty"`
// contains filtered or unexported fields
}An individual hybrid item to inspect. Will be stored temporarily during processing.
func (*HybridContentItem) Descriptor
func (*HybridContentItem) Descriptor() ([]byte, []int)Deprecated: Use HybridContentItem.ProtoReflect.Descriptor instead.
func (*HybridContentItem) GetFindingDetails
func (x *HybridContentItem) GetFindingDetails() *HybridFindingDetailsfunc (*HybridContentItem) GetItem
func (x *HybridContentItem) GetItem() *ContentItemfunc (*HybridContentItem) ProtoMessage
func (*HybridContentItem) ProtoMessage()func (*HybridContentItem) ProtoReflect
func (x *HybridContentItem) ProtoReflect() protoreflect.Messagefunc (*HybridContentItem) Reset
func (x *HybridContentItem) Reset()func (*HybridContentItem) String
func (x *HybridContentItem) String() stringHybridFindingDetails
type HybridFindingDetails struct {
// Details about the container where the content being inspected is from.
ContainerDetails *Container `protobuf:"bytes,1,opt,name=container_details,json=containerDetails,proto3" json:"container_details,omitempty"`
// Offset in bytes of the line, from the beginning of the file, where the
// finding is located. Populate if the item being scanned is only part of a
// bigger item, such as a shard of a file and you want to track the absolute
// position of the finding.
FileOffset int64 `protobuf:"varint,2,opt,name=file_offset,json=fileOffset,proto3" json:"file_offset,omitempty"`
// Offset of the row for tables. Populate if the row(s) being scanned are
// part of a bigger dataset and you want to keep track of their absolute
// position.
RowOffset int64 `protobuf:"varint,3,opt,name=row_offset,json=rowOffset,proto3" json:"row_offset,omitempty"`
// If the container is a table, additional information to make findings
// meaningful such as the columns that are primary keys. If not known ahead
// of time, can also be set within each inspect hybrid call and the two
// will be merged. Note that identifying_fields will only be stored to
// BigQuery, and only if the BigQuery action has been included.
TableOptions *TableOptions `protobuf:"bytes,4,opt,name=table_options,json=tableOptions,proto3" json:"table_options,omitempty"`
// Labels to represent user provided metadata about the data being inspected.
// If configured by the job, some key values may be required.
// The labels associated with `Finding`'s produced by hybrid
// inspection.
//
// 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"`
Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// contains filtered or unexported fields
}Populate to associate additional data with each finding.
func (*HybridFindingDetails) Descriptor
func (*HybridFindingDetails) Descriptor() ([]byte, []int)Deprecated: Use HybridFindingDetails.ProtoReflect.Descriptor instead.
func (*HybridFindingDetails) GetContainerDetails
func (x *HybridFindingDetails) GetContainerDetails() *Containerfunc (*HybridFindingDetails) GetFileOffset
func (x *HybridFindingDetails) GetFileOffset() int64func (*HybridFindingDetails) GetLabels
func (x *HybridFindingDetails) GetLabels() map[string]stringfunc (*HybridFindingDetails) GetRowOffset
func (x *HybridFindingDetails) GetRowOffset() int64func (*HybridFindingDetails) GetTableOptions
func (x *HybridFindingDetails) GetTableOptions() *TableOptionsfunc (*HybridFindingDetails) ProtoMessage
func (*HybridFindingDetails) ProtoMessage()func (*HybridFindingDetails) ProtoReflect
func (x *HybridFindingDetails) ProtoReflect() protoreflect.Messagefunc (*HybridFindingDetails) Reset
func (x *HybridFindingDetails) Reset()func (*HybridFindingDetails) String
func (x *HybridFindingDetails) String() stringHybridInspectDlpJobRequest
type HybridInspectDlpJobRequest struct {
// Required. Resource name of the job to execute a hybrid inspect on, for
// example `projects/dlp-test-project/dlpJob/53234423`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The item to inspect.
HybridItem *HybridContentItem `protobuf:"bytes,3,opt,name=hybrid_item,json=hybridItem,proto3" json:"hybrid_item,omitempty"`
// contains filtered or unexported fields
}Request to search for potentially sensitive info in a custom location.
func (*HybridInspectDlpJobRequest) Descriptor
func (*HybridInspectDlpJobRequest) Descriptor() ([]byte, []int)Deprecated: Use HybridInspectDlpJobRequest.ProtoReflect.Descriptor instead.
func (*HybridInspectDlpJobRequest) GetHybridItem
func (x *HybridInspectDlpJobRequest) GetHybridItem() *HybridContentItemfunc (*HybridInspectDlpJobRequest) GetName
func (x *HybridInspectDlpJobRequest) GetName() stringfunc (*HybridInspectDlpJobRequest) ProtoMessage
func (*HybridInspectDlpJobRequest) ProtoMessage()func (*HybridInspectDlpJobRequest) ProtoReflect
func (x *HybridInspectDlpJobRequest) ProtoReflect() protoreflect.Messagefunc (*HybridInspectDlpJobRequest) Reset
func (x *HybridInspectDlpJobRequest) Reset()func (*HybridInspectDlpJobRequest) String
func (x *HybridInspectDlpJobRequest) String() stringHybridInspectJobTriggerRequest
type HybridInspectJobTriggerRequest struct {
// Required. Resource name of the trigger to execute a hybrid inspect on, for
// example `projects/dlp-test-project/jobTriggers/53234423`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The item to inspect.
HybridItem *HybridContentItem `protobuf:"bytes,3,opt,name=hybrid_item,json=hybridItem,proto3" json:"hybrid_item,omitempty"`
// contains filtered or unexported fields
}Request to search for potentially sensitive info in a custom location.
func (*HybridInspectJobTriggerRequest) Descriptor
func (*HybridInspectJobTriggerRequest) Descriptor() ([]byte, []int)Deprecated: Use HybridInspectJobTriggerRequest.ProtoReflect.Descriptor instead.
func (*HybridInspectJobTriggerRequest) GetHybridItem
func (x *HybridInspectJobTriggerRequest) GetHybridItem() *HybridContentItemfunc (*HybridInspectJobTriggerRequest) GetName
func (x *HybridInspectJobTriggerRequest) GetName() stringfunc (*HybridInspectJobTriggerRequest) ProtoMessage
func (*HybridInspectJobTriggerRequest) ProtoMessage()func (*HybridInspectJobTriggerRequest) ProtoReflect
func (x *HybridInspectJobTriggerRequest) ProtoReflect() protoreflect.Messagefunc (*HybridInspectJobTriggerRequest) Reset
func (x *HybridInspectJobTriggerRequest) Reset()func (*HybridInspectJobTriggerRequest) String
func (x *HybridInspectJobTriggerRequest) String() stringHybridInspectResponse
type HybridInspectResponse struct {
// contains filtered or unexported fields
}Quota exceeded errors will be thrown once quota has been met.
func (*HybridInspectResponse) Descriptor
func (*HybridInspectResponse) Descriptor() ([]byte, []int)Deprecated: Use HybridInspectResponse.ProtoReflect.Descriptor instead.
func (*HybridInspectResponse) ProtoMessage
func (*HybridInspectResponse) ProtoMessage()func (*HybridInspectResponse) ProtoReflect
func (x *HybridInspectResponse) ProtoReflect() protoreflect.Messagefunc (*HybridInspectResponse) Reset
func (x *HybridInspectResponse) Reset()func (*HybridInspectResponse) String
func (x *HybridInspectResponse) String() stringHybridInspectStatistics
type HybridInspectStatistics struct {
// The number of hybrid inspection requests processed within this job.
ProcessedCount int64 `protobuf:"varint,1,opt,name=processed_count,json=processedCount,proto3" json:"processed_count,omitempty"`
// The number of hybrid inspection requests aborted because the job ran
// out of quota or was ended before they could be processed.
AbortedCount int64 `protobuf:"varint,2,opt,name=aborted_count,json=abortedCount,proto3" json:"aborted_count,omitempty"`
// The number of hybrid requests currently being processed. Only populated
// when called via method `getDlpJob`.
// A burst of traffic may cause hybrid inspect requests to be enqueued.
// Processing will take place as quickly as possible, but resource limitations
// may impact how long a request is enqueued for.
PendingCount int64 `protobuf:"varint,3,opt,name=pending_count,json=pendingCount,proto3" json:"pending_count,omitempty"`
// contains filtered or unexported fields
}Statistics related to processing hybrid inspect requests.
func (*HybridInspectStatistics) Descriptor
func (*HybridInspectStatistics) Descriptor() ([]byte, []int)Deprecated: Use HybridInspectStatistics.ProtoReflect.Descriptor instead.
func (*HybridInspectStatistics) GetAbortedCount
func (x *HybridInspectStatistics) GetAbortedCount() int64func (*HybridInspectStatistics) GetPendingCount
func (x *HybridInspectStatistics) GetPendingCount() int64func (*HybridInspectStatistics) GetProcessedCount
func (x *HybridInspectStatistics) GetProcessedCount() int64func (*HybridInspectStatistics) ProtoMessage
func (*HybridInspectStatistics) ProtoMessage()func (*HybridInspectStatistics) ProtoReflect
func (x *HybridInspectStatistics) ProtoReflect() protoreflect.Messagefunc (*HybridInspectStatistics) Reset
func (x *HybridInspectStatistics) Reset()func (*HybridInspectStatistics) String
func (x *HybridInspectStatistics) String() stringHybridOptions
type HybridOptions struct {
// A short description of where the data is coming from. Will be stored once
// in the job. 256 max length.
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// 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.
RequiredFindingLabelKeys []string `protobuf:"bytes,2,rep,name=required_finding_label_keys,json=requiredFindingLabelKeys,proto3" json:"required_finding_label_keys,omitempty"`
// 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"`
Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// If the container is a table, additional information to make findings
// meaningful such as the columns that are primary keys.
TableOptions *TableOptions `protobuf:"bytes,4,opt,name=table_options,json=tableOptions,proto3" json:"table_options,omitempty"`
// contains filtered or unexported fields
}Configuration to control jobs where the content being inspected is outside of Google Cloud Platform.
func (*HybridOptions) Descriptor
func (*HybridOptions) Descriptor() ([]byte, []int)Deprecated: Use HybridOptions.ProtoReflect.Descriptor instead.
func (*HybridOptions) GetDescription
func (x *HybridOptions) GetDescription() stringfunc (*HybridOptions) GetLabels
func (x *HybridOptions) GetLabels() map[string]stringfunc (*HybridOptions) GetRequiredFindingLabelKeys
func (x *HybridOptions) GetRequiredFindingLabelKeys() []stringfunc (*HybridOptions) GetTableOptions
func (x *HybridOptions) GetTableOptions() *TableOptionsfunc (*HybridOptions) ProtoMessage
func (*HybridOptions) ProtoMessage()func (*HybridOptions) ProtoReflect
func (x *HybridOptions) ProtoReflect() protoreflect.Messagefunc (*HybridOptions) Reset
func (x *HybridOptions) Reset()func (*HybridOptions) String
func (x *HybridOptions) String() stringImageLocation
type ImageLocation struct {
// Bounding boxes locating the pixels within the image containing the finding.
BoundingBoxes []*BoundingBox `protobuf:"bytes,1,rep,name=bounding_boxes,json=boundingBoxes,proto3" json:"bounding_boxes,omitempty"`
// contains filtered or unexported fields
}Location of the finding within an image.
func (*ImageLocation) Descriptor
func (*ImageLocation) Descriptor() ([]byte, []int)Deprecated: Use ImageLocation.ProtoReflect.Descriptor instead.
func (*ImageLocation) GetBoundingBoxes
func (x *ImageLocation) GetBoundingBoxes() []*BoundingBoxfunc (*ImageLocation) ProtoMessage
func (*ImageLocation) ProtoMessage()func (*ImageLocation) ProtoReflect
func (x *ImageLocation) ProtoReflect() protoreflect.Messagefunc (*ImageLocation) Reset
func (x *ImageLocation) Reset()func (*ImageLocation) String
func (x *ImageLocation) String() stringImageTransformations
type ImageTransformations struct {
// List of transforms to make.
Transforms []*ImageTransformations_ImageTransformation `protobuf:"bytes,2,rep,name=transforms,proto3" json:"transforms,omitempty"`
// contains filtered or unexported fields
}A type of transformation that is applied over images.
func (*ImageTransformations) Descriptor
func (*ImageTransformations) Descriptor() ([]byte, []int)Deprecated: Use ImageTransformations.ProtoReflect.Descriptor instead.
func (*ImageTransformations) GetTransforms
func (x *ImageTransformations) GetTransforms() []*ImageTransformations_ImageTransformationfunc (*ImageTransformations) ProtoMessage
func (*ImageTransformations) ProtoMessage()func (*ImageTransformations) ProtoReflect
func (x *ImageTransformations) ProtoReflect() protoreflect.Messagefunc (*ImageTransformations) Reset
func (x *ImageTransformations) Reset()func (*ImageTransformations) String
func (x *ImageTransformations) String() stringImageTransformations_ImageTransformation
type ImageTransformations_ImageTransformation struct {
// Part of the image to transform.
//
// Types that are assignable to Target:
//
// *ImageTransformations_ImageTransformation_SelectedInfoTypes_
// *ImageTransformations_ImageTransformation_AllInfoTypes_
// *ImageTransformations_ImageTransformation_AllText_
Target isImageTransformations_ImageTransformation_Target `protobuf_oneof:"target"`
// The color to use when redacting content from an image. If not
// specified, the default is black.
RedactionColor *Color `protobuf:"bytes,3,opt,name=redaction_color,json=redactionColor,proto3" json:"redaction_color,omitempty"`
// contains filtered or unexported fields
}Configuration for determining how redaction of images should occur.
func (*ImageTransformations_ImageTransformation) Descriptor
func (*ImageTransformations_ImageTransformation) Descriptor() ([]byte, []int)Deprecated: Use ImageTransformations_ImageTransformation.ProtoReflect.Descriptor instead.
func (*ImageTransformations_ImageTransformation) GetAllInfoTypes
func (x *ImageTransformations_ImageTransformation) GetAllInfoTypes() *ImageTransformations_ImageTransformation_AllInfoTypesfunc (*ImageTransformations_ImageTransformation) GetAllText
func (x *ImageTransformations_ImageTransformation) GetAllText() *ImageTransformations_ImageTransformation_AllTextfunc (*ImageTransformations_ImageTransformation) GetRedactionColor
func (x *ImageTransformations_ImageTransformation) GetRedactionColor() *Colorfunc (*ImageTransformations_ImageTransformation) GetSelectedInfoTypes
func (x *ImageTransformations_ImageTransformation) GetSelectedInfoTypes() *ImageTransformations_ImageTransformation_SelectedInfoTypesfunc (*ImageTransformations_ImageTransformation) GetTarget
func (m *ImageTransformations_ImageTransformation) GetTarget() isImageTransformations_ImageTransformation_Targetfunc (*ImageTransformations_ImageTransformation) ProtoMessage
func (*ImageTransformations_ImageTransformation) ProtoMessage()func (*ImageTransformations_ImageTransformation) ProtoReflect
func (x *ImageTransformations_ImageTransformation) ProtoReflect() protoreflect.Messagefunc (*ImageTransformations_ImageTransformation) Reset
func (x *ImageTransformations_ImageTransformation) Reset()func (*ImageTransformations_ImageTransformation) String
func (x *ImageTransformations_ImageTransformation) String() stringImageTransformations_ImageTransformation_AllInfoTypes
type ImageTransformations_ImageTransformation_AllInfoTypes struct {
// contains filtered or unexported fields
}Apply transformation to all findings.
func (*ImageTransformations_ImageTransformation_AllInfoTypes) Descriptor
func (*ImageTransformations_ImageTransformation_AllInfoTypes) Descriptor() ([]byte, []int)Deprecated: Use ImageTransformations_ImageTransformation_AllInfoTypes.ProtoReflect.Descriptor instead.
func (*ImageTransformations_ImageTransformation_AllInfoTypes) ProtoMessage
func (*ImageTransformations_ImageTransformation_AllInfoTypes) ProtoMessage()func (*ImageTransformations_ImageTransformation_AllInfoTypes) ProtoReflect
func (x *ImageTransformations_ImageTransformation_AllInfoTypes) ProtoReflect() protoreflect.Messagefunc (*ImageTransformations_ImageTransformation_AllInfoTypes) Reset
func (x *ImageTransformations_ImageTransformation_AllInfoTypes) Reset()func (*ImageTransformations_ImageTransformation_AllInfoTypes) String
func (x *ImageTransformations_ImageTransformation_AllInfoTypes) String() stringImageTransformations_ImageTransformation_AllInfoTypes_
type ImageTransformations_ImageTransformation_AllInfoTypes_ struct {
// Apply transformation to all findings not specified in other
// ImageTransformation's selected_info_types. Only one instance is allowed
// within the ImageTransformations message.
AllInfoTypes *ImageTransformations_ImageTransformation_AllInfoTypes `protobuf:"bytes,5,opt,name=all_info_types,json=allInfoTypes,proto3,oneof"`
}ImageTransformations_ImageTransformation_AllText
type ImageTransformations_ImageTransformation_AllText struct {
// contains filtered or unexported fields
}Apply to all text.
func (*ImageTransformations_ImageTransformation_AllText) Descriptor
func (*ImageTransformations_ImageTransformation_AllText) Descriptor() ([]byte, []int)Deprecated: Use ImageTransformations_ImageTransformation_AllText.ProtoReflect.Descriptor instead.
func (*ImageTransformations_ImageTransformation_AllText) ProtoMessage
func (*ImageTransformations_ImageTransformation_AllText) ProtoMessage()func (*ImageTransformations_ImageTransformation_AllText) ProtoReflect
func (x *ImageTransformations_ImageTransformation_AllText) ProtoReflect() protoreflect.Messagefunc (*ImageTransformations_ImageTransformation_AllText) Reset
func (x *ImageTransformations_ImageTransformation_AllText) Reset()func (*ImageTransformations_ImageTransformation_AllText) String
func (x *ImageTransformations_ImageTransformation_AllText) String() stringImageTransformations_ImageTransformation_AllText_
type ImageTransformations_ImageTransformation_AllText_ struct {
// Apply transformation to all text that doesn't match an infoType. Only
// one instance is allowed within the ImageTransformations message.
AllText *ImageTransformations_ImageTransformation_AllText `protobuf:"bytes,6,opt,name=all_text,json=allText,proto3,oneof"`
}ImageTransformations_ImageTransformation_SelectedInfoTypes
type ImageTransformations_ImageTransformation_SelectedInfoTypes struct {
// Required. InfoTypes to apply the transformation to. Required. Provided
// InfoType must be unique within the ImageTransformations message.
InfoTypes []*InfoType `protobuf:"bytes,5,rep,name=info_types,json=infoTypes,proto3" json:"info_types,omitempty"`
// contains filtered or unexported fields
}Apply transformation to the selected info_types.
func (*ImageTransformations_ImageTransformation_SelectedInfoTypes) Descriptor
func (*ImageTransformations_ImageTransformation_SelectedInfoTypes) Descriptor() ([]byte, []int)Deprecated: Use ImageTransformations_ImageTransformation_SelectedInfoTypes.ProtoReflect.Descriptor instead.
func (*ImageTransformations_ImageTransformation_SelectedInfoTypes) GetInfoTypes
func (x *ImageTransformations_ImageTransformation_SelectedInfoTypes) GetInfoTypes() []*InfoTypefunc (*ImageTransformations_ImageTransformation_SelectedInfoTypes) ProtoMessage
func (*ImageTransformations_ImageTransformation_SelectedInfoTypes) ProtoMessage()func (*ImageTransformations_ImageTransformation_SelectedInfoTypes) ProtoReflect
func (x *ImageTransformations_ImageTransformation_SelectedInfoTypes) ProtoReflect() protoreflect.Messagefunc (*ImageTransformations_ImageTransformation_SelectedInfoTypes) Reset
func (x *ImageTransformations_ImageTransformation_SelectedInfoTypes) Reset()func (*ImageTransformations_ImageTransformation_SelectedInfoTypes) String
func (x *ImageTransformations_ImageTransformation_SelectedInfoTypes) String() stringImageTransformations_ImageTransformation_SelectedInfoTypes_
type ImageTransformations_ImageTransformation_SelectedInfoTypes_ struct {
// Apply transformation to the selected info_types.
SelectedInfoTypes *ImageTransformations_ImageTransformation_SelectedInfoTypes `protobuf:"bytes,4,opt,name=selected_info_types,json=selectedInfoTypes,proto3,oneof"`
}InfoType
type InfoType struct {
// Name of the information type. Either a name of your choosing when
// creating a CustomInfoType, or one of the names listed
// at
// https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
// when specifying a built-in type. When sending Cloud DLP results to Data
// Catalog, infoType names should conform to the pattern
// `[A-Za-z0-9$_-]{1,64}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional version name for this InfoType.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// Optional custom sensitivity for this InfoType.
// This only applies to data profiling.
SensitivityScore *SensitivityScore `protobuf:"bytes,3,opt,name=sensitivity_score,json=sensitivityScore,proto3" json:"sensitivity_score,omitempty"`
// contains filtered or unexported fields
}Type of information detected by the API.
func (*InfoType) Descriptor
Deprecated: Use InfoType.ProtoReflect.Descriptor instead.
func (*InfoType) GetName
func (*InfoType) GetSensitivityScore
func (x *InfoType) GetSensitivityScore() *SensitivityScorefunc (*InfoType) GetVersion
func (*InfoType) ProtoMessage
func (*InfoType) ProtoMessage()func (*InfoType) ProtoReflect
func (x *InfoType) ProtoReflect() protoreflect.Messagefunc (*InfoType) Reset
func (x *InfoType) Reset()func (*InfoType) String
InfoTypeCategory
type InfoTypeCategory struct {
// Categories of infotypes.
//
// Types that are assignable to Category:
//
// *InfoTypeCategory_LocationCategory_
// *InfoTypeCategory_IndustryCategory_
// *InfoTypeCategory_TypeCategory_
Category isInfoTypeCategory_Category `protobuf_oneof:"category"`
// contains filtered or unexported fields
}Classification of infoTypes to organize them according to geographic location, industry, and data type.
func (*InfoTypeCategory) Descriptor
func (*InfoTypeCategory) Descriptor() ([]byte, []int)Deprecated: Use InfoTypeCategory.ProtoReflect.Descriptor instead.
func (*InfoTypeCategory) GetCategory
func (m *InfoTypeCategory) GetCategory() isInfoTypeCategory_Categoryfunc (*InfoTypeCategory) GetIndustryCategory
func (x *InfoTypeCategory) GetIndustryCategory() InfoTypeCategory_IndustryCategoryfunc (*InfoTypeCategory) GetLocationCategory
func (x *InfoTypeCategory) GetLocationCategory() InfoTypeCategory_LocationCategoryfunc (*InfoTypeCategory) GetTypeCategory
func (x *InfoTypeCategory) GetTypeCategory() InfoTypeCategory_TypeCategoryfunc (*InfoTypeCategory) ProtoMessage
func (*InfoTypeCategory) ProtoMessage()func (*InfoTypeCategory) ProtoReflect
func (x *InfoTypeCategory) ProtoReflect() protoreflect.Messagefunc (*InfoTypeCategory) Reset
func (x *InfoTypeCategory) Reset()func (*InfoTypeCategory) String
func (x *InfoTypeCategory) String() stringInfoTypeCategory_IndustryCategory
type InfoTypeCategory_IndustryCategory int32Enum of the current industries in the category. We might add more industries in the future.
InfoTypeCategory_INDUSTRY_UNSPECIFIED, InfoTypeCategory_FINANCE, InfoTypeCategory_HEALTH, InfoTypeCategory_TELECOMMUNICATIONS
const (
// Unused industry
InfoTypeCategory_INDUSTRY_UNSPECIFIED InfoTypeCategory_IndustryCategory = 0
// The infoType is typically used in the finance industry.
InfoTypeCategory_FINANCE InfoTypeCategory_IndustryCategory = 1
// The infoType is typically used in the health industry.
InfoTypeCategory_HEALTH InfoTypeCategory_IndustryCategory = 2
// The infoType is typically used in the telecommunications industry.
InfoTypeCategory_TELECOMMUNICATIONS InfoTypeCategory_IndustryCategory = 3
)func (InfoTypeCategory_IndustryCategory) Descriptor
func (InfoTypeCategory_IndustryCategory) Descriptor() protoreflect.EnumDescriptorfunc (InfoTypeCategory_IndustryCategory) Enum
func (x InfoTypeCategory_IndustryCategory) Enum() *InfoTypeCategory_IndustryCategoryfunc (InfoTypeCategory_IndustryCategory) EnumDescriptor
func (InfoTypeCategory_IndustryCategory) EnumDescriptor() ([]byte, []int)Deprecated: Use InfoTypeCategory_IndustryCategory.Descriptor instead.
func (InfoTypeCategory_IndustryCategory) Number
func (x InfoTypeCategory_IndustryCategory) Number() protoreflect.EnumNumberfunc (InfoTypeCategory_IndustryCategory) String
func (x InfoTypeCategory_IndustryCategory) String() stringfunc (InfoTypeCategory_IndustryCategory) Type
func (InfoTypeCategory_IndustryCategory) Type() protoreflect.EnumTypeInfoTypeCategory_IndustryCategory_
type InfoTypeCategory_IndustryCategory_ struct {
// The group of relevant businesses where this infoType is commonly used
IndustryCategory InfoTypeCategory_IndustryCategory `protobuf:"varint,2,opt,name=industry_category,json=industryCategory,proto3,enum=google.privacy.dlp.v2.InfoTypeCategory_IndustryCategory,oneof"`
}InfoTypeCategory_LocationCategory
type InfoTypeCategory_LocationCategory int32Enum of the current locations. We might add more locations in the future.
InfoTypeCategory_LOCATION_UNSPECIFIED, InfoTypeCategory_GLOBAL, InfoTypeCategory_ARGENTINA, InfoTypeCategory_ARMENIA, InfoTypeCategory_AUSTRALIA, InfoTypeCategory_AUSTRIA, InfoTypeCategory_AZERBAIJAN, InfoTypeCategory_BELARUS, InfoTypeCategory_BELGIUM, InfoTypeCategory_BRAZIL, InfoTypeCategory_CANADA, InfoTypeCategory_CHILE, InfoTypeCategory_CHINA, InfoTypeCategory_COLOMBIA, InfoTypeCategory_CROATIA, InfoTypeCategory_CZECHIA, InfoTypeCategory_DENMARK, InfoTypeCategory_FRANCE, InfoTypeCategory_FINLAND, InfoTypeCategory_GERMANY, InfoTypeCategory_HONG_KONG, InfoTypeCategory_INDIA, InfoTypeCategory_INDONESIA, InfoTypeCategory_IRELAND, InfoTypeCategory_ISRAEL, InfoTypeCategory_ITALY, InfoTypeCategory_JAPAN, InfoTypeCategory_KAZAKHSTAN, InfoTypeCategory_KOREA, InfoTypeCategory_MEXICO, InfoTypeCategory_THE_NETHERLANDS, InfoTypeCategory_NEW_ZEALAND, InfoTypeCategory_NORWAY, InfoTypeCategory_PARAGUAY, InfoTypeCategory_PERU, InfoTypeCategory_POLAND, InfoTypeCategory_PORTUGAL, InfoTypeCategory_RUSSIA, InfoTypeCategory_SINGAPORE, InfoTypeCategory_SOUTH_AFRICA, InfoTypeCategory_SPAIN, InfoTypeCategory_SWEDEN, InfoTypeCategory_SWITZERLAND, InfoTypeCategory_TAIWAN, InfoTypeCategory_THAILAND, InfoTypeCategory_TURKEY, InfoTypeCategory_UKRAINE, InfoTypeCategory_UNITED_KINGDOM, InfoTypeCategory_UNITED_STATES, InfoTypeCategory_URUGUAY, InfoTypeCategory_UZBEKISTAN, InfoTypeCategory_VENEZUELA, InfoTypeCategory_INTERNAL
const (
// Unused location
InfoTypeCategory_LOCATION_UNSPECIFIED InfoTypeCategory_LocationCategory = 0
// The infoType is not issued by or tied to a specific region, but is used
// almost everywhere.
InfoTypeCategory_GLOBAL InfoTypeCategory_LocationCategory = 1
// The infoType is typically used in Argentina.
InfoTypeCategory_ARGENTINA InfoTypeCategory_LocationCategory = 2
// The infoType is typically used in Armenia.
InfoTypeCategory_ARMENIA InfoTypeCategory_LocationCategory = 51
// The infoType is typically used in Australia.
InfoTypeCategory_AUSTRALIA InfoTypeCategory_LocationCategory = 3
// The infoType is typically used in Austria.
InfoTypeCategory_AUSTRIA InfoTypeCategory_LocationCategory = 53
// The infoType is typically used in Azerbaijan.
InfoTypeCategory_AZERBAIJAN InfoTypeCategory_LocationCategory = 48
// The infoType is typically used in Belarus.
InfoTypeCategory_BELARUS InfoTypeCategory_LocationCategory = 50
// The infoType is typically used in Belgium.
InfoTypeCategory_BELGIUM InfoTypeCategory_LocationCategory = 4
// The infoType is typically used in Brazil.
InfoTypeCategory_BRAZIL InfoTypeCategory_LocationCategory = 5
// The infoType is typically used in Canada.
InfoTypeCategory_CANADA InfoTypeCategory_LocationCategory = 6
// The infoType is typically used in Chile.
InfoTypeCategory_CHILE InfoTypeCategory_LocationCategory = 7
// The infoType is typically used in China.
InfoTypeCategory_CHINA InfoTypeCategory_LocationCategory = 8
// The infoType is typically used in Colombia.
InfoTypeCategory_COLOMBIA InfoTypeCategory_LocationCategory = 9
// The infoType is typically used in Croatia.
InfoTypeCategory_CROATIA InfoTypeCategory_LocationCategory = 42
// The infoType is typically used in Czechia.
InfoTypeCategory_CZECHIA InfoTypeCategory_LocationCategory = 52
// The infoType is typically used in Denmark.
InfoTypeCategory_DENMARK InfoTypeCategory_LocationCategory = 10
// The infoType is typically used in France.
InfoTypeCategory_FRANCE InfoTypeCategory_LocationCategory = 11
// The infoType is typically used in Finland.
InfoTypeCategory_FINLAND InfoTypeCategory_LocationCategory = 12
// The infoType is typically used in Germany.
InfoTypeCategory_GERMANY InfoTypeCategory_LocationCategory = 13
// The infoType is typically used in Hong Kong.
InfoTypeCategory_HONG_KONG InfoTypeCategory_LocationCategory = 14
// The infoType is typically used in India.
InfoTypeCategory_INDIA InfoTypeCategory_LocationCategory = 15
// The infoType is typically used in Indonesia.
InfoTypeCategory_INDONESIA InfoTypeCategory_LocationCategory = 16
// The infoType is typically used in Ireland.
InfoTypeCategory_IRELAND InfoTypeCategory_LocationCategory = 17
// The infoType is typically used in Israel.
InfoTypeCategory_ISRAEL InfoTypeCategory_LocationCategory = 18
// The infoType is typically used in Italy.
InfoTypeCategory_ITALY InfoTypeCategory_LocationCategory = 19
// The infoType is typically used in Japan.
InfoTypeCategory_JAPAN InfoTypeCategory_LocationCategory = 20
// The infoType is typically used in Kazakhstan.
InfoTypeCategory_KAZAKHSTAN InfoTypeCategory_LocationCategory = 47
// The infoType is typically used in Korea.
InfoTypeCategory_KOREA InfoTypeCategory_LocationCategory = 21
// The infoType is typically used in Mexico.
InfoTypeCategory_MEXICO InfoTypeCategory_LocationCategory = 22
// The infoType is typically used in the Netherlands.
InfoTypeCategory_THE_NETHERLANDS InfoTypeCategory_LocationCategory = 23
// The infoType is typically used in New Zealand.
InfoTypeCategory_NEW_ZEALAND InfoTypeCategory_LocationCategory = 41
// The infoType is typically used in Norway.
InfoTypeCategory_NORWAY InfoTypeCategory_LocationCategory = 24
// The infoType is typically used in Paraguay.
InfoTypeCategory_PARAGUAY InfoTypeCategory_LocationCategory = 25
// The infoType is typically used in Peru.
InfoTypeCategory_PERU InfoTypeCategory_LocationCategory = 26
// The infoType is typically used in Poland.
InfoTypeCategory_POLAND InfoTypeCategory_LocationCategory = 27
// The infoType is typically used in Portugal.
InfoTypeCategory_PORTUGAL InfoTypeCategory_LocationCategory = 28
// The infoType is typically used in Russia.
InfoTypeCategory_RUSSIA InfoTypeCategory_LocationCategory = 44
// The infoType is typically used in Singapore.
InfoTypeCategory_SINGAPORE InfoTypeCategory_LocationCategory = 29
// The infoType is typically used in South Africa.
InfoTypeCategory_SOUTH_AFRICA InfoTypeCategory_LocationCategory = 30
// The infoType is typically used in Spain.
InfoTypeCategory_SPAIN InfoTypeCategory_LocationCategory = 31
// The infoType is typically used in Sweden.
InfoTypeCategory_SWEDEN InfoTypeCategory_LocationCategory = 32
// The infoType is typically used in Switzerland.
InfoTypeCategory_SWITZERLAND InfoTypeCategory_LocationCategory = 43
// The infoType is typically used in Taiwan.
InfoTypeCategory_TAIWAN InfoTypeCategory_LocationCategory = 33
// The infoType is typically used in Thailand.
InfoTypeCategory_THAILAND InfoTypeCategory_LocationCategory = 34
// The infoType is typically used in Turkey.
InfoTypeCategory_TURKEY InfoTypeCategory_LocationCategory = 35
// The infoType is typically used in Ukraine.
InfoTypeCategory_UKRAINE InfoTypeCategory_LocationCategory = 45
// The infoType is typically used in the United Kingdom.
InfoTypeCategory_UNITED_KINGDOM InfoTypeCategory_LocationCategory = 36
// The infoType is typically used in the United States.
InfoTypeCategory_UNITED_STATES InfoTypeCategory_LocationCategory = 37
// The infoType is typically used in Uruguay.
InfoTypeCategory_URUGUAY InfoTypeCategory_LocationCategory = 38
// The infoType is typically used in Uzbekistan.
InfoTypeCategory_UZBEKISTAN InfoTypeCategory_LocationCategory = 46
// The infoType is typically used in Venezuela.
InfoTypeCategory_VENEZUELA InfoTypeCategory_LocationCategory = 39
// The infoType is typically used in Google internally.
InfoTypeCategory_INTERNAL InfoTypeCategory_LocationCategory = 40
)func (InfoTypeCategory_LocationCategory) Descriptor
func (InfoTypeCategory_LocationCategory) Descriptor() protoreflect.EnumDescriptorfunc (InfoTypeCategory_LocationCategory) Enum
func (x InfoTypeCategory_LocationCategory) Enum() *InfoTypeCategory_LocationCategoryfunc (InfoTypeCategory_LocationCategory) EnumDescriptor
func (InfoTypeCategory_LocationCategory) EnumDescriptor() ([]byte, []int)Deprecated: Use InfoTypeCategory_LocationCategory.Descriptor instead.
func (InfoTypeCategory_LocationCategory) Number
func (x InfoTypeCategory_LocationCategory) Number() protoreflect.EnumNumberfunc (InfoTypeCategory_LocationCategory) String
func (x InfoTypeCategory_LocationCategory) String() stringfunc (InfoTypeCategory_LocationCategory) Type
func (InfoTypeCategory_LocationCategory) Type() protoreflect.EnumTypeInfoTypeCategory_LocationCategory_
type InfoTypeCategory_LocationCategory_ struct {
// The region or country that issued the ID or document represented by the
// infoType.
LocationCategory InfoTypeCategory_LocationCategory `protobuf:"varint,1,opt,name=location_category,json=locationCategory,proto3,enum=google.privacy.dlp.v2.InfoTypeCategory_LocationCategory,oneof"`
}InfoTypeCategory_TypeCategory
type InfoTypeCategory_TypeCategory int32Enum of the current types in the category. We might add more types in the future.
InfoTypeCategory_TYPE_UNSPECIFIED, InfoTypeCategory_PII, InfoTypeCategory_SPII, InfoTypeCategory_DEMOGRAPHIC, InfoTypeCategory_CREDENTIAL, InfoTypeCategory_GOVERNMENT_ID, InfoTypeCategory_DOCUMENT, InfoTypeCategory_CONTEXTUAL_INFORMATION, InfoTypeCategory_CUSTOM
const (
// Unused type
InfoTypeCategory_TYPE_UNSPECIFIED InfoTypeCategory_TypeCategory = 0
// Personally identifiable information, for example, a
// name or phone number
InfoTypeCategory_PII InfoTypeCategory_TypeCategory = 1
// Personally identifiable information that is especially sensitive, for
// example, a passport number.
InfoTypeCategory_SPII InfoTypeCategory_TypeCategory = 2
// Attributes that can partially identify someone, especially in
// combination with other attributes, like age, height, and gender.
InfoTypeCategory_DEMOGRAPHIC InfoTypeCategory_TypeCategory = 3
// Confidential or secret information, for example, a password.
InfoTypeCategory_CREDENTIAL InfoTypeCategory_TypeCategory = 4
// An identification document issued by a government.
InfoTypeCategory_GOVERNMENT_ID InfoTypeCategory_TypeCategory = 5
// A document, for example, a resume or source code.
InfoTypeCategory_DOCUMENT InfoTypeCategory_TypeCategory = 6
// Information that is not sensitive on its own, but provides details about
// the circumstances surrounding an entity or an event.
InfoTypeCategory_CONTEXTUAL_INFORMATION InfoTypeCategory_TypeCategory = 7
// Category for `CustomInfoType` types.
InfoTypeCategory_CUSTOM InfoTypeCategory_TypeCategory = 8
)func (InfoTypeCategory_TypeCategory) Descriptor
func (InfoTypeCategory_TypeCategory) Descriptor() protoreflect.EnumDescriptorfunc (InfoTypeCategory_TypeCategory) Enum
func (x InfoTypeCategory_TypeCategory) Enum() *InfoTypeCategory_TypeCategoryfunc (InfoTypeCategory_TypeCategory) EnumDescriptor
func (InfoTypeCategory_TypeCategory) EnumDescriptor() ([]byte, []int)Deprecated: Use InfoTypeCategory_TypeCategory.Descriptor instead.
func (InfoTypeCategory_TypeCategory) Number
func (x InfoTypeCategory_TypeCategory) Number() protoreflect.EnumNumberfunc (InfoTypeCategory_TypeCategory) String
func (x InfoTypeCategory_TypeCategory) String() stringfunc (InfoTypeCategory_TypeCategory) Type
func (InfoTypeCategory_TypeCategory) Type() protoreflect.EnumTypeInfoTypeCategory_TypeCategory_
type InfoTypeCategory_TypeCategory_ struct {
// The class of identifiers where this infoType belongs
TypeCategory InfoTypeCategory_TypeCategory `protobuf:"varint,3,opt,name=type_category,json=typeCategory,proto3,enum=google.privacy.dlp.v2.InfoTypeCategory_TypeCategory,oneof"`
}InfoTypeDescription
type InfoTypeDescription struct {
// Internal name of the infoType.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Human readable form of the infoType name.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Which parts of the API supports this InfoType.
SupportedBy []InfoTypeSupportedBy `protobuf:"varint,3,rep,packed,name=supported_by,json=supportedBy,proto3,enum=google.privacy.dlp.v2.InfoTypeSupportedBy" json:"supported_by,omitempty"`
// Description of the infotype. Translated when language is provided in the
// request.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// Locations at which this feature can be used. May change over time.
LocationSupport *LocationSupport `protobuf:"bytes,6,opt,name=location_support,json=locationSupport,proto3" json:"location_support,omitempty"`
// A sample that is a true positive for this infoType.
Example string `protobuf:"bytes,8,opt,name=example,proto3" json:"example,omitempty"`
// A list of available versions for the infotype.
Versions []*VersionDescription `protobuf:"bytes,9,rep,name=versions,proto3" json:"versions,omitempty"`
// The category of the infoType.
Categories []*InfoTypeCategory `protobuf:"bytes,10,rep,name=categories,proto3" json:"categories,omitempty"`
// The default sensitivity of the infoType.
SensitivityScore *SensitivityScore `protobuf:"bytes,11,opt,name=sensitivity_score,json=sensitivityScore,proto3" json:"sensitivity_score,omitempty"`
// If this field is set, this infoType is a general infoType and these
// specific infoTypes are contained within it.
// General infoTypes are infoTypes that encompass multiple specific infoTypes.
// For example, the "GEOGRAPHIC_DATA" general infoType would have set for this
// field "LOCATION", "LOCATION_COORDINATES", and "STREET_ADDRESS".
SpecificInfoTypes []string `protobuf:"bytes,12,rep,name=specific_info_types,json=specificInfoTypes,proto3" json:"specific_info_types,omitempty"`
// contains filtered or unexported fields
}InfoType description.
func (*InfoTypeDescription) Descriptor
func (*InfoTypeDescription) Descriptor() ([]byte, []int)Deprecated: Use InfoTypeDescription.ProtoReflect.Descriptor instead.
func (*InfoTypeDescription) GetCategories
func (x *InfoTypeDescription) GetCategories() []*InfoTypeCategoryfunc (*InfoTypeDescription) GetDescription
func (x *InfoTypeDescription) GetDescription() stringfunc (*InfoTypeDescription) GetDisplayName
func (x *InfoTypeDescription) GetDisplayName() stringfunc (*InfoTypeDescription) GetExample
func (x *InfoTypeDescription) GetExample() stringfunc (*InfoTypeDescription) GetLocationSupport
func (x *InfoTypeDescription) GetLocationSupport() *LocationSupportfunc (*InfoTypeDescription) GetName
func (x *InfoTypeDescription) GetName() stringfunc (*InfoTypeDescription) GetSensitivityScore
func (x *InfoTypeDescription) GetSensitivityScore() *SensitivityScorefunc (*InfoTypeDescription) GetSpecificInfoTypes
func (x *InfoTypeDescription) GetSpecificInfoTypes() []stringfunc (*InfoTypeDescription) GetSupportedBy
func (x *InfoTypeDescription) GetSupportedBy() []InfoTypeSupportedByfunc (*InfoTypeDescription) GetVersions
func (x *InfoTypeDescription) GetVersions() []*VersionDescriptionfunc (*InfoTypeDescription) ProtoMessage
func (*InfoTypeDescription) ProtoMessage()func (*InfoTypeDescription) ProtoReflect
func (x *InfoTypeDescription) ProtoReflect() protoreflect.Messagefunc (*InfoTypeDescription) Reset
func (x *InfoTypeDescription) Reset()func (*InfoTypeDescription) String
func (x *InfoTypeDescription) String() stringInfoTypeStats
type InfoTypeStats struct {
// The type of finding this stat is for.
InfoType *InfoType `protobuf:"bytes,1,opt,name=info_type,json=infoType,proto3" json:"info_type,omitempty"`
// Number of findings for this infoType.
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}Statistics regarding a specific InfoType.
func (*InfoTypeStats) Descriptor
func (*InfoTypeStats) Descriptor() ([]byte, []int)Deprecated: Use InfoTypeStats.ProtoReflect.Descriptor instead.
func (*InfoTypeStats) GetCount
func (x *InfoTypeStats) GetCount() int64func (*InfoTypeStats) GetInfoType
func (x *InfoTypeStats) GetInfoType() *InfoTypefunc (*InfoTypeStats) ProtoMessage
func (*InfoTypeStats) ProtoMessage()func (*InfoTypeStats) ProtoReflect
func (x *InfoTypeStats) ProtoReflect() protoreflect.Messagefunc (*InfoTypeStats) Reset
func (x *InfoTypeStats) Reset()func (*InfoTypeStats) String
func (x *InfoTypeStats) String() stringInfoTypeSummary
type InfoTypeSummary struct {
// The infoType.
InfoType *InfoType `protobuf:"bytes,1,opt,name=info_type,json=infoType,proto3" json:"info_type,omitempty"`
// Not populated for predicted infotypes.
//
// Deprecated: Marked as deprecated in google/privacy/dlp/v2/dlp.proto.
EstimatedPrevalence int32 `protobuf:"varint,2,opt,name=estimated_prevalence,json=estimatedPrevalence,proto3" json:"estimated_prevalence,omitempty"`
// contains filtered or unexported fields
}The infoType details for this column.
func (*InfoTypeSummary) Descriptor
func (*InfoTypeSummary) Descriptor() ([]byte, []int)Deprecated: Use InfoTypeSummary.ProtoReflect.Descriptor instead.
func (*InfoTypeSummary) GetEstimatedPrevalence
func (x *InfoTypeSummary) GetEstimatedPrevalence() int32Deprecated: Marked as deprecated in google/privacy/dlp/v2/dlp.proto.
func (*InfoTypeSummary) GetInfoType
func (x *InfoTypeSummary) GetInfoType() *InfoTypefunc (*InfoTypeSummary) ProtoMessage
func (*InfoTypeSummary) ProtoMessage()func (*InfoTypeSummary) ProtoReflect
func (x *InfoTypeSummary) ProtoReflect() protoreflect.Messagefunc (*InfoTypeSummary) Reset
func (x *InfoTypeSummary) Reset()func (*InfoTypeSummary) String
func (x *InfoTypeSummary) String() stringInfoTypeSupportedBy
type InfoTypeSupportedBy int32Parts of the APIs which use certain infoTypes.
InfoTypeSupportedBy_ENUM_TYPE_UNSPECIFIED, InfoTypeSupportedBy_INSPECT, InfoTypeSupportedBy_RISK_ANALYSIS
const (
// Unused.
InfoTypeSupportedBy_ENUM_TYPE_UNSPECIFIED InfoTypeSupportedBy = 0
// Supported by the inspect operations.
InfoTypeSupportedBy_INSPECT InfoTypeSupportedBy = 1
// Supported by the risk analysis operations.
InfoTypeSupportedBy_RISK_ANALYSIS InfoTypeSupportedBy = 2
)func (InfoTypeSupportedBy) Descriptor
func (InfoTypeSupportedBy) Descriptor() protoreflect.EnumDescriptorfunc (InfoTypeSupportedBy) Enum
func (x InfoTypeSupportedBy) Enum() *InfoTypeSupportedByfunc (InfoTypeSupportedBy) EnumDescriptor
func (InfoTypeSupportedBy) EnumDescriptor() ([]byte, []int)Deprecated: Use InfoTypeSupportedBy.Descriptor instead.
func (InfoTypeSupportedBy) Number
func (x InfoTypeSupportedBy) Number() protoreflect.EnumNumberfunc (InfoTypeSupportedBy) String
func (x InfoTypeSupportedBy) String() stringfunc (InfoTypeSupportedBy) Type
func (InfoTypeSupportedBy) Type() protoreflect.EnumTypeInfoTypeTransformations
type InfoTypeTransformations struct {
// Required. Transformation for each infoType. Cannot specify more than one
// for a given infoType.
Transformations []*InfoTypeTransformations_InfoTypeTransformation `protobuf:"bytes,1,rep,name=transformations,proto3" json:"transformations,omitempty"`
// contains filtered or unexported fields
}A type of transformation that will scan unstructured text and
apply various PrimitiveTransformations to each finding, where the
transformation is applied to only values that were identified as a specific
info_type.
func (*InfoTypeTransformations) Descriptor
func (*InfoTypeTransformations) Descriptor() ([]byte, []int)Deprecated: Use InfoTypeTransformations.ProtoReflect.Descriptor instead.
func (*InfoTypeTransformations) GetTransformations
func (x *InfoTypeTransformations) GetTransformations() []*InfoTypeTransformations_InfoTypeTransformationfunc (*InfoTypeTransformations) ProtoMessage
func (*InfoTypeTransformations) ProtoMessage()func (*InfoTypeTransformations) ProtoReflect
func (x *InfoTypeTransformations) ProtoReflect() protoreflect.Messagefunc (*InfoTypeTransformations) Reset
func (x *InfoTypeTransformations) Reset()func (*InfoTypeTransformations) String
func (x *InfoTypeTransformations) String() stringInfoTypeTransformations_InfoTypeTransformation
type InfoTypeTransformations_InfoTypeTransformation struct {
// InfoTypes to apply the transformation to. An empty list will cause
// this transformation to apply to all findings that correspond to
// infoTypes that were requested in `InspectConfig`.
InfoTypes []*InfoType `protobuf:"bytes,1,rep,name=info_types,json=infoTypes,proto3" json:"info_types,omitempty"`
// Required. Primitive transformation to apply to the infoType.
PrimitiveTransformation *PrimitiveTransformation `protobuf:"bytes,2,opt,name=primitive_transformation,json=primitiveTransformation,proto3" json:"primitive_transformation,omitempty"`
// contains filtered or unexported fields
}A transformation to apply to text that is identified as a specific info_type.
func (*InfoTypeTransformations_InfoTypeTransformation) Descriptor
func (*InfoTypeTransformations_InfoTypeTransformation) Descriptor() ([]byte, []int)Deprecated: Use InfoTypeTransformations_InfoTypeTransformation.ProtoReflect.Descriptor instead.
func (*InfoTypeTransformations_InfoTypeTransformation) GetInfoTypes
func (x *InfoTypeTransformations_InfoTypeTransformation) GetInfoTypes() []*InfoTypefunc (*InfoTypeTransformations_InfoTypeTransformation) GetPrimitiveTransformation
func (x *InfoTypeTransformations_InfoTypeTransformation) GetPrimitiveTransformation() *PrimitiveTransformationfunc (*InfoTypeTransformations_InfoTypeTransformation) ProtoMessage
func (*InfoTypeTransformations_InfoTypeTransformation) ProtoMessage()func (*InfoTypeTransformations_InfoTypeTransformation) ProtoReflect
func (x *InfoTypeTransformations_InfoTypeTransformation) ProtoReflect() protoreflect.Messagefunc (*InfoTypeTransformations_InfoTypeTransformation) Reset
func (x *InfoTypeTransformations_InfoTypeTransformation) Reset()func (*InfoTypeTransformations_InfoTypeTransformation) String
func (x *InfoTypeTransformations_InfoTypeTransformation) String() stringInspectConfig
type InspectConfig struct {
// Restricts what info_types to look for. The values must correspond to
// InfoType values returned by ListInfoTypes or listed at
// https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
//
// When no InfoTypes or CustomInfoTypes are specified in a request, the
// system may automatically choose a default list of detectors to run, which
// may change over time.
//
// If you need precise control and predictability as to what detectors are
// run you should specify specific InfoTypes listed in the reference,
// otherwise a default list will be used, which may change over time.
InfoTypes []*InfoType `protobuf:"bytes,1,rep,name=info_types,json=infoTypes,proto3" json:"info_types,omitempty"`
// Only returns findings equal to or above this threshold. The default is
// POSSIBLE.
//
// In general, the highest likelihood setting yields the fewest findings in
// results and the lowest chance of a false positive. For more information,
// see [Match
// likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood).
MinLikelihood Likelihood `protobuf:"varint,2,opt,name=min_likelihood,json=minLikelihood,proto3,enum=google.privacy.dlp.v2.Likelihood" json:"min_likelihood,omitempty"`
// Minimum likelihood per infotype. For each infotype, a user can specify a
// minimum likelihood. The system only returns a finding if its likelihood is
// above this threshold. If this field is not set, the system uses the
// InspectConfig min_likelihood.
MinLikelihoodPerInfoType []*InspectConfig_InfoTypeLikelihood `protobuf:"bytes,11,rep,name=min_likelihood_per_info_type,json=minLikelihoodPerInfoType,proto3" json:"min_likelihood_per_info_type,omitempty"`
// Configuration to control the number of findings returned.
// This is not used for data profiling.
//
// When redacting sensitive data from images, finding limits don't apply. They
// can cause unexpected or inconsistent results, where only some data is
// redacted. Don't include finding limits in
// [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
// requests. Otherwise, Cloud DLP returns an error.
//
// When set within an
// [InspectJobConfig][google.privacy.dlp.v2.InspectJobConfig], the specified
// maximum values aren't hard limits. If an inspection job reaches these
// limits, the job ends gradually, not abruptly. Therefore, the actual number
// of findings that Cloud DLP returns can be multiple times higher than these
// maximum values.
Limits *InspectConfig_FindingLimits `protobuf:"bytes,3,opt,name=limits,proto3" json:"limits,omitempty"`
// When true, a contextual quote from the data that triggered a finding is
// included in the response; see
// [Finding.quote][google.privacy.dlp.v2.Finding.quote]. This is not used for
// data profiling.
IncludeQuote bool `protobuf:"varint,4,opt,name=include_quote,json=includeQuote,proto3" json:"include_quote,omitempty"`
// When true, excludes type information of the findings.
// This is not used for data profiling.
ExcludeInfoTypes bool `protobuf:"varint,5,opt,name=exclude_info_types,json=excludeInfoTypes,proto3" json:"exclude_info_types,omitempty"`
// CustomInfoTypes provided by the user. See
// https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
// to learn more.
CustomInfoTypes []*CustomInfoType `protobuf:"bytes,6,rep,name=custom_info_types,json=customInfoTypes,proto3" json:"custom_info_types,omitempty"`
// Deprecated and unused.
ContentOptions []ContentOption `protobuf:"varint,8,rep,packed,name=content_options,json=contentOptions,proto3,enum=google.privacy.dlp.v2.ContentOption" json:"content_options,omitempty"`
// Set of rules to apply to the findings for this InspectConfig.
// Exclusion rules, contained in the set are executed in the end, other
// rules are executed in the order they are specified for each info type.
RuleSet []*InspectionRuleSet `protobuf:"bytes,10,rep,name=rule_set,json=ruleSet,proto3" json:"rule_set,omitempty"`
// contains filtered or unexported fields
}Configuration description of the scanning process. When used with redactContent only info_types and min_likelihood are currently used.
func (*InspectConfig) Descriptor
func (*InspectConfig) Descriptor() ([]byte, []int)Deprecated: Use InspectConfig.ProtoReflect.Descriptor instead.
func (*InspectConfig) GetContentOptions
func (x *InspectConfig) GetContentOptions() []ContentOptionfunc (*InspectConfig) GetCustomInfoTypes
func (x *InspectConfig) GetCustomInfoTypes() []*CustomInfoTypefunc (*InspectConfig) GetExcludeInfoTypes
func (x *InspectConfig) GetExcludeInfoTypes() boolfunc (*InspectConfig) GetIncludeQuote
func (x *InspectConfig) GetIncludeQuote() boolfunc (*InspectConfig) GetInfoTypes
func (x *InspectConfig) GetInfoTypes() []*InfoTypefunc (*InspectConfig) GetLimits
func (x *InspectConfig) GetLimits() *InspectConfig_FindingLimitsfunc (*InspectConfig) GetMinLikelihood
func (x *InspectConfig) GetMinLikelihood() Likelihoodfunc (*InspectConfig) GetMinLikelihoodPerInfoType
func (x *InspectConfig) GetMinLikelihoodPerInfoType() []*InspectConfig_InfoTypeLikelihoodfunc (*InspectConfig) GetRuleSet
func (x *InspectConfig) GetRuleSet() []*InspectionRuleSetfunc (*InspectConfig) ProtoMessage
func (*InspectConfig) ProtoMessage()func (*InspectConfig) ProtoReflect
func (x *InspectConfig) ProtoReflect() protoreflect.Messagefunc (*InspectConfig) Reset
func (x *InspectConfig) Reset()func (*InspectConfig) String
func (x *InspectConfig) String() stringInspectConfig_FindingLimits
type InspectConfig_FindingLimits struct {
// Max number of findings that are returned for each item scanned.
//
// When set within an
// [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest],
// this field is ignored.
//
// This value isn't a hard limit. If the number of findings for an item
// reaches this limit, the inspection of that item ends gradually, not
// abruptly. Therefore, the actual number of findings that Cloud DLP returns
// for the item can be multiple times higher than this value.
MaxFindingsPerItem int32 `protobuf:"varint,1,opt,name=max_findings_per_item,json=maxFindingsPerItem,proto3" json:"max_findings_per_item,omitempty"`
// Max number of findings that are returned per request or job.
//
// If you set this field in an
// [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], the
// resulting maximum value is the value that you set or 3,000, whichever is
// lower.
//
// This value isn't a hard limit. If an inspection reaches this limit, the
// inspection ends gradually, not abruptly. Therefore, the actual number of
// findings that Cloud DLP returns can be multiple times higher than this
// value.
MaxFindingsPerRequest int32 `protobuf:"varint,2,opt,name=max_findings_per_request,json=maxFindingsPerRequest,proto3" json:"max_findings_per_request,omitempty"`
// Configuration of findings limit given for specified infoTypes.
MaxFindingsPerInfoType []*InspectConfig_FindingLimits_InfoTypeLimit `protobuf:"bytes,3,rep,name=max_findings_per_info_type,json=maxFindingsPerInfoType,proto3" json:"max_findings_per_info_type,omitempty"`
// contains filtered or unexported fields
}Configuration to control the number of findings returned for inspection. This is not used for de-identification or data profiling.
When redacting sensitive data from images, finding limits don't apply. They can cause unexpected or inconsistent results, where only some data is redacted. Don't include finding limits in [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage] requests. Otherwise, Cloud DLP returns an error.
func (*InspectConfig_FindingLimits) Descriptor
func (*InspectConfig_FindingLimits) Descriptor() ([]byte, []int)Deprecated: Use InspectConfig_FindingLimits.ProtoReflect.Descriptor instead.
func (*InspectConfig_FindingLimits) GetMaxFindingsPerInfoType
func (x *InspectConfig_FindingLimits) GetMaxFindingsPerInfoType() []*InspectConfig_FindingLimits_InfoTypeLimitfunc (*InspectConfig_FindingLimits) GetMaxFindingsPerItem
func (x *InspectConfig_FindingLimits) GetMaxFindingsPerItem() int32func (*InspectConfig_FindingLimits) GetMaxFindingsPerRequest
func (x *InspectConfig_FindingLimits) GetMaxFindingsPerRequest() int32func (*InspectConfig_FindingLimits) ProtoMessage
func (*InspectConfig_FindingLimits) ProtoMessage()func (*InspectConfig_FindingLimits) ProtoReflect
func (x *InspectConfig_FindingLimits) ProtoReflect() protoreflect.Messagefunc (*InspectConfig_FindingLimits) Reset
func (x *InspectConfig_FindingLimits) Reset()func (*InspectConfig_FindingLimits) String
func (x *InspectConfig_FindingLimits) String() stringInspectConfig_FindingLimits_InfoTypeLimit
type InspectConfig_FindingLimits_InfoTypeLimit struct {
// Type of information the findings limit applies to. Only one limit per
// info_type should be provided. If InfoTypeLimit does not have an
// info_type, the DLP API applies the limit against all info_types that
// are found but not specified in another InfoTypeLimit.
InfoType *InfoType `protobuf:"bytes,1,opt,name=info_type,json=infoType,proto3" json:"info_type,omitempty"`
// Max findings limit for the given infoType.
MaxFindings int32 `protobuf:"varint,2,opt,name=max_findings,json=maxFindings,proto3" json:"max_findings,omitempty"`
// contains filtered or unexported fields
}Max findings configuration per infoType, per content item or long running DlpJob.
func (*InspectConfig_FindingLimits_InfoTypeLimit) Descriptor
func (*InspectConfig_FindingLimits_InfoTypeLimit) Descriptor() ([]byte, []int)Deprecated: Use InspectConfig_FindingLimits_InfoTypeLimit.ProtoReflect.Descriptor instead.
func (*InspectConfig_FindingLimits_InfoTypeLimit) GetInfoType
func (x *InspectConfig_FindingLimits_InfoTypeLimit) GetInfoType() *InfoTypefunc (*InspectConfig_FindingLimits_InfoTypeLimit) GetMaxFindings
func (x *InspectConfig_FindingLimits_InfoTypeLimit) GetMaxFindings() int32func (*InspectConfig_FindingLimits_InfoTypeLimit) ProtoMessage
func (*InspectConfig_FindingLimits_InfoTypeLimit) ProtoMessage()func (*InspectConfig_FindingLimits_InfoTypeLimit) ProtoReflect
func (x *InspectConfig_FindingLimits_InfoTypeLimit) ProtoReflect() protoreflect.Messagefunc (*InspectConfig_FindingLimits_InfoTypeLimit) Reset
func (x *InspectConfig_FindingLimits_InfoTypeLimit) Reset()func (*InspectConfig_FindingLimits_InfoTypeLimit) String
func (x *InspectConfig_FindingLimits_InfoTypeLimit) String() stringInspectConfig_InfoTypeLikelihood
type InspectConfig_InfoTypeLikelihood struct {
// Type of information the likelihood threshold applies to. Only one
// likelihood per info_type should be provided. If InfoTypeLikelihood does
// not have an info_type, the configuration fails.
InfoType *InfoType `protobuf:"bytes,1,opt,name=info_type,json=infoType,proto3" json:"info_type,omitempty"`
// Only returns findings equal to or above this threshold. This field is
// required or else the configuration fails.
MinLikelihood Likelihood `protobuf:"varint,2,opt,name=min_likelihood,json=minLikelihood,proto3,enum=google.privacy.dlp.v2.Likelihood" json:"min_likelihood,omitempty"`
// contains filtered or unexported fields
}Configuration for setting a minimum likelihood per infotype. Used to customize the minimum likelihood level for specific infotypes in the request. For example, use this if you want to lower the precision for PERSON_NAME without lowering the precision for the other infotypes in the request.
func (*InspectConfig_InfoTypeLikelihood) Descriptor
func (*InspectConfig_InfoTypeLikelihood) Descriptor() ([]byte, []int)Deprecated: Use InspectConfig_InfoTypeLikelihood.ProtoReflect.Descriptor instead.
func (*InspectConfig_InfoTypeLikelihood) GetInfoType
func (x *InspectConfig_InfoTypeLikelihood) GetInfoType() *InfoTypefunc (*InspectConfig_InfoTypeLikelihood) GetMinLikelihood
func (x *InspectConfig_InfoTypeLikelihood) GetMinLikelihood() Likelihoodfunc (*InspectConfig_InfoTypeLikelihood) ProtoMessage
func (*InspectConfig_InfoTypeLikelihood) ProtoMessage()func (*InspectConfig_InfoTypeLikelihood) ProtoReflect
func (x *InspectConfig_InfoTypeLikelihood) ProtoReflect() protoreflect.Messagefunc (*InspectConfig_InfoTypeLikelihood) Reset
func (x *InspectConfig_InfoTypeLikelihood) Reset()func (*InspectConfig_InfoTypeLikelihood) String
func (x *InspectConfig_InfoTypeLikelihood) String() stringInspectContentRequest
type InspectContentRequest struct {
// Parent resource name.
//
// The format of this value varies depending on whether you have [specified a
// processing
// location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
//
// - Projects scope, location specified:
// `projects/{project_id}/locations/{location_id}`
// - Projects scope, no location specified (defaults to global):
// `projects/{project_id}`
//
// The following example `parent` string specifies a parent project with the
// identifier `example-project`, and specifies the `europe-west3` location
// for processing data:
//
// parent=projects/example-project/locations/europe-west3
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Configuration for the inspector. What specified here will override
// the template referenced by the inspect_template_name argument.
InspectConfig *InspectConfig `protobuf:"bytes,2,opt,name=inspect_config,json=inspectConfig,proto3" json:"inspect_config,omitempty"`
// The item to inspect.
Item *ContentItem `protobuf:"bytes,3,opt,name=item,proto3" json:"item,omitempty"`
// Template to use. Any configuration directly specified in
// inspect_config will override those set in the template. Singular fields
// that are set in this request will replace their corresponding fields in the
// template. Repeated fields are appended. Singular sub-messages and groups
// are recursively merged.
InspectTemplateName string `protobuf:"bytes,4,opt,name=inspect_template_name,json=inspectTemplateName,proto3" json:"inspect_template_name,omitempty"`
// Deprecated. This field has no effect.
LocationId string `protobuf:"bytes,5,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
// contains filtered or unexported fields
}Request to search for potentially sensitive info in a ContentItem.
func (*InspectContentRequest) Descriptor
func (*InspectContentRequest) Descriptor() ([]byte, []int)Deprecated: Use InspectContentRequest.ProtoReflect.Descriptor instead.
func (*InspectContentRequest) GetInspectConfig
func (x *InspectContentRequest) GetInspectConfig() *InspectConfigfunc (*InspectContentRequest) GetInspectTemplateName
func (x *InspectContentRequest) GetInspectTemplateName() stringfunc (*InspectContentRequest) GetItem
func (x *InspectContentRequest) GetItem() *ContentItemfunc (*InspectContentRequest) GetLocationId
func (x *InspectContentRequest) GetLocationId() stringfunc (*InspectContentRequest) GetParent
func (x *InspectContentRequest) GetParent() stringfunc (*InspectContentRequest) ProtoMessage
func (*InspectContentRequest) ProtoMessage()func (*InspectContentRequest) ProtoReflect
func (x *InspectContentRequest) ProtoReflect() protoreflect.Messagefunc (*InspectContentRequest) Reset
func (x *InspectContentRequest) Reset()func (*InspectContentRequest) String
func (x *InspectContentRequest) String() stringInspectContentResponse
type InspectContentResponse struct {
// The findings.
Result *InspectResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
// contains filtered or unexported fields
}Results of inspecting an item.
func (*InspectContentResponse) Descriptor
func (*InspectContentResponse) Descriptor() ([]byte, []int)Deprecated: Use InspectContentResponse.ProtoReflect.Descriptor instead.
func (*InspectContentResponse) GetResult
func (x *InspectContentResponse) GetResult() *InspectResultfunc (*InspectContentResponse) ProtoMessage
func (*InspectContentResponse) ProtoMessage()func (*InspectContentResponse) ProtoReflect
func (x *InspectContentResponse) ProtoReflect() protoreflect.Messagefunc (*InspectContentResponse) Reset
func (x *InspectContentResponse) Reset()func (*InspectContentResponse) String
func (x *InspectContentResponse) String() stringInspectDataSourceDetails
type InspectDataSourceDetails struct {
// The configuration used for this job.
RequestedOptions *InspectDataSourceDetails_RequestedOptions `protobuf:"bytes,2,opt,name=requested_options,json=requestedOptions,proto3" json:"requested_options,omitempty"`
// A summary of the outcome of this inspection job.
Result *InspectDataSourceDetails_Result `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"`
// contains filtered or unexported fields
}The results of an inspect DataSource job.
func (*InspectDataSourceDetails) Descriptor
func (*InspectDataSourceDetails) Descriptor() ([]byte, []int)Deprecated: Use InspectDataSourceDetails.ProtoReflect.Descriptor instead.
func (*InspectDataSourceDetails) GetRequestedOptions
func (x *InspectDataSourceDetails) GetRequestedOptions() *InspectDataSourceDetails_RequestedOptionsfunc (*InspectDataSourceDetails) GetResult
func (x *InspectDataSourceDetails) GetResult() *InspectDataSourceDetails_Resultfunc (*InspectDataSourceDetails) ProtoMessage
func (*InspectDataSourceDetails) ProtoMessage()func (*InspectDataSourceDetails) ProtoReflect
func (x *InspectDataSourceDetails) ProtoReflect() protoreflect.Messagefunc (*InspectDataSourceDetails) Reset
func (x *InspectDataSourceDetails) Reset()func (*InspectDataSourceDetails) String
func (x *InspectDataSourceDetails) String() stringInspectDataSourceDetails_RequestedOptions
type InspectDataSourceDetails_RequestedOptions struct {
// If run with an InspectTemplate, a snapshot of its state at the time of
// this run.
SnapshotInspectTemplate *InspectTemplate `protobuf:"bytes,1,opt,name=snapshot_inspect_template,json=snapshotInspectTemplate,proto3" json:"snapshot_inspect_template,omitempty"`
// Inspect config.
JobConfig *InspectJobConfig `protobuf:"bytes,3,opt,name=job_config,json=jobConfig,proto3" json:"job_config,omitempty"`
// contains filtered or unexported fields
}Snapshot of the inspection configuration.
func (*InspectDataSourceDetails_RequestedOptions) Descriptor
func (*InspectDataSourceDetails_RequestedOptions) Descriptor() ([]byte, []int)Deprecated: Use InspectDataSourceDetails_RequestedOptions.ProtoReflect.Descriptor instead.
func (*InspectDataSourceDetails_RequestedOptions) GetJobConfig
func (x *InspectDataSourceDetails_RequestedOptions) GetJobConfig() *InspectJobConfigfunc (*InspectDataSourceDetails_RequestedOptions) GetSnapshotInspectTemplate
func (x *InspectDataSourceDetails_RequestedOptions) GetSnapshotInspectTemplate() *InspectTemplatefunc (*InspectDataSourceDetails_RequestedOptions) ProtoMessage
func (*InspectDataSourceDetails_RequestedOptions) ProtoMessage()func (*InspectDataSourceDetails_RequestedOptions) ProtoReflect
func (x *InspectDataSourceDetails_RequestedOptions) ProtoReflect() protoreflect.Messagefunc (*InspectDataSourceDetails_RequestedOptions) Reset
func (x *InspectDataSourceDetails_RequestedOptions) Reset()func (*InspectDataSourceDetails_RequestedOptions) String
func (x *InspectDataSourceDetails_RequestedOptions) String() stringInspectDataSourceDetails_Result
type InspectDataSourceDetails_Result struct {
// Total size in bytes that were processed.
ProcessedBytes int64 `protobuf:"varint,1,opt,name=processed_bytes,json=processedBytes,proto3" json:"processed_bytes,omitempty"`
// Estimate of the number of bytes to process.
TotalEstimatedBytes int64 `protobuf:"varint,2,opt,name=total_estimated_bytes,json=totalEstimatedBytes,proto3" json:"total_estimated_bytes,omitempty"`
// Statistics of how many instances of each info type were found during
// inspect job.
InfoTypeStats []*InfoTypeStats `protobuf:"bytes,3,rep,name=info_type_stats,json=infoTypeStats,proto3" json:"info_type_stats,omitempty"`
// Number of rows scanned after sampling and time filtering (applicable for
// row based stores such as BigQuery).
NumRowsProcessed int64 `protobuf:"varint,5,opt,name=num_rows_processed,json=numRowsProcessed,proto3" json:"num_rows_processed,omitempty"`
// Statistics related to the processing of hybrid inspect.
HybridStats *HybridInspectStatistics `protobuf:"bytes,7,opt,name=hybrid_stats,json=hybridStats,proto3" json:"hybrid_stats,omitempty"`
// contains filtered or unexported fields
}All Result fields are updated while the job is processing.
func (*InspectDataSourceDetails_Result) Descriptor
func (*InspectDataSourceDetails_Result) Descriptor() ([]byte, []int)Deprecated: Use InspectDataSourceDetails_Result.ProtoReflect.Descriptor instead.
func (*InspectDataSourceDetails_Result) GetHybridStats
func (x *InspectDataSourceDetails_Result) GetHybridStats() *HybridInspectStatisticsfunc (*InspectDataSourceDetails_Result) GetInfoTypeStats
func (x *InspectDataSourceDetails_Result) GetInfoTypeStats() []*InfoTypeStatsfunc (*InspectDataSourceDetails_Result) GetNumRowsProcessed
func (x *InspectDataSourceDetails_Result) GetNumRowsProcessed() int64func (*InspectDataSourceDetails_Result) GetProcessedBytes
func (x *InspectDataSourceDetails_Result) GetProcessedBytes() int64func (*InspectDataSourceDetails_Result) GetTotalEstimatedBytes
func (x *InspectDataSourceDetails_Result) GetTotalEstimatedBytes() int64func (*InspectDataSourceDetails_Result) ProtoMessage
func (*InspectDataSourceDetails_Result) ProtoMessage()func (*InspectDataSourceDetails_Result) ProtoReflect
func (x *InspectDataSourceDetails_Result) ProtoReflect() protoreflect.Messagefunc (*InspectDataSourceDetails_Result) Reset
func (x *InspectDataSourceDetails_Result) Reset()func (*InspectDataSourceDetails_Result) String
func (x *InspectDataSourceDetails_Result) String() stringInspectJobConfig
type InspectJobConfig struct {
// The data to scan.
StorageConfig *StorageConfig `protobuf:"bytes,1,opt,name=storage_config,json=storageConfig,proto3" json:"storage_config,omitempty"`
// How and what to scan for.
InspectConfig *InspectConfig `protobuf:"bytes,2,opt,name=inspect_config,json=inspectConfig,proto3" json:"inspect_config,omitempty"`
// If provided, will be used as the default for all values in InspectConfig.
// `inspect_config` will be merged into the values persisted as part of the
// template.
InspectTemplateName string `protobuf:"bytes,3,opt,name=inspect_template_name,json=inspectTemplateName,proto3" json:"inspect_template_name,omitempty"`
// Actions to execute at the completion of the job.
Actions []*Action `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"`
// contains filtered or unexported fields
}Controls what and how to inspect for findings.
func (*InspectJobConfig) Descriptor
func (*InspectJobConfig) Descriptor() ([]byte, []int)Deprecated: Use InspectJobConfig.ProtoReflect.Descriptor instead.
func (*InspectJobConfig) GetActions
func (x *InspectJobConfig) GetActions() []*Actionfunc (*InspectJobConfig) GetInspectConfig
func (x *InspectJobConfig) GetInspectConfig() *InspectConfigfunc (*InspectJobConfig) GetInspectTemplateName
func (x *InspectJobConfig) GetInspectTemplateName() stringfunc (*InspectJobConfig) GetStorageConfig
func (x *InspectJobConfig) GetStorageConfig() *StorageConfigfunc (*InspectJobConfig) ProtoMessage
func (*InspectJobConfig) ProtoMessage()func (*InspectJobConfig) ProtoReflect
func (x *InspectJobConfig) ProtoReflect() protoreflect.Messagefunc (*InspectJobConfig) Reset
func (x *InspectJobConfig) Reset()func (*InspectJobConfig) String
func (x *InspectJobConfig) String() stringInspectResult
type InspectResult struct {
// List of findings for an item.
Findings []*Finding `protobuf:"bytes,1,rep,name=findings,proto3" json:"findings,omitempty"`
// If true, then this item might have more findings than were returned,
// and the findings returned are an arbitrary subset of all findings.
// The findings list might be truncated because the input items were too
// large, or because the server reached the maximum amount of resources
// allowed for a single API call. For best results, divide the input into
// smaller batches.
FindingsTruncated bool `protobuf:"varint,2,opt,name=findings_truncated,json=findingsTruncated,proto3" json:"findings_truncated,omitempty"`
// contains filtered or unexported fields
}All the findings for a single scanned item.
func (*InspectResult) Descriptor
func (*InspectResult) Descriptor() ([]byte, []int)Deprecated: Use InspectResult.ProtoReflect.Descriptor instead.
func (*InspectResult) GetFindings
func (x *InspectResult) GetFindings() []*Findingfunc (*InspectResult) GetFindingsTruncated
func (x *InspectResult) GetFindingsTruncated() boolfunc (*InspectResult) ProtoMessage
func (*InspectResult) ProtoMessage()func (*InspectResult) ProtoReflect
func (x *InspectResult) ProtoReflect() protoreflect.Messagefunc (*InspectResult) Reset
func (x *InspectResult) Reset()func (*InspectResult) String
func (x *InspectResult) String() stringInspectTemplate
type InspectTemplate struct {
// Output only. The template name.
//
// The template will have one of the following formats:
// `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR
// `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`;
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Display name (max 256 chars).
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Short description (max 256 chars).
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The creation timestamp of an inspectTemplate.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The last update timestamp of an inspectTemplate.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// The core content of the template. Configuration of the scanning process.
InspectConfig *InspectConfig `protobuf:"bytes,6,opt,name=inspect_config,json=inspectConfig,proto3" json:"inspect_config,omitempty"`
// contains filtered or unexported fields
}The inspectTemplate contains a configuration (set of types of sensitive data to be detected) to be used anywhere you otherwise would normally specify InspectConfig. See https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to learn more.
func (*InspectTemplate) Descriptor
func (*InspectTemplate) Descriptor() ([]byte, []int)Deprecated: Use InspectTemplate.ProtoReflect.Descriptor instead.
func (*InspectTemplate) GetCreateTime
func (x *InspectTemplate) GetCreateTime() *timestamppb.Timestampfunc (*InspectTemplate) GetDescription
func (x *InspectTemplate) GetDescription() stringfunc (*InspectTemplate) GetDisplayName
func (x *InspectTemplate) GetDisplayName() stringfunc (*InspectTemplate) GetInspectConfig
func (x *InspectTemplate) GetInspectConfig() *InspectConfigfunc (*InspectTemplate) GetName
func (x *InspectTemplate) GetName() stringfunc (*InspectTemplate) GetUpdateTime
func (x *InspectTemplate) GetUpdateTime() *timestamppb.Timestampfunc (*InspectTemplate) ProtoMessage
func (*InspectTemplate) ProtoMessage()func (*InspectTemplate) ProtoReflect
func (x *InspectTemplate) ProtoReflect() protoreflect.Messagefunc (*InspectTemplate) Reset
func (x *InspectTemplate) Reset()func (*InspectTemplate) String
func (x *InspectTemplate) String() stringInspectionRule
type InspectionRule struct {
// Inspection rule types.
//
// Types that are assignable to Type:
//
// *InspectionRule_HotwordRule
// *InspectionRule_ExclusionRule
Type isInspectionRule_Type `protobuf_oneof:"type"`
// contains filtered or unexported fields
}A single inspection rule to be applied to infoTypes, specified in
InspectionRuleSet.
func (*InspectionRule) Descriptor
func (*InspectionRule) Descriptor() ([]byte, []int)Deprecated: Use InspectionRule.ProtoReflect.Descriptor instead.
func (*InspectionRule) GetExclusionRule
func (x *InspectionRule) GetExclusionRule() *ExclusionRulefunc (*InspectionRule) GetHotwordRule
func (x *InspectionRule) GetHotwordRule() *CustomInfoType_DetectionRule_HotwordRulefunc (*InspectionRule) GetType
func (m *InspectionRule) GetType() isInspectionRule_Typefunc (*InspectionRule) ProtoMessage
func (*InspectionRule) ProtoMessage()func (*InspectionRule) ProtoReflect
func (x *InspectionRule) ProtoReflect() protoreflect.Messagefunc (*InspectionRule) Reset
func (x *InspectionRule) Reset()func (*InspectionRule) String
func (x *InspectionRule) String() stringInspectionRuleSet
type InspectionRuleSet struct {
// List of infoTypes this rule set is applied to.
InfoTypes []*InfoType `protobuf:"bytes,1,rep,name=info_types,json=infoTypes,proto3" json:"info_types,omitempty"`
// Set of rules to be applied to infoTypes. The rules are applied in order.
Rules []*InspectionRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"`
// contains filtered or unexported fields
}Rule set for modifying a set of infoTypes to alter behavior under certain circumstances, depending on the specific details of the rules within the set.
func (*InspectionRuleSet) Descriptor
func (*InspectionRuleSet) Descriptor() ([]byte, []int)Deprecated: Use InspectionRuleSet.ProtoReflect.Descriptor instead.
func (*InspectionRuleSet) GetInfoTypes
func (x *InspectionRuleSet) GetInfoTypes() []*InfoTypefunc (*InspectionRuleSet) GetRules
func (x *InspectionRuleSet) GetRules() []*InspectionRulefunc (*InspectionRuleSet) ProtoMessage
func (*InspectionRuleSet) ProtoMessage()func (*InspectionRuleSet) ProtoReflect
func (x *InspectionRuleSet) ProtoReflect() protoreflect.Messagefunc (*InspectionRuleSet) Reset
func (x *InspectionRuleSet) Reset()func (*InspectionRuleSet) String
func (x *InspectionRuleSet) String() stringInspectionRule_ExclusionRule
type InspectionRule_ExclusionRule struct {
// Exclusion rule.
ExclusionRule *ExclusionRule `protobuf:"bytes,2,opt,name=exclusion_rule,json=exclusionRule,proto3,oneof"`
}InspectionRule_HotwordRule
type InspectionRule_HotwordRule struct {
// Hotword-based detection rule.
HotwordRule *CustomInfoType_DetectionRule_HotwordRule `protobuf:"bytes,1,opt,name=hotword_rule,json=hotwordRule,proto3,oneof"`
}JobTrigger
type JobTrigger struct {
// Unique resource name for the triggeredJob, assigned by the service when the
// triggeredJob is created, for example
// `projects/dlp-test-project/jobTriggers/53234423`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Display name (max 100 chars)
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// User provided description (max 256 chars)
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// The configuration details for the specific type of job to run.
//
// Types that are assignable to Job:
//
// *JobTrigger_InspectJob
Job isJobTrigger_Job `protobuf_oneof:"job"`
// A list of triggers which will be OR'ed together. Only one in the list
// needs to trigger for a job to be started. The list may contain only
// a single Schedule trigger and must have at least one object.
Triggers []*JobTrigger_Trigger `protobuf:"bytes,5,rep,name=triggers,proto3" json:"triggers,omitempty"`
// Output only. A stream of errors encountered when the trigger was activated.
// Repeated errors may result in the JobTrigger automatically being paused.
// Will return the last 100 errors. Whenever the JobTrigger is modified
// this list will be cleared.
Errors []*Error `protobuf:"bytes,6,rep,name=errors,proto3" json:"errors,omitempty"`
// Output only. The creation timestamp of a triggeredJob.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The last update timestamp of a triggeredJob.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. The timestamp of the last time this trigger executed.
LastRunTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=last_run_time,json=lastRunTime,proto3" json:"last_run_time,omitempty"`
// Required. A status for this trigger.
Status JobTrigger_Status `protobuf:"varint,10,opt,name=status,proto3,enum=google.privacy.dlp.v2.JobTrigger_Status" json:"status,omitempty"`
// contains filtered or unexported fields
}Contains a configuration to make API calls on a repeating basis. See https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers to learn more.
func (*JobTrigger) Descriptor
func (*JobTrigger) Descriptor() ([]byte, []int)Deprecated: Use JobTrigger.ProtoReflect.Descriptor instead.
func (*JobTrigger) GetCreateTime
func (x *JobTrigger) GetCreateTime() *timestamppb.Timestampfunc (*JobTrigger) GetDescription
func (x *JobTrigger) GetDescription() stringfunc (*JobTrigger) GetDisplayName
func (x *JobTrigger) GetDisplayName() stringfunc (*JobTrigger) GetErrors
func (x *JobTrigger) GetErrors() []*Errorfunc (*JobTrigger) GetInspectJob
func (x *JobTrigger) GetInspectJob() *InspectJobConfigfunc (*JobTrigger) GetJob
func (m *JobTrigger) GetJob() isJobTrigger_Jobfunc (*JobTrigger) GetLastRunTime
func (x *JobTrigger) GetLastRunTime() *timestamppb.Timestampfunc (*JobTrigger) GetName
func (x *JobTrigger) GetName() stringfunc (*JobTrigger) GetStatus
func (x *JobTrigger) GetStatus() JobTrigger_Statusfunc (*JobTrigger) GetTriggers
func (x *JobTrigger) GetTriggers() []*JobTrigger_Triggerfunc (*JobTrigger) GetUpdateTime
func (x *JobTrigger) GetUpdateTime() *timestamppb.Timestampfunc (*JobTrigger) ProtoMessage
func (*JobTrigger) ProtoMessage()func (*JobTrigger) ProtoReflect
func (x *JobTrigger) ProtoReflect() protoreflect.Messagefunc (*JobTrigger) Reset
func (x *JobTrigger) Reset()func (*JobTrigger) String
func (x *JobTrigger) String() stringJobTrigger_InspectJob
type JobTrigger_InspectJob struct {
// For inspect jobs, a snapshot of the configuration.
InspectJob *InspectJobConfig `protobuf:"bytes,4,opt,name=inspect_job,json=inspectJob,proto3,oneof"`
}JobTrigger_Status
type JobTrigger_Status int32Whether the trigger is currently active. If PAUSED or CANCELLED, no jobs will be created with this configuration. The service may automatically pause triggers experiencing frequent errors. To restart a job, set the status to HEALTHY after correcting user errors.
JobTrigger_STATUS_UNSPECIFIED, JobTrigger_HEALTHY, JobTrigger_PAUSED, JobTrigger_CANCELLED
const (
// Unused.
JobTrigger_STATUS_UNSPECIFIED JobTrigger_Status = 0
// Trigger is healthy.
JobTrigger_HEALTHY JobTrigger_Status = 1
// Trigger is temporarily paused.
JobTrigger_PAUSED JobTrigger_Status = 2
// Trigger is cancelled and can not be resumed.
JobTrigger_CANCELLED JobTrigger_Status = 3
)func (JobTrigger_Status) Descriptor
func (JobTrigger_Status) Descriptor() protoreflect.EnumDescriptorfunc (JobTrigger_Status) Enum
func (x JobTrigger_Status) Enum() *JobTrigger_Statusfunc (JobTrigger_Status) EnumDescriptor
func (JobTrigger_Status) EnumDescriptor() ([]byte, []int)Deprecated: Use JobTrigger_Status.Descriptor instead.
func (JobTrigger_Status) Number
func (x JobTrigger_Status) Number() protoreflect.EnumNumberfunc (JobTrigger_Status) String
func (x JobTrigger_Status) String() stringfunc (JobTrigger_Status) Type
func (JobTrigger_Status) Type() protoreflect.EnumTypeJobTrigger_Trigger
type JobTrigger_Trigger struct {
// What event needs to occur for a new job to be started.
//
// Types that are assignable to Trigger:
//
// *JobTrigger_Trigger_Schedule
// *JobTrigger_Trigger_Manual
Trigger isJobTrigger_Trigger_Trigger `protobuf_oneof:"trigger"`
// contains filtered or unexported fields
}What event needs to occur for a new job to be started.
func (*JobTrigger_Trigger) Descriptor
func (*JobTrigger_Trigger) Descriptor() ([]byte, []int)Deprecated: Use JobTrigger_Trigger.ProtoReflect.Descriptor instead.
func (*JobTrigger_Trigger) GetManual
func (x *JobTrigger_Trigger) GetManual() *Manualfunc (*JobTrigger_Trigger) GetSchedule
func (x *JobTrigger_Trigger) GetSchedule() *Schedulefunc (*JobTrigger_Trigger) GetTrigger
func (m *JobTrigger_Trigger) GetTrigger() isJobTrigger_Trigger_Triggerfunc (*JobTrigger_Trigger) ProtoMessage
func (*JobTrigger_Trigger) ProtoMessage()func (*JobTrigger_Trigger) ProtoReflect
func (x *JobTrigger_Trigger) ProtoReflect() protoreflect.Messagefunc (*JobTrigger_Trigger) Reset
func (x *JobTrigger_Trigger) Reset()func (*JobTrigger_Trigger) String
func (x *JobTrigger_Trigger) String() stringJobTrigger_Trigger_Manual
type JobTrigger_Trigger_Manual struct {
// For use with hybrid jobs. Jobs must be manually created and finished.
Manual *Manual `protobuf:"bytes,2,opt,name=manual,proto3,oneof"`
}JobTrigger_Trigger_Schedule
type JobTrigger_Trigger_Schedule struct {
// Create a job on a repeating basis based on the elapse of time.
Schedule *Schedule `protobuf:"bytes,1,opt,name=schedule,proto3,oneof"`
}Key
type Key struct {
// Entities are partitioned into subsets, currently identified by a project
// ID and namespace ID.
// Queries are scoped to a single partition.
PartitionId *PartitionId `protobuf:"bytes,1,opt,name=partition_id,json=partitionId,proto3" json:"partition_id,omitempty"`
// The entity path.
// An entity path consists of one or more elements composed of a kind and a
// string or numerical identifier, which identify entities. The first
// element identifies a _root entity_, the second element identifies
// a _child_ of the root entity, the third element identifies a child of the
// second entity, and so forth. The entities identified by all prefixes of
// the path are called the element's _ancestors_.
//
// A path can never be empty, and a path can have at most 100 elements.
Path []*Key_PathElement `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}A unique identifier for a Datastore entity. If a key's partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts.
func (*Key) Descriptor
Deprecated: Use Key.ProtoReflect.Descriptor instead.
func (*Key) GetPartitionId
func (x *Key) GetPartitionId() *PartitionIdfunc (*Key) GetPath
func (x *Key) GetPath() []*Key_PathElementfunc (*Key) ProtoMessage
func (*Key) ProtoMessage()func (*Key) ProtoReflect
func (x *Key) ProtoReflect() protoreflect.Messagefunc (*Key) Reset
func (x *Key) Reset()func (*Key) String
Key_PathElement
type Key_PathElement struct {
// The kind of the entity.
// A kind matching regex `__.*__` is reserved/read-only.
// A kind must not contain more than 1500 bytes when UTF-8 encoded.
// Cannot be `""`.
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
// The type of ID.
//
// Types that are assignable to IdType:
//
// *Key_PathElement_Id
// *Key_PathElement_Name
IdType isKey_PathElement_IdType `protobuf_oneof:"id_type"`
// contains filtered or unexported fields
}A (kind, ID/name) pair used to construct a key path.
If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
func (*Key_PathElement) Descriptor
func (*Key_PathElement) Descriptor() ([]byte, []int)Deprecated: Use Key_PathElement.ProtoReflect.Descriptor instead.
func (*Key_PathElement) GetId
func (x *Key_PathElement) GetId() int64func (*Key_PathElement) GetIdType
func (m *Key_PathElement) GetIdType() isKey_PathElement_IdTypefunc (*Key_PathElement) GetKind
func (x *Key_PathElement) GetKind() stringfunc (*Key_PathElement) GetName
func (x *Key_PathElement) GetName() stringfunc (*Key_PathElement) ProtoMessage
func (*Key_PathElement) ProtoMessage()func (*Key_PathElement) ProtoReflect
func (x *Key_PathElement) ProtoReflect() protoreflect.Messagefunc (*Key_PathElement) Reset
func (x *Key_PathElement) Reset()func (*Key_PathElement) String
func (x *Key_PathElement) String() stringKey_PathElement_Id
type Key_PathElement_Id struct {
// The auto-allocated ID of the entity.
// Never equal to zero. Values less than zero are discouraged and may not
// be supported in the future.
Id int64 `protobuf:"varint,2,opt,name=id,proto3,oneof"`
}Key_PathElement_Name
type Key_PathElement_Name struct {
// The name of the entity.
// A name matching regex `__.*__` is reserved/read-only.
// A name must not be more than 1500 bytes when UTF-8 encoded.
// Cannot be `""`.
Name string `protobuf:"bytes,3,opt,name=name,proto3,oneof"`
}KindExpression
type KindExpression struct {
// The name of the kind.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}A representation of a Datastore kind.
func (*KindExpression) Descriptor
func (*KindExpression) Descriptor() ([]byte, []int)Deprecated: Use KindExpression.ProtoReflect.Descriptor instead.
func (*KindExpression) GetName
func (x *KindExpression) GetName() stringfunc (*KindExpression) ProtoMessage
func (*KindExpression) ProtoMessage()func (*KindExpression) ProtoReflect
func (x *KindExpression) ProtoReflect() protoreflect.Messagefunc (*KindExpression) Reset
func (x *KindExpression) Reset()func (*KindExpression) String
func (x *KindExpression) String() stringKmsWrappedCryptoKey
type KmsWrappedCryptoKey struct {
// Required. The wrapped data crypto key.
WrappedKey []byte `protobuf:"bytes,1,opt,name=wrapped_key,json=wrappedKey,proto3" json:"wrapped_key,omitempty"`
// Required. The resource name of the KMS CryptoKey to use for unwrapping.
CryptoKeyName string `protobuf:"bytes,2,opt,name=crypto_key_name,json=cryptoKeyName,proto3" json:"crypto_key_name,omitempty"`
// contains filtered or unexported fields
}Include to use an existing data crypto key wrapped by KMS. The wrapped key must be a 128-, 192-, or 256-bit key. Authorization requires the following IAM permissions when sending a request to perform a crypto transformation using a KMS-wrapped crypto key: dlp.kms.encrypt
For more information, see Creating a wrapped key.
Note: When you use Cloud KMS for cryptographic operations, charges apply.
func (*KmsWrappedCryptoKey) Descriptor
func (*KmsWrappedCryptoKey) Descriptor() ([]byte, []int)Deprecated: Use KmsWrappedCryptoKey.ProtoReflect.Descriptor instead.
func (*KmsWrappedCryptoKey) GetCryptoKeyName
func (x *KmsWrappedCryptoKey) GetCryptoKeyName() stringfunc (*KmsWrappedCryptoKey) GetWrappedKey
func (x *KmsWrappedCryptoKey) GetWrappedKey() []bytefunc (*KmsWrappedCryptoKey) ProtoMessage
func (*KmsWrappedCryptoKey) ProtoMessage()func (*KmsWrappedCryptoKey) ProtoReflect
func (x *KmsWrappedCryptoKey) ProtoReflect() protoreflect.Messagefunc (*KmsWrappedCryptoKey) Reset
func (x *KmsWrappedCryptoKey) Reset()func (*KmsWrappedCryptoKey) String
func (x *KmsWrappedCryptoKey) String() stringLargeCustomDictionaryConfig
type LargeCustomDictionaryConfig struct {
// Location to store dictionary artifacts in Cloud Storage. These files
// will only be accessible by project owners and the DLP API. If any of these
// artifacts are modified, the dictionary is considered invalid and can no
// longer be used.
OutputPath *CloudStoragePath `protobuf:"bytes,1,opt,name=output_path,json=outputPath,proto3" json:"output_path,omitempty"`
// Source of the dictionary.
//
// Types that are assignable to Source:
//
// *LargeCustomDictionaryConfig_CloudStorageFileSet
// *LargeCustomDictionaryConfig_BigQueryField
Source isLargeCustomDictionaryConfig_Source `protobuf_oneof:"source"`
// contains filtered or unexported fields
}Configuration for a custom dictionary created from a data source of any size
up to the maximum size defined in the
limits page. The
artifacts of dictionary creation are stored in the specified Cloud Storage
location. Consider using CustomInfoType.Dictionary for smaller dictionaries
that satisfy the size requirements.
func (*LargeCustomDictionaryConfig) Descriptor
func (*LargeCustomDictionaryConfig) Descriptor() ([]byte, []int)Deprecated: Use LargeCustomDictionaryConfig.ProtoReflect.Descriptor instead.
func (*LargeCustomDictionaryConfig) GetBigQueryField
func (x *LargeCustomDictionaryConfig) GetBigQueryField() *BigQueryFieldfunc (*LargeCustomDictionaryConfig) GetCloudStorageFileSet
func (x *LargeCustomDictionaryConfig) GetCloudStorageFileSet() *CloudStorageFileSetfunc (*LargeCustomDictionaryConfig) GetOutputPath
func (x *LargeCustomDictionaryConfig) GetOutputPath() *CloudStoragePathfunc (*LargeCustomDictionaryConfig) GetSource
func (m *LargeCustomDictionaryConfig) GetSource() isLargeCustomDictionaryConfig_Sourcefunc (*LargeCustomDictionaryConfig) ProtoMessage
func (*LargeCustomDictionaryConfig) ProtoMessage()func (*LargeCustomDictionaryConfig) ProtoReflect
func (x *LargeCustomDictionaryConfig) ProtoReflect() protoreflect.Messagefunc (*LargeCustomDictionaryConfig) Reset
func (x *LargeCustomDictionaryConfig) Reset()func (*LargeCustomDictionaryConfig) String
func (x *LargeCustomDictionaryConfig) String() stringLargeCustomDictionaryConfig_BigQueryField
type LargeCustomDictionaryConfig_BigQueryField struct {
// Field in a BigQuery table where each cell represents a dictionary phrase.
BigQueryField *BigQueryField `protobuf:"bytes,3,opt,name=big_query_field,json=bigQueryField,proto3,oneof"`
}LargeCustomDictionaryConfig_CloudStorageFileSet
type LargeCustomDictionaryConfig_CloudStorageFileSet struct {
// Set of files containing newline-delimited lists of dictionary phrases.
CloudStorageFileSet *CloudStorageFileSet `protobuf:"bytes,2,opt,name=cloud_storage_file_set,json=cloudStorageFileSet,proto3,oneof"`
}LargeCustomDictionaryStats
type LargeCustomDictionaryStats struct {
// Approximate number of distinct phrases in the dictionary.
ApproxNumPhrases int64 `protobuf:"varint,1,opt,name=approx_num_phrases,json=approxNumPhrases,proto3" json:"approx_num_phrases,omitempty"`
// contains filtered or unexported fields
}Summary statistics of a custom dictionary.
func (*LargeCustomDictionaryStats) Descriptor
func (*LargeCustomDictionaryStats) Descriptor() ([]byte, []int)Deprecated: Use LargeCustomDictionaryStats.ProtoReflect.Descriptor instead.
func (*LargeCustomDictionaryStats) GetApproxNumPhrases
func (x *LargeCustomDictionaryStats) GetApproxNumPhrases() int64func (*LargeCustomDictionaryStats) ProtoMessage
func (*LargeCustomDictionaryStats) ProtoMessage()func (*LargeCustomDictionaryStats) ProtoReflect
func (x *LargeCustomDictionaryStats) ProtoReflect() protoreflect.Messagefunc (*LargeCustomDictionaryStats) Reset
func (x *LargeCustomDictionaryStats) Reset()func (*LargeCustomDictionaryStats) String
func (x *LargeCustomDictionaryStats) String() stringLikelihood
type Likelihood int32Coarse-grained confidence level of how well a particular finding satisfies the criteria to match a particular infoType.
Likelihood is calculated based on the number of signals a finding has that implies that the finding matches the infoType. For example, a string that has an '@' and a '.com' is more likely to be a match for an email address than a string that only has an '@'.
In general, the highest likelihood level has the strongest signals that indicate a match. That is, a finding with a high likelihood has a low chance of being a false positive.
For more information about each likelihood level and how likelihood works, see Match likelihood.
Likelihood_LIKELIHOOD_UNSPECIFIED, Likelihood_VERY_UNLIKELY, Likelihood_UNLIKELY, Likelihood_POSSIBLE, Likelihood_LIKELY, Likelihood_VERY_LIKELY
const (
// Default value; same as POSSIBLE.
Likelihood_LIKELIHOOD_UNSPECIFIED Likelihood = 0
// Highest chance of a false positive.
Likelihood_VERY_UNLIKELY Likelihood = 1
// High chance of a false positive.
Likelihood_UNLIKELY Likelihood = 2
// Some matching signals. The default value.
Likelihood_POSSIBLE Likelihood = 3
// Low chance of a false positive.
Likelihood_LIKELY Likelihood = 4
// Confidence level is high. Lowest chance of a false positive.
Likelihood_VERY_LIKELY Likelihood = 5
)func (Likelihood) Descriptor
func (Likelihood) Descriptor() protoreflect.EnumDescriptorfunc (Likelihood) Enum
func (x Likelihood) Enum() *Likelihoodfunc (Likelihood) EnumDescriptor
func (Likelihood) EnumDescriptor() ([]byte, []int)Deprecated: Use Likelihood.Descriptor instead.
func (Likelihood) Number
func (x Likelihood) Number() protoreflect.EnumNumberfunc (Likelihood) String
func (x Likelihood) String() stringfunc (Likelihood) Type
func (Likelihood) Type() protoreflect.EnumTypeListColumnDataProfilesRequest
type ListColumnDataProfilesRequest struct {
// Required. Resource name of the organization or project, for
// example `organizations/433245324/locations/europe` or
// `projects/project-id/locations/asia`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Page token to continue retrieval.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Size of the page. This value can be limited by the server. If zero, server
// returns a page of max size 100.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Comma-separated list of fields to order by, followed by `asc` or `desc`
// postfix. This list is case insensitive. The default sorting order is
// ascending. Redundant space characters are insignificant. Only one order
// field at a time is allowed.
//
// Examples:
//
// * `project_id asc`
// * `table_id`
// * `sensitivity_level desc`
//
// Supported fields are:
//
// - `project_id`: The Google Cloud project ID.
// - `dataset_id`: The ID of a BigQuery dataset.
// - `table_id`: The ID of a BigQuery table.
// - `sensitivity_level`: How sensitive the data in a column is, at most.
// - `data_risk_level`: How much risk is associated with this data.
// - `profile_last_generated`: When the profile was last updated in epoch
// seconds.
OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// Allows filtering.
//
// Supported syntax:
//
// * Filter expressions are made up of one or more restrictions.
// * Restrictions can be combined by `AND` or `OR` logical operators. A
// sequence of restrictions implicitly uses `AND`.
// * A restriction has the form of `{field} {operator} {value}`.
// * Supported fields:
// - `table_data_profile_name`: The name of the related table data
// profile
// - `project_id`: The Google Cloud project ID (REQUIRED)
// - `dataset_id`: The BigQuery dataset ID (REQUIRED)
// - `table_id`: The BigQuery table ID (REQUIRED)
// - `field_id`: The ID of the BigQuery field
// - `info_type`: The infotype detected in the resource
// - `sensitivity_level`: HIGH|MEDIUM|LOW
// - `data_risk_level`: How much risk is associated with this data
// - `status_code`: An RPC status code as defined in
// https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
// - `profile_last_generated`: Date and time the profile was last
// generated
// - The operator must be `=` for project_id, dataset_id, and table_id. Other
// filters also support `!=`. The `profile_last_generated` filter also
// supports `<` and="" `="">`.
//
// The syntax is based on https://google.aip.dev/160.
//
// Examples:
//
// * project_id = 12345 AND status_code = 1
// * project_id = 12345 AND sensitivity_level = HIGH
// * project_id = 12345 AND info_type = STREET_ADDRESS
// * profile_last_generated < "2025-01-01t00:00:00.000z"="" the="" length="" of="" this="" field="" should="" be="" no="" more="" than="" 500="" characters.="" filter="">string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}Request to list the profiles generated for a given organization or project.
func (*ListColumnDataProfilesRequest) Descriptor
func (*ListColumnDataProfilesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListColumnDataProfilesRequest.ProtoReflect.Descriptor instead.
func (*ListColumnDataProfilesRequest) GetFilter
func (x *ListColumnDataProfilesRequest) GetFilter() stringfunc (*ListColumnDataProfilesRequest) GetOrderBy
func (x *ListColumnDataProfilesRequest) GetOrderBy() stringfunc (*ListColumnDataProfilesRequest) GetPageSize
func (x *ListColumnDataProfilesRequest) GetPageSize() int32func (*ListColumnDataProfilesRequest) GetPageToken
func (x *ListColumnDataProfilesRequest) GetPageToken() stringfunc (*ListColumnDataProfilesRequest) GetParent
func (x *ListColumnDataProfilesRequest) GetParent() stringfunc (*ListColumnDataProfilesRequest) ProtoMessage
func (*ListColumnDataProfilesRequest) ProtoMessage()func (*ListColumnDataProfilesRequest) ProtoReflect
func (x *ListColumnDataProfilesRequest) ProtoReflect() protoreflect.Messagefunc (*ListColumnDataProfilesRequest) Reset
func (x *ListColumnDataProfilesRequest) Reset()func (*ListColumnDataProfilesRequest) String
func (x *ListColumnDataProfilesRequest) String() stringListColumnDataProfilesResponse
type ListColumnDataProfilesResponse struct {
// List of data profiles.
ColumnDataProfiles []*ColumnDataProfile `protobuf:"bytes,1,rep,name=column_data_profiles,json=columnDataProfiles,proto3" json:"column_data_profiles,omitempty"`
// The next page token.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}List of profiles generated for a given organization or project.
func (*ListColumnDataProfilesResponse) Descriptor
func (*ListColumnDataProfilesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListColumnDataProfilesResponse.ProtoReflect.Descriptor instead.
func (*ListColumnDataProfilesResponse) GetColumnDataProfiles
func (x *ListColumnDataProfilesResponse) GetColumnDataProfiles() []*ColumnDataProfilefunc (*ListColumnDataProfilesResponse) GetNextPageToken
func (x *ListColumnDataProfilesResponse) GetNextPageToken() stringfunc (*ListColumnDataProfilesResponse) ProtoMessage
func (*ListColumnDataProfilesResponse) ProtoMessage()func (*ListColumnDataProfilesResponse) ProtoReflect
func (x *ListColumnDataProfilesResponse) ProtoReflect() protoreflect.Messagefunc (*ListColumnDataProfilesResponse) Reset
func (x *ListColumnDataProfilesResponse) Reset()func (*ListColumnDataProfilesResponse) String
func (x *ListColumnDataProfilesResponse) String() stringListConnectionsRequest
type ListConnectionsRequest struct {
// Required. Resource name of the organization or project, for
// example, `organizations/433245324/locations/europe` or
// `projects/project-id/locations/asia`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Number of results per page, max 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. Page token from a previous page to return the next set of
// results. If set, all other request fields must match the original request.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR
//
// The syntax is based on https://google.aip.dev/160.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}Request message for ListConnections.
func (*ListConnectionsRequest) Descriptor
func (*ListConnectionsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListConnectionsRequest.ProtoReflect.Descriptor instead.
func (*ListConnectionsRequest) GetFilter
func (x *ListConnectionsRequest) GetFilter() stringfunc (*ListConnectionsRequest) GetPageSize
func (x *ListConnectionsRequest) GetPageSize() int32func (*ListConnectionsRequest) GetPageToken
func (x *ListConnectionsRequest) GetPageToken() stringfunc (*ListConnectionsRequest) GetParent
func (x *ListConnectionsRequest) GetParent() stringfunc (*ListConnectionsRequest) ProtoMessage
func (*ListConnectionsRequest) ProtoMessage()func (*ListConnectionsRequest) ProtoReflect
func (x *ListConnectionsRequest) ProtoReflect() protoreflect.Messagefunc (*ListConnectionsRequest) Reset
func (x *ListConnectionsRequest) Reset()func (*ListConnectionsRequest) String
func (x *ListConnectionsRequest) String() stringListConnectionsResponse
type ListConnectionsResponse struct {
// List of connections.
Connections []*Connection `protobuf:"bytes,1,rep,name=connections,proto3" json:"connections,omitempty"`
// Token to retrieve the next page of results. An empty value means there are
// no more results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response message for ListConnections.
func (*ListConnectionsResponse) Descriptor
func (*ListConnectionsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListConnectionsResponse.ProtoReflect.Descriptor instead.
func (*ListConnectionsResponse) GetConnections
func (x *ListConnectionsResponse) GetConnections() []*Connectionfunc (*ListConnectionsResponse) GetNextPageToken
func (x *ListConnectionsResponse) GetNextPageToken() stringfunc (*ListConnectionsResponse) ProtoMessage
func (*ListConnectionsResponse) ProtoMessage()func (*ListConnectionsResponse) ProtoReflect
func (x *ListConnectionsResponse) ProtoReflect() protoreflect.Messagefunc (*ListConnectionsResponse) Reset
func (x *ListConnectionsResponse) Reset()func (*ListConnectionsResponse) String
func (x *ListConnectionsResponse) String() stringListDeidentifyTemplatesRequest
type ListDeidentifyTemplatesRequest struct {
// Required. Parent resource name.
//
// The format of this value varies depending on the scope of the request
// (project or organization) and whether you have [specified a processing
// location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
//
// - Projects scope, location specified:
// `projects/{project_id}/locations/{location_id}`
// - Projects scope, no location specified (defaults to global):
// `projects/{project_id}`
// - Organizations scope, location specified:
// `organizations/{org_id}/locations/{location_id}`
// - Organizations scope, no location specified (defaults to global):
// `organizations/{org_id}`
//
// The following example `parent` string specifies a parent project with the
// identifier `example-project`, and specifies the `europe-west3` location
// for processing data:
//
// parent=projects/example-project/locations/europe-west3
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Page token to continue retrieval. Comes from the previous call
// to `ListDeidentifyTemplates`.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Size of the page. This value can be limited by the server. If zero server
// returns a page of max size 100.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Comma-separated list of fields to order by,
// followed by `asc` or `desc` postfix. This list is case insensitive. The
// default sorting order is ascending. Redundant space characters are
// insignificant.
//
// Example: `name asc,update_time, create_time desc`
//
// Supported fields are:
//
// - `create_time`: corresponds to the time the template was created.
// - `update_time`: corresponds to the time the template was last updated.
// - `name`: corresponds to the template's name.
// - `display_name`: corresponds to the template's display name.
OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// Deprecated. This field has no effect.
LocationId string `protobuf:"bytes,5,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
// contains filtered or unexported fields
}Request message for ListDeidentifyTemplates.
func (*ListDeidentifyTemplatesRequest) Descriptor
func (*ListDeidentifyTemplatesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListDeidentifyTemplatesRequest.ProtoReflect.Descriptor instead.
func (*ListDeidentifyTemplatesRequest) GetLocationId
func (x *ListDeidentifyTemplatesRequest) GetLocationId() stringfunc (*ListDeidentifyTemplatesRequest) GetOrderBy
func (x *ListDeidentifyTemplatesRequest) GetOrderBy() stringfunc (*ListDeidentifyTemplatesRequest) GetPageSize
func (x *ListDeidentifyTemplatesRequest) GetPageSize() int32func (*ListDeidentifyTemplatesRequest) GetPageToken
func (x *ListDeidentifyTemplatesRequest) GetPageToken() stringfunc (*ListDeidentifyTemplatesRequest) GetParent
func (x *ListDeidentifyTemplatesRequest) GetParent() stringfunc (*ListDeidentifyTemplatesRequest) ProtoMessage
func (*ListDeidentifyTemplatesRequest) ProtoMessage()func (*ListDeidentifyTemplatesRequest) ProtoReflect
func (x *ListDeidentifyTemplatesRequest) ProtoReflect() protoreflect.Messagefunc (*ListDeidentifyTemplatesRequest) Reset
func (x *ListDeidentifyTemplatesRequest) Reset()func (*ListDeidentifyTemplatesRequest) String
func (x *ListDeidentifyTemplatesRequest) String() stringListDeidentifyTemplatesResponse
type ListDeidentifyTemplatesResponse struct {
// List of deidentify templates, up to page_size in
// ListDeidentifyTemplatesRequest.
DeidentifyTemplates []*DeidentifyTemplate `protobuf:"bytes,1,rep,name=deidentify_templates,json=deidentifyTemplates,proto3" json:"deidentify_templates,omitempty"`
// If the next page is available then the next page token to be used in the
// following ListDeidentifyTemplates request.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response message for ListDeidentifyTemplates.
func (*ListDeidentifyTemplatesResponse) Descriptor
func (*ListDeidentifyTemplatesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListDeidentifyTemplatesResponse.ProtoReflect.Descriptor instead.
func (*ListDeidentifyTemplatesResponse) GetDeidentifyTemplates
func (x *ListDeidentifyTemplatesResponse) GetDeidentifyTemplates() []*DeidentifyTemplatefunc (*ListDeidentifyTemplatesResponse) GetNextPageToken
func (x *ListDeidentifyTemplatesResponse) GetNextPageToken() stringfunc (*ListDeidentifyTemplatesResponse) ProtoMessage
func (*ListDeidentifyTemplatesResponse) ProtoMessage()func (*ListDeidentifyTemplatesResponse) ProtoReflect
func (x *ListDeidentifyTemplatesResponse) ProtoReflect() protoreflect.Messagefunc (*ListDeidentifyTemplatesResponse) Reset
func (x *ListDeidentifyTemplatesResponse) Reset()func (*ListDeidentifyTemplatesResponse) String
func (x *ListDeidentifyTemplatesResponse) String() stringListDiscoveryConfigsRequest
type ListDiscoveryConfigsRequest struct {
// Required. Parent resource name.
//
// The format of this value is as follows:
// `projects/{project_id}/locations/{location_id}`
//
// The following example `parent` string specifies a parent project with the
// identifier `example-project`, and specifies the `europe-west3` location
// for processing data:
//
// parent=projects/example-project/locations/europe-west3
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Page token to continue retrieval. Comes from the previous call
// to ListDiscoveryConfigs. `order_by` field must not
// change for subsequent calls.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Size of the page. This value can be limited by a server.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Comma-separated list of config fields to order by,
// followed by `asc` or `desc` postfix. This list is case insensitive. The
// default sorting order is ascending. Redundant space characters are
// insignificant.
//
// Example: `name asc,update_time, create_time desc`
//
// Supported fields are:
//
// - `last_run_time`: corresponds to the last time the DiscoveryConfig ran.
// - `name`: corresponds to the DiscoveryConfig's name.
// - `status`: corresponds to DiscoveryConfig's status.
OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Request message for ListDiscoveryConfigs.
func (*ListDiscoveryConfigsRequest) Descriptor
func (*ListDiscoveryConfigsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListDiscoveryConfigsRequest.ProtoReflect.Descriptor instead.
func (*ListDiscoveryConfigsRequest) GetOrderBy
func (x *ListDiscoveryConfigsRequest) GetOrderBy() stringfunc (*ListDiscoveryConfigsRequest) GetPageSize
func (x *ListDiscoveryConfigsRequest) GetPageSize() int32func (*ListDiscoveryConfigsRequest) GetPageToken
func (x *ListDiscoveryConfigsRequest) GetPageToken() stringfunc (*ListDiscoveryConfigsRequest) GetParent
func (x *ListDiscoveryConfigsRequest) GetParent() stringfunc (*ListDiscoveryConfigsRequest) ProtoMessage
func (*ListDiscoveryConfigsRequest) ProtoMessage()func (*ListDiscoveryConfigsRequest) ProtoReflect
func (x *ListDiscoveryConfigsRequest) ProtoReflect() protoreflect.Messagefunc (*ListDiscoveryConfigsRequest) Reset
func (x *ListDiscoveryConfigsRequest) Reset()func (*ListDiscoveryConfigsRequest) String
func (x *ListDiscoveryConfigsRequest) String() stringListDiscoveryConfigsResponse
type ListDiscoveryConfigsResponse struct {
// List of configs, up to page_size in ListDiscoveryConfigsRequest.
DiscoveryConfigs []*DiscoveryConfig `protobuf:"bytes,1,rep,name=discovery_configs,json=discoveryConfigs,proto3" json:"discovery_configs,omitempty"`
// If the next page is available then this value is the next page token to be
// used in the following ListDiscoveryConfigs request.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response message for ListDiscoveryConfigs.
func (*ListDiscoveryConfigsResponse) Descriptor
func (*ListDiscoveryConfigsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListDiscoveryConfigsResponse.ProtoReflect.Descriptor instead.
func (*ListDiscoveryConfigsResponse) GetDiscoveryConfigs
func (x *ListDiscoveryConfigsResponse) GetDiscoveryConfigs() []*DiscoveryConfigfunc (*ListDiscoveryConfigsResponse) GetNextPageToken
func (x *ListDiscoveryConfigsResponse) GetNextPageToken() stringfunc (*ListDiscoveryConfigsResponse) ProtoMessage
func (*ListDiscoveryConfigsResponse) ProtoMessage()func (*ListDiscoveryConfigsResponse) ProtoReflect
func (x *ListDiscoveryConfigsResponse) ProtoReflect() protoreflect.Messagefunc (*ListDiscoveryConfigsResponse) Reset
func (x *ListDiscoveryConfigsResponse) Reset()func (*ListDiscoveryConfigsResponse) String
func (x *ListDiscoveryConfigsResponse) String() stringListDlpJobsRequest
type ListDlpJobsRequest struct {
// Required. Parent resource name.
//
// The format of this value varies depending on whether you have [specified a
// processing
// location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
//
// - Projects scope, location specified:
// `projects/{project_id}/locations/{location_id}`
// - Projects scope, no location specified (defaults to global):
// `projects/{project_id}`
//
// The following example `parent` string specifies a parent project with the
// identifier `example-project`, and specifies the `europe-west3` location
// for processing data:
//
// parent=projects/example-project/locations/europe-west3
Parent string `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"`
// Allows filtering.
//
// Supported syntax:
//
// * Filter expressions are made up of one or more restrictions.
// * Restrictions can be combined by `AND` or `OR` logical operators. A
// sequence of restrictions implicitly uses `AND`.
// * A restriction has the form of `{field} {operator} {value}`.
// * Supported fields/values for inspect jobs:
// - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
// - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
// - `trigger_name` - The name of the trigger that created the job.
// - 'end_time` - Corresponds to the time the job finished.
// - 'start_time` - Corresponds to the time the job finished.
//
// * Supported fields for risk analysis jobs:
// - `state` - RUNNING|CANCELED|FINISHED|FAILED
// - 'end_time` - Corresponds to the time the job finished.
// - 'start_time` - Corresponds to the time the job finished.
//
// * The operator must be `=` or `!=`.
//
// The syntax is based on https://google.aip.dev/160.
//
// Examples:
//
// * inspected_storage = cloud_storage AND state = done
// * inspected_storage = cloud_storage OR inspected_storage = bigquery
// * inspected_storage = cloud_storage AND (state = done OR state = canceled)
// * end_time > \"2017-12-12T00:00:00+00:00\"
//
// The length of this field should be no more than 500 characters.
Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
// The standard list page size.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The standard list page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// The type of job. Defaults to `DlpJobType.INSPECT`
Type DlpJobType `protobuf:"varint,5,opt,name=type,proto3,enum=google.privacy.dlp.v2.DlpJobType" json:"type,omitempty"`
// Comma-separated list of fields to order by,
// followed by `asc` or `desc` postfix. This list is case insensitive. The
// default sorting order is ascending. Redundant space characters are
// insignificant.
//
// Example: `name asc, end_time asc, create_time desc`
//
// Supported fields are:
//
// - `create_time`: corresponds to the time the job was created.
// - `end_time`: corresponds to the time the job ended.
// - `name`: corresponds to the job's name.
// - `state`: corresponds to `state`
OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// Deprecated. This field has no effect.
LocationId string `protobuf:"bytes,7,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
// contains filtered or unexported fields
}The request message for listing DLP jobs.
func (*ListDlpJobsRequest) Descriptor
func (*ListDlpJobsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListDlpJobsRequest.ProtoReflect.Descriptor instead.
func (*ListDlpJobsRequest) GetFilter
func (x *ListDlpJobsRequest) GetFilter() stringfunc (*ListDlpJobsRequest) GetLocationId
func (x *ListDlpJobsRequest) GetLocationId() stringfunc (*ListDlpJobsRequest) GetOrderBy
func (x *ListDlpJobsRequest) GetOrderBy() stringfunc (*ListDlpJobsRequest) GetPageSize
func (x *ListDlpJobsRequest) GetPageSize() int32func (*ListDlpJobsRequest) GetPageToken
func (x *ListDlpJobsRequest) GetPageToken() stringfunc (*ListDlpJobsRequest) GetParent
func (x *ListDlpJobsRequest) GetParent() stringfunc (*ListDlpJobsRequest) GetType
func (x *ListDlpJobsRequest) GetType() DlpJobTypefunc (*ListDlpJobsRequest) ProtoMessage
func (*ListDlpJobsRequest) ProtoMessage()func (*ListDlpJobsRequest) ProtoReflect
func (x *ListDlpJobsRequest) ProtoReflect() protoreflect.Messagefunc (*ListDlpJobsRequest) Reset
func (x *ListDlpJobsRequest) Reset()func (*ListDlpJobsRequest) String
func (x *ListDlpJobsRequest) String() stringListDlpJobsResponse
type ListDlpJobsResponse struct {
// A list of DlpJobs that matches the specified filter in the request.
Jobs []*DlpJob `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"`
// The standard List next-page token.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for listing DLP jobs.
func (*ListDlpJobsResponse) Descriptor
func (*ListDlpJobsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListDlpJobsResponse.ProtoReflect.Descriptor instead.
func (*ListDlpJobsResponse) GetJobs
func (x *ListDlpJobsResponse) GetJobs() []*DlpJobfunc (*ListDlpJobsResponse) GetNextPageToken
func (x *ListDlpJobsResponse) GetNextPageToken() stringfunc (*ListDlpJobsResponse) ProtoMessage
func (*ListDlpJobsResponse) ProtoMessage()func (*ListDlpJobsResponse) ProtoReflect
func (x *ListDlpJobsResponse) ProtoReflect() protoreflect.Messagefunc (*ListDlpJobsResponse) Reset
func (x *ListDlpJobsResponse) Reset()func (*ListDlpJobsResponse) String
func (x *ListDlpJobsResponse) String() stringListFileStoreDataProfilesRequest
type ListFileStoreDataProfilesRequest struct {
// Required. Resource name of the organization or project, for
// example `organizations/433245324/locations/europe` or
// `projects/project-id/locations/asia`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Page token to continue retrieval.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Size of the page. This value can be limited by the server. If
// zero, server returns a page of max size 100.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. Comma-separated list of fields to order by, followed by `asc` or
// `desc` postfix. This list is case insensitive. The default sorting order is
// ascending. Redundant space characters are insignificant. Only one order
// field at a time is allowed.
//
// Examples:
//
// * `project_id asc`
// * `name`
// * `sensitivity_level desc`
//
// Supported fields are:
//
// - `project_id`: The Google Cloud project ID.
// - `sensitivity_level`: How sensitive the data in a table is, at most.
// - `data_risk_level`: How much risk is associated with this data.
// - `profile_last_generated`: When the profile was last updated in epoch
// seconds.
// - `last_modified`: The last time the resource was modified.
// - `resource_visibility`: Visibility restriction for this resource.
// - `name`: The name of the profile.
// - `create_time`: The time the file store was first created.
OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// Optional. Allows filtering.
//
// Supported syntax:
//
// * Filter expressions are made up of one or more restrictions.
// * Restrictions can be combined by `AND` or `OR` logical operators. A
// sequence of restrictions implicitly uses `AND`.
// * A restriction has the form of `{field} {operator} {value}`.
// * Supported fields:
// - `project_id`: The Google Cloud project ID
// - `account_id`: The AWS account ID
// - `file_store_path`: The path like "gs://bucket"
// - `data_source_type`: The profile's data source type, like
// "google/storage/bucket"
// - `data_storage_location`: The location where the file store's data is
// stored, like "us-central1"
// - `sensitivity_level`: HIGH|MODERATE|LOW
// - `data_risk_level`: HIGH|MODERATE|LOW
// - `resource_visibility`: PUBLIC|RESTRICTED
// - `status_code`: an RPC status code as defined in
// https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
// - `profile_last_generated`: Date and time the profile was last
// generated
//
// - The operator must be `=` or `!=`. The `profile_last_generated` filter
// also supports `<` and="" `="">`.
//
// The syntax is based on https://google.aip.dev/160.
//
// Examples:
//
// * `project_id = 12345 AND status_code = 1`
// * `project_id = 12345 AND sensitivity_level = HIGH`
// * `project_id = 12345 AND resource_visibility = PUBLIC`
// * `file_store_path = "gs://mybucket"`
// * `profile_last_generated < "2025-01-01t00:00:00.000z"`="" the="" length="" of="" this="" field="" should="" be="" no="" more="" than="" 500="" characters.="" filter="">string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}Request to list the file store profiles generated for a given organization or project.
func (*ListFileStoreDataProfilesRequest) Descriptor
func (*ListFileStoreDataProfilesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListFileStoreDataProfilesRequest.ProtoReflect.Descriptor instead.
func (*ListFileStoreDataProfilesRequest) GetFilter
func (x *ListFileStoreDataProfilesRequest) GetFilter() stringfunc (*ListFileStoreDataProfilesRequest) GetOrderBy
func (x *ListFileStoreDataProfilesRequest) GetOrderBy() stringfunc (*ListFileStoreDataProfilesRequest) GetPageSize
func (x *ListFileStoreDataProfilesRequest) GetPageSize() int32func (*ListFileStoreDataProfilesRequest) GetPageToken
func (x *ListFileStoreDataProfilesRequest) GetPageToken() stringfunc (*ListFileStoreDataProfilesRequest) GetParent
func (x *ListFileStoreDataProfilesRequest) GetParent() stringfunc (*ListFileStoreDataProfilesRequest) ProtoMessage
func (*ListFileStoreDataProfilesRequest) ProtoMessage()func (*ListFileStoreDataProfilesRequest) ProtoReflect
func (x *ListFileStoreDataProfilesRequest) ProtoReflect() protoreflect.Messagefunc (*ListFileStoreDataProfilesRequest) Reset
func (x *ListFileStoreDataProfilesRequest) Reset()func (*ListFileStoreDataProfilesRequest) String
func (x *ListFileStoreDataProfilesRequest) String() stringListFileStoreDataProfilesResponse
type ListFileStoreDataProfilesResponse struct {
// List of data profiles.
FileStoreDataProfiles []*FileStoreDataProfile `protobuf:"bytes,1,rep,name=file_store_data_profiles,json=fileStoreDataProfiles,proto3" json:"file_store_data_profiles,omitempty"`
// The next page token.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}List of file store data profiles generated for a given organization or project.
func (*ListFileStoreDataProfilesResponse) Descriptor
func (*ListFileStoreDataProfilesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListFileStoreDataProfilesResponse.ProtoReflect.Descriptor instead.
func (*ListFileStoreDataProfilesResponse) GetFileStoreDataProfiles
func (x *ListFileStoreDataProfilesResponse) GetFileStoreDataProfiles() []*FileStoreDataProfilefunc (*ListFileStoreDataProfilesResponse) GetNextPageToken
func (x *ListFileStoreDataProfilesResponse) GetNextPageToken() stringfunc (*ListFileStoreDataProfilesResponse) ProtoMessage
func (*ListFileStoreDataProfilesResponse) ProtoMessage()func (*ListFileStoreDataProfilesResponse) ProtoReflect
func (x *ListFileStoreDataProfilesResponse) ProtoReflect() protoreflect.Messagefunc (*ListFileStoreDataProfilesResponse) Reset
func (x *ListFileStoreDataProfilesResponse) Reset()func (*ListFileStoreDataProfilesResponse) String
func (x *ListFileStoreDataProfilesResponse) String() stringListInfoTypesRequest
type ListInfoTypesRequest struct {
// The parent resource name.
//
// The format of this value is as follows:
//
// `locations/{location_id}`
Parent string `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"`
// BCP-47 language code for localized infoType friendly
// names. If omitted, or if localized strings are not available,
// en-US strings will be returned.
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// filter to only return infoTypes supported by certain parts of the
// API. Defaults to supported_by=INSPECT.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// Deprecated. This field has no effect.
LocationId string `protobuf:"bytes,3,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
// contains filtered or unexported fields
}Request for the list of infoTypes.
func (*ListInfoTypesRequest) Descriptor
func (*ListInfoTypesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListInfoTypesRequest.ProtoReflect.Descriptor instead.
func (*ListInfoTypesRequest) GetFilter
func (x *ListInfoTypesRequest) GetFilter() stringfunc (*ListInfoTypesRequest) GetLanguageCode
func (x *ListInfoTypesRequest) GetLanguageCode() stringfunc (*ListInfoTypesRequest) GetLocationId
func (x *ListInfoTypesRequest) GetLocationId() stringfunc (*ListInfoTypesRequest) GetParent
func (x *ListInfoTypesRequest) GetParent() stringfunc (*ListInfoTypesRequest) ProtoMessage
func (*ListInfoTypesRequest) ProtoMessage()func (*ListInfoTypesRequest) ProtoReflect
func (x *ListInfoTypesRequest) ProtoReflect() protoreflect.Messagefunc (*ListInfoTypesRequest) Reset
func (x *ListInfoTypesRequest) Reset()func (*ListInfoTypesRequest) String
func (x *ListInfoTypesRequest) String() stringListInfoTypesResponse
type ListInfoTypesResponse struct {
// Set of sensitive infoTypes.
InfoTypes []*InfoTypeDescription `protobuf:"bytes,1,rep,name=info_types,json=infoTypes,proto3" json:"info_types,omitempty"`
// contains filtered or unexported fields
}Response to the ListInfoTypes request.
func (*ListInfoTypesResponse) Descriptor
func (*ListInfoTypesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListInfoTypesResponse.ProtoReflect.Descriptor instead.
func (*ListInfoTypesResponse) GetInfoTypes
func (x *ListInfoTypesResponse) GetInfoTypes() []*InfoTypeDescriptionfunc (*ListInfoTypesResponse) ProtoMessage
func (*ListInfoTypesResponse) ProtoMessage()func (*ListInfoTypesResponse) ProtoReflect
func (x *ListInfoTypesResponse) ProtoReflect() protoreflect.Messagefunc (*ListInfoTypesResponse) Reset
func (x *ListInfoTypesResponse) Reset()func (*ListInfoTypesResponse) String
func (x *ListInfoTypesResponse) String() stringListInspectTemplatesRequest
type ListInspectTemplatesRequest struct {
// Required. Parent resource name.
//
// The format of this value varies depending on the scope of the request
// (project or organization) and whether you have [specified a processing
// location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
//
// - Projects scope, location specified:
// `projects/{project_id}/locations/{location_id}`
// - Projects scope, no location specified (defaults to global):
// `projects/{project_id}`
// - Organizations scope, location specified:
// `organizations/{org_id}/locations/{location_id}`
// - Organizations scope, no location specified (defaults to global):
// `organizations/{org_id}`
//
// The following example `parent` string specifies a parent project with the
// identifier `example-project`, and specifies the `europe-west3` location
// for processing data:
//
// parent=projects/example-project/locations/europe-west3
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Page token to continue retrieval. Comes from the previous call
// to `ListInspectTemplates`.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Size of the page. This value can be limited by the server. If zero server
// returns a page of max size 100.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Comma-separated list of fields to order by,
// followed by `asc` or `desc` postfix. This list is case insensitive. The
// default sorting order is ascending. Redundant space characters are
// insignificant.
//
// Example: `name asc,update_time, create_time desc`
//
// Supported fields are:
//
// - `create_time`: corresponds to the time the template was created.
// - `update_time`: corresponds to the time the template was last updated.
// - `name`: corresponds to the template's name.
// - `display_name`: corresponds to the template's display name.
OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// Deprecated. This field has no effect.
LocationId string `protobuf:"bytes,5,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
// contains filtered or unexported fields
}Request message for ListInspectTemplates.
func (*ListInspectTemplatesRequest) Descriptor
func (*ListInspectTemplatesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListInspectTemplatesRequest.ProtoReflect.Descriptor instead.
func (*ListInspectTemplatesRequest) GetLocationId
func (x *ListInspectTemplatesRequest) GetLocationId() stringfunc (*ListInspectTemplatesRequest) GetOrderBy
func (x *ListInspectTemplatesRequest) GetOrderBy() stringfunc (*ListInspectTemplatesRequest) GetPageSize
func (x *ListInspectTemplatesRequest) GetPageSize() int32func (*ListInspectTemplatesRequest) GetPageToken
func (x *ListInspectTemplatesRequest) GetPageToken() stringfunc (*ListInspectTemplatesRequest) GetParent
func (x *ListInspectTemplatesRequest) GetParent() stringfunc (*ListInspectTemplatesRequest) ProtoMessage
func (*ListInspectTemplatesRequest) ProtoMessage()func (*ListInspectTemplatesRequest) ProtoReflect
func (x *ListInspectTemplatesRequest) ProtoReflect() protoreflect.Messagefunc (*ListInspectTemplatesRequest) Reset
func (x *ListInspectTemplatesRequest) Reset()func (*ListInspectTemplatesRequest) String
func (x *ListInspectTemplatesRequest) String() stringListInspectTemplatesResponse
type ListInspectTemplatesResponse struct {
// List of inspectTemplates, up to page_size in ListInspectTemplatesRequest.
InspectTemplates []*InspectTemplate `protobuf:"bytes,1,rep,name=inspect_templates,json=inspectTemplates,proto3" json:"inspect_templates,omitempty"`
// If the next page is available then the next page token to be used in the
// following ListInspectTemplates request.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response message for ListInspectTemplates.
func (*ListInspectTemplatesResponse) Descriptor
func (*ListInspectTemplatesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListInspectTemplatesResponse.ProtoReflect.Descriptor instead.
func (*ListInspectTemplatesResponse) GetInspectTemplates
func (x *ListInspectTemplatesResponse) GetInspectTemplates() []*InspectTemplatefunc (*ListInspectTemplatesResponse) GetNextPageToken
func (x *ListInspectTemplatesResponse) GetNextPageToken() stringfunc (*ListInspectTemplatesResponse) ProtoMessage
func (*ListInspectTemplatesResponse) ProtoMessage()func (*ListInspectTemplatesResponse) ProtoReflect
func (x *ListInspectTemplatesResponse) ProtoReflect() protoreflect.Messagefunc (*ListInspectTemplatesResponse) Reset
func (x *ListInspectTemplatesResponse) Reset()func (*ListInspectTemplatesResponse) String
func (x *ListInspectTemplatesResponse) String() stringListJobTriggersRequest
type ListJobTriggersRequest struct {
// Required. Parent resource name.
//
// The format of this value varies depending on whether you have [specified a
// processing
// location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
//
// - Projects scope, location specified:
// `projects/{project_id}/locations/{location_id}`
// - Projects scope, no location specified (defaults to global):
// `projects/{project_id}`
//
// The following example `parent` string specifies a parent project with the
// identifier `example-project`, and specifies the `europe-west3` location
// for processing data:
//
// parent=projects/example-project/locations/europe-west3
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Page token to continue retrieval. Comes from the previous call
// to ListJobTriggers. `order_by` field must not
// change for subsequent calls.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Size of the page. This value can be limited by a server.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Comma-separated list of triggeredJob fields to order by,
// followed by `asc` or `desc` postfix. This list is case insensitive. The
// default sorting order is ascending. Redundant space characters are
// insignificant.
//
// Example: `name asc,update_time, create_time desc`
//
// Supported fields are:
//
// - `create_time`: corresponds to the time the JobTrigger was created.
// - `update_time`: corresponds to the time the JobTrigger was last updated.
// - `last_run_time`: corresponds to the last time the JobTrigger ran.
// - `name`: corresponds to the JobTrigger's name.
// - `display_name`: corresponds to the JobTrigger's display name.
// - `status`: corresponds to JobTrigger's status.
OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// Allows filtering.
//
// Supported syntax:
//
// * Filter expressions are made up of one or more restrictions.
// * Restrictions can be combined by `AND` or `OR` logical operators. A
// sequence of restrictions implicitly uses `AND`.
// * A restriction has the form of `{field} {operator} {value}`.
// * Supported fields/values for inspect triggers:
// - `status` - HEALTHY|PAUSED|CANCELLED
// - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
// - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by
// quotation marks. Nanoseconds are ignored.
// - 'error_count' - Number of errors that have occurred while running.
//
// * The operator must be `=` or `!=` for status and inspected_storage.
//
// The syntax is based on https://google.aip.dev/160.
//
// Examples:
//
// * inspected_storage = cloud_storage AND status = HEALTHY
// * inspected_storage = cloud_storage OR inspected_storage = bigquery
// * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY)
// * last_run_time > \"2017-12-12T00:00:00+00:00\"
//
// The length of this field should be no more than 500 characters.
Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
// The type of jobs. Will use `DlpJobType.INSPECT` if not set.
Type DlpJobType `protobuf:"varint,6,opt,name=type,proto3,enum=google.privacy.dlp.v2.DlpJobType" json:"type,omitempty"`
// Deprecated. This field has no effect.
LocationId string `protobuf:"bytes,7,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
// contains filtered or unexported fields
}Request message for ListJobTriggers.
func (*ListJobTriggersRequest) Descriptor
func (*ListJobTriggersRequest) Descriptor() ([]byte, []int)Deprecated: Use ListJobTriggersRequest.ProtoReflect.Descriptor instead.
func (*ListJobTriggersRequest) GetFilter
func (x *ListJobTriggersRequest) GetFilter() stringfunc (*ListJobTriggersRequest) GetLocationId
func (x *ListJobTriggersRequest) GetLocationId() stringfunc (*ListJobTriggersRequest) GetOrderBy
func (x *ListJobTriggersRequest) GetOrderBy() stringfunc (*ListJobTriggersRequest) GetPageSize
func (x *ListJobTriggersRequest) GetPageSize() int32func (*ListJobTriggersRequest) GetPageToken
func (x *ListJobTriggersRequest) GetPageToken() stringfunc (*ListJobTriggersRequest) GetParent
func (x *ListJobTriggersRequest) GetParent() stringfunc (*ListJobTriggersRequest) GetType
func (x *ListJobTriggersRequest) GetType() DlpJobTypefunc (*ListJobTriggersRequest) ProtoMessage
func (*ListJobTriggersRequest) ProtoMessage()func (*ListJobTriggersRequest) ProtoReflect
func (x *ListJobTriggersRequest) ProtoReflect() protoreflect.Messagefunc (*ListJobTriggersRequest) Reset
func (x *ListJobTriggersRequest) Reset()func (*ListJobTriggersRequest) String
func (x *ListJobTriggersRequest) String() stringListJobTriggersResponse
type ListJobTriggersResponse struct {
// List of triggeredJobs, up to page_size in ListJobTriggersRequest.
JobTriggers []*JobTrigger `protobuf:"bytes,1,rep,name=job_triggers,json=jobTriggers,proto3" json:"job_triggers,omitempty"`
// If the next page is available then this value is the next page token to be
// used in the following ListJobTriggers request.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response message for ListJobTriggers.
func (*ListJobTriggersResponse) Descriptor
func (*ListJobTriggersResponse) Descriptor() ([]byte, []int)Deprecated: Use ListJobTriggersResponse.ProtoReflect.Descriptor instead.
func (*ListJobTriggersResponse) GetJobTriggers
func (x *ListJobTriggersResponse) GetJobTriggers() []*JobTriggerfunc (*ListJobTriggersResponse) GetNextPageToken
func (x *ListJobTriggersResponse) GetNextPageToken() stringfunc (*ListJobTriggersResponse) ProtoMessage
func (*ListJobTriggersResponse) ProtoMessage()func (*ListJobTriggersResponse) ProtoReflect
func (x *ListJobTriggersResponse) ProtoReflect() protoreflect.Messagefunc (*ListJobTriggersResponse) Reset
func (x *ListJobTriggersResponse) Reset()func (*ListJobTriggersResponse) String
func (x *ListJobTriggersResponse) String() stringListProjectDataProfilesRequest
type ListProjectDataProfilesRequest struct {
// Required. organizations/{org_id}/locations/{loc_id}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Page token to continue retrieval.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Size of the page. This value can be limited by the server. If zero, server
// returns a page of max size 100.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Comma-separated list of fields to order by, followed by `asc` or `desc`
// postfix. This list is case insensitive. The default sorting order is
// ascending. Redundant space characters are insignificant. Only one order
// field at a time is allowed.
//
// Examples:
// * `project_id`
// * `sensitivity_level desc`
//
// Supported fields:
//
// - `project_id`: Google Cloud project ID
// - `sensitivity_level`: How sensitive the data in a project is, at most
// - `data_risk_level`: How much risk is associated with this data
// - `profile_last_generated`: Date and time (in epoch seconds) the profile
// was last generated
OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// Allows filtering.
//
// Supported syntax:
//
// * Filter expressions are made up of one or more restrictions.
// * Restrictions can be combined by `AND` or `OR` logical operators. A
// sequence of restrictions implicitly uses `AND`.
// * A restriction has the form of `{field} {operator} {value}`.
// * Supported fields:
// - `project_id`: the Google Cloud project ID
// - `sensitivity_level`: HIGH|MODERATE|LOW
// - `data_risk_level`: HIGH|MODERATE|LOW
// - `status_code`: an RPC status code as defined in
// https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
// - `profile_last_generated`: Date and time the profile was last
// generated
// - The operator must be `=` or `!=`. The `profile_last_generated` filter
// also supports `<` and="" `="">`.
//
// The syntax is based on https://google.aip.dev/160.
//
// Examples:
//
// * `project_id = 12345 AND status_code = 1`
// * `project_id = 12345 AND sensitivity_level = HIGH`
// * `profile_last_generated < "2025-01-01t00:00:00.000z"`="" the="" length="" of="" this="" field="" should="" be="" no="" more="" than="" 500="" characters.="" filter="">string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}Request to list the profiles generated for a given organization or project.
func (*ListProjectDataProfilesRequest) Descriptor
func (*ListProjectDataProfilesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListProjectDataProfilesRequest.ProtoReflect.Descriptor instead.
func (*ListProjectDataProfilesRequest) GetFilter
func (x *ListProjectDataProfilesRequest) GetFilter() stringfunc (*ListProjectDataProfilesRequest) GetOrderBy
func (x *ListProjectDataProfilesRequest) GetOrderBy() string