From 8fd079187420a2ab1c2694900e1d983390366d88 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 18 Nov 2022 16:28:15 +0100 Subject: [PATCH] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.4 (#940) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.5.3` -> `1.5.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.4/compatibility-slim/1.5.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.4/confidence-slim/1.5.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-language). --- java-language/README.md | 4 ++-- java-language/google-cloud-language-bom/pom.xml | 2 +- java-language/pom.xml | 4 ++-- .../snippets/src/main/java/com/example/language/Analyze.java | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/java-language/README.md b/java-language/README.md index 16ef183730e6..d12ecbfd101b 100644 --- a/java-language/README.md +++ b/java-language/README.md @@ -63,13 +63,13 @@ implementation 'com.google.cloud:google-cloud-language' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-language:2.6.0' +implementation 'com.google.cloud:google-cloud-language:2.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.6.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.7.0" ``` ## Authentication diff --git a/java-language/google-cloud-language-bom/pom.xml b/java-language/google-cloud-language-bom/pom.xml index c09ad678b1d4..44e6ce47ac20 100644 --- a/java-language/google-cloud-language-bom/pom.xml +++ b/java-language/google-cloud-language-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.3 + 1.5.4 Google Cloud language BOM diff --git a/java-language/pom.xml b/java-language/pom.xml index 305adb402b4a..e80d5bca5d8a 100644 --- a/java-language/pom.xml +++ b/java-language/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.3 + 1.5.4 @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.4 + 3.0.5 pom import diff --git a/java-language/samples/snippets/src/main/java/com/example/language/Analyze.java b/java-language/samples/snippets/src/main/java/com/example/language/Analyze.java index 04aaef4a887d..545f7ce20823 100644 --- a/java-language/samples/snippets/src/main/java/com/example/language/Analyze.java +++ b/java-language/samples/snippets/src/main/java/com/example/language/Analyze.java @@ -282,7 +282,8 @@ public static void classifyText(String text) throws Exception { try (LanguageServiceClient language = LanguageServiceClient.create()) { // Set content to the text string Document doc = Document.newBuilder().setContent(text).setType(Type.PLAIN_TEXT).build(); - V2Model v2Model = V2Model.setContentCategoriesVersion(ContentCategoriesVersion.V2).build(); + V2Model v2Model = + V2Model.newBuilder().setContentCategoriesVersion(ContentCategoriesVersion.V2).build(); ClassificationModelOptions options = ClassificationModelOptions.newBuilder().setV2Model(v2Model).build(); ClassifyTextRequest request =