Skip to content

Commit 2e70d3a

Browse files
Sita04yoshi-automationrenovate-botNeenu1995gcf-owl-bot[bot]
authored
migrate code from googleapis/java-webrisk (#7415)
* samples: scaffold pom.xml files (#88) This PR was generated using Autosynth. :rainbow: <details><summary>Log from Synthtool</summary> ``` 2020-03-17 12:19:19,426 synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py. 2020-03-17 12:19:19,481 synthtool > Ensuring dependencies. 2020-03-17 12:19:19,486 synthtool > Pulling artman image. latest: Pulling from googleapis/artman Digest: sha256:5ef340c8d9334719bc5c6981d95f4a5d2737b0a6a24f2b9a0d430e96fff85c5b Status: Image is up to date for googleapis/artman:latest 2020-03-17 12:19:20,479 synthtool > Cloning googleapis. 2020-03-17 12:19:20,835 synthtool > Running generator for google/cloud/webrisk/artman_webrisk_v1beta1.yaml. 2020-03-17 12:19:29,408 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java. 2020-03-17 12:19:29,411 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisResponse.java. 2020-03-17 12:19:29,411 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequest.java. 2020-03-17 12:19:29,411 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawHashesOrBuilder.java. 2020-03-17 12:19:29,412 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesResponse.java. 2020-03-17 12:19:29,412 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryRemovalsOrBuilder.java. 2020-03-17 12:19:29,412 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatType.java. 2020-03-17 12:19:29,412 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawIndicesOrBuilder.java. 2020-03-17 12:19:29,413 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequestOrBuilder.java. 2020-03-17 12:19:29,413 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryAdditions.java. 2020-03-17 12:19:29,413 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RiceDeltaEncodingOrBuilder.java. 2020-03-17 12:19:29,413 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryAdditionsOrBuilder.java. 2020-03-17 12:19:29,413 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesResponseOrBuilder.java. 2020-03-17 12:19:29,414 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisResponseOrBuilder.java. 2020-03-17 12:19:29,414 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawIndices.java. 2020-03-17 12:19:29,414 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/WebRiskProto.java. 2020-03-17 12:19:29,414 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/CompressionType.java. 2020-03-17 12:19:29,415 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawHashes.java. 2020-03-17 12:19:29,415 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequestOrBuilder.java. 2020-03-17 12:19:29,415 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequest.java. 2020-03-17 12:19:29,415 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponseOrBuilder.java. 2020-03-17 12:19:29,415 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryRemovals.java. 2020-03-17 12:19:29,416 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequest.java. 2020-03-17 12:19:29,416 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponse.java. 2020-03-17 12:19:29,416 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RiceDeltaEncoding.java. 2020-03-17 12:19:29,417 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequestOrBuilder.java. 2020-03-17 12:19:29,421 synthtool > No replacements made in [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/**/*Name.java'), PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-webrisk-v1beta1/src/**/*Names.java')] for pattern /\* \* Copyright \d{4} Google LLC \* \* Licensed under the Apache License, Version 2.0 \(the "License"\); you may not use this file except \* in compliance with the License. You may obtain a copy of the License at \* \* http://www.apache.org/licenses/LICENSE-2.0 \* \* Unless required by applicable law or agreed to in writing, software distributed under the License \* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express \* or implied. See the License for the specific language governing permissions and limitations under \* the License. \*/ , maybe replacement is no longer needed? 2020-03-17 12:19:29,422 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/WebRiskServiceV1Beta1Grpc.java. 2020-03-17 12:19:29,433 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-webrisk-v1beta1/samples/src')] were copied. Does the source contain files? 2020-03-17 12:19:29,433 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-webrisk-v1beta1/samples/resources')] were copied. Does the source contain files? 2020-03-17 12:19:29,434 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-webrisk-v1beta1/samples/src/**/*.manifest.yaml')] were copied. Does the source contain files? 2020-03-17 12:19:29,435 synthtool > Running java formatter on 20 files 2020-03-17 12:19:32,268 synthtool > Running java formatter on 1 files 2020-03-17 12:19:34,144 synthtool > Running java formatter on 25 files 2020-03-17 12:19:38,729 synthtool > Running java formatter on 0 files 2020-03-17 12:19:38,994 synthtool > Ensuring dependencies. 2020-03-17 12:19:39,004 synthtool > Cloning googleapis. 2020-03-17 12:19:39,332 synthtool > Generating code for: google/cloud/webrisk/v1. 2020-03-17 12:19:55,358 synthtool > Generated code into /tmpfs/tmp/tmpyz9r_b4x. 2020-03-17 12:19:55,360 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/SearchHashesResponse.java. 2020-03-17 12:19:55,361 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/SearchHashesRequest.java. 2020-03-17 12:19:55,361 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/ComputeThreatListDiffRequest.java. 2020-03-17 12:19:55,361 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/ThreatEntryAdditionsOrBuilder.java. 2020-03-17 12:19:55,362 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/SearchUrisRequest.java. 2020-03-17 12:19:55,362 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/SearchUrisResponse.java. 2020-03-17 12:19:55,363 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/RawHashesOrBuilder.java. 2020-03-17 12:19:55,363 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/ComputeThreatListDiffRequestOrBuilder.java. 2020-03-17 12:19:55,363 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/SearchUrisRequestOrBuilder.java. 2020-03-17 12:19:55,364 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/RawIndices.java. 2020-03-17 12:19:55,364 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/RiceDeltaEncoding.java. 2020-03-17 12:19:55,364 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/RiceDeltaEncodingOrBuilder.java. 2020-03-17 12:19:55,365 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/ComputeThreatListDiffResponseOrBuilder.java. 2020-03-17 12:19:55,365 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/ThreatEntryRemovalsOrBuilder.java. 2020-03-17 12:19:55,365 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/SubmissionOrBuilder.java. 2020-03-17 12:19:55,365 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/CreateSubmissionRequest.java. 2020-03-17 12:19:55,366 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/ThreatEntryRemovals.java. 2020-03-17 12:19:55,366 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/CompressionType.java. 2020-03-17 12:19:55,367 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/ComputeThreatListDiffResponse.java. 2020-03-17 12:19:55,367 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/ThreatEntryAdditions.java. 2020-03-17 12:19:55,367 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/Submission.java. 2020-03-17 12:19:55,368 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/SearchHashesRequestOrBuilder.java. 2020-03-17 12:19:55,368 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/SearchUrisResponseOrBuilder.java. 2020-03-17 12:19:55,368 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/WebRiskProto.java. 2020-03-17 12:19:55,368 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/SearchHashesResponseOrBuilder.java. 2020-03-17 12:19:55,369 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/ThreatType.java. 2020-03-17 12:19:55,369 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/RawIndicesOrBuilder.java. 2020-03-17 12:19:55,369 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/RawHashes.java. 2020-03-17 12:19:55,370 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/CreateSubmissionRequestOrBuilder.java. 2020-03-17 12:19:55,371 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/proto-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/ProjectName.java. 2020-03-17 12:19:55,373 synthtool > Replaced '^package (.*);' in /tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/grpc-google-cloud-webrisk-v1-java/src/main/java/com/google/webrisk/v1/WebRiskServiceGrpc.java. 2020-03-17 12:19:55,389 synthtool > No files in sources [PosixPath('/tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/gapic-google-cloud-webrisk-v1-java/samples/src')] were copied. Does the source contain files? 2020-03-17 12:19:55,389 synthtool > No files in sources [PosixPath('/tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/gapic-google-cloud-webrisk-v1-java/samples/resources')] were copied. Does the source contain files? 2020-03-17 12:19:55,389 synthtool > No files in sources [PosixPath('/tmpfs/tmp/tmpyz9r_b4x/google-cloud-webrisk-v1-java/gapic-google-cloud-webrisk-v1-java/samples/src/**/*.manifest.yaml')] were copied. Does the source contain files? 2020-03-17 12:19:55,390 synthtool > Running java formatter on 20 files 2020-03-17 12:19:58,170 synthtool > Running java formatter on 1 files 2020-03-17 12:20:00,138 synthtool > Running java formatter on 30 files 2020-03-17 12:20:04,861 synthtool > Running java formatter on 0 files .github/ISSUE_TEMPLATE/bug_report.md .github/ISSUE_TEMPLATE/feature_request.md .github/ISSUE_TEMPLATE/support_request.md .github/PULL_REQUEST_TEMPLATE.md .github/release-please.yml .github/trusted-contribution.yml .kokoro/build.bat .kokoro/build.sh .kokoro/coerce_logs.sh .kokoro/common.cfg .kokoro/continuous/common.cfg .kokoro/continuous/dependencies.cfg .kokoro/continuous/integration.cfg .kokoro/continuous/java11.cfg .kokoro/continuous/java7.cfg .kokoro/continuous/java8-osx.cfg .kokoro/continuous/java8-win.cfg .kokoro/continuous/java8.cfg .kokoro/continuous/lint.cfg .kokoro/continuous/propose_release.cfg .kokoro/continuous/samples.cfg .kokoro/dependencies.sh .kokoro/linkage-monitor.sh .kokoro/nightly/common.cfg .kokoro/nightly/dependencies.cfg .kokoro/nightly/integration.cfg .kokoro/nightly/java11.cfg .kokoro/nightly/java7.cfg .kokoro/nightly/java8-osx.cfg .kokoro/nightly/java8-win.cfg .kokoro/nightly/java8.cfg .kokoro/nightly/lint.cfg .kokoro/nightly/samples.cfg .kokoro/presubmit/clirr.cfg .kokoro/presubmit/common.cfg .kokoro/presubmit/dependencies.cfg .kokoro/presubmit/integration.cfg .kokoro/presubmit/java11.cfg .kokoro/presubmit/java7.cfg .kokoro/presubmit/java8-osx.cfg .kokoro/presubmit/java8-win.cfg .kokoro/presubmit/java8.cfg .kokoro/presubmit/linkage-monitor.cfg .kokoro/presubmit/lint.cfg .kokoro/presubmit/samples.cfg .kokoro/release/bump_snapshot.cfg .kokoro/release/common.cfg .kokoro/release/common.sh .kokoro/release/drop.cfg .kokoro/release/drop.sh .kokoro/release/promote.cfg .kokoro/release/promote.sh .kokoro/release/publish_javadoc.cfg .kokoro/release/publish_javadoc.sh .kokoro/release/snapshot.cfg .kokoro/release/snapshot.sh .kokoro/release/stage.cfg .kokoro/release/stage.sh .kokoro/trampoline.sh CODE_OF_CONDUCT.md CONTRIBUTING.md LICENSE README.md codecov.yaml java.header license-checks.xml renovate.json samples/install-without-bom/pom.xml samples/pom.xml samples/snapshot/pom.xml samples/snippets/pom.xml 2020-03-17 12:20:05,407 synthtool > merge: CODE_OF_CONDUCT.md 2020-03-17 12:20:05,408 synthtool > merge: java.header 2020-03-17 12:20:05,408 synthtool > merge: license-checks.xml 2020-03-17 12:20:05,409 synthtool > merge: LICENSE 2020-03-17 12:20:05,409 synthtool > merge: README.md 2020-03-17 12:20:05,409 synthtool > merge: CONTRIBUTING.md 2020-03-17 12:20:05,410 synthtool > merge: renovate.json 2020-03-17 12:20:05,410 synthtool > merge: codecov.yaml 2020-03-17 12:20:05,412 synthtool > merge: .kokoro/build.sh 2020-03-17 12:20:05,412 synthtool > merge: .kokoro/coerce_logs.sh 2020-03-17 12:20:05,413 synthtool > merge: .kokoro/dependencies.sh 2020-03-17 12:20:05,413 synthtool > merge: .kokoro/linkage-monitor.sh 2020-03-17 12:20:05,414 synthtool > merge: .kokoro/trampoline.sh 2020-03-17 12:20:05,414 synthtool > merge: .kokoro/common.cfg 2020-03-17 12:20:05,414 synthtool > merge: .kokoro/build.bat 2020-03-17 12:20:05,415 synthtool > merge: .kokoro/release/promote.sh 2020-03-17 12:20:05,415 synthtool > merge: .kokoro/release/snapshot.sh 2020-03-17 12:20:05,416 synthtool > merge: .kokoro/release/stage.sh 2020-03-17 12:20:05,416 synthtool > merge: .kokoro/release/bump_snapshot.cfg 2020-03-17 12:20:05,416 synthtool > merge: .kokoro/release/drop.cfg 2020-03-17 12:20:05,417 synthtool > merge: .kokoro/release/snapshot.cfg 2020-03-17 12:20:05,417 synthtool > merge: .kokoro/release/promote.cfg 2020-03-17 12:20:05,418 synthtool > merge: .kokoro/release/publish_javadoc.sh 2020-03-17 12:20:05,418 synthtool > merge: .kokoro/release/common.cfg 2020-03-17 12:20:05,419 synthtool > merge: .kokoro/release/drop.sh 2020-03-17 12:20:05,419 synthtool > merge: .kokoro/release/publish_javadoc.cfg 2020-03-17 12:20:05,419 synthtool > merge: .kokoro/release/stage.cfg 2020-03-17 12:20:05,420 synthtool > merge: .kokoro/release/common.sh 2020-03-17 12:20:05,420 synthtool > merge: .kokoro/nightly/lint.cfg 2020-03-17 12:20:05,421 synthtool > merge: .kokoro/nightly/java11.cfg 2020-03-17 12:20:05,421 synthtool > merge: .kokoro/nightly/samples.cfg 2020-03-17 12:20:05,421 synthtool > merge: .kokoro/nightly/java8.cfg 2020-03-17 12:20:05,422 synthtool > merge: .kokoro/nightly/java7.cfg 2020-03-17 12:20:05,422 synthtool > merge: .kokoro/nightly/common.cfg 2020-03-17 12:20:05,423 synthtool > merge: .kokoro/nightly/dependencies.cfg 2020-03-17 12:20:05,423 synthtool > merge: .kokoro/nightly/java8-osx.cfg 2020-03-17 12:20:05,423 synthtool > merge: .kokoro/nightly/java8-win.cfg 2020-03-17 12:20:05,424 synthtool > merge: .kokoro/nightly/integration.cfg 2020-03-17 12:20:05,424 synthtool > merge: .kokoro/presubmit/lint.cfg 2020-03-17 12:20:05,425 synthtool > merge: .kokoro/presubmit/clirr.cfg 2020-03-17 12:20:05,425 synthtool > merge: .kokoro/presubmit/java11.cfg 2020-03-17 12:20:05,426 synthtool > merge: .kokoro/presubmit/samples.cfg 2020-03-17 12:20:05,426 synthtool > merge: .kokoro/presubmit/linkage-monitor.cfg 2020-03-17 12:20:05,426 synthtool > merge: .kokoro/presubmit/java8.cfg 2020-03-17 12:20:05,427 synthtool > merge: .kokoro/presubmit/java7.cfg 2020-03-17 12:20:05,427 synthtool > merge: .kokoro/presubmit/common.cfg 2020-03-17 12:20:05,428 synthtool > merge: .kokoro/presubmit/dependencies.cfg 2020-03-17 12:20:05,428 synthtool > merge: .kokoro/presubmit/java8-osx.cfg 2020-03-17 12:20:05,428 synthtool > merge: .kokoro/presubmit/java8-win.cfg 2020-03-17 12:20:05,429 synthtool > merge: .kokoro/presubmit/integration.cfg 2020-03-17 12:20:05,429 synthtool > merge: .kokoro/continuous/lint.cfg 2020-03-17 12:20:05,430 synthtool > merge: .kokoro/continuous/java11.cfg 2020-03-17 12:20:05,430 synthtool > merge: .kokoro/continuous/samples.cfg 2020-03-17 12:20:05,431 synthtool > merge: .kokoro/continuous/java8.cfg 2020-03-17 12:20:05,431 synthtool > merge: .kokoro/continuous/java7.cfg 2020-03-17 12:20:05,431 synthtool > merge: .kokoro/continuous/propose_release.cfg 2020-03-17 12:20:05,432 synthtool > merge: .kokoro/continuous/common.cfg 2020-03-17 12:20:05,432 synthtool > merge: .kokoro/continuous/dependencies.cfg 2020-03-17 12:20:05,433 synthtool > merge: .kokoro/continuous/java8-osx.cfg 2020-03-17 12:20:05,433 synthtool > merge: .kokoro/continuous/java8-win.cfg 2020-03-17 12:20:05,434 synthtool > merge: .kokoro/continuous/integration.cfg 2020-03-17 12:20:05,434 synthtool > merge: .github/trusted-contribution.yml 2020-03-17 12:20:05,434 synthtool > merge: .github/release-please.yml 2020-03-17 12:20:05,435 synthtool > merge: .github/PULL_REQUEST_TEMPLATE.md 2020-03-17 12:20:05,435 synthtool > merge: .github/ISSUE_TEMPLATE/feature_request.md 2020-03-17 12:20:05,436 synthtool > merge: .github/ISSUE_TEMPLATE/bug_report.md 2020-03-17 12:20:05,436 synthtool > merge: .github/ISSUE_TEMPLATE/support_request.md 2020-03-17 12:20:05,443 synthtool > Wrote metadata to synth.metadata. ``` </details> * chore(deps): update dependency com.google.cloud:libraries-bom to v4.3.0 (#96) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.2.0` -> `4.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * deps: update dependency com.google.cloud.samples:shared-configuration to v1.0.13 (#101) * chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.14 (#105) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.13` -> `1.0.14` | --- ### Release Notes <details> <summary>GoogleCloudPlatform/java-repo-tools</summary> ### [`v1.0.14`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.14) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.13...v1.0.14) - Update CheckStyle to 8.31 - Add SpotBugs </details> --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v4.4.0 (#106) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.3.0` -> `4.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.15 (#110) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.14` -> `1.0.15` | --- ### Release Notes <details> <summary>GoogleCloudPlatform/java-repo-tools</summary> ### [`v1.0.15`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.15) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.14...v1.0.15) - Move some stuff around (in prep for a change to release process) pom.xml's - Add an exclude filter for SpotBugs. (disable the Java 11 surprise) - Don't fail on SpotBugs issues for now - add PMD reporting - Don't fail on PMD issues for now. </details> --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v4.4.1 (#111) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `4.4.0` -> `4.4.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v5 (#122) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `4.4.1` -> `5.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.16 (#127) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.15` -> `1.0.16` | --- ### Release Notes <details> <summary>GoogleCloudPlatform/java-repo-tools</summary> ### [`v1.0.16`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.16) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.15...v1.0.16) Add a few SpotBugs exclusions: - `RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE` - existing - codegen bug - `UPM_UNCALLED_PRIVATE_METHOD` - probably SpotBug issue - `NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE` - likely SpotBug issue - `CLI_CONSTANT_LIST_INDEX` - style issue particular to our samples - `OBL_UNSATISFIED_OBLIGATION` - issue for SQL clients </details> --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.17 (#130) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.16` -> `1.0.17` | --- ### Release Notes <details> <summary>GoogleCloudPlatform/java-repo-tools</summary> ### [`v1.0.17`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.17) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.16...v1.0.17) - require -P lint Lets not burden customers with our development rules. - Move Checkstyle, ErrorProne, PMD, and SpotBugs to only run w/ -P lint - Update the Readme - spotbugs-annotations 4.0.2 </details> --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v5.2.0 (#140) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.1.0` -> `5.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v5.3.0 (#148) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.2.0` -> `5.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v5.4.0 (#157) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.3.0` -> `5.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v5.5.0 (#164) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.4.0` -> `5.5.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.18 (#175) This PR contains the following updates: | Package | Update | Change | |---|---|---| | com.google.cloud.samples:shared-configuration | patch | `1.0.17` -> `1.0.18` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v5.7.0 (#174) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.5.0` -> `5.7.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v6 (#181) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `5.7.0` -> `6.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v7 (#184) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `6.0.0` -> `7.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v7.0.1 (#196) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `7.0.0` -> `7.0.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v8 (#200) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `7.0.1` -> `8.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v8.1.0 (#209) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `8.0.0` -> `8.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v9 * chore(deps): update dependency com.google.cloud:libraries-bom to v9.1.0 * chore(deps): update dependency com.google.cloud:libraries-bom to v10 (#229) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `9.1.0` -> `10.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-webrisk). * test(deps): update dependency com.google.truth:truth to v1.1 (#257) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.truth:truth](com/google/truth/truth) | minor | `1.0.1` -> `1.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.21 (#255) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](com/google/cloud/samples/shared-configuration) | patch | `1.0.18` -> `1.0.21` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v13 (#259) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `10.1.0` -> `13.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v13.2.0 (#262) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.1.0` -> `13.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v13.3.0 (#263) * test(deps): update dependency junit:junit to v4.13.1 (#258) * chore(deps): update dependency com.google.cloud:libraries-bom to v13.4.0 (#268) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.3.0` -> `13.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v16 (#283) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `13.4.0` -> `16.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-webrisk). * samples: create Java sample for Search API and Submit API in Webrisk (#306) Fixes #153 ☕️ * chore(deps): update dependency com.google.cloud:libraries-bom to v16.2.0 (#307) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `16.1.0` -> `16.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v16.2.1 (#317) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `16.2.0` -> `16.2.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v16.3.0 (#326) * test(deps): update dependency com.google.truth:truth to v1.1.2 (#328) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.truth:truth](com/google/truth/truth) | `1.1` -> `1.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/compatibility-slim/1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/confidence-slim/1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v16.4.0 (#347) * test(deps): update dependency junit:junit to v4.13.2 (#349) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [junit:junit](http://junit.org) ([source](https://togithub.com/junit-team/junit4)) | `4.13.1` -> `4.13.2` | [![age](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/compatibility-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/confidence-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v17 (#358) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `16.4.0` -> `17.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/compatibility-slim/16.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/confidence-slim/16.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v18 (#361) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `17.0.0` -> `18.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/compatibility-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/confidence-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-webrisk). * chore(deps): update dependency com.google.cloud:libraries-bom to v18.1.0 (#370) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `18.0.0` -> `18.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/age-slim)](https://docs.renovatebot.com…
1 parent fff000d commit 2e70d3a

File tree

5 files changed

+240
-0
lines changed

5 files changed

+240
-0
lines changed

webrisk/pom.xml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
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+
<groupId>com.google.cloud</groupId>
5+
<artifactId>webrisk-snippets</artifactId>
6+
<packaging>jar</packaging>
7+
<name>Google Web Risk Snippets</name>
8+
<url>https://github.com/googleapis/java-webrisk</url>
9+
10+
<!--
11+
The parent pom defines common style checks and testing strategies for our samples.
12+
Removing or replacing it should not affect the execution of the samples in anyway.
13+
-->
14+
<parent>
15+
<groupId>com.google.cloud.samples</groupId>
16+
<artifactId>shared-configuration</artifactId>
17+
<version>1.2.0</version>
18+
</parent>
19+
20+
<properties>
21+
<maven.compiler.target>1.8</maven.compiler.target>
22+
<maven.compiler.source>1.8</maven.compiler.source>
23+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24+
</properties>
25+
26+
27+
<!-- [START webrisk_install_with_bom] -->
28+
<dependencyManagement>
29+
<dependencies>
30+
<dependency>
31+
<groupId>com.google.cloud</groupId>
32+
<artifactId>libraries-bom</artifactId>
33+
<version>26.1.4</version>
34+
<type>pom</type>
35+
<scope>import</scope>
36+
</dependency>
37+
</dependencies>
38+
</dependencyManagement>
39+
40+
<dependencies>
41+
<dependency>
42+
<groupId>com.google.cloud</groupId>
43+
<artifactId>google-cloud-webrisk</artifactId>
44+
</dependency>
45+
<!-- [END webrisk_install_with_bom] -->
46+
47+
<dependency>
48+
<groupId>junit</groupId>
49+
<artifactId>junit</artifactId>
50+
<version>4.13.2</version>
51+
<scope>test</scope>
52+
</dependency>
53+
<dependency>
54+
<groupId>com.google.truth</groupId>
55+
<artifactId>truth</artifactId>
56+
<version>1.1.3</version>
57+
<scope>test</scope>
58+
</dependency>
59+
</dependencies>
60+
</project>
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
* Copyright 2020 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package webrisk;
18+
19+
import com.google.cloud.webrisk.v1.WebRiskServiceClient;
20+
import com.google.webrisk.v1.SearchUrisRequest;
21+
import com.google.webrisk.v1.SearchUrisResponse;
22+
import com.google.webrisk.v1.ThreatType;
23+
import java.io.IOException;
24+
25+
public class SearchUriExample {
26+
27+
public static void searchUriExample() throws IOException {
28+
// The URL to be searched
29+
String uri = "http://testsafebrowsing.appspot.com/s/malware.html";
30+
SearchUrisResponse response = searchUriExample(uri);
31+
}
32+
33+
// [START webrisk_search_uri]
34+
public static SearchUrisResponse searchUriExample(String uri) throws IOException {
35+
// create-webrisk-client
36+
try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
37+
// Query the url for a specific threat type
38+
SearchUrisRequest searchUrisRequest =
39+
SearchUrisRequest.newBuilder().addThreatTypes(ThreatType.MALWARE).setUri(uri).build();
40+
SearchUrisResponse searchUrisResponse = webRiskServiceClient.searchUris(searchUrisRequest);
41+
webRiskServiceClient.shutdownNow();
42+
if (!searchUrisResponse.getThreat().getThreatTypesList().isEmpty()) {
43+
System.out.println("The URL has the following threat : ");
44+
System.out.println(searchUrisResponse);
45+
} else {
46+
System.out.println("The URL is safe!");
47+
}
48+
49+
return searchUrisResponse;
50+
}
51+
}
52+
// [END webrisk_search_uri]
53+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Copyright 2020 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package webrisk;
18+
19+
import com.google.cloud.webrisk.v1.WebRiskServiceClient;
20+
import com.google.webrisk.v1.CreateSubmissionRequest;
21+
import com.google.webrisk.v1.Submission;
22+
import java.io.IOException;
23+
24+
public class SubmitUriExample {
25+
26+
public static void submitUriExample() throws IOException {
27+
// The URL to be submitted
28+
String uri = "http://testsafebrowsing.appspot.com/s/malware.html";
29+
Submission response = submitUriExample(uri);
30+
}
31+
32+
// [START webrisk_submit_uri]
33+
public static Submission submitUriExample(String uri) throws IOException {
34+
// create-webrisk-client
35+
try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
36+
Submission submission = Submission.newBuilder().setUri(uri).build();
37+
CreateSubmissionRequest submissionRequest =
38+
CreateSubmissionRequest.newBuilder()
39+
.setParent("projects/your-project-id")
40+
.setSubmission(submission)
41+
.build();
42+
Submission submissionResponse = webRiskServiceClient.createSubmission(submissionRequest);
43+
webRiskServiceClient.shutdownNow();
44+
System.out.println("The submitted " + submissionResponse);
45+
return submissionResponse;
46+
}
47+
}
48+
// [END webrisk_submit_uri]
49+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* Copyright 2020 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package webrisk;
18+
19+
import com.google.common.truth.Truth;
20+
import com.google.webrisk.v1.SearchUrisResponse;
21+
import com.google.webrisk.v1.ThreatType;
22+
import java.io.IOException;
23+
import java.util.List;
24+
import org.junit.Test;
25+
import org.junit.runner.RunWith;
26+
import org.junit.runners.JUnit4;
27+
28+
@RunWith(JUnit4.class)
29+
public class SearchUriExampleTest {
30+
@Test
31+
public void testSearchWithThreat() throws IOException {
32+
// The URL to be searched
33+
String uri = "http://testsafebrowsing.appspot.com/s/malware.html";
34+
SearchUrisResponse actualResponse = SearchUriExample.searchUriExample(uri);
35+
List<ThreatType> type = actualResponse.getThreat().getThreatTypesList();
36+
Truth.assertThat(type).contains(ThreatType.MALWARE);
37+
}
38+
39+
@Test
40+
public void testSearchWithoutThreat() throws IOException {
41+
// The URL to be searched
42+
String uri = "http://testsafebrowsing.appspot.com/malware.html";
43+
SearchUrisResponse actualResponse = SearchUriExample.searchUriExample(uri);
44+
List<ThreatType> type = actualResponse.getThreat().getThreatTypesList();
45+
Truth.assertThat(type).isEmpty();
46+
}
47+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright 2020 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package webrisk;
18+
19+
import com.google.common.truth.Truth;
20+
import com.google.webrisk.v1.Submission;
21+
import java.io.IOException;
22+
import org.junit.Test;
23+
24+
public class SubmitUriExampleTest {
25+
@Test
26+
public void testSumbitUriExample() throws IOException {
27+
String testUri = "http://testsafebrowsing.appspot.com/s/malware.html";
28+
Submission actualSubmission = SubmitUriExample.submitUriExample(testUri);
29+
Truth.assertThat(actualSubmission.getUri()).isEqualTo(testUri);
30+
}
31+
}

0 commit comments

Comments
 (0)