Skip to content

Commit 2585041

Browse files
Google APIscopybara-github
authored andcommitted
feat: add LocationSupport,Domain,DocumentFallbackLocation
docs: minor doc revision PiperOrigin-RevId: 804670680
1 parent 712043c commit 2585041

File tree

1 file changed

+127
-19
lines changed

1 file changed

+127
-19
lines changed

google/privacy/dlp/v2/dlp.proto

Lines changed: 127 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ message InspectDataSourceDetails {
19171917
InspectJobConfig job_config = 3;
19181918
}
19191919

1920-
// All result fields mentioned below are updated while the job is processing.
1920+
// All Result fields are updated while the job is processing.
19211921
message Result {
19221922
// Total size in bytes that were processed.
19231923
int64 processed_bytes = 1;
@@ -2024,6 +2024,29 @@ message DeidentifyDataSourceDetails {
20242024
DeidentifyDataSourceStats deidentify_stats = 2;
20252025
}
20262026

2027+
// Locations at which a feature can be used.
2028+
message LocationSupport {
2029+
// The location scope for a feature.
2030+
enum RegionalizationScope {
2031+
// Invalid.
2032+
REGIONALIZATION_SCOPE_UNSPECIFIED = 0;
2033+
2034+
// Feature may be used with one or more regions. See locations for details.
2035+
REGIONAL = 1;
2036+
2037+
// Feature may be used anywhere. Default value.
2038+
ANY_LOCATION = 2;
2039+
}
2040+
2041+
// The current scope for location on this feature. This may expand over time.
2042+
RegionalizationScope regionalization_scope = 1;
2043+
2044+
// Specific locations where the feature may be used.
2045+
// Examples: us-central1, us, asia, global
2046+
// If scope is ANY_LOCATION, no regions will be listed.
2047+
repeated string locations = 2;
2048+
}
2049+
20272050
// InfoType description.
20282051
message InfoTypeDescription {
20292052
// Internal name of the infoType.
@@ -2039,6 +2062,9 @@ message InfoTypeDescription {
20392062
// request.
20402063
string description = 4;
20412064

2065+
// Locations at which this feature can be used. May change over time.
2066+
LocationSupport location_support = 6;
2067+
20422068
// A sample that is a true positive for this infoType.
20432069
string example = 8;
20442070

@@ -2081,6 +2107,9 @@ message InfoTypeCategory {
20812107
// The infoType is typically used in Australia.
20822108
AUSTRALIA = 3;
20832109

2110+
// The infoType is typically used in Austria.
2111+
AUSTRIA = 53;
2112+
20842113
// The infoType is typically used in Azerbaijan.
20852114
AZERBAIJAN = 48;
20862115

@@ -2358,7 +2387,7 @@ message QuasiId {
23582387

23592388
// A column can be tagged with a custom tag. In this case, the user must
23602389
// indicate an auxiliary table that contains statistical information on
2361-
// the possible values of this column (below).
2390+
// the possible values of this column.
23622391
string custom_tag = 3;
23632392

23642393
// If no semantic tag is indicated, we infer the statistical model from
@@ -2383,7 +2412,7 @@ message StatisticalTable {
23832412

23842413
// A column can be tagged with a custom tag. In this case, the user must
23852414
// indicate an auxiliary table that contains statistical information on
2386-
// the possible values of this column (below).
2415+
// the possible values of this column.
23872416
string custom_tag = 2;
23882417
}
23892418

@@ -2477,7 +2506,7 @@ message PrivacyMetric {
24772506

24782507
// A column can be tagged with a custom tag. In this case, the user must
24792508
// indicate an auxiliary table that contains statistical information on
2480-
// the possible values of this column (below).
2509+
// the possible values of this column.
24812510
string custom_tag = 3;
24822511

24832512
// If no semantic tag is indicated, we infer the statistical model from
@@ -4287,12 +4316,12 @@ message Action {
42874316
}
42884317

42894318
// List of user-specified file type groups to transform. If specified, only
4290-
// the files with these file types will be transformed. If empty, all
4291-
// supported files will be transformed. Supported types may be automatically
4292-
// added over time. If a file type is set in this field that isn't supported
4293-
// by the Deidentify action then the job will fail and will not be
4294-
// successfully created/started. Currently the only file types supported
4295-
// are: IMAGES, TEXT_FILES, CSV, TSV.
4319+
// the files with these file types are transformed. If empty, all
4320+
// supported files are transformed. Supported types may be automatically
4321+
// added over time. Any unsupported file types that are set in this field
4322+
// are excluded from de-identification. An error is recorded for each
4323+
// unsupported file in the TransformationDetails output table. Currently the
4324+
// only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.
42964325
repeated FileType file_types_to_transform = 8;
42974326
}
42984327

@@ -7363,6 +7392,7 @@ message ListTableDataProfilesRequest {
73637392
// - `resource_visibility`: PUBLIC|RESTRICTED
73647393
// - `status_code` - an RPC status code as defined in
73657394
// https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
7395+
//
73667396
// * The operator must be `=` or `!=`.
73677397
//
73687398
// Examples:
@@ -7628,7 +7658,8 @@ message TableDataProfile {
76287658
// May be empty if the profile is still being generated.
76297659
ProfileStatus profile_status = 21;
76307660

7631-
// State of a profile.
7661+
// State of a profile. This will always be set to DONE when the table data
7662+
// profile is written to another service like BigQuery or Pub/Sub.
76327663
State state = 22;
76337664

76347665
// The sensitivity score of this table.
@@ -7690,6 +7721,9 @@ message TableDataProfile {
76907721

76917722
// Resources related to this profile.
76927723
repeated RelatedResource related_resources = 41;
7724+
7725+
// Domains associated with the profile.
7726+
repeated Domain domains = 47;
76937727
}
76947728

76957729
// Success or errors for the profile generation.
@@ -8069,6 +8103,9 @@ message FileStoreDataProfile {
80698103

80708104
// Resources related to this profile.
80718105
repeated RelatedResource related_resources = 26;
8106+
8107+
// Domains associated with the profile.
8108+
repeated Domain domains = 27;
80728109
}
80738110

80748111
// A tag associated with a resource.
@@ -8234,6 +8271,7 @@ message ListFileStoreDataProfilesRequest {
82348271
// - `resource_visibility`: PUBLIC|RESTRICTED
82358272
// - `status_code` - an RPC status code as defined in
82368273
// https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
8274+
//
82378275
// * The operator must be `=` or `!=`.
82388276
//
82398277
// Examples:
@@ -8679,32 +8717,102 @@ message FileClusterType {
86798717
// image OCR is only provided in limited regions but configuring
86808718
// ProcessingLocation will redirect OCR to a location where OCR is provided.
86818719
message ProcessingLocation {
8682-
// Processing will happen in a multi-region that contains the current region
8720+
// Processing occurs in a multi-region that contains the current region
86838721
// if available.
86848722
message MultiRegionProcessing {}
86858723

8686-
// Processing will happen in the global region.
8724+
// Processing occurs in the global region.
86878725
message GlobalProcessing {}
86888726

8689-
// Configure image processing to fall back to the configured processing option
8690-
// below if unavailable in the request location.
8727+
// Configure image processing to fall back to any of the following processing
8728+
// options if image processing is unavailable in the original request
8729+
// location.
86918730
message ImageFallbackLocation {
8692-
// Processing will happen in a multi-region that contains the current region
8731+
// Processing occurs in a multi-region that contains the current region
86938732
// if available.
86948733
MultiRegionProcessing multi_region_processing = 100;
86958734

8696-
// Processing will happen in the global region.
8735+
// Processing occurs in the global region.
86978736
GlobalProcessing global_processing = 200;
86988737
}
86998738

8700-
// Image processing will fall back using this configuration.
8739+
// Configure document processing to fall back to any of the following
8740+
// processing options if document processing is unavailable in the original
8741+
// request location.
8742+
message DocumentFallbackLocation {
8743+
// Processing occurs in a multi-region that contains the current region
8744+
// if available.
8745+
MultiRegionProcessing multi_region_processing = 100;
8746+
8747+
// Processing occurs in the global region.
8748+
GlobalProcessing global_processing = 200;
8749+
}
8750+
8751+
// Image processing falls back using this configuration.
87018752
ImageFallbackLocation image_fallback_location = 1;
8753+
8754+
// Document processing falls back using this configuration.
8755+
DocumentFallbackLocation document_fallback_location = 2;
87028756
}
87038757

87048758
// Collection of findings saved to a Cloud Storage bucket. This is used as the
87058759
// proto schema for textproto files created when specifying a cloud storage
8706-
// path to save inspection findings.
8760+
// path to save Inspect findings.
87078761
message SaveToGcsFindingsOutput {
87088762
// List of findings.
87098763
repeated Finding findings = 1;
87108764
}
8765+
8766+
// A domain represents a thematic category that a data profile can fall under.
8767+
message Domain {
8768+
// This enum defines the various domain categories a data profile can fall
8769+
// under.
8770+
enum Category {
8771+
// Category unspecified.
8772+
CATEGORY_UNSPECIFIED = 0;
8773+
8774+
// Indicates that the data profile is related to artificial intelligence.
8775+
// When set, all findings stored to Security Command Center will set the
8776+
// corresponding AI domain field of `Finding` objects.
8777+
AI = 1;
8778+
8779+
// Indicates that the data profile is related to code.
8780+
CODE = 2;
8781+
}
8782+
8783+
// The signal used to determine the category.
8784+
// This list may increase over time.
8785+
enum Signal {
8786+
// Unused.
8787+
SIGNAL_UNSPECIFIED = 0;
8788+
8789+
// One or more machine learning models are present.
8790+
MODEL = 1;
8791+
8792+
// A table appears to be a text embedding.
8793+
TEXT_EMBEDDING = 2;
8794+
8795+
// The [Cloud SQL Vertex
8796+
// AI](https://cloud.google.com/sql/docs/postgres/integrate-cloud-sql-with-vertex-ai)
8797+
// plugin is installed on the database.
8798+
VERTEX_PLUGIN = 3;
8799+
8800+
// Support for [Cloud SQL vector
8801+
// embeddings](https://cloud.google.com/sql/docs/mysql/enable-vector-search)
8802+
// is enabled on the database.
8803+
VECTOR_PLUGIN = 4;
8804+
8805+
// Source code is present.
8806+
SOURCE_CODE = 5;
8807+
8808+
// If the service determines the category type. For example, Vertex AI
8809+
// assets would always have a `Category` of `AI`.
8810+
SERVICE = 6;
8811+
}
8812+
8813+
// A domain category that this profile is related to.
8814+
Category category = 1;
8815+
8816+
// The collection of signals that influenced selection of the category.
8817+
repeated Signal signals = 2;
8818+
}

0 commit comments

Comments
 (0)