Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

docs(v2): regenerate documentation from protos #129

Merged
merged 5 commits into from Apr 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 12 additions & 2 deletions .kokoro/common.sh
Expand Up @@ -13,18 +13,28 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# set -eo pipefail

function retry_with_backoff {
attempts_left=$1
sleep_seconds=$2
shift 2
command=$@


# store current flag state
flags=$-

# allow a failures to continue
set +e
echo "${command}"
${command}
exit_code=$?

# restore "e" flag
if [[ ${flags} =~ e ]]
then set -e
else set +e
fi

if [[ $exit_code == 0 ]]
then
return 0
Expand Down
15 changes: 15 additions & 0 deletions .kokoro/nightly/integration.cfg
Expand Up @@ -6,11 +6,26 @@ env_vars: {
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
}

env_vars: {
key: "JOB_TYPE"
value: "integration"
}

env_vars: {
key: "GCLOUD_PROJECT"
value: "gcloud-devel"
}

env_vars: {
key: "ENABLE_BUILD_COP"
value: "true"
}

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "keystore/73713_java_it_service_account"
}

before_action {
fetch_keystore {
keystore_resource {
Expand Down
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>4.3.0</version>
<version>4.4.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -32,19 +32,19 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file

```

[//]: # ({x-version-update-start:google-cloud-dlp:released})

If you are using Maven without BOM, add this to your dependencies:

```xml
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-dlp</artifactId>
<version>1.1.1</version>
<version>1.1.0</version>
</dependency>

```

[//]: # ({x-version-update-start:google-cloud-dlp:released})

If you are using Gradle, add this to your dependencies
```Groovy
compile 'com.google.cloud:google-cloud-dlp:1.1.1'
Expand Down
Expand Up @@ -1785,13 +1785,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "/{name=projects/*/locations/*/dlpJobs/*}"
+ ":finish:\001*\032F\312A\022dlp.googleapis.com\322A.http"
+ "s://www.googleapis.com/auth/cloud-platfo"
+ "rmB\354\001\n\031com.google.privacy.dlp.v2B\010DlpPro"
+ "rmB\205\002\n\031com.google.privacy.dlp.v2B\010DlpPro"
+ "toP\001Z8google.golang.org/genproto/googlea"
+ "pis/privacy/dlp/v2;dlp\252\002\023Google.Cloud.Dl"
+ "p.V2\312\002\023Google\\Cloud\\Dlp\\V2\352A\\\n\'dlp.googl"
+ "eapis.com/OrganizationLocation\0221organiza"
+ "tions/{organization}/locations/{location"
+ "}b\006proto3"
+ "p.V2\312\002\023Google\\Cloud\\Dlp\\V2\352\002\026Google::Clo"
+ "ud::Dlp::V2\352A\\\n\'dlp.googleapis.com/Organ"
+ "izationLocation\0221organizations/{organiza"
+ "tion}/locations/{location}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down
Expand Up @@ -294,11 +294,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "LIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006"
+ "LIKELY\020\004\022\017\n\013VERY_LIKELY\020\005*Z\n\010FileType\022\031\n"
+ "\025FILE_TYPE_UNSPECIFIED\020\000\022\017\n\013BINARY_FILE\020"
+ "\001\022\r\n\tTEXT_FILE\020\002\022\t\n\005IMAGE\020\003\022\010\n\004AVRO\020\007B\217\001"
+ "\001\022\r\n\tTEXT_FILE\020\002\022\t\n\005IMAGE\020\003\022\010\n\004AVRO\020\007B\250\001"
+ "\n\031com.google.privacy.dlp.v2B\nDlpStorageP"
+ "\001Z8google.golang.org/genproto/googleapis"
+ "/privacy/dlp/v2;dlp\252\002\023Google.Cloud.Dlp.V"
+ "2\312\002\023Google\\Cloud\\Dlp\\V2b\006proto3"
+ "2\312\002\023Google\\Cloud\\Dlp\\V2\352\002\026Google::Cloud:"
+ ":Dlp::V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down
Expand Up @@ -708,12 +708,13 @@ public int getLabelsCount() {
* <pre>
* The labels associated with this `InspectFinding`.
* Label keys must be between 1 and 63 characters long and must conform
* to the following regular expression: &#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?.
* 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 (&#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?)?.
* to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 10 labels can be associated with a given finding.
* Example: &lt;code&gt;"environment" : "production"&lt;/code&gt;
* Example: &lt;code&gt;"pipeline" : "etl"&lt;/code&gt;
* Examples:
* * `"environment" : "production"`
* * `"pipeline" : "etl"`
* </pre>
*
* <code>map&lt;string, string&gt; labels = 10;</code>
Expand All @@ -735,12 +736,13 @@ public java.util.Map<java.lang.String, java.lang.String> getLabels() {
* <pre>
* The labels associated with this `InspectFinding`.
* Label keys must be between 1 and 63 characters long and must conform
* to the following regular expression: &#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?.
* 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 (&#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?)?.
* to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 10 labels can be associated with a given finding.
* Example: &lt;code&gt;"environment" : "production"&lt;/code&gt;
* Example: &lt;code&gt;"pipeline" : "etl"&lt;/code&gt;
* Examples:
* * `"environment" : "production"`
* * `"pipeline" : "etl"`
* </pre>
*
* <code>map&lt;string, string&gt; labels = 10;</code>
Expand All @@ -754,12 +756,13 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
* <pre>
* The labels associated with this `InspectFinding`.
* Label keys must be between 1 and 63 characters long and must conform
* to the following regular expression: &#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?.
* 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 (&#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?)?.
* to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 10 labels can be associated with a given finding.
* Example: &lt;code&gt;"environment" : "production"&lt;/code&gt;
* Example: &lt;code&gt;"pipeline" : "etl"&lt;/code&gt;
* Examples:
* * `"environment" : "production"`
* * `"pipeline" : "etl"`
* </pre>
*
* <code>map&lt;string, string&gt; labels = 10;</code>
Expand All @@ -777,12 +780,13 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
* <pre>
* The labels associated with this `InspectFinding`.
* Label keys must be between 1 and 63 characters long and must conform
* to the following regular expression: &#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?.
* 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 (&#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?)?.
* to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 10 labels can be associated with a given finding.
* Example: &lt;code&gt;"environment" : "production"&lt;/code&gt;
* Example: &lt;code&gt;"pipeline" : "etl"&lt;/code&gt;
* Examples:
* * `"environment" : "production"`
* * `"pipeline" : "etl"`
* </pre>
*
* <code>map&lt;string, string&gt; labels = 10;</code>
Expand Down Expand Up @@ -2832,12 +2836,13 @@ public int getLabelsCount() {
* <pre>
* The labels associated with this `InspectFinding`.
* Label keys must be between 1 and 63 characters long and must conform
* to the following regular expression: &#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?.
* 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 (&#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?)?.
* to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 10 labels can be associated with a given finding.
* Example: &lt;code&gt;"environment" : "production"&lt;/code&gt;
* Example: &lt;code&gt;"pipeline" : "etl"&lt;/code&gt;
* Examples:
* * `"environment" : "production"`
* * `"pipeline" : "etl"`
* </pre>
*
* <code>map&lt;string, string&gt; labels = 10;</code>
Expand All @@ -2859,12 +2864,13 @@ public java.util.Map<java.lang.String, java.lang.String> getLabels() {
* <pre>
* The labels associated with this `InspectFinding`.
* Label keys must be between 1 and 63 characters long and must conform
* to the following regular expression: &#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?.
* 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 (&#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?)?.
* to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 10 labels can be associated with a given finding.
* Example: &lt;code&gt;"environment" : "production"&lt;/code&gt;
* Example: &lt;code&gt;"pipeline" : "etl"&lt;/code&gt;
* Examples:
* * `"environment" : "production"`
* * `"pipeline" : "etl"`
* </pre>
*
* <code>map&lt;string, string&gt; labels = 10;</code>
Expand All @@ -2878,12 +2884,13 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
* <pre>
* The labels associated with this `InspectFinding`.
* Label keys must be between 1 and 63 characters long and must conform
* to the following regular expression: &#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?.
* 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 (&#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?)?.
* to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 10 labels can be associated with a given finding.
* Example: &lt;code&gt;"environment" : "production"&lt;/code&gt;
* Example: &lt;code&gt;"pipeline" : "etl"&lt;/code&gt;
* Examples:
* * `"environment" : "production"`
* * `"pipeline" : "etl"`
* </pre>
*
* <code>map&lt;string, string&gt; labels = 10;</code>
Expand All @@ -2902,12 +2909,13 @@ public java.lang.String getLabelsOrDefault(
* <pre>
* The labels associated with this `InspectFinding`.
* Label keys must be between 1 and 63 characters long and must conform
* to the following regular expression: &#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?.
* 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 (&#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?)?.
* to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 10 labels can be associated with a given finding.
* Example: &lt;code&gt;"environment" : "production"&lt;/code&gt;
* Example: &lt;code&gt;"pipeline" : "etl"&lt;/code&gt;
* Examples:
* * `"environment" : "production"`
* * `"pipeline" : "etl"`
* </pre>
*
* <code>map&lt;string, string&gt; labels = 10;</code>
Expand All @@ -2933,12 +2941,13 @@ public Builder clearLabels() {
* <pre>
* The labels associated with this `InspectFinding`.
* Label keys must be between 1 and 63 characters long and must conform
* to the following regular expression: &#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?.
* 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 (&#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?)?.
* to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 10 labels can be associated with a given finding.
* Example: &lt;code&gt;"environment" : "production"&lt;/code&gt;
* Example: &lt;code&gt;"pipeline" : "etl"&lt;/code&gt;
* Examples:
* * `"environment" : "production"`
* * `"pipeline" : "etl"`
* </pre>
*
* <code>map&lt;string, string&gt; labels = 10;</code>
Expand All @@ -2961,12 +2970,13 @@ public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() {
* <pre>
* The labels associated with this `InspectFinding`.
* Label keys must be between 1 and 63 characters long and must conform
* to the following regular expression: &#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?.
* 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 (&#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?)?.
* to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 10 labels can be associated with a given finding.
* Example: &lt;code&gt;"environment" : "production"&lt;/code&gt;
* Example: &lt;code&gt;"pipeline" : "etl"&lt;/code&gt;
* Examples:
* * `"environment" : "production"`
* * `"pipeline" : "etl"`
* </pre>
*
* <code>map&lt;string, string&gt; labels = 10;</code>
Expand All @@ -2987,12 +2997,13 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
* <pre>
* The labels associated with this `InspectFinding`.
* Label keys must be between 1 and 63 characters long and must conform
* to the following regular expression: &#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?.
* 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 (&#92;[a-z&#92;](&#92;[-a-z0-9&#92;]*&#92;[a-z0-9&#92;])?)?.
* to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
* No more than 10 labels can be associated with a given finding.
* Example: &lt;code&gt;"environment" : "production"&lt;/code&gt;
* Example: &lt;code&gt;"pipeline" : "etl"&lt;/code&gt;
* Examples:
* * `"environment" : "production"`
* * `"pipeline" : "etl"`
* </pre>
*
* <code>map&lt;string, string&gt; labels = 10;</code>
Expand Down