Skip to content

Commit 570fb89

Browse files
authored
---
yaml --- r: 8187 b: refs/heads/pubsub-streaming-pull c: 80f916c h: refs/heads/master i: 8185: f430ffe 8183: 93518ae
1 parent 2089b3a commit 570fb89

21 files changed

Lines changed: 2157 additions & 31 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
6060
refs/heads/tswast-patch-1: 7d159fddcbc35d80aa6e78378d12a0992c8708fa
61-
refs/heads/pubsub-streaming-pull: 046777d5a3d1fc26a199e60fc6ff5bf414d0d874
61+
refs/heads/pubsub-streaming-pull: 80f916c2e2f5c8755d1ea689f97c724c1e910021

branches/pubsub-streaming-pull/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ This client supports the following Google Cloud Platform services at a [Beta](#v
2929
This client supports the following Google Cloud Platform services at an [Alpha](#versioning) quality level:
3030

3131
- [Cloud Compute](#google-cloud-compute-alpha) (Alpha)
32+
- [Cloud Data Loss Prevention](#google-cloud-data-loss-prevention-alpha) (Alpha)
3233
- [Cloud DNS](#google-cloud-dns-alpha) (Alpha)
3334
- [Stackdriver Error Reporting](#stackdriver-error-reporting-alpha) (Alpha)
3435
- [Stackdriver Monitoring](#stackdriver-monitoring-alpha) (Alpha)
@@ -589,6 +590,25 @@ if (operation.getErrors() == null) {
589590
}
590591
```
591592
593+
Google Cloud Data Loss Prevention (Alpha)
594+
----------------
595+
596+
- [API Documentation][dlp-api]
597+
- [Official Documentation][cloud-dlp-docs]
598+
599+
#### Preview
600+
601+
Here is a code snippet showing a simple usage example of DlpServiceClient. The example assumes that either default application
602+
credentials or a valid API key are available. (See [Authentication section](#authentication) for more information)
603+
604+
```java
605+
try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
606+
InspectConfig inspectConfig = InspectConfig.newBuilder().build();
607+
List<ContentItem> items = new ArrayList<>();
608+
InspectContentResponse response = dlpServiceClient.inspectContent(inspectConfig, items);
609+
}
610+
```
611+
592612
Google Cloud DNS (Alpha)
593613
----------------------
594614
- [API Documentation][dns-api]
@@ -988,3 +1008,6 @@ Apache 2.0 - See [LICENSE] for more information.
9881008
[cloud-spanner]: https://cloud.google.com/spanner/
9891009
[cloud-spanner-docs]: https://cloud.google.com/spanner/docs/
9901010
[cloud-spanner-api]: https://googlecloudplatform.github.io/google-cloud-java/apidocs/index.html?com/google/cloud/spanner/package-summary.html
1011+
1012+
[cloud-dlp-docs]: https://cloud.google.com/dlp/docs/
1013+
[dlp-api]: https://googlecloudplatform.github.io/google-cloud-java/apidocs/index.html?com/google/cloud/dlp/package-summary.html
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
Google Cloud Java Client for Data Loss Prevention
2+
======================================
3+
4+
Java idiomatic client for [Google Cloud Data Loss Prevention](https://cloud.google.com/dlp/).
5+
6+
[![Build Status](https://travis-ci.org/GoogleCloudPlatform/google-cloud-java.svg?branch=master)](https://travis-ci.org/GoogleCloudPlatform/google-cloud-java)
7+
[![Coverage Status](https://coveralls.io/repos/GoogleCloudPlatform/google-cloud-java/badge.svg?branch=master)](https://coveralls.io/r/GoogleCloudPlatform/google-cloud-java?branch=master)
8+
[![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-.svg)](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-intelligence.svg)
9+
[![Codacy Badge](https://api.codacy.com/project/badge/grade/9da006ad7c3a4fe1abd142e77c003917)](https://www.codacy.com/app/mziccard/google-cloud-java)
10+
[![Dependency Status](https://www.versioneye.com/user/projects/58fe4c8d6ac171426c414772/badge.svg?style=flat)](https://www.versioneye.com/user/projects/58fe4c8d6ac171426c414772)
11+
12+
- [Homepage](https://googlecloudplatform.github.io/google-cloud-java/)
13+
- [API Documentation][dlp-api]
14+
15+
> Note: This client is a work-in-progress, and may occasionally
16+
> make backwards-incompatible changes.
17+
18+
Quickstart
19+
----------
20+
If you are using Maven, add this to your pom.xml file
21+
```xml
22+
<dependency>
23+
<groupId>com.google.cloud</groupId>
24+
<artifactId>google-cloud-dlp</artifactId>
25+
<version>0.20.2-alpha</version>
26+
</dependency>
27+
```
28+
If you are using Gradle, add this to your dependencies
29+
```Groovy
30+
compile 'com.google.cloud:google-cloud-dlp:0.20.2-alpha'
31+
```
32+
If you are using SBT, add this to your dependencies
33+
```Scala
34+
libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "0.20.2-alpha"
35+
```
36+
37+
Authentication
38+
--------------
39+
40+
See the [Authentication](https://github.com/GoogleCloudPlatform/google-cloud-java#authentication) section
41+
in the base directory's README.
42+
43+
About Google Cloud Data Loss Prevention
44+
----------------------------
45+
46+
Google [Cloud Data Loss Prevention API][cloud-dlp-docs]
47+
provides programmatic access to a powerful detection engine for personally identifiable information and other privacy-sensitive data in unstructured data streams, like text blocks and images.
48+
49+
See the ``google-cloud`` API [Data Loss Prevention API documentation][dlp-api]
50+
to learn how to use this Cloud Data Loss Prevention API Client Library.
51+
52+
Getting Started
53+
---------------
54+
#### Prerequisites
55+
You will need a [Google Developers Console](https://console.developers.google.com/) project with the Data Loss Prevention API enabled. [Follow these instructions](https://cloud.google.com/docs/authentication#preparation) to get your project set up. You will also need to set up the local development environment by [installing the Google Cloud SDK](https://cloud.google.com/sdk/) and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`.
56+
57+
#### Installation and setup
58+
You'll need to obtain the `google-cloud-dlp` library.
59+
See the [Quickstart](#quickstart) section to add `google-cloud-dlp` as a dependency in your code.
60+
61+
Troubleshooting
62+
---------------
63+
64+
To get help, follow the instructions in the [shared Troubleshooting document](https://github.com/GoogleCloudPlatform/gcloud-common/blob/master/troubleshooting/readme.md#troubleshooting).
65+
66+
Transport
67+
---------
68+
DLP API uses gRPC for the transport layer.
69+
70+
Java Versions
71+
-------------
72+
73+
Java 7 or above is required for using this client.
74+
75+
Versioning
76+
----------
77+
78+
This library follows [Semantic Versioning](http://semver.org/).
79+
80+
It is currently in major version zero (``0.y.z``), which means that anything may change at any time and the public API should not be considered stable.
81+
82+
Contributing
83+
------------
84+
85+
Contributions to this library are always welcome and highly encouraged.
86+
87+
See `google-cloud`'s [CONTRIBUTING] documentation and the [shared documentation](https://github.com/GoogleCloudPlatform/gcloud-common/blob/master/contributing/readme.md#how-to-contribute-to-gcloud) for more information on how to get started.
88+
89+
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information.
90+
91+
License
92+
-------
93+
94+
Apache 2.0 - See [LICENSE] for more information.
95+
96+
97+
[CONTRIBUTING]:https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/CONTRIBUTING.md
98+
[code-of-conduct]:https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct
99+
[LICENSE]: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/LICENSE
100+
[cloud-platform]: https://cloud.google.com/
101+
[cloud-dlp-docs]: https://cloud.google.com/dlp/docs/
102+
[dlp-api]: http://googlecloudplatform.github.io/google-cloud-java/0.20.2/apidocs/com/google/cloud/dlp/v2beta1/package-summary.html
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
<?xml version="1.0"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<artifactId>google-cloud-dlp</artifactId>
5+
<version>0.20.2-alpha-SNAPSHOT</version>
6+
<packaging>jar</packaging>
7+
<name>Google Cloud Data Loss Prevention API</name>
8+
<url>https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-dlp</url>
9+
<description>
10+
Java idiomatic client for Cloud Data Loss Prevention API v2beta1.
11+
</description>
12+
<parent>
13+
<groupId>com.google.cloud</groupId>
14+
<artifactId>google-cloud-pom</artifactId>
15+
<version>0.20.2-alpha-SNAPSHOT</version>
16+
</parent>
17+
<properties>
18+
<site.installationModule>google-cloud-dlp-v2beta1</site.installationModule>
19+
<artifact.version>${project.version}</artifact.version>
20+
</properties>
21+
<dependencies>
22+
<dependency>
23+
<groupId>io.netty</groupId>
24+
<artifactId>netty-tcnative-boringssl-static</artifactId>
25+
<version>2.0.3.Final</version>
26+
</dependency>
27+
<dependency>
28+
<groupId>${project.groupId}</groupId>
29+
<artifactId>google-cloud-core</artifactId>
30+
</dependency>
31+
<dependency>
32+
<groupId>${project.groupId}</groupId>
33+
<artifactId>google-cloud-core-grpc</artifactId>
34+
</dependency>
35+
<dependency>
36+
<groupId>com.google.api.grpc</groupId>
37+
<artifactId>proto-google-cloud-dlp-v2beta1</artifactId>
38+
<version>0.1.13</version>
39+
</dependency>
40+
<dependency>
41+
<groupId>io.grpc</groupId>
42+
<artifactId>grpc-netty</artifactId>
43+
</dependency>
44+
<dependency>
45+
<groupId>io.grpc</groupId>
46+
<artifactId>grpc-stub</artifactId>
47+
</dependency>
48+
<dependency>
49+
<groupId>io.grpc</groupId>
50+
<artifactId>grpc-auth</artifactId>
51+
</dependency>
52+
<dependency>
53+
<groupId>${project.groupId}</groupId>
54+
<artifactId>google-cloud-core</artifactId>
55+
<type>test-jar</type>
56+
<scope>test</scope>
57+
</dependency>
58+
<dependency>
59+
<groupId>junit</groupId>
60+
<artifactId>junit</artifactId>
61+
<scope>test</scope>
62+
</dependency>
63+
<dependency>
64+
<groupId>org.easymock</groupId>
65+
<artifactId>easymock</artifactId>
66+
<version>3.4</version>
67+
<scope>test</scope>
68+
</dependency>
69+
<dependency>
70+
<groupId>com.google.api.grpc</groupId>
71+
<artifactId>grpc-google-cloud-dlp-v2beta1</artifactId>
72+
<version>0.1.13</version>
73+
<scope>test</scope>
74+
</dependency>
75+
</dependencies>
76+
<profiles>
77+
<profile>
78+
<id>doclint-java8-disable</id>
79+
<activation>
80+
<jdk>[1.8,)</jdk>
81+
</activation>
82+
<properties>
83+
<!-- add this to disable checking -->
84+
<javadoc.opts>-Xdoclint:none</javadoc.opts>
85+
</properties>
86+
</profile>
87+
</profiles>
88+
<build>
89+
<resources>
90+
<resource>
91+
<directory>./..</directory>
92+
<filtering>true</filtering>
93+
<includes>
94+
<include>project.properties</include>
95+
</includes>
96+
</resource>
97+
</resources>
98+
<plugins>
99+
<plugin>
100+
<artifactId>maven-antrun-plugin</artifactId>
101+
<version>1.4</version>
102+
<executions>
103+
<execution>
104+
<phase>process-resources</phase>
105+
<configuration>
106+
<tasks>
107+
<copy file="${project.build.outputDirectory}/project.properties"
108+
toFile="${project.build.outputDirectory}/com/google/cloud/trace/project.properties"
109+
overwrite="true" />
110+
</tasks>
111+
</configuration>
112+
<goals>
113+
<goal>run</goal>
114+
</goals>
115+
</execution>
116+
</executions>
117+
</plugin>
118+
<plugin>
119+
<groupId>org.codehaus.mojo</groupId>
120+
<artifactId>build-helper-maven-plugin</artifactId>
121+
<version>1.9.1</version>
122+
<executions>
123+
<execution>
124+
<phase>generate-sources</phase>
125+
<goals><goal>add-source</goal></goals>
126+
<configuration>
127+
<sources>
128+
<source>generated/src/main/java</source>
129+
</sources>
130+
</configuration>
131+
</execution>
132+
</executions>
133+
</plugin>
134+
<plugin>
135+
<groupId>org.apache.maven.plugins</groupId>
136+
<artifactId>maven-javadoc-plugin</artifactId>
137+
<version>2.10.3</version>
138+
<executions>
139+
<execution>
140+
<id>attach-javadocs</id>
141+
<goals>
142+
<goal>jar</goal>
143+
</goals>
144+
<configuration>
145+
<additionalparam>${javadoc.opts}</additionalparam>
146+
</configuration>
147+
</execution>
148+
</executions>
149+
</plugin>
150+
<plugin>
151+
<artifactId>maven-compiler-plugin</artifactId>
152+
<!-- Downgrading to 3.1 because of https://issues.apache.org/jira/browse/MCOMPILER-236 -->
153+
<!-- Upgrade to 3.5.1 which fixes the problem when available -->
154+
<!-- <version>3.5.1</version> -->
155+
<version>3.1</version>
156+
<configuration>
157+
<source>1.7</source>
158+
<target>1.7</target>
159+
<encoding>UTF-8</encoding>
160+
<compilerArgument>-Xlint:unchecked</compilerArgument>
161+
</configuration>
162+
</plugin>
163+
</plugins>
164+
</build>
165+
</project>

0 commit comments

Comments
 (0)