GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Clean up DLP region tags. (#1051) · theDataMonster/java-docs-samples@af753bb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • dlp
    • pom.xml
    • src/main/java/com/example/dlp
      • DeIdentification.java
      • Metadata.java
      • RiskAnalysis.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎dlp/pom.xml‎

Copy file name to clipboardExpand all lines: dlp/pom.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<!-- [START pom] -->
17+
<!-- [START dlp_pom] -->
1818
<project>
1919
<modelVersion>4.0.0</modelVersion>
2020
<packaging>jar</packaging>
@@ -83,4 +83,4 @@
8383
</plugins>
8484
</build>
8585
</project>
86-
<!-- [END pom] -->
86+
<!-- [END dlp_pom] -->
Collapse file

‎dlp/src/main/java/com/example/dlp/DeIdentification.java‎

Copy file name to clipboardExpand all lines: dlp/src/main/java/com/example/dlp/DeIdentification.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private static void deIdentifyWithMask(
4646
String string,
4747
Character maskingCharacter,
4848
int numberToMask) {
49-
// [START dlp_deidentify_mask]
49+
// [START dlp_deidentify_masking]
5050
/**
5151
* Deidentify a string by masking sensitive information with a character using the DLP API.
5252
* @param string The string to deidentify.
@@ -113,7 +113,7 @@ private static void deIdentifyWithMask(
113113
} catch (Exception e) {
114114
System.out.println("Error in deidentifyWithMask: " + e.getMessage());
115115
}
116-
// [END dlp_deidentify_mask]
116+
// [END dlp_deidentify_masking]
117117
}
118118

119119
private static void deIdentifyWithFpe(
Collapse file

‎dlp/src/main/java/com/example/dlp/Metadata.java‎

Copy file name to clipboardExpand all lines: dlp/src/main/java/com/example/dlp/Metadata.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private static void listInfoTypes(String category, String languageCode) throws E
4949
}
5050

5151
private static void listRootCategories(String languageCode) throws Exception {
52-
// [START dlp_list_root_categories]
52+
// [START dlp_list_categories]
5353
// Instantiate a DLP client
5454
try (DlpServiceClient dlpClient = DlpServiceClient.create()) {
5555
// The BCP-47 language code to use, e.g. 'en-US'
@@ -61,7 +61,7 @@ private static void listRootCategories(String languageCode) throws Exception {
6161
System.out.println("Display name : " + categoryDescription.getDisplayName());
6262
}
6363
}
64-
// [END dlp_list_root_categories]
64+
// [END dlp_list_categories]
6565
}
6666

6767
/** Retrieve infoTypes. */
Collapse file

‎dlp/src/main/java/com/example/dlp/RiskAnalysis.java‎

Copy file name to clipboardExpand all lines: dlp/src/main/java/com/example/dlp/RiskAnalysis.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class RiskAnalysis {
5555
private static void calculateNumericalStats(
5656
String projectId, String datasetId, String tableId, String columnName)
5757
throws Exception {
58-
// [START dlp_numerical_stats_analysis]
58+
// [START dlp_numerical_stats]
5959

6060
/**
6161
* Calculate numerical statistics for a column in a BigQuery table using the DLP API.
@@ -128,13 +128,13 @@ private static void calculateNumericalStats(
128128
} catch (Exception e) {
129129
System.out.println("Error in numericalStatsAnalysis: " + e.getMessage());
130130
}
131-
// [END dlp_numerical_stats_analysis]
131+
// [END dlp_numerical_stats]
132132
}
133133

134134
private static void calculateCategoricalStats(
135135
String projectId, String datasetId, String tableId, String columnName)
136136
throws Exception {
137-
// [START dlp_categorical_stats_analysis]
137+
// [START dlp_categorical_stats]
138138
/**
139139
* Calculate categorical statistics for a column in a BigQuery table using the DLP API.
140140
* @param projectId The Google Cloud Platform project ID to run the API call under.
@@ -206,7 +206,7 @@ private static void calculateCategoricalStats(
206206
} catch (Exception e) {
207207
System.out.println("Error in categoricalStatsAnalysis: " + e.getMessage());
208208
}
209-
// [END dlp_categorical_stats_analysis]
209+
// [END dlp_categorical_stats]
210210
}
211211

212212
private static void calculateKAnonymity(

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.