From b98e137d4def3401e88c5a25ef16d49d51be5b8a Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Wed, 5 Feb 2020 09:41:25 -0800
Subject: [PATCH 01/17] chore: release 0.32.2-SNAPSHOT (#64)
* updated versions.txt [ci skip]
* updated google-cloud-webrisk-bom/pom.xml [ci skip]
* updated google-cloud-webrisk/pom.xml [ci skip]
* updated grpc-google-cloud-webrisk-v1beta1/pom.xml [ci skip]
* updated pom.xml [ci skip]
* updated proto-google-cloud-webrisk-v1beta1/pom.xml [ci skip]
---
google-cloud-webrisk-bom/pom.xml | 8 ++++----
google-cloud-webrisk/pom.xml | 4 ++--
grpc-google-cloud-webrisk-v1beta1/pom.xml | 4 ++--
pom.xml | 8 ++++----
proto-google-cloud-webrisk-v1beta1/pom.xml | 4 ++--
versions.txt | 6 +++---
6 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/google-cloud-webrisk-bom/pom.xml b/google-cloud-webrisk-bom/pom.xml
index 900d2b9e..a9f40273 100644
--- a/google-cloud-webrisk-bom/pom.xml
+++ b/google-cloud-webrisk-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0com.google.cloudgoogle-cloud-webrisk-bom
- 0.32.1
+ 0.32.2-SNAPSHOTpomcom.google.cloud
@@ -64,17 +64,17 @@
com.google.cloudgoogle-cloud-webrisk
- 0.32.1
+ 0.32.2-SNAPSHOTcom.google.api.grpcgrpc-google-cloud-webrisk-v1beta1
- 0.32.1
+ 0.32.2-SNAPSHOTcom.google.api.grpcproto-google-cloud-webrisk-v1beta1
- 0.32.1
+ 0.32.2-SNAPSHOT
diff --git a/google-cloud-webrisk/pom.xml b/google-cloud-webrisk/pom.xml
index 2a32a270..0f777278 100644
--- a/google-cloud-webrisk/pom.xml
+++ b/google-cloud-webrisk/pom.xml
@@ -3,7 +3,7 @@
4.0.0com.google.cloudgoogle-cloud-webrisk
- 0.32.1
+ 0.32.2-SNAPSHOTjarGoogle Cloud Web Riskhttps://github.com/googleapis/java-webrisk
@@ -11,7 +11,7 @@
com.google.cloudgoogle-cloud-webrisk-parent
- 0.32.1
+ 0.32.2-SNAPSHOTgoogle-cloud-webrisk
diff --git a/grpc-google-cloud-webrisk-v1beta1/pom.xml b/grpc-google-cloud-webrisk-v1beta1/pom.xml
index 80c749a6..66eef923 100644
--- a/grpc-google-cloud-webrisk-v1beta1/pom.xml
+++ b/grpc-google-cloud-webrisk-v1beta1/pom.xml
@@ -4,13 +4,13 @@
4.0.0com.google.api.grpcgrpc-google-cloud-webrisk-v1beta1
- 0.32.1
+ 0.32.2-SNAPSHOTgrpc-google-cloud-webrisk-v1beta1GRPC library for grpc-google-cloud-webrisk-v1beta1com.google.cloudgoogle-cloud-webrisk-parent
- 0.32.1
+ 0.32.2-SNAPSHOT
diff --git a/pom.xml b/pom.xml
index b9c49354..2049d411 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloudgoogle-cloud-webrisk-parentpom
- 0.32.1
+ 0.32.2-SNAPSHOTGoogle Cloud Web Risk Parenthttps://github.com/googleapis/java-webrisk
@@ -81,17 +81,17 @@
com.google.api.grpcproto-google-cloud-webrisk-v1beta1
- 0.32.1
+ 0.32.2-SNAPSHOTcom.google.api.grpcgrpc-google-cloud-webrisk-v1beta1
- 0.32.1
+ 0.32.2-SNAPSHOTcom.google.cloudgoogle-cloud-webrisk
- 0.32.1
+ 0.32.2-SNAPSHOT
diff --git a/proto-google-cloud-webrisk-v1beta1/pom.xml b/proto-google-cloud-webrisk-v1beta1/pom.xml
index 1058a724..f665aaf5 100644
--- a/proto-google-cloud-webrisk-v1beta1/pom.xml
+++ b/proto-google-cloud-webrisk-v1beta1/pom.xml
@@ -4,13 +4,13 @@
4.0.0com.google.api.grpcproto-google-cloud-webrisk-v1beta1
- 0.32.1
+ 0.32.2-SNAPSHOTproto-google-cloud-webrisk-v1beta1PROTO library for proto-google-cloud-webrisk-v1beta1com.google.cloudgoogle-cloud-webrisk-parent
- 0.32.1
+ 0.32.2-SNAPSHOT
diff --git a/versions.txt b/versions.txt
index 22e4fe0b..55c20df7 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,6 +1,6 @@
# Format:
# module:released-version:current-version
-proto-google-cloud-webrisk-v1beta1:0.32.1:0.32.1
-grpc-google-cloud-webrisk-v1beta1:0.32.1:0.32.1
-google-cloud-webrisk:0.32.1:0.32.1
+proto-google-cloud-webrisk-v1beta1:0.32.1:0.32.2-SNAPSHOT
+grpc-google-cloud-webrisk-v1beta1:0.32.1:0.32.2-SNAPSHOT
+google-cloud-webrisk:0.32.1:0.32.2-SNAPSHOT
From e74e063dc850b10624896fc6c81364eb3bc5bf62 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Thu, 6 Feb 2020 15:25:12 -0800
Subject: [PATCH 02/17] chore: update libraries-bom to 4.0.0
---
README.md | 2 +-
synth.metadata | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index b6e3a2c9..9e42e9ac 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
com.google.cloudlibraries-bom
- 3.5.0
+ 4.0.0pomimport
diff --git a/synth.metadata b/synth.metadata
index 04bc5c1c..56ff8729 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -1,5 +1,5 @@
{
- "updateTime": "2020-02-03T23:45:50.382126Z",
+ "updateTime": "2020-02-06T23:16:03.588230Z",
"sources": [
{
"generator": {
@@ -12,16 +12,16 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "29d40b78e3dc1579b0b209463fbcb76e5767f72a",
- "internalRef": "292979741",
- "log": "29d40b78e3dc1579b0b209463fbcb76e5767f72a\nExpose managedidentities/v1beta1/ API for client library usage.\n\nPiperOrigin-RevId: 292979741\n\na22129a1fb6e18056d576dfb7717aef74b63734a\nExpose managedidentities/v1/ API for client library usage.\n\nPiperOrigin-RevId: 292968186\n\n"
+ "sha": "2e23b8fbc45f5d9e200572ca662fe1271bcd6760",
+ "internalRef": "293666452",
+ "log": "2e23b8fbc45f5d9e200572ca662fe1271bcd6760\nAdd ListEntryGroups method, add http bindings to support entry group tagging, and update some comments.\n\nPiperOrigin-RevId: 293666452\n\n0275e38a4ca03a13d3f47a9613aac8c8b0d3f1f2\nAdd proto_package field to managedidentities API. It is needed for APIs that still depend on artman generation.\n\nPiperOrigin-RevId: 293643323\n\n4cdfe8278cb6f308106580d70648001c9146e759\nRegenerating public protos for Data Catalog to add new Custom Type Entry feature.\n\nPiperOrigin-RevId: 293614782\n\n45d2a569ab526a1fad3720f95eefb1c7330eaada\nEnable client generation for v1 ManagedIdentities API.\n\nPiperOrigin-RevId: 293515675\n\n2c17086b77e6f3bcf04a1f65758dfb0c3da1568f\nAdd the Actions on Google common types (//google/actions/type/*).\n\nPiperOrigin-RevId: 293478245\n\n781aadb932e64a12fb6ead7cd842698d99588433\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293443396\n\ne2602608c9138c2fca24162720e67f9307c30b95\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293442964\n\nc8aef82028d06b7992278fa9294c18570dc86c3d\nAdd cc_proto_library and cc_grpc_library targets for Bigtable protos.\n\nAlso fix indentation of cc_grpc_library targets in Spanner and IAM protos.\n\nPiperOrigin-RevId: 293440538\n\ne2faab04f4cb7f9755072330866689b1943a16e9\ncloudtasks: v2 replace non-standard retry params in gapic config v2\n\nPiperOrigin-RevId: 293424055\n\ndfb4097ea628a8470292c6590a4313aee0c675bd\nerrorreporting: v1beta1 add legacy artman config for php\n\nPiperOrigin-RevId: 293423790\n\nb18aed55b45bfe5b62476292c72759e6c3e573c6\nasset: v1p1beta1 updated comment for `page_size` limit.\n\nPiperOrigin-RevId: 293421386\n\nc9ef36b7956d9859a2fc86ad35fcaa16958ab44f\nbazel: Refactor CI build scripts\n\nPiperOrigin-RevId: 293387911\n\na8ed9d921fdddc61d8467bfd7c1668f0ad90435c\nfix: set Ruby module name for OrgPolicy\n\nPiperOrigin-RevId: 293257997\n\n6c7d28509bd8315de8af0889688ee20099594269\nredis: v1beta1 add UpgradeInstance and connect_mode field to Instance\n\nPiperOrigin-RevId: 293242878\n\nae0abed4fcb4c21f5cb67a82349a049524c4ef68\nredis: v1 add connect_mode field to Instance\n\nPiperOrigin-RevId: 293241914\n\n3f7a0d29b28ee9365771da2b66edf7fa2b4e9c56\nAdds service config definition for bigqueryreservation v1beta1\n\nPiperOrigin-RevId: 293234418\n\n0c88168d5ed6fe353a8cf8cbdc6bf084f6bb66a5\naddition of BUILD & configuration for accessapproval v1\n\nPiperOrigin-RevId: 293219198\n\n39bedc2e30f4778ce81193f6ba1fec56107bcfc4\naccessapproval: v1 publish protos\n\nPiperOrigin-RevId: 293167048\n\n69d9945330a5721cd679f17331a78850e2618226\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080182\n\nf6a1a6b417f39694275ca286110bc3c1ca4db0dc\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080178\n\n"
}
},
{
"template": {
"name": "java_library",
"origin": "synthtool.gcp",
- "version": "2019.10.17"
+ "version": "2020.2.4"
}
}
],
From d998db45f56e36513bfde3338e22fd798efaa742 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Mon, 10 Feb 2020 09:08:03 -0800
Subject: [PATCH 03/17] docs(regen): update sample code to set total timeout,
add API client header test
---
.../v1beta1/WebRiskServiceV1Beta1Settings.java | 8 ++++++--
.../stub/WebRiskServiceV1Beta1StubSettings.java | 8 ++++++--
synth.metadata | 12 ++++++------
3 files changed, 18 insertions(+), 10 deletions(-)
diff --git a/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Settings.java b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Settings.java
index cb847fcf..1f7dd39b 100644
--- a/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Settings.java
+++ b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Settings.java
@@ -57,8 +57,12 @@
*
* WebRiskServiceV1Beta1Settings.Builder webRiskServiceV1Beta1SettingsBuilder =
* WebRiskServiceV1Beta1Settings.newBuilder();
- * webRiskServiceV1Beta1SettingsBuilder.computeThreatListDiffSettings().getRetrySettings().toBuilder()
- * .setTotalTimeout(Duration.ofSeconds(30));
+ * webRiskServiceV1Beta1SettingsBuilder
+ * .computeThreatListDiffSettings()
+ * .setRetrySettings(
+ * webRiskServiceV1Beta1SettingsBuilder.computeThreatListDiffSettings().getRetrySettings().toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
* WebRiskServiceV1Beta1Settings webRiskServiceV1Beta1Settings = webRiskServiceV1Beta1SettingsBuilder.build();
*
*
diff --git a/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java
index 08e3e7ea..43c869bb 100644
--- a/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java
+++ b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings.java
@@ -66,8 +66,12 @@
*
* WebRiskServiceV1Beta1StubSettings.Builder webRiskServiceV1Beta1SettingsBuilder =
* WebRiskServiceV1Beta1StubSettings.newBuilder();
- * webRiskServiceV1Beta1SettingsBuilder.computeThreatListDiffSettings().getRetrySettings().toBuilder()
- * .setTotalTimeout(Duration.ofSeconds(30));
+ * webRiskServiceV1Beta1SettingsBuilder
+ * .computeThreatListDiffSettings()
+ * .setRetrySettings(
+ * webRiskServiceV1Beta1SettingsBuilder.computeThreatListDiffSettings().getRetrySettings().toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
* WebRiskServiceV1Beta1StubSettings webRiskServiceV1Beta1Settings = webRiskServiceV1Beta1SettingsBuilder.build();
*
*
diff --git a/synth.metadata b/synth.metadata
index 56ff8729..68f82bc2 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -1,20 +1,20 @@
{
- "updateTime": "2020-02-06T23:16:03.588230Z",
+ "updateTime": "2020-02-08T10:17:18.797915Z",
"sources": [
{
"generator": {
"name": "artman",
- "version": "0.44.4",
- "dockerImage": "googleapis/artman@sha256:19e945954fc960a4bdfee6cb34695898ab21a8cf0bac063ee39b91f00a1faec8"
+ "version": "0.45.0",
+ "dockerImage": "googleapis/artman@sha256:6aec9c34db0e4be221cdaf6faba27bdc07cfea846808b3d3b964dfce3a9a0f9b"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "2e23b8fbc45f5d9e200572ca662fe1271bcd6760",
- "internalRef": "293666452",
- "log": "2e23b8fbc45f5d9e200572ca662fe1271bcd6760\nAdd ListEntryGroups method, add http bindings to support entry group tagging, and update some comments.\n\nPiperOrigin-RevId: 293666452\n\n0275e38a4ca03a13d3f47a9613aac8c8b0d3f1f2\nAdd proto_package field to managedidentities API. It is needed for APIs that still depend on artman generation.\n\nPiperOrigin-RevId: 293643323\n\n4cdfe8278cb6f308106580d70648001c9146e759\nRegenerating public protos for Data Catalog to add new Custom Type Entry feature.\n\nPiperOrigin-RevId: 293614782\n\n45d2a569ab526a1fad3720f95eefb1c7330eaada\nEnable client generation for v1 ManagedIdentities API.\n\nPiperOrigin-RevId: 293515675\n\n2c17086b77e6f3bcf04a1f65758dfb0c3da1568f\nAdd the Actions on Google common types (//google/actions/type/*).\n\nPiperOrigin-RevId: 293478245\n\n781aadb932e64a12fb6ead7cd842698d99588433\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293443396\n\ne2602608c9138c2fca24162720e67f9307c30b95\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293442964\n\nc8aef82028d06b7992278fa9294c18570dc86c3d\nAdd cc_proto_library and cc_grpc_library targets for Bigtable protos.\n\nAlso fix indentation of cc_grpc_library targets in Spanner and IAM protos.\n\nPiperOrigin-RevId: 293440538\n\ne2faab04f4cb7f9755072330866689b1943a16e9\ncloudtasks: v2 replace non-standard retry params in gapic config v2\n\nPiperOrigin-RevId: 293424055\n\ndfb4097ea628a8470292c6590a4313aee0c675bd\nerrorreporting: v1beta1 add legacy artman config for php\n\nPiperOrigin-RevId: 293423790\n\nb18aed55b45bfe5b62476292c72759e6c3e573c6\nasset: v1p1beta1 updated comment for `page_size` limit.\n\nPiperOrigin-RevId: 293421386\n\nc9ef36b7956d9859a2fc86ad35fcaa16958ab44f\nbazel: Refactor CI build scripts\n\nPiperOrigin-RevId: 293387911\n\na8ed9d921fdddc61d8467bfd7c1668f0ad90435c\nfix: set Ruby module name for OrgPolicy\n\nPiperOrigin-RevId: 293257997\n\n6c7d28509bd8315de8af0889688ee20099594269\nredis: v1beta1 add UpgradeInstance and connect_mode field to Instance\n\nPiperOrigin-RevId: 293242878\n\nae0abed4fcb4c21f5cb67a82349a049524c4ef68\nredis: v1 add connect_mode field to Instance\n\nPiperOrigin-RevId: 293241914\n\n3f7a0d29b28ee9365771da2b66edf7fa2b4e9c56\nAdds service config definition for bigqueryreservation v1beta1\n\nPiperOrigin-RevId: 293234418\n\n0c88168d5ed6fe353a8cf8cbdc6bf084f6bb66a5\naddition of BUILD & configuration for accessapproval v1\n\nPiperOrigin-RevId: 293219198\n\n39bedc2e30f4778ce81193f6ba1fec56107bcfc4\naccessapproval: v1 publish protos\n\nPiperOrigin-RevId: 293167048\n\n69d9945330a5721cd679f17331a78850e2618226\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080182\n\nf6a1a6b417f39694275ca286110bc3c1ca4db0dc\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080178\n\n"
+ "sha": "e7d8a694f4559201e6913f6610069cb08b39274e",
+ "internalRef": "293903652",
+ "log": "e7d8a694f4559201e6913f6610069cb08b39274e\nDepend on the latest gapic-generator and resource names plugin.\n\nThis fixes the very old an very annoying bug: https://github.com/googleapis/gapic-generator/pull/3087\n\nPiperOrigin-RevId: 293903652\n\n806b2854a966d55374ee26bb0cef4e30eda17b58\nfix: correct capitalization of Ruby namespaces in SecurityCenter V1p1beta1\n\nPiperOrigin-RevId: 293903613\n\n1b83c92462b14d67a7644e2980f723112472e03a\nPublish annotations and grpc service config for Logging API.\n\nPiperOrigin-RevId: 293893514\n\ne46f761cd6ec15a9e3d5ed4ff321a4bcba8e8585\nGenerate the Bazel build file for recommendengine public api\n\nPiperOrigin-RevId: 293710856\n\n68477017c4173c98addac0373950c6aa9d7b375f\nMake `language_code` optional for UpdateIntentRequest and BatchUpdateIntentsRequest.\n\nThe comments and proto annotations describe this parameter as optional.\n\nPiperOrigin-RevId: 293703548\n\n16f823f578bca4e845a19b88bb9bc5870ea71ab2\nAdd BUILD.bazel files for managedidentities API\n\nPiperOrigin-RevId: 293698246\n\n2f53fd8178c9a9de4ad10fae8dd17a7ba36133f2\nAdd v1p1beta1 config file\n\nPiperOrigin-RevId: 293696729\n\n052b274138fce2be80f97b6dcb83ab343c7c8812\nAdd source field for user event and add field behavior annotations\n\nPiperOrigin-RevId: 293693115\n\n1e89732b2d69151b1b3418fff3d4cc0434f0dded\ndatacatalog: v1beta1 add three new RPCs to gapic v1beta1 config\n\nPiperOrigin-RevId: 293692823\n\n9c8bd09bbdc7c4160a44f1fbab279b73cd7a2337\nchange the name of AccessApproval service to AccessApprovalAdmin\n\nPiperOrigin-RevId: 293690934\n\n"
}
},
{
From 98759f1dd276b168bacb890ad5862479e9715506 Mon Sep 17 00:00:00 2001
From: Jeff Ching
Date: Tue, 11 Feb 2020 11:50:37 -0800
Subject: [PATCH 04/17] chore: only allow renovate-bot for trusted-contribution
auto-labeling
---
.github/trusted-contribution.yml | 2 ++
1 file changed, 2 insertions(+)
create mode 100644 .github/trusted-contribution.yml
diff --git a/.github/trusted-contribution.yml b/.github/trusted-contribution.yml
new file mode 100644
index 00000000..f247d5c7
--- /dev/null
+++ b/.github/trusted-contribution.yml
@@ -0,0 +1,2 @@
+trustedContributors:
+- renovate-bot
\ No newline at end of file
From 71767745f088372ef223fc80e280f28ec5000d12 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Thu, 13 Feb 2020 10:13:06 -0800
Subject: [PATCH 05/17] chore: update libraries-bom version to 4.0.1 in README
---
README.md | 2 +-
synth.metadata | 22 ++++++++++++++++++----
2 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 9e42e9ac..573f174b 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
com.google.cloudlibraries-bom
- 4.0.0
+ 4.0.1pomimport
diff --git a/synth.metadata b/synth.metadata
index 68f82bc2..66262b63 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -1,6 +1,20 @@
{
- "updateTime": "2020-02-08T10:17:18.797915Z",
+ "updateTime": "2020-02-13T10:15:12.308554Z",
"sources": [
+ {
+ "git": {
+ "name": ".",
+ "remote": "https://github.com/googleapis/java-webrisk.git",
+ "sha": "98759f1dd276b168bacb890ad5862479e9715506"
+ }
+ },
+ {
+ "git": {
+ "name": "synthtool",
+ "remote": "rpc://devrel/cloud/libraries/tools/autosynth",
+ "sha": "dd7cd93888cbeb1d4c56a1ca814491c7813160e8"
+ }
+ },
{
"generator": {
"name": "artman",
@@ -12,9 +26,9 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "e7d8a694f4559201e6913f6610069cb08b39274e",
- "internalRef": "293903652",
- "log": "e7d8a694f4559201e6913f6610069cb08b39274e\nDepend on the latest gapic-generator and resource names plugin.\n\nThis fixes the very old an very annoying bug: https://github.com/googleapis/gapic-generator/pull/3087\n\nPiperOrigin-RevId: 293903652\n\n806b2854a966d55374ee26bb0cef4e30eda17b58\nfix: correct capitalization of Ruby namespaces in SecurityCenter V1p1beta1\n\nPiperOrigin-RevId: 293903613\n\n1b83c92462b14d67a7644e2980f723112472e03a\nPublish annotations and grpc service config for Logging API.\n\nPiperOrigin-RevId: 293893514\n\ne46f761cd6ec15a9e3d5ed4ff321a4bcba8e8585\nGenerate the Bazel build file for recommendengine public api\n\nPiperOrigin-RevId: 293710856\n\n68477017c4173c98addac0373950c6aa9d7b375f\nMake `language_code` optional for UpdateIntentRequest and BatchUpdateIntentsRequest.\n\nThe comments and proto annotations describe this parameter as optional.\n\nPiperOrigin-RevId: 293703548\n\n16f823f578bca4e845a19b88bb9bc5870ea71ab2\nAdd BUILD.bazel files for managedidentities API\n\nPiperOrigin-RevId: 293698246\n\n2f53fd8178c9a9de4ad10fae8dd17a7ba36133f2\nAdd v1p1beta1 config file\n\nPiperOrigin-RevId: 293696729\n\n052b274138fce2be80f97b6dcb83ab343c7c8812\nAdd source field for user event and add field behavior annotations\n\nPiperOrigin-RevId: 293693115\n\n1e89732b2d69151b1b3418fff3d4cc0434f0dded\ndatacatalog: v1beta1 add three new RPCs to gapic v1beta1 config\n\nPiperOrigin-RevId: 293692823\n\n9c8bd09bbdc7c4160a44f1fbab279b73cd7a2337\nchange the name of AccessApproval service to AccessApprovalAdmin\n\nPiperOrigin-RevId: 293690934\n\n"
+ "sha": "0646bc775203077226c2c34d3e4d50cc4ec53660",
+ "internalRef": "294809380",
+ "log": "0646bc775203077226c2c34d3e4d50cc4ec53660\nRemove unnecessary languages from bigquery-related artman configuration files.\n\nPiperOrigin-RevId: 294809380\n\n8b78aa04382e3d4147112ad6d344666771bb1909\nUpdate backend.proto for schemes and protocol\n\nPiperOrigin-RevId: 294788800\n\n80b8f8b3de2359831295e24e5238641a38d8488f\nAdds artman config files for bigquerystorage endpoints v1beta2, v1alpha2, v1\n\nPiperOrigin-RevId: 294763931\n\n2c17ac33b226194041155bb5340c3f34733f1b3a\nAdd parameter to sample generated for UpdateInstance. Related to https://github.com/googleapis/python-redis/issues/4\n\nPiperOrigin-RevId: 294734008\n\nd5e8a8953f2acdfe96fb15e85eb2f33739623957\nMove bigquery datatransfer to gapic v2.\n\nPiperOrigin-RevId: 294703703\n\nefd36705972cfcd7d00ab4c6dfa1135bafacd4ae\nfix: Add two annotations that we missed.\n\nPiperOrigin-RevId: 294664231\n\n8a36b928873ff9c05b43859b9d4ea14cd205df57\nFix: Define the \"bigquery.googleapis.com/Table\" resource in the BigQuery Storage API (v1beta2).\n\nPiperOrigin-RevId: 294459768\n\nc7a3caa2c40c49f034a3c11079dd90eb24987047\nFix: Define the \"bigquery.googleapis.com/Table\" resource in the BigQuery Storage API (v1).\n\nPiperOrigin-RevId: 294456889\n\n5006247aa157e59118833658084345ee59af7c09\nFix: Make deprecated fields optional\nFix: Deprecate SetLoggingServiceRequest.zone in line with the comments\nFeature: Add resource name method signatures where appropriate\n\nPiperOrigin-RevId: 294383128\n\neabba40dac05c5cbe0fca3a35761b17e372036c4\nFix: C# and PHP package/namespace capitalization for BigQuery Storage v1.\n\nPiperOrigin-RevId: 294382444\n\nf8d9a858a7a55eba8009a23aa3f5cc5fe5e88dde\nfix: artman configuration file for bigtable-admin\n\nPiperOrigin-RevId: 294322616\n\n0f29555d1cfcf96add5c0b16b089235afbe9b1a9\nAPI definition for (not-yet-launched) GCS gRPC.\n\nPiperOrigin-RevId: 294321472\n\nfcc86bee0e84dc11e9abbff8d7c3529c0626f390\nfix: Bigtable Admin v2\n\nChange LRO metadata from PartialUpdateInstanceMetadata\nto UpdateInstanceMetadata. (Otherwise, it will not build.)\n\nPiperOrigin-RevId: 294264582\n\n6d9361eae2ebb3f42d8c7ce5baf4bab966fee7c0\nrefactor: Add annotations to Bigtable Admin v2.\n\nPiperOrigin-RevId: 294243406\n\nad7616f3fc8e123451c8b3a7987bc91cea9e6913\nFix: Resource type in CreateLogMetricRequest should use logging.googleapis.com.\nFix: ListLogEntries should have a method signature for convenience of calling it.\n\nPiperOrigin-RevId: 294222165\n\n63796fcbb08712676069e20a3e455c9f7aa21026\nFix: Remove extraneous resource definition for cloudkms.googleapis.com/CryptoKey.\n\nPiperOrigin-RevId: 294176658\n\n"
}
},
{
From 9ee3cd875d21b5b6f094e92df0b1913c9c5c12e9 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Fri, 14 Feb 2020 15:45:16 -0800
Subject: [PATCH 06/17] chore: update libraries-bom to 4.1.0
This PR was generated using Autosynth. :rainbow:
Commits in this repo since last synth:
Log from Synthtool
```
synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py.
On branch autosynth
nothing to commit, working tree clean
HEAD detached at FETCH_HEAD
nothing to commit, working tree clean
synthtool > Ensuring dependencies.
synthtool > Pulling artman image.
latest: Pulling from googleapis/artman
Digest: sha256:6aec9c34db0e4be221cdaf6faba27bdc07cfea846808b3d3b964dfce3a9a0f9b
Status: Image is up to date for googleapis/artman:latest
synthtool > Cloning googleapis.
synthtool > Running generator for google/cloud/webrisk/artman_webrisk_v1beta1.yaml.
synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 not longer needed?
synthtool > Replaced 'package com.google.webrisk.v1beta1;' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/WebRiskServiceV1Beta1Grpc.java.
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?
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?
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?
synthtool > Running java formatter on 10 files
synthtool > Running java formatter on 1 files
synthtool > Running java formatter on 25 files
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
.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/propose_release.sh
.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/bump_snapshot.sh
.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
synthtool > Wrote metadata to synth.metadata.
```
---
README.md | 2 +-
synth.metadata | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 573f174b..a60704f7 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
com.google.cloudlibraries-bom
- 4.0.1
+ 4.1.0pomimport
diff --git a/synth.metadata b/synth.metadata
index 66262b63..bc009042 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -1,11 +1,11 @@
{
- "updateTime": "2020-02-13T10:15:12.308554Z",
+ "updateTime": "2020-02-14T23:14:17.541730Z",
"sources": [
{
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-webrisk.git",
- "sha": "98759f1dd276b168bacb890ad5862479e9715506"
+ "sha": "71767745f088372ef223fc80e280f28ec5000d12"
}
},
{
@@ -26,9 +26,9 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "0646bc775203077226c2c34d3e4d50cc4ec53660",
- "internalRef": "294809380",
- "log": "0646bc775203077226c2c34d3e4d50cc4ec53660\nRemove unnecessary languages from bigquery-related artman configuration files.\n\nPiperOrigin-RevId: 294809380\n\n8b78aa04382e3d4147112ad6d344666771bb1909\nUpdate backend.proto for schemes and protocol\n\nPiperOrigin-RevId: 294788800\n\n80b8f8b3de2359831295e24e5238641a38d8488f\nAdds artman config files for bigquerystorage endpoints v1beta2, v1alpha2, v1\n\nPiperOrigin-RevId: 294763931\n\n2c17ac33b226194041155bb5340c3f34733f1b3a\nAdd parameter to sample generated for UpdateInstance. Related to https://github.com/googleapis/python-redis/issues/4\n\nPiperOrigin-RevId: 294734008\n\nd5e8a8953f2acdfe96fb15e85eb2f33739623957\nMove bigquery datatransfer to gapic v2.\n\nPiperOrigin-RevId: 294703703\n\nefd36705972cfcd7d00ab4c6dfa1135bafacd4ae\nfix: Add two annotations that we missed.\n\nPiperOrigin-RevId: 294664231\n\n8a36b928873ff9c05b43859b9d4ea14cd205df57\nFix: Define the \"bigquery.googleapis.com/Table\" resource in the BigQuery Storage API (v1beta2).\n\nPiperOrigin-RevId: 294459768\n\nc7a3caa2c40c49f034a3c11079dd90eb24987047\nFix: Define the \"bigquery.googleapis.com/Table\" resource in the BigQuery Storage API (v1).\n\nPiperOrigin-RevId: 294456889\n\n5006247aa157e59118833658084345ee59af7c09\nFix: Make deprecated fields optional\nFix: Deprecate SetLoggingServiceRequest.zone in line with the comments\nFeature: Add resource name method signatures where appropriate\n\nPiperOrigin-RevId: 294383128\n\neabba40dac05c5cbe0fca3a35761b17e372036c4\nFix: C# and PHP package/namespace capitalization for BigQuery Storage v1.\n\nPiperOrigin-RevId: 294382444\n\nf8d9a858a7a55eba8009a23aa3f5cc5fe5e88dde\nfix: artman configuration file for bigtable-admin\n\nPiperOrigin-RevId: 294322616\n\n0f29555d1cfcf96add5c0b16b089235afbe9b1a9\nAPI definition for (not-yet-launched) GCS gRPC.\n\nPiperOrigin-RevId: 294321472\n\nfcc86bee0e84dc11e9abbff8d7c3529c0626f390\nfix: Bigtable Admin v2\n\nChange LRO metadata from PartialUpdateInstanceMetadata\nto UpdateInstanceMetadata. (Otherwise, it will not build.)\n\nPiperOrigin-RevId: 294264582\n\n6d9361eae2ebb3f42d8c7ce5baf4bab966fee7c0\nrefactor: Add annotations to Bigtable Admin v2.\n\nPiperOrigin-RevId: 294243406\n\nad7616f3fc8e123451c8b3a7987bc91cea9e6913\nFix: Resource type in CreateLogMetricRequest should use logging.googleapis.com.\nFix: ListLogEntries should have a method signature for convenience of calling it.\n\nPiperOrigin-RevId: 294222165\n\n63796fcbb08712676069e20a3e455c9f7aa21026\nFix: Remove extraneous resource definition for cloudkms.googleapis.com/CryptoKey.\n\nPiperOrigin-RevId: 294176658\n\n"
+ "sha": "d9835e922ea79eed8497db270d2f9f85099a519c",
+ "internalRef": "295185610",
+ "log": "d9835e922ea79eed8497db270d2f9f85099a519c\nUpdate some minor docs changes about user event proto\n\nPiperOrigin-RevId: 295185610\n\n5f311e416e69c170243de722023b22f3df89ec1c\nfix: use correct PHP package name in gapic configuration\n\nPiperOrigin-RevId: 295161330\n\n6cdd74dcdb071694da6a6b5a206e3a320b62dd11\npubsub: v1 add client config annotations and retry config\n\nPiperOrigin-RevId: 295158776\n\n5169f46d9f792e2934d9fa25c36d0515b4fd0024\nAdded cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295026522\n\n56b55aa8818cd0a532a7d779f6ef337ba809ccbd\nFix: Resource annotations for CreateTimeSeriesRequest and ListTimeSeriesRequest should refer to valid resources. TimeSeries is not a named resource.\n\nPiperOrigin-RevId: 294931650\n\n"
}
},
{
From 46c6241895c810a285d60110e3eeed14d9cc3e2a Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Fri, 21 Feb 2020 17:53:36 +0100
Subject: [PATCH 07/17] deps: update dependency
com.google.protobuf:protobuf-java to v3.11.4
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| com.google.protobuf:protobuf-java | patch | `3.11.3` -> `3.11.4` |
---
### 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 if you tick the rebase/retry checkbox below.
:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] 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).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 2049d411..f7e269e1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -68,7 +68,7 @@
1.17.01.53.11.27.0
- 3.11.3
+ 3.11.44.1328.2-android1.4.1
From 8dee7e81e10526540cb3aa3655a7b2e110513e9b Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Fri, 21 Feb 2020 19:26:57 +0100
Subject: [PATCH 08/17] deps: update dependency io.grpc:grpc-bom to v1.27.1
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [io.grpc:grpc-bom](https://togithub.com/grpc/grpc-java) | patch | `1.27.0` -> `1.27.1` |
---
### Release Notes
grpc/grpc-java
### [`v1.27.1`](https://togithub.com/grpc/grpc-java/releases/v1.27.1)
[Compare Source](https://togithub.com/grpc/grpc-java/compare/v1.27.0...v1.27.1)
#### Bug Fixes
- alts: Fix using the wrong way of checking if Conscrypt is available ([#6672](https://togithub.com/grpc/grpc-java/issues/6672))
---
### 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 if you tick the rebase/retry checkbox below.
:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] 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).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index f7e269e1..4cb1cdae 100644
--- a/pom.xml
+++ b/pom.xml
@@ -67,7 +67,7 @@
1.8.11.17.01.53.1
- 1.27.0
+ 1.27.13.11.44.1328.2-android
From 293106606e9b12354d7f0581003480748d99601e Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Fri, 21 Feb 2020 15:40:52 -0800
Subject: [PATCH 09/17] chore: update common templates
---
.kokoro/build.sh | 23 +++++++++++++++--------
README.md | 6 ++++--
renovate.json | 7 +++++++
synth.metadata | 34 +++++++++++++++++-----------------
4 files changed, 43 insertions(+), 27 deletions(-)
diff --git a/.kokoro/build.sh b/.kokoro/build.sh
index f1ae5840..d11958c5 100755
--- a/.kokoro/build.sh
+++ b/.kokoro/build.sh
@@ -62,14 +62,21 @@ integration)
bash .kokoro/coerce_logs.sh
;;
samples)
- mvn -B \
- -Penable-samples \
- -DtrimStackTrace=false \
- -Dclirr.skip=true \
- -Denforcer.skip=true \
- -fae \
- verify
- bash .kokoro/coerce_logs.sh
+ if [[ -f samples/pom.xml ]]
+ then
+ pushd samples
+ mvn -B \
+ -Penable-samples \
+ -DtrimStackTrace=false \
+ -Dclirr.skip=true \
+ -Denforcer.skip=true \
+ -fae \
+ verify
+ bash .kokoro/coerce_logs.sh
+ popd
+ else
+ echo "no sample pom.xml found - skipping sample tests"
+ fi
;;
clirr)
mvn -B -Denforcer.skip=true clirr:check
diff --git a/README.md b/README.md
index a60704f7..239052d9 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
-
com.google.cloud
@@ -87,6 +86,8 @@ use this Web Risk Client Library.
+
+
## Troubleshooting
To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting].
@@ -158,4 +159,5 @@ Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5]
[license]: https://github.com/googleapis/java-webrisk/blob/master/LICENSE
[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=webrisk.googleapis.com
-[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM
\ No newline at end of file
+[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM
+[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
diff --git a/renovate.json b/renovate.json
index 268a4669..fc641270 100644
--- a/renovate.json
+++ b/renovate.json
@@ -54,6 +54,13 @@
"semanticCommitType": "build",
"semanticCommitScope": "deps"
},
+ {
+ "packagePatterns": [
+ "^com.google.cloud:libraries-bom"
+ ],
+ "semanticCommitType": "chore",
+ "semanticCommitScope": "deps"
+ },
{
"packagePatterns": [
"^com.google.cloud:google-cloud-"
diff --git a/synth.metadata b/synth.metadata
index bc009042..88c72269 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -1,34 +1,34 @@
{
- "updateTime": "2020-02-14T23:14:17.541730Z",
+ "updateTime": "2020-02-21T23:09:13.734519Z",
"sources": [
{
- "git": {
- "name": ".",
- "remote": "https://github.com/googleapis/java-webrisk.git",
- "sha": "71767745f088372ef223fc80e280f28ec5000d12"
+ "generator": {
+ "name": "artman",
+ "version": "0.45.0",
+ "dockerImage": "googleapis/artman@sha256:6aec9c34db0e4be221cdaf6faba27bdc07cfea846808b3d3b964dfce3a9a0f9b"
}
},
{
"git": {
- "name": "synthtool",
- "remote": "rpc://devrel/cloud/libraries/tools/autosynth",
- "sha": "dd7cd93888cbeb1d4c56a1ca814491c7813160e8"
+ "name": ".",
+ "remote": "https://github.com/googleapis/java-webrisk.git",
+ "sha": "8dee7e81e10526540cb3aa3655a7b2e110513e9b"
}
},
{
- "generator": {
- "name": "artman",
- "version": "0.45.0",
- "dockerImage": "googleapis/artman@sha256:6aec9c34db0e4be221cdaf6faba27bdc07cfea846808b3d3b964dfce3a9a0f9b"
+ "git": {
+ "name": "googleapis",
+ "remote": "https://github.com/googleapis/googleapis.git",
+ "sha": "7f910bcc4fc4704947ccfd3ceed015d16b9e00c2",
+ "internalRef": "296451205",
+ "log": "7f910bcc4fc4704947ccfd3ceed015d16b9e00c2\nUpdate Dataproc v1beta2 client.\n\nPiperOrigin-RevId: 296451205\n\nde287524405a3dce124d301634731584fc0432d7\nFix: Reinstate method signatures that had been missed off some RPCs\nFix: Correct resource types for two fields\n\nPiperOrigin-RevId: 296435091\n\ne5bc9566ae057fb4c92f8b7e047f1c8958235b53\nDeprecate the endpoint_uris field, as it is unused.\n\nPiperOrigin-RevId: 296357191\n\n8c12e2b4dca94e12bff9f538bdac29524ff7ef7a\nUpdate Dataproc v1 client.\n\nPiperOrigin-RevId: 296336662\n\n17567c4a1ef0a9b50faa87024d66f8acbb561089\nRemoving erroneous comment, a la https://github.com/googleapis/java-speech/pull/103\n\nPiperOrigin-RevId: 296332968\n\n3eaaaf8626ce5b0c0bc7eee05e143beffa373b01\nAdd BUILD.bazel for v1 secretmanager.googleapis.com\n\nPiperOrigin-RevId: 296274723\n\ne76149c3d992337f85eeb45643106aacae7ede82\nMove securitycenter v1 to use generate from annotations.\n\nPiperOrigin-RevId: 296266862\n\n203740c78ac69ee07c3bf6be7408048751f618f8\nAdd StackdriverLoggingConfig field to Cloud Tasks v2 API.\n\nPiperOrigin-RevId: 296256388\n\ne4117d5e9ed8bbca28da4a60a94947ca51cb2083\nCreate a Bazel BUILD file for the google.actions.type export.\n\nPiperOrigin-RevId: 296212567\n\na9639a0a9854fd6e1be08bba1ac3897f4f16cb2f\nAdd secretmanager.googleapis.com v1 protos\n\nPiperOrigin-RevId: 295983266\n\nce4f4c21d9dd2bfab18873a80449b9d9851efde8\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295861722\n\ncb61d6c2d070b589980c779b68ffca617f789116\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295855449\n\nab2685d8d3a0e191dc8aef83df36773c07cb3d06\nfix: Dataproc v1 - AutoscalingPolicy annotation\n\nThis adds the second resource name pattern to the\nAutoscalingPolicy resource.\n\nCommitter: @lukesneeringer\nPiperOrigin-RevId: 295738415\n\n8a1020bf6828f6e3c84c3014f2c51cb62b739140\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295286165\n\n5cfa105206e77670369e4b2225597386aba32985\nAdd service control related proto build rule.\n\nPiperOrigin-RevId: 295262088\n\nee4dddf805072004ab19ac94df2ce669046eec26\nmonitoring v3: Add prefix \"https://cloud.google.com/\" into the link for global access\ncl 295167522, get ride of synth.py hacks\n\nPiperOrigin-RevId: 295238095\n\n"
}
},
{
"git": {
- "name": "googleapis",
- "remote": "https://github.com/googleapis/googleapis.git",
- "sha": "d9835e922ea79eed8497db270d2f9f85099a519c",
- "internalRef": "295185610",
- "log": "d9835e922ea79eed8497db270d2f9f85099a519c\nUpdate some minor docs changes about user event proto\n\nPiperOrigin-RevId: 295185610\n\n5f311e416e69c170243de722023b22f3df89ec1c\nfix: use correct PHP package name in gapic configuration\n\nPiperOrigin-RevId: 295161330\n\n6cdd74dcdb071694da6a6b5a206e3a320b62dd11\npubsub: v1 add client config annotations and retry config\n\nPiperOrigin-RevId: 295158776\n\n5169f46d9f792e2934d9fa25c36d0515b4fd0024\nAdded cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295026522\n\n56b55aa8818cd0a532a7d779f6ef337ba809ccbd\nFix: Resource annotations for CreateTimeSeriesRequest and ListTimeSeriesRequest should refer to valid resources. TimeSeries is not a named resource.\n\nPiperOrigin-RevId: 294931650\n\n"
+ "name": "synthtool",
+ "remote": "rpc://devrel/cloud/libraries/tools/autosynth",
+ "sha": "706a38c26db42299845396cdae55db635c38794a"
}
},
{
From 1fc2c263b3146cc72e6290b91463d21e0a86d525 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Mon, 24 Feb 2020 10:37:45 -0800
Subject: [PATCH 10/17] chore: update common templates
---
.kokoro/build.sh | 24 +++++++++++++++++++++---
synth.metadata | 11 +++++------
2 files changed, 26 insertions(+), 9 deletions(-)
diff --git a/.kokoro/build.sh b/.kokoro/build.sh
index d11958c5..86393b3f 100755
--- a/.kokoro/build.sh
+++ b/.kokoro/build.sh
@@ -37,19 +37,24 @@ if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTI
export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_ROOT}/src/${GOOGLE_APPLICATION_CREDENTIALS})
fi
+RETURN_CODE=0
+set +e
+
case ${JOB_TYPE} in
test)
mvn test -B -Dclirr.skip=true -Denforcer.skip=true
+ RETURN_CODE=$?
bash ${KOKORO_GFILE_DIR}/codecov.sh
- bash .kokoro/coerce_logs.sh
;;
lint)
mvn \
-Penable-samples \
com.coveo:fmt-maven-plugin:check
+ RETURN_CODE=$?
;;
javadoc)
mvn javadoc:javadoc javadoc:test-javadoc
+ RETURN_CODE=$?
;;
integration)
mvn -B ${INTEGRATION_TEST_ARGS} \
@@ -59,7 +64,7 @@ integration)
-Denforcer.skip=true \
-fae \
verify
- bash .kokoro/coerce_logs.sh
+ RETURN_CODE=$?
;;
samples)
if [[ -f samples/pom.xml ]]
@@ -72,7 +77,7 @@ samples)
-Denforcer.skip=true \
-fae \
verify
- bash .kokoro/coerce_logs.sh
+ RETURN_CODE=$?
popd
else
echo "no sample pom.xml found - skipping sample tests"
@@ -80,7 +85,20 @@ samples)
;;
clirr)
mvn -B -Denforcer.skip=true clirr:check
+ RETURN_CODE=$?
;;
*)
;;
esac
+
+# fix output location of logs
+bash .kokoro/coerce_logs.sh
+
+if [[ "${ENABLE_BUILD_COP}" == "true" ]]
+then
+ chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/buildcop
+ ${KOKORO_GFILE_DIR}/linux_amd64/buildcop -repo=googleapis/java-webrisk
+fi
+
+echo "exiting with ${RETURN_CODE}"
+exit ${RETURN_CODE}
\ No newline at end of file
diff --git a/synth.metadata b/synth.metadata
index 88c72269..73345a08 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -1,18 +1,18 @@
{
- "updateTime": "2020-02-21T23:09:13.734519Z",
+ "updateTime": "2020-02-22T10:14:31.430625Z",
"sources": [
{
"generator": {
"name": "artman",
- "version": "0.45.0",
- "dockerImage": "googleapis/artman@sha256:6aec9c34db0e4be221cdaf6faba27bdc07cfea846808b3d3b964dfce3a9a0f9b"
+ "version": "0.45.1",
+ "dockerImage": "googleapis/artman@sha256:36956ca6a4dc70a59de5d5d0fd35061b050bb56884516f0898f46d8220f25738"
}
},
{
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-webrisk.git",
- "sha": "8dee7e81e10526540cb3aa3655a7b2e110513e9b"
+ "sha": "293106606e9b12354d7f0581003480748d99601e"
}
},
{
@@ -20,8 +20,7 @@
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "7f910bcc4fc4704947ccfd3ceed015d16b9e00c2",
- "internalRef": "296451205",
- "log": "7f910bcc4fc4704947ccfd3ceed015d16b9e00c2\nUpdate Dataproc v1beta2 client.\n\nPiperOrigin-RevId: 296451205\n\nde287524405a3dce124d301634731584fc0432d7\nFix: Reinstate method signatures that had been missed off some RPCs\nFix: Correct resource types for two fields\n\nPiperOrigin-RevId: 296435091\n\ne5bc9566ae057fb4c92f8b7e047f1c8958235b53\nDeprecate the endpoint_uris field, as it is unused.\n\nPiperOrigin-RevId: 296357191\n\n8c12e2b4dca94e12bff9f538bdac29524ff7ef7a\nUpdate Dataproc v1 client.\n\nPiperOrigin-RevId: 296336662\n\n17567c4a1ef0a9b50faa87024d66f8acbb561089\nRemoving erroneous comment, a la https://github.com/googleapis/java-speech/pull/103\n\nPiperOrigin-RevId: 296332968\n\n3eaaaf8626ce5b0c0bc7eee05e143beffa373b01\nAdd BUILD.bazel for v1 secretmanager.googleapis.com\n\nPiperOrigin-RevId: 296274723\n\ne76149c3d992337f85eeb45643106aacae7ede82\nMove securitycenter v1 to use generate from annotations.\n\nPiperOrigin-RevId: 296266862\n\n203740c78ac69ee07c3bf6be7408048751f618f8\nAdd StackdriverLoggingConfig field to Cloud Tasks v2 API.\n\nPiperOrigin-RevId: 296256388\n\ne4117d5e9ed8bbca28da4a60a94947ca51cb2083\nCreate a Bazel BUILD file for the google.actions.type export.\n\nPiperOrigin-RevId: 296212567\n\na9639a0a9854fd6e1be08bba1ac3897f4f16cb2f\nAdd secretmanager.googleapis.com v1 protos\n\nPiperOrigin-RevId: 295983266\n\nce4f4c21d9dd2bfab18873a80449b9d9851efde8\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295861722\n\ncb61d6c2d070b589980c779b68ffca617f789116\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295855449\n\nab2685d8d3a0e191dc8aef83df36773c07cb3d06\nfix: Dataproc v1 - AutoscalingPolicy annotation\n\nThis adds the second resource name pattern to the\nAutoscalingPolicy resource.\n\nCommitter: @lukesneeringer\nPiperOrigin-RevId: 295738415\n\n8a1020bf6828f6e3c84c3014f2c51cb62b739140\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295286165\n\n5cfa105206e77670369e4b2225597386aba32985\nAdd service control related proto build rule.\n\nPiperOrigin-RevId: 295262088\n\nee4dddf805072004ab19ac94df2ce669046eec26\nmonitoring v3: Add prefix \"https://cloud.google.com/\" into the link for global access\ncl 295167522, get ride of synth.py hacks\n\nPiperOrigin-RevId: 295238095\n\n"
+ "internalRef": "296451205"
}
},
{
From c9dadb480bb6353c02c9551b44dfd758e4cccc71 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Tue, 25 Feb 2020 10:01:43 -0800
Subject: [PATCH 11/17] chore: update common templates (#78)
---
.kokoro/build.sh | 8 ++++++--
.kokoro/continuous/java8.cfg | 5 +++++
.kokoro/nightly/integration.cfg | 14 ++++++++++++++
.kokoro/nightly/java8.cfg | 5 +++++
.kokoro/nightly/samples.cfg | 21 +++++++++++++--------
.kokoro/presubmit/java8.cfg | 5 +++++
README.md | 2 +-
synth.metadata | 21 ++++-----------------
8 files changed, 53 insertions(+), 28 deletions(-)
diff --git a/.kokoro/build.sh b/.kokoro/build.sh
index 86393b3f..178458be 100755
--- a/.kokoro/build.sh
+++ b/.kokoro/build.sh
@@ -44,7 +44,6 @@ case ${JOB_TYPE} in
test)
mvn test -B -Dclirr.skip=true -Denforcer.skip=true
RETURN_CODE=$?
- bash ${KOKORO_GFILE_DIR}/codecov.sh
;;
lint)
mvn \
@@ -91,6 +90,11 @@ clirr)
;;
esac
+if [ "${REPORT_COVERAGE}" == "true" ]
+then
+ bash ${KOKORO_GFILE_DIR}/codecov.sh
+fi
+
# fix output location of logs
bash .kokoro/coerce_logs.sh
@@ -101,4 +105,4 @@ then
fi
echo "exiting with ${RETURN_CODE}"
-exit ${RETURN_CODE}
\ No newline at end of file
+exit ${RETURN_CODE}
diff --git a/.kokoro/continuous/java8.cfg b/.kokoro/continuous/java8.cfg
index 3b017fc8..495cc7ba 100644
--- a/.kokoro/continuous/java8.cfg
+++ b/.kokoro/continuous/java8.cfg
@@ -5,3 +5,8 @@ env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
}
+
+env_vars: {
+ key: "REPORT_COVERAGE"
+ value: "true"
+}
diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg
index 3b017fc8..8bf59c02 100644
--- a/.kokoro/nightly/integration.cfg
+++ b/.kokoro/nightly/integration.cfg
@@ -5,3 +5,17 @@ env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
}
+
+env_vars: {
+ key: "ENABLE_BUILD_COP"
+ value: "true"
+}
+
+before_action {
+ fetch_keystore {
+ keystore_resource {
+ keystore_config_id: 73713
+ keyname: "java_it_service_account"
+ }
+ }
+}
diff --git a/.kokoro/nightly/java8.cfg b/.kokoro/nightly/java8.cfg
index 3b017fc8..495cc7ba 100644
--- a/.kokoro/nightly/java8.cfg
+++ b/.kokoro/nightly/java8.cfg
@@ -5,3 +5,8 @@ env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
}
+
+env_vars: {
+ key: "REPORT_COVERAGE"
+ value: "true"
+}
diff --git a/.kokoro/nightly/samples.cfg b/.kokoro/nightly/samples.cfg
index 9a910249..b4b051cd 100644
--- a/.kokoro/nightly/samples.cfg
+++ b/.kokoro/nightly/samples.cfg
@@ -2,23 +2,28 @@
# Configure the docker image for kokoro-trampoline.
env_vars: {
- key: "TRAMPOLINE_IMAGE"
- value: "gcr.io/cloud-devrel-kokoro-resources/java8"
+ key: "TRAMPOLINE_IMAGE"
+ value: "gcr.io/cloud-devrel-kokoro-resources/java8"
}
env_vars: {
- key: "JOB_TYPE"
- value: "samples"
+ key: "JOB_TYPE"
+ value: "samples"
}
env_vars: {
- key: "GCLOUD_PROJECT"
- value: "gcloud-devel"
+ key: "GCLOUD_PROJECT"
+ value: "gcloud-devel"
}
env_vars: {
- key: "GOOGLE_APPLICATION_CREDENTIALS"
- value: "keystore/73713_java_it_service_account"
+ key: "GOOGLE_APPLICATION_CREDENTIALS"
+ value: "keystore/73713_java_it_service_account"
+}
+
+env_vars: {
+ key: "ENABLE_BUILD_COP"
+ value: "true"
}
before_action {
diff --git a/.kokoro/presubmit/java8.cfg b/.kokoro/presubmit/java8.cfg
index 3b017fc8..495cc7ba 100644
--- a/.kokoro/presubmit/java8.cfg
+++ b/.kokoro/presubmit/java8.cfg
@@ -5,3 +5,8 @@ env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
}
+
+env_vars: {
+ key: "REPORT_COVERAGE"
+ value: "true"
+}
diff --git a/README.md b/README.md
index 239052d9..73b93d6a 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
com.google.cloudlibraries-bom
- 4.1.0
+ 4.1.1pomimport
diff --git a/synth.metadata b/synth.metadata
index 73345a08..ebfe06dd 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -1,5 +1,5 @@
{
- "updateTime": "2020-02-22T10:14:31.430625Z",
+ "updateTime": "2020-02-24T23:13:44.774889Z",
"sources": [
{
"generator": {
@@ -8,26 +8,13 @@
"dockerImage": "googleapis/artman@sha256:36956ca6a4dc70a59de5d5d0fd35061b050bb56884516f0898f46d8220f25738"
}
},
- {
- "git": {
- "name": ".",
- "remote": "https://github.com/googleapis/java-webrisk.git",
- "sha": "293106606e9b12354d7f0581003480748d99601e"
- }
- },
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "7f910bcc4fc4704947ccfd3ceed015d16b9e00c2",
- "internalRef": "296451205"
- }
- },
- {
- "git": {
- "name": "synthtool",
- "remote": "rpc://devrel/cloud/libraries/tools/autosynth",
- "sha": "706a38c26db42299845396cdae55db635c38794a"
+ "sha": "1e47e676cddbbd8d93f19ba0665af15b5532417e",
+ "internalRef": "296901854",
+ "log": "1e47e676cddbbd8d93f19ba0665af15b5532417e\nFix: Restore a method signature for UpdateCluster\n\nPiperOrigin-RevId: 296901854\n\n"
}
},
{
From 02a3abd8ba55a13e0aad18f293972f45e3006569 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Mon, 2 Mar 2020 09:25:15 -0800
Subject: [PATCH 12/17] chore: update libraries-bom to 4.2.0 (#79)
This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/badf69d0-35e6-44bc-af51-7c1c8f83a086/targets
---
README.md | 2 +-
synth.metadata | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index 73b93d6a..355b6540 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
com.google.cloudlibraries-bom
- 4.1.1
+ 4.2.0pomimport
diff --git a/synth.metadata b/synth.metadata
index ebfe06dd..6d3b914c 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -1,20 +1,20 @@
{
- "updateTime": "2020-02-24T23:13:44.774889Z",
+ "updateTime": "2020-02-28T20:25:52.044449Z",
"sources": [
{
"generator": {
"name": "artman",
- "version": "0.45.1",
- "dockerImage": "googleapis/artman@sha256:36956ca6a4dc70a59de5d5d0fd35061b050bb56884516f0898f46d8220f25738"
+ "version": "0.46.0",
+ "dockerImage": "googleapis/artman@sha256:6248a21fba8f0d618c3b032669cec2618e684b66922bb70391fe08c41b05f6ee"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "1e47e676cddbbd8d93f19ba0665af15b5532417e",
- "internalRef": "296901854",
- "log": "1e47e676cddbbd8d93f19ba0665af15b5532417e\nFix: Restore a method signature for UpdateCluster\n\nPiperOrigin-RevId: 296901854\n\n"
+ "sha": "e9e90a787703ec5d388902e2cb796aaed3a385b4",
+ "internalRef": "297671458",
+ "log": "e9e90a787703ec5d388902e2cb796aaed3a385b4\nDialogflow weekly v2/v2beta1 library update:\n - adding get validation result\n - adding field mask override control for output audio config\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 297671458\n\n1a2b05cc3541a5f7714529c665aecc3ea042c646\nAdding .yaml and .json config files.\n\nPiperOrigin-RevId: 297570622\n\ndfe1cf7be44dee31d78f78e485d8c95430981d6e\nPublish `QueryOptions` proto.\n\nIntroduced a `query_options` input in `ExecuteSqlRequest`.\n\nPiperOrigin-RevId: 297497710\n\ndafc905f71e5d46f500b41ed715aad585be062c3\npubsub: revert pull init_rpc_timeout & max_rpc_timeout back to 25 seconds and reset multiplier to 1.0\n\nPiperOrigin-RevId: 297486523\n\nf077632ba7fee588922d9e8717ee272039be126d\nfirestore: add update_transform\n\nPiperOrigin-RevId: 297405063\n\n0aba1900ffef672ec5f0da677cf590ee5686e13b\ncluster: use square brace for cross-reference\n\nPiperOrigin-RevId: 297204568\n\n5dac2da18f6325cbaed54603c43f0667ecd50247\nRestore retry params in gapic config because securitycenter has non-standard default retry params.\nRestore a few retry codes for some idempotent methods.\n\nPiperOrigin-RevId: 297196720\n\n1eb61455530252bba8b2c8d4bc9832960e5a56f6\npubsub: v1 replace IAM HTTP rules\n\nPiperOrigin-RevId: 297188590\n\n80b2d25f8d43d9d47024ff06ead7f7166548a7ba\nDialogflow weekly v2/v2beta1 library update:\n - updates to mega agent api\n - adding field mask override control for output audio config\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 297187629\n\n0b1876b35e98f560f9c9ca9797955f020238a092\nUse an older version of protoc-docs-plugin that is compatible with the specified gapic-generator and protobuf versions.\n\nprotoc-docs-plugin >=0.4.0 (see commit https://github.com/googleapis/protoc-docs-plugin/commit/979f03ede6678c487337f3d7e88bae58df5207af) is incompatible with protobuf 3.9.1.\n\nPiperOrigin-RevId: 296986742\n\n"
}
},
{
From d80eddeb20c8ac08a3e36e3ce0b4e8af57cf72a6 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Tue, 3 Mar 2020 23:45:41 +0100
Subject: [PATCH 13/17] deps: update core dependencies (#80)
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 4cb1cdae..86cf0c47 100644
--- a/pom.xml
+++ b/pom.xml
@@ -66,8 +66,8 @@
1.91.11.8.11.17.0
- 1.53.1
- 1.27.1
+ 1.54.0
+ 1.27.23.11.44.1328.2-android
From 246ea975823b5ef86792ed408595904ab2468716 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Mon, 16 Mar 2020 16:12:10 +0100
Subject: [PATCH 14/17] build(deps): update dependency
org.apache.maven.plugins:maven-javadoc-plugin to v3.2.0 (#83)
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| org.apache.maven.plugins:maven-javadoc-plugin | minor | `3.1.1` -> `3.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.
---
- [ ] 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).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 86cf0c47..81b326d1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -216,7 +216,7 @@
org.apache.maven.pluginsmaven-javadoc-plugin
- 3.1.1
+ 3.2.0html
From 2fdf6046ff3bbdc4c5c1b8e40dc20b9e74fe8f9b Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Mon, 16 Mar 2020 08:28:37 -0700
Subject: [PATCH 15/17] chore: update PR template (#82)
This PR was generated using Autosynth. :rainbow:
Log from Synthtool
```
2020-03-14 02:14:56,006 synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py.
2020-03-14 02:14:56,063 synthtool > Ensuring dependencies.
2020-03-14 02:14:56,068 synthtool > Pulling artman image.
latest: Pulling from googleapis/artman
Digest: sha256:f54b7644a1d2e7a37b23f5c0dfe9bba473e41c675002a507a244389e27487ca9
Status: Image is up to date for googleapis/artman:latest
2020-03-14 02:14:57,019 synthtool > Cloning googleapis.
2020-03-14 02:14:57,626 synthtool > Running generator for google/cloud/webrisk/artman_webrisk_v1beta1.yaml.
2020-03-14 02:15:06,235 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java.
2020-03-14 02:15:06,237 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-14 02:15:06,238 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-14 02:15:06,238 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-14 02:15:06,238 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-14 02:15:06,238 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-14 02:15:06,239 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-14 02:15:06,239 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-14 02:15:06,239 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-14 02:15:06,239 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-14 02:15:06,240 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-14 02:15:06,240 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-14 02:15:06,240 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-14 02:15:06,240 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-14 02:15:06,240 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-14 02:15:06,241 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-14 02:15:06,241 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-14 02:15:06,241 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-14 02:15:06,241 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-14 02:15:06,242 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-14 02:15:06,242 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-14 02:15:06,242 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-14 02:15:06,242 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-14 02:15:06,243 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-14 02:15:06,243 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-14 02:15:06,243 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-14 02:15:06,248 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-14 02:15:06,249 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-14 02:15:06,262 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-14 02:15:06,262 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-14 02:15:06,263 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-14 02:15:06,264 synthtool > Running java formatter on 10 files
2020-03-14 02:15:08,577 synthtool > Running java formatter on 1 files
2020-03-14 02:15:10,598 synthtool > Running java formatter on 25 files
2020-03-14 02:15:15,477 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
2020-03-14 02:15:16,014 synthtool > Wrote metadata to synth.metadata.
```
---
.github/PULL_REQUEST_TEMPLATE.md | 8 +++++++-
synth.metadata | 12 ++++++------
2 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 0bd0ee06..63fec1c3 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1 +1,7 @@
-Fixes # (it's a good idea to open an issue first for context and/or discussion)
\ No newline at end of file
+Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
+- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-webrisk/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
+- [ ] Ensure the tests and linter pass
+- [ ] Code coverage does not decrease (if any source code was changed)
+- [ ] Appropriate docs were updated (if necessary)
+
+Fixes # ☕️
diff --git a/synth.metadata b/synth.metadata
index 6d3b914c..e9bf5040 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -1,20 +1,20 @@
{
- "updateTime": "2020-02-28T20:25:52.044449Z",
+ "updateTime": "2020-03-14T09:15:16.013452Z",
"sources": [
{
"generator": {
"name": "artman",
- "version": "0.46.0",
- "dockerImage": "googleapis/artman@sha256:6248a21fba8f0d618c3b032669cec2618e684b66922bb70391fe08c41b05f6ee"
+ "version": "1.1.0",
+ "dockerImage": "googleapis/artman@sha256:f54b7644a1d2e7a37b23f5c0dfe9bba473e41c675002a507a244389e27487ca9"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "e9e90a787703ec5d388902e2cb796aaed3a385b4",
- "internalRef": "297671458",
- "log": "e9e90a787703ec5d388902e2cb796aaed3a385b4\nDialogflow weekly v2/v2beta1 library update:\n - adding get validation result\n - adding field mask override control for output audio config\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 297671458\n\n1a2b05cc3541a5f7714529c665aecc3ea042c646\nAdding .yaml and .json config files.\n\nPiperOrigin-RevId: 297570622\n\ndfe1cf7be44dee31d78f78e485d8c95430981d6e\nPublish `QueryOptions` proto.\n\nIntroduced a `query_options` input in `ExecuteSqlRequest`.\n\nPiperOrigin-RevId: 297497710\n\ndafc905f71e5d46f500b41ed715aad585be062c3\npubsub: revert pull init_rpc_timeout & max_rpc_timeout back to 25 seconds and reset multiplier to 1.0\n\nPiperOrigin-RevId: 297486523\n\nf077632ba7fee588922d9e8717ee272039be126d\nfirestore: add update_transform\n\nPiperOrigin-RevId: 297405063\n\n0aba1900ffef672ec5f0da677cf590ee5686e13b\ncluster: use square brace for cross-reference\n\nPiperOrigin-RevId: 297204568\n\n5dac2da18f6325cbaed54603c43f0667ecd50247\nRestore retry params in gapic config because securitycenter has non-standard default retry params.\nRestore a few retry codes for some idempotent methods.\n\nPiperOrigin-RevId: 297196720\n\n1eb61455530252bba8b2c8d4bc9832960e5a56f6\npubsub: v1 replace IAM HTTP rules\n\nPiperOrigin-RevId: 297188590\n\n80b2d25f8d43d9d47024ff06ead7f7166548a7ba\nDialogflow weekly v2/v2beta1 library update:\n - updates to mega agent api\n - adding field mask override control for output audio config\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 297187629\n\n0b1876b35e98f560f9c9ca9797955f020238a092\nUse an older version of protoc-docs-plugin that is compatible with the specified gapic-generator and protobuf versions.\n\nprotoc-docs-plugin >=0.4.0 (see commit https://github.com/googleapis/protoc-docs-plugin/commit/979f03ede6678c487337f3d7e88bae58df5207af) is incompatible with protobuf 3.9.1.\n\nPiperOrigin-RevId: 296986742\n\n"
+ "sha": "8386761d09819b665b6a6e1e6d6ff884bc8ff781",
+ "internalRef": "300843960",
+ "log": "8386761d09819b665b6a6e1e6d6ff884bc8ff781\nfeat: chromeos/modlab publish protos and config for Chrome OS Moblab API.\n\nPiperOrigin-RevId: 300843960\n\nb2e2bc62fab90e6829e62d3d189906d9b79899e4\nUpdates to GCS gRPC API spec:\n\n1. Changed GetIamPolicy and TestBucketIamPermissions to use wrapper messages around google.iam.v1 IAM requests messages, and added CommonRequestParams. This lets us support RequesterPays buckets.\n2. Added a metadata field to GetObjectMediaResponse, to support resuming an object media read safely (by extracting the generation of the object being read, and using it in the resumed read request).\n\nPiperOrigin-RevId: 300817706\n\n7fd916ce12335cc9e784bb9452a8602d00b2516c\nAdd deprecated_collections field for backward-compatiblity in PHP and monolith-generated Python and Ruby clients.\n\nGenerate TopicName class in Java which covers the functionality of both ProjectTopicName and DeletedTopicName. Introduce breaking changes to be fixed by synth.py.\n\nDelete default retry parameters.\n\nRetry codes defs can be deleted once # https://github.com/googleapis/gapic-generator/issues/3137 is fixed.\n\nPiperOrigin-RevId: 300813135\n\n047d3a8ac7f75383855df0166144f891d7af08d9\nfix!: google/rpc refactor ErrorInfo.type to ErrorInfo.reason and comment updates.\n\nPiperOrigin-RevId: 300773211\n\nfae4bb6d5aac52aabe5f0bb4396466c2304ea6f6\nAdding RetryPolicy to pubsub.proto\n\nPiperOrigin-RevId: 300769420\n\n7d569be2928dbd72b4e261bf9e468f23afd2b950\nAdding additional protocol buffer annotations to v3.\n\nPiperOrigin-RevId: 300718800\n\n13942d1a85a337515040a03c5108993087dc0e4f\nAdd logging protos for Recommender v1.\n\nPiperOrigin-RevId: 300689896\n\na1a573c3eecfe2c404892bfa61a32dd0c9fb22b6\nfix: change go package to use cloud.google.com/go/maps\n\nPiperOrigin-RevId: 300661825\n\nc6fbac11afa0c7ab2972d9df181493875c566f77\nfeat: publish documentai/v1beta2 protos\n\nPiperOrigin-RevId: 300656808\n\n5202a9e0d9903f49e900f20fe5c7f4e42dd6588f\nProtos for v1beta1 release of Cloud Security Center Settings API\n\nPiperOrigin-RevId: 300580858\n\n83518e18655d9d4ac044acbda063cc6ecdb63ef8\nAdds gapic.yaml file and BUILD.bazel file.\n\nPiperOrigin-RevId: 300554200\n\n836c196dc8ef8354bbfb5f30696bd3477e8db5e2\nRegenerate recommender v1beta1 gRPC ServiceConfig file for Insights methods.\n\nPiperOrigin-RevId: 300549302\n\n34a5450c591b6be3d6566f25ac31caa5211b2f3f\nIncreases the default timeout from 20s to 30s for MetricService\n\nPiperOrigin-RevId: 300474272\n\n5d8bffe87cd01ba390c32f1714230e5a95d5991d\nfeat: use the latest gapic-generator in WORKSPACE for bazel build.\n\nPiperOrigin-RevId: 300461878\n\nd631c651e3bcfac5d371e8560c27648f7b3e2364\nUpdated the GAPIC configs to include parameters for Backups APIs.\n\nPiperOrigin-RevId: 300443402\n\n678afc7055c1adea9b7b54519f3bdb228013f918\nAdding Game Servers v1beta API.\n\nPiperOrigin-RevId: 300433218\n\n80d2bd2c652a5e213302041b0620aff423132589\nEnable proto annotation and gapic v2 for talent API.\n\nPiperOrigin-RevId: 300393997\n\n85e454be7a353f7fe1bf2b0affb753305785b872\ndocs(google/maps/roads): remove mention of nonexported api\n\nPiperOrigin-RevId: 300367734\n\nbf839ae632e0f263a729569e44be4b38b1c85f9c\nAdding protocol buffer annotations and updated config info for v1 and v2.\n\nPiperOrigin-RevId: 300276913\n\n309b899ca18a4c604bce63882a161d44854da549\nPublish `Backup` APIs and protos.\n\nPiperOrigin-RevId: 300246038\n\neced64c3f122421350b4aca68a28e89121d20db8\nadd PHP client libraries\n\nPiperOrigin-RevId: 300193634\n\n7727af0e39df1ae9ad715895c8576d7b65cf6c6d\nfeat: use the latest gapic-generator and protoc-java-resource-name-plugin in googleapis/WORKSPACE.\n\nPiperOrigin-RevId: 300188410\n\n2a25aa351dd5b5fe14895266aff5824d90ce757b\nBreaking change: remove the ProjectOrTenant resource and its references.\n\nPiperOrigin-RevId: 300182152\n\na499dbb28546379415f51803505cfb6123477e71\nUpdate web risk v1 gapic config and BUILD file.\n\nPiperOrigin-RevId: 300152177\n\n52701da10fec2a5f9796e8d12518c0fe574488fe\nFix: apply appropriate namespace/package options for C#, PHP and Ruby.\n\nPiperOrigin-RevId: 300123508\n\n365c029b8cdb63f7751b92ab490f1976e616105c\nAdd CC targets to the kms protos.\n\nThese are needed by go/tink.\n\nPiperOrigin-RevId: 300038469\n\n4ba9aa8a4a1413b88dca5a8fa931824ee9c284e6\nExpose logo recognition API proto for GA.\n\nPiperOrigin-RevId: 299971671\n\n1c9fc2c9e03dadf15f16b1c4f570955bdcebe00e\nAdding ruby_package option to accessapproval.proto for the Ruby client libraries generation.\n\nPiperOrigin-RevId: 299955924\n\n1cc6f0a7bfb147e6f2ede911d9b01e7a9923b719\nbuild(google/maps/routes): generate api clients\n\nPiperOrigin-RevId: 299955905\n\n29a47c965aac79e3fe8e3314482ca0b5967680f0\nIncrease timeout to 1hr for method `dropRange` in bigtable/admin/v2, which is\nsynced with the timeout setting in gapic_yaml.\n\nPiperOrigin-RevId: 299917154\n\n8f631c4c70a60a9c7da3749511ee4ad432b62898\nbuild(google/maps/roads/v1op): move go to monorepo pattern\n\nPiperOrigin-RevId: 299885195\n\nd66816518844ebbf63504c9e8dfc7133921dd2cd\nbuild(google/maps/roads/v1op): Add bazel build files to generate clients.\n\nPiperOrigin-RevId: 299851148\n\naf7dff701fabe029672168649c62356cf1bb43d0\nAdd LogPlayerReports and LogImpressions to Playable Locations service\n\nPiperOrigin-RevId: 299724050\n\nb6927fca808f38df32a642c560082f5bf6538ced\nUpdate BigQuery Connection API v1beta1 proto: added credential to CloudSqlProperties.\n\nPiperOrigin-RevId: 299503150\n\n91e1fb5ef9829c0c7a64bfa5bde330e6ed594378\nchore: update protobuf (protoc) version to 3.11.2\n\nPiperOrigin-RevId: 299404145\n\n30e36b4bee6749c4799f4fc1a51cc8f058ba167d\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 299399890\n\nffbb493674099f265693872ae250711b2238090c\nfeat: cloudbuild/v1 add new fields and annotate OUTPUT_OUT fields.\n\nPiperOrigin-RevId: 299397780\n\nbc973a15818e00c19e121959832676e9b7607456\nbazel: Fix broken common dependency\n\nPiperOrigin-RevId: 299397431\n\n71094a343e3b962e744aa49eb9338219537474e4\nchore: bigtable/admin/v2 publish retry config\n\nPiperOrigin-RevId: 299391875\n\n8f488efd7bda33885cb674ddd023b3678c40bd82\nfeat: Migrate logging to GAPIC v2; release new features.\n\nIMPORTANT: This is a breaking change for client libraries\nin all languages.\n\nCommitter: @lukesneeringer, @jskeet\nPiperOrigin-RevId: 299370279\n\n007605bf9ad3a1fd775014ebefbf7f1e6b31ee71\nUpdate API for bigqueryreservation v1beta1.\n- Adds flex capacity commitment plan to CapacityCommitment.\n- Adds methods for getting and updating BiReservations.\n- Adds methods for updating/splitting/merging CapacityCommitments.\n\nPiperOrigin-RevId: 299368059\n\nf0b581b5bdf803e45201ecdb3688b60e381628a8\nfix: recommendationengine/v1beta1 update some comments\n\nPiperOrigin-RevId: 299181282\n\n10e9a0a833dc85ff8f05b2c67ebe5ac785fe04ff\nbuild: add generated BUILD file for Routes Preferred API\n\nPiperOrigin-RevId: 299164808\n\n86738c956a8238d7c77f729be78b0ed887a6c913\npublish v1p1beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299152383\n\n73d9f2ad4591de45c2e1f352bc99d70cbd2a6d95\npublish v1: update with absolute address in comments\n\nPiperOrigin-RevId: 299147194\n\nd2158f24cb77b0b0ccfe68af784c6a628705e3c6\npublish v1beta2: update with absolute address in comments\n\nPiperOrigin-RevId: 299147086\n\n7fca61292c11b4cd5b352cee1a50bf88819dd63b\npublish v1p2beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299146903\n\n583b7321624736e2c490e328f4b1957335779295\npublish v1p3beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299146674\n\n638253bf86d1ce1c314108a089b7351440c2f0bf\nfix: add java_multiple_files option for automl text_sentiment.proto\n\nPiperOrigin-RevId: 298971070\n\n373d655703bf914fb8b0b1cc4071d772bac0e0d1\nUpdate Recs AI Beta public bazel file\n\nPiperOrigin-RevId: 298961623\n\ndcc5d00fc8a8d8b56f16194d7c682027b2c66a3b\nfix: add java_multiple_files option for automl classification.proto\n\nPiperOrigin-RevId: 298953301\n\na3f791827266f3496a6a5201d58adc4bb265c2a3\nchore: automl/v1 publish annotations and retry config\n\nPiperOrigin-RevId: 298942178\n\n01c681586d8d6dbd60155289b587aee678530bd9\nMark return_immediately in PullRequest deprecated.\n\nPiperOrigin-RevId: 298893281\n\nc9f5e9c4bfed54bbd09227e990e7bded5f90f31c\nRemove out of date documentation for predicate support on the Storage API\n\nPiperOrigin-RevId: 298883309\n\nfd5b3b8238d783b04692a113ffe07c0363f5de0f\ngenerate webrisk v1 proto\n\nPiperOrigin-RevId: 298847934\n\n541b1ded4abadcc38e8178680b0677f65594ea6f\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 298686266\n\nc0d171acecb4f5b0bfd2c4ca34fc54716574e300\n Updated to include the Notification v1 API.\n\nPiperOrigin-RevId: 298652775\n\n2346a9186c0bff2c9cc439f2459d558068637e05\nAdd Service Directory v1beta1 protos and configs\n\nPiperOrigin-RevId: 298625638\n\na78ed801b82a5c6d9c5368e24b1412212e541bb7\nPublishing v3 protos and configs.\n\nPiperOrigin-RevId: 298607357\n\n4a180bfff8a21645b3a935c2756e8d6ab18a74e0\nautoml/v1beta1 publish proto updates\n\nPiperOrigin-RevId: 298484782\n\n6de6e938b7df1cd62396563a067334abeedb9676\nchore: use the latest gapic-generator and protoc-java-resource-name-plugin in Bazel workspace.\n\nPiperOrigin-RevId: 298474513\n\n244ab2b83a82076a1fa7be63b7e0671af73f5c02\nAdds service config definition for bigqueryreservation v1\n\nPiperOrigin-RevId: 298455048\n\n83c6f84035ee0f80eaa44d8b688a010461cc4080\nUpdate google/api/auth.proto to make AuthProvider to have JwtLocation\n\nPiperOrigin-RevId: 297918498\n\n"
}
},
{
From 4d888599519827c8d5a5a6199d711d70128bf61c Mon Sep 17 00:00:00 2001
From: Jeff Ching
Date: Mon, 16 Mar 2020 11:10:49 -0700
Subject: [PATCH 16/17] feat(v1): add v1 client (#84)
---
google-cloud-webrisk-bom/pom.xml | 11 +-
google-cloud-webrisk/pom.xml | 9 +
.../webrisk/v1/WebRiskServiceClient.java | 576 ++++
.../webrisk/v1/WebRiskServiceSettings.java | 221 ++
.../google/cloud/webrisk/v1/package-info.java | 43 +
.../GrpcWebRiskServiceCallableFactory.java | 115 +
.../v1/stub/GrpcWebRiskServiceStub.java | 230 ++
.../webrisk/v1/stub/WebRiskServiceStub.java | 60 +
.../v1/stub/WebRiskServiceStubSettings.java | 357 +++
.../cloud/webrisk/v1/MockWebRiskService.java | 57 +
.../webrisk/v1/MockWebRiskServiceImpl.java | 127 +
.../webrisk/v1/WebRiskServiceClientTest.java | 262 ++
grpc-google-cloud-webrisk-v1/pom.xml | 56 +
.../google/webrisk/v1/WebRiskServiceGrpc.java | 763 +++++
pom.xml | 12 +
proto-google-cloud-webrisk-v1/pom.xml | 33 +
.../google/webrisk/v1/CompressionType.java | 172 ++
.../v1/ComputeThreatListDiffRequest.java | 2164 ++++++++++++++
...ComputeThreatListDiffRequestOrBuilder.java | 112 +
.../v1/ComputeThreatListDiffResponse.java | 2622 +++++++++++++++++
...omputeThreatListDiffResponseOrBuilder.java | 230 ++
.../webrisk/v1/CreateSubmissionRequest.java | 950 ++++++
.../v1/CreateSubmissionRequestOrBuilder.java | 97 +
.../com/google/webrisk/v1/ProjectName.java | 162 +
.../java/com/google/webrisk/v1/RawHashes.java | 658 +++++
.../google/webrisk/v1/RawHashesOrBuilder.java | 55 +
.../com/google/webrisk/v1/RawIndices.java | 698 +++++
.../webrisk/v1/RawIndicesOrBuilder.java | 63 +
.../google/webrisk/v1/RiceDeltaEncoding.java | 832 ++++++
.../v1/RiceDeltaEncodingOrBuilder.java | 82 +
.../webrisk/v1/SearchHashesRequest.java | 971 ++++++
.../v1/SearchHashesRequestOrBuilder.java | 112 +
.../webrisk/v1/SearchHashesResponse.java | 2601 ++++++++++++++++
.../v1/SearchHashesResponseOrBuilder.java | 120 +
.../google/webrisk/v1/SearchUrisRequest.java | 1051 +++++++
.../v1/SearchUrisRequestOrBuilder.java | 123 +
.../google/webrisk/v1/SearchUrisResponse.java | 1933 ++++++++++++
.../v1/SearchUrisResponseOrBuilder.java | 60 +
.../com/google/webrisk/v1/Submission.java | 628 ++++
.../webrisk/v1/SubmissionOrBuilder.java | 50 +
.../webrisk/v1/ThreatEntryAdditions.java | 1263 ++++++++
.../v1/ThreatEntryAdditionsOrBuilder.java | 122 +
.../webrisk/v1/ThreatEntryRemovals.java | 1037 +++++++
.../v1/ThreatEntryRemovalsOrBuilder.java | 104 +
.../com/google/webrisk/v1/ThreatType.java | 195 ++
.../com/google/webrisk/v1/WebRiskProto.java | 377 +++
.../google/cloud/webrisk/v1/webrisk.proto | 352 +++
synth.metadata | 24 +-
synth.py | 6 +-
49 files changed, 22952 insertions(+), 6 deletions(-)
create mode 100644 google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceClient.java
create mode 100644 google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceSettings.java
create mode 100644 google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/package-info.java
create mode 100644 google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/GrpcWebRiskServiceCallableFactory.java
create mode 100644 google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/GrpcWebRiskServiceStub.java
create mode 100644 google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStub.java
create mode 100644 google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java
create mode 100644 google-cloud-webrisk/src/test/java/com/google/cloud/webrisk/v1/MockWebRiskService.java
create mode 100644 google-cloud-webrisk/src/test/java/com/google/cloud/webrisk/v1/MockWebRiskServiceImpl.java
create mode 100644 google-cloud-webrisk/src/test/java/com/google/cloud/webrisk/v1/WebRiskServiceClientTest.java
create mode 100644 grpc-google-cloud-webrisk-v1/pom.xml
create mode 100644 grpc-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/WebRiskServiceGrpc.java
create mode 100644 proto-google-cloud-webrisk-v1/pom.xml
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/CompressionType.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ComputeThreatListDiffRequest.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ComputeThreatListDiffRequestOrBuilder.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ComputeThreatListDiffResponse.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ComputeThreatListDiffResponseOrBuilder.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/CreateSubmissionRequest.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/CreateSubmissionRequestOrBuilder.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ProjectName.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/RawHashes.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/RawHashesOrBuilder.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/RawIndices.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/RawIndicesOrBuilder.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/RiceDeltaEncoding.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/RiceDeltaEncodingOrBuilder.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/SearchHashesRequest.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/SearchHashesRequestOrBuilder.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/SearchHashesResponse.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/SearchHashesResponseOrBuilder.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/SearchUrisRequest.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/SearchUrisRequestOrBuilder.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/SearchUrisResponse.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/SearchUrisResponseOrBuilder.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/Submission.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/SubmissionOrBuilder.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ThreatEntryAdditions.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ThreatEntryAdditionsOrBuilder.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ThreatEntryRemovals.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ThreatEntryRemovalsOrBuilder.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ThreatType.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/WebRiskProto.java
create mode 100644 proto-google-cloud-webrisk-v1/src/main/proto/google/cloud/webrisk/v1/webrisk.proto
diff --git a/google-cloud-webrisk-bom/pom.xml b/google-cloud-webrisk-bom/pom.xml
index a9f40273..75c6e2bb 100644
--- a/google-cloud-webrisk-bom/pom.xml
+++ b/google-cloud-webrisk-bom/pom.xml
@@ -60,17 +60,26 @@
-
com.google.cloudgoogle-cloud-webrisk0.32.2-SNAPSHOT
+
+ com.google.api.grpc
+ grpc-google-cloud-webrisk-v1
+ 0.32.2-SNAPSHOT
+ com.google.api.grpcgrpc-google-cloud-webrisk-v1beta10.32.2-SNAPSHOT
+
+ com.google.api.grpc
+ proto-google-cloud-webrisk-v1
+ 0.32.2-SNAPSHOT
+ com.google.api.grpcproto-google-cloud-webrisk-v1beta1
diff --git a/google-cloud-webrisk/pom.xml b/google-cloud-webrisk/pom.xml
index 0f777278..55339a60 100644
--- a/google-cloud-webrisk/pom.xml
+++ b/google-cloud-webrisk/pom.xml
@@ -42,6 +42,10 @@
proto-google-common-protos
+
+ com.google.api.grpc
+ proto-google-cloud-webrisk-v1
+ com.google.api.grpcproto-google-cloud-webrisk-v1beta1
@@ -70,6 +74,11 @@
test
+
+ com.google.api.grpc
+ grpc-google-cloud-webrisk-v1
+ test
+ com.google.api.grpcgrpc-google-cloud-webrisk-v1beta1
diff --git a/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceClient.java b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceClient.java
new file mode 100644
index 00000000..ce158814
--- /dev/null
+++ b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceClient.java
@@ -0,0 +1,576 @@
+/*
+ * Copyright 2020 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
+ *
+ * https://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.
+ */
+package com.google.cloud.webrisk.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.webrisk.v1.stub.WebRiskServiceStub;
+import com.google.cloud.webrisk.v1.stub.WebRiskServiceStubSettings;
+import com.google.protobuf.ByteString;
+import com.google.webrisk.v1.ComputeThreatListDiffRequest;
+import com.google.webrisk.v1.ComputeThreatListDiffResponse;
+import com.google.webrisk.v1.CreateSubmissionRequest;
+import com.google.webrisk.v1.ProjectName;
+import com.google.webrisk.v1.SearchHashesRequest;
+import com.google.webrisk.v1.SearchHashesResponse;
+import com.google.webrisk.v1.SearchUrisRequest;
+import com.google.webrisk.v1.SearchUrisResponse;
+import com.google.webrisk.v1.Submission;
+import com.google.webrisk.v1.ThreatType;
+import java.io.IOException;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND SERVICE
+/**
+ * Service Description: Web Risk API defines an interface to detect malicious URLs on your website
+ * and in client applications.
+ *
+ *
This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ *
Note: close() needs to be called on the webRiskServiceClient object to clean up resources such
+ * as threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ *
The surface of this class includes several types of Java methods for each of the API's
+ * methods:
+ *
+ *
+ *
A "flattened" method. With this type of method, the fields of the request type have been
+ * converted into function parameters. It may be the case that not all fields are available as
+ * parameters, and not every API method will have a flattened method entry point.
+ *
A "request object" method. This type of method only takes one parameter, a request object,
+ * which must be constructed before the call. Not every API method will have a request object
+ * method.
+ *
A "callable" method. This type of method takes no parameters and returns an immutable API
+ * callable object, which can be used to initiate calls to the service.
+ *
+ *
+ *
See the individual methods for example code.
+ *
+ *
Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ *
This class can be customized by passing in a custom instance of WebRiskServiceSettings to
+ * create(). For example:
+ *
+ *
+ */
+@Generated("by gapic-generator")
+@BetaApi
+public class WebRiskServiceClient implements BackgroundResource {
+ private final WebRiskServiceSettings settings;
+ private final WebRiskServiceStub stub;
+
+ /** Constructs an instance of WebRiskServiceClient with default settings. */
+ public static final WebRiskServiceClient create() throws IOException {
+ return create(WebRiskServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of WebRiskServiceClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final WebRiskServiceClient create(WebRiskServiceSettings settings)
+ throws IOException {
+ return new WebRiskServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of WebRiskServiceClient, using the given stub for making calls. This is
+ * for advanced usage - prefer to use WebRiskServiceSettings}.
+ */
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public static final WebRiskServiceClient create(WebRiskServiceStub stub) {
+ return new WebRiskServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of WebRiskServiceClient, using the given settings. This is protected so
+ * that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected WebRiskServiceClient(WebRiskServiceSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((WebRiskServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ protected WebRiskServiceClient(WebRiskServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final WebRiskServiceSettings getSettings() {
+ return settings;
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public WebRiskServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Gets the most recent threat list diffs. These diffs should be applied to a local database of
+ * hashes to keep it up-to-date. If the local database is empty or excessively out-of-date, a
+ * complete snapshot of the database will be returned. This Method only updates a single
+ * ThreatList at a time. To update multiple ThreatList databases, this method needs to be called
+ * once for each list.
+ *
+ *
+ *
+ * @param threatType Required. The threat list to update. Only a single ThreatType should be
+ * specified.
+ * @param versionToken The current version token of the client for the requested list (the client
+ * version that was received from the last successful diff). If the client does not have a
+ * version token (this is the first time calling ComputeThreatListDiff), this may be left
+ * empty and a full database snapshot will be returned.
+ * @param constraints Required. The constraints associated with this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ComputeThreatListDiffResponse computeThreatListDiff(
+ ThreatType threatType,
+ ByteString versionToken,
+ ComputeThreatListDiffRequest.Constraints constraints) {
+ ComputeThreatListDiffRequest request =
+ ComputeThreatListDiffRequest.newBuilder()
+ .setThreatType(threatType)
+ .setVersionToken(versionToken)
+ .setConstraints(constraints)
+ .build();
+ return computeThreatListDiff(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Gets the most recent threat list diffs. These diffs should be applied to a local database of
+ * hashes to keep it up-to-date. If the local database is empty or excessively out-of-date, a
+ * complete snapshot of the database will be returned. This Method only updates a single
+ * ThreatList at a time. To update multiple ThreatList databases, this method needs to be called
+ * once for each list.
+ *
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ComputeThreatListDiffResponse computeThreatListDiff(
+ ComputeThreatListDiffRequest request) {
+ return computeThreatListDiffCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Gets the most recent threat list diffs. These diffs should be applied to a local database of
+ * hashes to keep it up-to-date. If the local database is empty or excessively out-of-date, a
+ * complete snapshot of the database will be returned. This Method only updates a single
+ * ThreatList at a time. To update multiple ThreatList databases, this method needs to be called
+ * once for each list.
+ *
+ *
+ */
+ public final UnaryCallable
+ computeThreatListDiffCallable() {
+ return stub.computeThreatListDiffCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * This method is used to check whether a URI is on a given threatList. Multiple threatLists may
+ * be searched in a single query. The response will list all requested threatLists the URI was
+ * found to match. If the URI is not found on any of the requested ThreatList an empty response
+ * will be returned.
+ *
+ *
+ *
+ * @param uri Required. The URI to be checked for matches.
+ * @param threatTypes Required. The ThreatLists to search in. Multiple ThreatLists may be
+ * specified.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SearchUrisResponse searchUris(String uri, List threatTypes) {
+ SearchUrisRequest request =
+ SearchUrisRequest.newBuilder().setUri(uri).addAllThreatTypes(threatTypes).build();
+ return searchUris(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * This method is used to check whether a URI is on a given threatList. Multiple threatLists may
+ * be searched in a single query. The response will list all requested threatLists the URI was
+ * found to match. If the URI is not found on any of the requested ThreatList an empty response
+ * will be returned.
+ *
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SearchUrisResponse searchUris(SearchUrisRequest request) {
+ return searchUrisCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * This method is used to check whether a URI is on a given threatList. Multiple threatLists may
+ * be searched in a single query. The response will list all requested threatLists the URI was
+ * found to match. If the URI is not found on any of the requested ThreatList an empty response
+ * will be returned.
+ *
+ *
+ */
+ public final UnaryCallable searchUrisCallable() {
+ return stub.searchUrisCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Gets the full hashes that match the requested hash prefix. This is used after a hash prefix is
+ * looked up in a threatList and there is a match. The client side threatList only holds partial
+ * hashes so the client must query this method to determine if there is a full hash match of a
+ * threat.
+ *
+ *
+ *
+ * @param hashPrefix A hash prefix, consisting of the most significant 4-32 bytes of a SHA256
+ * hash. For JSON requests, this field is base64-encoded.
+ * @param threatTypes Required. The ThreatLists to search in. Multiple ThreatLists may be
+ * specified.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SearchHashesResponse searchHashes(
+ ByteString hashPrefix, List threatTypes) {
+ SearchHashesRequest request =
+ SearchHashesRequest.newBuilder()
+ .setHashPrefix(hashPrefix)
+ .addAllThreatTypes(threatTypes)
+ .build();
+ return searchHashes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Gets the full hashes that match the requested hash prefix. This is used after a hash prefix is
+ * looked up in a threatList and there is a match. The client side threatList only holds partial
+ * hashes so the client must query this method to determine if there is a full hash match of a
+ * threat.
+ *
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SearchHashesResponse searchHashes(SearchHashesRequest request) {
+ return searchHashesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Gets the full hashes that match the requested hash prefix. This is used after a hash prefix is
+ * looked up in a threatList and there is a match. The client side threatList only holds partial
+ * hashes so the client must query this method to determine if there is a full hash match of a
+ * threat.
+ *
+ *
+ */
+ public final UnaryCallable searchHashesCallable() {
+ return stub.searchHashesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Creates a Submission of a URI suspected of containing phishing content to be reviewed. If the
+ * result verifies the existence of malicious phishing content, the site will be added to the
+ * [Google's Social Engineering lists](https://support.google.com/webmasters/answer/6350487/) in
+ * order to protect users that could get exposed to this threat in the future. Only projects with
+ * CREATE_SUBMISSION_USERS visibility can use this method.
+ *
+ *
+ *
+ * @param parent Required. The name of the project that is making the submission. This string is
+ * in the format "projects/{project_number}".
+ * @param submission Required. The submission that contains the content of the phishing report.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Submission createSubmission(ProjectName parent, Submission submission) {
+ CreateSubmissionRequest request =
+ CreateSubmissionRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setSubmission(submission)
+ .build();
+ return createSubmission(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Creates a Submission of a URI suspected of containing phishing content to be reviewed. If the
+ * result verifies the existence of malicious phishing content, the site will be added to the
+ * [Google's Social Engineering lists](https://support.google.com/webmasters/answer/6350487/) in
+ * order to protect users that could get exposed to this threat in the future. Only projects with
+ * CREATE_SUBMISSION_USERS visibility can use this method.
+ *
+ *
+ *
+ * @param parent Required. The name of the project that is making the submission. This string is
+ * in the format "projects/{project_number}".
+ * @param submission Required. The submission that contains the content of the phishing report.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Submission createSubmission(String parent, Submission submission) {
+ CreateSubmissionRequest request =
+ CreateSubmissionRequest.newBuilder().setParent(parent).setSubmission(submission).build();
+ return createSubmission(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Creates a Submission of a URI suspected of containing phishing content to be reviewed. If the
+ * result verifies the existence of malicious phishing content, the site will be added to the
+ * [Google's Social Engineering lists](https://support.google.com/webmasters/answer/6350487/) in
+ * order to protect users that could get exposed to this threat in the future. Only projects with
+ * CREATE_SUBMISSION_USERS visibility can use this method.
+ *
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Submission createSubmission(CreateSubmissionRequest request) {
+ return createSubmissionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Creates a Submission of a URI suspected of containing phishing content to be reviewed. If the
+ * result verifies the existence of malicious phishing content, the site will be added to the
+ * [Google's Social Engineering lists](https://support.google.com/webmasters/answer/6350487/) in
+ * order to protect users that could get exposed to this threat in the future. Only projects with
+ * CREATE_SUBMISSION_USERS visibility can use this method.
+ *
+ *
+ */
+ public final UnaryCallable createSubmissionCallable() {
+ return stub.createSubmissionCallable();
+ }
+
+ @Override
+ public final void close() {
+ stub.close();
+ }
+
+ @Override
+ public void shutdown() {
+ stub.shutdown();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return stub.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ return stub.isTerminated();
+ }
+
+ @Override
+ public void shutdownNow() {
+ stub.shutdownNow();
+ }
+
+ @Override
+ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
+ return stub.awaitTermination(duration, unit);
+ }
+}
diff --git a/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceSettings.java b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceSettings.java
new file mode 100644
index 00000000..317d3f8a
--- /dev/null
+++ b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/WebRiskServiceSettings.java
@@ -0,0 +1,221 @@
+/*
+ * Copyright 2020 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
+ *
+ * https://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.
+ */
+package com.google.cloud.webrisk.v1;
+
+import com.google.api.core.ApiFunction;
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.GoogleCredentialsProvider;
+import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientSettings;
+import com.google.api.gax.rpc.TransportChannelProvider;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.cloud.webrisk.v1.stub.WebRiskServiceStubSettings;
+import com.google.webrisk.v1.ComputeThreatListDiffRequest;
+import com.google.webrisk.v1.ComputeThreatListDiffResponse;
+import com.google.webrisk.v1.CreateSubmissionRequest;
+import com.google.webrisk.v1.SearchHashesRequest;
+import com.google.webrisk.v1.SearchHashesResponse;
+import com.google.webrisk.v1.SearchUrisRequest;
+import com.google.webrisk.v1.SearchUrisResponse;
+import com.google.webrisk.v1.Submission;
+import java.io.IOException;
+import java.util.List;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+/**
+ * Settings class to configure an instance of {@link WebRiskServiceClient}.
+ *
+ *
The default instance has everything set to sensible defaults:
+ *
+ *
+ *
The default service address (webrisk.googleapis.com) and default port (443) are used.
+ *
Credentials are acquired automatically through Application Default Credentials.
+ *
Retries are configured for idempotent methods but not for non-idempotent methods.
+ *
+ *
+ *
The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ *
For example, to set the total timeout of computeThreatListDiff to 30 seconds:
+ *
+ *
+ */
+@Generated("by gapic-generator")
+@BetaApi
+public class WebRiskServiceSettings extends ClientSettings {
+ /** Returns the object with the settings used for calls to computeThreatListDiff. */
+ public UnaryCallSettings
+ computeThreatListDiffSettings() {
+ return ((WebRiskServiceStubSettings) getStubSettings()).computeThreatListDiffSettings();
+ }
+
+ /** Returns the object with the settings used for calls to searchUris. */
+ public UnaryCallSettings searchUrisSettings() {
+ return ((WebRiskServiceStubSettings) getStubSettings()).searchUrisSettings();
+ }
+
+ /** Returns the object with the settings used for calls to searchHashes. */
+ public UnaryCallSettings searchHashesSettings() {
+ return ((WebRiskServiceStubSettings) getStubSettings()).searchHashesSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createSubmission. */
+ public UnaryCallSettings createSubmissionSettings() {
+ return ((WebRiskServiceStubSettings) getStubSettings()).createSubmissionSettings();
+ }
+
+ public static final WebRiskServiceSettings create(WebRiskServiceStubSettings stub)
+ throws IOException {
+ return new WebRiskServiceSettings.Builder(stub.toBuilder()).build();
+ }
+
+ /** Returns a builder for the default ExecutorProvider for this service. */
+ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
+ return WebRiskServiceStubSettings.defaultExecutorProviderBuilder();
+ }
+
+ /** Returns the default service endpoint. */
+ public static String getDefaultEndpoint() {
+ return WebRiskServiceStubSettings.getDefaultEndpoint();
+ }
+
+ /** Returns the default service scopes. */
+ public static List getDefaultServiceScopes() {
+ return WebRiskServiceStubSettings.getDefaultServiceScopes();
+ }
+
+ /** Returns a builder for the default credentials for this service. */
+ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
+ return WebRiskServiceStubSettings.defaultCredentialsProviderBuilder();
+ }
+
+ /** Returns a builder for the default ChannelProvider for this service. */
+ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
+ return WebRiskServiceStubSettings.defaultGrpcTransportProviderBuilder();
+ }
+
+ public static TransportChannelProvider defaultTransportChannelProvider() {
+ return WebRiskServiceStubSettings.defaultTransportChannelProvider();
+ }
+
+ @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+ return WebRiskServiceStubSettings.defaultApiClientHeaderProviderBuilder();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder() {
+ return Builder.createDefault();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder(ClientContext clientContext) {
+ return new Builder(clientContext);
+ }
+
+ /** Returns a builder containing all the values of this settings class. */
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ protected WebRiskServiceSettings(Builder settingsBuilder) throws IOException {
+ super(settingsBuilder);
+ }
+
+ /** Builder for WebRiskServiceSettings. */
+ public static class Builder extends ClientSettings.Builder {
+ protected Builder() throws IOException {
+ this((ClientContext) null);
+ }
+
+ protected Builder(ClientContext clientContext) {
+ super(WebRiskServiceStubSettings.newBuilder(clientContext));
+ }
+
+ private static Builder createDefault() {
+ return new Builder(WebRiskServiceStubSettings.newBuilder());
+ }
+
+ protected Builder(WebRiskServiceSettings settings) {
+ super(settings.getStubSettings().toBuilder());
+ }
+
+ protected Builder(WebRiskServiceStubSettings.Builder stubSettings) {
+ super(stubSettings);
+ }
+
+ public WebRiskServiceStubSettings.Builder getStubSettingsBuilder() {
+ return ((WebRiskServiceStubSettings.Builder) getStubSettings());
+ }
+
+ // NEXT_MAJOR_VER: remove 'throws Exception'
+ /**
+ * Applies the given settings updater function to all of the unary API methods in this service.
+ *
+ *
Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction, Void> settingsUpdater) throws Exception {
+ super.applyToAllUnaryMethods(
+ getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
+ return this;
+ }
+
+ /** Returns the builder for the settings used for calls to computeThreatListDiff. */
+ public UnaryCallSettings.Builder
+ computeThreatListDiffSettings() {
+ return getStubSettingsBuilder().computeThreatListDiffSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to searchUris. */
+ public UnaryCallSettings.Builder searchUrisSettings() {
+ return getStubSettingsBuilder().searchUrisSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to searchHashes. */
+ public UnaryCallSettings.Builder
+ searchHashesSettings() {
+ return getStubSettingsBuilder().searchHashesSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createSubmission. */
+ public UnaryCallSettings.Builder
+ createSubmissionSettings() {
+ return getStubSettingsBuilder().createSubmissionSettings();
+ }
+
+ @Override
+ public WebRiskServiceSettings build() throws IOException {
+ return new WebRiskServiceSettings(this);
+ }
+ }
+}
diff --git a/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/package-info.java b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/package-info.java
new file mode 100644
index 00000000..0810626b
--- /dev/null
+++ b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/package-info.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2020 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
+ *
+ * https://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.
+ */
+
+/**
+ * A client to Web Risk API.
+ *
+ *
The interfaces provided are listed below, along with usage samples.
+ *
+ *
+ */
+@Generated("by gapic-generator")
+package com.google.cloud.webrisk.v1;
+
+import javax.annotation.Generated;
diff --git a/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/GrpcWebRiskServiceCallableFactory.java b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/GrpcWebRiskServiceCallableFactory.java
new file mode 100644
index 00000000..354a103f
--- /dev/null
+++ b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/GrpcWebRiskServiceCallableFactory.java
@@ -0,0 +1,115 @@
+/*
+ * Copyright 2020 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
+ *
+ * https://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.
+ */
+package com.google.cloud.webrisk.v1.stub;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.grpc.GrpcCallSettings;
+import com.google.api.gax.grpc.GrpcCallableFactory;
+import com.google.api.gax.grpc.GrpcStubCallableFactory;
+import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.BidiStreamingCallable;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientStreamingCallable;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.StreamingCallSettings;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.longrunning.stub.OperationsStub;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+/**
+ * gRPC callable factory implementation for Web Risk API.
+ *
+ *
This class is for advanced usage.
+ */
+@Generated("by gapic-generator")
+@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+public class GrpcWebRiskServiceCallableFactory implements GrpcStubCallableFactory {
+ @Override
+ public UnaryCallable createUnaryCallable(
+ GrpcCallSettings grpcCallSettings,
+ UnaryCallSettings callSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext);
+ }
+
+ @Override
+ public
+ UnaryCallable createPagedCallable(
+ GrpcCallSettings grpcCallSettings,
+ PagedCallSettings pagedCallSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createPagedCallable(
+ grpcCallSettings, pagedCallSettings, clientContext);
+ }
+
+ @Override
+ public UnaryCallable createBatchingCallable(
+ GrpcCallSettings grpcCallSettings,
+ BatchingCallSettings batchingCallSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createBatchingCallable(
+ grpcCallSettings, batchingCallSettings, clientContext);
+ }
+
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ @Override
+ public
+ OperationCallable createOperationCallable(
+ GrpcCallSettings grpcCallSettings,
+ OperationCallSettings operationCallSettings,
+ ClientContext clientContext,
+ OperationsStub operationsStub) {
+ return GrpcCallableFactory.createOperationCallable(
+ grpcCallSettings, operationCallSettings, clientContext, operationsStub);
+ }
+
+ @Override
+ public
+ BidiStreamingCallable createBidiStreamingCallable(
+ GrpcCallSettings grpcCallSettings,
+ StreamingCallSettings streamingCallSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createBidiStreamingCallable(
+ grpcCallSettings, streamingCallSettings, clientContext);
+ }
+
+ @Override
+ public
+ ServerStreamingCallable createServerStreamingCallable(
+ GrpcCallSettings grpcCallSettings,
+ ServerStreamingCallSettings streamingCallSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createServerStreamingCallable(
+ grpcCallSettings, streamingCallSettings, clientContext);
+ }
+
+ @Override
+ public
+ ClientStreamingCallable createClientStreamingCallable(
+ GrpcCallSettings grpcCallSettings,
+ StreamingCallSettings streamingCallSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createClientStreamingCallable(
+ grpcCallSettings, streamingCallSettings, clientContext);
+ }
+}
diff --git a/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/GrpcWebRiskServiceStub.java b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/GrpcWebRiskServiceStub.java
new file mode 100644
index 00000000..7e68d9cd
--- /dev/null
+++ b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/GrpcWebRiskServiceStub.java
@@ -0,0 +1,230 @@
+/*
+ * Copyright 2020 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
+ *
+ * https://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.
+ */
+package com.google.cloud.webrisk.v1.stub;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.core.BackgroundResourceAggregation;
+import com.google.api.gax.grpc.GrpcCallSettings;
+import com.google.api.gax.grpc.GrpcStubCallableFactory;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.RequestParamsExtractor;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.common.collect.ImmutableMap;
+import com.google.webrisk.v1.ComputeThreatListDiffRequest;
+import com.google.webrisk.v1.ComputeThreatListDiffResponse;
+import com.google.webrisk.v1.CreateSubmissionRequest;
+import com.google.webrisk.v1.SearchHashesRequest;
+import com.google.webrisk.v1.SearchHashesResponse;
+import com.google.webrisk.v1.SearchUrisRequest;
+import com.google.webrisk.v1.SearchUrisResponse;
+import com.google.webrisk.v1.Submission;
+import io.grpc.MethodDescriptor;
+import io.grpc.protobuf.ProtoUtils;
+import java.io.IOException;
+import java.util.Map;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+/**
+ * gRPC stub implementation for Web Risk API.
+ *
+ *
This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator")
+@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+public class GrpcWebRiskServiceStub extends WebRiskServiceStub {
+
+ private static final MethodDescriptor
+ computeThreatListDiffMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.webrisk.v1.WebRiskService/ComputeThreatListDiff")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ComputeThreatListDiffRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ComputeThreatListDiffResponse.getDefaultInstance()))
+ .build();
+ private static final MethodDescriptor
+ searchUrisMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.webrisk.v1.WebRiskService/SearchUris")
+ .setRequestMarshaller(ProtoUtils.marshaller(SearchUrisRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(SearchUrisResponse.getDefaultInstance()))
+ .build();
+ private static final MethodDescriptor
+ searchHashesMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.webrisk.v1.WebRiskService/SearchHashes")
+ .setRequestMarshaller(ProtoUtils.marshaller(SearchHashesRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(SearchHashesResponse.getDefaultInstance()))
+ .build();
+ private static final MethodDescriptor
+ createSubmissionMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.webrisk.v1.WebRiskService/CreateSubmission")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(CreateSubmissionRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Submission.getDefaultInstance()))
+ .build();
+
+ private final BackgroundResource backgroundResources;
+
+ private final UnaryCallable
+ computeThreatListDiffCallable;
+ private final UnaryCallable searchUrisCallable;
+ private final UnaryCallable searchHashesCallable;
+ private final UnaryCallable createSubmissionCallable;
+
+ private final GrpcStubCallableFactory callableFactory;
+
+ public static final GrpcWebRiskServiceStub create(WebRiskServiceStubSettings settings)
+ throws IOException {
+ return new GrpcWebRiskServiceStub(settings, ClientContext.create(settings));
+ }
+
+ public static final GrpcWebRiskServiceStub create(ClientContext clientContext)
+ throws IOException {
+ return new GrpcWebRiskServiceStub(
+ WebRiskServiceStubSettings.newBuilder().build(), clientContext);
+ }
+
+ public static final GrpcWebRiskServiceStub create(
+ ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException {
+ return new GrpcWebRiskServiceStub(
+ WebRiskServiceStubSettings.newBuilder().build(), clientContext, callableFactory);
+ }
+
+ /**
+ * Constructs an instance of GrpcWebRiskServiceStub, using the given settings. This is protected
+ * so that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected GrpcWebRiskServiceStub(WebRiskServiceStubSettings settings, ClientContext clientContext)
+ throws IOException {
+ this(settings, clientContext, new GrpcWebRiskServiceCallableFactory());
+ }
+
+ /**
+ * Constructs an instance of GrpcWebRiskServiceStub, using the given settings. This is protected
+ * so that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected GrpcWebRiskServiceStub(
+ WebRiskServiceStubSettings settings,
+ ClientContext clientContext,
+ GrpcStubCallableFactory callableFactory)
+ throws IOException {
+ this.callableFactory = callableFactory;
+
+ GrpcCallSettings
+ computeThreatListDiffTransportSettings =
+ GrpcCallSettings
+ .newBuilder()
+ .setMethodDescriptor(computeThreatListDiffMethodDescriptor)
+ .build();
+ GrpcCallSettings searchUrisTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(searchUrisMethodDescriptor)
+ .build();
+ GrpcCallSettings searchHashesTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(searchHashesMethodDescriptor)
+ .build();
+ GrpcCallSettings createSubmissionTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(createSubmissionMethodDescriptor)
+ .setParamsExtractor(
+ new RequestParamsExtractor() {
+ @Override
+ public Map extract(CreateSubmissionRequest request) {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ }
+ })
+ .build();
+
+ this.computeThreatListDiffCallable =
+ callableFactory.createUnaryCallable(
+ computeThreatListDiffTransportSettings,
+ settings.computeThreatListDiffSettings(),
+ clientContext);
+ this.searchUrisCallable =
+ callableFactory.createUnaryCallable(
+ searchUrisTransportSettings, settings.searchUrisSettings(), clientContext);
+ this.searchHashesCallable =
+ callableFactory.createUnaryCallable(
+ searchHashesTransportSettings, settings.searchHashesSettings(), clientContext);
+ this.createSubmissionCallable =
+ callableFactory.createUnaryCallable(
+ createSubmissionTransportSettings, settings.createSubmissionSettings(), clientContext);
+
+ backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
+ }
+
+ public UnaryCallable
+ computeThreatListDiffCallable() {
+ return computeThreatListDiffCallable;
+ }
+
+ public UnaryCallable searchUrisCallable() {
+ return searchUrisCallable;
+ }
+
+ public UnaryCallable searchHashesCallable() {
+ return searchHashesCallable;
+ }
+
+ public UnaryCallable createSubmissionCallable() {
+ return createSubmissionCallable;
+ }
+
+ @Override
+ public final void close() {
+ shutdown();
+ }
+
+ @Override
+ public void shutdown() {
+ backgroundResources.shutdown();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return backgroundResources.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ return backgroundResources.isTerminated();
+ }
+
+ @Override
+ public void shutdownNow() {
+ backgroundResources.shutdownNow();
+ }
+
+ @Override
+ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
+ return backgroundResources.awaitTermination(duration, unit);
+ }
+}
diff --git a/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStub.java b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStub.java
new file mode 100644
index 00000000..dd455cf3
--- /dev/null
+++ b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStub.java
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2020 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
+ *
+ * https://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.
+ */
+package com.google.cloud.webrisk.v1.stub;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.webrisk.v1.ComputeThreatListDiffRequest;
+import com.google.webrisk.v1.ComputeThreatListDiffResponse;
+import com.google.webrisk.v1.CreateSubmissionRequest;
+import com.google.webrisk.v1.SearchHashesRequest;
+import com.google.webrisk.v1.SearchHashesResponse;
+import com.google.webrisk.v1.SearchUrisRequest;
+import com.google.webrisk.v1.SearchUrisResponse;
+import com.google.webrisk.v1.Submission;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+/**
+ * Base stub class for Web Risk API.
+ *
+ *
This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator")
+@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+public abstract class WebRiskServiceStub implements BackgroundResource {
+
+ public UnaryCallable
+ computeThreatListDiffCallable() {
+ throw new UnsupportedOperationException("Not implemented: computeThreatListDiffCallable()");
+ }
+
+ public UnaryCallable searchUrisCallable() {
+ throw new UnsupportedOperationException("Not implemented: searchUrisCallable()");
+ }
+
+ public UnaryCallable searchHashesCallable() {
+ throw new UnsupportedOperationException("Not implemented: searchHashesCallable()");
+ }
+
+ public UnaryCallable createSubmissionCallable() {
+ throw new UnsupportedOperationException("Not implemented: createSubmissionCallable()");
+ }
+
+ @Override
+ public abstract void close();
+}
diff --git a/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java
new file mode 100644
index 00000000..3efa99ae
--- /dev/null
+++ b/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/WebRiskServiceStubSettings.java
@@ -0,0 +1,357 @@
+/*
+ * Copyright 2020 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
+ *
+ * https://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.
+ */
+package com.google.cloud.webrisk.v1.stub;
+
+import com.google.api.core.ApiFunction;
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.GaxProperties;
+import com.google.api.gax.core.GoogleCredentialsProvider;
+import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.grpc.GaxGrpcProperties;
+import com.google.api.gax.grpc.GrpcTransportChannel;
+import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
+import com.google.api.gax.retrying.RetrySettings;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.StatusCode;
+import com.google.api.gax.rpc.StubSettings;
+import com.google.api.gax.rpc.TransportChannelProvider;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Lists;
+import com.google.webrisk.v1.ComputeThreatListDiffRequest;
+import com.google.webrisk.v1.ComputeThreatListDiffResponse;
+import com.google.webrisk.v1.CreateSubmissionRequest;
+import com.google.webrisk.v1.SearchHashesRequest;
+import com.google.webrisk.v1.SearchHashesResponse;
+import com.google.webrisk.v1.SearchUrisRequest;
+import com.google.webrisk.v1.SearchUrisResponse;
+import com.google.webrisk.v1.Submission;
+import java.io.IOException;
+import java.util.List;
+import javax.annotation.Generated;
+import org.threeten.bp.Duration;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+/**
+ * Settings class to configure an instance of {@link WebRiskServiceStub}.
+ *
+ *
The default instance has everything set to sensible defaults:
+ *
+ *
+ *
The default service address (webrisk.googleapis.com) and default port (443) are used.
+ *
Credentials are acquired automatically through Application Default Credentials.
+ *
Retries are configured for idempotent methods but not for non-idempotent methods.
+ *
+ *
+ *
The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ *
For example, to set the total timeout of computeThreatListDiff to 30 seconds:
+ *
+ *
+ */
+@Generated("by gapic-generator")
+@BetaApi
+public class WebRiskServiceStubSettings extends StubSettings {
+ /** The default scopes of the service. */
+ private static final ImmutableList DEFAULT_SERVICE_SCOPES =
+ ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
+
+ private final UnaryCallSettings
+ computeThreatListDiffSettings;
+ private final UnaryCallSettings searchUrisSettings;
+ private final UnaryCallSettings searchHashesSettings;
+ private final UnaryCallSettings createSubmissionSettings;
+
+ /** Returns the object with the settings used for calls to computeThreatListDiff. */
+ public UnaryCallSettings
+ computeThreatListDiffSettings() {
+ return computeThreatListDiffSettings;
+ }
+
+ /** Returns the object with the settings used for calls to searchUris. */
+ public UnaryCallSettings searchUrisSettings() {
+ return searchUrisSettings;
+ }
+
+ /** Returns the object with the settings used for calls to searchHashes. */
+ public UnaryCallSettings searchHashesSettings() {
+ return searchHashesSettings;
+ }
+
+ /** Returns the object with the settings used for calls to createSubmission. */
+ public UnaryCallSettings createSubmissionSettings() {
+ return createSubmissionSettings;
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public WebRiskServiceStub createStub() throws IOException {
+ if (getTransportChannelProvider()
+ .getTransportName()
+ .equals(GrpcTransportChannel.getGrpcTransportName())) {
+ return GrpcWebRiskServiceStub.create(this);
+ } else {
+ throw new UnsupportedOperationException(
+ "Transport not supported: " + getTransportChannelProvider().getTransportName());
+ }
+ }
+
+ /** Returns a builder for the default ExecutorProvider for this service. */
+ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
+ return InstantiatingExecutorProvider.newBuilder();
+ }
+
+ /** Returns the default service endpoint. */
+ public static String getDefaultEndpoint() {
+ return "webrisk.googleapis.com:443";
+ }
+
+ /** Returns the default service scopes. */
+ public static List getDefaultServiceScopes() {
+ return DEFAULT_SERVICE_SCOPES;
+ }
+
+ /** Returns a builder for the default credentials for this service. */
+ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
+ return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
+ }
+
+ /** Returns a builder for the default ChannelProvider for this service. */
+ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
+ return InstantiatingGrpcChannelProvider.newBuilder()
+ .setMaxInboundMessageSize(Integer.MAX_VALUE);
+ }
+
+ public static TransportChannelProvider defaultTransportChannelProvider() {
+ return defaultGrpcTransportProviderBuilder().build();
+ }
+
+ @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+ return ApiClientHeaderProvider.newBuilder()
+ .setGeneratedLibToken(
+ "gapic", GaxProperties.getLibraryVersion(WebRiskServiceStubSettings.class))
+ .setTransportToken(
+ GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion());
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder() {
+ return Builder.createDefault();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder(ClientContext clientContext) {
+ return new Builder(clientContext);
+ }
+
+ /** Returns a builder containing all the values of this settings class. */
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ protected WebRiskServiceStubSettings(Builder settingsBuilder) throws IOException {
+ super(settingsBuilder);
+
+ computeThreatListDiffSettings = settingsBuilder.computeThreatListDiffSettings().build();
+ searchUrisSettings = settingsBuilder.searchUrisSettings().build();
+ searchHashesSettings = settingsBuilder.searchHashesSettings().build();
+ createSubmissionSettings = settingsBuilder.createSubmissionSettings().build();
+ }
+
+ /** Builder for WebRiskServiceStubSettings. */
+ public static class Builder extends StubSettings.Builder {
+ private final ImmutableList> unaryMethodSettingsBuilders;
+
+ private final UnaryCallSettings.Builder<
+ ComputeThreatListDiffRequest, ComputeThreatListDiffResponse>
+ computeThreatListDiffSettings;
+ private final UnaryCallSettings.Builder
+ searchUrisSettings;
+ private final UnaryCallSettings.Builder
+ searchHashesSettings;
+ private final UnaryCallSettings.Builder
+ createSubmissionSettings;
+
+ private static final ImmutableMap>
+ RETRYABLE_CODE_DEFINITIONS;
+
+ static {
+ ImmutableMap.Builder> definitions =
+ ImmutableMap.builder();
+ definitions.put(
+ "idempotent",
+ ImmutableSet.copyOf(
+ Lists.newArrayList(
+ StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
+ definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList()));
+ RETRYABLE_CODE_DEFINITIONS = definitions.build();
+ }
+
+ private static final ImmutableMap RETRY_PARAM_DEFINITIONS;
+
+ static {
+ ImmutableMap.Builder definitions = ImmutableMap.builder();
+ RetrySettings settings = null;
+ settings =
+ RetrySettings.newBuilder()
+ .setInitialRetryDelay(Duration.ofMillis(100L))
+ .setRetryDelayMultiplier(1.3)
+ .setMaxRetryDelay(Duration.ofMillis(60000L))
+ .setInitialRpcTimeout(Duration.ofMillis(20000L))
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeout(Duration.ofMillis(20000L))
+ .setTotalTimeout(Duration.ofMillis(600000L))
+ .build();
+ definitions.put("default", settings);
+ RETRY_PARAM_DEFINITIONS = definitions.build();
+ }
+
+ protected Builder() {
+ this((ClientContext) null);
+ }
+
+ protected Builder(ClientContext clientContext) {
+ super(clientContext);
+
+ computeThreatListDiffSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+ searchUrisSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+ searchHashesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+ createSubmissionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+ unaryMethodSettingsBuilders =
+ ImmutableList.>of(
+ computeThreatListDiffSettings,
+ searchUrisSettings,
+ searchHashesSettings,
+ createSubmissionSettings);
+
+ initDefaults(this);
+ }
+
+ private static Builder createDefault() {
+ Builder builder = new Builder((ClientContext) null);
+ builder.setTransportChannelProvider(defaultTransportChannelProvider());
+ builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
+ builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
+ builder.setEndpoint(getDefaultEndpoint());
+ return initDefaults(builder);
+ }
+
+ private static Builder initDefaults(Builder builder) {
+
+ builder
+ .computeThreatListDiffSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+ builder
+ .searchUrisSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+ builder
+ .searchHashesSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+ builder
+ .createSubmissionSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+ return builder;
+ }
+
+ protected Builder(WebRiskServiceStubSettings settings) {
+ super(settings);
+
+ computeThreatListDiffSettings = settings.computeThreatListDiffSettings.toBuilder();
+ searchUrisSettings = settings.searchUrisSettings.toBuilder();
+ searchHashesSettings = settings.searchHashesSettings.toBuilder();
+ createSubmissionSettings = settings.createSubmissionSettings.toBuilder();
+
+ unaryMethodSettingsBuilders =
+ ImmutableList.>of(
+ computeThreatListDiffSettings,
+ searchUrisSettings,
+ searchHashesSettings,
+ createSubmissionSettings);
+ }
+
+ // NEXT_MAJOR_VER: remove 'throws Exception'
+ /**
+ * Applies the given settings updater function to all of the unary API methods in this service.
+ *
+ *
Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction, Void> settingsUpdater) throws Exception {
+ super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
+ return this;
+ }
+
+ public ImmutableList> unaryMethodSettingsBuilders() {
+ return unaryMethodSettingsBuilders;
+ }
+
+ /** Returns the builder for the settings used for calls to computeThreatListDiff. */
+ public UnaryCallSettings.Builder
+ computeThreatListDiffSettings() {
+ return computeThreatListDiffSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to searchUris. */
+ public UnaryCallSettings.Builder searchUrisSettings() {
+ return searchUrisSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to searchHashes. */
+ public UnaryCallSettings.Builder
+ searchHashesSettings() {
+ return searchHashesSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to createSubmission. */
+ public UnaryCallSettings.Builder
+ createSubmissionSettings() {
+ return createSubmissionSettings;
+ }
+
+ @Override
+ public WebRiskServiceStubSettings build() throws IOException {
+ return new WebRiskServiceStubSettings(this);
+ }
+ }
+}
diff --git a/google-cloud-webrisk/src/test/java/com/google/cloud/webrisk/v1/MockWebRiskService.java b/google-cloud-webrisk/src/test/java/com/google/cloud/webrisk/v1/MockWebRiskService.java
new file mode 100644
index 00000000..7fd62fab
--- /dev/null
+++ b/google-cloud-webrisk/src/test/java/com/google/cloud/webrisk/v1/MockWebRiskService.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2020 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
+ *
+ * https://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.
+ */
+package com.google.cloud.webrisk.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.grpc.testing.MockGrpcService;
+import com.google.protobuf.AbstractMessage;
+import io.grpc.ServerServiceDefinition;
+import java.util.List;
+
+@javax.annotation.Generated("by GAPIC")
+@BetaApi
+public class MockWebRiskService implements MockGrpcService {
+ private final MockWebRiskServiceImpl serviceImpl;
+
+ public MockWebRiskService() {
+ serviceImpl = new MockWebRiskServiceImpl();
+ }
+
+ @Override
+ public List getRequests() {
+ return serviceImpl.getRequests();
+ }
+
+ @Override
+ public void addResponse(AbstractMessage response) {
+ serviceImpl.addResponse(response);
+ }
+
+ @Override
+ public void addException(Exception exception) {
+ serviceImpl.addException(exception);
+ }
+
+ @Override
+ public ServerServiceDefinition getServiceDefinition() {
+ return serviceImpl.bindService();
+ }
+
+ @Override
+ public void reset() {
+ serviceImpl.reset();
+ }
+}
diff --git a/google-cloud-webrisk/src/test/java/com/google/cloud/webrisk/v1/MockWebRiskServiceImpl.java b/google-cloud-webrisk/src/test/java/com/google/cloud/webrisk/v1/MockWebRiskServiceImpl.java
new file mode 100644
index 00000000..d96e5423
--- /dev/null
+++ b/google-cloud-webrisk/src/test/java/com/google/cloud/webrisk/v1/MockWebRiskServiceImpl.java
@@ -0,0 +1,127 @@
+/*
+ * Copyright 2020 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
+ *
+ * https://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.
+ */
+package com.google.cloud.webrisk.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.protobuf.AbstractMessage;
+import com.google.webrisk.v1.ComputeThreatListDiffRequest;
+import com.google.webrisk.v1.ComputeThreatListDiffResponse;
+import com.google.webrisk.v1.CreateSubmissionRequest;
+import com.google.webrisk.v1.SearchHashesRequest;
+import com.google.webrisk.v1.SearchHashesResponse;
+import com.google.webrisk.v1.SearchUrisRequest;
+import com.google.webrisk.v1.SearchUrisResponse;
+import com.google.webrisk.v1.Submission;
+import com.google.webrisk.v1.WebRiskServiceGrpc.WebRiskServiceImplBase;
+import io.grpc.stub.StreamObserver;
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Queue;
+
+@javax.annotation.Generated("by GAPIC")
+@BetaApi
+public class MockWebRiskServiceImpl extends WebRiskServiceImplBase {
+ private List requests;
+ private Queue