From 5c258faedd400dc084decb7e7381c8383336ed86 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 17 Mar 2020 16:12:04 -0700 Subject: [PATCH 001/356] samples: scaffold pom.xml files (#112) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-03-17 11:57:34,469 synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py. 2020-03-17 11:57:34,525 synthtool > Ensuring dependencies. 2020-03-17 11:57:34,530 synthtool > Pulling artman image. latest: Pulling from googleapis/artman Digest: sha256:5ef340c8d9334719bc5c6981d95f4a5d2737b0a6a24f2b9a0d430e96fff85c5b Status: Image is up to date for googleapis/artman:latest 2020-03-17 11:57:35,463 synthtool > Cloning googleapis. 2020-03-17 11:57:35,799 synthtool > Running generator for google/cloud/translate/artman_translate_v3beta1.yaml. 2020-03-17 11:57:45,493 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java. 2020-03-17 11:57:45,496 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java. 2020-03-17 11:57:45,496 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java. 2020-03-17 11:57:45,496 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java. 2020-03-17 11:57:45,496 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java. 2020-03-17 11:57:45,497 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java. 2020-03-17 11:57:45,497 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java. 2020-03-17 11:57:45,497 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java. 2020-03-17 11:57:45,497 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java. 2020-03-17 11:57:45,498 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java. 2020-03-17 11:57:45,498 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java. 2020-03-17 11:57:45,499 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java. 2020-03-17 11:57:45,499 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java. 2020-03-17 11:57:45,499 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java. 2020-03-17 11:57:45,499 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java. 2020-03-17 11:57:45,499 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java. 2020-03-17 11:57:45,500 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java. 2020-03-17 11:57:45,500 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java. 2020-03-17 11:57:45,500 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java. 2020-03-17 11:57:45,500 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java. 2020-03-17 11:57:45,501 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java. 2020-03-17 11:57:45,501 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java. 2020-03-17 11:57:45,501 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java. 2020-03-17 11:57:45,501 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java. 2020-03-17 11:57:45,502 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java. 2020-03-17 11:57:45,502 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java. 2020-03-17 11:57:45,502 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java. 2020-03-17 11:57:45,502 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java. 2020-03-17 11:57:45,503 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java. 2020-03-17 11:57:45,503 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java. 2020-03-17 11:57:45,503 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java. 2020-03-17 11:57:45,503 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java. 2020-03-17 11:57:45,504 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java. 2020-03-17 11:57:45,504 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java. 2020-03-17 11:57:45,504 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java. 2020-03-17 11:57:45,504 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java. 2020-03-17 11:57:45,505 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java. 2020-03-17 11:57:45,505 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java. 2020-03-17 11:57:45,505 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java. 2020-03-17 11:57:45,505 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java. 2020-03-17 11:57:45,505 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java. 2020-03-17 11:57:45,506 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java. 2020-03-17 11:57:45,506 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java. 2020-03-17 11:57:45,506 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java. 2020-03-17 11:57:45,507 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java. 2020-03-17 11:57:45,507 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java. 2020-03-17 11:57:45,507 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java. 2020-03-17 11:57:45,508 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java. 2020-03-17 11:57:45,508 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java. 2020-03-17 11:57:45,508 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java. 2020-03-17 11:57:45,508 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java. 2020-03-17 11:57:45,508 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java. 2020-03-17 11:57:45,509 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java. 2020-03-17 11:57:45,509 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java. 2020-03-17 11:57:45,509 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java. 2020-03-17 11:57:45,510 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java. 2020-03-17 11:57:45,513 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java. 2020-03-17 11:57:45,514 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java. 2020-03-17 11:57:45,516 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java. 2020-03-17 11:57:45,535 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-translate-v3beta1/samples/src')] were copied. Does the source contain files? 2020-03-17 11:57:45,536 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-translate-v3beta1/samples/resources')] were copied. Does the source contain files? 2020-03-17 11:57:45,536 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-translate-v3beta1/samples/src/**/*.manifest.yaml')] were copied. Does the source contain files? 2020-03-17 11:57:45,538 synthtool > Running java formatter on 45 files 2020-03-17 11:57:49,427 synthtool > Running java formatter on 1 files 2020-03-17 11:57:51,667 synthtool > Running java formatter on 57 files 2020-03-17 11:57:59,220 synthtool > Running java formatter on 0 files 2020-03-17 11:57:59,485 synthtool > Running generator for google/cloud/translate/artman_translate_v3.yaml. 2020-03-17 11:58:09,746 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java. 2020-03-17 11:58:09,748 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java. 2020-03-17 11:58:09,749 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java. 2020-03-17 11:58:09,749 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java. 2020-03-17 11:58:09,749 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java. 2020-03-17 11:58:09,750 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java. 2020-03-17 11:58:09,750 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java. 2020-03-17 11:58:09,750 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java. 2020-03-17 11:58:09,750 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java. 2020-03-17 11:58:09,751 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java. 2020-03-17 11:58:09,751 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java. 2020-03-17 11:58:09,751 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java. 2020-03-17 11:58:09,751 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java. 2020-03-17 11:58:09,752 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java. 2020-03-17 11:58:09,752 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java. 2020-03-17 11:58:09,752 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java. 2020-03-17 11:58:09,752 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java. 2020-03-17 11:58:09,752 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java. 2020-03-17 11:58:09,753 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java. 2020-03-17 11:58:09,753 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java. 2020-03-17 11:58:09,753 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java. 2020-03-17 11:58:09,753 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java. 2020-03-17 11:58:09,753 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java. 2020-03-17 11:58:09,754 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java. 2020-03-17 11:58:09,754 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java. 2020-03-17 11:58:09,754 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java. 2020-03-17 11:58:09,754 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java. 2020-03-17 11:58:09,755 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java. 2020-03-17 11:58:09,755 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java. 2020-03-17 11:58:09,755 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java. 2020-03-17 11:58:09,756 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java. 2020-03-17 11:58:09,756 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java. 2020-03-17 11:58:09,756 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java. 2020-03-17 11:58:09,757 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java. 2020-03-17 11:58:09,757 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java. 2020-03-17 11:58:09,757 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java. 2020-03-17 11:58:09,757 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java. 2020-03-17 11:58:09,758 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java. 2020-03-17 11:58:09,758 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java. 2020-03-17 11:58:09,758 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java. 2020-03-17 11:58:09,758 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java. 2020-03-17 11:58:09,759 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java. 2020-03-17 11:58:09,759 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java. 2020-03-17 11:58:09,759 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java. 2020-03-17 11:58:09,760 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java. 2020-03-17 11:58:09,760 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java. 2020-03-17 11:58:09,760 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java. 2020-03-17 11:58:09,761 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java. 2020-03-17 11:58:09,761 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java. 2020-03-17 11:58:09,761 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java. 2020-03-17 11:58:09,761 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java. 2020-03-17 11:58:09,762 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java. 2020-03-17 11:58:09,762 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java. 2020-03-17 11:58:09,762 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java. 2020-03-17 11:58:09,763 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java. 2020-03-17 11:58:09,763 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java. 2020-03-17 11:58:09,764 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java. 2020-03-17 11:58:09,765 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java. 2020-03-17 11:58:09,767 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java. 2020-03-17 11:58:09,789 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-translate-v3/samples/src')] were copied. Does the source contain files? 2020-03-17 11:58:09,789 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-translate-v3/samples/resources')] were copied. Does the source contain files? 2020-03-17 11:58:09,790 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-translate-v3/samples/src/**/*.manifest.yaml')] were copied. Does the source contain files? 2020-03-17 11:58:09,791 synthtool > Running java formatter on 45 files 2020-03-17 11:58:13,752 synthtool > Running java formatter on 1 files 2020-03-17 11:58:15,975 synthtool > Running java formatter on 57 files 2020-03-17 11:58:23,486 synthtool > Running java formatter on 0 files .github/ISSUE_TEMPLATE/bug_report.md .github/ISSUE_TEMPLATE/feature_request.md .github/ISSUE_TEMPLATE/support_request.md .github/PULL_REQUEST_TEMPLATE.md .github/release-please.yml .github/trusted-contribution.yml .kokoro/build.bat .kokoro/build.sh .kokoro/coerce_logs.sh .kokoro/common.cfg .kokoro/continuous/common.cfg .kokoro/continuous/dependencies.cfg .kokoro/continuous/integration.cfg .kokoro/continuous/java11.cfg .kokoro/continuous/java7.cfg .kokoro/continuous/java8-osx.cfg .kokoro/continuous/java8-win.cfg .kokoro/continuous/java8.cfg .kokoro/continuous/lint.cfg .kokoro/continuous/propose_release.cfg .kokoro/continuous/samples.cfg .kokoro/dependencies.sh .kokoro/linkage-monitor.sh .kokoro/nightly/common.cfg .kokoro/nightly/dependencies.cfg .kokoro/nightly/integration.cfg .kokoro/nightly/java11.cfg .kokoro/nightly/java7.cfg .kokoro/nightly/java8-osx.cfg .kokoro/nightly/java8-win.cfg .kokoro/nightly/java8.cfg .kokoro/nightly/lint.cfg .kokoro/nightly/samples.cfg .kokoro/presubmit/clirr.cfg .kokoro/presubmit/common.cfg .kokoro/presubmit/dependencies.cfg .kokoro/presubmit/integration.cfg .kokoro/presubmit/java11.cfg .kokoro/presubmit/java7.cfg .kokoro/presubmit/java8-osx.cfg .kokoro/presubmit/java8-win.cfg .kokoro/presubmit/java8.cfg .kokoro/presubmit/linkage-monitor.cfg .kokoro/presubmit/lint.cfg .kokoro/presubmit/samples.cfg .kokoro/release/bump_snapshot.cfg .kokoro/release/common.cfg .kokoro/release/common.sh .kokoro/release/drop.cfg .kokoro/release/drop.sh .kokoro/release/promote.cfg .kokoro/release/promote.sh .kokoro/release/publish_javadoc.cfg .kokoro/release/publish_javadoc.sh .kokoro/release/snapshot.cfg .kokoro/release/snapshot.sh .kokoro/release/stage.cfg .kokoro/release/stage.sh .kokoro/trampoline.sh CODE_OF_CONDUCT.md CONTRIBUTING.md LICENSE README.md codecov.yaml java.header license-checks.xml renovate.json samples/install-without-bom/pom.xml samples/pom.xml samples/snapshot/pom.xml samples/snippets/pom.xml 2020-03-17 11:58:24,022 synthtool > merge: CODE_OF_CONDUCT.md 2020-03-17 11:58:24,022 synthtool > merge: java.header 2020-03-17 11:58:24,023 synthtool > merge: license-checks.xml 2020-03-17 11:58:24,023 synthtool > merge: LICENSE 2020-03-17 11:58:24,023 synthtool > merge: README.md 2020-03-17 11:58:24,023 synthtool > merge: CONTRIBUTING.md 2020-03-17 11:58:24,024 synthtool > merge: renovate.json 2020-03-17 11:58:24,024 synthtool > merge: codecov.yaml 2020-03-17 11:58:24,025 synthtool > merge: .kokoro/build.sh 2020-03-17 11:58:24,025 synthtool > merge: .kokoro/coerce_logs.sh 2020-03-17 11:58:24,026 synthtool > merge: .kokoro/dependencies.sh 2020-03-17 11:58:24,026 synthtool > merge: .kokoro/linkage-monitor.sh 2020-03-17 11:58:24,026 synthtool > merge: .kokoro/trampoline.sh 2020-03-17 11:58:24,026 synthtool > merge: .kokoro/common.cfg 2020-03-17 11:58:24,027 synthtool > merge: .kokoro/build.bat 2020-03-17 11:58:24,027 synthtool > merge: .kokoro/release/promote.sh 2020-03-17 11:58:24,027 synthtool > merge: .kokoro/release/snapshot.sh 2020-03-17 11:58:24,028 synthtool > merge: .kokoro/release/stage.sh 2020-03-17 11:58:24,028 synthtool > merge: .kokoro/release/bump_snapshot.cfg 2020-03-17 11:58:24,028 synthtool > merge: .kokoro/release/drop.cfg 2020-03-17 11:58:24,028 synthtool > merge: .kokoro/release/snapshot.cfg 2020-03-17 11:58:24,029 synthtool > merge: .kokoro/release/promote.cfg 2020-03-17 11:58:24,029 synthtool > merge: .kokoro/release/publish_javadoc.sh 2020-03-17 11:58:24,029 synthtool > merge: .kokoro/release/common.cfg 2020-03-17 11:58:24,029 synthtool > merge: .kokoro/release/drop.sh 2020-03-17 11:58:24,030 synthtool > merge: .kokoro/release/publish_javadoc.cfg 2020-03-17 11:58:24,030 synthtool > merge: .kokoro/release/stage.cfg 2020-03-17 11:58:24,030 synthtool > merge: .kokoro/release/common.sh 2020-03-17 11:58:24,031 synthtool > merge: .kokoro/nightly/lint.cfg 2020-03-17 11:58:24,031 synthtool > merge: .kokoro/nightly/java11.cfg 2020-03-17 11:58:24,031 synthtool > merge: .kokoro/nightly/samples.cfg 2020-03-17 11:58:24,031 synthtool > merge: .kokoro/nightly/java8.cfg 2020-03-17 11:58:24,032 synthtool > merge: .kokoro/nightly/java7.cfg 2020-03-17 11:58:24,032 synthtool > merge: .kokoro/nightly/common.cfg 2020-03-17 11:58:24,032 synthtool > merge: .kokoro/nightly/dependencies.cfg 2020-03-17 11:58:24,032 synthtool > merge: .kokoro/nightly/java8-osx.cfg 2020-03-17 11:58:24,033 synthtool > merge: .kokoro/nightly/java8-win.cfg 2020-03-17 11:58:24,033 synthtool > merge: .kokoro/nightly/integration.cfg 2020-03-17 11:58:24,033 synthtool > merge: .kokoro/presubmit/lint.cfg 2020-03-17 11:58:24,034 synthtool > merge: .kokoro/presubmit/clirr.cfg 2020-03-17 11:58:24,034 synthtool > merge: .kokoro/presubmit/java11.cfg 2020-03-17 11:58:24,034 synthtool > merge: .kokoro/presubmit/samples.cfg 2020-03-17 11:58:24,034 synthtool > merge: .kokoro/presubmit/linkage-monitor.cfg 2020-03-17 11:58:24,035 synthtool > merge: .kokoro/presubmit/java8.cfg 2020-03-17 11:58:24,035 synthtool > merge: .kokoro/presubmit/java7.cfg 2020-03-17 11:58:24,035 synthtool > merge: .kokoro/presubmit/common.cfg 2020-03-17 11:58:24,035 synthtool > merge: .kokoro/presubmit/dependencies.cfg 2020-03-17 11:58:24,036 synthtool > merge: .kokoro/presubmit/java8-osx.cfg 2020-03-17 11:58:24,036 synthtool > merge: .kokoro/presubmit/java8-win.cfg 2020-03-17 11:58:24,036 synthtool > merge: .kokoro/presubmit/integration.cfg 2020-03-17 11:58:24,037 synthtool > merge: .kokoro/continuous/lint.cfg 2020-03-17 11:58:24,037 synthtool > merge: .kokoro/continuous/java11.cfg 2020-03-17 11:58:24,037 synthtool > merge: .kokoro/continuous/samples.cfg 2020-03-17 11:58:24,037 synthtool > merge: .kokoro/continuous/java8.cfg 2020-03-17 11:58:24,038 synthtool > merge: .kokoro/continuous/java7.cfg 2020-03-17 11:58:24,038 synthtool > merge: .kokoro/continuous/propose_release.cfg 2020-03-17 11:58:24,038 synthtool > merge: .kokoro/continuous/common.cfg 2020-03-17 11:58:24,038 synthtool > merge: .kokoro/continuous/dependencies.cfg 2020-03-17 11:58:24,039 synthtool > merge: .kokoro/continuous/java8-osx.cfg 2020-03-17 11:58:24,039 synthtool > merge: .kokoro/continuous/java8-win.cfg 2020-03-17 11:58:24,039 synthtool > merge: .kokoro/continuous/integration.cfg 2020-03-17 11:58:24,040 synthtool > merge: .github/trusted-contribution.yml 2020-03-17 11:58:24,040 synthtool > merge: .github/release-please.yml 2020-03-17 11:58:24,040 synthtool > merge: .github/PULL_REQUEST_TEMPLATE.md 2020-03-17 11:58:24,040 synthtool > merge: .github/ISSUE_TEMPLATE/feature_request.md 2020-03-17 11:58:24,041 synthtool > merge: .github/ISSUE_TEMPLATE/bug_report.md 2020-03-17 11:58:24,041 synthtool > merge: .github/ISSUE_TEMPLATE/support_request.md 2020-03-17 11:58:24,046 synthtool > Wrote metadata to synth.metadata. ```
--- translate/snippets/pom.xml | 60 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 translate/snippets/pom.xml diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml new file mode 100644 index 00000000000..0d5a07df360 --- /dev/null +++ b/translate/snippets/pom.xml @@ -0,0 +1,60 @@ + + + 4.0.0 + com.google.cloud + translation-snippets + jar + Google Cloud Translation Snippets + https://github.com/googleapis/java-translate + + + + com.google.cloud.samples + shared-configuration + 1.0.12 + + + + 1.8 + 1.8 + UTF-8 + + + + + + + + com.google.cloud + libraries-bom + 4.2.0 + pom + import + + + + + + + com.google.cloud + google-cloud-translate + + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + From 0f412abd579acb86c8ce34ae88aeb6bb14493f5a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 23 Mar 2020 18:23:47 +0100 Subject: [PATCH 002/356] chore(deps): update dependency com.google.cloud:libraries-bom to v4.3.0 (#119) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.2.0` -> `4.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 0d5a07df360..ec4607db63c 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.2.0 + 4.3.0 pom import From cf8464b5d73ddd014193a8fea56a3cb5fe3b881a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 26 Mar 2020 16:56:23 +0100 Subject: [PATCH 003/356] deps: update dependency com.google.cloud.samples:shared-configuration to v1.0.13 (#123) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index ec4607db63c..07d6f025071 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.12 + 1.0.13 From c8546c24dcfda151df7c16b0225da8141735c41d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 30 Mar 2020 19:57:47 +0200 Subject: [PATCH 004/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.14 (#127) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.13` -> `1.0.14` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.14`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.14) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.13...v1.0.14) - Update CheckStyle to 8.31 - Add SpotBugs
--- ### 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 07d6f025071..91367f3e68a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.13 + 1.0.14 From cf796888cf2d9e0175fbb75d519c08598a1a89d3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Apr 2020 21:35:07 +0200 Subject: [PATCH 005/356] chore(deps): update dependency com.google.cloud:libraries-bom to v4.4.0 (#128) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.3.0` -> `4.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 91367f3e68a..f14615ab3d7 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.3.0 + 4.4.0 pom import From 02e66bec3a97ee7503b51a238ada4d2ce6a59e0a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Apr 2020 17:50:06 +0200 Subject: [PATCH 006/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.15 (#130) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.14` -> `1.0.15` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.15`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.15) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.14...v1.0.15) - Move some stuff around (in prep for a change to release process) pom.xml's - Add an exclude filter for SpotBugs. (disable the Java 11 surprise) - Don't fail on SpotBugs issues for now - add PMD reporting - Don't fail on PMD issues for now.
--- ### 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index f14615ab3d7..1693a37349d 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.14 + 1.0.15 From e6ef6adcbeda08e4639ca0d4c38a748d4c3f8094 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Apr 2020 20:02:57 +0200 Subject: [PATCH 007/356] chore(deps): update dependency com.google.cloud:libraries-bom to v4.4.1 (#131) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `4.4.0` -> `4.4.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 1693a37349d..3d915c33f67 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.4.0 + 4.4.1 pom import From dd7a78742203554a76167dc3289498ddb0c813a8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Apr 2020 19:33:11 +0200 Subject: [PATCH 008/356] chore(deps): update dependency com.google.cloud:libraries-bom to v5 (#143) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `4.4.1` -> `5.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 3d915c33f67..324c4bfde7a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.4.1 + 5.0.0 pom import From 6324a22bb1350df769c40dcd7dd288cff3bc6c61 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Apr 2020 20:28:58 +0200 Subject: [PATCH 009/356] chore(deps): update dependency com.google.cloud:libraries-bom to v5.1.0 (#145) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.0.0` -> `5.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 324c4bfde7a..d9078e2df90 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.0.0 + 5.1.0 pom import From 8488281adcc66b774f1d033b38debb010a0397de Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 16 Apr 2020 18:48:11 +0200 Subject: [PATCH 010/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.16 (#162) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.15` -> `1.0.16` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.16`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.16) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.15...v1.0.16) Add a few SpotBugs exclusions: - `RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE` - existing - codegen bug - `UPM_UNCALLED_PRIVATE_METHOD` - probably SpotBug issue - `NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE` - likely SpotBug issue - `CLI_CONSTANT_LIST_INDEX` - style issue particular to our samples - `OBL_UNSATISFIED_OBLIGATION` - issue for SQL clients
--- ### 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index d9078e2df90..5a52f48a7df 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.15 + 1.0.16 From be6df3d68a8b10ad13458293351fb26ce7c958b5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 17 Apr 2020 08:49:40 +0200 Subject: [PATCH 011/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.17 (#168) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.16` -> `1.0.17` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.17`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.17) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.16...v1.0.17) - require -P lint Lets not burden customers with our development rules. - Move Checkstyle, ErrorProne, PMD, and SpotBugs to only run w/ -P lint - Update the Readme - spotbugs-annotations 4.0.2
--- ### 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 5a52f48a7df..908f5e5eacb 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.16 + 1.0.17 From 2dc4f2266c7b3844a6e6f366fced82e8db5d5af3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 23 Apr 2020 22:36:03 +0200 Subject: [PATCH 012/356] chore(deps): update dependency com.google.cloud:libraries-bom to v5.2.0 (#173) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.1.0` -> `5.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 908f5e5eacb..594aaa4f803 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.1.0 + 5.2.0 pom import From ed94aab90a2dbc2557b02e84add6e303076b1f0f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 29 Apr 2020 01:08:21 +0200 Subject: [PATCH 013/356] chore(deps): update dependency com.google.cloud:libraries-bom to v5.3.0 (#179) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.2.0` -> `5.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 594aaa4f803..759317b5523 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.2.0 + 5.3.0 pom import From 8a57c3dfb63839f0da286979b45ac0d7af4ef226 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 May 2020 06:56:12 +0200 Subject: [PATCH 014/356] chore(deps): update dependency com.google.cloud:libraries-bom to v5.4.0 (#187) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.3.0` -> `5.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 759317b5523..5ebc278b707 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.3.0 + 5.4.0 pom import From b4a2380d44122a8bf6dcda84ba8bb4fd1bb92ea6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 29 May 2020 20:35:02 +0200 Subject: [PATCH 015/356] chore(deps): update dependency com.google.cloud:libraries-bom to v5.5.0 (#197) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.4.0` -> `5.5.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 5ebc278b707..2df898d638d 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.4.0 + 5.5.0 pom import From 01f44a6e4b73a3cabbdd903e550e21409c991a5a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Jun 2020 00:46:26 +0200 Subject: [PATCH 016/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.18 (#208) This PR contains the following updates: | Package | Update | Change | |---|---|---| | com.google.cloud.samples:shared-configuration | patch | `1.0.17` -> `1.0.18` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 2df898d638d..639162df677 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.17 + 1.0.18 From c4d966ab60f8e412b14e265aac62ae21157c3f6f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Jun 2020 00:52:17 +0200 Subject: [PATCH 017/356] chore(deps): update dependency com.google.cloud:libraries-bom to v5.7.0 (#207) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.5.0` -> `5.7.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 639162df677..bfd1fa8fc2b 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.5.0 + 5.7.0 pom import From 33595aa63874a0b75a2c5e7ede0e5556b61b2fab Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Jun 2020 01:28:13 +0200 Subject: [PATCH 018/356] chore(deps): update dependency com.google.cloud:libraries-bom to v6 (#215) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `5.7.0` -> `6.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index bfd1fa8fc2b..d77b020e5be 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.7.0 + 6.0.0 pom import From d1b47d47db6598bd20ffd1c8e6268c49e9d9f42c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Jun 2020 19:43:12 +0200 Subject: [PATCH 019/356] chore(deps): update dependency com.google.cloud:libraries-bom to v7 (#218) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `6.0.0` -> `7.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index d77b020e5be..e73dfcd58ed 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 6.0.0 + 7.0.0 pom import From ec08355d20926a52d9c0102670c165e6eba43d9e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 23 Jun 2020 00:43:37 +0200 Subject: [PATCH 020/356] chore(deps): update dependency com.google.cloud:libraries-bom to v7.0.1 (#226) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `7.0.0` -> `7.0.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index e73dfcd58ed..44d17c894ae 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 7.0.0 + 7.0.1 pom import From 2bc2b83fc76763aa6d9efc0995b5ae78e30bc167 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 26 Jun 2020 07:24:07 +0200 Subject: [PATCH 021/356] chore(deps): update dependency com.google.cloud:libraries-bom to v8 (#232) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `7.0.1` -> `8.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 44d17c894ae..59fafea1835 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 7.0.1 + 8.0.0 pom import From 7780b4de49b27894d05d7e28e0ca04e624e45170 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 16 Jul 2020 21:32:19 +0200 Subject: [PATCH 022/356] chore(deps): update dependency com.google.cloud:libraries-bom to v8.1.0 (#247) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `8.0.0` -> `8.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 59fafea1835..5016563af51 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 8.0.0 + 8.1.0 pom import From f000cf3218e8aa25053b208d050a70de83ff18ce Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 14 Aug 2020 04:28:04 +0200 Subject: [PATCH 023/356] chore(deps): update dependency com.google.cloud:libraries-bom to v9 (#259) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `8.1.0` -> `9.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 5016563af51..067025014c4 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 8.1.0 + 9.0.0 pom import From 796c52e1e279f6f10fa5ac87c6f054f775afa735 Mon Sep 17 00:00:00 2001 From: Jason Dobry Date: Thu, 6 Oct 2016 16:44:28 -0700 Subject: [PATCH 024/356] samples: Add Translate API quickstart sample. --- .../example/translate/QuickstartSample.java | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 translate/snippets/src/main/java/com/example/translate/QuickstartSample.java diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java new file mode 100644 index 00000000000..4baf2633968 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -0,0 +1,42 @@ +/* + Copyright 2016, Google, Inc. + + 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. +*/ + +package com.example.translate; + +// [START translate_quickstart] +// Imports the Google Cloud client library +import com.google.cloud.translate.Translate; +import com.google.cloud.translate.Translate.TranslateOption; +import com.google.cloud.translate.TranslateOptions; +import com.google.cloud.translate.Translation; + +public class QuickstartSample { + public static void main(String... args) throws Exception { + // Instantiates a client + Translate translate = TranslateOptions.builder().apiKey("YOUR_API_KEY").build().service(); + // The text to translate + String text = "Hello, world!"; + // Translates some text into Russian + Translation translation = translate.translate( + text, + TranslateOption.sourceLanguage("en"), + TranslateOption.targetLanguage("ru") + ); + System.out.printf("Text: %s%n", text); + System.out.printf("Translation: %s%n", translation.translatedText()); + } +} +// [END translate_quickstart] From 769a28f28d278b7498a06c476970bc142a609831 Mon Sep 17 00:00:00 2001 From: Jason Dobry Date: Fri, 7 Oct 2016 10:23:52 -0700 Subject: [PATCH 025/356] samples: Add Storage quickstart sample. --- .../src/main/java/com/example/translate/QuickstartSample.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java index 4baf2633968..1baf95c74d1 100644 --- a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -27,14 +27,17 @@ public class QuickstartSample { public static void main(String... args) throws Exception { // Instantiates a client Translate translate = TranslateOptions.builder().apiKey("YOUR_API_KEY").build().service(); + // The text to translate String text = "Hello, world!"; + // Translates some text into Russian Translation translation = translate.translate( text, TranslateOption.sourceLanguage("en"), TranslateOption.targetLanguage("ru") ); + System.out.printf("Text: %s%n", text); System.out.printf("Translation: %s%n", translation.translatedText()); } From 64e101ee02c814d07d7dea59df709ce944b15df5 Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Tue, 25 Oct 2016 16:19:28 -0700 Subject: [PATCH 026/356] samples: Add quickstarts to root module. Fixes checkstyle errors in samples. --- .../java/com/example/translate/QuickstartSample.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java index 1baf95c74d1..f2efd757507 100644 --- a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -32,11 +32,12 @@ public static void main(String... args) throws Exception { String text = "Hello, world!"; // Translates some text into Russian - Translation translation = translate.translate( - text, - TranslateOption.sourceLanguage("en"), - TranslateOption.targetLanguage("ru") - ); + Translation translation = + translate.translate( + text, + TranslateOption.sourceLanguage("en"), + TranslateOption.targetLanguage("ru")); + System.out.printf("Text: %s%n", text); System.out.printf("Translation: %s%n", translation.translatedText()); From 159e30177e9566fda8389754f70c8cf8c5b9028d Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Wed, 26 Oct 2016 10:37:55 -0700 Subject: [PATCH 027/356] samples: Add system tests to Translate sample. --- .../example/translate/QuickstartSample.java | 6 +- .../example/translate/QuickstartSampleIT.java | 65 +++++++++++++++++++ 2 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java index f2efd757507..75523d0dcaf 100644 --- a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -26,7 +26,11 @@ public class QuickstartSample { public static void main(String... args) throws Exception { // Instantiates a client - Translate translate = TranslateOptions.builder().apiKey("YOUR_API_KEY").build().service(); + Translate translate = + TranslateOptions.builder() + .apiKey(args[0]) // .apiKey("YOUR_API_KEY") + .build() + .service(); // The text to translate String text = "Hello, world!"; diff --git a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java new file mode 100644 index 00000000000..c91651b2a74 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java @@ -0,0 +1,65 @@ +/* + Copyright 2016, Google, Inc. + + 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. +*/ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; + +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +import java.io.ByteArrayOutputStream; +import java.io.PrintStream; + +/** + * Tests for quickstart sample. + */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class QuickstartSampleIT { + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + System.setOut(null); + } + + @Test + public void testQuickstart() throws Exception { + // Arrange + String apiKey = System.getenv("GOOGLE_API_KEY"); + + // Act + QuickstartSample.main(apiKey); + + // Assert + String got = bout.toString(); + assertThat(got).contains("Text: Hello, world!"); + assertThat(got).contains("Translation: "); + } +} +// [END datastore_quickstart] From 320dbeb98f4a7f4215b81ab274957219f66a6b8d Mon Sep 17 00:00:00 2001 From: Jason Dobry Date: Tue, 29 Nov 2016 22:20:48 -0600 Subject: [PATCH 028/356] samples: Translate API no longer requires an API key. (#425) --- .../main/java/com/example/translate/QuickstartSample.java | 6 +----- .../test/java/com/example/translate/QuickstartSampleIT.java | 5 +---- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java index 75523d0dcaf..8339650d077 100644 --- a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -26,11 +26,7 @@ public class QuickstartSample { public static void main(String... args) throws Exception { // Instantiates a client - Translate translate = - TranslateOptions.builder() - .apiKey(args[0]) // .apiKey("YOUR_API_KEY") - .build() - .service(); + Translate translate = TranslateOptions.getDefaultInstance().getService(); // The text to translate String text = "Hello, world!"; diff --git a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java index c91651b2a74..e27b59cba97 100644 --- a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java +++ b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java @@ -50,11 +50,8 @@ public void tearDown() { @Test public void testQuickstart() throws Exception { - // Arrange - String apiKey = System.getenv("GOOGLE_API_KEY"); - // Act - QuickstartSample.main(apiKey); + QuickstartSample.main(); // Assert String got = bout.toString(); From 4dafb4d7eb98ef73d41e2453d38266fb109774eb Mon Sep 17 00:00:00 2001 From: Jerjou Date: Tue, 29 Nov 2016 20:43:49 -0800 Subject: [PATCH 029/356] samples: deprecated methods -> undeprecated versions. (#428) --- .../src/main/java/com/example/translate/QuickstartSample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java index 8339650d077..ce9c01d4399 100644 --- a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -40,7 +40,7 @@ public static void main(String... args) throws Exception { System.out.printf("Text: %s%n", text); - System.out.printf("Translation: %s%n", translation.translatedText()); + System.out.printf("Translation: %s%n", translation.getTranslatedText()); } } // [END translate_quickstart] From b3ad297e72756db723ac280c9b1eb1d3a250aadd Mon Sep 17 00:00:00 2001 From: Jason Dobry Date: Wed, 7 Dec 2016 20:32:29 -0800 Subject: [PATCH 030/356] samples: Add NL quickstart sample. Fix some other quickstarts. (#438) --- .../src/test/java/com/example/translate/QuickstartSampleIT.java | 1 - 1 file changed, 1 deletion(-) diff --git a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java index e27b59cba97..50460defa29 100644 --- a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java +++ b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java @@ -59,4 +59,3 @@ public void testQuickstart() throws Exception { assertThat(got).contains("Translation: "); } } -// [END datastore_quickstart] From 1f886b2bec98a9e83f4a0b74f4e6e5aa156bc2c6 Mon Sep 17 00:00:00 2001 From: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com> Date: Thu, 18 Jan 2018 08:18:49 -0800 Subject: [PATCH 031/356] samples: Updates for storage, translate, unittests, and video. (#994) * Updated storage/cloud-client. * Updated storage/json-api * Updated storage/storage-transfer. * Updated translate/ * Updated unittests/ * Updated video/ --- .../example/translate/QuickstartSample.java | 28 ++++++++-------- .../example/translate/QuickstartSampleIT.java | 33 +++++++++---------- 2 files changed, 30 insertions(+), 31 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java index ce9c01d4399..bf3aad063e1 100644 --- a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -1,18 +1,18 @@ /* - Copyright 2016, Google, Inc. - - 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. -*/ + * Copyright 2016 Google Inc. + * + * 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. + */ package com.example.translate; diff --git a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java index 50460defa29..78480b78fc3 100644 --- a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java +++ b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java @@ -1,32 +1,31 @@ /* - Copyright 2016, Google, Inc. - - 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. -*/ + * Copyright 2016 Google Inc. + * + * 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. + */ package com.example.translate; import static com.google.common.truth.Truth.assertThat; +import java.io.ByteArrayOutputStream; +import java.io.PrintStream; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -import java.io.ByteArrayOutputStream; -import java.io.PrintStream; - /** * Tests for quickstart sample. */ From 655a3ead6d09e235aff61b42d997cf1d611ce6dd Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Tue, 14 Jan 2020 10:49:20 -0700 Subject: [PATCH 032/356] samples: translate: add v3 language samples (#1937) Co-authored-by: Les Vogel --- .../com/example/translate/DetectLanguage.java | 71 ++++++++++++++++++ .../translate/GetSupportedLanguages.java | 59 +++++++++++++++ .../GetSupportedLanguagesForTarget.java | 66 +++++++++++++++++ .../translate/DetectLanguageTests.java | 71 ++++++++++++++++++ .../GetSupportedLanguagesForTargetTests.java | 72 +++++++++++++++++++ .../translate/GetSupportedLanguagesTests.java | 71 ++++++++++++++++++ 6 files changed, 410 insertions(+) create mode 100644 translate/snippets/src/main/java/com/example/translate/DetectLanguage.java create mode 100644 translate/snippets/src/main/java/com/example/translate/GetSupportedLanguages.java create mode 100644 translate/snippets/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java create mode 100644 translate/snippets/src/test/java/com/example/translate/DetectLanguageTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesTests.java diff --git a/translate/snippets/src/main/java/com/example/translate/DetectLanguage.java b/translate/snippets/src/main/java/com/example/translate/DetectLanguage.java new file mode 100644 index 00000000000..945dad8f07e --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/DetectLanguage.java @@ -0,0 +1,71 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_detect_language] +import com.google.cloud.translate.v3.DetectLanguageRequest; +import com.google.cloud.translate.v3.DetectLanguageResponse; +import com.google.cloud.translate.v3.DetectedLanguage; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class DetectLanguage { + + public static void detectLanguage() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + String text = "your-text"; + + detectLanguage(projectId, text); + } + + // Detecting the language of a text string + public static void detectLanguage(String projectId, String text) throws IOException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + LocationName parent = LocationName.of(projectId, "global"); + + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + DetectLanguageRequest request = + DetectLanguageRequest.newBuilder() + .setParent(parent.toString()) + .setMimeType("text/plain") + .setContent(text) + .build(); + + DetectLanguageResponse response = client.detectLanguage(request); + + // Display list of detected languages sorted by detection confidence. + // The most probable language is first. + for (DetectedLanguage language : response.getLanguagesList()) { + // The language detected + System.out.printf("Language code: %s\n", language.getLanguageCode()); + // Confidence of detection result for this language + System.out.printf("Confidence: %s\n", language.getConfidence()); + } + } + } +} +// [END translate_v3_detect_language] diff --git a/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguages.java b/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguages.java new file mode 100644 index 00000000000..32963c406bf --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguages.java @@ -0,0 +1,59 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_get_supported_languages] +import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.SupportedLanguage; +import com.google.cloud.translate.v3.SupportedLanguages; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class GetSupportedLanguages { + + public static void getSupportedLanguages() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + getSupportedLanguages(projectId); + } + + // Getting a list of supported language codes + public static void getSupportedLanguages(String projectId) throws IOException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + LocationName parent = LocationName.of(projectId, "global"); + GetSupportedLanguagesRequest request = + GetSupportedLanguagesRequest.newBuilder().setParent(parent.toString()).build(); + + SupportedLanguages response = client.getSupportedLanguages(request); + + // List language codes of supported languages + for (SupportedLanguage language : response.getLanguagesList()) { + System.out.printf("Language Code: %s\n", language.getLanguageCode()); + } + } + } +} +// [END translate_v3_get_supported_languages] diff --git a/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java b/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java new file mode 100644 index 00000000000..1001ae7a551 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java @@ -0,0 +1,66 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_get_supported_languages_for_target] +import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.SupportedLanguage; +import com.google.cloud.translate.v3.SupportedLanguages; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class GetSupportedLanguagesForTarget { + + public static void getSupportedLanguagesForTarget() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String languageCode = "your-language-code"; + getSupportedLanguagesForTarget(projectId, languageCode); + } + + // Listing supported languages with target language name + public static void getSupportedLanguagesForTarget(String projectId, String languageCode) + throws IOException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + LocationName parent = LocationName.of(projectId, "global"); + GetSupportedLanguagesRequest request = + GetSupportedLanguagesRequest.newBuilder() + .setParent(parent.toString()) + .setDisplayLanguageCode(languageCode) + .build(); + + SupportedLanguages response = client.getSupportedLanguages(request); + + // List language codes of supported languages + for (SupportedLanguage language : response.getLanguagesList()) { + System.out.printf("Language Code: %s\n", language.getLanguageCode()); + System.out.printf("Display Name: %s\n", language.getDisplayName()); + } + } + } +} +// [END translate_v3_get_supported_languages_for_target] diff --git a/translate/snippets/src/test/java/com/example/translate/DetectLanguageTests.java b/translate/snippets/src/test/java/com/example/translate/DetectLanguageTests.java new file mode 100644 index 00000000000..c93b7a11f57 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/DetectLanguageTests.java @@ -0,0 +1,71 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Detect Languages sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class DetectLanguageTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + System.setOut(null); + } + + @Test + public void testDetectLanguage() throws IOException { + DetectLanguage.detectLanguage(PROJECT_ID, "Hæ sæta"); + String got = bout.toString(); + assertThat(got).contains("is"); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java b/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java new file mode 100644 index 00000000000..1381c0af96c --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java @@ -0,0 +1,72 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Get Supported Languages For Target sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class GetSupportedLanguagesForTargetTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + System.setOut(null); + } + + @Test + public void testGetSupportedLanguages() throws IOException { + GetSupportedLanguagesForTarget.getSupportedLanguagesForTarget(PROJECT_ID, "is"); + String got = bout.toString(); + assertThat(got).contains("Language Code: sq"); + assertThat(got).contains("Display Name: albanska"); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesTests.java b/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesTests.java new file mode 100644 index 00000000000..da63a936967 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesTests.java @@ -0,0 +1,71 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Get Supported Languages sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class GetSupportedLanguagesTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + System.setOut(null); + } + + @Test + public void testGetSupportedLanguages() throws IOException { + GetSupportedLanguages.getSupportedLanguages(PROJECT_ID); + String got = bout.toString(); + assertThat(got).contains("zh-CN"); + } +} From ca5af43488cdad4294e4ea2a39c3f0212f52ed58 Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Tue, 14 Jan 2020 10:57:59 -0700 Subject: [PATCH 033/356] samples: translate: add v3 glossary samples (#1936) * translate: Add v3 glossary samples * add the samples * Clarify comment and add link for more info * Provide more descriptive comments --- .../com/example/translate/CreateGlossary.java | 97 ++++++++++++++++ .../com/example/translate/DeleteGlossary.java | 63 +++++++++++ .../com/example/translate/GetGlossary.java | 57 ++++++++++ .../com/example/translate/ListGlossaries.java | 57 ++++++++++ .../translate/CreateGlossaryTests.java | 89 +++++++++++++++ .../translate/DeleteGlossaryTests.java | 91 +++++++++++++++ .../example/translate/GetGlossaryTests.java | 104 +++++++++++++++++ .../translate/ListGlossariesTests.java | 105 ++++++++++++++++++ 8 files changed, 663 insertions(+) create mode 100644 translate/snippets/src/main/java/com/example/translate/CreateGlossary.java create mode 100644 translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java create mode 100644 translate/snippets/src/main/java/com/example/translate/GetGlossary.java create mode 100644 translate/snippets/src/main/java/com/example/translate/ListGlossaries.java create mode 100644 translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java diff --git a/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java b/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java new file mode 100644 index 00000000000..3dc9d8ff932 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java @@ -0,0 +1,97 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_create_glossary] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.GlossaryInputConfig; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; + +public class CreateGlossary { + + public static void createGlossary() throws InterruptedException, ExecutionException, IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + String glossaryId = "your-glossary-display-name"; + List languageCodes = new ArrayList<>(); + languageCodes.add("your-language-code"); + String inputUri = "gs://your-gcs-bucket/path/to/input/file.txt"; + createGlossary(projectId, glossaryId, languageCodes, inputUri); + } + + // Create a equivalent term sets glossary + // https://cloud.google.com/translate/docs/advanced/glossary#format-glossary + public static void createGlossary( + String projectId, String glossaryId, List languageCodes, String inputUri) + throws IOException, ExecutionException, InterruptedException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + String location = "us-central1"; + LocationName parent = LocationName.of(projectId, location); + GlossaryName glossaryName = GlossaryName.of(projectId, location, glossaryId); + + // Supported Languages: https://cloud.google.com/translate/docs/languages + Glossary.LanguageCodesSet languageCodesSet = + Glossary.LanguageCodesSet.newBuilder().addAllLanguageCodes(languageCodes).build(); + + GcsSource gcsSource = GcsSource.newBuilder().setInputUri(inputUri).build(); + GlossaryInputConfig inputConfig = + GlossaryInputConfig.newBuilder().setGcsSource(gcsSource).build(); + + Glossary glossary = + Glossary.newBuilder() + .setName(glossaryName.toString()) + .setLanguageCodesSet(languageCodesSet) + .setInputConfig(inputConfig) + .build(); + + CreateGlossaryRequest request = + CreateGlossaryRequest.newBuilder() + .setParent(parent.toString()) + .setGlossary(glossary) + .build(); + + OperationFuture future = + client.createGlossaryAsync(request); + + System.out.println("Waiting for operation to complete..."); + Glossary response = future.get(); + System.out.println("Created Glossary."); + System.out.printf("Glossary name: %s\n", response.getName()); + System.out.printf("Entry count: %s\n", response.getEntryCount()); + System.out.printf("Input URI: %s\n", response.getInputConfig().getGcsSource().getInputUri()); + } + } +} +// [END translate_v3_create_glossary] diff --git a/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java b/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java new file mode 100644 index 00000000000..aaed8d7c4d5 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java @@ -0,0 +1,63 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_delete_glossary] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; +import java.util.concurrent.ExecutionException; + +public class DeleteGlossary { + + public static void deleteGlossary() throws InterruptedException, ExecutionException, IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + String glossaryId = "your-glossary-display-name"; + deleteGlossary(projectId, glossaryId); + } + + // Delete a specific glossary based on the glossary ID + public static void deleteGlossary(String projectId, String glossaryId) + throws InterruptedException, ExecutionException, IOException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + GlossaryName glossaryName = GlossaryName.of(projectId, "us-central1", glossaryId); + DeleteGlossaryRequest request = + DeleteGlossaryRequest.newBuilder().setName(glossaryName.toString()).build(); + + OperationFuture future = + client.deleteGlossaryAsync(request); + + System.out.println("Waiting for operation to complete..."); + DeleteGlossaryResponse response = future.get(); + System.out.format("Deleted Glossary: %s\n", response.getName()); + } + } +} +// [END translate_v3_delete_glossary] diff --git a/translate/snippets/src/main/java/com/example/translate/GetGlossary.java b/translate/snippets/src/main/java/com/example/translate/GetGlossary.java new file mode 100644 index 00000000000..e400f503ae0 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/GetGlossary.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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_get_glossary] +import com.google.cloud.translate.v3.GetGlossaryRequest; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class GetGlossary { + + public static void getGlossary() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + String glossaryId = "your-glossary-display-name"; + getGlossary(projectId, glossaryId); + } + + // Get a particular glossary based on the glossary ID + public static void getGlossary(String projectId, String glossaryId) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + GlossaryName glossaryName = GlossaryName.of(projectId, "us-central1", glossaryId); + GetGlossaryRequest request = + GetGlossaryRequest.newBuilder().setName(glossaryName.toString()).build(); + + Glossary response = client.getGlossary(request); + + System.out.printf("Glossary name: %s\n", response.getName()); + System.out.printf("Entry count: %s\n", response.getEntryCount()); + System.out.printf("Input URI: %s\n", response.getInputConfig().getGcsSource().getInputUri()); + } + } +} +// [END translate_v3_get_glossary] diff --git a/translate/snippets/src/main/java/com/example/translate/ListGlossaries.java b/translate/snippets/src/main/java/com/example/translate/ListGlossaries.java new file mode 100644 index 00000000000..055c2d14058 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/ListGlossaries.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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_list_glossary] +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.ListGlossariesRequest; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class ListGlossaries { + + public static void listGlossaries() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + listGlossaries(projectId); + } + + // List all the glossaries in a specified location + public static void listGlossaries(String projectId) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + LocationName parent = LocationName.of(projectId, "us-central1"); + ListGlossariesRequest request = + ListGlossariesRequest.newBuilder().setParent(parent.toString()).build(); + + for (Glossary responseItem : client.listGlossaries(request).iterateAll()) { + System.out.printf("Glossary name: %s\n", responseItem.getName()); + System.out.printf("Entry count: %s\n", responseItem.getEntryCount()); + System.out.printf( + "Input URI: %s\n", responseItem.getInputConfig().getGcsSource().getInputUri()); + } + } + } +} +// [END translate_v3_list_glossary] diff --git a/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java new file mode 100644 index 00000000000..b3ccb01395e --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java @@ -0,0 +1,89 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class CreateGlossaryTests { + + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String GLOSSARY_INPUT_URI = + "gs://cloud-samples-data/translation/glossary_ja.csv"; + private static final String GLOSSARY_ID = + String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws InterruptedException, ExecutionException, IOException { + // Delete the created glossary + DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + + System.setOut(null); + } + + @Test + public void testCreateGlossary() throws InterruptedException, ExecutionException, IOException { + List languageCodes = new ArrayList<>(); + languageCodes.add("en"); + languageCodes.add("ja"); + CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); + + String got = bout.toString(); + assertThat(got).contains("Created"); + assertThat(got).contains(GLOSSARY_ID); + assertThat(got).contains(GLOSSARY_INPUT_URI); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java new file mode 100644 index 00000000000..8fe5fd660c4 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java @@ -0,0 +1,91 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Create and Delete Glossary samples. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class DeleteGlossaryTests { + + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String GLOSSARY_INPUT_URI = + "gs://cloud-samples-data/translation/glossary_ja.csv"; + private static final String GLOSSARY_ID = + String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws InterruptedException, ExecutionException, IOException { + // Create a glossary to be deleted + PrintStream temp = new PrintStream(new ByteArrayOutputStream()); + System.setOut(temp); + List languageCodes = new ArrayList<>(); + languageCodes.add("en"); + languageCodes.add("ja"); + CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + System.setOut(null); + } + + @Test + public void testDeleteGlossary() + throws InterruptedException, ExecutionException, IOException { + DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + String got = bout.toString(); + assertThat(got).contains("us-central1"); + assertThat(got).contains(GLOSSARY_ID); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java new file mode 100644 index 00000000000..d082c4fddb0 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java @@ -0,0 +1,104 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.GlossaryInputConfig; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Get Glossary sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class GetGlossaryTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String GLOSSARY_INPUT_URI = + "gs://cloud-samples-data/translation/glossary_ja.csv"; + private static final String GLOSSARY_ID = + String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws InterruptedException, ExecutionException, IOException { + // Create a glossary that can be used in the test + PrintStream temp = new PrintStream(new ByteArrayOutputStream()); + System.setOut(temp); + List languageCodes = new ArrayList<>(); + languageCodes.add("en"); + languageCodes.add("ja"); + CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws InterruptedException, ExecutionException, IOException { + // Delete the created glossary + DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + System.setOut(null); + } + + @Test + public void testGetGlossary() throws IOException { + GetGlossary.getGlossary(PROJECT_ID, GLOSSARY_ID); + String got = bout.toString(); + assertThat(got).contains(GLOSSARY_ID); + assertThat(got).contains(GLOSSARY_INPUT_URI); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java b/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java new file mode 100644 index 00000000000..ee87cfdf67f --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java @@ -0,0 +1,105 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.GlossaryInputConfig; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for List Glossaries sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class ListGlossariesTests { + + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String GLOSSARY_INPUT_URI = + "gs://cloud-samples-data/translation/glossary_ja.csv"; + private static final String GLOSSARY_ID = + String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws InterruptedException, ExecutionException, IOException { + // Create a glossary that can be used in the test + PrintStream temp = new PrintStream(new ByteArrayOutputStream()); + System.setOut(temp); + List languageCodes = new ArrayList<>(); + languageCodes.add("en"); + languageCodes.add("ja"); + CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws InterruptedException, ExecutionException, IOException { + // Delete the created glossary + DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + System.setOut(null); + } + + @Test + public void testListGlossaries() throws IOException { + ListGlossaries.listGlossaries(PROJECT_ID); + String got = bout.toString(); + assertThat(got).contains(GLOSSARY_ID); + assertThat(got).contains(GLOSSARY_INPUT_URI); + } +} From 1fa24793c05865f20e17e733afb34a6590779024 Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Tue, 14 Jan 2020 11:51:09 -0700 Subject: [PATCH 034/356] samples: translate: add v3 translate text samples with glossary and model (#1941) * translate: add v3 translate text samples with glossary and model * Update pom to java 11 --- ...atchTranslateTextWithGlossaryAndModel.java | 113 ++++++++++++++ .../TranslateTextWithGlossaryAndModel.java | 93 +++++++++++ ...ranslateTextWithGlossaryAndModelTests.java | 145 ++++++++++++++++++ ...ranslateTextWithGlossaryAndModelTests.java | 107 +++++++++++++ 4 files changed, 458 insertions(+) create mode 100644 translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java create mode 100644 translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java create mode 100644 translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java new file mode 100644 index 00000000000..897d4807d3a --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -0,0 +1,113 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_batch_translate_text_with_glossary_and_model] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.GcsDestination; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.InputConfig; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.OutputConfig; +import com.google.cloud.translate.v3.TranslateTextGlossaryConfig; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; +import java.util.concurrent.ExecutionException; + +public class BatchTranslateTextWithGlossaryAndModel { + + public static void batchTranslateTextWithGlossaryAndModel() + throws InterruptedException, ExecutionException, IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String sourceLanguage = "your-source-language"; + String targetLanguage = "your-target-language"; + String inputUri = "gs://your-gcs-bucket/path/to/input/file.txt"; + String outputUri = "gs://your-gcs-bucket/path/to/results/"; + String glossaryId = "your-glossary-display-name"; + String modelId = "YOUR-MODEL-ID"; + batchTranslateTextWithGlossaryAndModel( + projectId, sourceLanguage, targetLanguage, inputUri, outputUri, glossaryId, modelId); + } + + // Batch translate text with Model and Glossary + public static void batchTranslateTextWithGlossaryAndModel( + String projectId, + String sourceLanguage, + String targetLanguage, + String inputUri, + String outputUri, + String glossaryId, + String modelId) + throws IOException, ExecutionException, InterruptedException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + String location = "us-central1"; + LocationName parent = LocationName.of(projectId, location); + + GcsSource gcsSource = GcsSource.newBuilder().setInputUri(inputUri).build(); + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + InputConfig inputConfig = + InputConfig.newBuilder().setGcsSource(gcsSource).setMimeType("text/plain").build(); + + GcsDestination gcsDestination = + GcsDestination.newBuilder().setOutputUriPrefix(outputUri).build(); + OutputConfig outputConfig = + OutputConfig.newBuilder().setGcsDestination(gcsDestination).build(); + + GlossaryName glossaryName = GlossaryName.of(projectId, location, glossaryId); + TranslateTextGlossaryConfig glossaryConfig = + TranslateTextGlossaryConfig.newBuilder().setGlossary(glossaryName.toString()).build(); + + String modelPath = + String.format("projects/%s/locations/%s/models/%s", projectId, location, modelId); + + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(parent.toString()) + .setSourceLanguageCode(sourceLanguage) + .addTargetLanguageCodes(targetLanguage) + .addInputConfigs(inputConfig) + .setOutputConfig(outputConfig) + .putGlossaries(targetLanguage, glossaryConfig) + .putModels(targetLanguage, modelPath) + .build(); + + OperationFuture future = + client.batchTranslateTextAsync(request); + + System.out.println("Waiting for operation to complete..."); + BatchTranslateResponse response = future.get(); + // Display the translation for each input text provided + System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); + System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); + } + } +} +// [END translate_v3_batch_translate_text_with_glossary_and_model] diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java new file mode 100644 index 00000000000..473d3042eba --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java @@ -0,0 +1,93 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_translate_text_with_glossary_and_model] +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslateTextGlossaryConfig; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.cloud.translate.v3.Translation; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class TranslateTextWithGlossaryAndModel { + + public static void translateTextWithGlossaryAndModel() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String sourceLanguage = "your-source-language"; + String targetLanguage = "your-target-language"; + String text = "your-text"; + String glossaryId = "your-glossary-display-name"; + String modelId = "YOUR-MODEL-ID"; + translateTextWithGlossaryAndModel( + projectId, sourceLanguage, targetLanguage, text, glossaryId, modelId); + } + + // Translating Text with Glossary and Model + public static void translateTextWithGlossaryAndModel( + String projectId, + String sourceLanguage, + String targetLanguage, + String text, + String glossaryId, + String modelId) + throws IOException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + String location = "us-central1"; + LocationName parent = LocationName.of(projectId, location); + + GlossaryName glossaryName = GlossaryName.of(projectId, location, glossaryId); + TranslateTextGlossaryConfig glossaryConfig = + TranslateTextGlossaryConfig.newBuilder().setGlossary(glossaryName.toString()).build(); + + String modelPath = + String.format("projects/%s/locations/%s/models/%s", projectId, location, modelId); + + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent.toString()) + .setMimeType("text/plain") + .setSourceLanguageCode(sourceLanguage) + .setTargetLanguageCode(targetLanguage) + .addContents(text) + .setGlossaryConfig(glossaryConfig) + .setModel(modelPath) + .build(); + + TranslateTextResponse response = client.translateText(request); + + // Display the translation for each input text provided + for (Translation translation : response.getGlossaryTranslationsList()) { + System.out.printf("Translated text: %s\n", translation.getTranslatedText()); + } + } + } +} +// [END translate_v3_translate_text_with_glossary_and_model] diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java new file mode 100644 index 00000000000..a91e530a0fb --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -0,0 +1,145 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.Page; +import com.google.cloud.storage.Blob; +import com.google.cloud.storage.Storage; +import com.google.cloud.storage.StorageOptions; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.GlossaryInputConfig; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Batch Translate Text With Glossary sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class BatchTranslateTextWithGlossaryAndModelTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String INPUT_URI = + "gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt"; + private static final String GLOSSARY_ID = + String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String GLOSSARY_INPUT_URI = + "gs://cloud-samples-data/translation/glossary_ja.csv"; + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static final void cleanUpBucket() { + Storage storage = StorageOptions.getDefaultInstance().getService(); + Page blobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix("BATCH_TRANSLATION_OUTPUT/")); + + deleteDirectory(storage, blobs); + } + + private static void deleteDirectory(Storage storage, Page blobs) { + for (Blob blob : blobs.iterateAll()) { + System.out.println(blob.getBlobId()); + if (!blob.delete()) { + Page subBlobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix(blob.getName())); + + deleteDirectory(storage, subBlobs); + } + } + } + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws InterruptedException, ExecutionException, IOException { + // Create a glossary that can be used in the test + PrintStream temp = new PrintStream(new ByteArrayOutputStream()); + System.setOut(temp); + List languageCodes = new ArrayList<>(); + languageCodes.add("en"); + languageCodes.add("ja"); + CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws InterruptedException, ExecutionException, IOException { + cleanUpBucket(); + // Delete the created glossary + DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + System.setOut(null); + } + + @Test + public void testBatchTranslateTextWithGlossaryAndModel() + throws InterruptedException, ExecutionException, IOException { + BatchTranslateTextWithGlossaryAndModel.batchTranslateTextWithGlossaryAndModel( + PROJECT_ID, + "en", + "ja", + INPUT_URI, + "gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/", + GLOSSARY_ID, + MODEL_ID); + String got = bout.toString(); + assertThat(got).contains("Total Characters: 25"); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java new file mode 100644 index 00000000000..dc68fa0fa92 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java @@ -0,0 +1,107 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.GlossaryInputConfig; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Batch Translate Text With Glossary and Model sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class TranslateTextWithGlossaryAndModelTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String GLOSSARY_INPUT_URI = + "gs://cloud-samples-data/translation/glossary_ja.csv"; + private static final String GLOSSARY_ID = + String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws InterruptedException, ExecutionException, IOException { + // Create a glossary that can be used in the test + PrintStream temp = new PrintStream(new ByteArrayOutputStream()); + System.setOut(temp); + List languageCodes = new ArrayList<>(); + languageCodes.add("en"); + languageCodes.add("ja"); + CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws InterruptedException, ExecutionException, IOException { + // Clean up + // Delete the created glossary + DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + System.setOut(null); + } + + @Test + public void testTranslateTextWithGlossaryAndModel() throws IOException { + TranslateTextWithGlossaryAndModel.translateTextWithGlossaryAndModel( + PROJECT_ID, "en", "ja", "That' il do it. deception", GLOSSARY_ID, MODEL_ID); + String got = bout.toString(); + assertThat(got).contains("それはそうだ"); // custom model + assertThat(got).contains("欺く"); // glossary + } +} From aba33ced185c3728bf568056300c666d1556ee8d Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Tue, 14 Jan 2020 13:39:36 -0700 Subject: [PATCH 035/356] samples: translate: add translate text with glossary samples (#1940) * translate: add translate text with glossary samples * add some clarifying comments explain blocks of the code --- .../BatchTranslateTextWithGlossary.java | 112 ++++++++++++++ .../translate/TranslateTextWithGlossary.java | 86 +++++++++++ .../BatchTranslateTextWithGlossaryTests.java | 144 ++++++++++++++++++ .../TranslateTextWithGlossaryTests.java | 105 +++++++++++++ 4 files changed, 447 insertions(+) create mode 100644 translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java create mode 100644 translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossary.java create mode 100644 translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java new file mode 100644 index 00000000000..1f37b7c0390 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -0,0 +1,112 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_batch_translate_text_with_glossary] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.GcsDestination; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.InputConfig; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.OutputConfig; +import com.google.cloud.translate.v3.TranslateTextGlossaryConfig; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; +import java.util.concurrent.ExecutionException; + +public class BatchTranslateTextWithGlossary { + + public static void batchTranslateTextWithGlossary() + throws InterruptedException, ExecutionException, IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String sourceLanguage = "your-source-language"; + String targetLanguage = "your-target-language"; + String inputUri = "gs://your-gcs-bucket/path/to/input/file.txt"; + String outputUri = "gs://your-gcs-bucket/path/to/results/"; + String glossaryId = "your-glossary-display-name"; + batchTranslateTextWithGlossary( + projectId, sourceLanguage, targetLanguage, inputUri, outputUri, glossaryId); + } + + // Batch Translate Text with a Glossary. + public static void batchTranslateTextWithGlossary( + String projectId, + String sourceLanguage, + String targetLanguage, + String inputUri, + String outputUri, + String glossaryId) + throws IOException, ExecutionException, InterruptedException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + String location = "us-central1"; + LocationName parent = LocationName.of(projectId, location); + + // Configure the source of the file from a GCS bucket + GcsSource gcsSource = GcsSource.newBuilder().setInputUri(inputUri).build(); + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + InputConfig inputConfig = + InputConfig.newBuilder().setGcsSource(gcsSource).setMimeType("text/plain").build(); + + // Configure where to store the output in a GCS bucket + GcsDestination gcsDestination = + GcsDestination.newBuilder().setOutputUriPrefix(outputUri).build(); + OutputConfig outputConfig = + OutputConfig.newBuilder().setGcsDestination(gcsDestination).build(); + + // Configure the glossary used in the request + GlossaryName glossaryName = GlossaryName.of(projectId, location, glossaryId); + TranslateTextGlossaryConfig glossaryConfig = + TranslateTextGlossaryConfig.newBuilder().setGlossary(glossaryName.toString()).build(); + + // Build the request that will be sent to the API + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(parent.toString()) + .setSourceLanguageCode(sourceLanguage) + .addTargetLanguageCodes(targetLanguage) + .addInputConfigs(inputConfig) + .setOutputConfig(outputConfig) + .putGlossaries(targetLanguage, glossaryConfig) + .build(); + + // Start an asynchronous request + OperationFuture future = + client.batchTranslateTextAsync(request); + + System.out.println("Waiting for operation to complete..."); + BatchTranslateResponse response = future.get(); + // Display the translation for each input text provided + System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); + System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); + } + } +} +// [END translate_v3_batch_translate_text_with_glossary] diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossary.java new file mode 100644 index 00000000000..07e0c6c7e03 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossary.java @@ -0,0 +1,86 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_translate_text_with_glossary] +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslateTextGlossaryConfig; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.cloud.translate.v3.Translation; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class TranslateTextWithGlossary { + + public static void translateTextWithGlossary() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String sourceLanguage = "your-source-language"; + String targetLanguage = "your-target-language"; + String text = "your-text"; + String glossaryId = "your-glossary-display-name"; + translateTextWithGlossary(projectId, sourceLanguage, targetLanguage, text, glossaryId); + } + + // Translates a given text using a glossary. + public static void translateTextWithGlossary( + String projectId, + String sourceLanguage, + String targetLanguage, + String text, + String glossaryId) + throws IOException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + String location = "us-central1"; + LocationName parent = LocationName.of(projectId, location); + + GlossaryName glossaryName = GlossaryName.of(projectId, location, glossaryId); + TranslateTextGlossaryConfig glossaryConfig = + TranslateTextGlossaryConfig.newBuilder().setGlossary(glossaryName.toString()).build(); + + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent.toString()) + .setMimeType("text/plain") + .setSourceLanguageCode(sourceLanguage) + .setTargetLanguageCode(targetLanguage) + .addContents(text) + .setGlossaryConfig(glossaryConfig) + .build(); + + TranslateTextResponse response = client.translateText(request); + + // Display the translation for each input text provided + for (Translation translation : response.getGlossaryTranslationsList()) { + System.out.printf("Translated text: %s\n", translation.getTranslatedText()); + } + } + } +} +// [END translate_v3_translate_text_with_glossary] diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java new file mode 100644 index 00000000000..6cefd2e3071 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -0,0 +1,144 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.Page; +import com.google.cloud.storage.Blob; +import com.google.cloud.storage.Storage; +import com.google.cloud.storage.StorageOptions; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.GlossaryInputConfig; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Batch Translate Text With Glossary and Model sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class BatchTranslateTextWithGlossaryTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String INPUT_URI = + "gs://cloud-samples-data/translation/text_with_glossary.txt"; + private static final String GLOSSARY_INPUT_URI = + "gs://cloud-samples-data/translation/glossary_ja.csv"; + private static final String GLOSSARY_ID = + String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static final void cleanUpBucket() { + Storage storage = StorageOptions.getDefaultInstance().getService(); + Page blobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix("BATCH_TRANSLATION_OUTPUT/")); + + deleteDirectory(storage, blobs); + } + + private static void deleteDirectory(Storage storage, Page blobs) { + for (Blob blob : blobs.iterateAll()) { + System.out.println(blob.getBlobId()); + if (!blob.delete()) { + Page subBlobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix(blob.getName())); + + deleteDirectory(storage, subBlobs); + } + } + } + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws InterruptedException, ExecutionException, IOException { + // Create a glossary that can be used in the test + PrintStream temp = new PrintStream(new ByteArrayOutputStream()); + System.setOut(temp); + List languageCodes = new ArrayList<>(); + languageCodes.add("en"); + languageCodes.add("ja"); + CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws InterruptedException, ExecutionException, IOException { + // Clean up + cleanUpBucket(); + // Delete the created glossary + DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + System.setOut(null); + } + + @Test + public void testBatchTranslateTextWithGlossary() + throws InterruptedException, ExecutionException, IOException { + BatchTranslateTextWithGlossary.batchTranslateTextWithGlossary( + PROJECT_ID, + "en", + "ja", + INPUT_URI, + "gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/", + GLOSSARY_ID); + String got = bout.toString(); + assertThat(got).contains("Total Characters: 9"); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java new file mode 100644 index 00000000000..ad7f560195b --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java @@ -0,0 +1,105 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.GlossaryInputConfig; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Translate Text With Glossary sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class TranslateTextWithGlossaryTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String GLOSSARY_INPUT_URI = + "gs://cloud-samples-data/translation/glossary_ja.csv"; + private static final String GLOSSARY_ID = + String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws InterruptedException, ExecutionException, IOException { + // Create a glossary that can be used in the test + PrintStream temp = new PrintStream(new ByteArrayOutputStream()); + System.setOut(temp); + List languageCodes = new ArrayList<>(); + languageCodes.add("en"); + languageCodes.add("ja"); + CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws InterruptedException, ExecutionException, IOException { + // Clean up + // Delete the created glossary + DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + System.setOut(null); + } + + @Test + public void testTranslateTextWithGlossary() throws IOException { + TranslateTextWithGlossary.translateTextWithGlossary( + PROJECT_ID, "en", "ja", "account", GLOSSARY_ID); + String got = bout.toString(); + assertThat(got).contains("アカウント"); + } +} From 4f6df7851ebfece85353a03d46a4e11831f04819 Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Tue, 14 Jan 2020 14:30:40 -0700 Subject: [PATCH 036/356] samples: translate: add v3 samples for translate text with model (#1939) * translate: add v3 samples for translate text with model * Add clarifying comments that explain chunks of the code --- ...atchTranslateTextWithGlossaryAndModel.java | 6 + .../BatchTranslateTextWithModel.java | 109 +++++++++++++++++ .../com/example/translate/CreateGlossary.java | 2 + .../com/example/translate/DeleteGlossary.java | 1 + .../translate/TranslateTextWithModel.java | 78 ++++++++++++ .../BatchTranslateTextWithModelTests.java | 115 ++++++++++++++++++ .../TranslateTextWithModelTests.java | 73 +++++++++++ 7 files changed, 384 insertions(+) create mode 100644 translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java create mode 100644 translate/snippets/src/main/java/com/example/translate/TranslateTextWithModel.java create mode 100644 translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index 897d4807d3a..f0922884ba6 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -71,23 +71,28 @@ public static void batchTranslateTextWithGlossaryAndModel( String location = "us-central1"; LocationName parent = LocationName.of(projectId, location); + // Configure the source of the file from a GCS bucket GcsSource gcsSource = GcsSource.newBuilder().setInputUri(inputUri).build(); // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats InputConfig inputConfig = InputConfig.newBuilder().setGcsSource(gcsSource).setMimeType("text/plain").build(); + // Configure where to store the output in a GCS bucket GcsDestination gcsDestination = GcsDestination.newBuilder().setOutputUriPrefix(outputUri).build(); OutputConfig outputConfig = OutputConfig.newBuilder().setGcsDestination(gcsDestination).build(); + // Configure the glossary used in the request GlossaryName glossaryName = GlossaryName.of(projectId, location, glossaryId); TranslateTextGlossaryConfig glossaryConfig = TranslateTextGlossaryConfig.newBuilder().setGlossary(glossaryName.toString()).build(); + // Configure the model used in the request String modelPath = String.format("projects/%s/locations/%s/models/%s", projectId, location, modelId); + // Build the request that will be sent to the API BatchTranslateTextRequest request = BatchTranslateTextRequest.newBuilder() .setParent(parent.toString()) @@ -99,6 +104,7 @@ public static void batchTranslateTextWithGlossaryAndModel( .putModels(targetLanguage, modelPath) .build(); + // Start an asynchronous request OperationFuture future = client.batchTranslateTextAsync(request); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java new file mode 100644 index 00000000000..bbf2aff4263 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java @@ -0,0 +1,109 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_batch_translate_text_with_model] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.GcsDestination; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.InputConfig; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.OutputConfig; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; +import java.util.concurrent.ExecutionException; + +public class BatchTranslateTextWithModel { + + public static void batchTranslateTextWithModel() + throws InterruptedException, ExecutionException, IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String sourceLanguage = "your-source-language"; + String targetLanguage = "your-target-language"; + String inputUri = "gs://your-gcs-bucket/path/to/input/file.txt"; + String outputUri = "gs://your-gcs-bucket/path/to/results/"; + String modelId = "YOUR-MODEL-ID"; + batchTranslateTextWithModel( + projectId, sourceLanguage, targetLanguage, inputUri, outputUri, modelId); + } + + // Batch translate text using AutoML Translation model + public static void batchTranslateTextWithModel( + String projectId, + String sourceLanguage, + String targetLanguage, + String inputUri, + String outputUri, + String modelId) + throws IOException, ExecutionException, InterruptedException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + String location = "us-central1"; + LocationName parent = LocationName.of(projectId, location); + + // Configure the source of the file from a GCS bucket + GcsSource gcsSource = GcsSource.newBuilder().setInputUri(inputUri).build(); + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + InputConfig inputConfig = + InputConfig.newBuilder().setGcsSource(gcsSource).setMimeType("text/plain").build(); + + // Configure where to store the output in a GCS bucket + GcsDestination gcsDestination = + GcsDestination.newBuilder().setOutputUriPrefix(outputUri).build(); + OutputConfig outputConfig = + OutputConfig.newBuilder().setGcsDestination(gcsDestination).build(); + + // Configure the model used in the request + String modelPath = + String.format("projects/%s/locations/%s/models/%s", projectId, location, modelId); + + // Build the request that will be sent to the API + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(parent.toString()) + .setSourceLanguageCode(sourceLanguage) + .addTargetLanguageCodes(targetLanguage) + .addInputConfigs(inputConfig) + .setOutputConfig(outputConfig) + .putModels(targetLanguage, modelPath) + .build(); + + // Start an asynchronous request + OperationFuture future = + client.batchTranslateTextAsync(request); + + System.out.println("Waiting for operation to complete..."); + BatchTranslateResponse response = future.get(); + // Display the translation for each input text provided + System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); + System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); + } + } +} +// [END translate_v3_batch_translate_text_with_model] diff --git a/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java b/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java index 3dc9d8ff932..a99f10def6f 100644 --- a/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java @@ -65,6 +65,7 @@ public static void createGlossary( Glossary.LanguageCodesSet languageCodesSet = Glossary.LanguageCodesSet.newBuilder().addAllLanguageCodes(languageCodes).build(); + // Configure the source of the file from a GCS bucket GcsSource gcsSource = GcsSource.newBuilder().setInputUri(inputUri).build(); GlossaryInputConfig inputConfig = GlossaryInputConfig.newBuilder().setGcsSource(gcsSource).build(); @@ -82,6 +83,7 @@ public static void createGlossary( .setGlossary(glossary) .build(); + // Start an asynchronous request OperationFuture future = client.createGlossaryAsync(request); diff --git a/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java b/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java index aaed8d7c4d5..73fe577a303 100644 --- a/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java @@ -51,6 +51,7 @@ public static void deleteGlossary(String projectId, String glossaryId) DeleteGlossaryRequest request = DeleteGlossaryRequest.newBuilder().setName(glossaryName.toString()).build(); + // Start an asynchronous request OperationFuture future = client.deleteGlossaryAsync(request); diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithModel.java new file mode 100644 index 00000000000..ace54514837 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithModel.java @@ -0,0 +1,78 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_translate_text_with_model] +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.cloud.translate.v3.Translation; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class TranslateTextWithModel { + + public static void translateTextWithModel() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String sourceLanguage = "your-source-language"; + String targetLanguage = "your-target-language"; + String text = "your-text"; + String modelId = "YOUR-MODEL-ID"; + translateTextWithModel(projectId, sourceLanguage, targetLanguage, text, modelId); + } + + // Translating Text with Model + public static void translateTextWithModel( + String projectId, String sourceLanguage, String targetLanguage, String text, String modelId) + throws IOException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + String location = "us-central1"; + LocationName parent = LocationName.of(projectId, location); + String modelPath = + String.format("projects/%s/locations/%s/models/%s", projectId, location, modelId); + + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent.toString()) + .setMimeType("text/plain") + .setSourceLanguageCode(sourceLanguage) + .setTargetLanguageCode(targetLanguage) + .addContents(text) + .setModel(modelPath) + .build(); + + TranslateTextResponse response = client.translateText(request); + + // Display the translation for each input text provided + for (Translation translation : response.getTranslationsList()) { + System.out.printf("Translated text: %s\n", translation.getTranslatedText()); + } + } + } +} +// [END translate_v3_translate_text_with_model] diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java new file mode 100644 index 00000000000..30a4a1553b3 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.paging.Page; + +import com.google.cloud.storage.Blob; +import com.google.cloud.storage.Storage; +import com.google.cloud.storage.StorageOptions; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Batch Translate Text With Model sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class BatchTranslateTextWithModelTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String INPUT_URI = + "gs://cloud-samples-data/translation/custom_model_text.txt"; + private static final String MODEL_ID = "TRL2188848820815848149"; + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static final void cleanUpBucket() { + Storage storage = StorageOptions.getDefaultInstance().getService(); + Page blobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix("BATCH_TRANSLATION_OUTPUT/")); + + deleteDirectory(storage, blobs); + } + + private static void deleteDirectory(Storage storage, Page blobs) { + for (Blob blob : blobs.iterateAll()) { + System.out.println(blob.getBlobId()); + if (!blob.delete()) { + Page subBlobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix(blob.getName())); + + deleteDirectory(storage, subBlobs); + } + } + } + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + cleanUpBucket(); + System.setOut(null); + } + + @Test + public void testBatchTranslateTextWithModel() + throws InterruptedException, ExecutionException, IOException { + BatchTranslateTextWithModel.batchTranslateTextWithModel( + PROJECT_ID, + "en", + "ja", + INPUT_URI, + "gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/", + MODEL_ID); + String got = bout.toString(); + assertThat(got).contains("Total Characters: 15"); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java new file mode 100644 index 00000000000..0864cefc69a --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java @@ -0,0 +1,73 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Batch Translate Text With Model sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class TranslateTextWithModelTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String MODEL_ID = "TRL2188848820815848149"; + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + System.setOut(null); + } + + @Test + public void testTranslateTextWithModel() throws IOException { + TranslateTextWithModel.translateTextWithModel( + PROJECT_ID, "en", "ja", "That' il do it. deception", MODEL_ID); + String got = bout.toString(); + assertThat(got).contains("それはそうだ"); + } +} From 8e675b8f0d1e58d9bd756c77fc46f37e4b26baf4 Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Wed, 15 Jan 2020 13:14:29 -0700 Subject: [PATCH 037/356] samples: translate: bump batch request timeouts (#1951) --- .../example/translate/BatchTranslateTextWithGlossary.java | 8 +++++--- .../translate/BatchTranslateTextWithGlossaryAndModel.java | 8 +++++--- .../example/translate/BatchTranslateTextWithModel.java | 8 +++++--- .../BatchTranslateTextWithGlossaryAndModelTests.java | 3 ++- .../translate/BatchTranslateTextWithGlossaryTests.java | 3 ++- .../translate/BatchTranslateTextWithModelTests.java | 3 ++- 6 files changed, 21 insertions(+), 12 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java index 1f37b7c0390..8971bf61f49 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -32,11 +32,13 @@ import java.io.IOException; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; public class BatchTranslateTextWithGlossary { public static void batchTranslateTextWithGlossary() - throws InterruptedException, ExecutionException, IOException { + throws InterruptedException, ExecutionException, IOException, TimeoutException { // TODO(developer): Replace these variables before running the sample. String projectId = "YOUR-PROJECT-ID"; // Supported Languages: https://cloud.google.com/translate/docs/languages @@ -57,7 +59,7 @@ public static void batchTranslateTextWithGlossary( String inputUri, String outputUri, String glossaryId) - throws IOException, ExecutionException, InterruptedException { + throws IOException, ExecutionException, InterruptedException, TimeoutException { // Initialize client that will be used to send requests. This client only needs to be created // once, and can be reused for multiple requests. After completing all of your requests, call @@ -102,7 +104,7 @@ public static void batchTranslateTextWithGlossary( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(); + BatchTranslateResponse response = future.get(120, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index f0922884ba6..cee7e7199a8 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -32,11 +32,13 @@ import java.io.IOException; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; public class BatchTranslateTextWithGlossaryAndModel { public static void batchTranslateTextWithGlossaryAndModel() - throws InterruptedException, ExecutionException, IOException { + throws InterruptedException, ExecutionException, IOException, TimeoutException { // TODO(developer): Replace these variables before running the sample. String projectId = "YOUR-PROJECT-ID"; // Supported Languages: https://cloud.google.com/translate/docs/languages @@ -59,7 +61,7 @@ public static void batchTranslateTextWithGlossaryAndModel( String outputUri, String glossaryId, String modelId) - throws IOException, ExecutionException, InterruptedException { + throws IOException, ExecutionException, InterruptedException, TimeoutException { // Initialize client that will be used to send requests. This client only needs to be created // once, and can be reused for multiple requests. After completing all of your requests, call @@ -109,7 +111,7 @@ public static void batchTranslateTextWithGlossaryAndModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(); + BatchTranslateResponse response = future.get(120, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java index bbf2aff4263..1433444a683 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java @@ -30,11 +30,13 @@ import java.io.IOException; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; public class BatchTranslateTextWithModel { public static void batchTranslateTextWithModel() - throws InterruptedException, ExecutionException, IOException { + throws InterruptedException, ExecutionException, IOException, TimeoutException { // TODO(developer): Replace these variables before running the sample. String projectId = "YOUR-PROJECT-ID"; // Supported Languages: https://cloud.google.com/translate/docs/languages @@ -55,7 +57,7 @@ public static void batchTranslateTextWithModel( String inputUri, String outputUri, String modelId) - throws IOException, ExecutionException, InterruptedException { + throws IOException, ExecutionException, InterruptedException, TimeoutException { // Initialize client that will be used to send requests. This client only needs to be created // once, and can be reused for multiple requests. After completing all of your requests, call @@ -99,7 +101,7 @@ public static void batchTranslateTextWithModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(); + BatchTranslateResponse response = future.get(120, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index a91e530a0fb..29da0562812 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -43,6 +43,7 @@ import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeoutException; import org.junit.After; import org.junit.Before; @@ -130,7 +131,7 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept @Test public void testBatchTranslateTextWithGlossaryAndModel() - throws InterruptedException, ExecutionException, IOException { + throws InterruptedException, ExecutionException, IOException, TimeoutException { BatchTranslateTextWithGlossaryAndModel.batchTranslateTextWithGlossaryAndModel( PROJECT_ID, "en", diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index 6cefd2e3071..39fb65a58dd 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -43,6 +43,7 @@ import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeoutException; import org.junit.After; import org.junit.Before; @@ -130,7 +131,7 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept @Test public void testBatchTranslateTextWithGlossary() - throws InterruptedException, ExecutionException, IOException { + throws InterruptedException, ExecutionException, IOException, TimeoutException { BatchTranslateTextWithGlossary.batchTranslateTextWithGlossary( PROJECT_ID, "en", diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index 30a4a1553b3..fa6a3852b7d 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -28,6 +28,7 @@ import java.io.IOException; import java.io.PrintStream; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeoutException; import org.junit.After; import org.junit.Before; @@ -101,7 +102,7 @@ public void tearDown() { @Test public void testBatchTranslateTextWithModel() - throws InterruptedException, ExecutionException, IOException { + throws InterruptedException, ExecutionException, IOException, TimeoutException { BatchTranslateTextWithModel.batchTranslateTextWithModel( PROJECT_ID, "en", From 6a9a0a22cdb7f52b08d0461e0005b1584030bcbc Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Tue, 21 Jan 2020 15:20:00 -0700 Subject: [PATCH 038/356] samples: translate: add basic translation samples (#1938) * translate: add basic translation samples * Update pom.xml * bump timeout for batch call * Update readme to include info about v3 samples and basic vs advanced links * Update blunderbuss.yml Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com> --- .../example/translate/BatchTranslateText.java | 95 +++++++++++++++ .../com/example/translate/TranslateText.java | 70 +++++++++++ .../translate/BatchTranslateTextTests.java | 109 ++++++++++++++++++ .../example/translate/TranslateTextTests.java | 71 ++++++++++++ 4 files changed, 345 insertions(+) create mode 100644 translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java create mode 100644 translate/snippets/src/main/java/com/example/translate/TranslateText.java create mode 100644 translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/TranslateTextTests.java diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java new file mode 100644 index 00000000000..30d2ab181d2 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java @@ -0,0 +1,95 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_batch_translate_text] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.GcsDestination; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.InputConfig; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.OutputConfig; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class BatchTranslateText { + + public static void batchTranslateText() + throws InterruptedException, ExecutionException, IOException, TimeoutException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String sourceLanguage = "your-source-language"; + String targetLanguage = "your-target-language"; + String inputUri = "gs://your-gcs-bucket/path/to/input/file.txt"; + String outputUri = "gs://your-gcs-bucket/path/to/results/"; + batchTranslateText(projectId, sourceLanguage, targetLanguage, inputUri, outputUri); + } + + // Batch translate text + public static void batchTranslateText( + String projectId, + String sourceLanguage, + String targetLanguage, + String inputUri, + String outputUri) + throws IOException, ExecutionException, InterruptedException, TimeoutException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `us-central1` + LocationName parent = LocationName.of(projectId, "us-central1"); + + GcsSource gcsSource = GcsSource.newBuilder().setInputUri(inputUri).build(); + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + InputConfig inputConfig = + InputConfig.newBuilder().setGcsSource(gcsSource).setMimeType("text/plain").build(); + + GcsDestination gcsDestination = + GcsDestination.newBuilder().setOutputUriPrefix(outputUri).build(); + OutputConfig outputConfig = + OutputConfig.newBuilder().setGcsDestination(gcsDestination).build(); + + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(parent.toString()) + .setSourceLanguageCode(sourceLanguage) + .addTargetLanguageCodes(targetLanguage) + .addInputConfigs(inputConfig) + .setOutputConfig(outputConfig) + .build(); + + OperationFuture future = + client.batchTranslateTextAsync(request); + + System.out.println("Waiting for operation to complete..."); + BatchTranslateResponse response = future.get(120, TimeUnit.SECONDS); + System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); + System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); + } + } +} +// [END translate_v3_batch_translate_text] diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateText.java b/translate/snippets/src/main/java/com/example/translate/TranslateText.java new file mode 100644 index 00000000000..94989428218 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/TranslateText.java @@ -0,0 +1,70 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_translate_text] +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.cloud.translate.v3.Translation; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class TranslateText { + + public static void translateText() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String targetLanguage = "your-target-language"; + String text = "your-text"; + translateText(projectId, targetLanguage, text); + } + + // Translating Text + public static void translateText(String projectId, String targetLanguage, String text) + throws IOException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + LocationName parent = LocationName.of(projectId, "global"); + + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent.toString()) + .setMimeType("text/plain") + .setTargetLanguageCode(targetLanguage) + .addContents(text) + .build(); + + TranslateTextResponse response = client.translateText(request); + + // Display the translation for each input text provided + for (Translation translation : response.getTranslationsList()) { + System.out.printf("Translated text: %s\n", translation.getTranslatedText()); + } + } + } +} +// [END translate_v3_translate_text] diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java new file mode 100644 index 00000000000..daebf827fb9 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -0,0 +1,109 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.paging.Page; +import com.google.cloud.storage.Blob; +import com.google.cloud.storage.Storage; +import com.google.cloud.storage.StorageOptions; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeoutException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Batch Translate Text sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class BatchTranslateTextTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String INPUT_URI = "gs://cloud-samples-data/translation/text.txt"; + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void cleanUpBucket() { + Storage storage = StorageOptions.getDefaultInstance().getService(); + Page blobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix("BATCH_TRANSLATION_OUTPUT/")); + + deleteDirectory(storage, blobs); + } + + private static void deleteDirectory(Storage storage, Page blobs) { + for (Blob blob : blobs.iterateAll()) { + System.out.println(blob.getBlobId()); + if (!blob.delete()) { + Page subBlobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix(blob.getName())); + + deleteDirectory(storage, subBlobs); + } + } + } + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + cleanUpBucket(); + System.setOut(null); + } + + @Test + public void testBatchTranslateText() + throws InterruptedException, ExecutionException, IOException, TimeoutException { + BatchTranslateText.batchTranslateText( + PROJECT_ID, "en", "es", INPUT_URI, "gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/"); + String got = bout.toString(); + assertThat(got).contains("Total Characters: 13"); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextTests.java new file mode 100644 index 00000000000..0c6ddbd835d --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextTests.java @@ -0,0 +1,71 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Translate Text sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class TranslateTextTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + System.setOut(null); + } + + @Test + public void testTranslateText() throws IOException { + TranslateText.translateText(PROJECT_ID, "es", "Hello world"); + String got = bout.toString(); + assertThat(got).contains("Hola Mundo"); + } +} From 6893c0785c7e1845d894cd79e83dcdc6d0a8b931 Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Wed, 5 Feb 2020 13:18:59 -0700 Subject: [PATCH 039/356] samples: translate: use unique gcs folders for batch translate tests (#2053) * translate: use unique gcs folders for batch translate tests * update based on feedback * fix typo --- .../com/example/translate/BatchTranslateTextTests.java | 8 ++++++-- .../BatchTranslateTextWithGlossaryAndModelTests.java | 7 +++++-- .../translate/BatchTranslateTextWithGlossaryTests.java | 7 +++++-- .../translate/BatchTranslateTextWithModelTests.java | 8 ++++++-- 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index daebf827fb9..ccd20972474 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -27,6 +27,7 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; +import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; @@ -43,6 +44,9 @@ public class BatchTranslateTextTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text.txt"; + private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -53,7 +57,7 @@ private static void cleanUpBucket() { storage.list( PROJECT_ID, Storage.BlobListOption.currentDirectory(), - Storage.BlobListOption.prefix("BATCH_TRANSLATION_OUTPUT/")); + Storage.BlobListOption.prefix(PREFIX)); deleteDirectory(storage, blobs); } @@ -102,7 +106,7 @@ public void tearDown() { public void testBatchTranslateText() throws InterruptedException, ExecutionException, IOException, TimeoutException { BatchTranslateText.batchTranslateText( - PROJECT_ID, "en", "es", INPUT_URI, "gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/"); + PROJECT_ID, "en", "es", INPUT_URI, OUTPUT_URI); String got = bout.toString(); assertThat(got).contains("Total Characters: 13"); } diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index 29da0562812..e8fe25709a2 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -64,6 +64,9 @@ public class BatchTranslateTextWithGlossaryAndModelTests { private static final String MODEL_ID = "TRL2188848820815848149"; private static final String GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv"; + private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -74,7 +77,7 @@ private static final void cleanUpBucket() { storage.list( PROJECT_ID, Storage.BlobListOption.currentDirectory(), - Storage.BlobListOption.prefix("BATCH_TRANSLATION_OUTPUT/")); + Storage.BlobListOption.prefix(PREFIX)); deleteDirectory(storage, blobs); } @@ -137,7 +140,7 @@ public void testBatchTranslateTextWithGlossaryAndModel() "en", "ja", INPUT_URI, - "gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/", + OUTPUT_URI, GLOSSARY_ID, MODEL_ID); String got = bout.toString(); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index 39fb65a58dd..ebd61202233 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -63,6 +63,9 @@ public class BatchTranslateTextWithGlossaryTests { "gs://cloud-samples-data/translation/glossary_ja.csv"; private static final String GLOSSARY_ID = String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -73,7 +76,7 @@ private static final void cleanUpBucket() { storage.list( PROJECT_ID, Storage.BlobListOption.currentDirectory(), - Storage.BlobListOption.prefix("BATCH_TRANSLATION_OUTPUT/")); + Storage.BlobListOption.prefix(PREFIX)); deleteDirectory(storage, blobs); } @@ -137,7 +140,7 @@ public void testBatchTranslateTextWithGlossary() "en", "ja", INPUT_URI, - "gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/", + OUTPUT_URI, GLOSSARY_ID); String got = bout.toString(); assertThat(got).contains("Total Characters: 9"); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index fa6a3852b7d..f81a0faa307 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -27,6 +27,7 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; +import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; @@ -45,6 +46,9 @@ public class BatchTranslateTextWithModelTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/custom_model_text.txt"; private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -55,7 +59,7 @@ private static final void cleanUpBucket() { storage.list( PROJECT_ID, Storage.BlobListOption.currentDirectory(), - Storage.BlobListOption.prefix("BATCH_TRANSLATION_OUTPUT/")); + Storage.BlobListOption.prefix(PREFIX)); deleteDirectory(storage, blobs); } @@ -108,7 +112,7 @@ public void testBatchTranslateTextWithModel() "en", "ja", INPUT_URI, - "gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/", + OUTPUT_URI, MODEL_ID); String got = bout.toString(); assertThat(got).contains("Total Characters: 15"); From cf8b9c253531df35e66cc24168e9b5af16cf778b Mon Sep 17 00:00:00 2001 From: nnegrey Date: Thu, 26 Mar 2020 10:58:45 -0600 Subject: [PATCH 040/356] samples: docs: update tests that are failing or not cleaning up resources --- .../src/main/java/com/example/translate/BatchTranslateText.java | 2 +- .../com/example/translate/BatchTranslateTextWithGlossary.java | 2 +- .../translate/BatchTranslateTextWithGlossaryAndModel.java | 2 +- .../java/com/example/translate/BatchTranslateTextWithModel.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java index 30d2ab181d2..466c3cd7fa0 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java @@ -86,7 +86,7 @@ public static void batchTranslateText( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(120, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(180, TimeUnit.SECONDS); System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); } diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java index 8971bf61f49..f622c5f6f05 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -104,7 +104,7 @@ public static void batchTranslateTextWithGlossary( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(120, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(180, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index cee7e7199a8..e1a52b819a4 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -111,7 +111,7 @@ public static void batchTranslateTextWithGlossaryAndModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(120, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(180, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java index 1433444a683..dbc70058586 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java @@ -101,7 +101,7 @@ public static void batchTranslateTextWithModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(120, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(180, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); From 168099b38ae52dcf1040f7d5353a98750dad632e Mon Sep 17 00:00:00 2001 From: Averi Kitsch Date: Fri, 27 Mar 2020 12:00:25 -0700 Subject: [PATCH 041/356] samples: update shared config (#2443) * update shared config * Update to 1.0.13 * lint * Fix linting * lint * fix imports Co-authored-by: Les Vogel --- .../example/translate/BatchTranslateText.java | 3 +-- .../BatchTranslateTextWithGlossary.java | 1 - ...atchTranslateTextWithGlossaryAndModel.java | 1 - .../BatchTranslateTextWithModel.java | 3 +-- .../com/example/translate/CreateGlossary.java | 1 - .../com/example/translate/DeleteGlossary.java | 1 - .../com/example/translate/DetectLanguage.java | 1 - .../com/example/translate/GetGlossary.java | 1 - .../translate/GetSupportedLanguages.java | 1 - .../GetSupportedLanguagesForTarget.java | 1 - .../com/example/translate/ListGlossaries.java | 1 - .../example/translate/QuickstartSample.java | 5 +--- .../com/example/translate/TranslateText.java | 1 - .../translate/TranslateTextWithGlossary.java | 1 - .../TranslateTextWithGlossaryAndModel.java | 1 - .../translate/TranslateTextWithModel.java | 1 - .../translate/BatchTranslateTextTests.java | 7 ++---- ...ranslateTextWithGlossaryAndModelTests.java | 24 ++----------------- .../BatchTranslateTextWithGlossaryTests.java | 23 ++---------------- .../BatchTranslateTextWithModelTests.java | 11 ++------- .../translate/CreateGlossaryTests.java | 1 - .../translate/DeleteGlossaryTests.java | 4 +--- .../example/translate/GetGlossaryTests.java | 14 ----------- .../translate/ListGlossariesTests.java | 14 ----------- .../example/translate/QuickstartSampleIT.java | 4 +--- ...ranslateTextWithGlossaryAndModelTests.java | 14 ----------- .../TranslateTextWithGlossaryTests.java | 14 ----------- 27 files changed, 13 insertions(+), 141 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java index 466c3cd7fa0..118cf6bff97 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java @@ -27,7 +27,6 @@ import com.google.cloud.translate.v3.LocationName; import com.google.cloud.translate.v3.OutputConfig; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; @@ -54,7 +53,7 @@ public static void batchTranslateText( String targetLanguage, String inputUri, String outputUri) - throws IOException, ExecutionException, InterruptedException, TimeoutException { + throws IOException, ExecutionException, InterruptedException, TimeoutException { // Initialize client that will be used to send requests. This client only needs to be created // once, and can be reused for multiple requests. After completing all of your requests, call diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java index f622c5f6f05..a839d500ac4 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -29,7 +29,6 @@ import com.google.cloud.translate.v3.OutputConfig; import com.google.cloud.translate.v3.TranslateTextGlossaryConfig; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index e1a52b819a4..92615eb1b4c 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -29,7 +29,6 @@ import com.google.cloud.translate.v3.OutputConfig; import com.google.cloud.translate.v3.TranslateTextGlossaryConfig; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java index dbc70058586..acce714753a 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java @@ -27,7 +27,6 @@ import com.google.cloud.translate.v3.LocationName; import com.google.cloud.translate.v3.OutputConfig; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; @@ -57,7 +56,7 @@ public static void batchTranslateTextWithModel( String inputUri, String outputUri, String modelId) - throws IOException, ExecutionException, InterruptedException, TimeoutException { + throws IOException, ExecutionException, InterruptedException, TimeoutException { // Initialize client that will be used to send requests. This client only needs to be created // once, and can be reused for multiple requests. After completing all of your requests, call diff --git a/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java b/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java index a99f10def6f..ab9f7de4f0e 100644 --- a/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java @@ -26,7 +26,6 @@ import com.google.cloud.translate.v3.GlossaryName; import com.google.cloud.translate.v3.LocationName; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; import java.util.ArrayList; import java.util.List; diff --git a/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java b/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java index 73fe577a303..78266cdb5e1 100644 --- a/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java @@ -23,7 +23,6 @@ import com.google.cloud.translate.v3.DeleteGlossaryResponse; import com.google.cloud.translate.v3.GlossaryName; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; import java.util.concurrent.ExecutionException; diff --git a/translate/snippets/src/main/java/com/example/translate/DetectLanguage.java b/translate/snippets/src/main/java/com/example/translate/DetectLanguage.java index 945dad8f07e..a1b4c5fb19f 100644 --- a/translate/snippets/src/main/java/com/example/translate/DetectLanguage.java +++ b/translate/snippets/src/main/java/com/example/translate/DetectLanguage.java @@ -22,7 +22,6 @@ import com.google.cloud.translate.v3.DetectedLanguage; import com.google.cloud.translate.v3.LocationName; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class DetectLanguage { diff --git a/translate/snippets/src/main/java/com/example/translate/GetGlossary.java b/translate/snippets/src/main/java/com/example/translate/GetGlossary.java index e400f503ae0..c3e8283bd13 100644 --- a/translate/snippets/src/main/java/com/example/translate/GetGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/GetGlossary.java @@ -21,7 +21,6 @@ import com.google.cloud.translate.v3.Glossary; import com.google.cloud.translate.v3.GlossaryName; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class GetGlossary { diff --git a/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguages.java b/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguages.java index 32963c406bf..08eb5d46b65 100644 --- a/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguages.java +++ b/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguages.java @@ -22,7 +22,6 @@ import com.google.cloud.translate.v3.SupportedLanguage; import com.google.cloud.translate.v3.SupportedLanguages; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class GetSupportedLanguages { diff --git a/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java b/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java index 1001ae7a551..d3de319ad5c 100644 --- a/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java +++ b/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java @@ -22,7 +22,6 @@ import com.google.cloud.translate.v3.SupportedLanguage; import com.google.cloud.translate.v3.SupportedLanguages; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class GetSupportedLanguagesForTarget { diff --git a/translate/snippets/src/main/java/com/example/translate/ListGlossaries.java b/translate/snippets/src/main/java/com/example/translate/ListGlossaries.java index 055c2d14058..129d58ec7b7 100644 --- a/translate/snippets/src/main/java/com/example/translate/ListGlossaries.java +++ b/translate/snippets/src/main/java/com/example/translate/ListGlossaries.java @@ -21,7 +21,6 @@ import com.google.cloud.translate.v3.ListGlossariesRequest; import com.google.cloud.translate.v3.LocationName; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class ListGlossaries { diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java index bf3aad063e1..d946c13aada 100644 --- a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -34,10 +34,7 @@ public static void main(String... args) throws Exception { // Translates some text into Russian Translation translation = translate.translate( - text, - TranslateOption.sourceLanguage("en"), - TranslateOption.targetLanguage("ru")); - + text, TranslateOption.sourceLanguage("en"), TranslateOption.targetLanguage("ru")); System.out.printf("Text: %s%n", text); System.out.printf("Translation: %s%n", translation.getTranslatedText()); diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateText.java b/translate/snippets/src/main/java/com/example/translate/TranslateText.java index 94989428218..a36b54a65b5 100644 --- a/translate/snippets/src/main/java/com/example/translate/TranslateText.java +++ b/translate/snippets/src/main/java/com/example/translate/TranslateText.java @@ -22,7 +22,6 @@ import com.google.cloud.translate.v3.TranslateTextResponse; import com.google.cloud.translate.v3.Translation; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class TranslateText { diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossary.java index 07e0c6c7e03..78c35aa66e7 100644 --- a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossary.java @@ -24,7 +24,6 @@ import com.google.cloud.translate.v3.TranslateTextResponse; import com.google.cloud.translate.v3.Translation; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class TranslateTextWithGlossary { diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java index 473d3042eba..a383689deec 100644 --- a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java @@ -24,7 +24,6 @@ import com.google.cloud.translate.v3.TranslateTextResponse; import com.google.cloud.translate.v3.Translation; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class TranslateTextWithGlossaryAndModel { diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithModel.java index ace54514837..9d81c7979d9 100644 --- a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithModel.java +++ b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithModel.java @@ -22,7 +22,6 @@ import com.google.cloud.translate.v3.TranslateTextResponse; import com.google.cloud.translate.v3.Translation; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class TranslateTextWithModel { diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index ccd20972474..2b41f00d9ac 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -23,14 +23,12 @@ import com.google.cloud.storage.Blob; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -46,7 +44,7 @@ public class BatchTranslateTextTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/text.txt"; private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -105,8 +103,7 @@ public void tearDown() { @Test public void testBatchTranslateText() throws InterruptedException, ExecutionException, IOException, TimeoutException { - BatchTranslateText.batchTranslateText( - PROJECT_ID, "en", "es", INPUT_URI, OUTPUT_URI); + BatchTranslateText.batchTranslateText(PROJECT_ID, "en", "es", INPUT_URI, OUTPUT_URI); String got = bout.toString(); assertThat(got).contains("Total Characters: 13"); } diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index e8fe25709a2..b88419d9d5f 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -19,23 +19,10 @@ import static com.google.common.truth.Truth.assertThat; import static junit.framework.TestCase.assertNotNull; -import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.Page; import com.google.cloud.storage.Blob; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.GcsSource; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.GlossaryInputConfig; -import com.google.cloud.translate.v3.GlossaryName; -import com.google.cloud.translate.v3.LocationName; -import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -44,7 +31,6 @@ import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -66,7 +52,7 @@ public class BatchTranslateTextWithGlossaryAndModelTests { "gs://cloud-samples-data/translation/glossary_ja.csv"; private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -136,13 +122,7 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept public void testBatchTranslateTextWithGlossaryAndModel() throws InterruptedException, ExecutionException, IOException, TimeoutException { BatchTranslateTextWithGlossaryAndModel.batchTranslateTextWithGlossaryAndModel( - PROJECT_ID, - "en", - "ja", - INPUT_URI, - OUTPUT_URI, - GLOSSARY_ID, - MODEL_ID); + PROJECT_ID, "en", "ja", INPUT_URI, OUTPUT_URI, GLOSSARY_ID, MODEL_ID); String got = bout.toString(); assertThat(got).contains("Total Characters: 25"); } diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index ebd61202233..92258d8ee89 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -19,23 +19,10 @@ import static com.google.common.truth.Truth.assertThat; import static junit.framework.TestCase.assertNotNull; -import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.Page; import com.google.cloud.storage.Blob; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.GcsSource; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.GlossaryInputConfig; -import com.google.cloud.translate.v3.GlossaryName; -import com.google.cloud.translate.v3.LocationName; -import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -44,7 +31,6 @@ import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -65,7 +51,7 @@ public class BatchTranslateTextWithGlossaryTests { String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -136,12 +122,7 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept public void testBatchTranslateTextWithGlossary() throws InterruptedException, ExecutionException, IOException, TimeoutException { BatchTranslateTextWithGlossary.batchTranslateTextWithGlossary( - PROJECT_ID, - "en", - "ja", - INPUT_URI, - OUTPUT_URI, - GLOSSARY_ID); + PROJECT_ID, "en", "ja", INPUT_URI, OUTPUT_URI, GLOSSARY_ID); String got = bout.toString(); assertThat(got).contains("Total Characters: 9"); } diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index f81a0faa307..db7ef195c18 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -20,7 +20,6 @@ import static junit.framework.TestCase.assertNotNull; import com.google.api.gax.paging.Page; - import com.google.cloud.storage.Blob; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; @@ -30,7 +29,6 @@ import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -48,7 +46,7 @@ public class BatchTranslateTextWithModelTests { private static final String MODEL_ID = "TRL2188848820815848149"; private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -108,12 +106,7 @@ public void tearDown() { public void testBatchTranslateTextWithModel() throws InterruptedException, ExecutionException, IOException, TimeoutException { BatchTranslateTextWithModel.batchTranslateTextWithModel( - PROJECT_ID, - "en", - "ja", - INPUT_URI, - OUTPUT_URI, - MODEL_ID); + PROJECT_ID, "en", "ja", INPUT_URI, OUTPUT_URI, MODEL_ID); String got = bout.toString(); assertThat(got).contains("Total Characters: 15"); } diff --git a/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java index b3ccb01395e..258dd37813f 100644 --- a/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java @@ -26,7 +26,6 @@ import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; diff --git a/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java index 8fe5fd660c4..800a32361c0 100644 --- a/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java @@ -26,7 +26,6 @@ import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -81,8 +80,7 @@ public void tearDown() { } @Test - public void testDeleteGlossary() - throws InterruptedException, ExecutionException, IOException { + public void testDeleteGlossary() throws InterruptedException, ExecutionException, IOException { DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); String got = bout.toString(); assertThat(got).contains("us-central1"); diff --git a/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java index d082c4fddb0..b8ce2cdb99a 100644 --- a/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java @@ -19,19 +19,6 @@ import static com.google.common.truth.Truth.assertThat; import static junit.framework.TestCase.assertNotNull; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.GcsSource; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.GlossaryInputConfig; -import com.google.cloud.translate.v3.GlossaryName; -import com.google.cloud.translate.v3.LocationName; -import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -39,7 +26,6 @@ import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; diff --git a/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java b/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java index ee87cfdf67f..55776b32805 100644 --- a/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java +++ b/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java @@ -19,19 +19,6 @@ import static com.google.common.truth.Truth.assertThat; import static junit.framework.TestCase.assertNotNull; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.GcsSource; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.GlossaryInputConfig; -import com.google.cloud.translate.v3.GlossaryName; -import com.google.cloud.translate.v3.LocationName; -import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -39,7 +26,6 @@ import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; diff --git a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java index 78480b78fc3..a9a5fb8a42c 100644 --- a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java +++ b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java @@ -26,9 +26,7 @@ import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -/** - * Tests for quickstart sample. - */ +/** Tests for quickstart sample. */ @RunWith(JUnit4.class) @SuppressWarnings("checkstyle:abbreviationaswordinname") public class QuickstartSampleIT { diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java index dc68fa0fa92..80d269fcffe 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java @@ -19,19 +19,6 @@ import static com.google.common.truth.Truth.assertThat; import static junit.framework.TestCase.assertNotNull; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.GcsSource; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.GlossaryInputConfig; -import com.google.cloud.translate.v3.GlossaryName; -import com.google.cloud.translate.v3.LocationName; -import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -39,7 +26,6 @@ import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java index ad7f560195b..3b2be95994e 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java @@ -19,19 +19,6 @@ import static com.google.common.truth.Truth.assertThat; import static junit.framework.TestCase.assertNotNull; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.GcsSource; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.GlossaryInputConfig; -import com.google.cloud.translate.v3.GlossaryName; -import com.google.cloud.translate.v3.LocationName; -import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -39,7 +26,6 @@ import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; From 39b79dce8c10908a4c1bc914406b76f485fff972 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Fri, 14 Aug 2020 14:10:30 -0700 Subject: [PATCH 042/356] samples: fix test dependencies --- translate/snippets/pom.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 067025014c4..25084c2af25 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -42,8 +42,11 @@ com.google.cloud google-cloud-translate - - + + + com.google.cloud + google-cloud-storage + junit junit @@ -56,5 +59,7 @@ 1.0.1 test + + From 6d4949df7bcaef15b42fa282b68e4b544ba3bc3c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Aug 2020 00:04:13 +0200 Subject: [PATCH 043/356] chore(deps): update dependency com.google.cloud:libraries-bom to v9.1.0 --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 25084c2af25..896632c2ae6 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 9.0.0 + 9.1.0 pom import From 93b1ba74373ef424e3c1e2cebb6b1e3153f1b10c Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Wed, 26 Aug 2020 15:36:21 -0700 Subject: [PATCH 044/356] fix: increase batch translate timeout to 300 (#274) --- .../src/main/java/com/example/translate/BatchTranslateText.java | 2 +- .../com/example/translate/BatchTranslateTextWithGlossary.java | 2 +- .../translate/BatchTranslateTextWithGlossaryAndModel.java | 2 +- .../java/com/example/translate/BatchTranslateTextWithModel.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java index 118cf6bff97..690525258c4 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java @@ -85,7 +85,7 @@ public static void batchTranslateText( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(180, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(300, TimeUnit.SECONDS); System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); } diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java index a839d500ac4..21780b74249 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -103,7 +103,7 @@ public static void batchTranslateTextWithGlossary( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(180, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(300, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index 92615eb1b4c..652709091ff 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -110,7 +110,7 @@ public static void batchTranslateTextWithGlossaryAndModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(180, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(300, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java index acce714753a..2232724c7ba 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java @@ -100,7 +100,7 @@ public static void batchTranslateTextWithModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(180, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(300, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); From f67a00106d3105e8ec1ec1f953075c64506a1eeb Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Tue, 22 Sep 2020 12:43:46 -0700 Subject: [PATCH 045/356] samples: increased timeout up to 450 secs since batch LRO reaches 5 min mark sometimes (#286) --- .../src/main/java/com/example/translate/BatchTranslateText.java | 2 +- .../com/example/translate/BatchTranslateTextWithGlossary.java | 2 +- .../translate/BatchTranslateTextWithGlossaryAndModel.java | 2 +- .../java/com/example/translate/BatchTranslateTextWithModel.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java index 690525258c4..3f547a9db73 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java @@ -85,7 +85,7 @@ public static void batchTranslateText( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(300, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(450, TimeUnit.SECONDS); System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); } diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java index 21780b74249..8b270bb68d7 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -103,7 +103,7 @@ public static void batchTranslateTextWithGlossary( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(300, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(450, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index 652709091ff..8ecab29c8a1 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -110,7 +110,7 @@ public static void batchTranslateTextWithGlossaryAndModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(300, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(450, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java index 2232724c7ba..c8c906619ac 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java @@ -100,7 +100,7 @@ public static void batchTranslateTextWithModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(300, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(450, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); From 5bdb9b455ff3750b2d89d97839c2d978cb209ee8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 23 Sep 2020 01:40:23 +0200 Subject: [PATCH 046/356] chore(deps): update dependency com.google.cloud:libraries-bom to v10 (#280) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `9.1.0` -> `10.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 896632c2ae6..3ab5ac26393 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 9.1.0 + 10.1.0 pom import From 7ea217940d00aa1d89dbafce6f4a0a403f04d96a Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Fri, 9 Oct 2020 11:56:13 -0700 Subject: [PATCH 047/356] samples: Translate flaky tests (#297) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #292 #268 #267 ☕️ This is the draft I do not know it is considered as good test design using base class I basically got the idea from the stack overflow answer: https://stackoverflow.com/questions/8295100/how-to-re-run-failed-junit-tests-immediately --- .../example/translate/BatchTranslateText.java | 7 +- .../BatchTranslateTextWithGlossary.java | 7 +- ...atchTranslateTextWithGlossaryAndModel.java | 7 +- .../BatchTranslateTextWithModel.java | 7 +- .../translate/BatchTranslateTextTests.java | 9 ++- ...ranslateTextWithGlossaryAndModelTests.java | 8 ++- .../BatchTranslateTextWithGlossaryTests.java | 8 ++- .../BatchTranslateTextWithModelTests.java | 8 ++- .../java/com/example/translate/Retry.java | 65 +++++++++++++++++++ 9 files changed, 118 insertions(+), 8 deletions(-) create mode 100644 translate/snippets/src/test/java/com/example/translate/Retry.java diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java index 3f547a9db73..d36b9962b15 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java @@ -29,6 +29,7 @@ import com.google.cloud.translate.v3.TranslationServiceClient; import java.io.IOException; import java.util.concurrent.ExecutionException; +import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; @@ -85,7 +86,11 @@ public static void batchTranslateText( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(450, TimeUnit.SECONDS); + + // random number between 300 - 450 (maximum allowed seconds) + long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); + BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); + System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); } diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java index 8b270bb68d7..1a69412fa9e 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -31,6 +31,7 @@ import com.google.cloud.translate.v3.TranslationServiceClient; import java.io.IOException; import java.util.concurrent.ExecutionException; +import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; @@ -103,7 +104,11 @@ public static void batchTranslateTextWithGlossary( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(450, TimeUnit.SECONDS); + + // random number between 300 - 450 (maximum allowed seconds) + long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); + BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); + // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index 8ecab29c8a1..049dac579c1 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -31,6 +31,7 @@ import com.google.cloud.translate.v3.TranslationServiceClient; import java.io.IOException; import java.util.concurrent.ExecutionException; +import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; @@ -110,7 +111,11 @@ public static void batchTranslateTextWithGlossaryAndModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(450, TimeUnit.SECONDS); + + // random number between 300 - 450 (maximum allowed seconds) + long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); + BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); + // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java index c8c906619ac..da0624618b4 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java @@ -29,6 +29,7 @@ import com.google.cloud.translate.v3.TranslationServiceClient; import java.io.IOException; import java.util.concurrent.ExecutionException; +import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; @@ -100,7 +101,11 @@ public static void batchTranslateTextWithModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(450, TimeUnit.SECONDS); + + // random number between 300 - 450 (maximum allowed seconds) + long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); + BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); + // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index 2b41f00d9ac..24ac82dee2a 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -32,6 +32,7 @@ import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -48,6 +49,7 @@ public class BatchTranslateTextTests { private ByteArrayOutputStream bout; private PrintStream out; + @Rule public Retry retry = new Retry(3); private static void cleanUpBucket() { Storage storage = StorageOptions.getDefaultInstance().getService(); @@ -87,23 +89,28 @@ public static void checkRequirements() { requireEnvVar("GOOGLE_CLOUD_PROJECT"); } + private PrintStream originalPrintStream; + @Before public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { cleanUpBucket(); - System.setOut(null); + System.out.flush(); + System.setOut(originalPrintStream); } @Test public void testBatchTranslateText() throws InterruptedException, ExecutionException, IOException, TimeoutException { BatchTranslateText.batchTranslateText(PROJECT_ID, "en", "es", INPUT_URI, OUTPUT_URI); + String got = bout.toString(); assertThat(got).contains("Total Characters: 13"); } diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index b88419d9d5f..0f079dc6307 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -34,6 +34,7 @@ import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -56,6 +57,7 @@ public class BatchTranslateTextWithGlossaryAndModelTests { private ByteArrayOutputStream bout; private PrintStream out; + @Rule public Retry retry = new Retry(3); private static final void cleanUpBucket() { Storage storage = StorageOptions.getDefaultInstance().getService(); @@ -95,6 +97,8 @@ public static void checkRequirements() { requireEnvVar("GOOGLE_CLOUD_PROJECT"); } + private PrintStream originalPrintStream; + @Before public void setUp() throws InterruptedException, ExecutionException, IOException { // Create a glossary that can be used in the test @@ -107,6 +111,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @@ -115,7 +120,8 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept cleanUpBucket(); // Delete the created glossary DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); - System.setOut(null); + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index 92258d8ee89..4ee05d89752 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -34,6 +34,7 @@ import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -55,6 +56,7 @@ public class BatchTranslateTextWithGlossaryTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static final void cleanUpBucket() { Storage storage = StorageOptions.getDefaultInstance().getService(); @@ -106,6 +108,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @@ -115,9 +118,12 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept cleanUpBucket(); // Delete the created glossary DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); - System.setOut(null); + System.out.flush(); + System.setOut(originalPrintStream); } + @Rule public Retry retry = new Retry(3); + @Test public void testBatchTranslateTextWithGlossary() throws InterruptedException, ExecutionException, IOException, TimeoutException { diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index db7ef195c18..4a37362c3ef 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -32,6 +32,7 @@ import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -50,6 +51,7 @@ public class BatchTranslateTextWithModelTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static final void cleanUpBucket() { Storage storage = StorageOptions.getDefaultInstance().getService(); @@ -93,15 +95,19 @@ public static void checkRequirements() { public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { cleanUpBucket(); - System.setOut(null); + System.out.flush(); + System.setOut(originalPrintStream); } + @Rule public Retry retry = new Retry(3); + @Test public void testBatchTranslateTextWithModel() throws InterruptedException, ExecutionException, IOException, TimeoutException { diff --git a/translate/snippets/src/test/java/com/example/translate/Retry.java b/translate/snippets/src/test/java/com/example/translate/Retry.java new file mode 100644 index 00000000000..6ce19e0ac6f --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/Retry.java @@ -0,0 +1,65 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import java.util.Objects; +import org.junit.rules.TestRule; +import org.junit.runner.Description; +import org.junit.runners.model.Statement; + +public class Retry implements TestRule { + private int maxAttempts; + + public Retry(int maxAttempts) { + this.maxAttempts = maxAttempts; + } + + @Override + public Statement apply(Statement base, Description description) { + return statement(base, description); + } + + private Statement statement(final Statement base, final Description description) { + return new Statement() { + @Override + public void evaluate() throws Throwable { + Throwable caughtThrowable = null; + + // implement retry logic here + int factor = 1; + for (int attempt = 0; attempt < maxAttempts; attempt++) { + try { + base.evaluate(); + return; + } catch (Throwable t) { + caughtThrowable = t; + + // random_number_milliseconds that is less than or equal to 1000. + int randomNumberMilliseconds = (int) Math.floor(Math.random() * 1000) + 1; + Thread.sleep(1300 * factor + randomNumberMilliseconds); + System.out.println(description.getDisplayName() + ": run " + (attempt + 1) + " failed"); + factor += 1; + + } + } + System.out.println( + description.getDisplayName() + ": giving up after " + maxAttempts + " failures"); + throw Objects.requireNonNull(caughtThrowable); + } + }; + } +} From e29d08a050864f67baf738b912835e4845da3f53 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 16 Oct 2020 00:46:16 +0200 Subject: [PATCH 048/356] chore(deps): update dependency com.google.cloud:libraries-bom to v12 (#306) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `10.1.0` -> `12.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 3ab5ac26393..24c242bbf29 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 10.1.0 + 12.0.0 pom import From 31ec1b8d2acc257a77f3db858434fc02529dc3da Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 16 Oct 2020 18:15:01 +0200 Subject: [PATCH 049/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.21 (#303) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](com/google/cloud/samples/shared-configuration) | patch | `1.0.18` -> `1.0.21` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 24c242bbf29..85e8c40d399 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.18 + 1.0.21 From 5112107ec68528d9f712c48f42f18a2813a89fd7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 19 Oct 2020 20:11:54 +0200 Subject: [PATCH 050/356] chore(deps): update dependency com.google.cloud:libraries-bom to v12.1.0 (#314) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 85e8c40d399..373cac0c85d 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 12.0.0 + 12.1.0 pom import From 5b0c2a6fcfa482834b67c1be4fbab8877445a806 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Oct 2020 01:32:38 +0200 Subject: [PATCH 051/356] test(deps): update dependency junit:junit to v4.13.1 (#305) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 373cac0c85d..3ea4ddc48ce 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -50,7 +50,7 @@ junit junit - 4.13 + 4.13.1 test From 3d0ed5b6bb459134e03b54929d0b5f78d8eee850 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Oct 2020 21:34:08 +0200 Subject: [PATCH 052/356] chore(deps): update dependency com.google.cloud:libraries-bom to v13 (#322) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `12.1.0` -> `13.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 3ea4ddc48ce..7253f74e730 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 12.1.0 + 13.1.0 pom import From 7b32606395b61b97ebb9b209a5bfd5bd09c75ac5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 22 Oct 2020 21:36:37 +0200 Subject: [PATCH 053/356] test(deps): update dependency com.google.truth:truth to v1.1 (#321) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.truth:truth](com/google/truth/truth) | minor | `1.0.1` -> `1.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 7253f74e730..21f2062e123 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -56,7 +56,7 @@ com.google.truth truth - 1.0.1 + 1.1 test From 561cf67b670dd622c39a0f51c1aa58082e81312d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Oct 2020 00:58:06 +0100 Subject: [PATCH 054/356] chore(deps): update dependency com.google.cloud:libraries-bom to v13.2.0 (#325) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.1.0` -> `13.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 21f2062e123..d36274af43c 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.1.0 + 13.2.0 pom import From 3ccd927326ba94bf2295e550658b387b4245b7d1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 31 Oct 2020 00:02:03 +0100 Subject: [PATCH 055/356] chore(deps): update dependency com.google.cloud:libraries-bom to v13.3.0 (#326) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index d36274af43c..7b37bba6717 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.2.0 + 13.3.0 pom import From e1b78b99a80e2136400d59235abfd6dfe30fa3ce Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 31 Oct 2020 00:34:17 +0100 Subject: [PATCH 056/356] chore(deps): update dependency com.google.cloud:libraries-bom to v13.4.0 (#333) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.3.0` -> `13.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 7b37bba6717..4384206459f 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.3.0 + 13.4.0 pom import From 91a6f0aeba1e9cb9050ad33523ac905b5dc1dd22 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Nov 2020 18:00:34 +0100 Subject: [PATCH 057/356] chore(deps): update dependency com.google.cloud:libraries-bom to v16 (#351) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `13.4.0` -> `16.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 4384206459f..3ce79216695 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.4.0 + 16.1.0 pom import From 9d73d29e961b2c199b605239717feb07e7452c47 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Dec 2020 23:30:11 +0100 Subject: [PATCH 058/356] chore(deps): update dependency com.google.cloud:libraries-bom to v16.2.0 (#374) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `16.1.0` -> `16.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 3ce79216695..791d1f3629a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.1.0 + 16.2.0 pom import From f383b751bfa1126e8d4178e700a32b1f5b3f3fc6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Jan 2021 17:22:04 +0100 Subject: [PATCH 059/356] test(deps): update dependency com.google.truth:truth to v1.1.2 (#393) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 791d1f3629a..e6f1148542a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -56,7 +56,7 @@ com.google.truth truth - 1.1 + 1.1.2 test From 8bc654bf6cf850dd585f5e24884843b93369ee67 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Jan 2021 17:22:19 +0100 Subject: [PATCH 060/356] chore(deps): update dependency com.google.cloud:libraries-bom to v16.3.0 (#385) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index e6f1148542a..6fe2d42ea5a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.2.0 + 16.3.0 pom import From 0df58c968d4b84f0b0ae241828bb865e32f21ff4 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Thu, 28 Jan 2021 10:41:01 -0800 Subject: [PATCH 061/356] =?UTF-8?q?chore:=20removed=20retry=20class=20and?= =?UTF-8?q?=20used=20com.google.cloud.testing.Multiple=E2=80=A6=20(#398)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: removed retry class and used com.google.cloud.testing.MultipleAttempt * xed lint --- translate/snippets/pom.xml | 7 ++ .../translate/BatchTranslateTextTests.java | 5 +- ...ranslateTextWithGlossaryAndModelTests.java | 5 +- .../BatchTranslateTextWithGlossaryTests.java | 4 +- .../BatchTranslateTextWithModelTests.java | 4 +- .../java/com/example/translate/Retry.java | 65 ------------------- 6 files changed, 21 insertions(+), 69 deletions(-) delete mode 100644 translate/snippets/src/test/java/com/example/translate/Retry.java diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6fe2d42ea5a..71184e1b564 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -59,6 +59,13 @@ 1.1.2 test + + com.google.cloud + google-cloud-core + 1.94.0 + test + tests + diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index 24ac82dee2a..c1fda2fd924 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -23,6 +23,7 @@ import com.google.cloud.storage.Blob; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; +import com.google.cloud.testing.junit4.MultipleAttemptsRule; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -49,7 +50,6 @@ public class BatchTranslateTextTests { private ByteArrayOutputStream bout; private PrintStream out; - @Rule public Retry retry = new Retry(3); private static void cleanUpBucket() { Storage storage = StorageOptions.getDefaultInstance().getService(); @@ -106,6 +106,9 @@ public void tearDown() { System.setOut(originalPrintStream); } + @Rule + public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); + @Test public void testBatchTranslateText() throws InterruptedException, ExecutionException, IOException, TimeoutException { diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index 0f079dc6307..2d763def273 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -23,6 +23,7 @@ import com.google.cloud.storage.Blob; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; +import com.google.cloud.testing.junit4.MultipleAttemptsRule; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -57,7 +58,6 @@ public class BatchTranslateTextWithGlossaryAndModelTests { private ByteArrayOutputStream bout; private PrintStream out; - @Rule public Retry retry = new Retry(3); private static final void cleanUpBucket() { Storage storage = StorageOptions.getDefaultInstance().getService(); @@ -124,6 +124,9 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept System.setOut(originalPrintStream); } + @Rule + public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); + @Test public void testBatchTranslateTextWithGlossaryAndModel() throws InterruptedException, ExecutionException, IOException, TimeoutException { diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index 4ee05d89752..b7a003384a0 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -23,6 +23,7 @@ import com.google.cloud.storage.Blob; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; +import com.google.cloud.testing.junit4.MultipleAttemptsRule; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -122,7 +123,8 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept System.setOut(originalPrintStream); } - @Rule public Retry retry = new Retry(3); + @Rule + public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); @Test public void testBatchTranslateTextWithGlossary() diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index 4a37362c3ef..ffa6c089342 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -23,6 +23,7 @@ import com.google.cloud.storage.Blob; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; +import com.google.cloud.testing.junit4.MultipleAttemptsRule; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -106,7 +107,8 @@ public void tearDown() { System.setOut(originalPrintStream); } - @Rule public Retry retry = new Retry(3); + @Rule + public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); @Test public void testBatchTranslateTextWithModel() diff --git a/translate/snippets/src/test/java/com/example/translate/Retry.java b/translate/snippets/src/test/java/com/example/translate/Retry.java deleted file mode 100644 index 6ce19e0ac6f..00000000000 --- a/translate/snippets/src/test/java/com/example/translate/Retry.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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 - * - * 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. - */ - -package com.example.translate; - -import java.util.Objects; -import org.junit.rules.TestRule; -import org.junit.runner.Description; -import org.junit.runners.model.Statement; - -public class Retry implements TestRule { - private int maxAttempts; - - public Retry(int maxAttempts) { - this.maxAttempts = maxAttempts; - } - - @Override - public Statement apply(Statement base, Description description) { - return statement(base, description); - } - - private Statement statement(final Statement base, final Description description) { - return new Statement() { - @Override - public void evaluate() throws Throwable { - Throwable caughtThrowable = null; - - // implement retry logic here - int factor = 1; - for (int attempt = 0; attempt < maxAttempts; attempt++) { - try { - base.evaluate(); - return; - } catch (Throwable t) { - caughtThrowable = t; - - // random_number_milliseconds that is less than or equal to 1000. - int randomNumberMilliseconds = (int) Math.floor(Math.random() * 1000) + 1; - Thread.sleep(1300 * factor + randomNumberMilliseconds); - System.out.println(description.getDisplayName() + ": run " + (attempt + 1) + " failed"); - factor += 1; - - } - } - System.out.println( - description.getDisplayName() + ": giving up after " + maxAttempts + " failures"); - throw Objects.requireNonNull(caughtThrowable); - } - }; - } -} From e512c7e9a1fcca2d2df32afdff15f891e5b0a1e5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 5 Feb 2021 14:55:45 +0100 Subject: [PATCH 062/356] deps: update dependency com.google.cloud:google-cloud-core to v1.94.1 (#409) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 71184e1b564..968541d184d 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.94.0 + 1.94.1 test tests From 199e01c07743ce0153006c97c66f0631f7e160da Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Feb 2021 19:41:55 +0100 Subject: [PATCH 063/356] chore(deps): update dependency com.google.cloud:libraries-bom to v16.4.0 (#414) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 968541d184d..1c2a7b57acd 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.3.0 + 16.4.0 pom import From 7371e24dfaeb6c8fc3424c707e99af0faa3813c9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Feb 2021 19:06:08 +0100 Subject: [PATCH 064/356] test(deps): update dependency junit:junit to v4.13.2 (#418) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [junit:junit](http://junit.org) ([source](https://togithub.com/junit-team/junit4)) | `4.13.1` -> `4.13.2` | [![age](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/compatibility-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/confidence-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 1c2a7b57acd..e4e438fda7e 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -50,7 +50,7 @@ junit junit - 4.13.1 + 4.13.2 test From 35143b3d492c1dc1f1f7ae57786379e29243eebd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Feb 2021 20:36:31 +0100 Subject: [PATCH 065/356] chore(deps): update dependency com.google.cloud:libraries-bom to v17 (#438) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `16.4.0` -> `17.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/compatibility-slim/16.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/confidence-slim/16.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index e4e438fda7e..143606f1489 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.4.0 + 17.0.0 pom import From a5a62429e0d709fd786b521eccd633dd7943338c Mon Sep 17 00:00:00 2001 From: Suraj Dhamecha <48670070+suraj-qlogic@users.noreply.github.com> Date: Thu, 25 Feb 2021 04:24:35 +0530 Subject: [PATCH 066/356] refactor(samples): restore stdout to original state after test (#379) --- .../java/com/example/translate/CreateGlossaryTests.java | 7 +++++-- .../java/com/example/translate/DeleteGlossaryTests.java | 6 +++++- .../java/com/example/translate/DetectLanguageTests.java | 6 +++++- .../test/java/com/example/translate/GetGlossaryTests.java | 6 +++++- .../translate/GetSupportedLanguagesForTargetTests.java | 6 +++++- .../com/example/translate/GetSupportedLanguagesTests.java | 6 +++++- .../java/com/example/translate/ListGlossariesTests.java | 6 +++++- .../java/com/example/translate/QuickstartSampleIT.java | 6 +++++- .../java/com/example/translate/TranslateTextTests.java | 6 +++++- .../translate/TranslateTextWithGlossaryAndModelTests.java | 6 +++++- .../example/translate/TranslateTextWithGlossaryTests.java | 6 +++++- .../com/example/translate/TranslateTextWithModelTests.java | 6 +++++- 12 files changed, 60 insertions(+), 13 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java index 258dd37813f..3dc98bc1b18 100644 --- a/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java @@ -45,6 +45,7 @@ public class CreateGlossaryTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -62,6 +63,7 @@ public static void checkRequirements() { public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @@ -69,8 +71,9 @@ public void setUp() { public void tearDown() throws InterruptedException, ExecutionException, IOException { // Delete the created glossary DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); - - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java index 800a32361c0..0a5f4ce0181 100644 --- a/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java @@ -46,6 +46,7 @@ public class DeleteGlossaryTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -71,12 +72,15 @@ public void setUp() throws InterruptedException, ExecutionException, IOException bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/DetectLanguageTests.java b/translate/snippets/src/test/java/com/example/translate/DetectLanguageTests.java index c93b7a11f57..0f756a4e4f1 100644 --- a/translate/snippets/src/test/java/com/example/translate/DetectLanguageTests.java +++ b/translate/snippets/src/test/java/com/example/translate/DetectLanguageTests.java @@ -37,6 +37,7 @@ public class DetectLanguageTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -54,12 +55,15 @@ public static void checkRequirements() { public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java index b8ce2cdb99a..f157ca82f0c 100644 --- a/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java @@ -45,6 +45,7 @@ public class GetGlossaryTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -70,6 +71,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @@ -77,7 +79,9 @@ public void setUp() throws InterruptedException, ExecutionException, IOException public void tearDown() throws InterruptedException, ExecutionException, IOException { // Delete the created glossary DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java b/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java index 1381c0af96c..238e6af53c3 100644 --- a/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java +++ b/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java @@ -37,6 +37,7 @@ public class GetSupportedLanguagesForTargetTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -54,12 +55,15 @@ public static void checkRequirements() { public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesTests.java b/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesTests.java index da63a936967..e2da272b992 100644 --- a/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesTests.java +++ b/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesTests.java @@ -37,6 +37,7 @@ public class GetSupportedLanguagesTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -54,12 +55,15 @@ public static void checkRequirements() { public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java b/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java index 55776b32805..62c68c40c1a 100644 --- a/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java +++ b/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java @@ -46,6 +46,7 @@ public class ListGlossariesTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -71,6 +72,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @@ -78,7 +80,9 @@ public void setUp() throws InterruptedException, ExecutionException, IOException public void tearDown() throws InterruptedException, ExecutionException, IOException { // Delete the created glossary DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java index a9a5fb8a42c..1565cb4a3a8 100644 --- a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java +++ b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java @@ -32,17 +32,21 @@ public class QuickstartSampleIT { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; @Before public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextTests.java index 0c6ddbd835d..6d93272fcec 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextTests.java @@ -37,6 +37,7 @@ public class TranslateTextTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -54,12 +55,15 @@ public static void checkRequirements() { public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java index 80d269fcffe..6991cb64dad 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java @@ -46,6 +46,7 @@ public class TranslateTextWithGlossaryAndModelTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -71,6 +72,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @@ -79,7 +81,9 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept // Clean up // Delete the created glossary DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java index 3b2be95994e..eb088760a6a 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java @@ -45,6 +45,7 @@ public class TranslateTextWithGlossaryTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -70,6 +71,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @@ -78,7 +80,9 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept // Clean up // Delete the created glossary DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java index 0864cefc69a..5d9a853e90d 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java @@ -38,6 +38,7 @@ public class TranslateTextWithModelTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -55,12 +56,15 @@ public static void checkRequirements() { public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test From db12ce78c865a3fdf65d71bcb375f7db19c26770 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Feb 2021 16:08:23 +0100 Subject: [PATCH 067/356] chore(deps): update dependency com.google.cloud:libraries-bom to v18 (#441) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `17.0.0` -> `18.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/compatibility-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/confidence-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 143606f1489..29af7530915 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 17.0.0 + 18.0.0 pom import From 6a0373b565bfdb2f8e60cf4aca4df652b1202140 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Mar 2021 22:52:21 +0100 Subject: [PATCH 068/356] deps: update dependency com.google.cloud:google-cloud-core to v1.94.2 (#454) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 29af7530915..13d4035321e 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.94.1 + 1.94.2 test tests From ed7bcc7b7d9de2494adb977a67410a7beec2338c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Mar 2021 20:36:12 +0100 Subject: [PATCH 069/356] chore(deps): update dependency com.google.cloud:libraries-bom to v19 (#460) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `18.0.0` -> `19.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/compatibility-slim/18.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/confidence-slim/18.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 13d4035321e..9e1b2ee61f3 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 18.0.0 + 19.0.0 pom import From 1d6716b7366398e83c4d945bfc9b264a998d5abc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Mar 2021 20:42:58 +0100 Subject: [PATCH 070/356] deps: update dependency com.google.cloud:google-cloud-core to v1.94.3 (#457) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 9e1b2ee61f3..42cddf3e64b 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.94.2 + 1.94.3 test tests From f1271fda42af8439eaedbf6b5f594fb81b11dc9c Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Mon, 8 Mar 2021 12:20:14 -0800 Subject: [PATCH 071/356] chore: adding new output for each test so that the following issue won't occur :Output dir is in use by another batch translation job. output_uri_prefix: (#464) --- .../translate/BatchTranslateTextWithGlossaryAndModelTests.java | 2 +- .../example/translate/BatchTranslateTextWithGlossaryTests.java | 2 +- .../com/example/translate/BatchTranslateTextWithModelTests.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index 2d763def273..b031a5ac04f 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -52,7 +52,7 @@ public class BatchTranslateTextWithGlossaryAndModelTests { private static final String MODEL_ID = "TRL2188848820815848149"; private static final String GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv"; - private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index b7a003384a0..d2b9ca1c210 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -51,7 +51,7 @@ public class BatchTranslateTextWithGlossaryTests { "gs://cloud-samples-data/translation/glossary_ja.csv"; private static final String GLOSSARY_ID = String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); - private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String PREFIX = "BATCH_TRANSLATION_GLOSSARY_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index ffa6c089342..e9f09b07916 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -46,7 +46,7 @@ public class BatchTranslateTextWithModelTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/custom_model_text.txt"; private static final String MODEL_ID = "TRL2188848820815848149"; - private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String PREFIX = "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); From 634bc628adc81cf442e147afe9fcdf1f8821af44 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 15 Mar 2021 21:12:23 +0100 Subject: [PATCH 072/356] deps: update dependency com.google.cloud:google-cloud-core to v1.94.4 (#471) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 42cddf3e64b..d610182e630 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.94.3 + 1.94.4 test tests From 4fca9743dc2bae0677979fc564c69afb31996960 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Mar 2021 21:08:29 +0100 Subject: [PATCH 073/356] chore(deps): update dependency com.google.cloud:libraries-bom to v19.1.0 (#474) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.0.0` -> `19.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/compatibility-slim/19.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/confidence-slim/19.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index d610182e630..752eb7fe1b2 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.0.0 + 19.1.0 pom import From 99538fc88db3d0bd3fa64692b51841a0280a0ee5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 19 Mar 2021 19:04:11 +0100 Subject: [PATCH 074/356] chore(deps): update dependency com.google.cloud:libraries-bom to v19.2.1 (#476) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.1.0` -> `19.2.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/compatibility-slim/19.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/confidence-slim/19.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 752eb7fe1b2..209692a5153 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.1.0 + 19.2.1 pom import From 6246beb557d026d939e357c46c00c227cc2c38a6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 6 Apr 2021 02:08:03 +0200 Subject: [PATCH 075/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.22 (#482) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.cloud.samples:shared-configuration | `1.0.21` -> `1.0.22` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/compatibility-slim/1.0.21)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/confidence-slim/1.0.21)](https://docs.renovatebot.com/merge-confidence/) | --- ### 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 209692a5153..44983077bfb 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 From d7871a4464057fa896db606560b76c0fe524134b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Apr 2021 17:48:19 +0200 Subject: [PATCH 076/356] deps: update dependency com.google.cloud:google-cloud-core to v1.94.7 (#483) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `1.94.4` -> `1.94.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.7/compatibility-slim/1.94.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.7/confidence-slim/1.94.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v1.94.7`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1947-httpswwwgithubcomgoogleapisjava-corecomparev1946v1947-2021-04-12) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.94.6...v1.94.7) ### [`v1.94.6`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1946-httpswwwgithubcomgoogleapisjava-corecomparev1945v1946-2021-04-09) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.94.5...v1.94.6) ### [`v1.94.5`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1945-httpswwwgithubcomgoogleapisjava-corecomparev1944v1945-2021-04-08) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.94.4...v1.94.5)
--- ### 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 44983077bfb..aa60124f85b 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.94.4 + 1.94.7 test tests From 24d9e5deeba703b09670f60e6dea2b5e9beabc8a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Apr 2021 18:04:31 +0200 Subject: [PATCH 077/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20 (#488) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.2.1` -> `20.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/compatibility-slim/19.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/confidence-slim/19.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index aa60124f85b..a876efece92 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.2.1 + 20.0.0 pom import From 8c022736c02811e3f0f9c000e7a4c1484685d85f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 19 Apr 2021 16:44:11 +0200 Subject: [PATCH 078/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.1.0 (#499) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.0.0` -> `20.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/compatibility-slim/20.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/confidence-slim/20.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index a876efece92..6dbc109f357 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.0.0 + 20.1.0 pom import From 749ef5b0ba710e5f51cd26b5727c83c0056578b7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 23 Apr 2021 04:04:06 +0200 Subject: [PATCH 079/356] deps: update dependency com.google.cloud:google-cloud-core to v1.94.8 (#505) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `1.94.7` -> `1.94.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.8/compatibility-slim/1.94.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.8/confidence-slim/1.94.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v1.94.8`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1948-httpswwwgithubcomgoogleapisjava-corecomparev1947v1948-2021-04-23) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.94.7...v1.94.8)
--- ### 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6dbc109f357..70c45e43954 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.94.7 + 1.94.8 test tests From 1a839c48252e851a5dc35cc3f64643c86b8fdab7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Apr 2021 16:40:16 +0200 Subject: [PATCH 080/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.2.0 (#513) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.1.0` -> `20.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/compatibility-slim/20.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/confidence-slim/20.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 70c45e43954..8dc4f1e38c8 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.1.0 + 20.2.0 pom import From c7917251f021156cd410c0c7107d53d9dc12b1bf Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Wed, 12 May 2021 14:09:12 -0700 Subject: [PATCH 081/356] =?UTF-8?q?chore:=20removed=20glossary=20from=20se?= =?UTF-8?q?tup=20and=20teardown,=20Replaced=20with=20predef=E2=80=A6=20(#5?= =?UTF-8?q?27)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: removed glossary from setup and teardown, Replaced with predefined glossary * chore: fixed nit --- .../BatchTranslateTextWithGlossary.java | 4 ++-- ...atchTranslateTextWithGlossaryAndModel.java | 2 +- ...ranslateTextWithGlossaryAndModelTests.java | 21 ++++--------------- .../BatchTranslateTextWithGlossaryTests.java | 21 ++++--------------- .../example/translate/GetGlossaryTests.java | 17 +++------------ .../translate/ListGlossariesTests.java | 19 +++-------------- ...ranslateTextWithGlossaryAndModelTests.java | 19 +++-------------- .../TranslateTextWithGlossaryTests.java | 19 +++-------------- 8 files changed, 23 insertions(+), 99 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java index 1a69412fa9e..1e0eba9bbe7 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -104,11 +104,11 @@ public static void batchTranslateTextWithGlossary( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - + // random number between 300 - 450 (maximum allowed seconds) long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); - + // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index 049dac579c1..d6df08adbbf 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -115,7 +115,7 @@ public static void batchTranslateTextWithGlossaryAndModel( // random number between 300 - 450 (maximum allowed seconds) long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); - + // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index b031a5ac04f..357bd88f26d 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -27,8 +27,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.ArrayList; -import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; @@ -47,11 +45,8 @@ public class BatchTranslateTextWithGlossaryAndModelTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt"; - private static final String GLOSSARY_ID = - String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private static final String MODEL_ID = "TRL2188848820815848149"; - private static final String GLOSSARY_INPUT_URI = - "gs://cloud-samples-data/translation/glossary_ja.csv"; private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); @@ -100,14 +95,9 @@ public static void checkRequirements() { private PrintStream originalPrintStream; @Before - public void setUp() throws InterruptedException, ExecutionException, IOException { - // Create a glossary that can be used in the test + public void setUp() { PrintStream temp = new PrintStream(new ByteArrayOutputStream()); System.setOut(temp); - List languageCodes = new ArrayList<>(); - languageCodes.add("en"); - languageCodes.add("ja"); - CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); bout = new ByteArrayOutputStream(); out = new PrintStream(bout); @@ -116,16 +106,13 @@ public void setUp() throws InterruptedException, ExecutionException, IOException } @After - public void tearDown() throws InterruptedException, ExecutionException, IOException { + public void tearDown() { cleanUpBucket(); - // Delete the created glossary - DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); System.out.flush(); System.setOut(originalPrintStream); } - @Rule - public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); + @Rule public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); @Test public void testBatchTranslateTextWithGlossaryAndModel() diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index d2b9ca1c210..f63135cda6d 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -27,8 +27,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.ArrayList; -import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; @@ -47,10 +45,7 @@ public class BatchTranslateTextWithGlossaryTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text_with_glossary.txt"; - private static final String GLOSSARY_INPUT_URI = - "gs://cloud-samples-data/translation/glossary_ja.csv"; - private static final String GLOSSARY_ID = - String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private static final String PREFIX = "BATCH_TRANSLATION_GLOSSARY_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); @@ -98,14 +93,9 @@ public static void checkRequirements() { } @Before - public void setUp() throws InterruptedException, ExecutionException, IOException { - // Create a glossary that can be used in the test + public void setUp() { PrintStream temp = new PrintStream(new ByteArrayOutputStream()); System.setOut(temp); - List languageCodes = new ArrayList<>(); - languageCodes.add("en"); - languageCodes.add("ja"); - CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); bout = new ByteArrayOutputStream(); out = new PrintStream(bout); @@ -114,17 +104,14 @@ public void setUp() throws InterruptedException, ExecutionException, IOException } @After - public void tearDown() throws InterruptedException, ExecutionException, IOException { + public void tearDown() { // Clean up cleanUpBucket(); - // Delete the created glossary - DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); System.out.flush(); System.setOut(originalPrintStream); } - @Rule - public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); + @Rule public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); @Test public void testBatchTranslateTextWithGlossary() diff --git a/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java index f157ca82f0c..dc58e333127 100644 --- a/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java @@ -22,10 +22,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -40,8 +36,7 @@ public class GetGlossaryTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv"; - private static final String GLOSSARY_ID = - String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private ByteArrayOutputStream bout; private PrintStream out; @@ -60,14 +55,10 @@ public static void checkRequirements() { } @Before - public void setUp() throws InterruptedException, ExecutionException, IOException { + public void setUp() { // Create a glossary that can be used in the test PrintStream temp = new PrintStream(new ByteArrayOutputStream()); System.setOut(temp); - List languageCodes = new ArrayList<>(); - languageCodes.add("en"); - languageCodes.add("ja"); - CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); bout = new ByteArrayOutputStream(); out = new PrintStream(bout); @@ -76,9 +67,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException } @After - public void tearDown() throws InterruptedException, ExecutionException, IOException { - // Delete the created glossary - DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + public void tearDown() { // restores print statements in the original method System.out.flush(); System.setOut(originalPrintStream); diff --git a/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java b/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java index 62c68c40c1a..c50e97d8872 100644 --- a/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java +++ b/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java @@ -22,10 +22,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -41,8 +37,6 @@ public class ListGlossariesTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv"; - private static final String GLOSSARY_ID = - String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); private ByteArrayOutputStream bout; private PrintStream out; @@ -61,14 +55,9 @@ public static void checkRequirements() { } @Before - public void setUp() throws InterruptedException, ExecutionException, IOException { - // Create a glossary that can be used in the test + public void setUp() { PrintStream temp = new PrintStream(new ByteArrayOutputStream()); System.setOut(temp); - List languageCodes = new ArrayList<>(); - languageCodes.add("en"); - languageCodes.add("ja"); - CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); bout = new ByteArrayOutputStream(); out = new PrintStream(bout); @@ -77,9 +66,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException } @After - public void tearDown() throws InterruptedException, ExecutionException, IOException { - // Delete the created glossary - DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + public void tearDown() { // restores print statements in the original method System.out.flush(); System.setOut(originalPrintStream); @@ -89,7 +76,7 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept public void testListGlossaries() throws IOException { ListGlossaries.listGlossaries(PROJECT_ID); String got = bout.toString(); - assertThat(got).contains(GLOSSARY_ID); + assertThat(got).contains("Glossary name:"); assertThat(got).contains(GLOSSARY_INPUT_URI); } } diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java index 6991cb64dad..1e160921501 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java @@ -22,10 +22,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -41,8 +37,7 @@ public class TranslateTextWithGlossaryAndModelTests { private static final String MODEL_ID = "TRL2188848820815848149"; private static final String GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv"; - private static final String GLOSSARY_ID = - String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private ByteArrayOutputStream bout; private PrintStream out; @@ -61,14 +56,9 @@ public static void checkRequirements() { } @Before - public void setUp() throws InterruptedException, ExecutionException, IOException { - // Create a glossary that can be used in the test + public void setUp() { PrintStream temp = new PrintStream(new ByteArrayOutputStream()); System.setOut(temp); - List languageCodes = new ArrayList<>(); - languageCodes.add("en"); - languageCodes.add("ja"); - CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); bout = new ByteArrayOutputStream(); out = new PrintStream(bout); @@ -77,10 +67,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException } @After - public void tearDown() throws InterruptedException, ExecutionException, IOException { - // Clean up - // Delete the created glossary - DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + public void tearDown() { // restores print statements in the original method System.out.flush(); System.setOut(originalPrintStream); diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java index eb088760a6a..83a8054f6b3 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java @@ -22,10 +22,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -40,8 +36,7 @@ public class TranslateTextWithGlossaryTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv"; - private static final String GLOSSARY_ID = - String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private ByteArrayOutputStream bout; private PrintStream out; @@ -60,14 +55,9 @@ public static void checkRequirements() { } @Before - public void setUp() throws InterruptedException, ExecutionException, IOException { - // Create a glossary that can be used in the test + public void setUp() { PrintStream temp = new PrintStream(new ByteArrayOutputStream()); System.setOut(temp); - List languageCodes = new ArrayList<>(); - languageCodes.add("en"); - languageCodes.add("ja"); - CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); bout = new ByteArrayOutputStream(); out = new PrintStream(bout); @@ -76,10 +66,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException } @After - public void tearDown() throws InterruptedException, ExecutionException, IOException { - // Clean up - // Delete the created glossary - DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + public void tearDown() { // restores print statements in the original method System.out.flush(); System.setOut(originalPrintStream); From f939e4cc0aa21fe4b64130e35b07e33d4936169a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 13 May 2021 15:56:15 +0200 Subject: [PATCH 082/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.3.0 (#523) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.2.0` -> `20.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/compatibility-slim/20.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/confidence-slim/20.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 8dc4f1e38c8..6197a6fa2d0 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.2.0 + 20.3.0 pom import From adeb7756bf72efb6cb4ca7939ffbfd40154a9ed9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 17 May 2021 03:46:02 +0200 Subject: [PATCH 083/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.4.0 (#537) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.3.0` -> `20.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/compatibility-slim/20.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/confidence-slim/20.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6197a6fa2d0..0d29460696c 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.3.0 + 20.4.0 pom import From d4df8c31cd1c1d08547c4c2b040bf1241285de8b Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Wed, 19 May 2021 15:04:08 -0400 Subject: [PATCH 084/356] chore: migrate to owlbot (#540) --- .../java/com/example/translate/BatchTranslateTextTests.java | 3 +-- .../example/translate/BatchTranslateTextWithModelTests.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index c1fda2fd924..14531aae59e 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -106,8 +106,7 @@ public void tearDown() { System.setOut(originalPrintStream); } - @Rule - public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); + @Rule public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); @Test public void testBatchTranslateText() diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index e9f09b07916..fd16802cd36 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -107,8 +107,7 @@ public void tearDown() { System.setOut(originalPrintStream); } - @Rule - public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); + @Rule public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); @Test public void testBatchTranslateTextWithModel() From 4e81cab63eeabf0ebf0f98a8ebd5ea9fdac1e1d8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 26 May 2021 02:56:19 +0200 Subject: [PATCH 085/356] test(deps): update dependency com.google.truth:truth to v1.1.3 (#548) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 0d29460696c..b7dcbc5ff03 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -56,7 +56,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test From 21f94613d9667f2d7e5229e2c76a1e55ef165aea Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 26 May 2021 02:56:30 +0200 Subject: [PATCH 086/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.5.0 (#547) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index b7dcbc5ff03..7cb79029c67 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.4.0 + 20.5.0 pom import From fe249324ed074a3153b263ff1507bf80d7dccf01 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Thu, 3 Jun 2021 08:27:55 -0700 Subject: [PATCH 087/356] samples: changed AutoML model ID (#553) * samples: changed AutoML model ID * fix: test * fix: tests --- .../BatchTranslateTextWithGlossaryAndModelTests.java | 2 +- .../example/translate/BatchTranslateTextWithModelTests.java | 2 +- .../translate/TranslateTextWithGlossaryAndModelTests.java | 4 ++-- .../com/example/translate/TranslateTextWithModelTests.java | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index 357bd88f26d..12f63d4d50c 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -46,7 +46,7 @@ public class BatchTranslateTextWithGlossaryAndModelTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; - private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String MODEL_ID = "TRL3645318651705294848"; private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index fd16802cd36..5971609673f 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -45,7 +45,7 @@ public class BatchTranslateTextWithModelTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/custom_model_text.txt"; - private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String MODEL_ID = "TRL3645318651705294848"; private static final String PREFIX = "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java index 1e160921501..b25d7652717 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java @@ -34,7 +34,7 @@ @SuppressWarnings("checkstyle:abbreviationaswordinname") public class TranslateTextWithGlossaryAndModelTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String MODEL_ID = "TRL3645318651705294848"; private static final String GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; @@ -78,7 +78,7 @@ public void testTranslateTextWithGlossaryAndModel() throws IOException { TranslateTextWithGlossaryAndModel.translateTextWithGlossaryAndModel( PROJECT_ID, "en", "ja", "That' il do it. deception", GLOSSARY_ID, MODEL_ID); String got = bout.toString(); - assertThat(got).contains("それはそうだ"); // custom model + assertThat(got).contains("やるよ欺く"); // custom model assertThat(got).contains("欺く"); // glossary } } diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java index 5d9a853e90d..6c986c3b0a4 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java @@ -34,7 +34,7 @@ @SuppressWarnings("checkstyle:abbreviationaswordinname") public class TranslateTextWithModelTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String MODEL_ID = "TRL3645318651705294848"; private ByteArrayOutputStream bout; private PrintStream out; @@ -72,6 +72,6 @@ public void testTranslateTextWithModel() throws IOException { TranslateTextWithModel.translateTextWithModel( PROJECT_ID, "en", "ja", "That' il do it. deception", MODEL_ID); String got = bout.toString(); - assertThat(got).contains("それはそうだ"); + assertThat(got).contains("やるよ欺瞞"); } } From 089f6cfcb4a149067c8df2c64b8cece25c3f8eda Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 7 Jun 2021 21:00:10 +0200 Subject: [PATCH 088/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.6.0 (#568) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.5.0` -> `20.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/compatibility-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/confidence-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 7cb79029c67..122774be0a8 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.5.0 + 20.6.0 pom import From 9b3ef615c52451a287088c20123b313f394e60b3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Jun 2021 00:32:22 +0200 Subject: [PATCH 089/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.23 (#564) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.cloud.samples:shared-configuration | `1.0.22` -> `1.0.23` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/compatibility-slim/1.0.22)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/confidence-slim/1.0.22)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 122774be0a8..3e5085fbec9 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 From 25e0dc54a7368a5dab07c3e5ffabfff1261c664b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Jun 2021 21:15:45 +0200 Subject: [PATCH 090/356] deps: update dependency com.google.cloud:google-cloud-core to v1.95.1 (#561) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 3e5085fbec9..3e5a8198aa4 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.94.8 + 1.95.1 test tests From fb3b2f8333ac14d707aeba835db77c41ffbbb8cc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Jun 2021 23:12:12 +0200 Subject: [PATCH 091/356] deps: update dependency com.google.cloud:google-cloud-core to v1.95.2 (#572) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `1.95.1` -> `1.95.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.2/compatibility-slim/1.95.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.2/confidence-slim/1.95.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v1.95.2`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1952-httpswwwgithubcomgoogleapisjava-corecomparev1951v1952-2021-06-09) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.95.1...v1.95.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 3e5a8198aa4..45150b6ebb9 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.95.1 + 1.95.2 test tests From 3cec0465bf3aef6b95a956e8dc4faab0e52caf76 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Fri, 18 Jun 2021 10:45:37 -0600 Subject: [PATCH 092/356] chore: fix batch test (#585) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: fix batch test * fixed nit * 🦉 Updates from OwlBot * Update samples/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java Co-authored-by: Averi Kitsch Co-authored-by: Owl Bot Co-authored-by: Averi Kitsch --- .../com/example/translate/BatchTranslateTextTests.java | 10 +++++++--- .../BatchTranslateTextWithGlossaryAndModelTests.java | 10 +++++++--- .../translate/BatchTranslateTextWithGlossaryTests.java | 10 +++++++--- .../translate/BatchTranslateTextWithModelTests.java | 10 +++++++--- 4 files changed, 28 insertions(+), 12 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index 14531aae59e..9fb051e80a4 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -42,11 +42,12 @@ @RunWith(JUnit4.class) @SuppressWarnings("checkstyle:abbreviationaswordinname") public class BatchTranslateTextTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text.txt"; - private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + private static final String PREFIX = + String.format("translation-%s/%s", UUID.randomUUID(), "BATCH_TRANSLATION_OUTPUT/"); + private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); private ByteArrayOutputStream bout; private PrintStream out; @@ -97,6 +98,9 @@ public void setUp() { out = new PrintStream(bout); originalPrintStream = System.out; System.setOut(out); + + // clean up bucket before the use to prevent concurrency issue. + cleanUpBucket(); } @After diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index 12f63d4d50c..c7e95e51c20 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -42,14 +42,15 @@ @RunWith(JUnit4.class) @SuppressWarnings("checkstyle:abbreviationaswordinname") public class BatchTranslateTextWithGlossaryAndModelTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private static final String MODEL_ID = "TRL3645318651705294848"; - private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + private static final String PREFIX = + String.format("translation-%s/%s", UUID.randomUUID(), "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"); + private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); private ByteArrayOutputStream bout; private PrintStream out; @@ -103,6 +104,9 @@ public void setUp() { out = new PrintStream(bout); originalPrintStream = System.out; System.setOut(out); + + // clear up bucket before the use to prevent concurrency issue. + cleanUpBucket(); } @After diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index f63135cda6d..950b733e962 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -42,13 +42,14 @@ @RunWith(JUnit4.class) @SuppressWarnings("checkstyle:abbreviationaswordinname") public class BatchTranslateTextWithGlossaryTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text_with_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; - private static final String PREFIX = "BATCH_TRANSLATION_GLOSSARY_OUTPUT/"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + private static final String PREFIX = + String.format("translation-%s/%s", UUID.randomUUID(), "BATCH_TRANSLATION_GLOSSARY_OUTPUT/"); + private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); private ByteArrayOutputStream bout; private PrintStream out; @@ -101,6 +102,9 @@ public void setUp() { out = new PrintStream(bout); originalPrintStream = System.out; System.setOut(out); + + // clear up bucket before the use to prevent concurrency issue. + cleanUpBucket(); } @After diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index 5971609673f..7fdc42ddbe8 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -42,13 +42,14 @@ @RunWith(JUnit4.class) @SuppressWarnings("checkstyle:abbreviationaswordinname") public class BatchTranslateTextWithModelTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/custom_model_text.txt"; private static final String MODEL_ID = "TRL3645318651705294848"; - private static final String PREFIX = "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT/"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + private static final String PREFIX = + String.format("translation-%s/%s", UUID.randomUUID(), "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT/"); + private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); private ByteArrayOutputStream bout; private PrintStream out; @@ -98,6 +99,9 @@ public void setUp() { out = new PrintStream(bout); originalPrintStream = System.out; System.setOut(out); + + // clear up bucket before the use to prevent concurrency issue. + cleanUpBucket(); } @After From ce5c251d0e63de6ff11e52955ff4275c3f6dfde3 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Mon, 21 Jun 2021 15:02:47 -0600 Subject: [PATCH 093/356] chore: Fix batch tests (#593) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: fix batch test * chore: revert model IDs * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md * chore: added / Co-authored-by: Owl Bot --- .../java/com/example/translate/BatchTranslateTextTests.java | 4 +--- .../BatchTranslateTextWithGlossaryAndModelTests.java | 4 +--- .../translate/BatchTranslateTextWithGlossaryTests.java | 4 +--- .../example/translate/BatchTranslateTextWithModelTests.java | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index 9fb051e80a4..abd031bf5a4 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -27,7 +27,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import org.junit.After; @@ -45,8 +44,7 @@ public class BatchTranslateTextTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text.txt"; - private static final String PREFIX = - String.format("translation-%s/%s", UUID.randomUUID(), "BATCH_TRANSLATION_OUTPUT/"); + private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); private ByteArrayOutputStream bout; diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index c7e95e51c20..7cdce709dfe 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -27,7 +27,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import org.junit.After; @@ -48,8 +47,7 @@ public class BatchTranslateTextWithGlossaryAndModelTests { "gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private static final String MODEL_ID = "TRL3645318651705294848"; - private static final String PREFIX = - String.format("translation-%s/%s", UUID.randomUUID(), "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"); + private static final String PREFIX = "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); private ByteArrayOutputStream bout; diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index 950b733e962..2e2bc576edd 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -27,7 +27,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import org.junit.After; @@ -47,8 +46,7 @@ public class BatchTranslateTextWithGlossaryTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/text_with_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; - private static final String PREFIX = - String.format("translation-%s/%s", UUID.randomUUID(), "BATCH_TRANSLATION_GLOSSARY_OUTPUT/"); + private static final String PREFIX = "BATCH_TRANSLATION_GLOSSARY_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); private ByteArrayOutputStream bout; diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index 7fdc42ddbe8..e999d659b74 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -27,7 +27,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import org.junit.After; @@ -47,8 +46,7 @@ public class BatchTranslateTextWithModelTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/custom_model_text.txt"; private static final String MODEL_ID = "TRL3645318651705294848"; - private static final String PREFIX = - String.format("translation-%s/%s", UUID.randomUUID(), "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT/"); + private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); private ByteArrayOutputStream bout; From 6e121e6138b33bf1293ee90434c9d7c6c343f497 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 23 Jun 2021 21:10:30 +0200 Subject: [PATCH 094/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.7.0 (#595) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.6.0` -> `20.7.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/compatibility-slim/20.6.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/confidence-slim/20.6.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 45150b6ebb9..13afc1c21b2 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.6.0 + 20.7.0 pom import From b5b0b6dc4e438e83654b5c11573431a97ee02b7e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 25 Jun 2021 18:17:49 +0200 Subject: [PATCH 095/356] deps: update dependency com.google.cloud:google-cloud-core to v1.95.3 (#594) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 13afc1c21b2..262b9ca1172 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.95.2 + 1.95.3 test tests From 42e22fc1bf2dbf3f0dcd90dd51f4cb50442515fd Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Mon, 28 Jun 2021 15:05:58 -0600 Subject: [PATCH 096/356] chore: refactered batch tests (#599) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: fix batch test * chore: revert model IDs * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md * chore: added / * test: refactored batch tests * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../java/com/example/translate/BatchTranslateTextTests.java | 6 ++++-- .../BatchTranslateTextWithGlossaryAndModelTests.java | 6 ++++-- .../translate/BatchTranslateTextWithGlossaryTests.java | 6 ++++-- .../example/translate/BatchTranslateTextWithModelTests.java | 6 ++++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index abd031bf5a4..450c83322a9 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -27,6 +27,7 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; +import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import org.junit.After; @@ -44,8 +45,9 @@ public class BatchTranslateTextTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text.txt"; - private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; - private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); + private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT_"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index 7cdce709dfe..7499aa6c9a0 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -27,6 +27,7 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; +import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import org.junit.After; @@ -47,8 +48,9 @@ public class BatchTranslateTextWithGlossaryAndModelTests { "gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private static final String MODEL_ID = "TRL3645318651705294848"; - private static final String PREFIX = "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT/"; - private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); + private static final String PREFIX = "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT_"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index 2e2bc576edd..d19b76548c0 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -27,6 +27,7 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; +import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import org.junit.After; @@ -46,8 +47,9 @@ public class BatchTranslateTextWithGlossaryTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/text_with_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; - private static final String PREFIX = "BATCH_TRANSLATION_GLOSSARY_OUTPUT/"; - private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); + private static final String PREFIX = "BATCH_TRANSLATION_GLOSSARY_OUTPUT_"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index e999d659b74..c0a5a054f4d 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -27,6 +27,7 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; +import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import org.junit.After; @@ -46,8 +47,9 @@ public class BatchTranslateTextWithModelTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/custom_model_text.txt"; private static final String MODEL_ID = "TRL3645318651705294848"; - private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"; - private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); + private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT_"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; From d92f8217de4ef47ef0cc489546c966a8f29b5b12 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 2 Jul 2021 22:30:46 +0200 Subject: [PATCH 097/356] deps: update dependency com.google.cloud:google-cloud-core to v1.95.4 (#598) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `1.95.3` -> `1.95.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.4/compatibility-slim/1.95.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.4/confidence-slim/1.95.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v1.95.4`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1954-httpswwwgithubcomgoogleapisjava-corecomparev1953v1954-2021-06-25) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.95.3...v1.95.4)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 262b9ca1172..0185675d0f7 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.95.3 + 1.95.4 test tests From 96dc491d99fc2c7cd73492b8a5086d39ec5fb5ed Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Jul 2021 16:38:18 +0200 Subject: [PATCH 098/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.8.0 (#610) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.7.0` -> `20.8.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/compatibility-slim/20.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/confidence-slim/20.7.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 0185675d0f7..54e01fb8cc6 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.7.0 + 20.8.0 pom import From 982f78a55cd033885a062a6ff86e40bd4ac50fff Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Jul 2021 02:52:48 +0200 Subject: [PATCH 099/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.9.0 (#636) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.8.0` -> `20.9.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/compatibility-slim/20.8.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/confidence-slim/20.8.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 54e01fb8cc6..da7da8eb0be 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.8.0 + 20.9.0 pom import From 54941fe35ec18cf4151b6a833182c7b72ed55f72 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 10 Aug 2021 21:14:37 +0200 Subject: [PATCH 100/356] deps: update dependency com.google.cloud:google-cloud-core to v2 (#718) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index da7da8eb0be..a6a9d192266 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.95.4 + 2.0.2 test tests From 0702bebba023b55808d639a7246959e011ec44c4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 11 Aug 2021 04:52:32 +0200 Subject: [PATCH 101/356] deps: update dependency com.google.cloud:google-cloud-core to v2.0.3 (#727) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.0.2` -> `2.0.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.3/compatibility-slim/2.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.3/confidence-slim/2.0.2)](https://docs.renovatebot.com/merge-confidence/) | *** ### Release Notes
googleapis/java-core ### [`v2.0.3`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​203-httpswwwgithubcomgoogleapisjava-corecomparev202v203-2021-08-10) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.0.2...v2.0.3)
*** ### Configuration 📅 **Schedule**: 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 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index a6a9d192266..67ad8ace5a0 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.0.2 + 2.0.3 test tests From 90567a728fafb479c256ca00989284fc0781a461 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 12 Aug 2021 19:34:24 +0200 Subject: [PATCH 102/356] deps: update dependency com.google.cloud:google-cloud-core to v2.0.4 (#730) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.0.3` -> `2.0.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.4/compatibility-slim/2.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.4/confidence-slim/2.0.3)](https://docs.renovatebot.com/merge-confidence/) | *** ### Release Notes
googleapis/java-core ### [`v2.0.4`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​204-httpswwwgithubcomgoogleapisjava-corecomparev203v204-2021-08-11) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.0.3...v2.0.4)
*** ### Configuration 📅 **Schedule**: 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 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 67ad8ace5a0..4f0a4210104 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.0.3 + 2.0.4 test tests From 212505d30186253dfd4f5ba92ca5315406c095d9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 13 Aug 2021 01:18:23 +0200 Subject: [PATCH 103/356] deps: update dependency com.google.cloud:google-cloud-core to v2.0.5 (#735) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.0.4` -> `2.0.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.5/compatibility-slim/2.0.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.5/confidence-slim/2.0.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.0.5`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​205-httpswwwgithubcomgoogleapisjava-corecomparev204v205-2021-08-11) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.0.4...v2.0.5)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 4f0a4210104..33c1b592a6e 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.0.4 + 2.0.5 test tests From afe4cb1a9417a6acce730b7194a733524f9b6515 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Aug 2021 20:00:15 +0200 Subject: [PATCH 104/356] chore(deps): update dependency com.google.cloud:libraries-bom to v21 (#737) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.9.0` -> `21.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/compatibility-slim/20.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/confidence-slim/20.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 33c1b592a6e..6562621ce76 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.9.0 + 21.0.0 pom import From a8f09c7afdf6916a73d89f84e989628281f23bef Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 24 Aug 2021 20:06:20 +0200 Subject: [PATCH 105/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.0 (#745) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.0.5` -> `2.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.0/compatibility-slim/2.0.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.0/confidence-slim/2.0.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.1.0`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​210-httpswwwgithubcomgoogleapisjava-corecomparev205v210-2021-08-23) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.0.5...v2.1.0) ##### Features - support downloading an emulator from an access controlled URL ([#​513](https://www.togithub.com/googleapis/java-core/issues/513)) ([f42a707](https://www.github.com/googleapis/java-core/commit/f42a7078522461018da96196a67657809d28b15b)) ##### Dependencies - update dependency com.google.api:gax-bom to v2.3.0 ([#​523](https://www.togithub.com/googleapis/java-core/issues/523)) ([6fa1d96](https://www.github.com/googleapis/java-core/commit/6fa1d96d07a7d255e7564407364216436cad6ca3)) - update dependency com.google.auth:google-auth-library-bom to v1.1.0 ([#​526](https://www.togithub.com/googleapis/java-core/issues/526)) ([0fc1532](https://www.github.com/googleapis/java-core/commit/0fc1532183148d09c3005a68e528c6c438cb6ddd)) - update dependency com.google.code.gson:gson to v2.8.8 ([#​529](https://www.togithub.com/googleapis/java-core/issues/529)) ([92b7f97](https://www.github.com/googleapis/java-core/commit/92b7f9715eeab0a07b64437a62dd47e5eed006de)) - update dependency com.google.errorprone:error_prone_annotations to v2.9.0 ([#​528](https://www.togithub.com/googleapis/java-core/issues/528)) ([5ecba07](https://www.github.com/googleapis/java-core/commit/5ecba07336499fc6fddae4cfdc2bc12105ec9b66)) - update dependency io.grpc:grpc-bom to v1.40.0 ([#​525](https://www.togithub.com/googleapis/java-core/issues/525)) ([a1e81f7](https://www.github.com/googleapis/java-core/commit/a1e81f73a4cc29e7186adf37f1cb718c1a88f41e)) ##### [2.0.5](https://www.github.com/googleapis/java-core/compare/v2.0.4...v2.0.5) (2021-08-11) ##### Dependencies - update dependency com.google.api:gax-bom to v2.1.0 ([#​519](https://www.togithub.com/googleapis/java-core/issues/519)) ([266e2f7](https://www.github.com/googleapis/java-core/commit/266e2f75e83fe1fd635a1528deb38131b8bfc742)) ##### [2.0.4](https://www.github.com/googleapis/java-core/compare/v2.0.3...v2.0.4) (2021-08-11) ##### Dependencies - update dependency com.google.api:api-common to v2.0.1 ([#​516](https://www.togithub.com/googleapis/java-core/issues/516)) ([aa6abf3](https://www.github.com/googleapis/java-core/commit/aa6abf3cc458ca117ec009fb29a14fd4f5409ef3)) ##### [2.0.3](https://www.github.com/googleapis/java-core/compare/v2.0.2...v2.0.3) (2021-08-10) ##### Dependencies - update dependency com.google.errorprone:error_prone_annotations to v2.8.1 ([#​512](https://www.togithub.com/googleapis/java-core/issues/512)) ([6127b8f](https://www.github.com/googleapis/java-core/commit/6127b8f23ec267a4cf8daa794b88a5cd97f054e3)) ##### [2.0.2](https://www.github.com/googleapis/java-core/compare/v2.0.1...v2.0.2) (2021-08-03) ##### Features - release 2.0.2 ([#​509](https://www.togithub.com/googleapis/java-core/issues/509)) ([afbb532](https://www.github.com/googleapis/java-core/commit/afbb532965a9ab6f9e3eafbf9d5d8502dd29d1bb)) ##### [2.0.1](https://www.github.com/googleapis/java-core/compare/v2.0.0...v2.0.1) (2021-08-03) ##### Dependencies - update dependency com.google.api:gax-bom to v2 ([#​506](https://www.togithub.com/googleapis/java-core/issues/506)) ([a0c49a2](https://www.github.com/googleapis/java-core/commit/a0c49a2eb2579df78afccc6db021e78c3bd58493))
--- ### Configuration 📅 **Schedule**: 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 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6562621ce76..a3c117735d3 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.0.5 + 2.1.0 test tests From 79c4e8e03a87c72bba6242689977fa3281662e1a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 24 Aug 2021 22:12:11 +0200 Subject: [PATCH 106/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.1 (#750) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index a3c117735d3..ed5f395b437 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.0 + 2.1.1 test tests From ce1b3f5a06e8f97cf2f4e3da6bc273d2810433aa Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 27 Aug 2021 18:12:22 +0200 Subject: [PATCH 107/356] chore(deps): update dependency com.google.cloud:libraries-bom to v22 (#764) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `21.0.0` -> `22.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/compatibility-slim/21.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/confidence-slim/21.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index ed5f395b437..df68c8da116 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 21.0.0 + 22.0.0 pom import From cc03c0f0fae19f3c97d40e37b40fd1c5c3e5461d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 31 Aug 2021 20:44:20 +0200 Subject: [PATCH 108/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.2 (#769) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.1` -> `2.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.2/compatibility-slim/2.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.2/confidence-slim/2.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.1.2`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​212-httpswwwgithubcomgoogleapisjava-corecomparev211v212-2021-08-31) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.1...v2.1.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index df68c8da116..219c6cfd55a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.1 + 2.1.2 test tests From fb084cefd1e5efd43e20cbc9ba6ae69c13b165c5 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Wed, 8 Sep 2021 10:56:31 -0700 Subject: [PATCH 109/356] fix: extend timeout on batch translation requests (#775) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: extend timeout on batch translation requests * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../src/main/java/com/example/translate/BatchTranslateText.java | 2 +- .../com/example/translate/BatchTranslateTextWithGlossary.java | 2 +- .../translate/BatchTranslateTextWithGlossaryAndModel.java | 2 +- .../java/com/example/translate/BatchTranslateTextWithModel.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java index d36b9962b15..6f0f20138dd 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java @@ -88,7 +88,7 @@ public static void batchTranslateText( System.out.println("Waiting for operation to complete..."); // random number between 300 - 450 (maximum allowed seconds) - long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); + long randomNumber = ThreadLocalRandom.current().nextInt(450, 600); BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java index 1e0eba9bbe7..6c5b713c9bc 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -106,7 +106,7 @@ public static void batchTranslateTextWithGlossary( System.out.println("Waiting for operation to complete..."); // random number between 300 - 450 (maximum allowed seconds) - long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); + long randomNumber = ThreadLocalRandom.current().nextInt(450, 600); BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); // Display the translation for each input text provided diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index d6df08adbbf..0fe8bd26802 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -113,7 +113,7 @@ public static void batchTranslateTextWithGlossaryAndModel( System.out.println("Waiting for operation to complete..."); // random number between 300 - 450 (maximum allowed seconds) - long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); + long randomNumber = ThreadLocalRandom.current().nextInt(450, 600); BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); // Display the translation for each input text provided diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java index da0624618b4..216a2060e30 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java @@ -103,7 +103,7 @@ public static void batchTranslateTextWithModel( System.out.println("Waiting for operation to complete..."); // random number between 300 - 450 (maximum allowed seconds) - long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); + long randomNumber = ThreadLocalRandom.current().nextInt(450, 600); BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); // Display the translation for each input text provided From 776e955044e8081319ae2b5082b1d8c5bb622101 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 13 Sep 2021 18:56:38 +0200 Subject: [PATCH 110/356] chore(deps): update dependency com.google.cloud:libraries-bom to v23 (#779) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `22.0.0` -> `23.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/compatibility-slim/22.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/confidence-slim/22.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 219c6cfd55a..c747672068b 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 22.0.0 + 23.0.0 pom import From e79a3499ac81a595fabe4dd37103ac346f660357 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 13 Sep 2021 21:45:16 +0200 Subject: [PATCH 111/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.3 (#787) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index c747672068b..74f149caa74 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.2 + 2.1.3 test tests From 0191b5a7485f586748926ca88881f53ebffbb0cc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 17 Sep 2021 00:06:20 +0200 Subject: [PATCH 112/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.4 (#795) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.3` -> `2.1.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.4/compatibility-slim/2.1.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.4/confidence-slim/2.1.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.1.4`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​214-httpswwwgithubcomgoogleapisjava-corecomparev213v214-2021-09-15) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.3...v2.1.4)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 74f149caa74..45b24596eba 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.3 + 2.1.4 test tests From 806d0559a214ceda6ab460e031bcd7d66c5f69d2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Sep 2021 01:26:20 +0200 Subject: [PATCH 113/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.5 (#802) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.4` -> `2.1.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.5/compatibility-slim/2.1.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.5/confidence-slim/2.1.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.1.5`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​215-httpswwwgithubcomgoogleapisjava-corecomparev214v215-2021-09-21) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.4...v2.1.5)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 45b24596eba..c96c2713db7 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.4 + 2.1.5 test tests From d2f66f59b2bb0ab1d936df15461621f4775f9cec Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Sep 2021 20:20:44 +0200 Subject: [PATCH 114/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.6 (#804) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.5` -> `2.1.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.6/compatibility-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.6/confidence-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.1.6`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​216-httpswwwgithubcomgoogleapisjava-corecomparev215v216-2021-09-21) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.5...v2.1.6)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index c96c2713db7..700afdf9ad8 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.5 + 2.1.6 test tests From 8f2ab6b3cae2101adaf9f78ab1e4b8d514473c3a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 28 Sep 2021 02:02:19 +0200 Subject: [PATCH 115/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.7 (#812) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.6` -> `2.1.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.7/compatibility-slim/2.1.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.7/confidence-slim/2.1.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.1.7`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​217-httpswwwgithubcomgoogleapisjava-corecomparev216v217-2021-09-23) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.6...v2.1.7)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 700afdf9ad8..e7723be5d70 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.6 + 2.1.7 test tests From 7288fea0e5e8c3377d670fb61eecdb8921a54e2a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Oct 2021 16:28:36 +0200 Subject: [PATCH 116/356] chore(deps): update dependency com.google.cloud:libraries-bom to v23.1.0 (#824) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `23.0.0` -> `23.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/compatibility-slim/23.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/confidence-slim/23.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index e7723be5d70..ad5a0b015da 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 23.0.0 + 23.1.0 pom import From eff5d542ea257ffe3eb40a9be17a36bc9c91c42f Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Fri, 15 Oct 2021 11:25:53 -0700 Subject: [PATCH 117/356] samples: added new translate document samples (#608) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: added new translate document samples * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md * fixed lint and removed main * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md * fixed import lint * removed mac files & added resources * chore: year bump * changed doc file * added polling algorithm * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md * made requested the changes * format * made requested changes regarding comment & String concant Co-authored-by: Owl Bot --- translate/snippets/resources/fake_invoice.pdf | Bin 0 -> 88986 bytes .../BatchTranslateDocument.java | 123 ++++++++++++++++++ .../translatev3beta1/TranslateDocument.java | 76 +++++++++++ .../BatchTranslateDocumentTests.java | 118 +++++++++++++++++ .../TranslateDocumentTests.java | 73 +++++++++++ 5 files changed, 390 insertions(+) create mode 100644 translate/snippets/resources/fake_invoice.pdf create mode 100644 translate/snippets/src/main/java/com/example/translatev3beta1/BatchTranslateDocument.java create mode 100644 translate/snippets/src/main/java/com/example/translatev3beta1/TranslateDocument.java create mode 100644 translate/snippets/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java create mode 100644 translate/snippets/src/test/java/com/example/translatev3beta1/TranslateDocumentTests.java diff --git a/translate/snippets/resources/fake_invoice.pdf b/translate/snippets/resources/fake_invoice.pdf new file mode 100644 index 0000000000000000000000000000000000000000..b9107fba129d5c78ce6688e366c06f700b758c03 GIT binary patch literal 88986 zcmeFYRX|+L(k_gUBs@6Ria|1nz)9~Vn9Ruxn0 zzy7;fI(d+B{ylRwOLu2aH*-sOGM>LbkaTwP0Pee!{aG!rG(}4bTT=;V5Scz3@Bt4y z2N^Fvham#6x__SY=Xd`~Ma9k8T;0-xOdojIJ83f3_m03LCH}ce{&Rg#W=O`Wqikkp zY3@PxN0#p$*~xhSdYXvHAF=&2@Sl(V9rzz{^ZoTL*1wnY?+~o&o@O3@E%2|$k+Evq zS^%oy<>n$|m9@0Bw(%h2=VJ#R11!wV#rcnl5Io#G0Z~XgJ2<TXZQ{%84sJS1#A+=082&WQwGL%gPjeDUyeS11Beg z3J*p@gOCvWzu-+78HALSRMK!?P`<1ynZfwFtSfucz`%fJP19lWe}tg&9WA&voI(n< zPMEg(3AZQ`rs}dwbaBx&EjQ?k)kE9F9kM>5jw=`FppjQ_iV#JnOzUi(@IQjgo23kX z9l)e(P1@9VrMf>wGJdJ;Y#K^EukPV9zI*6oE@^Kf0X>s1C1UYmKM>?$wj~BW*!+aw z>$+-Uc?f%rsgSmW|3@#S5^&wtb^cO*tWeTU*G<{S<=PmTuC>IoO_{r-Z3BL66S-#r zvQA}aJj(TqBwbBoYvQbxwnxv4J~CZLJ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5k+BNl6Jwz#RBa!(dQS;An0gfZY!o0`vu_=HF--X)FRX z?{74)fdVJTKWIp4Q2T$-BtYqZ&@iA8f8)a-rO^NEi;>1ifj;~vpVS|HC6S0f`br{E zfAC3T(Eqd-v<>qI4TJbo7YqUePVB$yf5J%+`S5T+;;*32A(k|s!F%rFE~ mNrE&QD=meRh5lz2!0 future = + client.batchTranslateDocumentAsync(request); + + System.out.println("Waiting for operation to complete..."); + + // random number between timeout + long randomNumber = ThreadLocalRandom.current().nextInt(timeout, timeout + 100); + BatchTranslateDocumentResponse response = future.get(randomNumber, TimeUnit.SECONDS); + + System.out.println("Total Pages: " + response.getTotalPages()); + } + } +} +// [END translate_v3beta1_batch_translate_document] diff --git a/translate/snippets/src/main/java/com/example/translatev3beta1/TranslateDocument.java b/translate/snippets/src/main/java/com/example/translatev3beta1/TranslateDocument.java new file mode 100644 index 00000000000..7a342a3802e --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translatev3beta1/TranslateDocument.java @@ -0,0 +1,76 @@ +/* + * Copyright 2021 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. + */ + +package com.example.translatev3beta1; + +// [START translate_v3beta1_translate_document] + +import com.google.cloud.translate.v3beta1.DocumentInputConfig; +import com.google.cloud.translate.v3beta1.LocationName; +import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.TranslationServiceClient; +import com.google.protobuf.ByteString; +import java.io.FileInputStream; +import java.io.IOException; + +public class TranslateDocument { + + public static void translateDocument() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + String filePath = "your-text"; + translateDocument(projectId, filePath); + } + + // Translating Document + public static void translateDocument(String projectId, String filePath) throws IOException { + // Initialize client that sends requests. This client can be reused for multiple requests. After + // completing all of your requests, call the "close" method on the client to clean + // up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // The ``global`` location is not supported for batch translation + LocationName parent = LocationName.of(projectId, "us-central1"); + + // Supported file types: https://cloud.google.com/translate/docs/supported-formats + ByteString content = ByteString.readFrom(new FileInputStream(filePath)); + + DocumentInputConfig documentInputConfig = + DocumentInputConfig.newBuilder() + .setContent(content) + .setMimeType("application/pdf") + .build(); + + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent(parent.toString()) + .setTargetLanguageCode("fr-FR") + .setDocumentInputConfig(documentInputConfig) + .build(); + + TranslateDocumentResponse response = client.translateDocument(request); + + // To view translated document, write `response.document_translation.byte_stream_outputs` + // to file. If not provided in the TranslationRequest, the translated file will only be + // returned through a byte-stream and its output mime type will be the same as the input + // file's mime type + System.out.println( + "Response: Detected Language Code - " + + response.getDocumentTranslation().getDetectedLanguageCode()); + } + } +} +// [END translate_v3beta1_translate_document] diff --git a/translate/snippets/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java b/translate/snippets/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java new file mode 100644 index 00000000000..588ae493691 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java @@ -0,0 +1,118 @@ +/* + * Copyright 2021 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. + */ + +package com.example.translatev3beta1; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.paging.Page; +import com.google.cloud.storage.Blob; +import com.google.cloud.storage.Storage; +import com.google.cloud.storage.StorageOptions; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeoutException; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Batch Translate Document sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class BatchTranslateDocumentTests { + + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String INPUT_URI = + "gs://java-docs-samples-testing/translation/invoice2.docx"; + private static final String PREFIX = "BATCH_DOC_TRANSLATION_OUTPUT_"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static void cleanUpBucket() { + Storage storage = StorageOptions.getDefaultInstance().getService(); + Page blobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix(PREFIX)); + + deleteDirectory(storage, blobs); + } + + private static void deleteDirectory(Storage storage, Page blobs) { + for (Blob blob : blobs.iterateAll()) { + System.out.println(blob.getBlobId()); + if (!blob.delete()) { + Page subBlobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix(blob.getName())); + + deleteDirectory(storage, subBlobs); + } + } + } + + private static void requireEnvVar(String varName) { + assertNotNull(String.format(varName), System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + + // clean up bucket before the use to prevent concurrency issue. + cleanUpBucket(); + } + + @After + public void tearDown() { + cleanUpBucket(); + System.out.flush(); + System.setOut(originalPrintStream); + } + + @Test + public void testBatchTranslateDocument() + throws InterruptedException, ExecutionException, IOException, TimeoutException { + BatchTranslateDocument.batchTranslateDocument( + PROJECT_ID, "en-US", "fr-FR", INPUT_URI, OUTPUT_URI, 1000); + + String got = bout.toString(); + assertThat(got).contains("Total Pages:"); + } +} diff --git a/translate/snippets/src/test/java/com/example/translatev3beta1/TranslateDocumentTests.java b/translate/snippets/src/test/java/com/example/translatev3beta1/TranslateDocumentTests.java new file mode 100644 index 00000000000..02780eee0d5 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translatev3beta1/TranslateDocumentTests.java @@ -0,0 +1,73 @@ +/* + * Copyright 2021 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. + */ + +package com.example.translatev3beta1; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Translate Document sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class TranslateDocumentTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static void requireEnvVar(String varName) { + assertNotNull(String.format(varName), System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + } + + @After + public void tearDown() { + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + } + + @Test + public void testTranslateText() throws IOException { + TranslateDocument.translateDocument(PROJECT_ID, "resources/fake_invoice.pdf"); + String got = bout.toString(); + assertThat(got).contains("Response: Detected Language Code"); + } +} From 0d656c07b383d3cb96b3a47feee34b9249ed5e6e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 18 Oct 2021 23:56:15 +0200 Subject: [PATCH 118/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.8 (#833) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.7` -> `2.1.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.8/compatibility-slim/2.1.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.8/confidence-slim/2.1.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes

googleapis/java-core ### [`v2.1.8`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​218-httpswwwgithubcomgoogleapisjava-corecomparev217v218-2021-10-15) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.7...v2.1.8)
--- ### Configuration 📅 **Schedule**: 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 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index ad5a0b015da..e6abf3b2198 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.7 + 2.1.8 test tests From 489c00b2063dd610ba59e676c51f09a436534fbf Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 Oct 2021 04:44:18 +0200 Subject: [PATCH 119/356] deps: update dependency com.google.cloud:google-cloud-core to v2.2.0 (#837) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.8` -> `2.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.2.0/compatibility-slim/2.1.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.2.0/confidence-slim/2.1.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.2.0`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​220-httpswwwgithubcomgoogleapisjava-corecomparev218v220-2021-10-18) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.8...v2.2.0) ##### Features - next release from main branch is 2.2.0 ([#​596](https://www.togithub.com/googleapis/java-core/issues/596)) ([cca72b8](https://www.github.com/googleapis/java-core/commit/cca72b82b45e01207bd45c6a2b988981c213c6fd)) ##### Dependencies - update dependency com.google.api:gax-bom to v2.6.1 ([#​600](https://www.togithub.com/googleapis/java-core/issues/600)) ([a0cff6a](https://www.github.com/googleapis/java-core/commit/a0cff6a83506d1da3a8aacd6eafc39ff1ab11583)) ##### [2.1.8](https://www.github.com/googleapis/java-core/compare/v2.1.7...v2.1.8) (2021-10-15) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.32.2 ([#​593](https://www.togithub.com/googleapis/java-core/issues/593)) ([644fc6f](https://www.github.com/googleapis/java-core/commit/644fc6f728b0791c61d85f34c535c09dff862c1d)) - update dependency com.google.api:api-common to v2.0.4 ([#​585](https://www.togithub.com/googleapis/java-core/issues/585)) ([ad4e4b7](https://www.github.com/googleapis/java-core/commit/ad4e4b7e076d8bd52bf621615301ec810917db43)) - update dependency com.google.api:api-common to v2.0.5 ([#​589](https://www.togithub.com/googleapis/java-core/issues/589)) ([c30cc40](https://www.github.com/googleapis/java-core/commit/c30cc40cd8687f79c7154503ee1f602089d62f2d)) - update dependency com.google.api:gax-bom to v2.6.0 ([#​594](https://www.togithub.com/googleapis/java-core/issues/594)) ([710cbe6](https://www.github.com/googleapis/java-core/commit/710cbe6e5121f118a5f4be327e8eeeceddfa04fb)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.6.0 ([#​578](https://www.togithub.com/googleapis/java-core/issues/578)) ([113b686](https://www.github.com/googleapis/java-core/commit/113b6868f98caa64d713f02729c3f16d878252ff)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.3 ([#​574](https://www.togithub.com/googleapis/java-core/issues/574)) ([338444b](https://www.github.com/googleapis/java-core/commit/338444bd4d169bb7fd41242e790c74596948178b)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.4 ([#​584](https://www.togithub.com/googleapis/java-core/issues/584)) ([57211ce](https://www.github.com/googleapis/java-core/commit/57211ce15e9b1a4c1b7468fed217e4ab46ec0a5d)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.5 ([#​587](https://www.togithub.com/googleapis/java-core/issues/587)) ([55f9f4e](https://www.github.com/googleapis/java-core/commit/55f9f4e084defaf8a243bf21afd67302be802b25)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.6 ([#​590](https://www.togithub.com/googleapis/java-core/issues/590)) ([f534c46](https://www.github.com/googleapis/java-core/commit/f534c462fadb479c6fd934c24ac8cd24e06e2698)) - update dependency com.google.auth:google-auth-library-bom to v1.2.0 ([#​581](https://www.togithub.com/googleapis/java-core/issues/581)) ([c32d2c5](https://www.github.com/googleapis/java-core/commit/c32d2c552dfa04b8e5eab27a115ac10832898473)) - update dependency com.google.auth:google-auth-library-bom to v1.2.1 ([#​591](https://www.togithub.com/googleapis/java-core/issues/591)) ([046f95d](https://www.github.com/googleapis/java-core/commit/046f95d8ed0811dd278c40fcfeb2c042e6535996)) - update dependency com.google.guava:guava-bom to v31 ([#​577](https://www.togithub.com/googleapis/java-core/issues/577)) ([4a987fb](https://www.github.com/googleapis/java-core/commit/4a987fbd3f1bd69b0b923fc9a691fc60908ad1cc)) - update dependency com.google.http-client:google-http-client-bom to v1.40.1 ([#​588](https://www.togithub.com/googleapis/java-core/issues/588)) ([3d36d77](https://www.github.com/googleapis/java-core/commit/3d36d77e6db9856c276d6263036764c60f32b7b3)) - update dependency com.google.protobuf:protobuf-bom to v3.18.1 ([#​583](https://www.togithub.com/googleapis/java-core/issues/583)) ([47da21c](https://www.github.com/googleapis/java-core/commit/47da21c793be9477323a234f7e3beaf6b705cd7d)) ##### [2.1.7](https://www.github.com/googleapis/java-core/compare/v2.1.6...v2.1.7) (2021-09-23) ##### Dependencies - update dependency io.grpc:grpc-bom to v1.41.0 ([#​569](https://www.togithub.com/googleapis/java-core/issues/569)) ([36703e9](https://www.github.com/googleapis/java-core/commit/36703e9a1f2d97d465a13220027a27f813da14a8)) ##### [2.1.6](https://www.github.com/googleapis/java-core/compare/v2.1.5...v2.1.6) (2021-09-21) ##### Dependencies - update dependency com.google.api:gax-bom to v2.5.0 ([#​565](https://www.togithub.com/googleapis/java-core/issues/565)) ([3ce8e28](https://www.github.com/googleapis/java-core/commit/3ce8e28813858ea932dc5c54324441f2f0c52d46)) ##### [2.1.5](https://www.github.com/googleapis/java-core/compare/v2.1.4...v2.1.5) (2021-09-21) ##### Dependencies - downgrading protobuf to 3.17.3 ([#​562](https://www.togithub.com/googleapis/java-core/issues/562)) ([5711b83](https://www.github.com/googleapis/java-core/commit/5711b835a19238df1bfa1f2e4dfc115495a55c9b)) ##### [2.1.4](https://www.github.com/googleapis/java-core/compare/v2.1.3...v2.1.4) (2021-09-15) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.1 ([#​556](https://www.togithub.com/googleapis/java-core/issues/556)) ([095efa1](https://www.github.com/googleapis/java-core/commit/095efa1fc1fffde34c6c38a88fee8f91bd495bfc)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.2 ([#​559](https://www.togithub.com/googleapis/java-core/issues/559)) ([3cda672](https://www.github.com/googleapis/java-core/commit/3cda672059727642d1b90f8bcc6bb34546f6893d)) - update dependency com.google.protobuf:protobuf-bom to v3.18.0 ([#​558](https://www.togithub.com/googleapis/java-core/issues/558)) ([85766e6](https://www.github.com/googleapis/java-core/commit/85766e67f0a9f381593ea2d6e9c8f30fc0ba2993)) ##### [2.1.3](https://www.github.com/googleapis/java-core/compare/v2.1.2...v2.1.3) (2021-09-10) ##### Dependencies - update dependency com.google.api:gax-bom to v2.4.1 ([#​549](https://www.togithub.com/googleapis/java-core/issues/549)) ([0b4be35](https://www.github.com/googleapis/java-core/commit/0b4be350d47cab58f3bb4e53d34e913e736a522b)) ##### [2.1.2](https://www.github.com/googleapis/java-core/compare/v2.1.1...v2.1.2) (2021-08-31) ##### Dependencies - update dependency com.google.api:api-common to v2.0.2 ([#​534](https://www.togithub.com/googleapis/java-core/issues/534)) ([1883c81](https://www.github.com/googleapis/java-core/commit/1883c81cb0fdf2f4b34a3a3a17987206d8c452aa)) - update dependency com.google.api:gax-bom to v2.4.0 ([#​540](https://www.togithub.com/googleapis/java-core/issues/540)) ([06b0d6e](https://www.github.com/googleapis/java-core/commit/06b0d6e3ff3c3b6e2aa440a9f893f9b27e0d66d1)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.5.0 ([#​539](https://www.togithub.com/googleapis/java-core/issues/539)) ([9d5a0b0](https://www.github.com/googleapis/java-core/commit/9d5a0b0918f6a1ab264f1ba272dcd8f22b670a7f)) - update dependency com.google.http-client:google-http-client-bom to v1.40.0 ([#​538](https://www.togithub.com/googleapis/java-core/issues/538)) ([150e07d](https://www.github.com/googleapis/java-core/commit/150e07ddb884d163d0efbcf786f04a713d29ed81)) - update dependency io.grpc:grpc-bom to v1.40.1 ([#​535](https://www.togithub.com/googleapis/java-core/issues/535)) ([3cd48a9](https://www.github.com/googleapis/java-core/commit/3cd48a902691ddddb9df9f74517648ca35b5bfd7)) ##### [2.1.1](https://www.github.com/googleapis/java-core/compare/v2.1.0...v2.1.1) (2021-08-24) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.0 ([#​531](https://www.togithub.com/googleapis/java-core/issues/531)) ([1b27f8c](https://www.github.com/googleapis/java-core/commit/1b27f8cbfaffcc9b19103b471db237f2448d7cb8))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index e6abf3b2198..887c1d4a086 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.8 + 2.2.0 test tests From fb90adddf8a038542eadc17cb4075e92a6ed5d56 Mon Sep 17 00:00:00 2001 From: Abby Carey Date: Tue, 26 Oct 2021 16:50:48 -0700 Subject: [PATCH 120/356] samples: Add Cloud Code tags for API Explorer pilot (#840) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Add Cloud Code tags for API Explorer pilot * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../java/com/example/translate/TranslateText.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateText.java b/translate/snippets/src/main/java/com/example/translate/TranslateText.java index a36b54a65b5..a18fed2b694 100644 --- a/translate/snippets/src/main/java/com/example/translate/TranslateText.java +++ b/translate/snippets/src/main/java/com/example/translate/TranslateText.java @@ -17,6 +17,8 @@ package com.example.translate; // [START translate_v3_translate_text] +// [START translate_v3_translate_text_0] +// Imports the Google Cloud Translation library. import com.google.cloud.translate.v3.LocationName; import com.google.cloud.translate.v3.TranslateTextRequest; import com.google.cloud.translate.v3.TranslateTextResponse; @@ -24,8 +26,12 @@ import com.google.cloud.translate.v3.TranslationServiceClient; import java.io.IOException; +// [END translate_v3_translate_text_0] + public class TranslateText { + // [START translate_v3_translate_text_1] + // Set and pass variables to overloaded translateText() method for translation. public static void translateText() throws IOException { // TODO(developer): Replace these variables before running the sample. String projectId = "YOUR-PROJECT-ID"; @@ -34,8 +40,10 @@ public static void translateText() throws IOException { String text = "your-text"; translateText(projectId, targetLanguage, text); } + // [END translate_v3_translate_text_1] - // Translating Text + // [START translate_v3_translate_text_2] + // Translate text to target language. public static void translateText(String projectId, String targetLanguage, String text) throws IOException { @@ -65,5 +73,6 @@ public static void translateText(String projectId, String targetLanguage, String } } } + // [END translate_v3_translate_text_2] } // [END translate_v3_translate_text] From cc5065d43f57f1fb152474d247d9dca0ae5a8be4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Oct 2021 18:18:46 +0200 Subject: [PATCH 121/356] chore(deps): update dependency com.google.cloud:libraries-bom to v24 (#847) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `23.1.0` -> `24.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/compatibility-slim/23.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/confidence-slim/23.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 887c1d4a086..42babc0b339 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 23.1.0 + 24.0.0 pom import From b1210c92f3cdf9df6cbd1993f43a8e777e59ef3a Mon Sep 17 00:00:00 2001 From: Karl Weinmeister <11586922+kweinmeister@users.noreply.github.com> Date: Wed, 27 Oct 2021 15:07:09 -0500 Subject: [PATCH 122/356] test: Update batch translate tests to minimize flakiness (#846) --- .../java/com/example/translate/BatchTranslateTextTests.java | 6 ++---- .../BatchTranslateTextWithGlossaryAndModelTests.java | 5 ++--- .../translate/BatchTranslateTextWithGlossaryTests.java | 5 ++--- .../example/translate/BatchTranslateTextWithModelTests.java | 5 ++--- .../translatev3beta1/BatchTranslateDocumentTests.java | 5 ++--- 5 files changed, 10 insertions(+), 16 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index 450c83322a9..6d130f47467 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -46,8 +46,6 @@ public class BatchTranslateTextTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text.txt"; private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT_"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -115,8 +113,8 @@ public void tearDown() { @Test public void testBatchTranslateText() throws InterruptedException, ExecutionException, IOException, TimeoutException { - BatchTranslateText.batchTranslateText(PROJECT_ID, "en", "es", INPUT_URI, OUTPUT_URI); - + String outputUri = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + BatchTranslateText.batchTranslateText(PROJECT_ID, "en", "es", INPUT_URI, outputUri); String got = bout.toString(); assertThat(got).contains("Total Characters: 13"); } diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index 7499aa6c9a0..f359edf9bd5 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -49,8 +49,6 @@ public class BatchTranslateTextWithGlossaryAndModelTests { private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private static final String MODEL_ID = "TRL3645318651705294848"; private static final String PREFIX = "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT_"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -121,8 +119,9 @@ public void tearDown() { @Test public void testBatchTranslateTextWithGlossaryAndModel() throws InterruptedException, ExecutionException, IOException, TimeoutException { + String outputUri = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); BatchTranslateTextWithGlossaryAndModel.batchTranslateTextWithGlossaryAndModel( - PROJECT_ID, "en", "ja", INPUT_URI, OUTPUT_URI, GLOSSARY_ID, MODEL_ID); + PROJECT_ID, "en", "ja", INPUT_URI, outputUri, GLOSSARY_ID, MODEL_ID); String got = bout.toString(); assertThat(got).contains("Total Characters: 25"); } diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index d19b76548c0..7e2702effe2 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -48,8 +48,6 @@ public class BatchTranslateTextWithGlossaryTests { "gs://cloud-samples-data/translation/text_with_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private static final String PREFIX = "BATCH_TRANSLATION_GLOSSARY_OUTPUT_"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -120,8 +118,9 @@ public void tearDown() { @Test public void testBatchTranslateTextWithGlossary() throws InterruptedException, ExecutionException, IOException, TimeoutException { + String outputUri = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); BatchTranslateTextWithGlossary.batchTranslateTextWithGlossary( - PROJECT_ID, "en", "ja", INPUT_URI, OUTPUT_URI, GLOSSARY_ID); + PROJECT_ID, "en", "ja", INPUT_URI, outputUri, GLOSSARY_ID); String got = bout.toString(); assertThat(got).contains("Total Characters: 9"); } diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index c0a5a054f4d..efcd65daf0c 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -48,8 +48,6 @@ public class BatchTranslateTextWithModelTests { "gs://cloud-samples-data/translation/custom_model_text.txt"; private static final String MODEL_ID = "TRL3645318651705294848"; private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT_"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -116,8 +114,9 @@ public void tearDown() { @Test public void testBatchTranslateTextWithModel() throws InterruptedException, ExecutionException, IOException, TimeoutException { + String outputUri = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); BatchTranslateTextWithModel.batchTranslateTextWithModel( - PROJECT_ID, "en", "ja", INPUT_URI, OUTPUT_URI, MODEL_ID); + PROJECT_ID, "en", "ja", INPUT_URI, outputUri, MODEL_ID); String got = bout.toString(); assertThat(got).contains("Total Characters: 15"); } diff --git a/translate/snippets/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java b/translate/snippets/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java index 588ae493691..8c68aac45db 100644 --- a/translate/snippets/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java +++ b/translate/snippets/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java @@ -45,8 +45,6 @@ public class BatchTranslateDocumentTests { private static final String INPUT_URI = "gs://java-docs-samples-testing/translation/invoice2.docx"; private static final String PREFIX = "BATCH_DOC_TRANSLATION_OUTPUT_"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -109,8 +107,9 @@ public void tearDown() { @Test public void testBatchTranslateDocument() throws InterruptedException, ExecutionException, IOException, TimeoutException { + String outputUri = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); BatchTranslateDocument.batchTranslateDocument( - PROJECT_ID, "en-US", "fr-FR", INPUT_URI, OUTPUT_URI, 1000); + PROJECT_ID, "en-US", "fr-FR", INPUT_URI, outputUri, 1000); String got = bout.toString(); assertThat(got).contains("Total Pages:"); From c896f07ce65ebe93998c8a4c3f46afd08ec3e044 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 15 Nov 2021 17:00:42 +0100 Subject: [PATCH 123/356] deps: update dependency com.google.cloud:google-cloud-core to v2.3.0 (#859) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.2.0` -> `2.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.0/compatibility-slim/2.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.0/confidence-slim/2.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.3.0`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​230-httpswwwgithubcomgoogleapisjava-corecomparev220v230-2021-11-11) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.2.0...v2.3.0) ##### Features - next release from main branch is 2.3.0 ([#​602](https://www.togithub.com/googleapis/java-core/issues/602)) ([34fa5f1](https://www.github.com/googleapis/java-core/commit/34fa5f1e750629d4431d5f97eb8b09ee65ebc016)) ##### Bug Fixes - **java:** java 17 dependency arguments ([#​1266](https://www.togithub.com/googleapis/java-core/issues/1266)) ([#​612](https://www.togithub.com/googleapis/java-core/issues/612)) ([5be3eff](https://www.github.com/googleapis/java-core/commit/5be3eff4041ca39d513979b948afe99f27bb1d20)) ##### Dependencies - update dependency com.google.api:api-common to v2.1.0 ([#​613](https://www.togithub.com/googleapis/java-core/issues/613)) ([62d6ab8](https://www.github.com/googleapis/java-core/commit/62d6ab8b5a7c5edb4482d7afda5b87f4832226ca)) - update dependency com.google.api:gax-bom to v2.7.0 ([#​626](https://www.togithub.com/googleapis/java-core/issues/626)) ([4a1e965](https://www.github.com/googleapis/java-core/commit/4a1e96551e16a5abc5d8f71f9e096a284fc59528)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.7 ([#​604](https://www.togithub.com/googleapis/java-core/issues/604)) ([0d36d59](https://www.github.com/googleapis/java-core/commit/0d36d59e4ff8817ba5984579188bfc6d7745348d)) - update dependency com.google.auth:google-auth-library-bom to v1.2.2 ([#​610](https://www.togithub.com/googleapis/java-core/issues/610)) ([c5e33d8](https://www.github.com/googleapis/java-core/commit/c5e33d87d211c22a93ea2e0de1776e7f2fbf6ef7)) - update dependency com.google.auth:google-auth-library-bom to v1.3.0 ([#​627](https://www.togithub.com/googleapis/java-core/issues/627)) ([f4403b2](https://www.github.com/googleapis/java-core/commit/f4403b2af856cc6ce45e2aab277d7e78baa6ecfe)) - update dependency com.google.code.gson:gson to v2.8.9 ([#​615](https://www.togithub.com/googleapis/java-core/issues/615)) ([ec0e387](https://www.github.com/googleapis/java-core/commit/ec0e387d3c96467218406ef4c5da5e59a11e8b7a)) - update dependency com.google.errorprone:error_prone_annotations to v2.10.0 ([#​618](https://www.togithub.com/googleapis/java-core/issues/618)) ([21139a8](https://www.github.com/googleapis/java-core/commit/21139a83821b12b5312e470c61b45ca76a0b921a)) - update dependency com.google.protobuf:protobuf-bom to v3.19.1 ([#​609](https://www.togithub.com/googleapis/java-core/issues/609)) ([28e6333](https://www.github.com/googleapis/java-core/commit/28e6333080fbe10ad8ecdfeef12d80af204f71fd)) - update dependency io.grpc:grpc-bom to v1.42.0 ([#​619](https://www.togithub.com/googleapis/java-core/issues/619)) ([da4cbd5](https://www.github.com/googleapis/java-core/commit/da4cbd5ccc54a81f89635435a2045cfa0de8d722)) - update dependency org.threeten:threetenbp to v1.5.2 ([#​624](https://www.togithub.com/googleapis/java-core/issues/624)) ([91eec9d](https://www.github.com/googleapis/java-core/commit/91eec9d83285e10cd9ecf3e75cb99b9a9d40cb89))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 42babc0b339..6e3b3b71bfa 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.2.0 + 2.3.0 test tests From 06bdcd9ca0a306c0cd84a8c3eb66f1fed4aebc2d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Nov 2021 20:04:30 +0100 Subject: [PATCH 124/356] deps: update dependency com.google.cloud:google-cloud-core to v2.3.1 (#861) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.0` -> `2.3.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.1/compatibility-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.1/confidence-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.3.1`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​231-httpswwwgithubcomgoogleapisjava-corecomparev230v231-2021-11-15) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.0...v2.3.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6e3b3b71bfa..34f697cab52 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.3.0 + 2.3.1 test tests From 54081797af3e93557171612592a159498d25f8c7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 3 Dec 2021 21:12:29 +0100 Subject: [PATCH 125/356] deps: update dependency com.google.cloud:google-cloud-core to v2.3.2 (#868) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.1` -> `2.3.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.2/compatibility-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.2/confidence-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.3.2`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​232-httpswwwgithubcomgoogleapisjava-corecomparev231v232-2021-12-02) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.1...v2.3.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 34f697cab52..bf76fa71270 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.3.1 + 2.3.2 test tests From 8ba02e9638ed3bd68933714c74128da2a7cbef51 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sun, 5 Dec 2021 06:34:24 +0100 Subject: [PATCH 126/356] deps: update dependency com.google.cloud:google-cloud-core to v2.3.3 (#871) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.2` -> `2.3.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.3/compatibility-slim/2.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.3/confidence-slim/2.3.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.3.3`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​233-httpswwwgithubcomgoogleapisjava-corecomparev232v233-2021-12-02) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.2...v2.3.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index bf76fa71270..f3fd68aae30 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.3.2 + 2.3.3 test tests From f2da01ebd73a180996366827a5f4cdbd80ed0f88 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 7 Dec 2021 00:22:22 +0100 Subject: [PATCH 127/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.2.0 (#867) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | `1.0.23` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/compatibility-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/confidence-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.2.0`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) ### [`v1.0.24`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index f3fd68aae30..6c521e04b5f 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 From 4d2eaf6b57aac5f5127f0a06df4f6cad001b7e41 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 9 Dec 2021 00:24:11 +0100 Subject: [PATCH 128/356] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.0 (#888) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.0.0` -> `24.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/compatibility-slim/24.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/confidence-slim/24.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6c521e04b5f..7a83315d039 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.0.0 + 24.1.0 pom import From 557496f8df60fdbac57be0b21b021af36a8eb575 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 28 Dec 2021 22:06:20 +0100 Subject: [PATCH 129/356] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.1 (#890) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.0` -> `24.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/compatibility-slim/24.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/confidence-slim/24.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 7a83315d039..e97d34cfe96 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.0 + 24.1.1 pom import From 86dd67cd091c7fe9d2702ffdbb080a1224cb61c5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 04:20:42 +0100 Subject: [PATCH 130/356] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.2 (#895) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.1` -> `24.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/compatibility-slim/24.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/confidence-slim/24.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index e97d34cfe96..db3322b9ded 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.1 + 24.1.2 pom import From beb21ee44b3c5bf511b71feba499b815654155be Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 04:20:53 +0100 Subject: [PATCH 131/356] deps: update dependency com.google.cloud:google-cloud-core to v2.3.4 (#894) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.3` -> `2.3.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.4/compatibility-slim/2.3.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.4/confidence-slim/2.3.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.3.4`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​234-httpswwwgithubcomgoogleapisjava-corecomparev233v234-2022-01-06) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.3...v2.3.4)
--- ### Configuration 📅 **Schedule**: 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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index db3322b9ded..56910d1e4ee 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.3.3 + 2.3.4 test tests From 6af137a18480557d95369dbe5fc69caca6fef5e0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 12 Jan 2022 17:50:17 +0100 Subject: [PATCH 132/356] chore(deps): update dependency com.google.cloud:libraries-bom to v24.2.0 (#909) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.2` -> `24.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/compatibility-slim/24.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/confidence-slim/24.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 56910d1e4ee..2643a661de0 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.2 + 24.2.0 pom import From 05b4501095cdda8a95edf7721d76405a2e2a5502 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 12 Jan 2022 18:04:18 +0100 Subject: [PATCH 133/356] deps: update dependency com.google.cloud:google-cloud-core to v2.3.5 (#899) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.4` -> `2.3.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.5/compatibility-slim/2.3.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.5/confidence-slim/2.3.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.3.5`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​235-httpswwwgithubcomgoogleapisjava-corecomparev234v235-2022-01-06) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.4...v2.3.5)
--- ### Configuration 📅 **Schedule**: 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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 2643a661de0..cb3d43a942d 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.3.4 + 2.3.5 test tests From 72510fc8b5066035dd184cb09d38b757521114d0 Mon Sep 17 00:00:00 2001 From: Karl Weinmeister <11586922+kweinmeister@users.noreply.github.com> Date: Tue, 1 Feb 2022 19:25:56 -0600 Subject: [PATCH 134/356] test: add retries to create glossary test (#923) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test: add retries to create glossary test * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../test/java/com/example/translate/CreateGlossaryTests.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java index 3dc98bc1b18..3d88ba31548 100644 --- a/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java @@ -19,6 +19,7 @@ import static com.google.common.truth.Truth.assertThat; import static junit.framework.TestCase.assertNotNull; +import com.google.cloud.testing.junit4.MultipleAttemptsRule; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -29,6 +30,7 @@ import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -76,6 +78,8 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept System.setOut(originalPrintStream); } + @Rule public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); + @Test public void testCreateGlossary() throws InterruptedException, ExecutionException, IOException { List languageCodes = new ArrayList<>(); From e716f98d797fb215c17e338e648d2fcca47ee7c3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Feb 2022 05:46:48 +0100 Subject: [PATCH 135/356] deps: update dependency com.google.cloud:google-cloud-core to v2.4.0 (#919) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.5` -> `2.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.4.0/compatibility-slim/2.3.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.4.0/confidence-slim/2.3.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.4.0`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​240-httpsgithubcomgoogleapisjava-corecomparev235v240-2022-01-28) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.5...v2.4.0) ##### Features - **java:** Add native-image support classes to java-core module ([#​637](https://togithub.com/googleapis/java-core/issues/637)) ([154bc18](https://togithub.com/googleapis/java-core/commit/154bc18ba86328d29665c502db1d35e265c92bbf)) ##### Bug Fixes - **java:** initialize LoggerFactory at build time ([#​685](https://togithub.com/googleapis/java-core/issues/685)) ([eb3aba2](https://togithub.com/googleapis/java-core/commit/eb3aba2455a0ab6ffec2c6beb3f3cbb4bcb6008d)) ##### Dependencies - **java:** update actions/github-script action to v5 ([#​1339](https://togithub.com/googleapis/java-core/issues/1339)) ([#​689](https://togithub.com/googleapis/java-core/issues/689)) ([eb462c7](https://togithub.com/googleapis/java-core/commit/eb462c7b1a005ce37d1be58900a244f6b807e5d5)) - update dependency com.google.api-client:google-api-client-bom to v1.33.1 ([#​684](https://togithub.com/googleapis/java-core/issues/684)) ([9ff47e6](https://togithub.com/googleapis/java-core/commit/9ff47e68d0c435d7636d89b03369aabbdfe3663b)) - update dependency com.google.api:api-common to v2.1.3 ([#​694](https://togithub.com/googleapis/java-core/issues/694)) ([684ae80](https://togithub.com/googleapis/java-core/commit/684ae805b8d25747830ce9266fd51a287c018cc9)) - update dependency com.google.api:gax-bom to v2.11.0 ([#​677](https://togithub.com/googleapis/java-core/issues/677)) ([1a578bd](https://togithub.com/googleapis/java-core/commit/1a578bdee2fa229ffbdd8fdde3d66d7e29dedf98)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.7.2 ([#​695](https://togithub.com/googleapis/java-core/issues/695)) ([1085d2c](https://togithub.com/googleapis/java-core/commit/1085d2cb1d7e8391f981d1f4b97c7724b0107e94)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.1 ([#​667](https://togithub.com/googleapis/java-core/issues/667)) ([b57ec04](https://togithub.com/googleapis/java-core/commit/b57ec047234a1a044458980a8cf7de6a3156bf41)) - update dependency com.google.auth:google-auth-library-bom to v1.4.0 ([#​681](https://togithub.com/googleapis/java-core/issues/681)) ([3273b1e](https://togithub.com/googleapis/java-core/commit/3273b1ed0b1db610790e7832a6c92797a341cc7d)) - update dependency com.google.errorprone:error_prone_annotations to v2.11.0 ([#​687](https://togithub.com/googleapis/java-core/issues/687)) ([dc4d18d](https://togithub.com/googleapis/java-core/commit/dc4d18de86695fddbcb9d221cc53fdca3faf09f5)) - update dependency com.google.http-client:google-http-client-bom to v1.41.1 ([#​683](https://togithub.com/googleapis/java-core/issues/683)) ([45cb753](https://togithub.com/googleapis/java-core/commit/45cb7535151cfcffa282b4c8d9cd56265cca2ece)) - update dependency com.google.http-client:google-http-client-bom to v1.41.2 ([#​696](https://togithub.com/googleapis/java-core/issues/696)) ([f4875c0](https://togithub.com/googleapis/java-core/commit/f4875c0deecfea3728925e5ee0ef95ee90852301)) - update dependency com.google.protobuf:protobuf-bom to v3.19.3 ([#​674](https://togithub.com/googleapis/java-core/issues/674)) ([c54f997](https://togithub.com/googleapis/java-core/commit/c54f9973b71c91c1fde0a1d128957cd022a27902)) - update dependency io.grpc:grpc-bom to v1.43.2 ([#​665](https://togithub.com/googleapis/java-core/issues/665)) ([752ba6e](https://togithub.com/googleapis/java-core/commit/752ba6e384c382d0e39d8335640eaaea2beee9e1)) - update dependency io.grpc:grpc-bom to v1.44.0 ([#​693](https://togithub.com/googleapis/java-core/issues/693)) ([ed85045](https://togithub.com/googleapis/java-core/commit/ed850455995fc5b5c2dae3595116721316f63698)) - update dependency org.easymock:easymock to v4 ([#​668](https://togithub.com/googleapis/java-core/issues/668)) ([c36e976](https://togithub.com/googleapis/java-core/commit/c36e976c0379c1119dfe643dc3131f2e52130c5c)) - update dependency org.graalvm.sdk:graal-sdk to v22 ([#​680](https://togithub.com/googleapis/java-core/issues/680)) ([0f535f8](https://togithub.com/googleapis/java-core/commit/0f535f869f7ce68192f821d0f3361634676dddf7)) - update graalvm.version to v21.3.1 ([#​679](https://togithub.com/googleapis/java-core/issues/679)) ([dfb305a](https://togithub.com/googleapis/java-core/commit/dfb305acaf9d6db91727e42509fc6b043f07a5ce)) - update graalvm.version to v22.0.0.2 ([#​691](https://togithub.com/googleapis/java-core/issues/691)) ([780b734](https://togithub.com/googleapis/java-core/commit/780b734bb4f26fab49065f303d102033b2c3a3d0)) - update opencensus.version to v0.30.0 ([#​646](https://togithub.com/googleapis/java-core/issues/646)) ([c2caaa7](https://togithub.com/googleapis/java-core/commit/c2caaa7cb2c094318e611ba2c082a8a31fee21ea)) - update opencensus.version to v0.31.0 ([#​692](https://togithub.com/googleapis/java-core/issues/692)) ([bdf7d4e](https://togithub.com/googleapis/java-core/commit/bdf7d4ec05c5314e5f2667287ed3e7cb83667c35)) ##### [2.3.5](https://www.github.com/googleapis/java-core/compare/v2.3.4...v2.3.5) (2022-01-06) ##### Dependencies - update dependency com.google.api:api-common to v2.1.2 ([#​661](https://www.togithub.com/googleapis/java-core/issues/661)) ([0a136d8](https://www.github.com/googleapis/java-core/commit/0a136d8122f6c5042808cbfee9e58dc53e368da6)) - update gax.version to v2.8.1 ([#​663](https://www.togithub.com/googleapis/java-core/issues/663)) ([7c09aa5](https://www.github.com/googleapis/java-core/commit/7c09aa5729408a395f1a8fae94744f9d33638b1a)) ##### [2.3.4](https://www.github.com/googleapis/java-core/compare/v2.3.3...v2.3.4) (2022-01-06) ##### Bug Fixes - fixed compilation warnings from error prone ([e6e7040](https://www.github.com/googleapis/java-core/commit/e6e7040305b19ec9d5468f4cd44d7a29d0d5e470)) - **java:** add -ntp flag to native image testing command ([#​1299](https://www.togithub.com/googleapis/java-core/issues/1299)) ([#​643](https://www.togithub.com/googleapis/java-core/issues/643)) ([0f4c1db](https://www.github.com/googleapis/java-core/commit/0f4c1dbbd89d82f5cc86c2b684d6645699b835b3)) - **java:** run Maven in plain console-friendly mode ([#​1301](https://www.togithub.com/googleapis/java-core/issues/1301)) ([#​652](https://www.togithub.com/googleapis/java-core/issues/652)) ([ab2fa93](https://www.github.com/googleapis/java-core/commit/ab2fa93ba0434f593abb063afad44dc923bf462a)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.33.0 ([#​658](https://www.togithub.com/googleapis/java-core/issues/658)) ([d417ebd](https://www.github.com/googleapis/java-core/commit/d417ebd7bedc9d4e983f32c87a8d61163502cf1d)) - update dependency com.google.api:gax-bom to v2.8.0 ([#​659](https://www.togithub.com/googleapis/java-core/issues/659)) ([91717ab](https://www.github.com/googleapis/java-core/commit/91717ab9361a31976727b26d08837e8b3838bdb4)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.7.1 ([#​656](https://www.togithub.com/googleapis/java-core/issues/656)) ([ecfbdc1](https://www.github.com/googleapis/java-core/commit/ecfbdc181087d37d38f7911b9962953f5d246434)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.0 ([#​645](https://www.togithub.com/googleapis/java-core/issues/645)) ([3926b54](https://www.github.com/googleapis/java-core/commit/3926b5423893635dd709b8fc6037fb896396ff13)) - update dependency com.google.http-client:google-http-client-bom to v1.41.0 ([#​657](https://www.togithub.com/googleapis/java-core/issues/657)) ([41a5120](https://www.github.com/googleapis/java-core/commit/41a51201a3712f71f6cf3be3c29db68360b2405f)) - update dependency com.google.protobuf:protobuf-bom to v3.19.2 ([#​655](https://www.togithub.com/googleapis/java-core/issues/655)) ([eb6c037](https://www.github.com/googleapis/java-core/commit/eb6c03729af41e6d7bd9db80644b8ddfd22e78ec)) - update dependency io.grpc:grpc-bom to v1.43.1 ([#​647](https://www.togithub.com/googleapis/java-core/issues/647)) ([275b882](https://www.github.com/googleapis/java-core/commit/275b882918f7625daeb3e98ab26b7b0a2f2cdb7b)) ##### [2.3.3](https://www.github.com/googleapis/java-core/compare/v2.3.2...v2.3.3) (2021-12-02) ##### Dependencies - update dependency com.google.api:gax-bom to v2.7.1 ([#​640](https://www.togithub.com/googleapis/java-core/issues/640)) ([18e033b](https://www.github.com/googleapis/java-core/commit/18e033bdafe536a42ada9f93b0a2b502caea0bcf)) ##### [2.3.2](https://www.github.com/googleapis/java-core/compare/v2.3.1...v2.3.2) (2021-12-02) ##### Dependencies - update dependency com.google.api:api-common to v2.1.1 ([#​632](https://www.togithub.com/googleapis/java-core/issues/632)) ([b9bb47a](https://www.github.com/googleapis/java-core/commit/b9bb47a0b0a6b132c516361d23750a92a32e53be)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.7.0 ([#​638](https://www.togithub.com/googleapis/java-core/issues/638)) ([74862a8](https://www.github.com/googleapis/java-core/commit/74862a8864eb7bffe6659d1e2a261dd5b934d6ff)) ##### [2.3.1](https://www.github.com/googleapis/java-core/compare/v2.3.0...v2.3.1) (2021-11-15) ##### Dependencies - update dependency io.grpc:grpc-bom to v1.42.1 ([#​629](https://www.togithub.com/googleapis/java-core/issues/629)) ([85fcd99](https://www.github.com/googleapis/java-core/commit/85fcd99237d7526b1b373d07204c4114c49b08b8))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index cb3d43a942d..48f10693131 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.3.5 + 2.4.0 test tests From fdda7e4c8079a9d63d10fa3f4ecac379237240a5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Feb 2022 23:01:12 +0100 Subject: [PATCH 136/356] chore(deps): update dependency com.google.cloud:libraries-bom to v24.3.0 (#933) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.2.0` -> `24.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/compatibility-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/confidence-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 48f10693131..9ab2ab189a1 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.2.0 + 24.3.0 pom import From 558706643d49073e81e1c4ff655f8f1885b95652 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Feb 2022 20:29:24 +0100 Subject: [PATCH 137/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.0 (#928) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.5.0 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 9ab2ab189a1..f077832f925 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.4.0 + 2.5.0 test tests From 93b5df8d1f69a7b946404a9715118d8f7d94cdd6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 10 Feb 2022 17:48:56 +0100 Subject: [PATCH 138/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.1 (#935) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.0` -> `2.5.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.1/compatibility-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.1/confidence-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.1`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​251-httpsgithubcomgoogleapisjava-corecomparev250v251-2022-02-08) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.0...v2.5.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index f077832f925..8d8fc61aa0a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.0 + 2.5.1 test tests From 1f6ca02bf2964b5fe7aa8d449cc2903310aefc1e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 11 Feb 2022 20:50:52 +0100 Subject: [PATCH 139/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.3 (#937) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.1` -> `2.5.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.3/compatibility-slim/2.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.3/confidence-slim/2.5.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.3`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​253-httpsgithubcomgoogleapisjava-corecomparev252v253-2022-02-10) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.2...v2.5.3) ### [`v2.5.2`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​252-httpsgithubcomgoogleapisjava-corecomparev251v252-2022-02-09) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.1...v2.5.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 8d8fc61aa0a..5bc515242c5 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.1 + 2.5.3 test tests From 173847804632122a8478445b421226fce2b04e92 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Feb 2022 19:43:05 +0100 Subject: [PATCH 140/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.4 (#942) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.3` -> `2.5.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.4/compatibility-slim/2.5.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.4/confidence-slim/2.5.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.4`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​254-httpsgithubcomgoogleapisjava-corecomparev253v254-2022-02-11) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.3...v2.5.4)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 5bc515242c5..4467ddbc872 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.3 + 2.5.4 test tests From 62761dc9b0cd717ed140b32b0ae6b7857c0c08ee Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Mar 2022 03:34:13 +0100 Subject: [PATCH 141/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.5 (#949) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.4` -> `2.5.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.5/compatibility-slim/2.5.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.5/confidence-slim/2.5.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.5`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​255-httpsgithubcomgoogleapisjava-corecomparev254v255-2022-02-28) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.4...v2.5.5)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 4467ddbc872..becf1ca189d 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.4 + 2.5.5 test tests From 3a6377cea462c1fbc65a452b9d89e77f99da0cf9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Mar 2022 20:12:32 +0100 Subject: [PATCH 142/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.6 (#953) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.5` -> `2.5.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.6/compatibility-slim/2.5.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.6/confidence-slim/2.5.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.6`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​256-httpsgithubcomgoogleapisjava-corecomparev255v256-2022-03-01) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.5...v2.5.6)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index becf1ca189d..5fb290ec31d 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.5 + 2.5.6 test tests From 20b8690fb355f7ed4996a98adc6fddac9a7607e7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Mar 2022 20:18:25 +0100 Subject: [PATCH 143/356] chore(deps): update dependency com.google.cloud:libraries-bom to v24.4.0 (#955) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.3.0` -> `24.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/compatibility-slim/24.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/confidence-slim/24.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 5fb290ec31d..855ff774074 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.3.0 + 24.4.0 pom import From e99b20b6ec9df859c6df18c1c83bfad44f4fcdb9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Mar 2022 18:30:25 +0100 Subject: [PATCH 144/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.8 (#961) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.6` -> `2.5.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.8/compatibility-slim/2.5.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.8/confidence-slim/2.5.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.8`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​258-httpsgithubcomgoogleapisjava-corecomparev257v258-2022-03-08) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.7...v2.5.8) ### [`v2.5.7`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​257-httpsgithubcomgoogleapisjava-corecomparev256v257-2022-03-08) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.6...v2.5.7)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 855ff774074..602143b3d88 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.6 + 2.5.8 test tests From 9acabcf46a99c51003446e5976d3d884568fb203 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 10 Mar 2022 23:14:27 +0100 Subject: [PATCH 145/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.9 (#964) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.8` -> `2.5.9` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.9/compatibility-slim/2.5.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.9/confidence-slim/2.5.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.9`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​259-httpsgithubcomgoogleapisjava-corecomparev258v259-2022-03-09) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.8...v2.5.9)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 602143b3d88..44017c84480 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.8 + 2.5.9 test tests From 22c5491afbfae5fa4f7af66bdd053361280b2e95 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 23:04:25 +0100 Subject: [PATCH 146/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.10 (#965) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.9` -> `2.5.10` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.10/compatibility-slim/2.5.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.10/confidence-slim/2.5.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.10`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2510-httpsgithubcomgoogleapisjava-corecomparev259v2510-2022-03-10) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.9...v2.5.10)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 44017c84480..6c5f00f3cb1 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.9 + 2.5.10 test tests From 19e8a99fff6beefd62b13df09b09a86e4c7d2f34 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 23:22:15 +0100 Subject: [PATCH 147/356] chore(deps): update dependency com.google.cloud:libraries-bom to v25 (#966) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.4.0` -> `25.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/compatibility-slim/24.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/confidence-slim/24.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6c5f00f3cb1..cbc2e451188 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.4.0 + 25.0.0 pom import From fc4f9048bcdbca4b5b694b647da0db00fa4af256 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 30 Mar 2022 02:06:29 +0200 Subject: [PATCH 148/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.11 (#969) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.10` -> `2.5.11` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.11/compatibility-slim/2.5.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.11/confidence-slim/2.5.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.11`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2511-httpsgithubcomgoogleapisjava-corecomparev2510v2511-2022-03-28) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.10...v2.5.11)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index cbc2e451188..1259d0a9e10 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.10 + 2.5.11 test tests From 62c14c73ad54920a8179fa44860309e7a3ffe238 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 18:40:19 +0200 Subject: [PATCH 149/356] chore(deps): update dependency com.google.cloud:libraries-bom to v25.1.0 (#974) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.0.0` -> `25.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/compatibility-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/confidence-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 1259d0a9e10..5ffc6238841 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import From 49bad907bd55d90c307f6655033a9ea89e520443 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Apr 2022 21:26:15 +0200 Subject: [PATCH 150/356] deps: update dependency com.google.cloud:google-cloud-core to v2.6.1 (#977) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.11` -> `2.6.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.6.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.6.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.6.1/compatibility-slim/2.5.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.6.1/confidence-slim/2.5.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.6.1`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​261-httpsgithubcomgoogleapisjava-corecomparev260v261-2022-04-14) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.6.0...v2.6.1) ### [`v2.6.0`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​260-httpsgithubcomgoogleapisjava-corecomparev2511v260-2022-04-14) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.11...v2.6.0) ##### Features - **java:** remove GoogleJsonClentFeature and OpenCensusFeature after relocation ([#​793](https://togithub.com/googleapis/java-core/issues/793)) ([2880112](https://togithub.com/googleapis/java-core/commit/28801121a50583118286419ac91332a201285c4c)) - **java:** remove Netty Native Image configuration after relocation to gax ([#​771](https://togithub.com/googleapis/java-core/issues/771)) ([9ba04f9](https://togithub.com/googleapis/java-core/commit/9ba04f9f135e1ff7344bb45eeb5796154616ef20)) - **java:** remove protobuf Native Image configuration ([#​784](https://togithub.com/googleapis/java-core/issues/784)) ([0bc8549](https://togithub.com/googleapis/java-core/commit/0bc8549d3364ac169f21cc00c00497cd59998106)) - remove native-image.properties settings after relocation ([#​794](https://togithub.com/googleapis/java-core/issues/794)) ([e24bfdd](https://togithub.com/googleapis/java-core/commit/e24bfddbb9f588fbf69cdc0022cdf67f2c628278)) - remove resource-config after relocation ([#​795](https://togithub.com/googleapis/java-core/issues/795)) ([87e2973](https://togithub.com/googleapis/java-core/commit/87e29733c3714b39000e5fa3d232c35ce69955a2)) - remove substitutions after relocation to gax ([#​789](https://togithub.com/googleapis/java-core/issues/789)) ([29291e9](https://togithub.com/googleapis/java-core/commit/29291e9f50e4500ef5d5c1fe30098d025b216f9a)) ##### Bug Fixes - **java:** register test class for reflection to fix native image test ([#​766](https://togithub.com/googleapis/java-core/issues/766)) ([6fe52c3](https://togithub.com/googleapis/java-core/commit/6fe52c3424546cad7b8158668d3f8a655b56af41)) ##### Dependencies - revert protobuf to 3.19 and common-protos 2.8.3 ([#​798](https://togithub.com/googleapis/java-core/issues/798)) ([0f36a84](https://togithub.com/googleapis/java-core/commit/0f36a848a03c50d5d0187241bccd66fdb0cea862)) - update dependency com.google.api-client:google-api-client-bom to v1.34.0 ([#​800](https://togithub.com/googleapis/java-core/issues/800)) ([8430aee](https://togithub.com/googleapis/java-core/commit/8430aee231100ef13296f22f09265589b2aa0252)) - update dependency com.google.api:gax-bom to v2.16.0 ([#​785](https://togithub.com/googleapis/java-core/issues/785)) ([fd435b0](https://togithub.com/googleapis/java-core/commit/fd435b00f01fac1dc96b5f401b403d67809fa1eb)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.8.1 ([#​792](https://togithub.com/googleapis/java-core/issues/792)) ([4d201ac](https://togithub.com/googleapis/java-core/commit/4d201ac5dc694c9e4a4f06c5580a0c707ea68b87)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.8.2 ([#​796](https://togithub.com/googleapis/java-core/issues/796)) ([dc28a0f](https://togithub.com/googleapis/java-core/commit/dc28a0f2d58bcf4eb3c9b9f129ce8d88470e94e6)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.0 ([#​783](https://togithub.com/googleapis/java-core/issues/783)) ([4ed5ba4](https://togithub.com/googleapis/java-core/commit/4ed5ba4d096cb19f60186cbcfc789f5b058b07f8)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.1 ([#​799](https://togithub.com/googleapis/java-core/issues/799)) ([fce5315](https://togithub.com/googleapis/java-core/commit/fce531519184225e103a8faad54e81ae9232210a)) - update dependency com.google.errorprone:error_prone_annotations to v2.12.1 ([#​788](https://togithub.com/googleapis/java-core/issues/788)) ([4e71f68](https://togithub.com/googleapis/java-core/commit/4e71f680142bf8cffaa519dcb0fd2916458674e2)) - update dependency com.google.http-client:google-http-client-bom to v1.41.6 ([#​791](https://togithub.com/googleapis/java-core/issues/791)) ([fe006c6](https://togithub.com/googleapis/java-core/commit/fe006c60e6cbaff8127a9f6f6792c6a6ce9ff26b)) - update dependency com.google.http-client:google-http-client-bom to v1.41.7 ([#​797](https://togithub.com/googleapis/java-core/issues/797)) ([570f8d5](https://togithub.com/googleapis/java-core/commit/570f8d5870044d1f3026b4aec49a6800d904f1be)) - update dependency com.google.protobuf:protobuf-bom to v3.20.0 ([#​787](https://togithub.com/googleapis/java-core/issues/787)) ([19202bc](https://togithub.com/googleapis/java-core/commit/19202bcb76e28977e0f2c9b02c75c83644bfb438)) - update dependency io.grpc:grpc-bom to v1.45.1 ([#​780](https://togithub.com/googleapis/java-core/issues/780)) ([6e3bf35](https://togithub.com/googleapis/java-core/commit/6e3bf35c501028ac293a401f55c14f1d97fa3953)) ##### [2.5.11](https://togithub.com/googleapis/java-core/compare/v2.5.10...v2.5.11) (2022-03-28) ##### Bug Fixes - **java:** Register Spanner classes for reflection to fix Native Image tests ([#​760](https://togithub.com/googleapis/java-core/issues/760)) ([257de0f](https://togithub.com/googleapis/java-core/commit/257de0f71963550ce11aca608fdf9a99672ff19a)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.33.4 ([#​776](https://togithub.com/googleapis/java-core/issues/776)) ([1b6fb2a](https://togithub.com/googleapis/java-core/commit/1b6fb2a5b9602f5ff8375deb15f5121851b09bd1)) - update dependency com.google.api:api-common to v2.1.5 ([#​768](https://togithub.com/googleapis/java-core/issues/768)) ([c76c332](https://togithub.com/googleapis/java-core/commit/c76c332b5676bffad2a1e75b094790c9b0488447)) - update dependency com.google.api:gax-bom to v2.13.0 ([#​774](https://togithub.com/googleapis/java-core/issues/774)) ([8075c54](https://togithub.com/googleapis/java-core/commit/8075c54a127496a5330671652678b03f5abdd5c9)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.8.0 ([#​770](https://togithub.com/googleapis/java-core/issues/770)) ([6809477](https://togithub.com/googleapis/java-core/commit/680947779ac9bc58f60c6c18750aac6b756e73b2)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.10 ([#​763](https://togithub.com/googleapis/java-core/issues/763)) ([9f2eb5f](https://togithub.com/googleapis/java-core/commit/9f2eb5fed5d9dc91ee01068a2c4eec9acef38c86)) - update dependency com.google.auth:google-auth-library-bom to v1.6.0 ([#​765](https://togithub.com/googleapis/java-core/issues/765)) ([2eb1924](https://togithub.com/googleapis/java-core/commit/2eb19241f119f39de7d07ee863c9c78a3e7f11a4)) - update dependency com.google.guava:guava to 31.1-jre ([#​772](https://togithub.com/googleapis/java-core/issues/772)) ([060adf3](https://togithub.com/googleapis/java-core/commit/060adf35bf6afdd4b31d790e5484f63eac777a11)) - update dependency com.google.http-client:google-http-client-bom to v1.41.5 ([#​769](https://togithub.com/googleapis/java-core/issues/769)) ([999be7a](https://togithub.com/googleapis/java-core/commit/999be7ab10459b33ab001b5bd84d650aeb13313f)) - update dependency org.threeten:threetenbp to v1.6.0 ([#​767](https://togithub.com/googleapis/java-core/issues/767)) ([9a4a438](https://togithub.com/googleapis/java-core/commit/9a4a438e04acfd0ec15cdfac5da3610223fe0071)) ##### [2.5.10](https://togithub.com/googleapis/java-core/compare/v2.5.9...v2.5.10) (2022-03-10) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.9 ([#​759](https://togithub.com/googleapis/java-core/issues/759)) ([9585d4e](https://togithub.com/googleapis/java-core/commit/9585d4ea8377c087b33e63e46672a79d52e04a4b)) ##### [2.5.9](https://togithub.com/googleapis/java-core/compare/v2.5.8...v2.5.9) (2022-03-09) ##### Dependencies - update dependency io.grpc:grpc-bom to v1.45.0 ([#​756](https://togithub.com/googleapis/java-core/issues/756)) ([403b10a](https://togithub.com/googleapis/java-core/commit/403b10accfe2694dc2a5fac63a374d00585df5bb)) ##### [2.5.8](https://togithub.com/googleapis/java-core/compare/v2.5.7...v2.5.8) (2022-03-08) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.8 ([#​753](https://togithub.com/googleapis/java-core/issues/753)) ([6866b84](https://togithub.com/googleapis/java-core/commit/6866b8407162ecbff7ed5a6eec5e3e4d130fcfa7)) ##### [2.5.7](https://togithub.com/googleapis/java-core/compare/v2.5.6...v2.5.7) (2022-03-08) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.7 ([#​748](https://togithub.com/googleapis/java-core/issues/748)) ([91cc595](https://togithub.com/googleapis/java-core/commit/91cc595c7df73af8e71e4feeb663c973e6bcc8e5)) ##### [2.5.6](https://togithub.com/googleapis/java-core/compare/v2.5.5...v2.5.6) (2022-03-01) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.6 ([#​742](https://togithub.com/googleapis/java-core/issues/742)) ([474e56c](https://togithub.com/googleapis/java-core/commit/474e56cca19f9d7b61f62585ee06f1fbdba0ae46)) ##### [2.5.5](https://togithub.com/googleapis/java-core/compare/v2.5.4...v2.5.5) (2022-02-28) ##### Bug Fixes - **java:** initialize spanner test environment class at build-time ([#​734](https://togithub.com/googleapis/java-core/issues/734)) ([684934e](https://togithub.com/googleapis/java-core/commit/684934efb28e4ed5f5f975aab91adad25bf1ab52)) - **java:** initialize TestTag at build time ([#​732](https://togithub.com/googleapis/java-core/issues/732)) ([a5f1dc2](https://togithub.com/googleapis/java-core/commit/a5f1dc2ed3d71404d699830ba4bea8824e67d0e8)) ##### Dependencies - update actions/setup-java action to v3 ([#​739](https://togithub.com/googleapis/java-core/issues/739)) ([46322e3](https://togithub.com/googleapis/java-core/commit/46322e3a9929195c223fc6399860c1cab4d81eb5)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.7.4 ([#​728](https://togithub.com/googleapis/java-core/issues/728)) ([3b83bd7](https://togithub.com/googleapis/java-core/commit/3b83bd7dce6a369c6668f0967572ae08df1b77d8)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.4 ([#​729](https://togithub.com/googleapis/java-core/issues/729)) ([0759c2b](https://togithub.com/googleapis/java-core/commit/0759c2b8163d45bf87692e2f131df76dac5f178e)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.5 ([#​735](https://togithub.com/googleapis/java-core/issues/735)) ([cefbf97](https://togithub.com/googleapis/java-core/commit/cefbf978ac21f00b3c4558ebc40ef1f6355ea156)) - update dependency com.google.auth:google-auth-library-bom to v1.5.3 ([#​737](https://togithub.com/googleapis/java-core/issues/737)) ([a1cb8d8](https://togithub.com/googleapis/java-core/commit/a1cb8d81db34142937c85be5c4502036a4b7939d)) - update dependency com.google.code.gson:gson to v2.9.0 ([#​727](https://togithub.com/googleapis/java-core/issues/727)) ([faf8a44](https://togithub.com/googleapis/java-core/commit/faf8a44e8823ecae44d543e6f5c2a9d8598f04fe)) - update dependency com.google.http-client:google-http-client-bom to v1.41.4 ([#​730](https://togithub.com/googleapis/java-core/issues/730)) ([1975b61](https://togithub.com/googleapis/java-core/commit/1975b617e23f7dd0b263e9acb4010b3126e5d7e7)) - update dependency io.grpc:grpc-bom to v1.44.1 ([#​736](https://togithub.com/googleapis/java-core/issues/736)) ([4ca315c](https://togithub.com/googleapis/java-core/commit/4ca315ca400e020badbdf27bb92d1b67680a2e73)) ##### [2.5.4](https://togithub.com/googleapis/java-core/compare/v2.5.3...v2.5.4) (2022-02-11) ##### Dependencies - update actions/github-script action to v6 ([#​724](https://togithub.com/googleapis/java-core/issues/724)) ([b8673d3](https://togithub.com/googleapis/java-core/commit/b8673d3b3ae08cbfed135cd7ff9d891c04e90611)) ##### [2.5.3](https://togithub.com/googleapis/java-core/compare/v2.5.2...v2.5.3) (2022-02-10) ##### Dependencies - update dependency com.google.api:gax-bom to v2.12.2 ([#​719](https://togithub.com/googleapis/java-core/issues/719)) ([4de90d0](https://togithub.com/googleapis/java-core/commit/4de90d05c152c21a1ebb98f6cbff0f9b9c39e5d2)) - update dependency com.google.http-client:google-http-client-bom to v1.41.3 ([#​720](https://togithub.com/googleapis/java-core/issues/720)) ([d2a5b4f](https://togithub.com/googleapis/java-core/commit/d2a5b4ffa598f232b84655a7ac146bfa2e1f24c9)) ##### [2.5.2](https://togithub.com/googleapis/java-core/compare/v2.5.1...v2.5.2) (2022-02-09) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.3 ([#​716](https://togithub.com/googleapis/java-core/issues/716)) ([100e41e](https://togithub.com/googleapis/java-core/commit/100e41e092f35f6e6d187de45bb6dc3e4e760052)) ##### [2.5.1](https://togithub.com/googleapis/java-core/compare/v2.5.0...v2.5.1) (2022-02-08) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.33.2 ([#​709](https://togithub.com/googleapis/java-core/issues/709)) ([de08f4e](https://togithub.com/googleapis/java-core/commit/de08f4eea6cf4e7813c8da1f6adb28e1e56fd1cd)) - update dependency com.google.api:api-common to v2.1.4 ([#​712](https://togithub.com/googleapis/java-core/issues/712)) ([9cc49de](https://togithub.com/googleapis/java-core/commit/9cc49de654d57e8efdb97c8e3c7f9d8723e79eb9)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.7.3 ([#​710](https://togithub.com/googleapis/java-core/issues/710)) ([a5f1991](https://togithub.com/googleapis/java-core/commit/a5f199157319dfb82cbb24d1b4249d924118de84)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.2 ([#​705](https://togithub.com/googleapis/java-core/issues/705)) ([b8722b9](https://togithub.com/googleapis/java-core/commit/b8722b998966b21cd2d9e6208627c34ff046accf))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 5ffc6238841..a9e14dad3a3 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.11 + 2.6.1 test tests From 06104077a86d6789f1e4decde1b26a8ba63da1c0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Apr 2022 17:36:24 +0200 Subject: [PATCH 151/356] chore(deps): update dependency com.google.cloud:libraries-bom to v25.2.0 (#992) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.1.0` -> `25.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/compatibility-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/confidence-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index a9e14dad3a3..ad0f322f6af 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.1.0 + 25.2.0 pom import From 29eb12ce41a86b81f16b87ec11e712f2f8980ff3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 16 May 2022 19:46:24 +0200 Subject: [PATCH 152/356] chore(deps): update dependency com.google.cloud:libraries-bom to v25.3.0 (#996) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.2.0` -> `25.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/compatibility-slim/25.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/confidence-slim/25.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index ad0f322f6af..0c0feed1e5a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.2.0 + 25.3.0 pom import From cd3f6927cf0efa185de3875053d0c847c7cf8c7a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 26 May 2022 18:58:22 +0200 Subject: [PATCH 153/356] deps: update dependency com.google.cloud:google-cloud-core to v2.7.1 (#997) 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-core](https://togithub.com/googleapis/java-core) | `2.6.1` -> `2.7.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.7.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.7.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.7.1/compatibility-slim/2.6.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.7.1/confidence-slim/2.6.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.7.1`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​271-httpsgithubcomgoogleapisjava-corecomparev270v271-2022-05-19) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.7.0...v2.7.1) ### [`v2.7.0`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​270-httpsgithubcomgoogleapisjava-corecomparev261v270-2022-05-18) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.6.1...v2.7.0) ##### Features - **java:** remove native-image-support module ([#​820](https://togithub.com/googleapis/java-core/issues/820)) ([a53ef6d](https://togithub.com/googleapis/java-core/commit/a53ef6d7ba05eeba82998378455f0aea58f24381)) - next release from main branch is 2.7.0 ([#​807](https://togithub.com/googleapis/java-core/issues/807)) ([5a2c608](https://togithub.com/googleapis/java-core/commit/5a2c608e375d15ec83ca71232627bce1f167e750)) ##### Bug Fixes - remove native-image-support module from version.txt ([#​822](https://togithub.com/googleapis/java-core/issues/822)) ([92e7efc](https://togithub.com/googleapis/java-core/commit/92e7efc4974911f7ce30021a280c9002a44dab47)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.34.1 ([#​823](https://togithub.com/googleapis/java-core/issues/823)) ([71105c6](https://togithub.com/googleapis/java-core/commit/71105c64918d6444e321fa3de5fc402e577ebc7d)) - update dependency com.google.api:api-common to v2.2.0 ([#​827](https://togithub.com/googleapis/java-core/issues/827)) ([05a02d6](https://togithub.com/googleapis/java-core/commit/05a02d6b16cb06b9f1dea0814912e5a32913fca8)) - update dependency com.google.api:gax-bom to v2.17.0 ([#​826](https://togithub.com/googleapis/java-core/issues/826)) ([c90188e](https://togithub.com/googleapis/java-core/commit/c90188e9a94ae71d71105d908173f1bd7e77c1cb)) - update dependency com.google.api:gax-bom to v2.18.0 ([#​829](https://togithub.com/googleapis/java-core/issues/829)) ([5537e7f](https://togithub.com/googleapis/java-core/commit/5537e7f80d5db94038b24a393e310120fab62e8c)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.2 ([#​805](https://togithub.com/googleapis/java-core/issues/805)) ([493ac03](https://togithub.com/googleapis/java-core/commit/493ac038d3ca9f603cd47969fde0da68a1f9bfd0)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.3 ([#​814](https://togithub.com/googleapis/java-core/issues/814)) ([e809baa](https://togithub.com/googleapis/java-core/commit/e809baa69672d3eca2dc348f55615dc072a8fbe3)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.4 ([#​825](https://togithub.com/googleapis/java-core/issues/825)) ([5ce12ee](https://togithub.com/googleapis/java-core/commit/5ce12ee0c10e2bdb5981e6ca02966d7eb802ca6c)) - update dependency com.google.auth:google-auth-library-bom to v1.7.0 ([#​828](https://togithub.com/googleapis/java-core/issues/828)) ([2abca2c](https://togithub.com/googleapis/java-core/commit/2abca2c135ba2337d546d5c97bcdd5901e91301a)) - update dependency com.google.cloud:native-image-support to v0.14.0 ([#​824](https://togithub.com/googleapis/java-core/issues/824)) ([997a34a](https://togithub.com/googleapis/java-core/commit/997a34a15a59bb1818fff3d1fbce195a05d12da3)) - update dependency com.google.errorprone:error_prone_annotations to v2.13.1 ([#​806](https://togithub.com/googleapis/java-core/issues/806)) ([9fc5811](https://togithub.com/googleapis/java-core/commit/9fc5811eae52288acd9fb0b967e5737848fe7c5e)) - update dependency com.google.http-client:google-http-client-bom to v1.41.8 ([#​821](https://togithub.com/googleapis/java-core/issues/821)) ([c7e3d6e](https://togithub.com/googleapis/java-core/commit/c7e3d6ef437d9f85dab450b54d63f7218b89788b)) - update dependency com.google.protobuf:protobuf-bom to v3.20.1 ([#​813](https://togithub.com/googleapis/java-core/issues/813)) ([a9c8c92](https://togithub.com/googleapis/java-core/commit/a9c8c92086c0266e14f86a957944c0cc4ab26ee6)) - update dependency io.grpc:grpc-bom to v1.46.0 ([#​815](https://togithub.com/googleapis/java-core/issues/815)) ([03c9bfe](https://togithub.com/googleapis/java-core/commit/03c9bfe4210a6c3995adf89be28b7c8aab402fb3)) - update opencensus.version to v0.31.1 ([#​819](https://togithub.com/googleapis/java-core/issues/819)) ([1800d3a](https://togithub.com/googleapis/java-core/commit/1800d3aa3ff7315947681b648f822f2cf9656a3b)) ##### [2.6.1](https://togithub.com/googleapis/java-core/compare/v2.6.0...v2.6.1) (2022-04-14) ##### Dependencies - update dependency com.google.errorprone:error_prone_annotations to v2.13.0 ([#​802](https://togithub.com/googleapis/java-core/issues/802)) ([042b08e](https://togithub.com/googleapis/java-core/commit/042b08e3cf05dba7e006f802dbc60f95b6da99ef))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 0c0feed1e5a..fdf74e8784e 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.6.1 + 2.7.1 test tests From a5ff4c053f1b738a5c14e825dd5bda8e8fcde0f1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Jun 2022 19:14:18 +0200 Subject: [PATCH 154/356] chore(deps): update dependency com.google.cloud:libraries-bom to v25.4.0 (#1006) 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:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.3.0` -> `25.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/compatibility-slim/25.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/confidence-slim/25.3.0)](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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index fdf74e8784e..93653290666 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.3.0 + 25.4.0 pom import From 23af248b6ada29026aebdb7b4f0a86e4bc396629 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Jun 2022 02:46:12 +0200 Subject: [PATCH 155/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.0 (#1012) 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-core](https://togithub.com/googleapis/java-core) | `2.7.1` -> `2.8.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.0/compatibility-slim/2.7.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.0/confidence-slim/2.7.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.0`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​280-httpsgithubcomgoogleapisjava-corecomparev271v280-2022-06-21) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.7.1...v2.8.0) ##### Features - add build scripts for native image testing in Java 17 ([#​1440](https://togithub.com/googleapis/java-core/issues/1440)) ([#​836](https://togithub.com/googleapis/java-core/issues/836)) ([8826d9b](https://togithub.com/googleapis/java-core/commit/8826d9bc05eb9e4a54c40e8578de85ed79c50e99)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.35.1 ([#​843](https://togithub.com/googleapis/java-core/issues/843)) ([9ffe0c5](https://togithub.com/googleapis/java-core/commit/9ffe0c5b25761abf7ff1bea091aa1db057dff2d0)) - update dependency com.google.api:api-common to v2.2.1 ([#​844](https://togithub.com/googleapis/java-core/issues/844)) ([69dde56](https://togithub.com/googleapis/java-core/commit/69dde5641546b678a385b1ed3a2c7a020f81d285)) - update dependency com.google.api:gax-bom to v2.18.2 ([#​849](https://togithub.com/googleapis/java-core/issues/849)) ([11764b0](https://togithub.com/googleapis/java-core/commit/11764b04629c5bfbc9b0d68174782cc126dc1646)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.9.0 ([#​846](https://togithub.com/googleapis/java-core/issues/846)) ([5dced6d](https://togithub.com/googleapis/java-core/commit/5dced6d25ce0f3e7587d7ac1f6f3713f3b2a18c2)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.4.0 ([#​838](https://togithub.com/googleapis/java-core/issues/838)) ([b0a7afe](https://togithub.com/googleapis/java-core/commit/b0a7afe342a5e15436d439b9cc1e3c58f894ab66)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.4.1 ([#​848](https://togithub.com/googleapis/java-core/issues/848)) ([8260997](https://togithub.com/googleapis/java-core/commit/826099767b0aabe0db26eff2f612f0847b451366)) - update dependency com.google.errorprone:error_prone_annotations to v2.14.0 ([#​839](https://togithub.com/googleapis/java-core/issues/839)) ([3459fb6](https://togithub.com/googleapis/java-core/commit/3459fb668557b982cef5682ce47d3c978b83d69c)) - update dependency com.google.http-client:google-http-client-bom to v1.42.0 ([#​845](https://togithub.com/googleapis/java-core/issues/845)) ([2d2c873](https://togithub.com/googleapis/java-core/commit/2d2c873e274b26f4687d569cc3b8ae58c3c5ed54)) - update dependency com.google.protobuf:protobuf-bom to v3.21.0 ([#​840](https://togithub.com/googleapis/java-core/issues/840)) ([037da15](https://togithub.com/googleapis/java-core/commit/037da15b2aed1719e768ba5b4e001caf25952adc)) - update dependency com.google.protobuf:protobuf-bom to v3.21.1 ([#​841](https://togithub.com/googleapis/java-core/issues/841)) ([04b8862](https://togithub.com/googleapis/java-core/commit/04b886224128f1525ad8398815dc62dac87680af)) - update dependency io.grpc:grpc-bom to v1.47.0 ([#​842](https://togithub.com/googleapis/java-core/issues/842)) ([40984e2](https://togithub.com/googleapis/java-core/commit/40984e23242ba954b6ca741ca3f02ec89e92ae57)) ##### [2.7.1](https://togithub.com/googleapis/java-core/compare/v2.7.0...v2.7.1) (2022-05-19) ##### Dependencies - update dependency com.google.api:gax-bom to v2.18.1 ([#​833](https://togithub.com/googleapis/java-core/issues/833)) ([7541115](https://togithub.com/googleapis/java-core/commit/7541115095e0ae28d938a4c9621fd0f82892fe55))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 93653290666..6d481d0cb85 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.7.1 + 2.8.0 test tests From 429129c95332f147aa88dcfbc986e0a9a92f7e98 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 29 Jun 2022 22:35:18 +0200 Subject: [PATCH 156/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.1 (#1017) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6d481d0cb85..4bbb54164d9 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.0 + 2.8.1 test tests From 5c92cb7951642f43a5afd14ea2860b7c64837aae Mon Sep 17 00:00:00 2001 From: Alice <65933803+alicejli@users.noreply.github.com> Date: Thu, 7 Jul 2022 10:53:05 -0400 Subject: [PATCH 157/356] chore: update api_shortname in pom.xml (#1026) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update api_shortname in pom.xml * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- translate/snippets/pom.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 4bbb54164d9..1147b368a8b 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -2,14 +2,14 @@ 4.0.0 com.google.cloud - translation-snippets + translate-snippets jar - Google Cloud Translation Snippets + Google Cloud Translate Snippets https://github.com/googleapis/java-translate com.google.cloud.samples @@ -24,7 +24,7 @@
- + @@ -68,5 +68,5 @@ - + From 3d3fdf60a558bedcc1e4415b1af34bc3d9d22560 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 11 Jul 2022 20:19:09 +0200 Subject: [PATCH 158/356] chore(deps): update dependency com.google.cloud:libraries-bom to v26 (#1029) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 1147b368a8b..7402e64fd13 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.4.0 + 26.0.0 pom import From 986a27d7643a106430d53dc5f6390e98f13cb506 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Jul 2022 20:58:14 +0200 Subject: [PATCH 159/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.3 (#1041) 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-core](https://togithub.com/googleapis/java-core) | `2.8.1` -> `2.8.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.3/compatibility-slim/2.8.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.3/confidence-slim/2.8.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.3`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​283-httpsgithubcomgoogleapisjava-corecomparev282v283-2022-07-26) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.1...v2.8.3) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v2 ([#​868](https://togithub.com/googleapis/java-core/issues/868)) ([e117c40](https://togithub.com/googleapis/java-core/commit/e117c40f31acf16a45bdbeeb727ba26d80eb6a51)) - update dependency com.google.api:gax-bom to v2.18.4 ([#​864](https://togithub.com/googleapis/java-core/issues/864)) ([bd40b1d](https://togithub.com/googleapis/java-core/commit/bd40b1d1b36cdcfa833047609e2488594b112be1)) - update dependency com.google.api:gax-bom to v2.18.5 ([#​876](https://togithub.com/googleapis/java-core/issues/876)) ([d8dc7fb](https://togithub.com/googleapis/java-core/commit/d8dc7fbdb0d65e493ca4154658c63e80d89ab600)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.9.2 ([#​870](https://togithub.com/googleapis/java-core/issues/870)) ([7e961e9](https://togithub.com/googleapis/java-core/commit/7e961e945d5e049a1a1bb2592e9c155b5937e33b)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.5.2 ([#​865](https://togithub.com/googleapis/java-core/issues/865)) ([fe7b974](https://togithub.com/googleapis/java-core/commit/fe7b974a0eae82711ca96edf412944309d5d6202)) - update dependency com.google.auth:google-auth-library-bom to v1.8.1 ([#​856](https://togithub.com/googleapis/java-core/issues/856)) ([92df5d3](https://togithub.com/googleapis/java-core/commit/92df5d3c248214970d38432e8c264d151298d1e6)) - update dependency com.google.http-client:google-http-client-bom to v1.42.2 ([#​871](https://togithub.com/googleapis/java-core/issues/871)) ([1972e8e](https://togithub.com/googleapis/java-core/commit/1972e8e45e11597e56609aa5fcd44e61958d5857)) - update dependency com.google.protobuf:protobuf-bom to v3.21.3 ([#​874](https://togithub.com/googleapis/java-core/issues/874)) ([1e18977](https://togithub.com/googleapis/java-core/commit/1e18977820ac766157156fb6246bd318d207971c)) - update dependency com.google.protobuf:protobuf-bom to v3.21.4 ([#​877](https://togithub.com/googleapis/java-core/issues/877)) ([d12fb5e](https://togithub.com/googleapis/java-core/commit/d12fb5e4eb8aa42015df84abf31f56408c8b64d8)) - update dependency io.grpc:grpc-bom to v1.48.0 ([#​873](https://togithub.com/googleapis/java-core/issues/873)) ([a45b075](https://togithub.com/googleapis/java-core/commit/a45b075e414049550c51ff0097337e45128fc499))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 7402e64fd13..a41c0bc454d 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.1 + 2.8.3 test tests From c051002dce462d27069509a2f468667d87b5aba4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 29 Jul 2022 23:52:12 +0200 Subject: [PATCH 160/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.5 (#1044) 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-core](https://togithub.com/googleapis/java-core) | `2.8.3` -> `2.8.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.5/compatibility-slim/2.8.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.5/confidence-slim/2.8.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.5`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​285-httpsgithubcomgoogleapisjava-corecomparev284v285-2022-07-29) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.4...v2.8.5) ##### Dependencies - update dependency com.google.api:gax-bom to v2.18.6 ([#​885](https://togithub.com/googleapis/java-core/issues/885)) ([7fa028c](https://togithub.com/googleapis/java-core/commit/7fa028c0e78bd21583c8687582da24834bd54449)) ### [`v2.8.4`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​284-httpsgithubcomgoogleapisjava-corecomparev283v284-2022-07-27) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.3...v2.8.4) ##### Documentation - update javadocs for ReadChannel#limit to be more clear ([#​880](https://togithub.com/googleapis/java-core/issues/880)) ([c7de4e2](https://togithub.com/googleapis/java-core/commit/c7de4e2871d6a32cacc7aab69d826f3afd6301ef)) ##### Dependencies - Update google-cloud-shared-config to v1.5.3 ([#​882](https://togithub.com/googleapis/java-core/issues/882)) ([aabb0b4](https://togithub.com/googleapis/java-core/commit/aabb0b42076f8a02e7b31d604add567fa909df6c))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index a41c0bc454d..d2eb63eddbd 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.3 + 2.8.5 test tests From 245f8616932e0ff5ca43c557b1ca961bff2db007 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 20:44:30 +0200 Subject: [PATCH 161/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.6 (#1049) 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-core](https://togithub.com/googleapis/java-core) | `2.8.5` -> `2.8.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.6/compatibility-slim/2.8.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.6/confidence-slim/2.8.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.6`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​286-httpsgithubcomgoogleapisjava-corecomparev285v286-2022-08-02) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.5...v2.8.6) ##### Dependencies - update dependency com.google.api:gax-bom to v2.18.7 ([#​890](https://togithub.com/googleapis/java-core/issues/890)) ([c67bed5](https://togithub.com/googleapis/java-core/commit/c67bed5281b458e78780cdd918235b5d073917c7)) - update dependency com.google.code.gson:gson to v2.9.1 ([#​888](https://togithub.com/googleapis/java-core/issues/888)) ([7b799c6](https://togithub.com/googleapis/java-core/commit/7b799c66f4aaf057242e9a231b920e49a7c964e9))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index d2eb63eddbd..f13e574fb92 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.5 + 2.8.6 test tests From e7ec24566a2e5f5e0e6cac5a20f0a92d73a316ad Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Aug 2022 21:40:33 +0200 Subject: [PATCH 162/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.7 (#1055) 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-core](https://togithub.com/googleapis/java-core) | `2.8.6` -> `2.8.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.7/compatibility-slim/2.8.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.7/confidence-slim/2.8.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.7`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​287-httpsgithubcomgoogleapisjava-corecomparev286v287-2022-08-03) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.6...v2.8.7) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v1.9.0 ([#​894](https://togithub.com/googleapis/java-core/issues/894)) ([82aaa16](https://togithub.com/googleapis/java-core/commit/82aaa16cd9813984a0c92d944eb1ad956759a8e5)) - update dependency io.grpc:grpc-bom to v1.48.1 ([#​891](https://togithub.com/googleapis/java-core/issues/891)) ([0b0f9b8](https://togithub.com/googleapis/java-core/commit/0b0f9b89757b801e8334c764644d7b66032d36d1))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index f13e574fb92..8fab72cec25 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.6 + 2.8.7 test tests From 13f75350c0827766301026b1aadf9886ed5ec724 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Aug 2022 19:10:28 +0200 Subject: [PATCH 163/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.8 (#1057) 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-core](https://togithub.com/googleapis/java-core) | `2.8.7` -> `2.8.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.8/compatibility-slim/2.8.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.8/confidence-slim/2.8.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.8`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​288-httpsgithubcomgoogleapisjava-corecomparev287v288-2022-08-04) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.7...v2.8.8) ##### Dependencies - update dependency com.google.errorprone:error_prone_annotations to v2.15.0 ([#​897](https://togithub.com/googleapis/java-core/issues/897)) ([29e4fc9](https://togithub.com/googleapis/java-core/commit/29e4fc93d5d4d50f7de85eae7a8150314cca6f43))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 8fab72cec25..6b9df00d980 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.7 + 2.8.8 test tests From 986bc74d34956bfaa54e098e82f10331bf402578 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 18:10:14 +0200 Subject: [PATCH 164/356] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.0 (#1063) 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:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.0.0` -> `26.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/compatibility-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/confidence-slim/26.0.0)](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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6b9df00d980..5ceb4ba6815 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.0.0 + 26.1.0 pom import From 578d94acf5a9f03c70e4ef38bb996e3ca2f15e2a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 18 Aug 2022 15:28:51 +0200 Subject: [PATCH 165/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.9 (#1066) 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-core](https://togithub.com/googleapis/java-core) | `2.8.8` -> `2.8.9` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.9/compatibility-slim/2.8.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.9/confidence-slim/2.8.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.9`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​289-httpsgithubcomgoogleapisjava-corecomparev288v289-2022-08-16) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.8...v2.8.9) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v1.10.0 ([#​900](https://togithub.com/googleapis/java-core/issues/900)) ([c01b47a](https://togithub.com/googleapis/java-core/commit/c01b47a122a9036f8c594cb583dab3512a257597)) - update dependency com.google.protobuf:protobuf-bom to v3.21.5 ([#​901](https://togithub.com/googleapis/java-core/issues/901)) ([13e2fd6](https://togithub.com/googleapis/java-core/commit/13e2fd6fbae1d34385ec500aaf4a2b38e19dd6de)) - update dependency org.threeten:threetenbp to v1.6.1 ([#​902](https://togithub.com/googleapis/java-core/issues/902)) ([02dac62](https://togithub.com/googleapis/java-core/commit/02dac62784a6614291836917b022a32745312157))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 5ceb4ba6815..039f616ee6c 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.8 + 2.8.9 test tests From fb1886df6290cbc5398dffd703c2fab078bd7c90 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Aug 2022 17:02:18 +0200 Subject: [PATCH 166/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.10 (#1069) 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-core](https://togithub.com/googleapis/java-core) | `2.8.9` -> `2.8.10` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.10/compatibility-slim/2.8.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.10/confidence-slim/2.8.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.10`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2810-httpsgithubcomgoogleapisjava-corecomparev289v2810-2022-08-24) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.9...v2.8.10) ##### Dependencies - update dependency com.google.api:gax-bom to v2.19.0 ([#​907](https://togithub.com/googleapis/java-core/issues/907)) ([51b824c](https://togithub.com/googleapis/java-core/commit/51b824c225fd7095138e1ec2b6d47af4e2a34352)) - update dependency io.grpc:grpc-bom to v1.49.0 ([#​908](https://togithub.com/googleapis/java-core/issues/908)) ([fbccd2d](https://togithub.com/googleapis/java-core/commit/fbccd2daceb0984c7cb95f84f89a116e54bf4ddc))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 039f616ee6c..8b7deb392ea 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.9 + 2.8.10 test tests From e1b1267cbe7435275f694d80d6eb122987f960a2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 31 Aug 2022 22:42:28 +0200 Subject: [PATCH 167/356] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.1 (#1071) 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:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.0` -> `26.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/compatibility-slim/26.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/confidence-slim/26.1.0)](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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 8b7deb392ea..7b80e18e66b 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.0 + 26.1.1 pom import From 0d2fc7e7ea042886ea7e18a44bb845e58153cbd0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Sep 2022 05:42:27 +0200 Subject: [PATCH 168/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.11 (#1073) 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-core](https://togithub.com/googleapis/java-core) | `2.8.10` -> `2.8.11` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.11/compatibility-slim/2.8.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.11/confidence-slim/2.8.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.11`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2811-httpsgithubcomgoogleapisjava-corecomparev2810v2811-2022-09-08) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.10...v2.8.11) ##### Dependencies - Update dependency com.google.auth:google-auth-library-bom to v1.11.0 ([#​911](https://togithub.com/googleapis/java-core/issues/911)) ([4656905](https://togithub.com/googleapis/java-core/commit/4656905956504e4bc4fe224d1f8cd70bbab614d8))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 7b80e18e66b..57f5330c9d8 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.10 + 2.8.11 test tests From 26e64e865ae5c8805054b617afa485f0fcbe125e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 16:08:13 +0200 Subject: [PATCH 169/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.12 (#1076) 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-core](https://togithub.com/googleapis/java-core) | `2.8.11` -> `2.8.12` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.12/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.12/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.12/compatibility-slim/2.8.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.12/confidence-slim/2.8.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.12`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2812-httpsgithubcomgoogleapisjava-corecomparev2811v2812-2022-09-14) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.11...v2.8.12) ##### Dependencies - Update dependency com.google.api:gax-bom to v2.19.1 ([#​915](https://togithub.com/googleapis/java-core/issues/915)) ([2647fde](https://togithub.com/googleapis/java-core/commit/2647fdee8e2b168f3364af8e76abfe2903578b29)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.6 ([#​916](https://togithub.com/googleapis/java-core/issues/916)) ([a7db234](https://togithub.com/googleapis/java-core/commit/a7db234800481ffba71d3222542971dbcd212d8e))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 57f5330c9d8..5d138e201f5 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.11 + 2.8.12 test tests From 1423221e735117b072846c247fd47d51ba77baef Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 17:40:30 +0200 Subject: [PATCH 170/356] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.2 (#1081) 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:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.1` -> `26.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/compatibility-slim/26.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/confidence-slim/26.1.1)](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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 5d138e201f5..18d73d3a48e 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.1 + 26.1.2 pom import From 3c988e86f6b63ee36f65603d9bde87ee8c107ade Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 22:14:25 +0200 Subject: [PATCH 171/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.13 (#1083) 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-core](https://togithub.com/googleapis/java-core) | `2.8.12` -> `2.8.13` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.13/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.13/compatibility-slim/2.8.12)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.13/confidence-slim/2.8.12)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.13`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2813-httpsgithubcomgoogleapisjava-corecomparev2812v2813-2022-09-20) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.12...v2.8.13) ##### Dependencies - Update dependency io.grpc:grpc-bom to v1.49.1 ([#​919](https://togithub.com/googleapis/java-core/issues/919)) ([2d481ba](https://togithub.com/googleapis/java-core/commit/2d481ba500e247d8fee49abe30a9eb84bdcc8d07))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 18d73d3a48e..a9753305ccc 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.12 + 2.8.13 test tests From bc6aa50b62ac374c5382170bebc4eea44f5c4974 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Sep 2022 16:20:23 +0200 Subject: [PATCH 172/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.14 (#1084) 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-core](https://togithub.com/googleapis/java-core) | `2.8.13` -> `2.8.14` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.14/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.14/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.14/compatibility-slim/2.8.13)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.14/confidence-slim/2.8.13)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.14`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2814-httpsgithubcomgoogleapisjava-corecomparev2813v2814-2022-09-20) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.13...v2.8.14) ##### Dependencies - Update dependency com.google.api.grpc:proto-google-common-protos to v2.9.3 ([#​922](https://togithub.com/googleapis/java-core/issues/922)) ([96b5b4e](https://togithub.com/googleapis/java-core/commit/96b5b4e00004c28cd2d726c2161e94778f6a1c01))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index a9753305ccc..db0169f923f 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.13 + 2.8.14 test tests From 09bf09369563a9ce4ae2a6fb5803c76641dad4af Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 26 Sep 2022 16:30:36 +0200 Subject: [PATCH 173/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.15 (#1085) 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-core](https://togithub.com/googleapis/java-core) | `2.8.14` -> `2.8.15` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.15/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.15/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.15/compatibility-slim/2.8.14)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.15/confidence-slim/2.8.14)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.15`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2815-httpsgithubcomgoogleapisjava-corecomparev2814v2815-2022-09-23) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.14...v2.8.15) ##### Dependencies - Update dependency com.google.api.grpc:proto-google-iam-v1 to v1.6.0 ([#​925](https://togithub.com/googleapis/java-core/issues/925)) ([a5475c5](https://togithub.com/googleapis/java-core/commit/a5475c5333ca97392c9e64a883826ea1bd976a01)) - Update dependency com.google.api.grpc:proto-google-iam-v1 to v1.6.1 ([#​926](https://togithub.com/googleapis/java-core/issues/926)) ([3bc96fb](https://togithub.com/googleapis/java-core/commit/3bc96fbba4907d4ac3d24915870132fed596c0d3))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index db0169f923f..4b20602ab1e 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.14 + 2.8.15 test tests From 22e9bab313a44bc930b4fe055a72bf6a0692a8d6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 30 Sep 2022 23:52:07 +0200 Subject: [PATCH 174/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.18 (#1087) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 4b20602ab1e..f275210f095 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.15 + 2.8.18 test tests From d6bf4df89419e7536d7ea524e7d372eb565d3b1b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sun, 2 Oct 2022 23:28:21 +0200 Subject: [PATCH 175/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.19 (#1090) 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-core](https://togithub.com/googleapis/java-core) | `2.8.18` -> `2.8.19` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.19/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.19/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.19/compatibility-slim/2.8.18)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.19/confidence-slim/2.8.18)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.19`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2819-httpsgithubcomgoogleapisjava-corecomparev2818v2819-2022-09-30) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.18...v2.8.19) ##### Dependencies - Update dependency com.google.api.grpc:proto-google-common-protos to v2.9.5 ([#​963](https://togithub.com/googleapis/java-core/issues/963)) ([1ee2f9a](https://togithub.com/googleapis/java-core/commit/1ee2f9acd3968b21974a550b6732fe68b18085f4))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index f275210f095..dc3eb631846 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.18 + 2.8.19 test tests From b20096041254f4e72a90c60eebc6fdd0f122e72a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 6 Oct 2022 03:26:35 +0200 Subject: [PATCH 176/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.20 (#1091) 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-core](https://togithub.com/googleapis/java-core) | `2.8.19` -> `2.8.20` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.20/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.20/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.20/compatibility-slim/2.8.19)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.20/confidence-slim/2.8.19)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.20`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2820-httpsgithubcomgoogleapisjava-corecomparev2819v2820-2022-10-02) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.19...v2.8.20) ##### Dependencies - Update dependency com.google.api:gax-bom to v2.19.2 ([#​969](https://togithub.com/googleapis/java-core/issues/969)) ([1151449](https://togithub.com/googleapis/java-core/commit/1151449c061ab51c45982444db5f9da9d2ce4fb7)) - Update dependency com.google.api.grpc:proto-google-common-protos to v2.9.6 ([#​967](https://togithub.com/googleapis/java-core/issues/967)) ([4a7b524](https://togithub.com/googleapis/java-core/commit/4a7b524fa366484825bedbc0a4f86d4551a6a0e8)) - Update dependency io.grpc:grpc-bom to v1.49.2 ([#​966](https://togithub.com/googleapis/java-core/issues/966)) ([b7738aa](https://togithub.com/googleapis/java-core/commit/b7738aa71fb9cf0994e4ad1dae4bae433754cda0))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index dc3eb631846..58923ca201a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.19 + 2.8.20 test tests From 84ffc491da96195ae4f1938ab5c79ca163dc44df Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Oct 2022 20:04:22 +0200 Subject: [PATCH 177/356] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.3 (#1097) 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:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.2` -> `26.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/compatibility-slim/26.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/confidence-slim/26.1.2)](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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 58923ca201a..5a2c8b3c4da 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.2 + 26.1.3 pom import From 8f39f249feed513256fc13959157567967ed0b38 Mon Sep 17 00:00:00 2001 From: meredithslota Date: Thu, 17 Nov 2022 15:17:35 -0800 Subject: [PATCH 178/356] chore(jobs): add normalized region tags with product prefix (#7442) --- .../google/samples/GeneralSearchSample.java | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/jobs/v3/src/main/java/com/google/samples/GeneralSearchSample.java b/jobs/v3/src/main/java/com/google/samples/GeneralSearchSample.java index cd006097f85..7c2ee11384e 100644 --- a/jobs/v3/src/main/java/com/google/samples/GeneralSearchSample.java +++ b/jobs/v3/src/main/java/com/google/samples/GeneralSearchSample.java @@ -58,6 +58,7 @@ public final class GeneralSearchSample { private static CloudTalentSolution talentSolutionClient = JobServiceQuickstart.getTalentSolutionClient(); + // [START job_discovery_basic_keyword_search] // [START basic_keyword_search] /** Simple search jobs with keyword. */ @@ -95,7 +96,9 @@ public static void basicSearcJobs(String companyName, String query) System.out.printf("Simple search jobs results: %s\n", searchJobsResponse); } // [END basic_keyword_search] - + // [END job_discovery_basic_keyword_search] + + // [START job_discovery_category_filter_search] // [START category_filter] /** Search on category filter. */ @@ -133,7 +136,9 @@ public static void categoryFilterSearch(String companyName, List categor System.out.printf("Category search jobs results: %s\n", searchJobsResponse); } // [END category_filter] + // [END job_discovery_category_filter_search] + // [START job_discovery_employment_types_filter_search] // [START employment_types_filter] /** Search on employment types. */ @@ -171,7 +176,9 @@ public static void employmentTypesSearch(String companyName, List employ System.out.printf("Employee type search jobs results: %s\n", searchJobsResponse); } // [END employment_types_filter] + // [END job_discovery_employment_types_filter_search] + // [START job_discovery_date_range_filter_search] // [START date_range_filter] /** @@ -218,7 +225,9 @@ public static void dateRangeSearch(String companyName, String startTime, String System.out.printf("Search results on jobs with a date range: %s\n", searchJobsResponse); } // [END date_range_filter] + // [END job_discovery_date_range_filter_search] + // [START job_discovery_language_code_filter_search] // [START language_code_filter] /** Search on language codes. */ @@ -256,7 +265,9 @@ public static void languageCodeSearch(String companyName, List languageC System.out.printf("Search results on jobs with a language code: %s\n", searchJobsResponse); } // [END language_code_filter] + // [END job_discovery_language_code_filter_search] + // [START job_discovery_company_display_name_search] // [START company_display_name_filter] /** Search on company display name. */ @@ -294,7 +305,9 @@ public static void companyDisplayNameSearch(String companyName, List com System.out.printf("Search results by display name of company: %s\n", searchJobsResponse); } // [END company_display_name_filter] - + // [END job_discovery_company_display_name_search] + + // [START job_discovery_compensation_search] // [START compensation_filter] /** Search on compensation. */ @@ -346,6 +359,7 @@ public static void compensationSearch(String companyName) System.out.printf("Search results by compensation: %s\n", searchJobsResponse); } // [END compensation_filter] + // [END job_discovery_compensation_search] public static void main(String... args) throws Exception { Company companyToBeCreated = BasicCompanySample.generateCompany().setDisplayName("Google"); From d599ac1796a7a0696722dc15f7ce60ec4941e63f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 17 Mar 2020 16:12:04 -0700 Subject: [PATCH 179/356] samples: scaffold pom.xml files (#112) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-03-17 11:57:34,469 synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py. 2020-03-17 11:57:34,525 synthtool > Ensuring dependencies. 2020-03-17 11:57:34,530 synthtool > Pulling artman image. latest: Pulling from googleapis/artman Digest: sha256:5ef340c8d9334719bc5c6981d95f4a5d2737b0a6a24f2b9a0d430e96fff85c5b Status: Image is up to date for googleapis/artman:latest 2020-03-17 11:57:35,463 synthtool > Cloning googleapis. 2020-03-17 11:57:35,799 synthtool > Running generator for google/cloud/translate/artman_translate_v3beta1.yaml. 2020-03-17 11:57:45,493 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java. 2020-03-17 11:57:45,496 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java. 2020-03-17 11:57:45,496 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java. 2020-03-17 11:57:45,496 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java. 2020-03-17 11:57:45,496 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java. 2020-03-17 11:57:45,497 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java. 2020-03-17 11:57:45,497 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java. 2020-03-17 11:57:45,497 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java. 2020-03-17 11:57:45,497 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java. 2020-03-17 11:57:45,498 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java. 2020-03-17 11:57:45,498 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java. 2020-03-17 11:57:45,499 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java. 2020-03-17 11:57:45,499 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java. 2020-03-17 11:57:45,499 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java. 2020-03-17 11:57:45,499 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java. 2020-03-17 11:57:45,499 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java. 2020-03-17 11:57:45,500 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java. 2020-03-17 11:57:45,500 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java. 2020-03-17 11:57:45,500 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java. 2020-03-17 11:57:45,500 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java. 2020-03-17 11:57:45,501 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java. 2020-03-17 11:57:45,501 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java. 2020-03-17 11:57:45,501 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java. 2020-03-17 11:57:45,501 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java. 2020-03-17 11:57:45,502 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java. 2020-03-17 11:57:45,502 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java. 2020-03-17 11:57:45,502 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java. 2020-03-17 11:57:45,502 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java. 2020-03-17 11:57:45,503 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java. 2020-03-17 11:57:45,503 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java. 2020-03-17 11:57:45,503 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java. 2020-03-17 11:57:45,503 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java. 2020-03-17 11:57:45,504 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java. 2020-03-17 11:57:45,504 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java. 2020-03-17 11:57:45,504 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java. 2020-03-17 11:57:45,504 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java. 2020-03-17 11:57:45,505 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java. 2020-03-17 11:57:45,505 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java. 2020-03-17 11:57:45,505 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java. 2020-03-17 11:57:45,505 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java. 2020-03-17 11:57:45,505 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java. 2020-03-17 11:57:45,506 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java. 2020-03-17 11:57:45,506 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java. 2020-03-17 11:57:45,506 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java. 2020-03-17 11:57:45,507 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java. 2020-03-17 11:57:45,507 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java. 2020-03-17 11:57:45,507 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java. 2020-03-17 11:57:45,508 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java. 2020-03-17 11:57:45,508 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java. 2020-03-17 11:57:45,508 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java. 2020-03-17 11:57:45,508 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java. 2020-03-17 11:57:45,508 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java. 2020-03-17 11:57:45,509 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java. 2020-03-17 11:57:45,509 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java. 2020-03-17 11:57:45,509 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java. 2020-03-17 11:57:45,510 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java. 2020-03-17 11:57:45,513 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java. 2020-03-17 11:57:45,514 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java. 2020-03-17 11:57:45,516 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java. 2020-03-17 11:57:45,535 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-translate-v3beta1/samples/src')] were copied. Does the source contain files? 2020-03-17 11:57:45,536 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-translate-v3beta1/samples/resources')] were copied. Does the source contain files? 2020-03-17 11:57:45,536 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-translate-v3beta1/samples/src/**/*.manifest.yaml')] were copied. Does the source contain files? 2020-03-17 11:57:45,538 synthtool > Running java formatter on 45 files 2020-03-17 11:57:49,427 synthtool > Running java formatter on 1 files 2020-03-17 11:57:51,667 synthtool > Running java formatter on 57 files 2020-03-17 11:57:59,220 synthtool > Running java formatter on 0 files 2020-03-17 11:57:59,485 synthtool > Running generator for google/cloud/translate/artman_translate_v3.yaml. 2020-03-17 11:58:09,746 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java. 2020-03-17 11:58:09,748 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java. 2020-03-17 11:58:09,749 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java. 2020-03-17 11:58:09,749 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java. 2020-03-17 11:58:09,749 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java. 2020-03-17 11:58:09,750 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java. 2020-03-17 11:58:09,750 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java. 2020-03-17 11:58:09,750 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java. 2020-03-17 11:58:09,750 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java. 2020-03-17 11:58:09,751 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java. 2020-03-17 11:58:09,751 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java. 2020-03-17 11:58:09,751 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java. 2020-03-17 11:58:09,751 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java. 2020-03-17 11:58:09,752 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java. 2020-03-17 11:58:09,752 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java. 2020-03-17 11:58:09,752 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java. 2020-03-17 11:58:09,752 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java. 2020-03-17 11:58:09,752 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java. 2020-03-17 11:58:09,753 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java. 2020-03-17 11:58:09,753 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java. 2020-03-17 11:58:09,753 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java. 2020-03-17 11:58:09,753 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java. 2020-03-17 11:58:09,753 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java. 2020-03-17 11:58:09,754 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java. 2020-03-17 11:58:09,754 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java. 2020-03-17 11:58:09,754 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java. 2020-03-17 11:58:09,754 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java. 2020-03-17 11:58:09,755 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java. 2020-03-17 11:58:09,755 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java. 2020-03-17 11:58:09,755 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java. 2020-03-17 11:58:09,756 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java. 2020-03-17 11:58:09,756 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java. 2020-03-17 11:58:09,756 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java. 2020-03-17 11:58:09,757 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java. 2020-03-17 11:58:09,757 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java. 2020-03-17 11:58:09,757 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java. 2020-03-17 11:58:09,757 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java. 2020-03-17 11:58:09,758 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java. 2020-03-17 11:58:09,758 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java. 2020-03-17 11:58:09,758 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java. 2020-03-17 11:58:09,758 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java. 2020-03-17 11:58:09,759 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java. 2020-03-17 11:58:09,759 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java. 2020-03-17 11:58:09,759 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java. 2020-03-17 11:58:09,760 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java. 2020-03-17 11:58:09,760 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java. 2020-03-17 11:58:09,760 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java. 2020-03-17 11:58:09,761 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java. 2020-03-17 11:58:09,761 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java. 2020-03-17 11:58:09,761 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java. 2020-03-17 11:58:09,761 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java. 2020-03-17 11:58:09,762 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java. 2020-03-17 11:58:09,762 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java. 2020-03-17 11:58:09,762 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java. 2020-03-17 11:58:09,763 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java. 2020-03-17 11:58:09,763 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java. 2020-03-17 11:58:09,764 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java. 2020-03-17 11:58:09,765 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java. 2020-03-17 11:58:09,767 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java. 2020-03-17 11:58:09,789 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-translate-v3/samples/src')] were copied. Does the source contain files? 2020-03-17 11:58:09,789 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-translate-v3/samples/resources')] were copied. Does the source contain files? 2020-03-17 11:58:09,790 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-translate-v3/samples/src/**/*.manifest.yaml')] were copied. Does the source contain files? 2020-03-17 11:58:09,791 synthtool > Running java formatter on 45 files 2020-03-17 11:58:13,752 synthtool > Running java formatter on 1 files 2020-03-17 11:58:15,975 synthtool > Running java formatter on 57 files 2020-03-17 11:58:23,486 synthtool > Running java formatter on 0 files .github/ISSUE_TEMPLATE/bug_report.md .github/ISSUE_TEMPLATE/feature_request.md .github/ISSUE_TEMPLATE/support_request.md .github/PULL_REQUEST_TEMPLATE.md .github/release-please.yml .github/trusted-contribution.yml .kokoro/build.bat .kokoro/build.sh .kokoro/coerce_logs.sh .kokoro/common.cfg .kokoro/continuous/common.cfg .kokoro/continuous/dependencies.cfg .kokoro/continuous/integration.cfg .kokoro/continuous/java11.cfg .kokoro/continuous/java7.cfg .kokoro/continuous/java8-osx.cfg .kokoro/continuous/java8-win.cfg .kokoro/continuous/java8.cfg .kokoro/continuous/lint.cfg .kokoro/continuous/propose_release.cfg .kokoro/continuous/samples.cfg .kokoro/dependencies.sh .kokoro/linkage-monitor.sh .kokoro/nightly/common.cfg .kokoro/nightly/dependencies.cfg .kokoro/nightly/integration.cfg .kokoro/nightly/java11.cfg .kokoro/nightly/java7.cfg .kokoro/nightly/java8-osx.cfg .kokoro/nightly/java8-win.cfg .kokoro/nightly/java8.cfg .kokoro/nightly/lint.cfg .kokoro/nightly/samples.cfg .kokoro/presubmit/clirr.cfg .kokoro/presubmit/common.cfg .kokoro/presubmit/dependencies.cfg .kokoro/presubmit/integration.cfg .kokoro/presubmit/java11.cfg .kokoro/presubmit/java7.cfg .kokoro/presubmit/java8-osx.cfg .kokoro/presubmit/java8-win.cfg .kokoro/presubmit/java8.cfg .kokoro/presubmit/linkage-monitor.cfg .kokoro/presubmit/lint.cfg .kokoro/presubmit/samples.cfg .kokoro/release/bump_snapshot.cfg .kokoro/release/common.cfg .kokoro/release/common.sh .kokoro/release/drop.cfg .kokoro/release/drop.sh .kokoro/release/promote.cfg .kokoro/release/promote.sh .kokoro/release/publish_javadoc.cfg .kokoro/release/publish_javadoc.sh .kokoro/release/snapshot.cfg .kokoro/release/snapshot.sh .kokoro/release/stage.cfg .kokoro/release/stage.sh .kokoro/trampoline.sh CODE_OF_CONDUCT.md CONTRIBUTING.md LICENSE README.md codecov.yaml java.header license-checks.xml renovate.json samples/install-without-bom/pom.xml samples/pom.xml samples/snapshot/pom.xml samples/snippets/pom.xml 2020-03-17 11:58:24,022 synthtool > merge: CODE_OF_CONDUCT.md 2020-03-17 11:58:24,022 synthtool > merge: java.header 2020-03-17 11:58:24,023 synthtool > merge: license-checks.xml 2020-03-17 11:58:24,023 synthtool > merge: LICENSE 2020-03-17 11:58:24,023 synthtool > merge: README.md 2020-03-17 11:58:24,023 synthtool > merge: CONTRIBUTING.md 2020-03-17 11:58:24,024 synthtool > merge: renovate.json 2020-03-17 11:58:24,024 synthtool > merge: codecov.yaml 2020-03-17 11:58:24,025 synthtool > merge: .kokoro/build.sh 2020-03-17 11:58:24,025 synthtool > merge: .kokoro/coerce_logs.sh 2020-03-17 11:58:24,026 synthtool > merge: .kokoro/dependencies.sh 2020-03-17 11:58:24,026 synthtool > merge: .kokoro/linkage-monitor.sh 2020-03-17 11:58:24,026 synthtool > merge: .kokoro/trampoline.sh 2020-03-17 11:58:24,026 synthtool > merge: .kokoro/common.cfg 2020-03-17 11:58:24,027 synthtool > merge: .kokoro/build.bat 2020-03-17 11:58:24,027 synthtool > merge: .kokoro/release/promote.sh 2020-03-17 11:58:24,027 synthtool > merge: .kokoro/release/snapshot.sh 2020-03-17 11:58:24,028 synthtool > merge: .kokoro/release/stage.sh 2020-03-17 11:58:24,028 synthtool > merge: .kokoro/release/bump_snapshot.cfg 2020-03-17 11:58:24,028 synthtool > merge: .kokoro/release/drop.cfg 2020-03-17 11:58:24,028 synthtool > merge: .kokoro/release/snapshot.cfg 2020-03-17 11:58:24,029 synthtool > merge: .kokoro/release/promote.cfg 2020-03-17 11:58:24,029 synthtool > merge: .kokoro/release/publish_javadoc.sh 2020-03-17 11:58:24,029 synthtool > merge: .kokoro/release/common.cfg 2020-03-17 11:58:24,029 synthtool > merge: .kokoro/release/drop.sh 2020-03-17 11:58:24,030 synthtool > merge: .kokoro/release/publish_javadoc.cfg 2020-03-17 11:58:24,030 synthtool > merge: .kokoro/release/stage.cfg 2020-03-17 11:58:24,030 synthtool > merge: .kokoro/release/common.sh 2020-03-17 11:58:24,031 synthtool > merge: .kokoro/nightly/lint.cfg 2020-03-17 11:58:24,031 synthtool > merge: .kokoro/nightly/java11.cfg 2020-03-17 11:58:24,031 synthtool > merge: .kokoro/nightly/samples.cfg 2020-03-17 11:58:24,031 synthtool > merge: .kokoro/nightly/java8.cfg 2020-03-17 11:58:24,032 synthtool > merge: .kokoro/nightly/java7.cfg 2020-03-17 11:58:24,032 synthtool > merge: .kokoro/nightly/common.cfg 2020-03-17 11:58:24,032 synthtool > merge: .kokoro/nightly/dependencies.cfg 2020-03-17 11:58:24,032 synthtool > merge: .kokoro/nightly/java8-osx.cfg 2020-03-17 11:58:24,033 synthtool > merge: .kokoro/nightly/java8-win.cfg 2020-03-17 11:58:24,033 synthtool > merge: .kokoro/nightly/integration.cfg 2020-03-17 11:58:24,033 synthtool > merge: .kokoro/presubmit/lint.cfg 2020-03-17 11:58:24,034 synthtool > merge: .kokoro/presubmit/clirr.cfg 2020-03-17 11:58:24,034 synthtool > merge: .kokoro/presubmit/java11.cfg 2020-03-17 11:58:24,034 synthtool > merge: .kokoro/presubmit/samples.cfg 2020-03-17 11:58:24,034 synthtool > merge: .kokoro/presubmit/linkage-monitor.cfg 2020-03-17 11:58:24,035 synthtool > merge: .kokoro/presubmit/java8.cfg 2020-03-17 11:58:24,035 synthtool > merge: .kokoro/presubmit/java7.cfg 2020-03-17 11:58:24,035 synthtool > merge: .kokoro/presubmit/common.cfg 2020-03-17 11:58:24,035 synthtool > merge: .kokoro/presubmit/dependencies.cfg 2020-03-17 11:58:24,036 synthtool > merge: .kokoro/presubmit/java8-osx.cfg 2020-03-17 11:58:24,036 synthtool > merge: .kokoro/presubmit/java8-win.cfg 2020-03-17 11:58:24,036 synthtool > merge: .kokoro/presubmit/integration.cfg 2020-03-17 11:58:24,037 synthtool > merge: .kokoro/continuous/lint.cfg 2020-03-17 11:58:24,037 synthtool > merge: .kokoro/continuous/java11.cfg 2020-03-17 11:58:24,037 synthtool > merge: .kokoro/continuous/samples.cfg 2020-03-17 11:58:24,037 synthtool > merge: .kokoro/continuous/java8.cfg 2020-03-17 11:58:24,038 synthtool > merge: .kokoro/continuous/java7.cfg 2020-03-17 11:58:24,038 synthtool > merge: .kokoro/continuous/propose_release.cfg 2020-03-17 11:58:24,038 synthtool > merge: .kokoro/continuous/common.cfg 2020-03-17 11:58:24,038 synthtool > merge: .kokoro/continuous/dependencies.cfg 2020-03-17 11:58:24,039 synthtool > merge: .kokoro/continuous/java8-osx.cfg 2020-03-17 11:58:24,039 synthtool > merge: .kokoro/continuous/java8-win.cfg 2020-03-17 11:58:24,039 synthtool > merge: .kokoro/continuous/integration.cfg 2020-03-17 11:58:24,040 synthtool > merge: .github/trusted-contribution.yml 2020-03-17 11:58:24,040 synthtool > merge: .github/release-please.yml 2020-03-17 11:58:24,040 synthtool > merge: .github/PULL_REQUEST_TEMPLATE.md 2020-03-17 11:58:24,040 synthtool > merge: .github/ISSUE_TEMPLATE/feature_request.md 2020-03-17 11:58:24,041 synthtool > merge: .github/ISSUE_TEMPLATE/bug_report.md 2020-03-17 11:58:24,041 synthtool > merge: .github/ISSUE_TEMPLATE/support_request.md 2020-03-17 11:58:24,046 synthtool > Wrote metadata to synth.metadata. ```
--- translate/snippets/pom.xml | 60 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 translate/snippets/pom.xml diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml new file mode 100644 index 00000000000..0d5a07df360 --- /dev/null +++ b/translate/snippets/pom.xml @@ -0,0 +1,60 @@ + + + 4.0.0 + com.google.cloud + translation-snippets + jar + Google Cloud Translation Snippets + https://github.com/googleapis/java-translate + + + + com.google.cloud.samples + shared-configuration + 1.0.12 + + + + 1.8 + 1.8 + UTF-8 + + + + + + + + com.google.cloud + libraries-bom + 4.2.0 + pom + import + + + + + + + com.google.cloud + google-cloud-translate + + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + From 9e5917c2bacc514ab8ed95c6eb9fdeb4678009de Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 23 Mar 2020 18:23:47 +0100 Subject: [PATCH 180/356] chore(deps): update dependency com.google.cloud:libraries-bom to v4.3.0 (#119) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.2.0` -> `4.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 0d5a07df360..ec4607db63c 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.2.0 + 4.3.0 pom import From aeb621e998cb6ba82080231438d900bd79c49b7c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 26 Mar 2020 16:56:23 +0100 Subject: [PATCH 181/356] deps: update dependency com.google.cloud.samples:shared-configuration to v1.0.13 (#123) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index ec4607db63c..07d6f025071 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.12 + 1.0.13 From bce34f16733f25911673262f0a715d401a85b2fe Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 30 Mar 2020 19:57:47 +0200 Subject: [PATCH 182/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.14 (#127) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.13` -> `1.0.14` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.14`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.14) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.13...v1.0.14) - Update CheckStyle to 8.31 - Add SpotBugs
--- ### 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 07d6f025071..91367f3e68a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.13 + 1.0.14 From 8abf025c2b1307336952e0a9f7f819e5a407c955 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Apr 2020 21:35:07 +0200 Subject: [PATCH 183/356] chore(deps): update dependency com.google.cloud:libraries-bom to v4.4.0 (#128) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.3.0` -> `4.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 91367f3e68a..f14615ab3d7 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.3.0 + 4.4.0 pom import From 876165c1d825f8a5035fadc29816d66d31764e04 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Apr 2020 17:50:06 +0200 Subject: [PATCH 184/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.15 (#130) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.14` -> `1.0.15` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.15`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.15) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.14...v1.0.15) - Move some stuff around (in prep for a change to release process) pom.xml's - Add an exclude filter for SpotBugs. (disable the Java 11 surprise) - Don't fail on SpotBugs issues for now - add PMD reporting - Don't fail on PMD issues for now.
--- ### 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index f14615ab3d7..1693a37349d 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.14 + 1.0.15 From 72b655d08c0e292389056ea1679fafc98c1ba4ac Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Apr 2020 20:02:57 +0200 Subject: [PATCH 185/356] chore(deps): update dependency com.google.cloud:libraries-bom to v4.4.1 (#131) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `4.4.0` -> `4.4.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 1693a37349d..3d915c33f67 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.4.0 + 4.4.1 pom import From d67ea1a158988c0a3f939f01d29ac791c62762f9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Apr 2020 19:33:11 +0200 Subject: [PATCH 186/356] chore(deps): update dependency com.google.cloud:libraries-bom to v5 (#143) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `4.4.1` -> `5.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 3d915c33f67..324c4bfde7a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.4.1 + 5.0.0 pom import From 81a34d0b8ec1f7d0861768e4f1221259a1a6aa06 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Apr 2020 20:28:58 +0200 Subject: [PATCH 187/356] chore(deps): update dependency com.google.cloud:libraries-bom to v5.1.0 (#145) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.0.0` -> `5.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 324c4bfde7a..d9078e2df90 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.0.0 + 5.1.0 pom import From 563889e2d4f976af51d0166cb2903fae30bb69f5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 16 Apr 2020 18:48:11 +0200 Subject: [PATCH 188/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.16 (#162) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.15` -> `1.0.16` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.16`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.16) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.15...v1.0.16) Add a few SpotBugs exclusions: - `RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE` - existing - codegen bug - `UPM_UNCALLED_PRIVATE_METHOD` - probably SpotBug issue - `NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE` - likely SpotBug issue - `CLI_CONSTANT_LIST_INDEX` - style issue particular to our samples - `OBL_UNSATISFIED_OBLIGATION` - issue for SQL clients
--- ### 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index d9078e2df90..5a52f48a7df 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.15 + 1.0.16 From d0081ea53dd498ff0a9431540d0f7a951d3da7cd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 17 Apr 2020 08:49:40 +0200 Subject: [PATCH 189/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.17 (#168) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.16` -> `1.0.17` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.17`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.17) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.16...v1.0.17) - require -P lint Lets not burden customers with our development rules. - Move Checkstyle, ErrorProne, PMD, and SpotBugs to only run w/ -P lint - Update the Readme - spotbugs-annotations 4.0.2
--- ### 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 5a52f48a7df..908f5e5eacb 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.16 + 1.0.17 From f96c76e5205ab41c33bfd5561ab7a8ba1dce6b36 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 23 Apr 2020 22:36:03 +0200 Subject: [PATCH 190/356] chore(deps): update dependency com.google.cloud:libraries-bom to v5.2.0 (#173) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.1.0` -> `5.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 908f5e5eacb..594aaa4f803 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.1.0 + 5.2.0 pom import From 9936ceb4b846a1344aebb9c5eebaf5c4429c8754 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 29 Apr 2020 01:08:21 +0200 Subject: [PATCH 191/356] chore(deps): update dependency com.google.cloud:libraries-bom to v5.3.0 (#179) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.2.0` -> `5.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 594aaa4f803..759317b5523 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.2.0 + 5.3.0 pom import From e54884926e00d4fabbbcf900c821256ef6a9290d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 May 2020 06:56:12 +0200 Subject: [PATCH 192/356] chore(deps): update dependency com.google.cloud:libraries-bom to v5.4.0 (#187) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.3.0` -> `5.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 759317b5523..5ebc278b707 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.3.0 + 5.4.0 pom import From c78c6941e6055106d9f8b18ce8dcabb36b212a34 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 29 May 2020 20:35:02 +0200 Subject: [PATCH 193/356] chore(deps): update dependency com.google.cloud:libraries-bom to v5.5.0 (#197) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.4.0` -> `5.5.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 5ebc278b707..2df898d638d 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.4.0 + 5.5.0 pom import From e81446ac34f227b6871920f41ed75a0157613834 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Jun 2020 00:46:26 +0200 Subject: [PATCH 194/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.18 (#208) This PR contains the following updates: | Package | Update | Change | |---|---|---| | com.google.cloud.samples:shared-configuration | patch | `1.0.17` -> `1.0.18` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 2df898d638d..639162df677 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.17 + 1.0.18 From 6d2d56f6d928ce205175b73a30b384deb4d4d451 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Jun 2020 00:52:17 +0200 Subject: [PATCH 195/356] chore(deps): update dependency com.google.cloud:libraries-bom to v5.7.0 (#207) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.5.0` -> `5.7.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 639162df677..bfd1fa8fc2b 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.5.0 + 5.7.0 pom import From 206f07c8d09e28c6f9d45cd5953123b21dcdeee2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Jun 2020 01:28:13 +0200 Subject: [PATCH 196/356] chore(deps): update dependency com.google.cloud:libraries-bom to v6 (#215) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `5.7.0` -> `6.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index bfd1fa8fc2b..d77b020e5be 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.7.0 + 6.0.0 pom import From 7d8ad5c6681b0e28a3c1d2f6e2630423cdb99981 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Jun 2020 19:43:12 +0200 Subject: [PATCH 197/356] chore(deps): update dependency com.google.cloud:libraries-bom to v7 (#218) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `6.0.0` -> `7.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index d77b020e5be..e73dfcd58ed 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 6.0.0 + 7.0.0 pom import From 5ffb5816064a42641ad3a678dfabc18d3d2e13c2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 23 Jun 2020 00:43:37 +0200 Subject: [PATCH 198/356] chore(deps): update dependency com.google.cloud:libraries-bom to v7.0.1 (#226) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `7.0.0` -> `7.0.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index e73dfcd58ed..44d17c894ae 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 7.0.0 + 7.0.1 pom import From 96814654cfea3dacedb89a1131f87f88ab7d88d5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 26 Jun 2020 07:24:07 +0200 Subject: [PATCH 199/356] chore(deps): update dependency com.google.cloud:libraries-bom to v8 (#232) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `7.0.1` -> `8.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 44d17c894ae..59fafea1835 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 7.0.1 + 8.0.0 pom import From ee70116cbcbb65dddb76f996b20ff99520eea2f3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 16 Jul 2020 21:32:19 +0200 Subject: [PATCH 200/356] chore(deps): update dependency com.google.cloud:libraries-bom to v8.1.0 (#247) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `8.0.0` -> `8.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 59fafea1835..5016563af51 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 8.0.0 + 8.1.0 pom import From c77446c5cb13f51d98dba8bb3bac2c8e1eec9e8c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 14 Aug 2020 04:28:04 +0200 Subject: [PATCH 201/356] chore(deps): update dependency com.google.cloud:libraries-bom to v9 (#259) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `8.1.0` -> `9.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 5016563af51..067025014c4 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 8.1.0 + 9.0.0 pom import From ecc5904d0cf6ff223f8b4e06097db5694e1276cd Mon Sep 17 00:00:00 2001 From: Jason Dobry Date: Thu, 6 Oct 2016 16:44:28 -0700 Subject: [PATCH 202/356] samples: Add Translate API quickstart sample. --- .../example/translate/QuickstartSample.java | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 translate/snippets/src/main/java/com/example/translate/QuickstartSample.java diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java new file mode 100644 index 00000000000..4baf2633968 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -0,0 +1,42 @@ +/* + Copyright 2016, Google, Inc. + + 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. +*/ + +package com.example.translate; + +// [START translate_quickstart] +// Imports the Google Cloud client library +import com.google.cloud.translate.Translate; +import com.google.cloud.translate.Translate.TranslateOption; +import com.google.cloud.translate.TranslateOptions; +import com.google.cloud.translate.Translation; + +public class QuickstartSample { + public static void main(String... args) throws Exception { + // Instantiates a client + Translate translate = TranslateOptions.builder().apiKey("YOUR_API_KEY").build().service(); + // The text to translate + String text = "Hello, world!"; + // Translates some text into Russian + Translation translation = translate.translate( + text, + TranslateOption.sourceLanguage("en"), + TranslateOption.targetLanguage("ru") + ); + System.out.printf("Text: %s%n", text); + System.out.printf("Translation: %s%n", translation.translatedText()); + } +} +// [END translate_quickstart] From d312bee979d3ea2d4f8d1814a2cff00d14553111 Mon Sep 17 00:00:00 2001 From: Jason Dobry Date: Fri, 7 Oct 2016 10:23:52 -0700 Subject: [PATCH 203/356] samples: Add Storage quickstart sample. --- .../src/main/java/com/example/translate/QuickstartSample.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java index 4baf2633968..1baf95c74d1 100644 --- a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -27,14 +27,17 @@ public class QuickstartSample { public static void main(String... args) throws Exception { // Instantiates a client Translate translate = TranslateOptions.builder().apiKey("YOUR_API_KEY").build().service(); + // The text to translate String text = "Hello, world!"; + // Translates some text into Russian Translation translation = translate.translate( text, TranslateOption.sourceLanguage("en"), TranslateOption.targetLanguage("ru") ); + System.out.printf("Text: %s%n", text); System.out.printf("Translation: %s%n", translation.translatedText()); } From aa0066afd1535f3739df8209b68dc506f46a4bc1 Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Tue, 25 Oct 2016 16:19:28 -0700 Subject: [PATCH 204/356] samples: Add quickstarts to root module. Fixes checkstyle errors in samples. --- .../java/com/example/translate/QuickstartSample.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java index 1baf95c74d1..f2efd757507 100644 --- a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -32,11 +32,12 @@ public static void main(String... args) throws Exception { String text = "Hello, world!"; // Translates some text into Russian - Translation translation = translate.translate( - text, - TranslateOption.sourceLanguage("en"), - TranslateOption.targetLanguage("ru") - ); + Translation translation = + translate.translate( + text, + TranslateOption.sourceLanguage("en"), + TranslateOption.targetLanguage("ru")); + System.out.printf("Text: %s%n", text); System.out.printf("Translation: %s%n", translation.translatedText()); From fbc23d4371a0de6e5f5e86e0d20a48be96bf099b Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Wed, 26 Oct 2016 10:37:55 -0700 Subject: [PATCH 205/356] samples: Add system tests to Translate sample. --- .../example/translate/QuickstartSample.java | 6 +- .../example/translate/QuickstartSampleIT.java | 65 +++++++++++++++++++ 2 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java index f2efd757507..75523d0dcaf 100644 --- a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -26,7 +26,11 @@ public class QuickstartSample { public static void main(String... args) throws Exception { // Instantiates a client - Translate translate = TranslateOptions.builder().apiKey("YOUR_API_KEY").build().service(); + Translate translate = + TranslateOptions.builder() + .apiKey(args[0]) // .apiKey("YOUR_API_KEY") + .build() + .service(); // The text to translate String text = "Hello, world!"; diff --git a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java new file mode 100644 index 00000000000..c91651b2a74 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java @@ -0,0 +1,65 @@ +/* + Copyright 2016, Google, Inc. + + 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. +*/ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; + +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +import java.io.ByteArrayOutputStream; +import java.io.PrintStream; + +/** + * Tests for quickstart sample. + */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class QuickstartSampleIT { + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + System.setOut(null); + } + + @Test + public void testQuickstart() throws Exception { + // Arrange + String apiKey = System.getenv("GOOGLE_API_KEY"); + + // Act + QuickstartSample.main(apiKey); + + // Assert + String got = bout.toString(); + assertThat(got).contains("Text: Hello, world!"); + assertThat(got).contains("Translation: "); + } +} +// [END datastore_quickstart] From 407d8505a741c74c297dc53ed01d087d576567c6 Mon Sep 17 00:00:00 2001 From: Jason Dobry Date: Tue, 29 Nov 2016 22:20:48 -0600 Subject: [PATCH 206/356] samples: Translate API no longer requires an API key. (#425) --- .../main/java/com/example/translate/QuickstartSample.java | 6 +----- .../test/java/com/example/translate/QuickstartSampleIT.java | 5 +---- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java index 75523d0dcaf..8339650d077 100644 --- a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -26,11 +26,7 @@ public class QuickstartSample { public static void main(String... args) throws Exception { // Instantiates a client - Translate translate = - TranslateOptions.builder() - .apiKey(args[0]) // .apiKey("YOUR_API_KEY") - .build() - .service(); + Translate translate = TranslateOptions.getDefaultInstance().getService(); // The text to translate String text = "Hello, world!"; diff --git a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java index c91651b2a74..e27b59cba97 100644 --- a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java +++ b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java @@ -50,11 +50,8 @@ public void tearDown() { @Test public void testQuickstart() throws Exception { - // Arrange - String apiKey = System.getenv("GOOGLE_API_KEY"); - // Act - QuickstartSample.main(apiKey); + QuickstartSample.main(); // Assert String got = bout.toString(); From 3df6b4a3c3534d490af1fbf873350adb772805ff Mon Sep 17 00:00:00 2001 From: Jerjou Date: Tue, 29 Nov 2016 20:43:49 -0800 Subject: [PATCH 207/356] samples: deprecated methods -> undeprecated versions. (#428) --- .../src/main/java/com/example/translate/QuickstartSample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java index 8339650d077..ce9c01d4399 100644 --- a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -40,7 +40,7 @@ public static void main(String... args) throws Exception { System.out.printf("Text: %s%n", text); - System.out.printf("Translation: %s%n", translation.translatedText()); + System.out.printf("Translation: %s%n", translation.getTranslatedText()); } } // [END translate_quickstart] From 749cba386b25505f3f756104c8c9695471f390b0 Mon Sep 17 00:00:00 2001 From: Jason Dobry Date: Wed, 7 Dec 2016 20:32:29 -0800 Subject: [PATCH 208/356] samples: Add NL quickstart sample. Fix some other quickstarts. (#438) --- .../src/test/java/com/example/translate/QuickstartSampleIT.java | 1 - 1 file changed, 1 deletion(-) diff --git a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java index e27b59cba97..50460defa29 100644 --- a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java +++ b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java @@ -59,4 +59,3 @@ public void testQuickstart() throws Exception { assertThat(got).contains("Translation: "); } } -// [END datastore_quickstart] From a4b66d5ea652a45295300066ab76d404ce28a0fa Mon Sep 17 00:00:00 2001 From: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com> Date: Thu, 18 Jan 2018 08:18:49 -0800 Subject: [PATCH 209/356] samples: Updates for storage, translate, unittests, and video. (#994) * Updated storage/cloud-client. * Updated storage/json-api * Updated storage/storage-transfer. * Updated translate/ * Updated unittests/ * Updated video/ --- .../example/translate/QuickstartSample.java | 28 ++++++++-------- .../example/translate/QuickstartSampleIT.java | 33 +++++++++---------- 2 files changed, 30 insertions(+), 31 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java index ce9c01d4399..bf3aad063e1 100644 --- a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -1,18 +1,18 @@ /* - Copyright 2016, Google, Inc. - - 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. -*/ + * Copyright 2016 Google Inc. + * + * 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. + */ package com.example.translate; diff --git a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java index 50460defa29..78480b78fc3 100644 --- a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java +++ b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java @@ -1,32 +1,31 @@ /* - Copyright 2016, Google, Inc. - - 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. -*/ + * Copyright 2016 Google Inc. + * + * 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. + */ package com.example.translate; import static com.google.common.truth.Truth.assertThat; +import java.io.ByteArrayOutputStream; +import java.io.PrintStream; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -import java.io.ByteArrayOutputStream; -import java.io.PrintStream; - /** * Tests for quickstart sample. */ From 8cfdc9b5ca2084699fdf5a6836f1db517033033c Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Tue, 14 Jan 2020 10:49:20 -0700 Subject: [PATCH 210/356] samples: translate: add v3 language samples (#1937) Co-authored-by: Les Vogel --- .../com/example/translate/DetectLanguage.java | 71 ++++++++++++++++++ .../translate/GetSupportedLanguages.java | 59 +++++++++++++++ .../GetSupportedLanguagesForTarget.java | 66 +++++++++++++++++ .../translate/DetectLanguageTests.java | 71 ++++++++++++++++++ .../GetSupportedLanguagesForTargetTests.java | 72 +++++++++++++++++++ .../translate/GetSupportedLanguagesTests.java | 71 ++++++++++++++++++ 6 files changed, 410 insertions(+) create mode 100644 translate/snippets/src/main/java/com/example/translate/DetectLanguage.java create mode 100644 translate/snippets/src/main/java/com/example/translate/GetSupportedLanguages.java create mode 100644 translate/snippets/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java create mode 100644 translate/snippets/src/test/java/com/example/translate/DetectLanguageTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesTests.java diff --git a/translate/snippets/src/main/java/com/example/translate/DetectLanguage.java b/translate/snippets/src/main/java/com/example/translate/DetectLanguage.java new file mode 100644 index 00000000000..945dad8f07e --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/DetectLanguage.java @@ -0,0 +1,71 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_detect_language] +import com.google.cloud.translate.v3.DetectLanguageRequest; +import com.google.cloud.translate.v3.DetectLanguageResponse; +import com.google.cloud.translate.v3.DetectedLanguage; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class DetectLanguage { + + public static void detectLanguage() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + String text = "your-text"; + + detectLanguage(projectId, text); + } + + // Detecting the language of a text string + public static void detectLanguage(String projectId, String text) throws IOException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + LocationName parent = LocationName.of(projectId, "global"); + + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + DetectLanguageRequest request = + DetectLanguageRequest.newBuilder() + .setParent(parent.toString()) + .setMimeType("text/plain") + .setContent(text) + .build(); + + DetectLanguageResponse response = client.detectLanguage(request); + + // Display list of detected languages sorted by detection confidence. + // The most probable language is first. + for (DetectedLanguage language : response.getLanguagesList()) { + // The language detected + System.out.printf("Language code: %s\n", language.getLanguageCode()); + // Confidence of detection result for this language + System.out.printf("Confidence: %s\n", language.getConfidence()); + } + } + } +} +// [END translate_v3_detect_language] diff --git a/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguages.java b/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguages.java new file mode 100644 index 00000000000..32963c406bf --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguages.java @@ -0,0 +1,59 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_get_supported_languages] +import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.SupportedLanguage; +import com.google.cloud.translate.v3.SupportedLanguages; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class GetSupportedLanguages { + + public static void getSupportedLanguages() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + getSupportedLanguages(projectId); + } + + // Getting a list of supported language codes + public static void getSupportedLanguages(String projectId) throws IOException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + LocationName parent = LocationName.of(projectId, "global"); + GetSupportedLanguagesRequest request = + GetSupportedLanguagesRequest.newBuilder().setParent(parent.toString()).build(); + + SupportedLanguages response = client.getSupportedLanguages(request); + + // List language codes of supported languages + for (SupportedLanguage language : response.getLanguagesList()) { + System.out.printf("Language Code: %s\n", language.getLanguageCode()); + } + } + } +} +// [END translate_v3_get_supported_languages] diff --git a/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java b/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java new file mode 100644 index 00000000000..1001ae7a551 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java @@ -0,0 +1,66 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_get_supported_languages_for_target] +import com.google.cloud.translate.v3.GetSupportedLanguagesRequest; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.SupportedLanguage; +import com.google.cloud.translate.v3.SupportedLanguages; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class GetSupportedLanguagesForTarget { + + public static void getSupportedLanguagesForTarget() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String languageCode = "your-language-code"; + getSupportedLanguagesForTarget(projectId, languageCode); + } + + // Listing supported languages with target language name + public static void getSupportedLanguagesForTarget(String projectId, String languageCode) + throws IOException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + LocationName parent = LocationName.of(projectId, "global"); + GetSupportedLanguagesRequest request = + GetSupportedLanguagesRequest.newBuilder() + .setParent(parent.toString()) + .setDisplayLanguageCode(languageCode) + .build(); + + SupportedLanguages response = client.getSupportedLanguages(request); + + // List language codes of supported languages + for (SupportedLanguage language : response.getLanguagesList()) { + System.out.printf("Language Code: %s\n", language.getLanguageCode()); + System.out.printf("Display Name: %s\n", language.getDisplayName()); + } + } + } +} +// [END translate_v3_get_supported_languages_for_target] diff --git a/translate/snippets/src/test/java/com/example/translate/DetectLanguageTests.java b/translate/snippets/src/test/java/com/example/translate/DetectLanguageTests.java new file mode 100644 index 00000000000..c93b7a11f57 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/DetectLanguageTests.java @@ -0,0 +1,71 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Detect Languages sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class DetectLanguageTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + System.setOut(null); + } + + @Test + public void testDetectLanguage() throws IOException { + DetectLanguage.detectLanguage(PROJECT_ID, "Hæ sæta"); + String got = bout.toString(); + assertThat(got).contains("is"); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java b/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java new file mode 100644 index 00000000000..1381c0af96c --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java @@ -0,0 +1,72 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Get Supported Languages For Target sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class GetSupportedLanguagesForTargetTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + System.setOut(null); + } + + @Test + public void testGetSupportedLanguages() throws IOException { + GetSupportedLanguagesForTarget.getSupportedLanguagesForTarget(PROJECT_ID, "is"); + String got = bout.toString(); + assertThat(got).contains("Language Code: sq"); + assertThat(got).contains("Display Name: albanska"); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesTests.java b/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesTests.java new file mode 100644 index 00000000000..da63a936967 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesTests.java @@ -0,0 +1,71 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Get Supported Languages sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class GetSupportedLanguagesTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + System.setOut(null); + } + + @Test + public void testGetSupportedLanguages() throws IOException { + GetSupportedLanguages.getSupportedLanguages(PROJECT_ID); + String got = bout.toString(); + assertThat(got).contains("zh-CN"); + } +} From 848ded701955c080f84b42a0914d4391f771fcac Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Tue, 14 Jan 2020 10:57:59 -0700 Subject: [PATCH 211/356] samples: translate: add v3 glossary samples (#1936) * translate: Add v3 glossary samples * add the samples * Clarify comment and add link for more info * Provide more descriptive comments --- .../com/example/translate/CreateGlossary.java | 97 ++++++++++++++++ .../com/example/translate/DeleteGlossary.java | 63 +++++++++++ .../com/example/translate/GetGlossary.java | 57 ++++++++++ .../com/example/translate/ListGlossaries.java | 57 ++++++++++ .../translate/CreateGlossaryTests.java | 89 +++++++++++++++ .../translate/DeleteGlossaryTests.java | 91 +++++++++++++++ .../example/translate/GetGlossaryTests.java | 104 +++++++++++++++++ .../translate/ListGlossariesTests.java | 105 ++++++++++++++++++ 8 files changed, 663 insertions(+) create mode 100644 translate/snippets/src/main/java/com/example/translate/CreateGlossary.java create mode 100644 translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java create mode 100644 translate/snippets/src/main/java/com/example/translate/GetGlossary.java create mode 100644 translate/snippets/src/main/java/com/example/translate/ListGlossaries.java create mode 100644 translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java diff --git a/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java b/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java new file mode 100644 index 00000000000..3dc9d8ff932 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java @@ -0,0 +1,97 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_create_glossary] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.GlossaryInputConfig; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; + +public class CreateGlossary { + + public static void createGlossary() throws InterruptedException, ExecutionException, IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + String glossaryId = "your-glossary-display-name"; + List languageCodes = new ArrayList<>(); + languageCodes.add("your-language-code"); + String inputUri = "gs://your-gcs-bucket/path/to/input/file.txt"; + createGlossary(projectId, glossaryId, languageCodes, inputUri); + } + + // Create a equivalent term sets glossary + // https://cloud.google.com/translate/docs/advanced/glossary#format-glossary + public static void createGlossary( + String projectId, String glossaryId, List languageCodes, String inputUri) + throws IOException, ExecutionException, InterruptedException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + String location = "us-central1"; + LocationName parent = LocationName.of(projectId, location); + GlossaryName glossaryName = GlossaryName.of(projectId, location, glossaryId); + + // Supported Languages: https://cloud.google.com/translate/docs/languages + Glossary.LanguageCodesSet languageCodesSet = + Glossary.LanguageCodesSet.newBuilder().addAllLanguageCodes(languageCodes).build(); + + GcsSource gcsSource = GcsSource.newBuilder().setInputUri(inputUri).build(); + GlossaryInputConfig inputConfig = + GlossaryInputConfig.newBuilder().setGcsSource(gcsSource).build(); + + Glossary glossary = + Glossary.newBuilder() + .setName(glossaryName.toString()) + .setLanguageCodesSet(languageCodesSet) + .setInputConfig(inputConfig) + .build(); + + CreateGlossaryRequest request = + CreateGlossaryRequest.newBuilder() + .setParent(parent.toString()) + .setGlossary(glossary) + .build(); + + OperationFuture future = + client.createGlossaryAsync(request); + + System.out.println("Waiting for operation to complete..."); + Glossary response = future.get(); + System.out.println("Created Glossary."); + System.out.printf("Glossary name: %s\n", response.getName()); + System.out.printf("Entry count: %s\n", response.getEntryCount()); + System.out.printf("Input URI: %s\n", response.getInputConfig().getGcsSource().getInputUri()); + } + } +} +// [END translate_v3_create_glossary] diff --git a/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java b/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java new file mode 100644 index 00000000000..aaed8d7c4d5 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java @@ -0,0 +1,63 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_delete_glossary] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; +import java.util.concurrent.ExecutionException; + +public class DeleteGlossary { + + public static void deleteGlossary() throws InterruptedException, ExecutionException, IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + String glossaryId = "your-glossary-display-name"; + deleteGlossary(projectId, glossaryId); + } + + // Delete a specific glossary based on the glossary ID + public static void deleteGlossary(String projectId, String glossaryId) + throws InterruptedException, ExecutionException, IOException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + GlossaryName glossaryName = GlossaryName.of(projectId, "us-central1", glossaryId); + DeleteGlossaryRequest request = + DeleteGlossaryRequest.newBuilder().setName(glossaryName.toString()).build(); + + OperationFuture future = + client.deleteGlossaryAsync(request); + + System.out.println("Waiting for operation to complete..."); + DeleteGlossaryResponse response = future.get(); + System.out.format("Deleted Glossary: %s\n", response.getName()); + } + } +} +// [END translate_v3_delete_glossary] diff --git a/translate/snippets/src/main/java/com/example/translate/GetGlossary.java b/translate/snippets/src/main/java/com/example/translate/GetGlossary.java new file mode 100644 index 00000000000..e400f503ae0 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/GetGlossary.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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_get_glossary] +import com.google.cloud.translate.v3.GetGlossaryRequest; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class GetGlossary { + + public static void getGlossary() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + String glossaryId = "your-glossary-display-name"; + getGlossary(projectId, glossaryId); + } + + // Get a particular glossary based on the glossary ID + public static void getGlossary(String projectId, String glossaryId) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + GlossaryName glossaryName = GlossaryName.of(projectId, "us-central1", glossaryId); + GetGlossaryRequest request = + GetGlossaryRequest.newBuilder().setName(glossaryName.toString()).build(); + + Glossary response = client.getGlossary(request); + + System.out.printf("Glossary name: %s\n", response.getName()); + System.out.printf("Entry count: %s\n", response.getEntryCount()); + System.out.printf("Input URI: %s\n", response.getInputConfig().getGcsSource().getInputUri()); + } + } +} +// [END translate_v3_get_glossary] diff --git a/translate/snippets/src/main/java/com/example/translate/ListGlossaries.java b/translate/snippets/src/main/java/com/example/translate/ListGlossaries.java new file mode 100644 index 00000000000..055c2d14058 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/ListGlossaries.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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_list_glossary] +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.ListGlossariesRequest; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class ListGlossaries { + + public static void listGlossaries() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + listGlossaries(projectId); + } + + // List all the glossaries in a specified location + public static void listGlossaries(String projectId) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + LocationName parent = LocationName.of(projectId, "us-central1"); + ListGlossariesRequest request = + ListGlossariesRequest.newBuilder().setParent(parent.toString()).build(); + + for (Glossary responseItem : client.listGlossaries(request).iterateAll()) { + System.out.printf("Glossary name: %s\n", responseItem.getName()); + System.out.printf("Entry count: %s\n", responseItem.getEntryCount()); + System.out.printf( + "Input URI: %s\n", responseItem.getInputConfig().getGcsSource().getInputUri()); + } + } + } +} +// [END translate_v3_list_glossary] diff --git a/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java new file mode 100644 index 00000000000..b3ccb01395e --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java @@ -0,0 +1,89 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class CreateGlossaryTests { + + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String GLOSSARY_INPUT_URI = + "gs://cloud-samples-data/translation/glossary_ja.csv"; + private static final String GLOSSARY_ID = + String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws InterruptedException, ExecutionException, IOException { + // Delete the created glossary + DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + + System.setOut(null); + } + + @Test + public void testCreateGlossary() throws InterruptedException, ExecutionException, IOException { + List languageCodes = new ArrayList<>(); + languageCodes.add("en"); + languageCodes.add("ja"); + CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); + + String got = bout.toString(); + assertThat(got).contains("Created"); + assertThat(got).contains(GLOSSARY_ID); + assertThat(got).contains(GLOSSARY_INPUT_URI); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java new file mode 100644 index 00000000000..8fe5fd660c4 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java @@ -0,0 +1,91 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Create and Delete Glossary samples. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class DeleteGlossaryTests { + + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String GLOSSARY_INPUT_URI = + "gs://cloud-samples-data/translation/glossary_ja.csv"; + private static final String GLOSSARY_ID = + String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws InterruptedException, ExecutionException, IOException { + // Create a glossary to be deleted + PrintStream temp = new PrintStream(new ByteArrayOutputStream()); + System.setOut(temp); + List languageCodes = new ArrayList<>(); + languageCodes.add("en"); + languageCodes.add("ja"); + CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + System.setOut(null); + } + + @Test + public void testDeleteGlossary() + throws InterruptedException, ExecutionException, IOException { + DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + String got = bout.toString(); + assertThat(got).contains("us-central1"); + assertThat(got).contains(GLOSSARY_ID); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java new file mode 100644 index 00000000000..d082c4fddb0 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java @@ -0,0 +1,104 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.GlossaryInputConfig; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Get Glossary sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class GetGlossaryTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String GLOSSARY_INPUT_URI = + "gs://cloud-samples-data/translation/glossary_ja.csv"; + private static final String GLOSSARY_ID = + String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws InterruptedException, ExecutionException, IOException { + // Create a glossary that can be used in the test + PrintStream temp = new PrintStream(new ByteArrayOutputStream()); + System.setOut(temp); + List languageCodes = new ArrayList<>(); + languageCodes.add("en"); + languageCodes.add("ja"); + CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws InterruptedException, ExecutionException, IOException { + // Delete the created glossary + DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + System.setOut(null); + } + + @Test + public void testGetGlossary() throws IOException { + GetGlossary.getGlossary(PROJECT_ID, GLOSSARY_ID); + String got = bout.toString(); + assertThat(got).contains(GLOSSARY_ID); + assertThat(got).contains(GLOSSARY_INPUT_URI); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java b/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java new file mode 100644 index 00000000000..ee87cfdf67f --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java @@ -0,0 +1,105 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.GlossaryInputConfig; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for List Glossaries sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class ListGlossariesTests { + + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String GLOSSARY_INPUT_URI = + "gs://cloud-samples-data/translation/glossary_ja.csv"; + private static final String GLOSSARY_ID = + String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws InterruptedException, ExecutionException, IOException { + // Create a glossary that can be used in the test + PrintStream temp = new PrintStream(new ByteArrayOutputStream()); + System.setOut(temp); + List languageCodes = new ArrayList<>(); + languageCodes.add("en"); + languageCodes.add("ja"); + CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws InterruptedException, ExecutionException, IOException { + // Delete the created glossary + DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + System.setOut(null); + } + + @Test + public void testListGlossaries() throws IOException { + ListGlossaries.listGlossaries(PROJECT_ID); + String got = bout.toString(); + assertThat(got).contains(GLOSSARY_ID); + assertThat(got).contains(GLOSSARY_INPUT_URI); + } +} From 1095c311339435afe0b47a67de35631c3a56c806 Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Tue, 14 Jan 2020 11:51:09 -0700 Subject: [PATCH 212/356] samples: translate: add v3 translate text samples with glossary and model (#1941) * translate: add v3 translate text samples with glossary and model * Update pom to java 11 --- ...atchTranslateTextWithGlossaryAndModel.java | 113 ++++++++++++++ .../TranslateTextWithGlossaryAndModel.java | 93 +++++++++++ ...ranslateTextWithGlossaryAndModelTests.java | 145 ++++++++++++++++++ ...ranslateTextWithGlossaryAndModelTests.java | 107 +++++++++++++ 4 files changed, 458 insertions(+) create mode 100644 translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java create mode 100644 translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java create mode 100644 translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java new file mode 100644 index 00000000000..897d4807d3a --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -0,0 +1,113 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_batch_translate_text_with_glossary_and_model] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.GcsDestination; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.InputConfig; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.OutputConfig; +import com.google.cloud.translate.v3.TranslateTextGlossaryConfig; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; +import java.util.concurrent.ExecutionException; + +public class BatchTranslateTextWithGlossaryAndModel { + + public static void batchTranslateTextWithGlossaryAndModel() + throws InterruptedException, ExecutionException, IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String sourceLanguage = "your-source-language"; + String targetLanguage = "your-target-language"; + String inputUri = "gs://your-gcs-bucket/path/to/input/file.txt"; + String outputUri = "gs://your-gcs-bucket/path/to/results/"; + String glossaryId = "your-glossary-display-name"; + String modelId = "YOUR-MODEL-ID"; + batchTranslateTextWithGlossaryAndModel( + projectId, sourceLanguage, targetLanguage, inputUri, outputUri, glossaryId, modelId); + } + + // Batch translate text with Model and Glossary + public static void batchTranslateTextWithGlossaryAndModel( + String projectId, + String sourceLanguage, + String targetLanguage, + String inputUri, + String outputUri, + String glossaryId, + String modelId) + throws IOException, ExecutionException, InterruptedException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + String location = "us-central1"; + LocationName parent = LocationName.of(projectId, location); + + GcsSource gcsSource = GcsSource.newBuilder().setInputUri(inputUri).build(); + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + InputConfig inputConfig = + InputConfig.newBuilder().setGcsSource(gcsSource).setMimeType("text/plain").build(); + + GcsDestination gcsDestination = + GcsDestination.newBuilder().setOutputUriPrefix(outputUri).build(); + OutputConfig outputConfig = + OutputConfig.newBuilder().setGcsDestination(gcsDestination).build(); + + GlossaryName glossaryName = GlossaryName.of(projectId, location, glossaryId); + TranslateTextGlossaryConfig glossaryConfig = + TranslateTextGlossaryConfig.newBuilder().setGlossary(glossaryName.toString()).build(); + + String modelPath = + String.format("projects/%s/locations/%s/models/%s", projectId, location, modelId); + + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(parent.toString()) + .setSourceLanguageCode(sourceLanguage) + .addTargetLanguageCodes(targetLanguage) + .addInputConfigs(inputConfig) + .setOutputConfig(outputConfig) + .putGlossaries(targetLanguage, glossaryConfig) + .putModels(targetLanguage, modelPath) + .build(); + + OperationFuture future = + client.batchTranslateTextAsync(request); + + System.out.println("Waiting for operation to complete..."); + BatchTranslateResponse response = future.get(); + // Display the translation for each input text provided + System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); + System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); + } + } +} +// [END translate_v3_batch_translate_text_with_glossary_and_model] diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java new file mode 100644 index 00000000000..473d3042eba --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java @@ -0,0 +1,93 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_translate_text_with_glossary_and_model] +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslateTextGlossaryConfig; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.cloud.translate.v3.Translation; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class TranslateTextWithGlossaryAndModel { + + public static void translateTextWithGlossaryAndModel() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String sourceLanguage = "your-source-language"; + String targetLanguage = "your-target-language"; + String text = "your-text"; + String glossaryId = "your-glossary-display-name"; + String modelId = "YOUR-MODEL-ID"; + translateTextWithGlossaryAndModel( + projectId, sourceLanguage, targetLanguage, text, glossaryId, modelId); + } + + // Translating Text with Glossary and Model + public static void translateTextWithGlossaryAndModel( + String projectId, + String sourceLanguage, + String targetLanguage, + String text, + String glossaryId, + String modelId) + throws IOException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + String location = "us-central1"; + LocationName parent = LocationName.of(projectId, location); + + GlossaryName glossaryName = GlossaryName.of(projectId, location, glossaryId); + TranslateTextGlossaryConfig glossaryConfig = + TranslateTextGlossaryConfig.newBuilder().setGlossary(glossaryName.toString()).build(); + + String modelPath = + String.format("projects/%s/locations/%s/models/%s", projectId, location, modelId); + + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent.toString()) + .setMimeType("text/plain") + .setSourceLanguageCode(sourceLanguage) + .setTargetLanguageCode(targetLanguage) + .addContents(text) + .setGlossaryConfig(glossaryConfig) + .setModel(modelPath) + .build(); + + TranslateTextResponse response = client.translateText(request); + + // Display the translation for each input text provided + for (Translation translation : response.getGlossaryTranslationsList()) { + System.out.printf("Translated text: %s\n", translation.getTranslatedText()); + } + } + } +} +// [END translate_v3_translate_text_with_glossary_and_model] diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java new file mode 100644 index 00000000000..a91e530a0fb --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -0,0 +1,145 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.Page; +import com.google.cloud.storage.Blob; +import com.google.cloud.storage.Storage; +import com.google.cloud.storage.StorageOptions; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.GlossaryInputConfig; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Batch Translate Text With Glossary sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class BatchTranslateTextWithGlossaryAndModelTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String INPUT_URI = + "gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt"; + private static final String GLOSSARY_ID = + String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String GLOSSARY_INPUT_URI = + "gs://cloud-samples-data/translation/glossary_ja.csv"; + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static final void cleanUpBucket() { + Storage storage = StorageOptions.getDefaultInstance().getService(); + Page blobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix("BATCH_TRANSLATION_OUTPUT/")); + + deleteDirectory(storage, blobs); + } + + private static void deleteDirectory(Storage storage, Page blobs) { + for (Blob blob : blobs.iterateAll()) { + System.out.println(blob.getBlobId()); + if (!blob.delete()) { + Page subBlobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix(blob.getName())); + + deleteDirectory(storage, subBlobs); + } + } + } + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws InterruptedException, ExecutionException, IOException { + // Create a glossary that can be used in the test + PrintStream temp = new PrintStream(new ByteArrayOutputStream()); + System.setOut(temp); + List languageCodes = new ArrayList<>(); + languageCodes.add("en"); + languageCodes.add("ja"); + CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws InterruptedException, ExecutionException, IOException { + cleanUpBucket(); + // Delete the created glossary + DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + System.setOut(null); + } + + @Test + public void testBatchTranslateTextWithGlossaryAndModel() + throws InterruptedException, ExecutionException, IOException { + BatchTranslateTextWithGlossaryAndModel.batchTranslateTextWithGlossaryAndModel( + PROJECT_ID, + "en", + "ja", + INPUT_URI, + "gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/", + GLOSSARY_ID, + MODEL_ID); + String got = bout.toString(); + assertThat(got).contains("Total Characters: 25"); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java new file mode 100644 index 00000000000..dc68fa0fa92 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java @@ -0,0 +1,107 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.GlossaryInputConfig; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Batch Translate Text With Glossary and Model sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class TranslateTextWithGlossaryAndModelTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String GLOSSARY_INPUT_URI = + "gs://cloud-samples-data/translation/glossary_ja.csv"; + private static final String GLOSSARY_ID = + String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws InterruptedException, ExecutionException, IOException { + // Create a glossary that can be used in the test + PrintStream temp = new PrintStream(new ByteArrayOutputStream()); + System.setOut(temp); + List languageCodes = new ArrayList<>(); + languageCodes.add("en"); + languageCodes.add("ja"); + CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws InterruptedException, ExecutionException, IOException { + // Clean up + // Delete the created glossary + DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + System.setOut(null); + } + + @Test + public void testTranslateTextWithGlossaryAndModel() throws IOException { + TranslateTextWithGlossaryAndModel.translateTextWithGlossaryAndModel( + PROJECT_ID, "en", "ja", "That' il do it. deception", GLOSSARY_ID, MODEL_ID); + String got = bout.toString(); + assertThat(got).contains("それはそうだ"); // custom model + assertThat(got).contains("欺く"); // glossary + } +} From 940eca89127e4fce79796e6f491f74cdf39a9d78 Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Tue, 14 Jan 2020 13:39:36 -0700 Subject: [PATCH 213/356] samples: translate: add translate text with glossary samples (#1940) * translate: add translate text with glossary samples * add some clarifying comments explain blocks of the code --- .../BatchTranslateTextWithGlossary.java | 112 ++++++++++++++ .../translate/TranslateTextWithGlossary.java | 86 +++++++++++ .../BatchTranslateTextWithGlossaryTests.java | 144 ++++++++++++++++++ .../TranslateTextWithGlossaryTests.java | 105 +++++++++++++ 4 files changed, 447 insertions(+) create mode 100644 translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java create mode 100644 translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossary.java create mode 100644 translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java new file mode 100644 index 00000000000..1f37b7c0390 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -0,0 +1,112 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_batch_translate_text_with_glossary] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.GcsDestination; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.InputConfig; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.OutputConfig; +import com.google.cloud.translate.v3.TranslateTextGlossaryConfig; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; +import java.util.concurrent.ExecutionException; + +public class BatchTranslateTextWithGlossary { + + public static void batchTranslateTextWithGlossary() + throws InterruptedException, ExecutionException, IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String sourceLanguage = "your-source-language"; + String targetLanguage = "your-target-language"; + String inputUri = "gs://your-gcs-bucket/path/to/input/file.txt"; + String outputUri = "gs://your-gcs-bucket/path/to/results/"; + String glossaryId = "your-glossary-display-name"; + batchTranslateTextWithGlossary( + projectId, sourceLanguage, targetLanguage, inputUri, outputUri, glossaryId); + } + + // Batch Translate Text with a Glossary. + public static void batchTranslateTextWithGlossary( + String projectId, + String sourceLanguage, + String targetLanguage, + String inputUri, + String outputUri, + String glossaryId) + throws IOException, ExecutionException, InterruptedException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + String location = "us-central1"; + LocationName parent = LocationName.of(projectId, location); + + // Configure the source of the file from a GCS bucket + GcsSource gcsSource = GcsSource.newBuilder().setInputUri(inputUri).build(); + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + InputConfig inputConfig = + InputConfig.newBuilder().setGcsSource(gcsSource).setMimeType("text/plain").build(); + + // Configure where to store the output in a GCS bucket + GcsDestination gcsDestination = + GcsDestination.newBuilder().setOutputUriPrefix(outputUri).build(); + OutputConfig outputConfig = + OutputConfig.newBuilder().setGcsDestination(gcsDestination).build(); + + // Configure the glossary used in the request + GlossaryName glossaryName = GlossaryName.of(projectId, location, glossaryId); + TranslateTextGlossaryConfig glossaryConfig = + TranslateTextGlossaryConfig.newBuilder().setGlossary(glossaryName.toString()).build(); + + // Build the request that will be sent to the API + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(parent.toString()) + .setSourceLanguageCode(sourceLanguage) + .addTargetLanguageCodes(targetLanguage) + .addInputConfigs(inputConfig) + .setOutputConfig(outputConfig) + .putGlossaries(targetLanguage, glossaryConfig) + .build(); + + // Start an asynchronous request + OperationFuture future = + client.batchTranslateTextAsync(request); + + System.out.println("Waiting for operation to complete..."); + BatchTranslateResponse response = future.get(); + // Display the translation for each input text provided + System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); + System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); + } + } +} +// [END translate_v3_batch_translate_text_with_glossary] diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossary.java new file mode 100644 index 00000000000..07e0c6c7e03 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossary.java @@ -0,0 +1,86 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_translate_text_with_glossary] +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslateTextGlossaryConfig; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.cloud.translate.v3.Translation; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class TranslateTextWithGlossary { + + public static void translateTextWithGlossary() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String sourceLanguage = "your-source-language"; + String targetLanguage = "your-target-language"; + String text = "your-text"; + String glossaryId = "your-glossary-display-name"; + translateTextWithGlossary(projectId, sourceLanguage, targetLanguage, text, glossaryId); + } + + // Translates a given text using a glossary. + public static void translateTextWithGlossary( + String projectId, + String sourceLanguage, + String targetLanguage, + String text, + String glossaryId) + throws IOException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + String location = "us-central1"; + LocationName parent = LocationName.of(projectId, location); + + GlossaryName glossaryName = GlossaryName.of(projectId, location, glossaryId); + TranslateTextGlossaryConfig glossaryConfig = + TranslateTextGlossaryConfig.newBuilder().setGlossary(glossaryName.toString()).build(); + + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent.toString()) + .setMimeType("text/plain") + .setSourceLanguageCode(sourceLanguage) + .setTargetLanguageCode(targetLanguage) + .addContents(text) + .setGlossaryConfig(glossaryConfig) + .build(); + + TranslateTextResponse response = client.translateText(request); + + // Display the translation for each input text provided + for (Translation translation : response.getGlossaryTranslationsList()) { + System.out.printf("Translated text: %s\n", translation.getTranslatedText()); + } + } + } +} +// [END translate_v3_translate_text_with_glossary] diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java new file mode 100644 index 00000000000..6cefd2e3071 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -0,0 +1,144 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.Page; +import com.google.cloud.storage.Blob; +import com.google.cloud.storage.Storage; +import com.google.cloud.storage.StorageOptions; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.GlossaryInputConfig; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Batch Translate Text With Glossary and Model sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class BatchTranslateTextWithGlossaryTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String INPUT_URI = + "gs://cloud-samples-data/translation/text_with_glossary.txt"; + private static final String GLOSSARY_INPUT_URI = + "gs://cloud-samples-data/translation/glossary_ja.csv"; + private static final String GLOSSARY_ID = + String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static final void cleanUpBucket() { + Storage storage = StorageOptions.getDefaultInstance().getService(); + Page blobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix("BATCH_TRANSLATION_OUTPUT/")); + + deleteDirectory(storage, blobs); + } + + private static void deleteDirectory(Storage storage, Page blobs) { + for (Blob blob : blobs.iterateAll()) { + System.out.println(blob.getBlobId()); + if (!blob.delete()) { + Page subBlobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix(blob.getName())); + + deleteDirectory(storage, subBlobs); + } + } + } + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws InterruptedException, ExecutionException, IOException { + // Create a glossary that can be used in the test + PrintStream temp = new PrintStream(new ByteArrayOutputStream()); + System.setOut(temp); + List languageCodes = new ArrayList<>(); + languageCodes.add("en"); + languageCodes.add("ja"); + CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws InterruptedException, ExecutionException, IOException { + // Clean up + cleanUpBucket(); + // Delete the created glossary + DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + System.setOut(null); + } + + @Test + public void testBatchTranslateTextWithGlossary() + throws InterruptedException, ExecutionException, IOException { + BatchTranslateTextWithGlossary.batchTranslateTextWithGlossary( + PROJECT_ID, + "en", + "ja", + INPUT_URI, + "gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/", + GLOSSARY_ID); + String got = bout.toString(); + assertThat(got).contains("Total Characters: 9"); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java new file mode 100644 index 00000000000..ad7f560195b --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java @@ -0,0 +1,105 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.CreateGlossaryMetadata; +import com.google.cloud.translate.v3.CreateGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryMetadata; +import com.google.cloud.translate.v3.DeleteGlossaryRequest; +import com.google.cloud.translate.v3.DeleteGlossaryResponse; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.Glossary; +import com.google.cloud.translate.v3.GlossaryInputConfig; +import com.google.cloud.translate.v3.GlossaryName; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Translate Text With Glossary sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class TranslateTextWithGlossaryTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String GLOSSARY_INPUT_URI = + "gs://cloud-samples-data/translation/glossary_ja.csv"; + private static final String GLOSSARY_ID = + String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws InterruptedException, ExecutionException, IOException { + // Create a glossary that can be used in the test + PrintStream temp = new PrintStream(new ByteArrayOutputStream()); + System.setOut(temp); + List languageCodes = new ArrayList<>(); + languageCodes.add("en"); + languageCodes.add("ja"); + CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws InterruptedException, ExecutionException, IOException { + // Clean up + // Delete the created glossary + DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + System.setOut(null); + } + + @Test + public void testTranslateTextWithGlossary() throws IOException { + TranslateTextWithGlossary.translateTextWithGlossary( + PROJECT_ID, "en", "ja", "account", GLOSSARY_ID); + String got = bout.toString(); + assertThat(got).contains("アカウント"); + } +} From 53e9cfdd06181d4fceec24f6f792019e0f73ef30 Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Tue, 14 Jan 2020 14:30:40 -0700 Subject: [PATCH 214/356] samples: translate: add v3 samples for translate text with model (#1939) * translate: add v3 samples for translate text with model * Add clarifying comments that explain chunks of the code --- ...atchTranslateTextWithGlossaryAndModel.java | 6 + .../BatchTranslateTextWithModel.java | 109 +++++++++++++++++ .../com/example/translate/CreateGlossary.java | 2 + .../com/example/translate/DeleteGlossary.java | 1 + .../translate/TranslateTextWithModel.java | 78 ++++++++++++ .../BatchTranslateTextWithModelTests.java | 115 ++++++++++++++++++ .../TranslateTextWithModelTests.java | 73 +++++++++++ 7 files changed, 384 insertions(+) create mode 100644 translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java create mode 100644 translate/snippets/src/main/java/com/example/translate/TranslateTextWithModel.java create mode 100644 translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index 897d4807d3a..f0922884ba6 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -71,23 +71,28 @@ public static void batchTranslateTextWithGlossaryAndModel( String location = "us-central1"; LocationName parent = LocationName.of(projectId, location); + // Configure the source of the file from a GCS bucket GcsSource gcsSource = GcsSource.newBuilder().setInputUri(inputUri).build(); // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats InputConfig inputConfig = InputConfig.newBuilder().setGcsSource(gcsSource).setMimeType("text/plain").build(); + // Configure where to store the output in a GCS bucket GcsDestination gcsDestination = GcsDestination.newBuilder().setOutputUriPrefix(outputUri).build(); OutputConfig outputConfig = OutputConfig.newBuilder().setGcsDestination(gcsDestination).build(); + // Configure the glossary used in the request GlossaryName glossaryName = GlossaryName.of(projectId, location, glossaryId); TranslateTextGlossaryConfig glossaryConfig = TranslateTextGlossaryConfig.newBuilder().setGlossary(glossaryName.toString()).build(); + // Configure the model used in the request String modelPath = String.format("projects/%s/locations/%s/models/%s", projectId, location, modelId); + // Build the request that will be sent to the API BatchTranslateTextRequest request = BatchTranslateTextRequest.newBuilder() .setParent(parent.toString()) @@ -99,6 +104,7 @@ public static void batchTranslateTextWithGlossaryAndModel( .putModels(targetLanguage, modelPath) .build(); + // Start an asynchronous request OperationFuture future = client.batchTranslateTextAsync(request); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java new file mode 100644 index 00000000000..bbf2aff4263 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java @@ -0,0 +1,109 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_batch_translate_text_with_model] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.GcsDestination; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.InputConfig; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.OutputConfig; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; +import java.util.concurrent.ExecutionException; + +public class BatchTranslateTextWithModel { + + public static void batchTranslateTextWithModel() + throws InterruptedException, ExecutionException, IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String sourceLanguage = "your-source-language"; + String targetLanguage = "your-target-language"; + String inputUri = "gs://your-gcs-bucket/path/to/input/file.txt"; + String outputUri = "gs://your-gcs-bucket/path/to/results/"; + String modelId = "YOUR-MODEL-ID"; + batchTranslateTextWithModel( + projectId, sourceLanguage, targetLanguage, inputUri, outputUri, modelId); + } + + // Batch translate text using AutoML Translation model + public static void batchTranslateTextWithModel( + String projectId, + String sourceLanguage, + String targetLanguage, + String inputUri, + String outputUri, + String modelId) + throws IOException, ExecutionException, InterruptedException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + String location = "us-central1"; + LocationName parent = LocationName.of(projectId, location); + + // Configure the source of the file from a GCS bucket + GcsSource gcsSource = GcsSource.newBuilder().setInputUri(inputUri).build(); + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + InputConfig inputConfig = + InputConfig.newBuilder().setGcsSource(gcsSource).setMimeType("text/plain").build(); + + // Configure where to store the output in a GCS bucket + GcsDestination gcsDestination = + GcsDestination.newBuilder().setOutputUriPrefix(outputUri).build(); + OutputConfig outputConfig = + OutputConfig.newBuilder().setGcsDestination(gcsDestination).build(); + + // Configure the model used in the request + String modelPath = + String.format("projects/%s/locations/%s/models/%s", projectId, location, modelId); + + // Build the request that will be sent to the API + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(parent.toString()) + .setSourceLanguageCode(sourceLanguage) + .addTargetLanguageCodes(targetLanguage) + .addInputConfigs(inputConfig) + .setOutputConfig(outputConfig) + .putModels(targetLanguage, modelPath) + .build(); + + // Start an asynchronous request + OperationFuture future = + client.batchTranslateTextAsync(request); + + System.out.println("Waiting for operation to complete..."); + BatchTranslateResponse response = future.get(); + // Display the translation for each input text provided + System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); + System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); + } + } +} +// [END translate_v3_batch_translate_text_with_model] diff --git a/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java b/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java index 3dc9d8ff932..a99f10def6f 100644 --- a/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java @@ -65,6 +65,7 @@ public static void createGlossary( Glossary.LanguageCodesSet languageCodesSet = Glossary.LanguageCodesSet.newBuilder().addAllLanguageCodes(languageCodes).build(); + // Configure the source of the file from a GCS bucket GcsSource gcsSource = GcsSource.newBuilder().setInputUri(inputUri).build(); GlossaryInputConfig inputConfig = GlossaryInputConfig.newBuilder().setGcsSource(gcsSource).build(); @@ -82,6 +83,7 @@ public static void createGlossary( .setGlossary(glossary) .build(); + // Start an asynchronous request OperationFuture future = client.createGlossaryAsync(request); diff --git a/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java b/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java index aaed8d7c4d5..73fe577a303 100644 --- a/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java @@ -51,6 +51,7 @@ public static void deleteGlossary(String projectId, String glossaryId) DeleteGlossaryRequest request = DeleteGlossaryRequest.newBuilder().setName(glossaryName.toString()).build(); + // Start an asynchronous request OperationFuture future = client.deleteGlossaryAsync(request); diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithModel.java new file mode 100644 index 00000000000..ace54514837 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithModel.java @@ -0,0 +1,78 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_translate_text_with_model] +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.cloud.translate.v3.Translation; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class TranslateTextWithModel { + + public static void translateTextWithModel() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String sourceLanguage = "your-source-language"; + String targetLanguage = "your-target-language"; + String text = "your-text"; + String modelId = "YOUR-MODEL-ID"; + translateTextWithModel(projectId, sourceLanguage, targetLanguage, text, modelId); + } + + // Translating Text with Model + public static void translateTextWithModel( + String projectId, String sourceLanguage, String targetLanguage, String text, String modelId) + throws IOException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + String location = "us-central1"; + LocationName parent = LocationName.of(projectId, location); + String modelPath = + String.format("projects/%s/locations/%s/models/%s", projectId, location, modelId); + + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent.toString()) + .setMimeType("text/plain") + .setSourceLanguageCode(sourceLanguage) + .setTargetLanguageCode(targetLanguage) + .addContents(text) + .setModel(modelPath) + .build(); + + TranslateTextResponse response = client.translateText(request); + + // Display the translation for each input text provided + for (Translation translation : response.getTranslationsList()) { + System.out.printf("Translated text: %s\n", translation.getTranslatedText()); + } + } + } +} +// [END translate_v3_translate_text_with_model] diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java new file mode 100644 index 00000000000..30a4a1553b3 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.paging.Page; + +import com.google.cloud.storage.Blob; +import com.google.cloud.storage.Storage; +import com.google.cloud.storage.StorageOptions; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.concurrent.ExecutionException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Batch Translate Text With Model sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class BatchTranslateTextWithModelTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String INPUT_URI = + "gs://cloud-samples-data/translation/custom_model_text.txt"; + private static final String MODEL_ID = "TRL2188848820815848149"; + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static final void cleanUpBucket() { + Storage storage = StorageOptions.getDefaultInstance().getService(); + Page blobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix("BATCH_TRANSLATION_OUTPUT/")); + + deleteDirectory(storage, blobs); + } + + private static void deleteDirectory(Storage storage, Page blobs) { + for (Blob blob : blobs.iterateAll()) { + System.out.println(blob.getBlobId()); + if (!blob.delete()) { + Page subBlobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix(blob.getName())); + + deleteDirectory(storage, subBlobs); + } + } + } + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + cleanUpBucket(); + System.setOut(null); + } + + @Test + public void testBatchTranslateTextWithModel() + throws InterruptedException, ExecutionException, IOException { + BatchTranslateTextWithModel.batchTranslateTextWithModel( + PROJECT_ID, + "en", + "ja", + INPUT_URI, + "gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/", + MODEL_ID); + String got = bout.toString(); + assertThat(got).contains("Total Characters: 15"); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java new file mode 100644 index 00000000000..0864cefc69a --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java @@ -0,0 +1,73 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Batch Translate Text With Model sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class TranslateTextWithModelTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String MODEL_ID = "TRL2188848820815848149"; + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + System.setOut(null); + } + + @Test + public void testTranslateTextWithModel() throws IOException { + TranslateTextWithModel.translateTextWithModel( + PROJECT_ID, "en", "ja", "That' il do it. deception", MODEL_ID); + String got = bout.toString(); + assertThat(got).contains("それはそうだ"); + } +} From 89d4fcff0ffda7e114f09544bbcb86c07e87aa4c Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Wed, 15 Jan 2020 13:14:29 -0700 Subject: [PATCH 215/356] samples: translate: bump batch request timeouts (#1951) --- .../example/translate/BatchTranslateTextWithGlossary.java | 8 +++++--- .../translate/BatchTranslateTextWithGlossaryAndModel.java | 8 +++++--- .../example/translate/BatchTranslateTextWithModel.java | 8 +++++--- .../BatchTranslateTextWithGlossaryAndModelTests.java | 3 ++- .../translate/BatchTranslateTextWithGlossaryTests.java | 3 ++- .../translate/BatchTranslateTextWithModelTests.java | 3 ++- 6 files changed, 21 insertions(+), 12 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java index 1f37b7c0390..8971bf61f49 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -32,11 +32,13 @@ import java.io.IOException; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; public class BatchTranslateTextWithGlossary { public static void batchTranslateTextWithGlossary() - throws InterruptedException, ExecutionException, IOException { + throws InterruptedException, ExecutionException, IOException, TimeoutException { // TODO(developer): Replace these variables before running the sample. String projectId = "YOUR-PROJECT-ID"; // Supported Languages: https://cloud.google.com/translate/docs/languages @@ -57,7 +59,7 @@ public static void batchTranslateTextWithGlossary( String inputUri, String outputUri, String glossaryId) - throws IOException, ExecutionException, InterruptedException { + throws IOException, ExecutionException, InterruptedException, TimeoutException { // Initialize client that will be used to send requests. This client only needs to be created // once, and can be reused for multiple requests. After completing all of your requests, call @@ -102,7 +104,7 @@ public static void batchTranslateTextWithGlossary( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(); + BatchTranslateResponse response = future.get(120, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index f0922884ba6..cee7e7199a8 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -32,11 +32,13 @@ import java.io.IOException; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; public class BatchTranslateTextWithGlossaryAndModel { public static void batchTranslateTextWithGlossaryAndModel() - throws InterruptedException, ExecutionException, IOException { + throws InterruptedException, ExecutionException, IOException, TimeoutException { // TODO(developer): Replace these variables before running the sample. String projectId = "YOUR-PROJECT-ID"; // Supported Languages: https://cloud.google.com/translate/docs/languages @@ -59,7 +61,7 @@ public static void batchTranslateTextWithGlossaryAndModel( String outputUri, String glossaryId, String modelId) - throws IOException, ExecutionException, InterruptedException { + throws IOException, ExecutionException, InterruptedException, TimeoutException { // Initialize client that will be used to send requests. This client only needs to be created // once, and can be reused for multiple requests. After completing all of your requests, call @@ -109,7 +111,7 @@ public static void batchTranslateTextWithGlossaryAndModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(); + BatchTranslateResponse response = future.get(120, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java index bbf2aff4263..1433444a683 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java @@ -30,11 +30,13 @@ import java.io.IOException; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; public class BatchTranslateTextWithModel { public static void batchTranslateTextWithModel() - throws InterruptedException, ExecutionException, IOException { + throws InterruptedException, ExecutionException, IOException, TimeoutException { // TODO(developer): Replace these variables before running the sample. String projectId = "YOUR-PROJECT-ID"; // Supported Languages: https://cloud.google.com/translate/docs/languages @@ -55,7 +57,7 @@ public static void batchTranslateTextWithModel( String inputUri, String outputUri, String modelId) - throws IOException, ExecutionException, InterruptedException { + throws IOException, ExecutionException, InterruptedException, TimeoutException { // Initialize client that will be used to send requests. This client only needs to be created // once, and can be reused for multiple requests. After completing all of your requests, call @@ -99,7 +101,7 @@ public static void batchTranslateTextWithModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(); + BatchTranslateResponse response = future.get(120, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index a91e530a0fb..29da0562812 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -43,6 +43,7 @@ import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeoutException; import org.junit.After; import org.junit.Before; @@ -130,7 +131,7 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept @Test public void testBatchTranslateTextWithGlossaryAndModel() - throws InterruptedException, ExecutionException, IOException { + throws InterruptedException, ExecutionException, IOException, TimeoutException { BatchTranslateTextWithGlossaryAndModel.batchTranslateTextWithGlossaryAndModel( PROJECT_ID, "en", diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index 6cefd2e3071..39fb65a58dd 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -43,6 +43,7 @@ import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeoutException; import org.junit.After; import org.junit.Before; @@ -130,7 +131,7 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept @Test public void testBatchTranslateTextWithGlossary() - throws InterruptedException, ExecutionException, IOException { + throws InterruptedException, ExecutionException, IOException, TimeoutException { BatchTranslateTextWithGlossary.batchTranslateTextWithGlossary( PROJECT_ID, "en", diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index 30a4a1553b3..fa6a3852b7d 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -28,6 +28,7 @@ import java.io.IOException; import java.io.PrintStream; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeoutException; import org.junit.After; import org.junit.Before; @@ -101,7 +102,7 @@ public void tearDown() { @Test public void testBatchTranslateTextWithModel() - throws InterruptedException, ExecutionException, IOException { + throws InterruptedException, ExecutionException, IOException, TimeoutException { BatchTranslateTextWithModel.batchTranslateTextWithModel( PROJECT_ID, "en", From 5257b2bd7f26c74598edd7cc30cbbbde73d575ee Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Tue, 21 Jan 2020 15:20:00 -0700 Subject: [PATCH 216/356] samples: translate: add basic translation samples (#1938) * translate: add basic translation samples * Update pom.xml * bump timeout for batch call * Update readme to include info about v3 samples and basic vs advanced links * Update blunderbuss.yml Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com> --- .../example/translate/BatchTranslateText.java | 95 +++++++++++++++ .../com/example/translate/TranslateText.java | 70 +++++++++++ .../translate/BatchTranslateTextTests.java | 109 ++++++++++++++++++ .../example/translate/TranslateTextTests.java | 71 ++++++++++++ 4 files changed, 345 insertions(+) create mode 100644 translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java create mode 100644 translate/snippets/src/main/java/com/example/translate/TranslateText.java create mode 100644 translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java create mode 100644 translate/snippets/src/test/java/com/example/translate/TranslateTextTests.java diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java new file mode 100644 index 00000000000..30d2ab181d2 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java @@ -0,0 +1,95 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_batch_translate_text] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.translate.v3.BatchTranslateMetadata; +import com.google.cloud.translate.v3.BatchTranslateResponse; +import com.google.cloud.translate.v3.BatchTranslateTextRequest; +import com.google.cloud.translate.v3.GcsDestination; +import com.google.cloud.translate.v3.GcsSource; +import com.google.cloud.translate.v3.InputConfig; +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.OutputConfig; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class BatchTranslateText { + + public static void batchTranslateText() + throws InterruptedException, ExecutionException, IOException, TimeoutException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String sourceLanguage = "your-source-language"; + String targetLanguage = "your-target-language"; + String inputUri = "gs://your-gcs-bucket/path/to/input/file.txt"; + String outputUri = "gs://your-gcs-bucket/path/to/results/"; + batchTranslateText(projectId, sourceLanguage, targetLanguage, inputUri, outputUri); + } + + // Batch translate text + public static void batchTranslateText( + String projectId, + String sourceLanguage, + String targetLanguage, + String inputUri, + String outputUri) + throws IOException, ExecutionException, InterruptedException, TimeoutException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `us-central1` + LocationName parent = LocationName.of(projectId, "us-central1"); + + GcsSource gcsSource = GcsSource.newBuilder().setInputUri(inputUri).build(); + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + InputConfig inputConfig = + InputConfig.newBuilder().setGcsSource(gcsSource).setMimeType("text/plain").build(); + + GcsDestination gcsDestination = + GcsDestination.newBuilder().setOutputUriPrefix(outputUri).build(); + OutputConfig outputConfig = + OutputConfig.newBuilder().setGcsDestination(gcsDestination).build(); + + BatchTranslateTextRequest request = + BatchTranslateTextRequest.newBuilder() + .setParent(parent.toString()) + .setSourceLanguageCode(sourceLanguage) + .addTargetLanguageCodes(targetLanguage) + .addInputConfigs(inputConfig) + .setOutputConfig(outputConfig) + .build(); + + OperationFuture future = + client.batchTranslateTextAsync(request); + + System.out.println("Waiting for operation to complete..."); + BatchTranslateResponse response = future.get(120, TimeUnit.SECONDS); + System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); + System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); + } + } +} +// [END translate_v3_batch_translate_text] diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateText.java b/translate/snippets/src/main/java/com/example/translate/TranslateText.java new file mode 100644 index 00000000000..94989428218 --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translate/TranslateText.java @@ -0,0 +1,70 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +// [START translate_v3_translate_text] +import com.google.cloud.translate.v3.LocationName; +import com.google.cloud.translate.v3.TranslateTextRequest; +import com.google.cloud.translate.v3.TranslateTextResponse; +import com.google.cloud.translate.v3.Translation; +import com.google.cloud.translate.v3.TranslationServiceClient; + +import java.io.IOException; + +public class TranslateText { + + public static void translateText() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + // Supported Languages: https://cloud.google.com/translate/docs/languages + String targetLanguage = "your-target-language"; + String text = "your-text"; + translateText(projectId, targetLanguage, text); + } + + // Translating Text + public static void translateText(String projectId, String targetLanguage, String text) + throws IOException { + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // Supported Locations: `global`, [glossary location], or [model location] + // Glossaries must be hosted in `us-central1` + // Custom Models must use the same location as your model. (us-central1) + LocationName parent = LocationName.of(projectId, "global"); + + // Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats + TranslateTextRequest request = + TranslateTextRequest.newBuilder() + .setParent(parent.toString()) + .setMimeType("text/plain") + .setTargetLanguageCode(targetLanguage) + .addContents(text) + .build(); + + TranslateTextResponse response = client.translateText(request); + + // Display the translation for each input text provided + for (Translation translation : response.getTranslationsList()) { + System.out.printf("Translated text: %s\n", translation.getTranslatedText()); + } + } + } +} +// [END translate_v3_translate_text] diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java new file mode 100644 index 00000000000..daebf827fb9 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -0,0 +1,109 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.paging.Page; +import com.google.cloud.storage.Blob; +import com.google.cloud.storage.Storage; +import com.google.cloud.storage.StorageOptions; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeoutException; + +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Batch Translate Text sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class BatchTranslateTextTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String INPUT_URI = "gs://cloud-samples-data/translation/text.txt"; + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void cleanUpBucket() { + Storage storage = StorageOptions.getDefaultInstance().getService(); + Page blobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix("BATCH_TRANSLATION_OUTPUT/")); + + deleteDirectory(storage, blobs); + } + + private static void deleteDirectory(Storage storage, Page blobs) { + for (Blob blob : blobs.iterateAll()) { + System.out.println(blob.getBlobId()); + if (!blob.delete()) { + Page subBlobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix(blob.getName())); + + deleteDirectory(storage, subBlobs); + } + } + } + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + cleanUpBucket(); + System.setOut(null); + } + + @Test + public void testBatchTranslateText() + throws InterruptedException, ExecutionException, IOException, TimeoutException { + BatchTranslateText.batchTranslateText( + PROJECT_ID, "en", "es", INPUT_URI, "gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/"); + String got = bout.toString(); + assertThat(got).contains("Total Characters: 13"); + } +} diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextTests.java new file mode 100644 index 00000000000..0c6ddbd835d --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextTests.java @@ -0,0 +1,71 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Translate Text sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class TranslateTextTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable '%s' is required to perform these tests.".format(varName), + System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() { + System.setOut(null); + } + + @Test + public void testTranslateText() throws IOException { + TranslateText.translateText(PROJECT_ID, "es", "Hello world"); + String got = bout.toString(); + assertThat(got).contains("Hola Mundo"); + } +} From 521309ceb1f6498a6a718459ac234f1a88643833 Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Wed, 5 Feb 2020 13:18:59 -0700 Subject: [PATCH 217/356] samples: translate: use unique gcs folders for batch translate tests (#2053) * translate: use unique gcs folders for batch translate tests * update based on feedback * fix typo --- .../com/example/translate/BatchTranslateTextTests.java | 8 ++++++-- .../BatchTranslateTextWithGlossaryAndModelTests.java | 7 +++++-- .../translate/BatchTranslateTextWithGlossaryTests.java | 7 +++++-- .../translate/BatchTranslateTextWithModelTests.java | 8 ++++++-- 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index daebf827fb9..ccd20972474 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -27,6 +27,7 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; +import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; @@ -43,6 +44,9 @@ public class BatchTranslateTextTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text.txt"; + private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -53,7 +57,7 @@ private static void cleanUpBucket() { storage.list( PROJECT_ID, Storage.BlobListOption.currentDirectory(), - Storage.BlobListOption.prefix("BATCH_TRANSLATION_OUTPUT/")); + Storage.BlobListOption.prefix(PREFIX)); deleteDirectory(storage, blobs); } @@ -102,7 +106,7 @@ public void tearDown() { public void testBatchTranslateText() throws InterruptedException, ExecutionException, IOException, TimeoutException { BatchTranslateText.batchTranslateText( - PROJECT_ID, "en", "es", INPUT_URI, "gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/"); + PROJECT_ID, "en", "es", INPUT_URI, OUTPUT_URI); String got = bout.toString(); assertThat(got).contains("Total Characters: 13"); } diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index 29da0562812..e8fe25709a2 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -64,6 +64,9 @@ public class BatchTranslateTextWithGlossaryAndModelTests { private static final String MODEL_ID = "TRL2188848820815848149"; private static final String GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv"; + private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -74,7 +77,7 @@ private static final void cleanUpBucket() { storage.list( PROJECT_ID, Storage.BlobListOption.currentDirectory(), - Storage.BlobListOption.prefix("BATCH_TRANSLATION_OUTPUT/")); + Storage.BlobListOption.prefix(PREFIX)); deleteDirectory(storage, blobs); } @@ -137,7 +140,7 @@ public void testBatchTranslateTextWithGlossaryAndModel() "en", "ja", INPUT_URI, - "gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/", + OUTPUT_URI, GLOSSARY_ID, MODEL_ID); String got = bout.toString(); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index 39fb65a58dd..ebd61202233 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -63,6 +63,9 @@ public class BatchTranslateTextWithGlossaryTests { "gs://cloud-samples-data/translation/glossary_ja.csv"; private static final String GLOSSARY_ID = String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -73,7 +76,7 @@ private static final void cleanUpBucket() { storage.list( PROJECT_ID, Storage.BlobListOption.currentDirectory(), - Storage.BlobListOption.prefix("BATCH_TRANSLATION_OUTPUT/")); + Storage.BlobListOption.prefix(PREFIX)); deleteDirectory(storage, blobs); } @@ -137,7 +140,7 @@ public void testBatchTranslateTextWithGlossary() "en", "ja", INPUT_URI, - "gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/", + OUTPUT_URI, GLOSSARY_ID); String got = bout.toString(); assertThat(got).contains("Total Characters: 9"); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index fa6a3852b7d..f81a0faa307 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -27,6 +27,7 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; +import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; @@ -45,6 +46,9 @@ public class BatchTranslateTextWithModelTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/custom_model_text.txt"; private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -55,7 +59,7 @@ private static final void cleanUpBucket() { storage.list( PROJECT_ID, Storage.BlobListOption.currentDirectory(), - Storage.BlobListOption.prefix("BATCH_TRANSLATION_OUTPUT/")); + Storage.BlobListOption.prefix(PREFIX)); deleteDirectory(storage, blobs); } @@ -108,7 +112,7 @@ public void testBatchTranslateTextWithModel() "en", "ja", INPUT_URI, - "gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/", + OUTPUT_URI, MODEL_ID); String got = bout.toString(); assertThat(got).contains("Total Characters: 15"); From 33a28e2c7bd46f48bf605f2c40d64cdbb1694849 Mon Sep 17 00:00:00 2001 From: nnegrey Date: Thu, 26 Mar 2020 10:58:45 -0600 Subject: [PATCH 218/356] samples: docs: update tests that are failing or not cleaning up resources --- .../src/main/java/com/example/translate/BatchTranslateText.java | 2 +- .../com/example/translate/BatchTranslateTextWithGlossary.java | 2 +- .../translate/BatchTranslateTextWithGlossaryAndModel.java | 2 +- .../java/com/example/translate/BatchTranslateTextWithModel.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java index 30d2ab181d2..466c3cd7fa0 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java @@ -86,7 +86,7 @@ public static void batchTranslateText( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(120, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(180, TimeUnit.SECONDS); System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); } diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java index 8971bf61f49..f622c5f6f05 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -104,7 +104,7 @@ public static void batchTranslateTextWithGlossary( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(120, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(180, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index cee7e7199a8..e1a52b819a4 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -111,7 +111,7 @@ public static void batchTranslateTextWithGlossaryAndModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(120, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(180, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java index 1433444a683..dbc70058586 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java @@ -101,7 +101,7 @@ public static void batchTranslateTextWithModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(120, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(180, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); From 34c8cb27ae86eab89fb9b85b29fae39002bad3b7 Mon Sep 17 00:00:00 2001 From: Averi Kitsch Date: Fri, 27 Mar 2020 12:00:25 -0700 Subject: [PATCH 219/356] samples: update shared config (#2443) * update shared config * Update to 1.0.13 * lint * Fix linting * lint * fix imports Co-authored-by: Les Vogel --- .../example/translate/BatchTranslateText.java | 3 +-- .../BatchTranslateTextWithGlossary.java | 1 - ...atchTranslateTextWithGlossaryAndModel.java | 1 - .../BatchTranslateTextWithModel.java | 3 +-- .../com/example/translate/CreateGlossary.java | 1 - .../com/example/translate/DeleteGlossary.java | 1 - .../com/example/translate/DetectLanguage.java | 1 - .../com/example/translate/GetGlossary.java | 1 - .../translate/GetSupportedLanguages.java | 1 - .../GetSupportedLanguagesForTarget.java | 1 - .../com/example/translate/ListGlossaries.java | 1 - .../example/translate/QuickstartSample.java | 5 +--- .../com/example/translate/TranslateText.java | 1 - .../translate/TranslateTextWithGlossary.java | 1 - .../TranslateTextWithGlossaryAndModel.java | 1 - .../translate/TranslateTextWithModel.java | 1 - .../translate/BatchTranslateTextTests.java | 7 ++---- ...ranslateTextWithGlossaryAndModelTests.java | 24 ++----------------- .../BatchTranslateTextWithGlossaryTests.java | 23 ++---------------- .../BatchTranslateTextWithModelTests.java | 11 ++------- .../translate/CreateGlossaryTests.java | 1 - .../translate/DeleteGlossaryTests.java | 4 +--- .../example/translate/GetGlossaryTests.java | 14 ----------- .../translate/ListGlossariesTests.java | 14 ----------- .../example/translate/QuickstartSampleIT.java | 4 +--- ...ranslateTextWithGlossaryAndModelTests.java | 14 ----------- .../TranslateTextWithGlossaryTests.java | 14 ----------- 27 files changed, 13 insertions(+), 141 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java index 466c3cd7fa0..118cf6bff97 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java @@ -27,7 +27,6 @@ import com.google.cloud.translate.v3.LocationName; import com.google.cloud.translate.v3.OutputConfig; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; @@ -54,7 +53,7 @@ public static void batchTranslateText( String targetLanguage, String inputUri, String outputUri) - throws IOException, ExecutionException, InterruptedException, TimeoutException { + throws IOException, ExecutionException, InterruptedException, TimeoutException { // Initialize client that will be used to send requests. This client only needs to be created // once, and can be reused for multiple requests. After completing all of your requests, call diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java index f622c5f6f05..a839d500ac4 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -29,7 +29,6 @@ import com.google.cloud.translate.v3.OutputConfig; import com.google.cloud.translate.v3.TranslateTextGlossaryConfig; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index e1a52b819a4..92615eb1b4c 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -29,7 +29,6 @@ import com.google.cloud.translate.v3.OutputConfig; import com.google.cloud.translate.v3.TranslateTextGlossaryConfig; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java index dbc70058586..acce714753a 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java @@ -27,7 +27,6 @@ import com.google.cloud.translate.v3.LocationName; import com.google.cloud.translate.v3.OutputConfig; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; @@ -57,7 +56,7 @@ public static void batchTranslateTextWithModel( String inputUri, String outputUri, String modelId) - throws IOException, ExecutionException, InterruptedException, TimeoutException { + throws IOException, ExecutionException, InterruptedException, TimeoutException { // Initialize client that will be used to send requests. This client only needs to be created // once, and can be reused for multiple requests. After completing all of your requests, call diff --git a/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java b/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java index a99f10def6f..ab9f7de4f0e 100644 --- a/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/CreateGlossary.java @@ -26,7 +26,6 @@ import com.google.cloud.translate.v3.GlossaryName; import com.google.cloud.translate.v3.LocationName; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; import java.util.ArrayList; import java.util.List; diff --git a/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java b/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java index 73fe577a303..78266cdb5e1 100644 --- a/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/DeleteGlossary.java @@ -23,7 +23,6 @@ import com.google.cloud.translate.v3.DeleteGlossaryResponse; import com.google.cloud.translate.v3.GlossaryName; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; import java.util.concurrent.ExecutionException; diff --git a/translate/snippets/src/main/java/com/example/translate/DetectLanguage.java b/translate/snippets/src/main/java/com/example/translate/DetectLanguage.java index 945dad8f07e..a1b4c5fb19f 100644 --- a/translate/snippets/src/main/java/com/example/translate/DetectLanguage.java +++ b/translate/snippets/src/main/java/com/example/translate/DetectLanguage.java @@ -22,7 +22,6 @@ import com.google.cloud.translate.v3.DetectedLanguage; import com.google.cloud.translate.v3.LocationName; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class DetectLanguage { diff --git a/translate/snippets/src/main/java/com/example/translate/GetGlossary.java b/translate/snippets/src/main/java/com/example/translate/GetGlossary.java index e400f503ae0..c3e8283bd13 100644 --- a/translate/snippets/src/main/java/com/example/translate/GetGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/GetGlossary.java @@ -21,7 +21,6 @@ import com.google.cloud.translate.v3.Glossary; import com.google.cloud.translate.v3.GlossaryName; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class GetGlossary { diff --git a/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguages.java b/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguages.java index 32963c406bf..08eb5d46b65 100644 --- a/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguages.java +++ b/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguages.java @@ -22,7 +22,6 @@ import com.google.cloud.translate.v3.SupportedLanguage; import com.google.cloud.translate.v3.SupportedLanguages; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class GetSupportedLanguages { diff --git a/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java b/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java index 1001ae7a551..d3de319ad5c 100644 --- a/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java +++ b/translate/snippets/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java @@ -22,7 +22,6 @@ import com.google.cloud.translate.v3.SupportedLanguage; import com.google.cloud.translate.v3.SupportedLanguages; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class GetSupportedLanguagesForTarget { diff --git a/translate/snippets/src/main/java/com/example/translate/ListGlossaries.java b/translate/snippets/src/main/java/com/example/translate/ListGlossaries.java index 055c2d14058..129d58ec7b7 100644 --- a/translate/snippets/src/main/java/com/example/translate/ListGlossaries.java +++ b/translate/snippets/src/main/java/com/example/translate/ListGlossaries.java @@ -21,7 +21,6 @@ import com.google.cloud.translate.v3.ListGlossariesRequest; import com.google.cloud.translate.v3.LocationName; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class ListGlossaries { diff --git a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java index bf3aad063e1..d946c13aada 100644 --- a/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java +++ b/translate/snippets/src/main/java/com/example/translate/QuickstartSample.java @@ -34,10 +34,7 @@ public static void main(String... args) throws Exception { // Translates some text into Russian Translation translation = translate.translate( - text, - TranslateOption.sourceLanguage("en"), - TranslateOption.targetLanguage("ru")); - + text, TranslateOption.sourceLanguage("en"), TranslateOption.targetLanguage("ru")); System.out.printf("Text: %s%n", text); System.out.printf("Translation: %s%n", translation.getTranslatedText()); diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateText.java b/translate/snippets/src/main/java/com/example/translate/TranslateText.java index 94989428218..a36b54a65b5 100644 --- a/translate/snippets/src/main/java/com/example/translate/TranslateText.java +++ b/translate/snippets/src/main/java/com/example/translate/TranslateText.java @@ -22,7 +22,6 @@ import com.google.cloud.translate.v3.TranslateTextResponse; import com.google.cloud.translate.v3.Translation; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class TranslateText { diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossary.java index 07e0c6c7e03..78c35aa66e7 100644 --- a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossary.java @@ -24,7 +24,6 @@ import com.google.cloud.translate.v3.TranslateTextResponse; import com.google.cloud.translate.v3.Translation; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class TranslateTextWithGlossary { diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java index 473d3042eba..a383689deec 100644 --- a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java @@ -24,7 +24,6 @@ import com.google.cloud.translate.v3.TranslateTextResponse; import com.google.cloud.translate.v3.Translation; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class TranslateTextWithGlossaryAndModel { diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithModel.java index ace54514837..9d81c7979d9 100644 --- a/translate/snippets/src/main/java/com/example/translate/TranslateTextWithModel.java +++ b/translate/snippets/src/main/java/com/example/translate/TranslateTextWithModel.java @@ -22,7 +22,6 @@ import com.google.cloud.translate.v3.TranslateTextResponse; import com.google.cloud.translate.v3.Translation; import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.IOException; public class TranslateTextWithModel { diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index ccd20972474..2b41f00d9ac 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -23,14 +23,12 @@ import com.google.cloud.storage.Blob; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -46,7 +44,7 @@ public class BatchTranslateTextTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/text.txt"; private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -105,8 +103,7 @@ public void tearDown() { @Test public void testBatchTranslateText() throws InterruptedException, ExecutionException, IOException, TimeoutException { - BatchTranslateText.batchTranslateText( - PROJECT_ID, "en", "es", INPUT_URI, OUTPUT_URI); + BatchTranslateText.batchTranslateText(PROJECT_ID, "en", "es", INPUT_URI, OUTPUT_URI); String got = bout.toString(); assertThat(got).contains("Total Characters: 13"); } diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index e8fe25709a2..b88419d9d5f 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -19,23 +19,10 @@ import static com.google.common.truth.Truth.assertThat; import static junit.framework.TestCase.assertNotNull; -import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.Page; import com.google.cloud.storage.Blob; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.GcsSource; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.GlossaryInputConfig; -import com.google.cloud.translate.v3.GlossaryName; -import com.google.cloud.translate.v3.LocationName; -import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -44,7 +31,6 @@ import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -66,7 +52,7 @@ public class BatchTranslateTextWithGlossaryAndModelTests { "gs://cloud-samples-data/translation/glossary_ja.csv"; private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -136,13 +122,7 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept public void testBatchTranslateTextWithGlossaryAndModel() throws InterruptedException, ExecutionException, IOException, TimeoutException { BatchTranslateTextWithGlossaryAndModel.batchTranslateTextWithGlossaryAndModel( - PROJECT_ID, - "en", - "ja", - INPUT_URI, - OUTPUT_URI, - GLOSSARY_ID, - MODEL_ID); + PROJECT_ID, "en", "ja", INPUT_URI, OUTPUT_URI, GLOSSARY_ID, MODEL_ID); String got = bout.toString(); assertThat(got).contains("Total Characters: 25"); } diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index ebd61202233..92258d8ee89 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -19,23 +19,10 @@ import static com.google.common.truth.Truth.assertThat; import static junit.framework.TestCase.assertNotNull; -import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.Page; import com.google.cloud.storage.Blob; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.GcsSource; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.GlossaryInputConfig; -import com.google.cloud.translate.v3.GlossaryName; -import com.google.cloud.translate.v3.LocationName; -import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -44,7 +31,6 @@ import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -65,7 +51,7 @@ public class BatchTranslateTextWithGlossaryTests { String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -136,12 +122,7 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept public void testBatchTranslateTextWithGlossary() throws InterruptedException, ExecutionException, IOException, TimeoutException { BatchTranslateTextWithGlossary.batchTranslateTextWithGlossary( - PROJECT_ID, - "en", - "ja", - INPUT_URI, - OUTPUT_URI, - GLOSSARY_ID); + PROJECT_ID, "en", "ja", INPUT_URI, OUTPUT_URI, GLOSSARY_ID); String got = bout.toString(); assertThat(got).contains("Total Characters: 9"); } diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index f81a0faa307..db7ef195c18 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -20,7 +20,6 @@ import static junit.framework.TestCase.assertNotNull; import com.google.api.gax.paging.Page; - import com.google.cloud.storage.Blob; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; @@ -30,7 +29,6 @@ import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -48,7 +46,7 @@ public class BatchTranslateTextWithModelTests { private static final String MODEL_ID = "TRL2188848820815848149"; private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -108,12 +106,7 @@ public void tearDown() { public void testBatchTranslateTextWithModel() throws InterruptedException, ExecutionException, IOException, TimeoutException { BatchTranslateTextWithModel.batchTranslateTextWithModel( - PROJECT_ID, - "en", - "ja", - INPUT_URI, - OUTPUT_URI, - MODEL_ID); + PROJECT_ID, "en", "ja", INPUT_URI, OUTPUT_URI, MODEL_ID); String got = bout.toString(); assertThat(got).contains("Total Characters: 15"); } diff --git a/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java index b3ccb01395e..258dd37813f 100644 --- a/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java @@ -26,7 +26,6 @@ import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; diff --git a/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java index 8fe5fd660c4..800a32361c0 100644 --- a/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java @@ -26,7 +26,6 @@ import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -81,8 +80,7 @@ public void tearDown() { } @Test - public void testDeleteGlossary() - throws InterruptedException, ExecutionException, IOException { + public void testDeleteGlossary() throws InterruptedException, ExecutionException, IOException { DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); String got = bout.toString(); assertThat(got).contains("us-central1"); diff --git a/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java index d082c4fddb0..b8ce2cdb99a 100644 --- a/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java @@ -19,19 +19,6 @@ import static com.google.common.truth.Truth.assertThat; import static junit.framework.TestCase.assertNotNull; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.GcsSource; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.GlossaryInputConfig; -import com.google.cloud.translate.v3.GlossaryName; -import com.google.cloud.translate.v3.LocationName; -import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -39,7 +26,6 @@ import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; diff --git a/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java b/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java index ee87cfdf67f..55776b32805 100644 --- a/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java +++ b/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java @@ -19,19 +19,6 @@ import static com.google.common.truth.Truth.assertThat; import static junit.framework.TestCase.assertNotNull; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.GcsSource; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.GlossaryInputConfig; -import com.google.cloud.translate.v3.GlossaryName; -import com.google.cloud.translate.v3.LocationName; -import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -39,7 +26,6 @@ import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; diff --git a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java index 78480b78fc3..a9a5fb8a42c 100644 --- a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java +++ b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java @@ -26,9 +26,7 @@ import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -/** - * Tests for quickstart sample. - */ +/** Tests for quickstart sample. */ @RunWith(JUnit4.class) @SuppressWarnings("checkstyle:abbreviationaswordinname") public class QuickstartSampleIT { diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java index dc68fa0fa92..80d269fcffe 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java @@ -19,19 +19,6 @@ import static com.google.common.truth.Truth.assertThat; import static junit.framework.TestCase.assertNotNull; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.GcsSource; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.GlossaryInputConfig; -import com.google.cloud.translate.v3.GlossaryName; -import com.google.cloud.translate.v3.LocationName; -import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -39,7 +26,6 @@ import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java index ad7f560195b..3b2be95994e 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java @@ -19,19 +19,6 @@ import static com.google.common.truth.Truth.assertThat; import static junit.framework.TestCase.assertNotNull; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.translate.v3.CreateGlossaryMetadata; -import com.google.cloud.translate.v3.CreateGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryMetadata; -import com.google.cloud.translate.v3.DeleteGlossaryRequest; -import com.google.cloud.translate.v3.DeleteGlossaryResponse; -import com.google.cloud.translate.v3.GcsSource; -import com.google.cloud.translate.v3.Glossary; -import com.google.cloud.translate.v3.GlossaryInputConfig; -import com.google.cloud.translate.v3.GlossaryName; -import com.google.cloud.translate.v3.LocationName; -import com.google.cloud.translate.v3.TranslationServiceClient; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -39,7 +26,6 @@ import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; - import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; From 64e433547179f6b0283028a0cdaf7ad5ff6740a7 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Fri, 14 Aug 2020 14:10:30 -0700 Subject: [PATCH 220/356] samples: fix test dependencies --- translate/snippets/pom.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 067025014c4..25084c2af25 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -42,8 +42,11 @@ com.google.cloud google-cloud-translate
- - + + + com.google.cloud + google-cloud-storage + junit junit @@ -56,5 +59,7 @@ 1.0.1 test + + From 1830a59c67d4f211c9d9b38802e11f4ba9ca7525 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Aug 2020 00:04:13 +0200 Subject: [PATCH 221/356] chore(deps): update dependency com.google.cloud:libraries-bom to v9.1.0 --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 25084c2af25..896632c2ae6 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 9.0.0 + 9.1.0 pom import From 63f9a8a7433ccd95f5e4c3afdabd127c4a186979 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Wed, 26 Aug 2020 15:36:21 -0700 Subject: [PATCH 222/356] fix: increase batch translate timeout to 300 (#274) --- .../src/main/java/com/example/translate/BatchTranslateText.java | 2 +- .../com/example/translate/BatchTranslateTextWithGlossary.java | 2 +- .../translate/BatchTranslateTextWithGlossaryAndModel.java | 2 +- .../java/com/example/translate/BatchTranslateTextWithModel.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java index 118cf6bff97..690525258c4 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java @@ -85,7 +85,7 @@ public static void batchTranslateText( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(180, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(300, TimeUnit.SECONDS); System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); } diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java index a839d500ac4..21780b74249 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -103,7 +103,7 @@ public static void batchTranslateTextWithGlossary( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(180, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(300, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index 92615eb1b4c..652709091ff 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -110,7 +110,7 @@ public static void batchTranslateTextWithGlossaryAndModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(180, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(300, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java index acce714753a..2232724c7ba 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java @@ -100,7 +100,7 @@ public static void batchTranslateTextWithModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(180, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(300, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); From 01b1ea4df2d06f9eef7def14cc22729aa0c37d3d Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Tue, 22 Sep 2020 12:43:46 -0700 Subject: [PATCH 223/356] samples: increased timeout up to 450 secs since batch LRO reaches 5 min mark sometimes (#286) --- .../src/main/java/com/example/translate/BatchTranslateText.java | 2 +- .../com/example/translate/BatchTranslateTextWithGlossary.java | 2 +- .../translate/BatchTranslateTextWithGlossaryAndModel.java | 2 +- .../java/com/example/translate/BatchTranslateTextWithModel.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java index 690525258c4..3f547a9db73 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java @@ -85,7 +85,7 @@ public static void batchTranslateText( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(300, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(450, TimeUnit.SECONDS); System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); } diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java index 21780b74249..8b270bb68d7 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -103,7 +103,7 @@ public static void batchTranslateTextWithGlossary( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(300, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(450, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index 652709091ff..8ecab29c8a1 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -110,7 +110,7 @@ public static void batchTranslateTextWithGlossaryAndModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(300, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(450, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java index 2232724c7ba..c8c906619ac 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java @@ -100,7 +100,7 @@ public static void batchTranslateTextWithModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(300, TimeUnit.SECONDS); + BatchTranslateResponse response = future.get(450, TimeUnit.SECONDS); // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); From 1172de48a509a1be79eb0517809ea76abe275f6a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 23 Sep 2020 01:40:23 +0200 Subject: [PATCH 224/356] chore(deps): update dependency com.google.cloud:libraries-bom to v10 (#280) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `9.1.0` -> `10.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 896632c2ae6..3ab5ac26393 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 9.1.0 + 10.1.0 pom import From 35c3cea94768766957e1d31d0e7359f53378c9a5 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Fri, 9 Oct 2020 11:56:13 -0700 Subject: [PATCH 225/356] samples: Translate flaky tests (#297) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #292 #268 #267 ☕️ This is the draft I do not know it is considered as good test design using base class I basically got the idea from the stack overflow answer: https://stackoverflow.com/questions/8295100/how-to-re-run-failed-junit-tests-immediately --- .../example/translate/BatchTranslateText.java | 7 +- .../BatchTranslateTextWithGlossary.java | 7 +- ...atchTranslateTextWithGlossaryAndModel.java | 7 +- .../BatchTranslateTextWithModel.java | 7 +- .../translate/BatchTranslateTextTests.java | 9 ++- ...ranslateTextWithGlossaryAndModelTests.java | 8 ++- .../BatchTranslateTextWithGlossaryTests.java | 8 ++- .../BatchTranslateTextWithModelTests.java | 8 ++- .../java/com/example/translate/Retry.java | 65 +++++++++++++++++++ 9 files changed, 118 insertions(+), 8 deletions(-) create mode 100644 translate/snippets/src/test/java/com/example/translate/Retry.java diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java index 3f547a9db73..d36b9962b15 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java @@ -29,6 +29,7 @@ import com.google.cloud.translate.v3.TranslationServiceClient; import java.io.IOException; import java.util.concurrent.ExecutionException; +import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; @@ -85,7 +86,11 @@ public static void batchTranslateText( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(450, TimeUnit.SECONDS); + + // random number between 300 - 450 (maximum allowed seconds) + long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); + BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); + System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); } diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java index 8b270bb68d7..1a69412fa9e 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -31,6 +31,7 @@ import com.google.cloud.translate.v3.TranslationServiceClient; import java.io.IOException; import java.util.concurrent.ExecutionException; +import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; @@ -103,7 +104,11 @@ public static void batchTranslateTextWithGlossary( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(450, TimeUnit.SECONDS); + + // random number between 300 - 450 (maximum allowed seconds) + long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); + BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); + // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index 8ecab29c8a1..049dac579c1 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -31,6 +31,7 @@ import com.google.cloud.translate.v3.TranslationServiceClient; import java.io.IOException; import java.util.concurrent.ExecutionException; +import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; @@ -110,7 +111,11 @@ public static void batchTranslateTextWithGlossaryAndModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(450, TimeUnit.SECONDS); + + // random number between 300 - 450 (maximum allowed seconds) + long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); + BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); + // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java index c8c906619ac..da0624618b4 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java @@ -29,6 +29,7 @@ import com.google.cloud.translate.v3.TranslationServiceClient; import java.io.IOException; import java.util.concurrent.ExecutionException; +import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; @@ -100,7 +101,11 @@ public static void batchTranslateTextWithModel( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - BatchTranslateResponse response = future.get(450, TimeUnit.SECONDS); + + // random number between 300 - 450 (maximum allowed seconds) + long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); + BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); + // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index 2b41f00d9ac..24ac82dee2a 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -32,6 +32,7 @@ import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -48,6 +49,7 @@ public class BatchTranslateTextTests { private ByteArrayOutputStream bout; private PrintStream out; + @Rule public Retry retry = new Retry(3); private static void cleanUpBucket() { Storage storage = StorageOptions.getDefaultInstance().getService(); @@ -87,23 +89,28 @@ public static void checkRequirements() { requireEnvVar("GOOGLE_CLOUD_PROJECT"); } + private PrintStream originalPrintStream; + @Before public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { cleanUpBucket(); - System.setOut(null); + System.out.flush(); + System.setOut(originalPrintStream); } @Test public void testBatchTranslateText() throws InterruptedException, ExecutionException, IOException, TimeoutException { BatchTranslateText.batchTranslateText(PROJECT_ID, "en", "es", INPUT_URI, OUTPUT_URI); + String got = bout.toString(); assertThat(got).contains("Total Characters: 13"); } diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index b88419d9d5f..0f079dc6307 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -34,6 +34,7 @@ import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -56,6 +57,7 @@ public class BatchTranslateTextWithGlossaryAndModelTests { private ByteArrayOutputStream bout; private PrintStream out; + @Rule public Retry retry = new Retry(3); private static final void cleanUpBucket() { Storage storage = StorageOptions.getDefaultInstance().getService(); @@ -95,6 +97,8 @@ public static void checkRequirements() { requireEnvVar("GOOGLE_CLOUD_PROJECT"); } + private PrintStream originalPrintStream; + @Before public void setUp() throws InterruptedException, ExecutionException, IOException { // Create a glossary that can be used in the test @@ -107,6 +111,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @@ -115,7 +120,8 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept cleanUpBucket(); // Delete the created glossary DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); - System.setOut(null); + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index 92258d8ee89..4ee05d89752 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -34,6 +34,7 @@ import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -55,6 +56,7 @@ public class BatchTranslateTextWithGlossaryTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static final void cleanUpBucket() { Storage storage = StorageOptions.getDefaultInstance().getService(); @@ -106,6 +108,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @@ -115,9 +118,12 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept cleanUpBucket(); // Delete the created glossary DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); - System.setOut(null); + System.out.flush(); + System.setOut(originalPrintStream); } + @Rule public Retry retry = new Retry(3); + @Test public void testBatchTranslateTextWithGlossary() throws InterruptedException, ExecutionException, IOException, TimeoutException { diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index db7ef195c18..4a37362c3ef 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -32,6 +32,7 @@ import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -50,6 +51,7 @@ public class BatchTranslateTextWithModelTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static final void cleanUpBucket() { Storage storage = StorageOptions.getDefaultInstance().getService(); @@ -93,15 +95,19 @@ public static void checkRequirements() { public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { cleanUpBucket(); - System.setOut(null); + System.out.flush(); + System.setOut(originalPrintStream); } + @Rule public Retry retry = new Retry(3); + @Test public void testBatchTranslateTextWithModel() throws InterruptedException, ExecutionException, IOException, TimeoutException { diff --git a/translate/snippets/src/test/java/com/example/translate/Retry.java b/translate/snippets/src/test/java/com/example/translate/Retry.java new file mode 100644 index 00000000000..6ce19e0ac6f --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translate/Retry.java @@ -0,0 +1,65 @@ +/* + * 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 + * + * 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. + */ + +package com.example.translate; + +import java.util.Objects; +import org.junit.rules.TestRule; +import org.junit.runner.Description; +import org.junit.runners.model.Statement; + +public class Retry implements TestRule { + private int maxAttempts; + + public Retry(int maxAttempts) { + this.maxAttempts = maxAttempts; + } + + @Override + public Statement apply(Statement base, Description description) { + return statement(base, description); + } + + private Statement statement(final Statement base, final Description description) { + return new Statement() { + @Override + public void evaluate() throws Throwable { + Throwable caughtThrowable = null; + + // implement retry logic here + int factor = 1; + for (int attempt = 0; attempt < maxAttempts; attempt++) { + try { + base.evaluate(); + return; + } catch (Throwable t) { + caughtThrowable = t; + + // random_number_milliseconds that is less than or equal to 1000. + int randomNumberMilliseconds = (int) Math.floor(Math.random() * 1000) + 1; + Thread.sleep(1300 * factor + randomNumberMilliseconds); + System.out.println(description.getDisplayName() + ": run " + (attempt + 1) + " failed"); + factor += 1; + + } + } + System.out.println( + description.getDisplayName() + ": giving up after " + maxAttempts + " failures"); + throw Objects.requireNonNull(caughtThrowable); + } + }; + } +} From e2717a55652bb4f2afc920a5029db19e0e20ed35 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 16 Oct 2020 00:46:16 +0200 Subject: [PATCH 226/356] chore(deps): update dependency com.google.cloud:libraries-bom to v12 (#306) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `10.1.0` -> `12.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 3ab5ac26393..24c242bbf29 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 10.1.0 + 12.0.0 pom import From 4e54dfc517cb5f8060e46b96d82bce17cef6503f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 16 Oct 2020 18:15:01 +0200 Subject: [PATCH 227/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.21 (#303) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](com/google/cloud/samples/shared-configuration) | patch | `1.0.18` -> `1.0.21` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 24c242bbf29..85e8c40d399 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.18 + 1.0.21 From 0696e1bb8511672f29ac4692178bcceafdb6e05a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 19 Oct 2020 20:11:54 +0200 Subject: [PATCH 228/356] chore(deps): update dependency com.google.cloud:libraries-bom to v12.1.0 (#314) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 85e8c40d399..373cac0c85d 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 12.0.0 + 12.1.0 pom import From 73318c68a230599740798c0eee2e41d1599ef7dc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Oct 2020 01:32:38 +0200 Subject: [PATCH 229/356] test(deps): update dependency junit:junit to v4.13.1 (#305) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 373cac0c85d..3ea4ddc48ce 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -50,7 +50,7 @@ junit junit - 4.13 + 4.13.1 test From 766240588333f9e3caa6ed1c29b157280fc7f6fc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Oct 2020 21:34:08 +0200 Subject: [PATCH 230/356] chore(deps): update dependency com.google.cloud:libraries-bom to v13 (#322) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `12.1.0` -> `13.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 3ea4ddc48ce..7253f74e730 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 12.1.0 + 13.1.0 pom import From 3538d35b5f5386095525764427a278c59d91375f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 22 Oct 2020 21:36:37 +0200 Subject: [PATCH 231/356] test(deps): update dependency com.google.truth:truth to v1.1 (#321) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.truth:truth](com/google/truth/truth) | minor | `1.0.1` -> `1.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 7253f74e730..21f2062e123 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -56,7 +56,7 @@ com.google.truth truth - 1.0.1 + 1.1 test From 311c0eea9d2ff9f2b207208627140cd867765799 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Oct 2020 00:58:06 +0100 Subject: [PATCH 232/356] chore(deps): update dependency com.google.cloud:libraries-bom to v13.2.0 (#325) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.1.0` -> `13.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 21f2062e123..d36274af43c 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.1.0 + 13.2.0 pom import From d2406df243ea2f7c2716307c50abda66c8fd4546 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 31 Oct 2020 00:02:03 +0100 Subject: [PATCH 233/356] chore(deps): update dependency com.google.cloud:libraries-bom to v13.3.0 (#326) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index d36274af43c..7b37bba6717 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.2.0 + 13.3.0 pom import From 18a35f276bbec734164ff0e99a28ba4961f21282 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 31 Oct 2020 00:34:17 +0100 Subject: [PATCH 234/356] chore(deps): update dependency com.google.cloud:libraries-bom to v13.4.0 (#333) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.3.0` -> `13.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 7b37bba6717..4384206459f 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.3.0 + 13.4.0 pom import From d58398b2fc1f81a2f1f6a8b2aef63660929de4f9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Nov 2020 18:00:34 +0100 Subject: [PATCH 235/356] chore(deps): update dependency com.google.cloud:libraries-bom to v16 (#351) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `13.4.0` -> `16.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 4384206459f..3ce79216695 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.4.0 + 16.1.0 pom import From a780f7ad2b29d96c0bdb1d575fb87d30f7f9a85b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Dec 2020 23:30:11 +0100 Subject: [PATCH 236/356] chore(deps): update dependency com.google.cloud:libraries-bom to v16.2.0 (#374) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `16.1.0` -> `16.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 3ce79216695..791d1f3629a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.1.0 + 16.2.0 pom import From 6774945dcbe027b4a3983e8dc09e5a3bf9faf4a0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Jan 2021 17:22:04 +0100 Subject: [PATCH 237/356] test(deps): update dependency com.google.truth:truth to v1.1.2 (#393) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 791d1f3629a..e6f1148542a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -56,7 +56,7 @@ com.google.truth truth - 1.1 + 1.1.2 test From 18528eded7a31da8c2676e38bb88f1c5035aeea3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Jan 2021 17:22:19 +0100 Subject: [PATCH 238/356] chore(deps): update dependency com.google.cloud:libraries-bom to v16.3.0 (#385) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index e6f1148542a..6fe2d42ea5a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.2.0 + 16.3.0 pom import From 58bc95a2cd8280926e2f1680a00bb1aca2ed816c Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Thu, 28 Jan 2021 10:41:01 -0800 Subject: [PATCH 239/356] =?UTF-8?q?chore:=20removed=20retry=20class=20and?= =?UTF-8?q?=20used=20com.google.cloud.testing.Multiple=E2=80=A6=20(#398)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: removed retry class and used com.google.cloud.testing.MultipleAttempt * xed lint --- translate/snippets/pom.xml | 7 ++ .../translate/BatchTranslateTextTests.java | 5 +- ...ranslateTextWithGlossaryAndModelTests.java | 5 +- .../BatchTranslateTextWithGlossaryTests.java | 4 +- .../BatchTranslateTextWithModelTests.java | 4 +- .../java/com/example/translate/Retry.java | 65 ------------------- 6 files changed, 21 insertions(+), 69 deletions(-) delete mode 100644 translate/snippets/src/test/java/com/example/translate/Retry.java diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6fe2d42ea5a..71184e1b564 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -59,6 +59,13 @@ 1.1.2 test + + com.google.cloud + google-cloud-core + 1.94.0 + test + tests + diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index 24ac82dee2a..c1fda2fd924 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -23,6 +23,7 @@ import com.google.cloud.storage.Blob; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; +import com.google.cloud.testing.junit4.MultipleAttemptsRule; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -49,7 +50,6 @@ public class BatchTranslateTextTests { private ByteArrayOutputStream bout; private PrintStream out; - @Rule public Retry retry = new Retry(3); private static void cleanUpBucket() { Storage storage = StorageOptions.getDefaultInstance().getService(); @@ -106,6 +106,9 @@ public void tearDown() { System.setOut(originalPrintStream); } + @Rule + public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); + @Test public void testBatchTranslateText() throws InterruptedException, ExecutionException, IOException, TimeoutException { diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index 0f079dc6307..2d763def273 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -23,6 +23,7 @@ import com.google.cloud.storage.Blob; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; +import com.google.cloud.testing.junit4.MultipleAttemptsRule; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -57,7 +58,6 @@ public class BatchTranslateTextWithGlossaryAndModelTests { private ByteArrayOutputStream bout; private PrintStream out; - @Rule public Retry retry = new Retry(3); private static final void cleanUpBucket() { Storage storage = StorageOptions.getDefaultInstance().getService(); @@ -124,6 +124,9 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept System.setOut(originalPrintStream); } + @Rule + public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); + @Test public void testBatchTranslateTextWithGlossaryAndModel() throws InterruptedException, ExecutionException, IOException, TimeoutException { diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index 4ee05d89752..b7a003384a0 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -23,6 +23,7 @@ import com.google.cloud.storage.Blob; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; +import com.google.cloud.testing.junit4.MultipleAttemptsRule; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -122,7 +123,8 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept System.setOut(originalPrintStream); } - @Rule public Retry retry = new Retry(3); + @Rule + public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); @Test public void testBatchTranslateTextWithGlossary() diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index 4a37362c3ef..ffa6c089342 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -23,6 +23,7 @@ import com.google.cloud.storage.Blob; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; +import com.google.cloud.testing.junit4.MultipleAttemptsRule; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -106,7 +107,8 @@ public void tearDown() { System.setOut(originalPrintStream); } - @Rule public Retry retry = new Retry(3); + @Rule + public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); @Test public void testBatchTranslateTextWithModel() diff --git a/translate/snippets/src/test/java/com/example/translate/Retry.java b/translate/snippets/src/test/java/com/example/translate/Retry.java deleted file mode 100644 index 6ce19e0ac6f..00000000000 --- a/translate/snippets/src/test/java/com/example/translate/Retry.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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 - * - * 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. - */ - -package com.example.translate; - -import java.util.Objects; -import org.junit.rules.TestRule; -import org.junit.runner.Description; -import org.junit.runners.model.Statement; - -public class Retry implements TestRule { - private int maxAttempts; - - public Retry(int maxAttempts) { - this.maxAttempts = maxAttempts; - } - - @Override - public Statement apply(Statement base, Description description) { - return statement(base, description); - } - - private Statement statement(final Statement base, final Description description) { - return new Statement() { - @Override - public void evaluate() throws Throwable { - Throwable caughtThrowable = null; - - // implement retry logic here - int factor = 1; - for (int attempt = 0; attempt < maxAttempts; attempt++) { - try { - base.evaluate(); - return; - } catch (Throwable t) { - caughtThrowable = t; - - // random_number_milliseconds that is less than or equal to 1000. - int randomNumberMilliseconds = (int) Math.floor(Math.random() * 1000) + 1; - Thread.sleep(1300 * factor + randomNumberMilliseconds); - System.out.println(description.getDisplayName() + ": run " + (attempt + 1) + " failed"); - factor += 1; - - } - } - System.out.println( - description.getDisplayName() + ": giving up after " + maxAttempts + " failures"); - throw Objects.requireNonNull(caughtThrowable); - } - }; - } -} From 680fca57de8211787dbc48473c5109780d7abb5a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 5 Feb 2021 14:55:45 +0100 Subject: [PATCH 240/356] deps: update dependency com.google.cloud:google-cloud-core to v1.94.1 (#409) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 71184e1b564..968541d184d 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.94.0 + 1.94.1 test tests From f69b4dc5ed9b889943aa7e35a92aa1d518cc892b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Feb 2021 19:41:55 +0100 Subject: [PATCH 241/356] chore(deps): update dependency com.google.cloud:libraries-bom to v16.4.0 (#414) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 968541d184d..1c2a7b57acd 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.3.0 + 16.4.0 pom import From a0686de899ed1067a70f3723117b7062f1a53817 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Feb 2021 19:06:08 +0100 Subject: [PATCH 242/356] test(deps): update dependency junit:junit to v4.13.2 (#418) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [junit:junit](http://junit.org) ([source](https://togithub.com/junit-team/junit4)) | `4.13.1` -> `4.13.2` | [![age](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/compatibility-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/confidence-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 1c2a7b57acd..e4e438fda7e 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -50,7 +50,7 @@ junit junit - 4.13.1 + 4.13.2 test From 30aafe7451c217cb89f4e61d97f04fcb3eecbed1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Feb 2021 20:36:31 +0100 Subject: [PATCH 243/356] chore(deps): update dependency com.google.cloud:libraries-bom to v17 (#438) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `16.4.0` -> `17.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/compatibility-slim/16.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/confidence-slim/16.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index e4e438fda7e..143606f1489 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.4.0 + 17.0.0 pom import From 9968f423e96fc2e1220f2827c525c9b727452bab Mon Sep 17 00:00:00 2001 From: Suraj Dhamecha <48670070+suraj-qlogic@users.noreply.github.com> Date: Thu, 25 Feb 2021 04:24:35 +0530 Subject: [PATCH 244/356] refactor(samples): restore stdout to original state after test (#379) --- .../java/com/example/translate/CreateGlossaryTests.java | 7 +++++-- .../java/com/example/translate/DeleteGlossaryTests.java | 6 +++++- .../java/com/example/translate/DetectLanguageTests.java | 6 +++++- .../test/java/com/example/translate/GetGlossaryTests.java | 6 +++++- .../translate/GetSupportedLanguagesForTargetTests.java | 6 +++++- .../com/example/translate/GetSupportedLanguagesTests.java | 6 +++++- .../java/com/example/translate/ListGlossariesTests.java | 6 +++++- .../java/com/example/translate/QuickstartSampleIT.java | 6 +++++- .../java/com/example/translate/TranslateTextTests.java | 6 +++++- .../translate/TranslateTextWithGlossaryAndModelTests.java | 6 +++++- .../example/translate/TranslateTextWithGlossaryTests.java | 6 +++++- .../com/example/translate/TranslateTextWithModelTests.java | 6 +++++- 12 files changed, 60 insertions(+), 13 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java index 258dd37813f..3dc98bc1b18 100644 --- a/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java @@ -45,6 +45,7 @@ public class CreateGlossaryTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -62,6 +63,7 @@ public static void checkRequirements() { public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @@ -69,8 +71,9 @@ public void setUp() { public void tearDown() throws InterruptedException, ExecutionException, IOException { // Delete the created glossary DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); - - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java index 800a32361c0..0a5f4ce0181 100644 --- a/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/DeleteGlossaryTests.java @@ -46,6 +46,7 @@ public class DeleteGlossaryTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -71,12 +72,15 @@ public void setUp() throws InterruptedException, ExecutionException, IOException bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/DetectLanguageTests.java b/translate/snippets/src/test/java/com/example/translate/DetectLanguageTests.java index c93b7a11f57..0f756a4e4f1 100644 --- a/translate/snippets/src/test/java/com/example/translate/DetectLanguageTests.java +++ b/translate/snippets/src/test/java/com/example/translate/DetectLanguageTests.java @@ -37,6 +37,7 @@ public class DetectLanguageTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -54,12 +55,15 @@ public static void checkRequirements() { public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java index b8ce2cdb99a..f157ca82f0c 100644 --- a/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java @@ -45,6 +45,7 @@ public class GetGlossaryTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -70,6 +71,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @@ -77,7 +79,9 @@ public void setUp() throws InterruptedException, ExecutionException, IOException public void tearDown() throws InterruptedException, ExecutionException, IOException { // Delete the created glossary DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java b/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java index 1381c0af96c..238e6af53c3 100644 --- a/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java +++ b/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java @@ -37,6 +37,7 @@ public class GetSupportedLanguagesForTargetTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -54,12 +55,15 @@ public static void checkRequirements() { public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesTests.java b/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesTests.java index da63a936967..e2da272b992 100644 --- a/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesTests.java +++ b/translate/snippets/src/test/java/com/example/translate/GetSupportedLanguagesTests.java @@ -37,6 +37,7 @@ public class GetSupportedLanguagesTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -54,12 +55,15 @@ public static void checkRequirements() { public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java b/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java index 55776b32805..62c68c40c1a 100644 --- a/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java +++ b/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java @@ -46,6 +46,7 @@ public class ListGlossariesTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -71,6 +72,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @@ -78,7 +80,9 @@ public void setUp() throws InterruptedException, ExecutionException, IOException public void tearDown() throws InterruptedException, ExecutionException, IOException { // Delete the created glossary DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java index a9a5fb8a42c..1565cb4a3a8 100644 --- a/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java +++ b/translate/snippets/src/test/java/com/example/translate/QuickstartSampleIT.java @@ -32,17 +32,21 @@ public class QuickstartSampleIT { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; @Before public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextTests.java index 0c6ddbd835d..6d93272fcec 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextTests.java @@ -37,6 +37,7 @@ public class TranslateTextTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -54,12 +55,15 @@ public static void checkRequirements() { public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java index 80d269fcffe..6991cb64dad 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java @@ -46,6 +46,7 @@ public class TranslateTextWithGlossaryAndModelTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -71,6 +72,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @@ -79,7 +81,9 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept // Clean up // Delete the created glossary DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java index 3b2be95994e..eb088760a6a 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java @@ -45,6 +45,7 @@ public class TranslateTextWithGlossaryTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -70,6 +71,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @@ -78,7 +80,9 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept // Clean up // Delete the created glossary DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java index 0864cefc69a..5d9a853e90d 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java @@ -38,6 +38,7 @@ public class TranslateTextWithModelTests { private ByteArrayOutputStream bout; private PrintStream out; + private PrintStream originalPrintStream; private static void requireEnvVar(String varName) { assertNotNull( @@ -55,12 +56,15 @@ public static void checkRequirements() { public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); + originalPrintStream = System.out; System.setOut(out); } @After public void tearDown() { - System.setOut(null); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); } @Test From db055c37dae11e746b2a8d66f62d89b9701591c5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Feb 2021 16:08:23 +0100 Subject: [PATCH 245/356] chore(deps): update dependency com.google.cloud:libraries-bom to v18 (#441) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `17.0.0` -> `18.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/compatibility-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/confidence-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 143606f1489..29af7530915 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 17.0.0 + 18.0.0 pom import From 092f4d6ccfe2674dc498650cc81d32da2d41d625 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Mar 2021 22:52:21 +0100 Subject: [PATCH 246/356] deps: update dependency com.google.cloud:google-cloud-core to v1.94.2 (#454) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 29af7530915..13d4035321e 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.94.1 + 1.94.2 test tests From 8ce79167299af69b60cdaa2b0b0bd2123164b23c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Mar 2021 20:36:12 +0100 Subject: [PATCH 247/356] chore(deps): update dependency com.google.cloud:libraries-bom to v19 (#460) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `18.0.0` -> `19.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/compatibility-slim/18.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/confidence-slim/18.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 13d4035321e..9e1b2ee61f3 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 18.0.0 + 19.0.0 pom import From cf6f68649aae127568701ecf7611e42d9ca88c15 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Mar 2021 20:42:58 +0100 Subject: [PATCH 248/356] deps: update dependency com.google.cloud:google-cloud-core to v1.94.3 (#457) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 9e1b2ee61f3..42cddf3e64b 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.94.2 + 1.94.3 test tests From f0cf1f5e51070207029a1c5421b7e7fc96e2d2da Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Mon, 8 Mar 2021 12:20:14 -0800 Subject: [PATCH 249/356] chore: adding new output for each test so that the following issue won't occur :Output dir is in use by another batch translation job. output_uri_prefix: (#464) --- .../translate/BatchTranslateTextWithGlossaryAndModelTests.java | 2 +- .../example/translate/BatchTranslateTextWithGlossaryTests.java | 2 +- .../com/example/translate/BatchTranslateTextWithModelTests.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index 2d763def273..b031a5ac04f 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -52,7 +52,7 @@ public class BatchTranslateTextWithGlossaryAndModelTests { private static final String MODEL_ID = "TRL2188848820815848149"; private static final String GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv"; - private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index b7a003384a0..d2b9ca1c210 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -51,7 +51,7 @@ public class BatchTranslateTextWithGlossaryTests { "gs://cloud-samples-data/translation/glossary_ja.csv"; private static final String GLOSSARY_ID = String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); - private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String PREFIX = "BATCH_TRANSLATION_GLOSSARY_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index ffa6c089342..e9f09b07916 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -46,7 +46,7 @@ public class BatchTranslateTextWithModelTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/custom_model_text.txt"; private static final String MODEL_ID = "TRL2188848820815848149"; - private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; + private static final String PREFIX = "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); From b82f8d0687160cf0bbd357b3b5ab1a677f8a22a5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 15 Mar 2021 21:12:23 +0100 Subject: [PATCH 250/356] deps: update dependency com.google.cloud:google-cloud-core to v1.94.4 (#471) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 42cddf3e64b..d610182e630 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.94.3 + 1.94.4 test tests From 48bac1687da429cae246af44cd3fb988fbb0d70d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Mar 2021 21:08:29 +0100 Subject: [PATCH 251/356] chore(deps): update dependency com.google.cloud:libraries-bom to v19.1.0 (#474) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.0.0` -> `19.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/compatibility-slim/19.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/confidence-slim/19.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index d610182e630..752eb7fe1b2 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.0.0 + 19.1.0 pom import From 5a6ac0dcf25c19041c48dbd6f75138e10a30ba27 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 19 Mar 2021 19:04:11 +0100 Subject: [PATCH 252/356] chore(deps): update dependency com.google.cloud:libraries-bom to v19.2.1 (#476) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.1.0` -> `19.2.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/compatibility-slim/19.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/confidence-slim/19.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 752eb7fe1b2..209692a5153 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.1.0 + 19.2.1 pom import From 4cd77a09efb1a2b289e303db181a147e8b8d9be4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 6 Apr 2021 02:08:03 +0200 Subject: [PATCH 253/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.22 (#482) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.cloud.samples:shared-configuration | `1.0.21` -> `1.0.22` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/compatibility-slim/1.0.21)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/confidence-slim/1.0.21)](https://docs.renovatebot.com/merge-confidence/) | --- ### 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 209692a5153..44983077bfb 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 From 137073171bb3560d9706cbab4926238e1af1a305 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Apr 2021 17:48:19 +0200 Subject: [PATCH 254/356] deps: update dependency com.google.cloud:google-cloud-core to v1.94.7 (#483) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `1.94.4` -> `1.94.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.7/compatibility-slim/1.94.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.7/confidence-slim/1.94.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v1.94.7`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1947-httpswwwgithubcomgoogleapisjava-corecomparev1946v1947-2021-04-12) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.94.6...v1.94.7) ### [`v1.94.6`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1946-httpswwwgithubcomgoogleapisjava-corecomparev1945v1946-2021-04-09) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.94.5...v1.94.6) ### [`v1.94.5`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1945-httpswwwgithubcomgoogleapisjava-corecomparev1944v1945-2021-04-08) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.94.4...v1.94.5)
--- ### 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 44983077bfb..aa60124f85b 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.94.4 + 1.94.7 test tests From 464656cef941f738989f8c93b5ae373f2177fdc5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Apr 2021 18:04:31 +0200 Subject: [PATCH 255/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20 (#488) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.2.1` -> `20.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/compatibility-slim/19.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/confidence-slim/19.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index aa60124f85b..a876efece92 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.2.1 + 20.0.0 pom import From 290c08fa107f5a91c89cc98c791fe84482fc0ab7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 19 Apr 2021 16:44:11 +0200 Subject: [PATCH 256/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.1.0 (#499) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.0.0` -> `20.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/compatibility-slim/20.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/confidence-slim/20.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index a876efece92..6dbc109f357 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.0.0 + 20.1.0 pom import From 69f7ee435eae0f9c48b4083f55b6dc9afd96e19e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 23 Apr 2021 04:04:06 +0200 Subject: [PATCH 257/356] deps: update dependency com.google.cloud:google-cloud-core to v1.94.8 (#505) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `1.94.7` -> `1.94.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.8/compatibility-slim/1.94.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.8/confidence-slim/1.94.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v1.94.8`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1948-httpswwwgithubcomgoogleapisjava-corecomparev1947v1948-2021-04-23) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.94.7...v1.94.8)
--- ### 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6dbc109f357..70c45e43954 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.94.7 + 1.94.8 test tests From ab1f7d93f561f196b5a12d437826bffb83cfeb84 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Apr 2021 16:40:16 +0200 Subject: [PATCH 258/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.2.0 (#513) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.1.0` -> `20.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/compatibility-slim/20.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/confidence-slim/20.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 70c45e43954..8dc4f1e38c8 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.1.0 + 20.2.0 pom import From a64d99e911ec105fca8578c3472abf878809575c Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Wed, 12 May 2021 14:09:12 -0700 Subject: [PATCH 259/356] =?UTF-8?q?chore:=20removed=20glossary=20from=20se?= =?UTF-8?q?tup=20and=20teardown,=20Replaced=20with=20predef=E2=80=A6=20(#5?= =?UTF-8?q?27)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: removed glossary from setup and teardown, Replaced with predefined glossary * chore: fixed nit --- .../BatchTranslateTextWithGlossary.java | 4 ++-- ...atchTranslateTextWithGlossaryAndModel.java | 2 +- ...ranslateTextWithGlossaryAndModelTests.java | 21 ++++--------------- .../BatchTranslateTextWithGlossaryTests.java | 21 ++++--------------- .../example/translate/GetGlossaryTests.java | 17 +++------------ .../translate/ListGlossariesTests.java | 19 +++-------------- ...ranslateTextWithGlossaryAndModelTests.java | 19 +++-------------- .../TranslateTextWithGlossaryTests.java | 19 +++-------------- 8 files changed, 23 insertions(+), 99 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java index 1a69412fa9e..1e0eba9bbe7 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -104,11 +104,11 @@ public static void batchTranslateTextWithGlossary( client.batchTranslateTextAsync(request); System.out.println("Waiting for operation to complete..."); - + // random number between 300 - 450 (maximum allowed seconds) long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); - + // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index 049dac579c1..d6df08adbbf 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -115,7 +115,7 @@ public static void batchTranslateTextWithGlossaryAndModel( // random number between 300 - 450 (maximum allowed seconds) long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); - + // Display the translation for each input text provided System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters()); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index b031a5ac04f..357bd88f26d 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -27,8 +27,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.ArrayList; -import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; @@ -47,11 +45,8 @@ public class BatchTranslateTextWithGlossaryAndModelTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt"; - private static final String GLOSSARY_ID = - String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private static final String MODEL_ID = "TRL2188848820815848149"; - private static final String GLOSSARY_INPUT_URI = - "gs://cloud-samples-data/translation/glossary_ja.csv"; private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); @@ -100,14 +95,9 @@ public static void checkRequirements() { private PrintStream originalPrintStream; @Before - public void setUp() throws InterruptedException, ExecutionException, IOException { - // Create a glossary that can be used in the test + public void setUp() { PrintStream temp = new PrintStream(new ByteArrayOutputStream()); System.setOut(temp); - List languageCodes = new ArrayList<>(); - languageCodes.add("en"); - languageCodes.add("ja"); - CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); bout = new ByteArrayOutputStream(); out = new PrintStream(bout); @@ -116,16 +106,13 @@ public void setUp() throws InterruptedException, ExecutionException, IOException } @After - public void tearDown() throws InterruptedException, ExecutionException, IOException { + public void tearDown() { cleanUpBucket(); - // Delete the created glossary - DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); System.out.flush(); System.setOut(originalPrintStream); } - @Rule - public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); + @Rule public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); @Test public void testBatchTranslateTextWithGlossaryAndModel() diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index d2b9ca1c210..f63135cda6d 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -27,8 +27,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.ArrayList; -import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; @@ -47,10 +45,7 @@ public class BatchTranslateTextWithGlossaryTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text_with_glossary.txt"; - private static final String GLOSSARY_INPUT_URI = - "gs://cloud-samples-data/translation/glossary_ja.csv"; - private static final String GLOSSARY_ID = - String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private static final String PREFIX = "BATCH_TRANSLATION_GLOSSARY_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); @@ -98,14 +93,9 @@ public static void checkRequirements() { } @Before - public void setUp() throws InterruptedException, ExecutionException, IOException { - // Create a glossary that can be used in the test + public void setUp() { PrintStream temp = new PrintStream(new ByteArrayOutputStream()); System.setOut(temp); - List languageCodes = new ArrayList<>(); - languageCodes.add("en"); - languageCodes.add("ja"); - CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); bout = new ByteArrayOutputStream(); out = new PrintStream(bout); @@ -114,17 +104,14 @@ public void setUp() throws InterruptedException, ExecutionException, IOException } @After - public void tearDown() throws InterruptedException, ExecutionException, IOException { + public void tearDown() { // Clean up cleanUpBucket(); - // Delete the created glossary - DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); System.out.flush(); System.setOut(originalPrintStream); } - @Rule - public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); + @Rule public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); @Test public void testBatchTranslateTextWithGlossary() diff --git a/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java index f157ca82f0c..dc58e333127 100644 --- a/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/GetGlossaryTests.java @@ -22,10 +22,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -40,8 +36,7 @@ public class GetGlossaryTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv"; - private static final String GLOSSARY_ID = - String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private ByteArrayOutputStream bout; private PrintStream out; @@ -60,14 +55,10 @@ public static void checkRequirements() { } @Before - public void setUp() throws InterruptedException, ExecutionException, IOException { + public void setUp() { // Create a glossary that can be used in the test PrintStream temp = new PrintStream(new ByteArrayOutputStream()); System.setOut(temp); - List languageCodes = new ArrayList<>(); - languageCodes.add("en"); - languageCodes.add("ja"); - CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); bout = new ByteArrayOutputStream(); out = new PrintStream(bout); @@ -76,9 +67,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException } @After - public void tearDown() throws InterruptedException, ExecutionException, IOException { - // Delete the created glossary - DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + public void tearDown() { // restores print statements in the original method System.out.flush(); System.setOut(originalPrintStream); diff --git a/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java b/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java index 62c68c40c1a..c50e97d8872 100644 --- a/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java +++ b/translate/snippets/src/test/java/com/example/translate/ListGlossariesTests.java @@ -22,10 +22,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -41,8 +37,6 @@ public class ListGlossariesTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv"; - private static final String GLOSSARY_ID = - String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); private ByteArrayOutputStream bout; private PrintStream out; @@ -61,14 +55,9 @@ public static void checkRequirements() { } @Before - public void setUp() throws InterruptedException, ExecutionException, IOException { - // Create a glossary that can be used in the test + public void setUp() { PrintStream temp = new PrintStream(new ByteArrayOutputStream()); System.setOut(temp); - List languageCodes = new ArrayList<>(); - languageCodes.add("en"); - languageCodes.add("ja"); - CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); bout = new ByteArrayOutputStream(); out = new PrintStream(bout); @@ -77,9 +66,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException } @After - public void tearDown() throws InterruptedException, ExecutionException, IOException { - // Delete the created glossary - DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + public void tearDown() { // restores print statements in the original method System.out.flush(); System.setOut(originalPrintStream); @@ -89,7 +76,7 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept public void testListGlossaries() throws IOException { ListGlossaries.listGlossaries(PROJECT_ID); String got = bout.toString(); - assertThat(got).contains(GLOSSARY_ID); + assertThat(got).contains("Glossary name:"); assertThat(got).contains(GLOSSARY_INPUT_URI); } } diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java index 6991cb64dad..1e160921501 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java @@ -22,10 +22,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -41,8 +37,7 @@ public class TranslateTextWithGlossaryAndModelTests { private static final String MODEL_ID = "TRL2188848820815848149"; private static final String GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv"; - private static final String GLOSSARY_ID = - String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private ByteArrayOutputStream bout; private PrintStream out; @@ -61,14 +56,9 @@ public static void checkRequirements() { } @Before - public void setUp() throws InterruptedException, ExecutionException, IOException { - // Create a glossary that can be used in the test + public void setUp() { PrintStream temp = new PrintStream(new ByteArrayOutputStream()); System.setOut(temp); - List languageCodes = new ArrayList<>(); - languageCodes.add("en"); - languageCodes.add("ja"); - CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); bout = new ByteArrayOutputStream(); out = new PrintStream(bout); @@ -77,10 +67,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException } @After - public void tearDown() throws InterruptedException, ExecutionException, IOException { - // Clean up - // Delete the created glossary - DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + public void tearDown() { // restores print statements in the original method System.out.flush(); System.setOut(originalPrintStream); diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java index eb088760a6a..83a8054f6b3 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java @@ -22,10 +22,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; @@ -40,8 +36,7 @@ public class TranslateTextWithGlossaryTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv"; - private static final String GLOSSARY_ID = - String.format("test_%s", UUID.randomUUID().toString().replace("-", "_").substring(0, 26)); + private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private ByteArrayOutputStream bout; private PrintStream out; @@ -60,14 +55,9 @@ public static void checkRequirements() { } @Before - public void setUp() throws InterruptedException, ExecutionException, IOException { - // Create a glossary that can be used in the test + public void setUp() { PrintStream temp = new PrintStream(new ByteArrayOutputStream()); System.setOut(temp); - List languageCodes = new ArrayList<>(); - languageCodes.add("en"); - languageCodes.add("ja"); - CreateGlossary.createGlossary(PROJECT_ID, GLOSSARY_ID, languageCodes, GLOSSARY_INPUT_URI); bout = new ByteArrayOutputStream(); out = new PrintStream(bout); @@ -76,10 +66,7 @@ public void setUp() throws InterruptedException, ExecutionException, IOException } @After - public void tearDown() throws InterruptedException, ExecutionException, IOException { - // Clean up - // Delete the created glossary - DeleteGlossary.deleteGlossary(PROJECT_ID, GLOSSARY_ID); + public void tearDown() { // restores print statements in the original method System.out.flush(); System.setOut(originalPrintStream); From 905654af0174642ac14c42229df490293624bf23 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 13 May 2021 15:56:15 +0200 Subject: [PATCH 260/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.3.0 (#523) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.2.0` -> `20.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/compatibility-slim/20.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/confidence-slim/20.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 8dc4f1e38c8..6197a6fa2d0 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.2.0 + 20.3.0 pom import From 329d6fb8cda20e6ab02476c6a4c6246d1b2bb00c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 17 May 2021 03:46:02 +0200 Subject: [PATCH 261/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.4.0 (#537) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.3.0` -> `20.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/compatibility-slim/20.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/confidence-slim/20.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6197a6fa2d0..0d29460696c 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.3.0 + 20.4.0 pom import From 5589af6720cd6932fd767b084700eebf9be88b91 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Wed, 19 May 2021 15:04:08 -0400 Subject: [PATCH 262/356] chore: migrate to owlbot (#540) --- .../java/com/example/translate/BatchTranslateTextTests.java | 3 +-- .../example/translate/BatchTranslateTextWithModelTests.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index c1fda2fd924..14531aae59e 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -106,8 +106,7 @@ public void tearDown() { System.setOut(originalPrintStream); } - @Rule - public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); + @Rule public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); @Test public void testBatchTranslateText() diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index e9f09b07916..fd16802cd36 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -107,8 +107,7 @@ public void tearDown() { System.setOut(originalPrintStream); } - @Rule - public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); + @Rule public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); @Test public void testBatchTranslateTextWithModel() From 4b5abb43b383db61b1f789a167983d005c7bdb3b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 26 May 2021 02:56:19 +0200 Subject: [PATCH 263/356] test(deps): update dependency com.google.truth:truth to v1.1.3 (#548) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 0d29460696c..b7dcbc5ff03 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -56,7 +56,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test From d76ecde19d78d9dc40978e1bad90ad1d44eaeca9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 26 May 2021 02:56:30 +0200 Subject: [PATCH 264/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.5.0 (#547) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index b7dcbc5ff03..7cb79029c67 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.4.0 + 20.5.0 pom import From 0c7909715367971f3c3c1300b8cbefda5c1247e8 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Thu, 3 Jun 2021 08:27:55 -0700 Subject: [PATCH 265/356] samples: changed AutoML model ID (#553) * samples: changed AutoML model ID * fix: test * fix: tests --- .../BatchTranslateTextWithGlossaryAndModelTests.java | 2 +- .../example/translate/BatchTranslateTextWithModelTests.java | 2 +- .../translate/TranslateTextWithGlossaryAndModelTests.java | 4 ++-- .../com/example/translate/TranslateTextWithModelTests.java | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index 357bd88f26d..12f63d4d50c 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -46,7 +46,7 @@ public class BatchTranslateTextWithGlossaryAndModelTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; - private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String MODEL_ID = "TRL3645318651705294848"; private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index fd16802cd36..5971609673f 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -45,7 +45,7 @@ public class BatchTranslateTextWithModelTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/custom_model_text.txt"; - private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String MODEL_ID = "TRL3645318651705294848"; private static final String PREFIX = "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java index 1e160921501..b25d7652717 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java @@ -34,7 +34,7 @@ @SuppressWarnings("checkstyle:abbreviationaswordinname") public class TranslateTextWithGlossaryAndModelTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String MODEL_ID = "TRL3645318651705294848"; private static final String GLOSSARY_INPUT_URI = "gs://cloud-samples-data/translation/glossary_ja.csv"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; @@ -78,7 +78,7 @@ public void testTranslateTextWithGlossaryAndModel() throws IOException { TranslateTextWithGlossaryAndModel.translateTextWithGlossaryAndModel( PROJECT_ID, "en", "ja", "That' il do it. deception", GLOSSARY_ID, MODEL_ID); String got = bout.toString(); - assertThat(got).contains("それはそうだ"); // custom model + assertThat(got).contains("やるよ欺く"); // custom model assertThat(got).contains("欺く"); // glossary } } diff --git a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java index 5d9a853e90d..6c986c3b0a4 100644 --- a/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/TranslateTextWithModelTests.java @@ -34,7 +34,7 @@ @SuppressWarnings("checkstyle:abbreviationaswordinname") public class TranslateTextWithModelTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String MODEL_ID = "TRL2188848820815848149"; + private static final String MODEL_ID = "TRL3645318651705294848"; private ByteArrayOutputStream bout; private PrintStream out; @@ -72,6 +72,6 @@ public void testTranslateTextWithModel() throws IOException { TranslateTextWithModel.translateTextWithModel( PROJECT_ID, "en", "ja", "That' il do it. deception", MODEL_ID); String got = bout.toString(); - assertThat(got).contains("それはそうだ"); + assertThat(got).contains("やるよ欺瞞"); } } From da29e1b689b3cf0bccd0b43baa33cec8f72d300a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 7 Jun 2021 21:00:10 +0200 Subject: [PATCH 266/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.6.0 (#568) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.5.0` -> `20.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/compatibility-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/confidence-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 7cb79029c67..122774be0a8 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.5.0 + 20.6.0 pom import From a728e1373d2174aca3ae611490d2fb76bd6b55fd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Jun 2021 00:32:22 +0200 Subject: [PATCH 267/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.23 (#564) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.cloud.samples:shared-configuration | `1.0.22` -> `1.0.23` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/compatibility-slim/1.0.22)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/confidence-slim/1.0.22)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 122774be0a8..3e5085fbec9 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 From 379188b6d8409b508643df0194e503b99b47ba0d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Jun 2021 21:15:45 +0200 Subject: [PATCH 268/356] deps: update dependency com.google.cloud:google-cloud-core to v1.95.1 (#561) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 3e5085fbec9..3e5a8198aa4 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.94.8 + 1.95.1 test tests From 752e1ae1aa926099f54fae7f538c864e6b0c8f02 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Jun 2021 23:12:12 +0200 Subject: [PATCH 269/356] deps: update dependency com.google.cloud:google-cloud-core to v1.95.2 (#572) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `1.95.1` -> `1.95.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.2/compatibility-slim/1.95.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.2/confidence-slim/1.95.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v1.95.2`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1952-httpswwwgithubcomgoogleapisjava-corecomparev1951v1952-2021-06-09) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.95.1...v1.95.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 3e5a8198aa4..45150b6ebb9 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.95.1 + 1.95.2 test tests From d76d1e2722ce273a0cf9451ae570bb5db03564d4 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Fri, 18 Jun 2021 10:45:37 -0600 Subject: [PATCH 270/356] chore: fix batch test (#585) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: fix batch test * fixed nit * 🦉 Updates from OwlBot * Update samples/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java Co-authored-by: Averi Kitsch Co-authored-by: Owl Bot Co-authored-by: Averi Kitsch --- .../com/example/translate/BatchTranslateTextTests.java | 10 +++++++--- .../BatchTranslateTextWithGlossaryAndModelTests.java | 10 +++++++--- .../translate/BatchTranslateTextWithGlossaryTests.java | 10 +++++++--- .../translate/BatchTranslateTextWithModelTests.java | 10 +++++++--- 4 files changed, 28 insertions(+), 12 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index 14531aae59e..9fb051e80a4 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -42,11 +42,12 @@ @RunWith(JUnit4.class) @SuppressWarnings("checkstyle:abbreviationaswordinname") public class BatchTranslateTextTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text.txt"; - private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + private static final String PREFIX = + String.format("translation-%s/%s", UUID.randomUUID(), "BATCH_TRANSLATION_OUTPUT/"); + private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); private ByteArrayOutputStream bout; private PrintStream out; @@ -97,6 +98,9 @@ public void setUp() { out = new PrintStream(bout); originalPrintStream = System.out; System.setOut(out); + + // clean up bucket before the use to prevent concurrency issue. + cleanUpBucket(); } @After diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index 12f63d4d50c..c7e95e51c20 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -42,14 +42,15 @@ @RunWith(JUnit4.class) @SuppressWarnings("checkstyle:abbreviationaswordinname") public class BatchTranslateTextWithGlossaryAndModelTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private static final String MODEL_ID = "TRL3645318651705294848"; - private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + private static final String PREFIX = + String.format("translation-%s/%s", UUID.randomUUID(), "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"); + private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); private ByteArrayOutputStream bout; private PrintStream out; @@ -103,6 +104,9 @@ public void setUp() { out = new PrintStream(bout); originalPrintStream = System.out; System.setOut(out); + + // clear up bucket before the use to prevent concurrency issue. + cleanUpBucket(); } @After diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index f63135cda6d..950b733e962 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -42,13 +42,14 @@ @RunWith(JUnit4.class) @SuppressWarnings("checkstyle:abbreviationaswordinname") public class BatchTranslateTextWithGlossaryTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text_with_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; - private static final String PREFIX = "BATCH_TRANSLATION_GLOSSARY_OUTPUT/"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + private static final String PREFIX = + String.format("translation-%s/%s", UUID.randomUUID(), "BATCH_TRANSLATION_GLOSSARY_OUTPUT/"); + private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); private ByteArrayOutputStream bout; private PrintStream out; @@ -101,6 +102,9 @@ public void setUp() { out = new PrintStream(bout); originalPrintStream = System.out; System.setOut(out); + + // clear up bucket before the use to prevent concurrency issue. + cleanUpBucket(); } @After diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index 5971609673f..7fdc42ddbe8 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -42,13 +42,14 @@ @RunWith(JUnit4.class) @SuppressWarnings("checkstyle:abbreviationaswordinname") public class BatchTranslateTextWithModelTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/custom_model_text.txt"; private static final String MODEL_ID = "TRL3645318651705294848"; - private static final String PREFIX = "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT/"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + private static final String PREFIX = + String.format("translation-%s/%s", UUID.randomUUID(), "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT/"); + private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); private ByteArrayOutputStream bout; private PrintStream out; @@ -98,6 +99,9 @@ public void setUp() { out = new PrintStream(bout); originalPrintStream = System.out; System.setOut(out); + + // clear up bucket before the use to prevent concurrency issue. + cleanUpBucket(); } @After From c9fd14ef741e0165f1955edcdbacbed2d679ea26 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Mon, 21 Jun 2021 15:02:47 -0600 Subject: [PATCH 271/356] chore: Fix batch tests (#593) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: fix batch test * chore: revert model IDs * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md * chore: added / Co-authored-by: Owl Bot --- .../java/com/example/translate/BatchTranslateTextTests.java | 4 +--- .../BatchTranslateTextWithGlossaryAndModelTests.java | 4 +--- .../translate/BatchTranslateTextWithGlossaryTests.java | 4 +--- .../example/translate/BatchTranslateTextWithModelTests.java | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index 9fb051e80a4..abd031bf5a4 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -27,7 +27,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import org.junit.After; @@ -45,8 +44,7 @@ public class BatchTranslateTextTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text.txt"; - private static final String PREFIX = - String.format("translation-%s/%s", UUID.randomUUID(), "BATCH_TRANSLATION_OUTPUT/"); + private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); private ByteArrayOutputStream bout; diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index c7e95e51c20..7cdce709dfe 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -27,7 +27,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import org.junit.After; @@ -48,8 +47,7 @@ public class BatchTranslateTextWithGlossaryAndModelTests { "gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private static final String MODEL_ID = "TRL3645318651705294848"; - private static final String PREFIX = - String.format("translation-%s/%s", UUID.randomUUID(), "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"); + private static final String PREFIX = "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); private ByteArrayOutputStream bout; diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index 950b733e962..2e2bc576edd 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -27,7 +27,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import org.junit.After; @@ -47,8 +46,7 @@ public class BatchTranslateTextWithGlossaryTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/text_with_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; - private static final String PREFIX = - String.format("translation-%s/%s", UUID.randomUUID(), "BATCH_TRANSLATION_GLOSSARY_OUTPUT/"); + private static final String PREFIX = "BATCH_TRANSLATION_GLOSSARY_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); private ByteArrayOutputStream bout; diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index 7fdc42ddbe8..e999d659b74 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -27,7 +27,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; -import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import org.junit.After; @@ -47,8 +46,7 @@ public class BatchTranslateTextWithModelTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/custom_model_text.txt"; private static final String MODEL_ID = "TRL3645318651705294848"; - private static final String PREFIX = - String.format("translation-%s/%s", UUID.randomUUID(), "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT/"); + private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"; private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); private ByteArrayOutputStream bout; From 29693c992689981ce1b5dfdda6b9b1cd7890dac1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 23 Jun 2021 21:10:30 +0200 Subject: [PATCH 272/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.7.0 (#595) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.6.0` -> `20.7.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/compatibility-slim/20.6.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/confidence-slim/20.6.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 45150b6ebb9..13afc1c21b2 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.6.0 + 20.7.0 pom import From df0b9dc2e8c0d41432d60490042ea466fffb797a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 25 Jun 2021 18:17:49 +0200 Subject: [PATCH 273/356] deps: update dependency com.google.cloud:google-cloud-core to v1.95.3 (#594) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 13afc1c21b2..262b9ca1172 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.95.2 + 1.95.3 test tests From ef86108f89b23c2519de5acfa96217f32f7d40a9 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Mon, 28 Jun 2021 15:05:58 -0600 Subject: [PATCH 274/356] chore: refactered batch tests (#599) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: fix batch test * chore: revert model IDs * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md * chore: added / * test: refactored batch tests * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../java/com/example/translate/BatchTranslateTextTests.java | 6 ++++-- .../BatchTranslateTextWithGlossaryAndModelTests.java | 6 ++++-- .../translate/BatchTranslateTextWithGlossaryTests.java | 6 ++++-- .../example/translate/BatchTranslateTextWithModelTests.java | 6 ++++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index abd031bf5a4..450c83322a9 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -27,6 +27,7 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; +import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import org.junit.After; @@ -44,8 +45,9 @@ public class BatchTranslateTextTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text.txt"; - private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT/"; - private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); + private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT_"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index 7cdce709dfe..7499aa6c9a0 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -27,6 +27,7 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; +import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import org.junit.After; @@ -47,8 +48,9 @@ public class BatchTranslateTextWithGlossaryAndModelTests { "gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private static final String MODEL_ID = "TRL3645318651705294848"; - private static final String PREFIX = "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT/"; - private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); + private static final String PREFIX = "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT_"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index 2e2bc576edd..d19b76548c0 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -27,6 +27,7 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; +import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import org.junit.After; @@ -46,8 +47,9 @@ public class BatchTranslateTextWithGlossaryTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/text_with_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; - private static final String PREFIX = "BATCH_TRANSLATION_GLOSSARY_OUTPUT/"; - private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); + private static final String PREFIX = "BATCH_TRANSLATION_GLOSSARY_OUTPUT_"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index e999d659b74..c0a5a054f4d 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -27,6 +27,7 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; +import java.util.UUID; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import org.junit.After; @@ -46,8 +47,9 @@ public class BatchTranslateTextWithModelTests { private static final String INPUT_URI = "gs://cloud-samples-data/translation/custom_model_text.txt"; private static final String MODEL_ID = "TRL3645318651705294848"; - private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT/"; - private static final String OUTPUT_URI = String.format("gs://%s/%s", PROJECT_ID, PREFIX); + private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT_"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; From e6c54d7810a0d8e6160a4f3b0bae5b747c1ec281 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 2 Jul 2021 22:30:46 +0200 Subject: [PATCH 275/356] deps: update dependency com.google.cloud:google-cloud-core to v1.95.4 (#598) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `1.95.3` -> `1.95.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.4/compatibility-slim/1.95.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.4/confidence-slim/1.95.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v1.95.4`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1954-httpswwwgithubcomgoogleapisjava-corecomparev1953v1954-2021-06-25) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.95.3...v1.95.4)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 262b9ca1172..0185675d0f7 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.95.3 + 1.95.4 test tests From 3cfc9e10bc0dd340d9da14d55c4e238dab97a955 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Jul 2021 16:38:18 +0200 Subject: [PATCH 276/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.8.0 (#610) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.7.0` -> `20.8.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/compatibility-slim/20.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/confidence-slim/20.7.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 0185675d0f7..54e01fb8cc6 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.7.0 + 20.8.0 pom import From 44acf68b00ef7603891a603bbf5e5f15ccc8d121 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Jul 2021 02:52:48 +0200 Subject: [PATCH 277/356] chore(deps): update dependency com.google.cloud:libraries-bom to v20.9.0 (#636) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.8.0` -> `20.9.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/compatibility-slim/20.8.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/confidence-slim/20.8.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 54e01fb8cc6..da7da8eb0be 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.8.0 + 20.9.0 pom import From c1a29312bb8ddf00befc9a4300be4c372f92b84a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 10 Aug 2021 21:14:37 +0200 Subject: [PATCH 278/356] deps: update dependency com.google.cloud:google-cloud-core to v2 (#718) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index da7da8eb0be..a6a9d192266 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 1.95.4 + 2.0.2 test tests From 6be1f1230857b014ba958bdd6150501c4dafff99 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 11 Aug 2021 04:52:32 +0200 Subject: [PATCH 279/356] deps: update dependency com.google.cloud:google-cloud-core to v2.0.3 (#727) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.0.2` -> `2.0.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.3/compatibility-slim/2.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.3/confidence-slim/2.0.2)](https://docs.renovatebot.com/merge-confidence/) | *** ### Release Notes
googleapis/java-core ### [`v2.0.3`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​203-httpswwwgithubcomgoogleapisjava-corecomparev202v203-2021-08-10) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.0.2...v2.0.3)
*** ### Configuration 📅 **Schedule**: 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 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index a6a9d192266..67ad8ace5a0 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.0.2 + 2.0.3 test tests From eb1ea39ac53ea1d3250d56e773b6343395be580d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 12 Aug 2021 19:34:24 +0200 Subject: [PATCH 280/356] deps: update dependency com.google.cloud:google-cloud-core to v2.0.4 (#730) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.0.3` -> `2.0.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.4/compatibility-slim/2.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.4/confidence-slim/2.0.3)](https://docs.renovatebot.com/merge-confidence/) | *** ### Release Notes
googleapis/java-core ### [`v2.0.4`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​204-httpswwwgithubcomgoogleapisjava-corecomparev203v204-2021-08-11) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.0.3...v2.0.4)
*** ### Configuration 📅 **Schedule**: 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 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 67ad8ace5a0..4f0a4210104 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.0.3 + 2.0.4 test tests From 949aa7a68c1e185aaef9b6faaca148ccde5c8bd9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 13 Aug 2021 01:18:23 +0200 Subject: [PATCH 281/356] deps: update dependency com.google.cloud:google-cloud-core to v2.0.5 (#735) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.0.4` -> `2.0.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.5/compatibility-slim/2.0.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.5/confidence-slim/2.0.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.0.5`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​205-httpswwwgithubcomgoogleapisjava-corecomparev204v205-2021-08-11) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.0.4...v2.0.5)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 4f0a4210104..33c1b592a6e 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.0.4 + 2.0.5 test tests From 2283d102592c0b8cdf8c68780060b061716e8887 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Aug 2021 20:00:15 +0200 Subject: [PATCH 282/356] chore(deps): update dependency com.google.cloud:libraries-bom to v21 (#737) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.9.0` -> `21.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/compatibility-slim/20.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/confidence-slim/20.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 33c1b592a6e..6562621ce76 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.9.0 + 21.0.0 pom import From 65055aae7bd0824c413fbae8e49f56d2b1fd4a54 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 24 Aug 2021 20:06:20 +0200 Subject: [PATCH 283/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.0 (#745) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.0.5` -> `2.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.0/compatibility-slim/2.0.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.0/confidence-slim/2.0.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.1.0`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​210-httpswwwgithubcomgoogleapisjava-corecomparev205v210-2021-08-23) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.0.5...v2.1.0) ##### Features - support downloading an emulator from an access controlled URL ([#​513](https://www.togithub.com/googleapis/java-core/issues/513)) ([f42a707](https://www.github.com/googleapis/java-core/commit/f42a7078522461018da96196a67657809d28b15b)) ##### Dependencies - update dependency com.google.api:gax-bom to v2.3.0 ([#​523](https://www.togithub.com/googleapis/java-core/issues/523)) ([6fa1d96](https://www.github.com/googleapis/java-core/commit/6fa1d96d07a7d255e7564407364216436cad6ca3)) - update dependency com.google.auth:google-auth-library-bom to v1.1.0 ([#​526](https://www.togithub.com/googleapis/java-core/issues/526)) ([0fc1532](https://www.github.com/googleapis/java-core/commit/0fc1532183148d09c3005a68e528c6c438cb6ddd)) - update dependency com.google.code.gson:gson to v2.8.8 ([#​529](https://www.togithub.com/googleapis/java-core/issues/529)) ([92b7f97](https://www.github.com/googleapis/java-core/commit/92b7f9715eeab0a07b64437a62dd47e5eed006de)) - update dependency com.google.errorprone:error_prone_annotations to v2.9.0 ([#​528](https://www.togithub.com/googleapis/java-core/issues/528)) ([5ecba07](https://www.github.com/googleapis/java-core/commit/5ecba07336499fc6fddae4cfdc2bc12105ec9b66)) - update dependency io.grpc:grpc-bom to v1.40.0 ([#​525](https://www.togithub.com/googleapis/java-core/issues/525)) ([a1e81f7](https://www.github.com/googleapis/java-core/commit/a1e81f73a4cc29e7186adf37f1cb718c1a88f41e)) ##### [2.0.5](https://www.github.com/googleapis/java-core/compare/v2.0.4...v2.0.5) (2021-08-11) ##### Dependencies - update dependency com.google.api:gax-bom to v2.1.0 ([#​519](https://www.togithub.com/googleapis/java-core/issues/519)) ([266e2f7](https://www.github.com/googleapis/java-core/commit/266e2f75e83fe1fd635a1528deb38131b8bfc742)) ##### [2.0.4](https://www.github.com/googleapis/java-core/compare/v2.0.3...v2.0.4) (2021-08-11) ##### Dependencies - update dependency com.google.api:api-common to v2.0.1 ([#​516](https://www.togithub.com/googleapis/java-core/issues/516)) ([aa6abf3](https://www.github.com/googleapis/java-core/commit/aa6abf3cc458ca117ec009fb29a14fd4f5409ef3)) ##### [2.0.3](https://www.github.com/googleapis/java-core/compare/v2.0.2...v2.0.3) (2021-08-10) ##### Dependencies - update dependency com.google.errorprone:error_prone_annotations to v2.8.1 ([#​512](https://www.togithub.com/googleapis/java-core/issues/512)) ([6127b8f](https://www.github.com/googleapis/java-core/commit/6127b8f23ec267a4cf8daa794b88a5cd97f054e3)) ##### [2.0.2](https://www.github.com/googleapis/java-core/compare/v2.0.1...v2.0.2) (2021-08-03) ##### Features - release 2.0.2 ([#​509](https://www.togithub.com/googleapis/java-core/issues/509)) ([afbb532](https://www.github.com/googleapis/java-core/commit/afbb532965a9ab6f9e3eafbf9d5d8502dd29d1bb)) ##### [2.0.1](https://www.github.com/googleapis/java-core/compare/v2.0.0...v2.0.1) (2021-08-03) ##### Dependencies - update dependency com.google.api:gax-bom to v2 ([#​506](https://www.togithub.com/googleapis/java-core/issues/506)) ([a0c49a2](https://www.github.com/googleapis/java-core/commit/a0c49a2eb2579df78afccc6db021e78c3bd58493))
--- ### Configuration 📅 **Schedule**: 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 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6562621ce76..a3c117735d3 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.0.5 + 2.1.0 test tests From df82435a85883f22b20916903058aed6ef882a0c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 24 Aug 2021 22:12:11 +0200 Subject: [PATCH 284/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.1 (#750) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index a3c117735d3..ed5f395b437 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.0 + 2.1.1 test tests From 1d95c7d1c36e0b7c29494130b9d443f06eda47ad Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 27 Aug 2021 18:12:22 +0200 Subject: [PATCH 285/356] chore(deps): update dependency com.google.cloud:libraries-bom to v22 (#764) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `21.0.0` -> `22.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/compatibility-slim/21.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/confidence-slim/21.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index ed5f395b437..df68c8da116 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 21.0.0 + 22.0.0 pom import From 16c90a89457ad6caca0ce783d40e78bec71818d3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 31 Aug 2021 20:44:20 +0200 Subject: [PATCH 286/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.2 (#769) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.1` -> `2.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.2/compatibility-slim/2.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.2/confidence-slim/2.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.1.2`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​212-httpswwwgithubcomgoogleapisjava-corecomparev211v212-2021-08-31) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.1...v2.1.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index df68c8da116..219c6cfd55a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.1 + 2.1.2 test tests From 3d1de82224974d42cba032429c4721c7fee98618 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Wed, 8 Sep 2021 10:56:31 -0700 Subject: [PATCH 287/356] fix: extend timeout on batch translation requests (#775) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: extend timeout on batch translation requests * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../src/main/java/com/example/translate/BatchTranslateText.java | 2 +- .../com/example/translate/BatchTranslateTextWithGlossary.java | 2 +- .../translate/BatchTranslateTextWithGlossaryAndModel.java | 2 +- .../java/com/example/translate/BatchTranslateTextWithModel.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java index d36b9962b15..6f0f20138dd 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateText.java @@ -88,7 +88,7 @@ public static void batchTranslateText( System.out.println("Waiting for operation to complete..."); // random number between 300 - 450 (maximum allowed seconds) - long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); + long randomNumber = ThreadLocalRandom.current().nextInt(450, 600); BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); System.out.printf("Total Characters: %s\n", response.getTotalCharacters()); diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java index 1e0eba9bbe7..6c5b713c9bc 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java @@ -106,7 +106,7 @@ public static void batchTranslateTextWithGlossary( System.out.println("Waiting for operation to complete..."); // random number between 300 - 450 (maximum allowed seconds) - long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); + long randomNumber = ThreadLocalRandom.current().nextInt(450, 600); BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); // Display the translation for each input text provided diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java index d6df08adbbf..0fe8bd26802 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java @@ -113,7 +113,7 @@ public static void batchTranslateTextWithGlossaryAndModel( System.out.println("Waiting for operation to complete..."); // random number between 300 - 450 (maximum allowed seconds) - long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); + long randomNumber = ThreadLocalRandom.current().nextInt(450, 600); BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); // Display the translation for each input text provided diff --git a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java index da0624618b4..216a2060e30 100644 --- a/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java +++ b/translate/snippets/src/main/java/com/example/translate/BatchTranslateTextWithModel.java @@ -103,7 +103,7 @@ public static void batchTranslateTextWithModel( System.out.println("Waiting for operation to complete..."); // random number between 300 - 450 (maximum allowed seconds) - long randomNumber = ThreadLocalRandom.current().nextInt(300, 450); + long randomNumber = ThreadLocalRandom.current().nextInt(450, 600); BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS); // Display the translation for each input text provided From fb1b47c3357e02b81b2cc108a6930d67533e77f8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 13 Sep 2021 18:56:38 +0200 Subject: [PATCH 288/356] chore(deps): update dependency com.google.cloud:libraries-bom to v23 (#779) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `22.0.0` -> `23.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/compatibility-slim/22.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/confidence-slim/22.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 219c6cfd55a..c747672068b 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 22.0.0 + 23.0.0 pom import From 05fc933294db3c7bc5d34c5a15483b67937e922e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 13 Sep 2021 21:45:16 +0200 Subject: [PATCH 289/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.3 (#787) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index c747672068b..74f149caa74 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.2 + 2.1.3 test tests From c8d67eec236656c8ea85a91e9ea06d5e211e5e58 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 17 Sep 2021 00:06:20 +0200 Subject: [PATCH 290/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.4 (#795) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.3` -> `2.1.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.4/compatibility-slim/2.1.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.4/confidence-slim/2.1.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.1.4`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​214-httpswwwgithubcomgoogleapisjava-corecomparev213v214-2021-09-15) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.3...v2.1.4)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 74f149caa74..45b24596eba 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.3 + 2.1.4 test tests From 29164e47503f5c1c28598413cfbe8eb5bcb56ea1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Sep 2021 01:26:20 +0200 Subject: [PATCH 291/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.5 (#802) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.4` -> `2.1.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.5/compatibility-slim/2.1.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.5/confidence-slim/2.1.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.1.5`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​215-httpswwwgithubcomgoogleapisjava-corecomparev214v215-2021-09-21) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.4...v2.1.5)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 45b24596eba..c96c2713db7 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.4 + 2.1.5 test tests From 6acf7292dcaaca7f2da4bac63c6a2d3920b7af8c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Sep 2021 20:20:44 +0200 Subject: [PATCH 292/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.6 (#804) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.5` -> `2.1.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.6/compatibility-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.6/confidence-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.1.6`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​216-httpswwwgithubcomgoogleapisjava-corecomparev215v216-2021-09-21) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.5...v2.1.6)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index c96c2713db7..700afdf9ad8 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.5 + 2.1.6 test tests From 8377c10d3fe31b303235c4d0fe583ace627c2235 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 28 Sep 2021 02:02:19 +0200 Subject: [PATCH 293/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.7 (#812) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.6` -> `2.1.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.7/compatibility-slim/2.1.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.7/confidence-slim/2.1.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.1.7`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​217-httpswwwgithubcomgoogleapisjava-corecomparev216v217-2021-09-23) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.6...v2.1.7)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 700afdf9ad8..e7723be5d70 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.6 + 2.1.7 test tests From d16719849cd06de5058dbee7fd52c851940f6a94 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Oct 2021 16:28:36 +0200 Subject: [PATCH 294/356] chore(deps): update dependency com.google.cloud:libraries-bom to v23.1.0 (#824) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `23.0.0` -> `23.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/compatibility-slim/23.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/confidence-slim/23.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index e7723be5d70..ad5a0b015da 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 23.0.0 + 23.1.0 pom import From fd2097df7eadf3f6ffb31b27e426cc76ed29d8da Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Fri, 15 Oct 2021 11:25:53 -0700 Subject: [PATCH 295/356] samples: added new translate document samples (#608) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: added new translate document samples * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md * fixed lint and removed main * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md * fixed import lint * removed mac files & added resources * chore: year bump * changed doc file * added polling algorithm * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md * made requested the changes * format * made requested changes regarding comment & String concant Co-authored-by: Owl Bot --- translate/snippets/resources/fake_invoice.pdf | Bin 0 -> 88986 bytes .../BatchTranslateDocument.java | 123 ++++++++++++++++++ .../translatev3beta1/TranslateDocument.java | 76 +++++++++++ .../BatchTranslateDocumentTests.java | 118 +++++++++++++++++ .../TranslateDocumentTests.java | 73 +++++++++++ 5 files changed, 390 insertions(+) create mode 100644 translate/snippets/resources/fake_invoice.pdf create mode 100644 translate/snippets/src/main/java/com/example/translatev3beta1/BatchTranslateDocument.java create mode 100644 translate/snippets/src/main/java/com/example/translatev3beta1/TranslateDocument.java create mode 100644 translate/snippets/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java create mode 100644 translate/snippets/src/test/java/com/example/translatev3beta1/TranslateDocumentTests.java diff --git a/translate/snippets/resources/fake_invoice.pdf b/translate/snippets/resources/fake_invoice.pdf new file mode 100644 index 0000000000000000000000000000000000000000..b9107fba129d5c78ce6688e366c06f700b758c03 GIT binary patch literal 88986 zcmeFYRX|+L(k_gUBs@6Ria|1nz)9~Vn9Ruxn0 zzy7;fI(d+B{ylRwOLu2aH*-sOGM>LbkaTwP0Pee!{aG!rG(}4bTT=;V5Scz3@Bt4y z2N^Fvham#6x__SY=Xd`~Ma9k8T;0-xOdojIJ83f3_m03LCH}ce{&Rg#W=O`Wqikkp zY3@PxN0#p$*~xhSdYXvHAF=&2@Sl(V9rzz{^ZoTL*1wnY?+~o&o@O3@E%2|$k+Evq zS^%oy<>n$|m9@0Bw(%h2=VJ#R11!wV#rcnl5Io#G0Z~XgJ2<TXZQ{%84sJS1#A+=082&WQwGL%gPjeDUyeS11Beg z3J*p@gOCvWzu-+78HALSRMK!?P`<1ynZfwFtSfucz`%fJP19lWe}tg&9WA&voI(n< zPMEg(3AZQ`rs}dwbaBx&EjQ?k)kE9F9kM>5jw=`FppjQ_iV#JnOzUi(@IQjgo23kX z9l)e(P1@9VrMf>wGJdJ;Y#K^EukPV9zI*6oE@^Kf0X>s1C1UYmKM>?$wj~BW*!+aw z>$+-Uc?f%rsgSmW|3@#S5^&wtb^cO*tWeTU*G<{S<=PmTuC>IoO_{r-Z3BL66S-#r zvQA}aJj(TqBwbBoYvQbxwnxv4J~CZLJ_pM6x@G$R=(W2(CRh}YKXsR|b!Od8?%P9L z%39uvE$`~n3Cz??Ie4zu@y5MFxfN_8Rf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ch|&|x%vri?K2s*UPY6)S@#c~M#mecD$TAe!@Tv+I zSlS%Q!EmGMYm7H|FU*GLT+Jbqwd^ zbscVt|AjS;^DYvJ8ep9&XT;SQ`Z4X{NGV0b)y|LT)KXxu2g=+G*&y4n-SjE8l6P(83abBgw9lQt z6jh!@2~Q-{%7t`(AQogk@`z##)5OsneASN|q6*vHc3RF7;z;Pjhv19NXc!0Nd zAHn9Oyir8iXtlYz#BD4LcD|lunOp;gm>v?;=Ege+=@0*Q-Dt;(QAP#&fa$?RjA4u3 zO%Pj{@g^U}3z;L^dL0bCXsJQ<6U-87>5bB6$I$~pqqNT>@LXSp6-vjnxUZpqpYW$8 z-cw5ji`tT$C&kgZB$p`Nlr76(Be%2 zITjp}bz@0{DIo8XG8oCTgL=MXWJQRA7!V3qV4l%L=1Rw7tJEq^z5quL#Z$2COdV
googleapis/java-core ### [`v2.1.8`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​218-httpswwwgithubcomgoogleapisjava-corecomparev217v218-2021-10-15) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.7...v2.1.8)
--- ### Configuration 📅 **Schedule**: 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 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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index ad5a0b015da..e6abf3b2198 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.7 + 2.1.8 test tests From ef19780bd356d85065f0f1c65cf05b6cbc631e9e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 Oct 2021 04:44:18 +0200 Subject: [PATCH 297/356] deps: update dependency com.google.cloud:google-cloud-core to v2.2.0 (#837) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.8` -> `2.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.2.0/compatibility-slim/2.1.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.2.0/confidence-slim/2.1.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.2.0`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​220-httpswwwgithubcomgoogleapisjava-corecomparev218v220-2021-10-18) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.8...v2.2.0) ##### Features - next release from main branch is 2.2.0 ([#​596](https://www.togithub.com/googleapis/java-core/issues/596)) ([cca72b8](https://www.github.com/googleapis/java-core/commit/cca72b82b45e01207bd45c6a2b988981c213c6fd)) ##### Dependencies - update dependency com.google.api:gax-bom to v2.6.1 ([#​600](https://www.togithub.com/googleapis/java-core/issues/600)) ([a0cff6a](https://www.github.com/googleapis/java-core/commit/a0cff6a83506d1da3a8aacd6eafc39ff1ab11583)) ##### [2.1.8](https://www.github.com/googleapis/java-core/compare/v2.1.7...v2.1.8) (2021-10-15) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.32.2 ([#​593](https://www.togithub.com/googleapis/java-core/issues/593)) ([644fc6f](https://www.github.com/googleapis/java-core/commit/644fc6f728b0791c61d85f34c535c09dff862c1d)) - update dependency com.google.api:api-common to v2.0.4 ([#​585](https://www.togithub.com/googleapis/java-core/issues/585)) ([ad4e4b7](https://www.github.com/googleapis/java-core/commit/ad4e4b7e076d8bd52bf621615301ec810917db43)) - update dependency com.google.api:api-common to v2.0.5 ([#​589](https://www.togithub.com/googleapis/java-core/issues/589)) ([c30cc40](https://www.github.com/googleapis/java-core/commit/c30cc40cd8687f79c7154503ee1f602089d62f2d)) - update dependency com.google.api:gax-bom to v2.6.0 ([#​594](https://www.togithub.com/googleapis/java-core/issues/594)) ([710cbe6](https://www.github.com/googleapis/java-core/commit/710cbe6e5121f118a5f4be327e8eeeceddfa04fb)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.6.0 ([#​578](https://www.togithub.com/googleapis/java-core/issues/578)) ([113b686](https://www.github.com/googleapis/java-core/commit/113b6868f98caa64d713f02729c3f16d878252ff)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.3 ([#​574](https://www.togithub.com/googleapis/java-core/issues/574)) ([338444b](https://www.github.com/googleapis/java-core/commit/338444bd4d169bb7fd41242e790c74596948178b)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.4 ([#​584](https://www.togithub.com/googleapis/java-core/issues/584)) ([57211ce](https://www.github.com/googleapis/java-core/commit/57211ce15e9b1a4c1b7468fed217e4ab46ec0a5d)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.5 ([#​587](https://www.togithub.com/googleapis/java-core/issues/587)) ([55f9f4e](https://www.github.com/googleapis/java-core/commit/55f9f4e084defaf8a243bf21afd67302be802b25)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.6 ([#​590](https://www.togithub.com/googleapis/java-core/issues/590)) ([f534c46](https://www.github.com/googleapis/java-core/commit/f534c462fadb479c6fd934c24ac8cd24e06e2698)) - update dependency com.google.auth:google-auth-library-bom to v1.2.0 ([#​581](https://www.togithub.com/googleapis/java-core/issues/581)) ([c32d2c5](https://www.github.com/googleapis/java-core/commit/c32d2c552dfa04b8e5eab27a115ac10832898473)) - update dependency com.google.auth:google-auth-library-bom to v1.2.1 ([#​591](https://www.togithub.com/googleapis/java-core/issues/591)) ([046f95d](https://www.github.com/googleapis/java-core/commit/046f95d8ed0811dd278c40fcfeb2c042e6535996)) - update dependency com.google.guava:guava-bom to v31 ([#​577](https://www.togithub.com/googleapis/java-core/issues/577)) ([4a987fb](https://www.github.com/googleapis/java-core/commit/4a987fbd3f1bd69b0b923fc9a691fc60908ad1cc)) - update dependency com.google.http-client:google-http-client-bom to v1.40.1 ([#​588](https://www.togithub.com/googleapis/java-core/issues/588)) ([3d36d77](https://www.github.com/googleapis/java-core/commit/3d36d77e6db9856c276d6263036764c60f32b7b3)) - update dependency com.google.protobuf:protobuf-bom to v3.18.1 ([#​583](https://www.togithub.com/googleapis/java-core/issues/583)) ([47da21c](https://www.github.com/googleapis/java-core/commit/47da21c793be9477323a234f7e3beaf6b705cd7d)) ##### [2.1.7](https://www.github.com/googleapis/java-core/compare/v2.1.6...v2.1.7) (2021-09-23) ##### Dependencies - update dependency io.grpc:grpc-bom to v1.41.0 ([#​569](https://www.togithub.com/googleapis/java-core/issues/569)) ([36703e9](https://www.github.com/googleapis/java-core/commit/36703e9a1f2d97d465a13220027a27f813da14a8)) ##### [2.1.6](https://www.github.com/googleapis/java-core/compare/v2.1.5...v2.1.6) (2021-09-21) ##### Dependencies - update dependency com.google.api:gax-bom to v2.5.0 ([#​565](https://www.togithub.com/googleapis/java-core/issues/565)) ([3ce8e28](https://www.github.com/googleapis/java-core/commit/3ce8e28813858ea932dc5c54324441f2f0c52d46)) ##### [2.1.5](https://www.github.com/googleapis/java-core/compare/v2.1.4...v2.1.5) (2021-09-21) ##### Dependencies - downgrading protobuf to 3.17.3 ([#​562](https://www.togithub.com/googleapis/java-core/issues/562)) ([5711b83](https://www.github.com/googleapis/java-core/commit/5711b835a19238df1bfa1f2e4dfc115495a55c9b)) ##### [2.1.4](https://www.github.com/googleapis/java-core/compare/v2.1.3...v2.1.4) (2021-09-15) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.1 ([#​556](https://www.togithub.com/googleapis/java-core/issues/556)) ([095efa1](https://www.github.com/googleapis/java-core/commit/095efa1fc1fffde34c6c38a88fee8f91bd495bfc)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.2 ([#​559](https://www.togithub.com/googleapis/java-core/issues/559)) ([3cda672](https://www.github.com/googleapis/java-core/commit/3cda672059727642d1b90f8bcc6bb34546f6893d)) - update dependency com.google.protobuf:protobuf-bom to v3.18.0 ([#​558](https://www.togithub.com/googleapis/java-core/issues/558)) ([85766e6](https://www.github.com/googleapis/java-core/commit/85766e67f0a9f381593ea2d6e9c8f30fc0ba2993)) ##### [2.1.3](https://www.github.com/googleapis/java-core/compare/v2.1.2...v2.1.3) (2021-09-10) ##### Dependencies - update dependency com.google.api:gax-bom to v2.4.1 ([#​549](https://www.togithub.com/googleapis/java-core/issues/549)) ([0b4be35](https://www.github.com/googleapis/java-core/commit/0b4be350d47cab58f3bb4e53d34e913e736a522b)) ##### [2.1.2](https://www.github.com/googleapis/java-core/compare/v2.1.1...v2.1.2) (2021-08-31) ##### Dependencies - update dependency com.google.api:api-common to v2.0.2 ([#​534](https://www.togithub.com/googleapis/java-core/issues/534)) ([1883c81](https://www.github.com/googleapis/java-core/commit/1883c81cb0fdf2f4b34a3a3a17987206d8c452aa)) - update dependency com.google.api:gax-bom to v2.4.0 ([#​540](https://www.togithub.com/googleapis/java-core/issues/540)) ([06b0d6e](https://www.github.com/googleapis/java-core/commit/06b0d6e3ff3c3b6e2aa440a9f893f9b27e0d66d1)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.5.0 ([#​539](https://www.togithub.com/googleapis/java-core/issues/539)) ([9d5a0b0](https://www.github.com/googleapis/java-core/commit/9d5a0b0918f6a1ab264f1ba272dcd8f22b670a7f)) - update dependency com.google.http-client:google-http-client-bom to v1.40.0 ([#​538](https://www.togithub.com/googleapis/java-core/issues/538)) ([150e07d](https://www.github.com/googleapis/java-core/commit/150e07ddb884d163d0efbcf786f04a713d29ed81)) - update dependency io.grpc:grpc-bom to v1.40.1 ([#​535](https://www.togithub.com/googleapis/java-core/issues/535)) ([3cd48a9](https://www.github.com/googleapis/java-core/commit/3cd48a902691ddddb9df9f74517648ca35b5bfd7)) ##### [2.1.1](https://www.github.com/googleapis/java-core/compare/v2.1.0...v2.1.1) (2021-08-24) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.0 ([#​531](https://www.togithub.com/googleapis/java-core/issues/531)) ([1b27f8c](https://www.github.com/googleapis/java-core/commit/1b27f8cbfaffcc9b19103b471db237f2448d7cb8))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **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#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index e6abf3b2198..887c1d4a086 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.1.8 + 2.2.0 test tests From 06d9e106bca8e71909d69e076959148ebb50b10a Mon Sep 17 00:00:00 2001 From: Abby Carey Date: Tue, 26 Oct 2021 16:50:48 -0700 Subject: [PATCH 298/356] samples: Add Cloud Code tags for API Explorer pilot (#840) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Add Cloud Code tags for API Explorer pilot * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../java/com/example/translate/TranslateText.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/translate/snippets/src/main/java/com/example/translate/TranslateText.java b/translate/snippets/src/main/java/com/example/translate/TranslateText.java index a36b54a65b5..a18fed2b694 100644 --- a/translate/snippets/src/main/java/com/example/translate/TranslateText.java +++ b/translate/snippets/src/main/java/com/example/translate/TranslateText.java @@ -17,6 +17,8 @@ package com.example.translate; // [START translate_v3_translate_text] +// [START translate_v3_translate_text_0] +// Imports the Google Cloud Translation library. import com.google.cloud.translate.v3.LocationName; import com.google.cloud.translate.v3.TranslateTextRequest; import com.google.cloud.translate.v3.TranslateTextResponse; @@ -24,8 +26,12 @@ import com.google.cloud.translate.v3.TranslationServiceClient; import java.io.IOException; +// [END translate_v3_translate_text_0] + public class TranslateText { + // [START translate_v3_translate_text_1] + // Set and pass variables to overloaded translateText() method for translation. public static void translateText() throws IOException { // TODO(developer): Replace these variables before running the sample. String projectId = "YOUR-PROJECT-ID"; @@ -34,8 +40,10 @@ public static void translateText() throws IOException { String text = "your-text"; translateText(projectId, targetLanguage, text); } + // [END translate_v3_translate_text_1] - // Translating Text + // [START translate_v3_translate_text_2] + // Translate text to target language. public static void translateText(String projectId, String targetLanguage, String text) throws IOException { @@ -65,5 +73,6 @@ public static void translateText(String projectId, String targetLanguage, String } } } + // [END translate_v3_translate_text_2] } // [END translate_v3_translate_text] From 9496eac37ecffec76e07982332b57f7e7bdf623a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Oct 2021 18:18:46 +0200 Subject: [PATCH 299/356] chore(deps): update dependency com.google.cloud:libraries-bom to v24 (#847) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `23.1.0` -> `24.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/compatibility-slim/23.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/confidence-slim/23.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 887c1d4a086..42babc0b339 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 23.1.0 + 24.0.0 pom import From 65c30cef528e92c1c161ad04efcd85cbc66eb4b5 Mon Sep 17 00:00:00 2001 From: Karl Weinmeister <11586922+kweinmeister@users.noreply.github.com> Date: Wed, 27 Oct 2021 15:07:09 -0500 Subject: [PATCH 300/356] test: Update batch translate tests to minimize flakiness (#846) --- .../java/com/example/translate/BatchTranslateTextTests.java | 6 ++---- .../BatchTranslateTextWithGlossaryAndModelTests.java | 5 ++--- .../translate/BatchTranslateTextWithGlossaryTests.java | 5 ++--- .../example/translate/BatchTranslateTextWithModelTests.java | 5 ++--- .../translatev3beta1/BatchTranslateDocumentTests.java | 5 ++--- 5 files changed, 10 insertions(+), 16 deletions(-) diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java index 450c83322a9..6d130f47467 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextTests.java @@ -46,8 +46,6 @@ public class BatchTranslateTextTests { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String INPUT_URI = "gs://cloud-samples-data/translation/text.txt"; private static final String PREFIX = "BATCH_TRANSLATION_OUTPUT_"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -115,8 +113,8 @@ public void tearDown() { @Test public void testBatchTranslateText() throws InterruptedException, ExecutionException, IOException, TimeoutException { - BatchTranslateText.batchTranslateText(PROJECT_ID, "en", "es", INPUT_URI, OUTPUT_URI); - + String outputUri = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + BatchTranslateText.batchTranslateText(PROJECT_ID, "en", "es", INPUT_URI, outputUri); String got = bout.toString(); assertThat(got).contains("Total Characters: 13"); } diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java index 7499aa6c9a0..f359edf9bd5 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java @@ -49,8 +49,6 @@ public class BatchTranslateTextWithGlossaryAndModelTests { private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private static final String MODEL_ID = "TRL3645318651705294848"; private static final String PREFIX = "BATCH_TRANSLATION_MODEL_GLOS_OUTPUT_"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -121,8 +119,9 @@ public void tearDown() { @Test public void testBatchTranslateTextWithGlossaryAndModel() throws InterruptedException, ExecutionException, IOException, TimeoutException { + String outputUri = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); BatchTranslateTextWithGlossaryAndModel.batchTranslateTextWithGlossaryAndModel( - PROJECT_ID, "en", "ja", INPUT_URI, OUTPUT_URI, GLOSSARY_ID, MODEL_ID); + PROJECT_ID, "en", "ja", INPUT_URI, outputUri, GLOSSARY_ID, MODEL_ID); String got = bout.toString(); assertThat(got).contains("Total Characters: 25"); } diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java index d19b76548c0..7e2702effe2 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java @@ -48,8 +48,6 @@ public class BatchTranslateTextWithGlossaryTests { "gs://cloud-samples-data/translation/text_with_glossary.txt"; private static final String GLOSSARY_ID = "DO_NOT_DELETE_TEST_GLOSSARY"; private static final String PREFIX = "BATCH_TRANSLATION_GLOSSARY_OUTPUT_"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -120,8 +118,9 @@ public void tearDown() { @Test public void testBatchTranslateTextWithGlossary() throws InterruptedException, ExecutionException, IOException, TimeoutException { + String outputUri = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); BatchTranslateTextWithGlossary.batchTranslateTextWithGlossary( - PROJECT_ID, "en", "ja", INPUT_URI, OUTPUT_URI, GLOSSARY_ID); + PROJECT_ID, "en", "ja", INPUT_URI, outputUri, GLOSSARY_ID); String got = bout.toString(); assertThat(got).contains("Total Characters: 9"); } diff --git a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java index c0a5a054f4d..efcd65daf0c 100644 --- a/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java +++ b/translate/snippets/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java @@ -48,8 +48,6 @@ public class BatchTranslateTextWithModelTests { "gs://cloud-samples-data/translation/custom_model_text.txt"; private static final String MODEL_ID = "TRL3645318651705294848"; private static final String PREFIX = "BATCH_TRANSLATION_WITH_MODEL_OUTPUT_"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -116,8 +114,9 @@ public void tearDown() { @Test public void testBatchTranslateTextWithModel() throws InterruptedException, ExecutionException, IOException, TimeoutException { + String outputUri = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); BatchTranslateTextWithModel.batchTranslateTextWithModel( - PROJECT_ID, "en", "ja", INPUT_URI, OUTPUT_URI, MODEL_ID); + PROJECT_ID, "en", "ja", INPUT_URI, outputUri, MODEL_ID); String got = bout.toString(); assertThat(got).contains("Total Characters: 15"); } diff --git a/translate/snippets/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java b/translate/snippets/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java index 588ae493691..8c68aac45db 100644 --- a/translate/snippets/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java +++ b/translate/snippets/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java @@ -45,8 +45,6 @@ public class BatchTranslateDocumentTests { private static final String INPUT_URI = "gs://java-docs-samples-testing/translation/invoice2.docx"; private static final String PREFIX = "BATCH_DOC_TRANSLATION_OUTPUT_"; - private static final String OUTPUT_URI = - String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); private ByteArrayOutputStream bout; private PrintStream out; @@ -109,8 +107,9 @@ public void tearDown() { @Test public void testBatchTranslateDocument() throws InterruptedException, ExecutionException, IOException, TimeoutException { + String outputUri = String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); BatchTranslateDocument.batchTranslateDocument( - PROJECT_ID, "en-US", "fr-FR", INPUT_URI, OUTPUT_URI, 1000); + PROJECT_ID, "en-US", "fr-FR", INPUT_URI, outputUri, 1000); String got = bout.toString(); assertThat(got).contains("Total Pages:"); From 953e83584d951bbdb22f5d256ae2dd80000f926b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 15 Nov 2021 17:00:42 +0100 Subject: [PATCH 301/356] deps: update dependency com.google.cloud:google-cloud-core to v2.3.0 (#859) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.2.0` -> `2.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.0/compatibility-slim/2.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.0/confidence-slim/2.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.3.0`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​230-httpswwwgithubcomgoogleapisjava-corecomparev220v230-2021-11-11) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.2.0...v2.3.0) ##### Features - next release from main branch is 2.3.0 ([#​602](https://www.togithub.com/googleapis/java-core/issues/602)) ([34fa5f1](https://www.github.com/googleapis/java-core/commit/34fa5f1e750629d4431d5f97eb8b09ee65ebc016)) ##### Bug Fixes - **java:** java 17 dependency arguments ([#​1266](https://www.togithub.com/googleapis/java-core/issues/1266)) ([#​612](https://www.togithub.com/googleapis/java-core/issues/612)) ([5be3eff](https://www.github.com/googleapis/java-core/commit/5be3eff4041ca39d513979b948afe99f27bb1d20)) ##### Dependencies - update dependency com.google.api:api-common to v2.1.0 ([#​613](https://www.togithub.com/googleapis/java-core/issues/613)) ([62d6ab8](https://www.github.com/googleapis/java-core/commit/62d6ab8b5a7c5edb4482d7afda5b87f4832226ca)) - update dependency com.google.api:gax-bom to v2.7.0 ([#​626](https://www.togithub.com/googleapis/java-core/issues/626)) ([4a1e965](https://www.github.com/googleapis/java-core/commit/4a1e96551e16a5abc5d8f71f9e096a284fc59528)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.7 ([#​604](https://www.togithub.com/googleapis/java-core/issues/604)) ([0d36d59](https://www.github.com/googleapis/java-core/commit/0d36d59e4ff8817ba5984579188bfc6d7745348d)) - update dependency com.google.auth:google-auth-library-bom to v1.2.2 ([#​610](https://www.togithub.com/googleapis/java-core/issues/610)) ([c5e33d8](https://www.github.com/googleapis/java-core/commit/c5e33d87d211c22a93ea2e0de1776e7f2fbf6ef7)) - update dependency com.google.auth:google-auth-library-bom to v1.3.0 ([#​627](https://www.togithub.com/googleapis/java-core/issues/627)) ([f4403b2](https://www.github.com/googleapis/java-core/commit/f4403b2af856cc6ce45e2aab277d7e78baa6ecfe)) - update dependency com.google.code.gson:gson to v2.8.9 ([#​615](https://www.togithub.com/googleapis/java-core/issues/615)) ([ec0e387](https://www.github.com/googleapis/java-core/commit/ec0e387d3c96467218406ef4c5da5e59a11e8b7a)) - update dependency com.google.errorprone:error_prone_annotations to v2.10.0 ([#​618](https://www.togithub.com/googleapis/java-core/issues/618)) ([21139a8](https://www.github.com/googleapis/java-core/commit/21139a83821b12b5312e470c61b45ca76a0b921a)) - update dependency com.google.protobuf:protobuf-bom to v3.19.1 ([#​609](https://www.togithub.com/googleapis/java-core/issues/609)) ([28e6333](https://www.github.com/googleapis/java-core/commit/28e6333080fbe10ad8ecdfeef12d80af204f71fd)) - update dependency io.grpc:grpc-bom to v1.42.0 ([#​619](https://www.togithub.com/googleapis/java-core/issues/619)) ([da4cbd5](https://www.github.com/googleapis/java-core/commit/da4cbd5ccc54a81f89635435a2045cfa0de8d722)) - update dependency org.threeten:threetenbp to v1.5.2 ([#​624](https://www.togithub.com/googleapis/java-core/issues/624)) ([91eec9d](https://www.github.com/googleapis/java-core/commit/91eec9d83285e10cd9ecf3e75cb99b9a9d40cb89))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 42babc0b339..6e3b3b71bfa 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.2.0 + 2.3.0 test tests From f7c0486f9f33f699a224131a9871cc8ab852e580 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Nov 2021 20:04:30 +0100 Subject: [PATCH 302/356] deps: update dependency com.google.cloud:google-cloud-core to v2.3.1 (#861) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.0` -> `2.3.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.1/compatibility-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.1/confidence-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.3.1`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​231-httpswwwgithubcomgoogleapisjava-corecomparev230v231-2021-11-15) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.0...v2.3.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6e3b3b71bfa..34f697cab52 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.3.0 + 2.3.1 test tests From 1355f401735132478a3d2e550dde4ab5a2b4485e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 3 Dec 2021 21:12:29 +0100 Subject: [PATCH 303/356] deps: update dependency com.google.cloud:google-cloud-core to v2.3.2 (#868) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.1` -> `2.3.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.2/compatibility-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.2/confidence-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.3.2`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​232-httpswwwgithubcomgoogleapisjava-corecomparev231v232-2021-12-02) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.1...v2.3.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 34f697cab52..bf76fa71270 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.3.1 + 2.3.2 test tests From 6fcb9315d922586957ac6f79520b3ae38551387a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sun, 5 Dec 2021 06:34:24 +0100 Subject: [PATCH 304/356] deps: update dependency com.google.cloud:google-cloud-core to v2.3.3 (#871) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.2` -> `2.3.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.3/compatibility-slim/2.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.3/confidence-slim/2.3.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.3.3`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​233-httpswwwgithubcomgoogleapisjava-corecomparev232v233-2021-12-02) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.2...v2.3.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index bf76fa71270..f3fd68aae30 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.3.2 + 2.3.3 test tests From 406b2d4a5a7d63be1bb9be19c76050e45c95eaa6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 7 Dec 2021 00:22:22 +0100 Subject: [PATCH 305/356] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.2.0 (#867) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | `1.0.23` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/compatibility-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/confidence-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.2.0`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) ### [`v1.0.24`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index f3fd68aae30..6c521e04b5f 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 From 41ee96d6b6b8b4fdea1dfce33b159b28edcb4ee4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 9 Dec 2021 00:24:11 +0100 Subject: [PATCH 306/356] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.0 (#888) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.0.0` -> `24.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/compatibility-slim/24.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/confidence-slim/24.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6c521e04b5f..7a83315d039 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.0.0 + 24.1.0 pom import From aa1c3bf35dc4619ec97ddc7ecd2834ecf58524f2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 28 Dec 2021 22:06:20 +0100 Subject: [PATCH 307/356] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.1 (#890) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.0` -> `24.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/compatibility-slim/24.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/confidence-slim/24.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 7a83315d039..e97d34cfe96 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.0 + 24.1.1 pom import From 176eec013ec6a516259a5470ce6df9031f298b19 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 04:20:42 +0100 Subject: [PATCH 308/356] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.2 (#895) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.1` -> `24.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/compatibility-slim/24.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/confidence-slim/24.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index e97d34cfe96..db3322b9ded 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.1 + 24.1.2 pom import From 2f7cf7ee5f0acc6042fba66fed41091931a150f6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 04:20:53 +0100 Subject: [PATCH 309/356] deps: update dependency com.google.cloud:google-cloud-core to v2.3.4 (#894) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.3` -> `2.3.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.4/compatibility-slim/2.3.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.4/confidence-slim/2.3.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.3.4`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​234-httpswwwgithubcomgoogleapisjava-corecomparev233v234-2022-01-06) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.3...v2.3.4)
--- ### Configuration 📅 **Schedule**: 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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index db3322b9ded..56910d1e4ee 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.3.3 + 2.3.4 test tests From 86abd761ef8387f6ff860961ac4b006aa07eff2c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 12 Jan 2022 17:50:17 +0100 Subject: [PATCH 310/356] chore(deps): update dependency com.google.cloud:libraries-bom to v24.2.0 (#909) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.2` -> `24.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/compatibility-slim/24.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/confidence-slim/24.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 56910d1e4ee..2643a661de0 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.2 + 24.2.0 pom import From a6ba6b5619e73b8a09c33268cd9776a47854c967 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 12 Jan 2022 18:04:18 +0100 Subject: [PATCH 311/356] deps: update dependency com.google.cloud:google-cloud-core to v2.3.5 (#899) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.4` -> `2.3.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.5/compatibility-slim/2.3.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.5/confidence-slim/2.3.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.3.5`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​235-httpswwwgithubcomgoogleapisjava-corecomparev234v235-2022-01-06) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.4...v2.3.5)
--- ### Configuration 📅 **Schedule**: 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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 2643a661de0..cb3d43a942d 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.3.4 + 2.3.5 test tests From 5e7395573935790983537a93f398d05defc52528 Mon Sep 17 00:00:00 2001 From: Karl Weinmeister <11586922+kweinmeister@users.noreply.github.com> Date: Tue, 1 Feb 2022 19:25:56 -0600 Subject: [PATCH 312/356] test: add retries to create glossary test (#923) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test: add retries to create glossary test * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../test/java/com/example/translate/CreateGlossaryTests.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java b/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java index 3dc98bc1b18..3d88ba31548 100644 --- a/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java +++ b/translate/snippets/src/test/java/com/example/translate/CreateGlossaryTests.java @@ -19,6 +19,7 @@ import static com.google.common.truth.Truth.assertThat; import static junit.framework.TestCase.assertNotNull; +import com.google.cloud.testing.junit4.MultipleAttemptsRule; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -29,6 +30,7 @@ import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -76,6 +78,8 @@ public void tearDown() throws InterruptedException, ExecutionException, IOExcept System.setOut(originalPrintStream); } + @Rule public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); + @Test public void testCreateGlossary() throws InterruptedException, ExecutionException, IOException { List languageCodes = new ArrayList<>(); From 4134aba81d115915484c3b376689c70087bf6448 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Feb 2022 05:46:48 +0100 Subject: [PATCH 313/356] deps: update dependency com.google.cloud:google-cloud-core to v2.4.0 (#919) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.5` -> `2.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.4.0/compatibility-slim/2.3.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.4.0/confidence-slim/2.3.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.4.0`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​240-httpsgithubcomgoogleapisjava-corecomparev235v240-2022-01-28) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.5...v2.4.0) ##### Features - **java:** Add native-image support classes to java-core module ([#​637](https://togithub.com/googleapis/java-core/issues/637)) ([154bc18](https://togithub.com/googleapis/java-core/commit/154bc18ba86328d29665c502db1d35e265c92bbf)) ##### Bug Fixes - **java:** initialize LoggerFactory at build time ([#​685](https://togithub.com/googleapis/java-core/issues/685)) ([eb3aba2](https://togithub.com/googleapis/java-core/commit/eb3aba2455a0ab6ffec2c6beb3f3cbb4bcb6008d)) ##### Dependencies - **java:** update actions/github-script action to v5 ([#​1339](https://togithub.com/googleapis/java-core/issues/1339)) ([#​689](https://togithub.com/googleapis/java-core/issues/689)) ([eb462c7](https://togithub.com/googleapis/java-core/commit/eb462c7b1a005ce37d1be58900a244f6b807e5d5)) - update dependency com.google.api-client:google-api-client-bom to v1.33.1 ([#​684](https://togithub.com/googleapis/java-core/issues/684)) ([9ff47e6](https://togithub.com/googleapis/java-core/commit/9ff47e68d0c435d7636d89b03369aabbdfe3663b)) - update dependency com.google.api:api-common to v2.1.3 ([#​694](https://togithub.com/googleapis/java-core/issues/694)) ([684ae80](https://togithub.com/googleapis/java-core/commit/684ae805b8d25747830ce9266fd51a287c018cc9)) - update dependency com.google.api:gax-bom to v2.11.0 ([#​677](https://togithub.com/googleapis/java-core/issues/677)) ([1a578bd](https://togithub.com/googleapis/java-core/commit/1a578bdee2fa229ffbdd8fdde3d66d7e29dedf98)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.7.2 ([#​695](https://togithub.com/googleapis/java-core/issues/695)) ([1085d2c](https://togithub.com/googleapis/java-core/commit/1085d2cb1d7e8391f981d1f4b97c7724b0107e94)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.1 ([#​667](https://togithub.com/googleapis/java-core/issues/667)) ([b57ec04](https://togithub.com/googleapis/java-core/commit/b57ec047234a1a044458980a8cf7de6a3156bf41)) - update dependency com.google.auth:google-auth-library-bom to v1.4.0 ([#​681](https://togithub.com/googleapis/java-core/issues/681)) ([3273b1e](https://togithub.com/googleapis/java-core/commit/3273b1ed0b1db610790e7832a6c92797a341cc7d)) - update dependency com.google.errorprone:error_prone_annotations to v2.11.0 ([#​687](https://togithub.com/googleapis/java-core/issues/687)) ([dc4d18d](https://togithub.com/googleapis/java-core/commit/dc4d18de86695fddbcb9d221cc53fdca3faf09f5)) - update dependency com.google.http-client:google-http-client-bom to v1.41.1 ([#​683](https://togithub.com/googleapis/java-core/issues/683)) ([45cb753](https://togithub.com/googleapis/java-core/commit/45cb7535151cfcffa282b4c8d9cd56265cca2ece)) - update dependency com.google.http-client:google-http-client-bom to v1.41.2 ([#​696](https://togithub.com/googleapis/java-core/issues/696)) ([f4875c0](https://togithub.com/googleapis/java-core/commit/f4875c0deecfea3728925e5ee0ef95ee90852301)) - update dependency com.google.protobuf:protobuf-bom to v3.19.3 ([#​674](https://togithub.com/googleapis/java-core/issues/674)) ([c54f997](https://togithub.com/googleapis/java-core/commit/c54f9973b71c91c1fde0a1d128957cd022a27902)) - update dependency io.grpc:grpc-bom to v1.43.2 ([#​665](https://togithub.com/googleapis/java-core/issues/665)) ([752ba6e](https://togithub.com/googleapis/java-core/commit/752ba6e384c382d0e39d8335640eaaea2beee9e1)) - update dependency io.grpc:grpc-bom to v1.44.0 ([#​693](https://togithub.com/googleapis/java-core/issues/693)) ([ed85045](https://togithub.com/googleapis/java-core/commit/ed850455995fc5b5c2dae3595116721316f63698)) - update dependency org.easymock:easymock to v4 ([#​668](https://togithub.com/googleapis/java-core/issues/668)) ([c36e976](https://togithub.com/googleapis/java-core/commit/c36e976c0379c1119dfe643dc3131f2e52130c5c)) - update dependency org.graalvm.sdk:graal-sdk to v22 ([#​680](https://togithub.com/googleapis/java-core/issues/680)) ([0f535f8](https://togithub.com/googleapis/java-core/commit/0f535f869f7ce68192f821d0f3361634676dddf7)) - update graalvm.version to v21.3.1 ([#​679](https://togithub.com/googleapis/java-core/issues/679)) ([dfb305a](https://togithub.com/googleapis/java-core/commit/dfb305acaf9d6db91727e42509fc6b043f07a5ce)) - update graalvm.version to v22.0.0.2 ([#​691](https://togithub.com/googleapis/java-core/issues/691)) ([780b734](https://togithub.com/googleapis/java-core/commit/780b734bb4f26fab49065f303d102033b2c3a3d0)) - update opencensus.version to v0.30.0 ([#​646](https://togithub.com/googleapis/java-core/issues/646)) ([c2caaa7](https://togithub.com/googleapis/java-core/commit/c2caaa7cb2c094318e611ba2c082a8a31fee21ea)) - update opencensus.version to v0.31.0 ([#​692](https://togithub.com/googleapis/java-core/issues/692)) ([bdf7d4e](https://togithub.com/googleapis/java-core/commit/bdf7d4ec05c5314e5f2667287ed3e7cb83667c35)) ##### [2.3.5](https://www.github.com/googleapis/java-core/compare/v2.3.4...v2.3.5) (2022-01-06) ##### Dependencies - update dependency com.google.api:api-common to v2.1.2 ([#​661](https://www.togithub.com/googleapis/java-core/issues/661)) ([0a136d8](https://www.github.com/googleapis/java-core/commit/0a136d8122f6c5042808cbfee9e58dc53e368da6)) - update gax.version to v2.8.1 ([#​663](https://www.togithub.com/googleapis/java-core/issues/663)) ([7c09aa5](https://www.github.com/googleapis/java-core/commit/7c09aa5729408a395f1a8fae94744f9d33638b1a)) ##### [2.3.4](https://www.github.com/googleapis/java-core/compare/v2.3.3...v2.3.4) (2022-01-06) ##### Bug Fixes - fixed compilation warnings from error prone ([e6e7040](https://www.github.com/googleapis/java-core/commit/e6e7040305b19ec9d5468f4cd44d7a29d0d5e470)) - **java:** add -ntp flag to native image testing command ([#​1299](https://www.togithub.com/googleapis/java-core/issues/1299)) ([#​643](https://www.togithub.com/googleapis/java-core/issues/643)) ([0f4c1db](https://www.github.com/googleapis/java-core/commit/0f4c1dbbd89d82f5cc86c2b684d6645699b835b3)) - **java:** run Maven in plain console-friendly mode ([#​1301](https://www.togithub.com/googleapis/java-core/issues/1301)) ([#​652](https://www.togithub.com/googleapis/java-core/issues/652)) ([ab2fa93](https://www.github.com/googleapis/java-core/commit/ab2fa93ba0434f593abb063afad44dc923bf462a)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.33.0 ([#​658](https://www.togithub.com/googleapis/java-core/issues/658)) ([d417ebd](https://www.github.com/googleapis/java-core/commit/d417ebd7bedc9d4e983f32c87a8d61163502cf1d)) - update dependency com.google.api:gax-bom to v2.8.0 ([#​659](https://www.togithub.com/googleapis/java-core/issues/659)) ([91717ab](https://www.github.com/googleapis/java-core/commit/91717ab9361a31976727b26d08837e8b3838bdb4)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.7.1 ([#​656](https://www.togithub.com/googleapis/java-core/issues/656)) ([ecfbdc1](https://www.github.com/googleapis/java-core/commit/ecfbdc181087d37d38f7911b9962953f5d246434)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.0 ([#​645](https://www.togithub.com/googleapis/java-core/issues/645)) ([3926b54](https://www.github.com/googleapis/java-core/commit/3926b5423893635dd709b8fc6037fb896396ff13)) - update dependency com.google.http-client:google-http-client-bom to v1.41.0 ([#​657](https://www.togithub.com/googleapis/java-core/issues/657)) ([41a5120](https://www.github.com/googleapis/java-core/commit/41a51201a3712f71f6cf3be3c29db68360b2405f)) - update dependency com.google.protobuf:protobuf-bom to v3.19.2 ([#​655](https://www.togithub.com/googleapis/java-core/issues/655)) ([eb6c037](https://www.github.com/googleapis/java-core/commit/eb6c03729af41e6d7bd9db80644b8ddfd22e78ec)) - update dependency io.grpc:grpc-bom to v1.43.1 ([#​647](https://www.togithub.com/googleapis/java-core/issues/647)) ([275b882](https://www.github.com/googleapis/java-core/commit/275b882918f7625daeb3e98ab26b7b0a2f2cdb7b)) ##### [2.3.3](https://www.github.com/googleapis/java-core/compare/v2.3.2...v2.3.3) (2021-12-02) ##### Dependencies - update dependency com.google.api:gax-bom to v2.7.1 ([#​640](https://www.togithub.com/googleapis/java-core/issues/640)) ([18e033b](https://www.github.com/googleapis/java-core/commit/18e033bdafe536a42ada9f93b0a2b502caea0bcf)) ##### [2.3.2](https://www.github.com/googleapis/java-core/compare/v2.3.1...v2.3.2) (2021-12-02) ##### Dependencies - update dependency com.google.api:api-common to v2.1.1 ([#​632](https://www.togithub.com/googleapis/java-core/issues/632)) ([b9bb47a](https://www.github.com/googleapis/java-core/commit/b9bb47a0b0a6b132c516361d23750a92a32e53be)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.7.0 ([#​638](https://www.togithub.com/googleapis/java-core/issues/638)) ([74862a8](https://www.github.com/googleapis/java-core/commit/74862a8864eb7bffe6659d1e2a261dd5b934d6ff)) ##### [2.3.1](https://www.github.com/googleapis/java-core/compare/v2.3.0...v2.3.1) (2021-11-15) ##### Dependencies - update dependency io.grpc:grpc-bom to v1.42.1 ([#​629](https://www.togithub.com/googleapis/java-core/issues/629)) ([85fcd99](https://www.github.com/googleapis/java-core/commit/85fcd99237d7526b1b373d07204c4114c49b08b8))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index cb3d43a942d..48f10693131 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.3.5 + 2.4.0 test tests From 2f53fdb7b228628403688e405335e93a2891cf48 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Feb 2022 23:01:12 +0100 Subject: [PATCH 314/356] chore(deps): update dependency com.google.cloud:libraries-bom to v24.3.0 (#933) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.2.0` -> `24.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/compatibility-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/confidence-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 48f10693131..9ab2ab189a1 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.2.0 + 24.3.0 pom import From 31250a0a501ae5cbb63c8b8fbd60621d0c579e90 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Feb 2022 20:29:24 +0100 Subject: [PATCH 315/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.0 (#928) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.5.0 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 9ab2ab189a1..f077832f925 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.4.0 + 2.5.0 test tests From f4bba774cff443b1a96f2d9f27e2f41c71bf2b2d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 10 Feb 2022 17:48:56 +0100 Subject: [PATCH 316/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.1 (#935) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.0` -> `2.5.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.1/compatibility-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.1/confidence-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.1`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​251-httpsgithubcomgoogleapisjava-corecomparev250v251-2022-02-08) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.0...v2.5.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index f077832f925..8d8fc61aa0a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.0 + 2.5.1 test tests From ae1a2d9ec6b0321e12388eacf9737a53aeb23aec Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 11 Feb 2022 20:50:52 +0100 Subject: [PATCH 317/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.3 (#937) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.1` -> `2.5.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.3/compatibility-slim/2.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.3/confidence-slim/2.5.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.3`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​253-httpsgithubcomgoogleapisjava-corecomparev252v253-2022-02-10) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.2...v2.5.3) ### [`v2.5.2`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​252-httpsgithubcomgoogleapisjava-corecomparev251v252-2022-02-09) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.1...v2.5.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 8d8fc61aa0a..5bc515242c5 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.1 + 2.5.3 test tests From a90b490b36eedf4f9f2d7c7ae88e9043cef1c0d5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Feb 2022 19:43:05 +0100 Subject: [PATCH 318/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.4 (#942) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.3` -> `2.5.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.4/compatibility-slim/2.5.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.4/confidence-slim/2.5.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.4`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​254-httpsgithubcomgoogleapisjava-corecomparev253v254-2022-02-11) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.3...v2.5.4)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 5bc515242c5..4467ddbc872 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.3 + 2.5.4 test tests From ccad9ac0ffac42430970730b79e03462aa306166 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Mar 2022 03:34:13 +0100 Subject: [PATCH 319/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.5 (#949) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.4` -> `2.5.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.5/compatibility-slim/2.5.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.5/confidence-slim/2.5.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.5`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​255-httpsgithubcomgoogleapisjava-corecomparev254v255-2022-02-28) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.4...v2.5.5)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 4467ddbc872..becf1ca189d 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.4 + 2.5.5 test tests From 52d33e0a64524fa427988670916e62397c6c28ad Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Mar 2022 20:12:32 +0100 Subject: [PATCH 320/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.6 (#953) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.5` -> `2.5.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.6/compatibility-slim/2.5.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.6/confidence-slim/2.5.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.6`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​256-httpsgithubcomgoogleapisjava-corecomparev255v256-2022-03-01) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.5...v2.5.6)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index becf1ca189d..5fb290ec31d 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.5 + 2.5.6 test tests From 034a1095c56f07bb14d709c65530cdbc6630115a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Mar 2022 20:18:25 +0100 Subject: [PATCH 321/356] chore(deps): update dependency com.google.cloud:libraries-bom to v24.4.0 (#955) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.3.0` -> `24.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/compatibility-slim/24.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/confidence-slim/24.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 5fb290ec31d..855ff774074 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.3.0 + 24.4.0 pom import From 32a5632200025c2cac46efe07eabd7019ec1564a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Mar 2022 18:30:25 +0100 Subject: [PATCH 322/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.8 (#961) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.6` -> `2.5.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.8/compatibility-slim/2.5.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.8/confidence-slim/2.5.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.8`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​258-httpsgithubcomgoogleapisjava-corecomparev257v258-2022-03-08) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.7...v2.5.8) ### [`v2.5.7`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​257-httpsgithubcomgoogleapisjava-corecomparev256v257-2022-03-08) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.6...v2.5.7)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 855ff774074..602143b3d88 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.6 + 2.5.8 test tests From 628002e42e6b1b0184752b4855ed09d741603e79 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 10 Mar 2022 23:14:27 +0100 Subject: [PATCH 323/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.9 (#964) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.8` -> `2.5.9` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.9/compatibility-slim/2.5.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.9/confidence-slim/2.5.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.9`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​259-httpsgithubcomgoogleapisjava-corecomparev258v259-2022-03-09) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.8...v2.5.9)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 602143b3d88..44017c84480 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.8 + 2.5.9 test tests From fa09f89e0ca36ba8fcbf26f7ae4a360af9709f0e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 23:04:25 +0100 Subject: [PATCH 324/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.10 (#965) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.9` -> `2.5.10` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.10/compatibility-slim/2.5.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.10/confidence-slim/2.5.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.10`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2510-httpsgithubcomgoogleapisjava-corecomparev259v2510-2022-03-10) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.9...v2.5.10)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 44017c84480..6c5f00f3cb1 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.9 + 2.5.10 test tests From bc2fcc5c72bd922d2a8d5b4bba0b4551dedd16d2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 23:22:15 +0100 Subject: [PATCH 325/356] chore(deps): update dependency com.google.cloud:libraries-bom to v25 (#966) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.4.0` -> `25.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/compatibility-slim/24.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/confidence-slim/24.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6c5f00f3cb1..cbc2e451188 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.4.0 + 25.0.0 pom import From 22ea5113c9445674272ea4893802d973f717251c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 30 Mar 2022 02:06:29 +0200 Subject: [PATCH 326/356] deps: update dependency com.google.cloud:google-cloud-core to v2.5.11 (#969) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.10` -> `2.5.11` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.11/compatibility-slim/2.5.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.11/confidence-slim/2.5.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.5.11`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2511-httpsgithubcomgoogleapisjava-corecomparev2510v2511-2022-03-28) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.10...v2.5.11)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index cbc2e451188..1259d0a9e10 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.10 + 2.5.11 test tests From da058150775a35ae9f988d2ae1db19ddcbfa6ef9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 18:40:19 +0200 Subject: [PATCH 327/356] chore(deps): update dependency com.google.cloud:libraries-bom to v25.1.0 (#974) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.0.0` -> `25.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/compatibility-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/confidence-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: 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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 1259d0a9e10..5ffc6238841 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import From a73af2fca244b2ab2be8e64f6ba3a7b8681ed550 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Apr 2022 21:26:15 +0200 Subject: [PATCH 328/356] deps: update dependency com.google.cloud:google-cloud-core to v2.6.1 (#977) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.11` -> `2.6.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.6.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.6.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.6.1/compatibility-slim/2.5.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.6.1/confidence-slim/2.5.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.6.1`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​261-httpsgithubcomgoogleapisjava-corecomparev260v261-2022-04-14) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.6.0...v2.6.1) ### [`v2.6.0`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​260-httpsgithubcomgoogleapisjava-corecomparev2511v260-2022-04-14) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.11...v2.6.0) ##### Features - **java:** remove GoogleJsonClentFeature and OpenCensusFeature after relocation ([#​793](https://togithub.com/googleapis/java-core/issues/793)) ([2880112](https://togithub.com/googleapis/java-core/commit/28801121a50583118286419ac91332a201285c4c)) - **java:** remove Netty Native Image configuration after relocation to gax ([#​771](https://togithub.com/googleapis/java-core/issues/771)) ([9ba04f9](https://togithub.com/googleapis/java-core/commit/9ba04f9f135e1ff7344bb45eeb5796154616ef20)) - **java:** remove protobuf Native Image configuration ([#​784](https://togithub.com/googleapis/java-core/issues/784)) ([0bc8549](https://togithub.com/googleapis/java-core/commit/0bc8549d3364ac169f21cc00c00497cd59998106)) - remove native-image.properties settings after relocation ([#​794](https://togithub.com/googleapis/java-core/issues/794)) ([e24bfdd](https://togithub.com/googleapis/java-core/commit/e24bfddbb9f588fbf69cdc0022cdf67f2c628278)) - remove resource-config after relocation ([#​795](https://togithub.com/googleapis/java-core/issues/795)) ([87e2973](https://togithub.com/googleapis/java-core/commit/87e29733c3714b39000e5fa3d232c35ce69955a2)) - remove substitutions after relocation to gax ([#​789](https://togithub.com/googleapis/java-core/issues/789)) ([29291e9](https://togithub.com/googleapis/java-core/commit/29291e9f50e4500ef5d5c1fe30098d025b216f9a)) ##### Bug Fixes - **java:** register test class for reflection to fix native image test ([#​766](https://togithub.com/googleapis/java-core/issues/766)) ([6fe52c3](https://togithub.com/googleapis/java-core/commit/6fe52c3424546cad7b8158668d3f8a655b56af41)) ##### Dependencies - revert protobuf to 3.19 and common-protos 2.8.3 ([#​798](https://togithub.com/googleapis/java-core/issues/798)) ([0f36a84](https://togithub.com/googleapis/java-core/commit/0f36a848a03c50d5d0187241bccd66fdb0cea862)) - update dependency com.google.api-client:google-api-client-bom to v1.34.0 ([#​800](https://togithub.com/googleapis/java-core/issues/800)) ([8430aee](https://togithub.com/googleapis/java-core/commit/8430aee231100ef13296f22f09265589b2aa0252)) - update dependency com.google.api:gax-bom to v2.16.0 ([#​785](https://togithub.com/googleapis/java-core/issues/785)) ([fd435b0](https://togithub.com/googleapis/java-core/commit/fd435b00f01fac1dc96b5f401b403d67809fa1eb)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.8.1 ([#​792](https://togithub.com/googleapis/java-core/issues/792)) ([4d201ac](https://togithub.com/googleapis/java-core/commit/4d201ac5dc694c9e4a4f06c5580a0c707ea68b87)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.8.2 ([#​796](https://togithub.com/googleapis/java-core/issues/796)) ([dc28a0f](https://togithub.com/googleapis/java-core/commit/dc28a0f2d58bcf4eb3c9b9f129ce8d88470e94e6)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.0 ([#​783](https://togithub.com/googleapis/java-core/issues/783)) ([4ed5ba4](https://togithub.com/googleapis/java-core/commit/4ed5ba4d096cb19f60186cbcfc789f5b058b07f8)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.1 ([#​799](https://togithub.com/googleapis/java-core/issues/799)) ([fce5315](https://togithub.com/googleapis/java-core/commit/fce531519184225e103a8faad54e81ae9232210a)) - update dependency com.google.errorprone:error_prone_annotations to v2.12.1 ([#​788](https://togithub.com/googleapis/java-core/issues/788)) ([4e71f68](https://togithub.com/googleapis/java-core/commit/4e71f680142bf8cffaa519dcb0fd2916458674e2)) - update dependency com.google.http-client:google-http-client-bom to v1.41.6 ([#​791](https://togithub.com/googleapis/java-core/issues/791)) ([fe006c6](https://togithub.com/googleapis/java-core/commit/fe006c60e6cbaff8127a9f6f6792c6a6ce9ff26b)) - update dependency com.google.http-client:google-http-client-bom to v1.41.7 ([#​797](https://togithub.com/googleapis/java-core/issues/797)) ([570f8d5](https://togithub.com/googleapis/java-core/commit/570f8d5870044d1f3026b4aec49a6800d904f1be)) - update dependency com.google.protobuf:protobuf-bom to v3.20.0 ([#​787](https://togithub.com/googleapis/java-core/issues/787)) ([19202bc](https://togithub.com/googleapis/java-core/commit/19202bcb76e28977e0f2c9b02c75c83644bfb438)) - update dependency io.grpc:grpc-bom to v1.45.1 ([#​780](https://togithub.com/googleapis/java-core/issues/780)) ([6e3bf35](https://togithub.com/googleapis/java-core/commit/6e3bf35c501028ac293a401f55c14f1d97fa3953)) ##### [2.5.11](https://togithub.com/googleapis/java-core/compare/v2.5.10...v2.5.11) (2022-03-28) ##### Bug Fixes - **java:** Register Spanner classes for reflection to fix Native Image tests ([#​760](https://togithub.com/googleapis/java-core/issues/760)) ([257de0f](https://togithub.com/googleapis/java-core/commit/257de0f71963550ce11aca608fdf9a99672ff19a)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.33.4 ([#​776](https://togithub.com/googleapis/java-core/issues/776)) ([1b6fb2a](https://togithub.com/googleapis/java-core/commit/1b6fb2a5b9602f5ff8375deb15f5121851b09bd1)) - update dependency com.google.api:api-common to v2.1.5 ([#​768](https://togithub.com/googleapis/java-core/issues/768)) ([c76c332](https://togithub.com/googleapis/java-core/commit/c76c332b5676bffad2a1e75b094790c9b0488447)) - update dependency com.google.api:gax-bom to v2.13.0 ([#​774](https://togithub.com/googleapis/java-core/issues/774)) ([8075c54](https://togithub.com/googleapis/java-core/commit/8075c54a127496a5330671652678b03f5abdd5c9)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.8.0 ([#​770](https://togithub.com/googleapis/java-core/issues/770)) ([6809477](https://togithub.com/googleapis/java-core/commit/680947779ac9bc58f60c6c18750aac6b756e73b2)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.10 ([#​763](https://togithub.com/googleapis/java-core/issues/763)) ([9f2eb5f](https://togithub.com/googleapis/java-core/commit/9f2eb5fed5d9dc91ee01068a2c4eec9acef38c86)) - update dependency com.google.auth:google-auth-library-bom to v1.6.0 ([#​765](https://togithub.com/googleapis/java-core/issues/765)) ([2eb1924](https://togithub.com/googleapis/java-core/commit/2eb19241f119f39de7d07ee863c9c78a3e7f11a4)) - update dependency com.google.guava:guava to 31.1-jre ([#​772](https://togithub.com/googleapis/java-core/issues/772)) ([060adf3](https://togithub.com/googleapis/java-core/commit/060adf35bf6afdd4b31d790e5484f63eac777a11)) - update dependency com.google.http-client:google-http-client-bom to v1.41.5 ([#​769](https://togithub.com/googleapis/java-core/issues/769)) ([999be7a](https://togithub.com/googleapis/java-core/commit/999be7ab10459b33ab001b5bd84d650aeb13313f)) - update dependency org.threeten:threetenbp to v1.6.0 ([#​767](https://togithub.com/googleapis/java-core/issues/767)) ([9a4a438](https://togithub.com/googleapis/java-core/commit/9a4a438e04acfd0ec15cdfac5da3610223fe0071)) ##### [2.5.10](https://togithub.com/googleapis/java-core/compare/v2.5.9...v2.5.10) (2022-03-10) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.9 ([#​759](https://togithub.com/googleapis/java-core/issues/759)) ([9585d4e](https://togithub.com/googleapis/java-core/commit/9585d4ea8377c087b33e63e46672a79d52e04a4b)) ##### [2.5.9](https://togithub.com/googleapis/java-core/compare/v2.5.8...v2.5.9) (2022-03-09) ##### Dependencies - update dependency io.grpc:grpc-bom to v1.45.0 ([#​756](https://togithub.com/googleapis/java-core/issues/756)) ([403b10a](https://togithub.com/googleapis/java-core/commit/403b10accfe2694dc2a5fac63a374d00585df5bb)) ##### [2.5.8](https://togithub.com/googleapis/java-core/compare/v2.5.7...v2.5.8) (2022-03-08) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.8 ([#​753](https://togithub.com/googleapis/java-core/issues/753)) ([6866b84](https://togithub.com/googleapis/java-core/commit/6866b8407162ecbff7ed5a6eec5e3e4d130fcfa7)) ##### [2.5.7](https://togithub.com/googleapis/java-core/compare/v2.5.6...v2.5.7) (2022-03-08) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.7 ([#​748](https://togithub.com/googleapis/java-core/issues/748)) ([91cc595](https://togithub.com/googleapis/java-core/commit/91cc595c7df73af8e71e4feeb663c973e6bcc8e5)) ##### [2.5.6](https://togithub.com/googleapis/java-core/compare/v2.5.5...v2.5.6) (2022-03-01) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.6 ([#​742](https://togithub.com/googleapis/java-core/issues/742)) ([474e56c](https://togithub.com/googleapis/java-core/commit/474e56cca19f9d7b61f62585ee06f1fbdba0ae46)) ##### [2.5.5](https://togithub.com/googleapis/java-core/compare/v2.5.4...v2.5.5) (2022-02-28) ##### Bug Fixes - **java:** initialize spanner test environment class at build-time ([#​734](https://togithub.com/googleapis/java-core/issues/734)) ([684934e](https://togithub.com/googleapis/java-core/commit/684934efb28e4ed5f5f975aab91adad25bf1ab52)) - **java:** initialize TestTag at build time ([#​732](https://togithub.com/googleapis/java-core/issues/732)) ([a5f1dc2](https://togithub.com/googleapis/java-core/commit/a5f1dc2ed3d71404d699830ba4bea8824e67d0e8)) ##### Dependencies - update actions/setup-java action to v3 ([#​739](https://togithub.com/googleapis/java-core/issues/739)) ([46322e3](https://togithub.com/googleapis/java-core/commit/46322e3a9929195c223fc6399860c1cab4d81eb5)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.7.4 ([#​728](https://togithub.com/googleapis/java-core/issues/728)) ([3b83bd7](https://togithub.com/googleapis/java-core/commit/3b83bd7dce6a369c6668f0967572ae08df1b77d8)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.4 ([#​729](https://togithub.com/googleapis/java-core/issues/729)) ([0759c2b](https://togithub.com/googleapis/java-core/commit/0759c2b8163d45bf87692e2f131df76dac5f178e)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.5 ([#​735](https://togithub.com/googleapis/java-core/issues/735)) ([cefbf97](https://togithub.com/googleapis/java-core/commit/cefbf978ac21f00b3c4558ebc40ef1f6355ea156)) - update dependency com.google.auth:google-auth-library-bom to v1.5.3 ([#​737](https://togithub.com/googleapis/java-core/issues/737)) ([a1cb8d8](https://togithub.com/googleapis/java-core/commit/a1cb8d81db34142937c85be5c4502036a4b7939d)) - update dependency com.google.code.gson:gson to v2.9.0 ([#​727](https://togithub.com/googleapis/java-core/issues/727)) ([faf8a44](https://togithub.com/googleapis/java-core/commit/faf8a44e8823ecae44d543e6f5c2a9d8598f04fe)) - update dependency com.google.http-client:google-http-client-bom to v1.41.4 ([#​730](https://togithub.com/googleapis/java-core/issues/730)) ([1975b61](https://togithub.com/googleapis/java-core/commit/1975b617e23f7dd0b263e9acb4010b3126e5d7e7)) - update dependency io.grpc:grpc-bom to v1.44.1 ([#​736](https://togithub.com/googleapis/java-core/issues/736)) ([4ca315c](https://togithub.com/googleapis/java-core/commit/4ca315ca400e020badbdf27bb92d1b67680a2e73)) ##### [2.5.4](https://togithub.com/googleapis/java-core/compare/v2.5.3...v2.5.4) (2022-02-11) ##### Dependencies - update actions/github-script action to v6 ([#​724](https://togithub.com/googleapis/java-core/issues/724)) ([b8673d3](https://togithub.com/googleapis/java-core/commit/b8673d3b3ae08cbfed135cd7ff9d891c04e90611)) ##### [2.5.3](https://togithub.com/googleapis/java-core/compare/v2.5.2...v2.5.3) (2022-02-10) ##### Dependencies - update dependency com.google.api:gax-bom to v2.12.2 ([#​719](https://togithub.com/googleapis/java-core/issues/719)) ([4de90d0](https://togithub.com/googleapis/java-core/commit/4de90d05c152c21a1ebb98f6cbff0f9b9c39e5d2)) - update dependency com.google.http-client:google-http-client-bom to v1.41.3 ([#​720](https://togithub.com/googleapis/java-core/issues/720)) ([d2a5b4f](https://togithub.com/googleapis/java-core/commit/d2a5b4ffa598f232b84655a7ac146bfa2e1f24c9)) ##### [2.5.2](https://togithub.com/googleapis/java-core/compare/v2.5.1...v2.5.2) (2022-02-09) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.3 ([#​716](https://togithub.com/googleapis/java-core/issues/716)) ([100e41e](https://togithub.com/googleapis/java-core/commit/100e41e092f35f6e6d187de45bb6dc3e4e760052)) ##### [2.5.1](https://togithub.com/googleapis/java-core/compare/v2.5.0...v2.5.1) (2022-02-08) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.33.2 ([#​709](https://togithub.com/googleapis/java-core/issues/709)) ([de08f4e](https://togithub.com/googleapis/java-core/commit/de08f4eea6cf4e7813c8da1f6adb28e1e56fd1cd)) - update dependency com.google.api:api-common to v2.1.4 ([#​712](https://togithub.com/googleapis/java-core/issues/712)) ([9cc49de](https://togithub.com/googleapis/java-core/commit/9cc49de654d57e8efdb97c8e3c7f9d8723e79eb9)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.7.3 ([#​710](https://togithub.com/googleapis/java-core/issues/710)) ([a5f1991](https://togithub.com/googleapis/java-core/commit/a5f199157319dfb82cbb24d1b4249d924118de84)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.2 ([#​705](https://togithub.com/googleapis/java-core/issues/705)) ([b8722b9](https://togithub.com/googleapis/java-core/commit/b8722b998966b21cd2d9e6208627c34ff046accf))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 5ffc6238841..a9e14dad3a3 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.5.11 + 2.6.1 test tests From 185b1188abd5663504912e184e500887f1d63213 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Apr 2022 17:36:24 +0200 Subject: [PATCH 329/356] chore(deps): update dependency com.google.cloud:libraries-bom to v25.2.0 (#992) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.1.0` -> `25.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/compatibility-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/confidence-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index a9e14dad3a3..ad0f322f6af 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.1.0 + 25.2.0 pom import From 461717f5c25bf617e72480a8f8af30f8f18bb15f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 16 May 2022 19:46:24 +0200 Subject: [PATCH 330/356] chore(deps): update dependency com.google.cloud:libraries-bom to v25.3.0 (#996) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.2.0` -> `25.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/compatibility-slim/25.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/confidence-slim/25.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index ad0f322f6af..0c0feed1e5a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.2.0 + 25.3.0 pom import From 192ecb69bcb0293a867a0ad898bff83e1e10a4e5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 26 May 2022 18:58:22 +0200 Subject: [PATCH 331/356] deps: update dependency com.google.cloud:google-cloud-core to v2.7.1 (#997) 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-core](https://togithub.com/googleapis/java-core) | `2.6.1` -> `2.7.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.7.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.7.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.7.1/compatibility-slim/2.6.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.7.1/confidence-slim/2.6.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.7.1`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​271-httpsgithubcomgoogleapisjava-corecomparev270v271-2022-05-19) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.7.0...v2.7.1) ### [`v2.7.0`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​270-httpsgithubcomgoogleapisjava-corecomparev261v270-2022-05-18) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.6.1...v2.7.0) ##### Features - **java:** remove native-image-support module ([#​820](https://togithub.com/googleapis/java-core/issues/820)) ([a53ef6d](https://togithub.com/googleapis/java-core/commit/a53ef6d7ba05eeba82998378455f0aea58f24381)) - next release from main branch is 2.7.0 ([#​807](https://togithub.com/googleapis/java-core/issues/807)) ([5a2c608](https://togithub.com/googleapis/java-core/commit/5a2c608e375d15ec83ca71232627bce1f167e750)) ##### Bug Fixes - remove native-image-support module from version.txt ([#​822](https://togithub.com/googleapis/java-core/issues/822)) ([92e7efc](https://togithub.com/googleapis/java-core/commit/92e7efc4974911f7ce30021a280c9002a44dab47)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.34.1 ([#​823](https://togithub.com/googleapis/java-core/issues/823)) ([71105c6](https://togithub.com/googleapis/java-core/commit/71105c64918d6444e321fa3de5fc402e577ebc7d)) - update dependency com.google.api:api-common to v2.2.0 ([#​827](https://togithub.com/googleapis/java-core/issues/827)) ([05a02d6](https://togithub.com/googleapis/java-core/commit/05a02d6b16cb06b9f1dea0814912e5a32913fca8)) - update dependency com.google.api:gax-bom to v2.17.0 ([#​826](https://togithub.com/googleapis/java-core/issues/826)) ([c90188e](https://togithub.com/googleapis/java-core/commit/c90188e9a94ae71d71105d908173f1bd7e77c1cb)) - update dependency com.google.api:gax-bom to v2.18.0 ([#​829](https://togithub.com/googleapis/java-core/issues/829)) ([5537e7f](https://togithub.com/googleapis/java-core/commit/5537e7f80d5db94038b24a393e310120fab62e8c)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.2 ([#​805](https://togithub.com/googleapis/java-core/issues/805)) ([493ac03](https://togithub.com/googleapis/java-core/commit/493ac038d3ca9f603cd47969fde0da68a1f9bfd0)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.3 ([#​814](https://togithub.com/googleapis/java-core/issues/814)) ([e809baa](https://togithub.com/googleapis/java-core/commit/e809baa69672d3eca2dc348f55615dc072a8fbe3)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.4 ([#​825](https://togithub.com/googleapis/java-core/issues/825)) ([5ce12ee](https://togithub.com/googleapis/java-core/commit/5ce12ee0c10e2bdb5981e6ca02966d7eb802ca6c)) - update dependency com.google.auth:google-auth-library-bom to v1.7.0 ([#​828](https://togithub.com/googleapis/java-core/issues/828)) ([2abca2c](https://togithub.com/googleapis/java-core/commit/2abca2c135ba2337d546d5c97bcdd5901e91301a)) - update dependency com.google.cloud:native-image-support to v0.14.0 ([#​824](https://togithub.com/googleapis/java-core/issues/824)) ([997a34a](https://togithub.com/googleapis/java-core/commit/997a34a15a59bb1818fff3d1fbce195a05d12da3)) - update dependency com.google.errorprone:error_prone_annotations to v2.13.1 ([#​806](https://togithub.com/googleapis/java-core/issues/806)) ([9fc5811](https://togithub.com/googleapis/java-core/commit/9fc5811eae52288acd9fb0b967e5737848fe7c5e)) - update dependency com.google.http-client:google-http-client-bom to v1.41.8 ([#​821](https://togithub.com/googleapis/java-core/issues/821)) ([c7e3d6e](https://togithub.com/googleapis/java-core/commit/c7e3d6ef437d9f85dab450b54d63f7218b89788b)) - update dependency com.google.protobuf:protobuf-bom to v3.20.1 ([#​813](https://togithub.com/googleapis/java-core/issues/813)) ([a9c8c92](https://togithub.com/googleapis/java-core/commit/a9c8c92086c0266e14f86a957944c0cc4ab26ee6)) - update dependency io.grpc:grpc-bom to v1.46.0 ([#​815](https://togithub.com/googleapis/java-core/issues/815)) ([03c9bfe](https://togithub.com/googleapis/java-core/commit/03c9bfe4210a6c3995adf89be28b7c8aab402fb3)) - update opencensus.version to v0.31.1 ([#​819](https://togithub.com/googleapis/java-core/issues/819)) ([1800d3a](https://togithub.com/googleapis/java-core/commit/1800d3aa3ff7315947681b648f822f2cf9656a3b)) ##### [2.6.1](https://togithub.com/googleapis/java-core/compare/v2.6.0...v2.6.1) (2022-04-14) ##### Dependencies - update dependency com.google.errorprone:error_prone_annotations to v2.13.0 ([#​802](https://togithub.com/googleapis/java-core/issues/802)) ([042b08e](https://togithub.com/googleapis/java-core/commit/042b08e3cf05dba7e006f802dbc60f95b6da99ef))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 0c0feed1e5a..fdf74e8784e 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.6.1 + 2.7.1 test tests From 9d01c24052c46fcb33c1e8332d3f30f7e6549d1d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Jun 2022 19:14:18 +0200 Subject: [PATCH 332/356] chore(deps): update dependency com.google.cloud:libraries-bom to v25.4.0 (#1006) 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:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.3.0` -> `25.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/compatibility-slim/25.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/confidence-slim/25.3.0)](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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index fdf74e8784e..93653290666 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.3.0 + 25.4.0 pom import From c4b7d188c72330e6d2a05cbbfe2c84d8a0b73a8d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Jun 2022 02:46:12 +0200 Subject: [PATCH 333/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.0 (#1012) 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-core](https://togithub.com/googleapis/java-core) | `2.7.1` -> `2.8.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.0/compatibility-slim/2.7.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.0/confidence-slim/2.7.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.0`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​280-httpsgithubcomgoogleapisjava-corecomparev271v280-2022-06-21) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.7.1...v2.8.0) ##### Features - add build scripts for native image testing in Java 17 ([#​1440](https://togithub.com/googleapis/java-core/issues/1440)) ([#​836](https://togithub.com/googleapis/java-core/issues/836)) ([8826d9b](https://togithub.com/googleapis/java-core/commit/8826d9bc05eb9e4a54c40e8578de85ed79c50e99)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.35.1 ([#​843](https://togithub.com/googleapis/java-core/issues/843)) ([9ffe0c5](https://togithub.com/googleapis/java-core/commit/9ffe0c5b25761abf7ff1bea091aa1db057dff2d0)) - update dependency com.google.api:api-common to v2.2.1 ([#​844](https://togithub.com/googleapis/java-core/issues/844)) ([69dde56](https://togithub.com/googleapis/java-core/commit/69dde5641546b678a385b1ed3a2c7a020f81d285)) - update dependency com.google.api:gax-bom to v2.18.2 ([#​849](https://togithub.com/googleapis/java-core/issues/849)) ([11764b0](https://togithub.com/googleapis/java-core/commit/11764b04629c5bfbc9b0d68174782cc126dc1646)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.9.0 ([#​846](https://togithub.com/googleapis/java-core/issues/846)) ([5dced6d](https://togithub.com/googleapis/java-core/commit/5dced6d25ce0f3e7587d7ac1f6f3713f3b2a18c2)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.4.0 ([#​838](https://togithub.com/googleapis/java-core/issues/838)) ([b0a7afe](https://togithub.com/googleapis/java-core/commit/b0a7afe342a5e15436d439b9cc1e3c58f894ab66)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.4.1 ([#​848](https://togithub.com/googleapis/java-core/issues/848)) ([8260997](https://togithub.com/googleapis/java-core/commit/826099767b0aabe0db26eff2f612f0847b451366)) - update dependency com.google.errorprone:error_prone_annotations to v2.14.0 ([#​839](https://togithub.com/googleapis/java-core/issues/839)) ([3459fb6](https://togithub.com/googleapis/java-core/commit/3459fb668557b982cef5682ce47d3c978b83d69c)) - update dependency com.google.http-client:google-http-client-bom to v1.42.0 ([#​845](https://togithub.com/googleapis/java-core/issues/845)) ([2d2c873](https://togithub.com/googleapis/java-core/commit/2d2c873e274b26f4687d569cc3b8ae58c3c5ed54)) - update dependency com.google.protobuf:protobuf-bom to v3.21.0 ([#​840](https://togithub.com/googleapis/java-core/issues/840)) ([037da15](https://togithub.com/googleapis/java-core/commit/037da15b2aed1719e768ba5b4e001caf25952adc)) - update dependency com.google.protobuf:protobuf-bom to v3.21.1 ([#​841](https://togithub.com/googleapis/java-core/issues/841)) ([04b8862](https://togithub.com/googleapis/java-core/commit/04b886224128f1525ad8398815dc62dac87680af)) - update dependency io.grpc:grpc-bom to v1.47.0 ([#​842](https://togithub.com/googleapis/java-core/issues/842)) ([40984e2](https://togithub.com/googleapis/java-core/commit/40984e23242ba954b6ca741ca3f02ec89e92ae57)) ##### [2.7.1](https://togithub.com/googleapis/java-core/compare/v2.7.0...v2.7.1) (2022-05-19) ##### Dependencies - update dependency com.google.api:gax-bom to v2.18.1 ([#​833](https://togithub.com/googleapis/java-core/issues/833)) ([7541115](https://togithub.com/googleapis/java-core/commit/7541115095e0ae28d938a4c9621fd0f82892fe55))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 93653290666..6d481d0cb85 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.7.1 + 2.8.0 test tests From ab66e13c04c4194fb39a669cb240b9d90d227a10 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 29 Jun 2022 22:35:18 +0200 Subject: [PATCH 334/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.1 (#1017) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6d481d0cb85..4bbb54164d9 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.0 + 2.8.1 test tests From f539080ad4d416326832801680a1f9f31148ff17 Mon Sep 17 00:00:00 2001 From: Alice <65933803+alicejli@users.noreply.github.com> Date: Thu, 7 Jul 2022 10:53:05 -0400 Subject: [PATCH 335/356] chore: update api_shortname in pom.xml (#1026) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update api_shortname in pom.xml * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- translate/snippets/pom.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 4bbb54164d9..1147b368a8b 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -2,14 +2,14 @@ 4.0.0 com.google.cloud - translation-snippets + translate-snippets jar - Google Cloud Translation Snippets + Google Cloud Translate Snippets https://github.com/googleapis/java-translate com.google.cloud.samples @@ -24,7 +24,7 @@
- + @@ -68,5 +68,5 @@ - + From 84893781e05730f6854008b25cfd7a76f770c098 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 11 Jul 2022 20:19:09 +0200 Subject: [PATCH 336/356] chore(deps): update dependency com.google.cloud:libraries-bom to v26 (#1029) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 1147b368a8b..7402e64fd13 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.4.0 + 26.0.0 pom import From bf8acc35f282440bf5abcafd7e87c80e94cefea0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Jul 2022 20:58:14 +0200 Subject: [PATCH 337/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.3 (#1041) 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-core](https://togithub.com/googleapis/java-core) | `2.8.1` -> `2.8.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.3/compatibility-slim/2.8.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.3/confidence-slim/2.8.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.3`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​283-httpsgithubcomgoogleapisjava-corecomparev282v283-2022-07-26) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.1...v2.8.3) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v2 ([#​868](https://togithub.com/googleapis/java-core/issues/868)) ([e117c40](https://togithub.com/googleapis/java-core/commit/e117c40f31acf16a45bdbeeb727ba26d80eb6a51)) - update dependency com.google.api:gax-bom to v2.18.4 ([#​864](https://togithub.com/googleapis/java-core/issues/864)) ([bd40b1d](https://togithub.com/googleapis/java-core/commit/bd40b1d1b36cdcfa833047609e2488594b112be1)) - update dependency com.google.api:gax-bom to v2.18.5 ([#​876](https://togithub.com/googleapis/java-core/issues/876)) ([d8dc7fb](https://togithub.com/googleapis/java-core/commit/d8dc7fbdb0d65e493ca4154658c63e80d89ab600)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.9.2 ([#​870](https://togithub.com/googleapis/java-core/issues/870)) ([7e961e9](https://togithub.com/googleapis/java-core/commit/7e961e945d5e049a1a1bb2592e9c155b5937e33b)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.5.2 ([#​865](https://togithub.com/googleapis/java-core/issues/865)) ([fe7b974](https://togithub.com/googleapis/java-core/commit/fe7b974a0eae82711ca96edf412944309d5d6202)) - update dependency com.google.auth:google-auth-library-bom to v1.8.1 ([#​856](https://togithub.com/googleapis/java-core/issues/856)) ([92df5d3](https://togithub.com/googleapis/java-core/commit/92df5d3c248214970d38432e8c264d151298d1e6)) - update dependency com.google.http-client:google-http-client-bom to v1.42.2 ([#​871](https://togithub.com/googleapis/java-core/issues/871)) ([1972e8e](https://togithub.com/googleapis/java-core/commit/1972e8e45e11597e56609aa5fcd44e61958d5857)) - update dependency com.google.protobuf:protobuf-bom to v3.21.3 ([#​874](https://togithub.com/googleapis/java-core/issues/874)) ([1e18977](https://togithub.com/googleapis/java-core/commit/1e18977820ac766157156fb6246bd318d207971c)) - update dependency com.google.protobuf:protobuf-bom to v3.21.4 ([#​877](https://togithub.com/googleapis/java-core/issues/877)) ([d12fb5e](https://togithub.com/googleapis/java-core/commit/d12fb5e4eb8aa42015df84abf31f56408c8b64d8)) - update dependency io.grpc:grpc-bom to v1.48.0 ([#​873](https://togithub.com/googleapis/java-core/issues/873)) ([a45b075](https://togithub.com/googleapis/java-core/commit/a45b075e414049550c51ff0097337e45128fc499))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 7402e64fd13..a41c0bc454d 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.1 + 2.8.3 test tests From 40e793dd2d5eb7b7e5b923b63bef48c79f203790 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 29 Jul 2022 23:52:12 +0200 Subject: [PATCH 338/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.5 (#1044) 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-core](https://togithub.com/googleapis/java-core) | `2.8.3` -> `2.8.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.5/compatibility-slim/2.8.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.5/confidence-slim/2.8.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.5`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​285-httpsgithubcomgoogleapisjava-corecomparev284v285-2022-07-29) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.4...v2.8.5) ##### Dependencies - update dependency com.google.api:gax-bom to v2.18.6 ([#​885](https://togithub.com/googleapis/java-core/issues/885)) ([7fa028c](https://togithub.com/googleapis/java-core/commit/7fa028c0e78bd21583c8687582da24834bd54449)) ### [`v2.8.4`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​284-httpsgithubcomgoogleapisjava-corecomparev283v284-2022-07-27) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.3...v2.8.4) ##### Documentation - update javadocs for ReadChannel#limit to be more clear ([#​880](https://togithub.com/googleapis/java-core/issues/880)) ([c7de4e2](https://togithub.com/googleapis/java-core/commit/c7de4e2871d6a32cacc7aab69d826f3afd6301ef)) ##### Dependencies - Update google-cloud-shared-config to v1.5.3 ([#​882](https://togithub.com/googleapis/java-core/issues/882)) ([aabb0b4](https://togithub.com/googleapis/java-core/commit/aabb0b42076f8a02e7b31d604add567fa909df6c))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index a41c0bc454d..d2eb63eddbd 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.3 + 2.8.5 test tests From 08c69718349bf5c01828b987d682cffc6dc311b8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 20:44:30 +0200 Subject: [PATCH 339/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.6 (#1049) 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-core](https://togithub.com/googleapis/java-core) | `2.8.5` -> `2.8.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.6/compatibility-slim/2.8.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.6/confidence-slim/2.8.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.6`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​286-httpsgithubcomgoogleapisjava-corecomparev285v286-2022-08-02) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.5...v2.8.6) ##### Dependencies - update dependency com.google.api:gax-bom to v2.18.7 ([#​890](https://togithub.com/googleapis/java-core/issues/890)) ([c67bed5](https://togithub.com/googleapis/java-core/commit/c67bed5281b458e78780cdd918235b5d073917c7)) - update dependency com.google.code.gson:gson to v2.9.1 ([#​888](https://togithub.com/googleapis/java-core/issues/888)) ([7b799c6](https://togithub.com/googleapis/java-core/commit/7b799c66f4aaf057242e9a231b920e49a7c964e9))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index d2eb63eddbd..f13e574fb92 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.5 + 2.8.6 test tests From 4b517a92ef3151af7750f14508570c58cc243856 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Aug 2022 21:40:33 +0200 Subject: [PATCH 340/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.7 (#1055) 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-core](https://togithub.com/googleapis/java-core) | `2.8.6` -> `2.8.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.7/compatibility-slim/2.8.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.7/confidence-slim/2.8.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.7`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​287-httpsgithubcomgoogleapisjava-corecomparev286v287-2022-08-03) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.6...v2.8.7) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v1.9.0 ([#​894](https://togithub.com/googleapis/java-core/issues/894)) ([82aaa16](https://togithub.com/googleapis/java-core/commit/82aaa16cd9813984a0c92d944eb1ad956759a8e5)) - update dependency io.grpc:grpc-bom to v1.48.1 ([#​891](https://togithub.com/googleapis/java-core/issues/891)) ([0b0f9b8](https://togithub.com/googleapis/java-core/commit/0b0f9b89757b801e8334c764644d7b66032d36d1))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index f13e574fb92..8fab72cec25 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.6 + 2.8.7 test tests From 97e043665458736fa21eb141f2aaec36af10eba2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Aug 2022 19:10:28 +0200 Subject: [PATCH 341/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.8 (#1057) 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-core](https://togithub.com/googleapis/java-core) | `2.8.7` -> `2.8.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.8/compatibility-slim/2.8.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.8/confidence-slim/2.8.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.8`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​288-httpsgithubcomgoogleapisjava-corecomparev287v288-2022-08-04) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.7...v2.8.8) ##### Dependencies - update dependency com.google.errorprone:error_prone_annotations to v2.15.0 ([#​897](https://togithub.com/googleapis/java-core/issues/897)) ([29e4fc9](https://togithub.com/googleapis/java-core/commit/29e4fc93d5d4d50f7de85eae7a8150314cca6f43))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 8fab72cec25..6b9df00d980 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.7 + 2.8.8 test tests From cecf16c11ca9178f96555f4fbf1afb627811b045 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 18:10:14 +0200 Subject: [PATCH 342/356] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.0 (#1063) 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:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.0.0` -> `26.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/compatibility-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/confidence-slim/26.0.0)](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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 6b9df00d980..5ceb4ba6815 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.0.0 + 26.1.0 pom import From 872a3370b11061a6c6a10478c0273f84902101b0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 18 Aug 2022 15:28:51 +0200 Subject: [PATCH 343/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.9 (#1066) 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-core](https://togithub.com/googleapis/java-core) | `2.8.8` -> `2.8.9` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.9/compatibility-slim/2.8.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.9/confidence-slim/2.8.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.9`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​289-httpsgithubcomgoogleapisjava-corecomparev288v289-2022-08-16) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.8...v2.8.9) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v1.10.0 ([#​900](https://togithub.com/googleapis/java-core/issues/900)) ([c01b47a](https://togithub.com/googleapis/java-core/commit/c01b47a122a9036f8c594cb583dab3512a257597)) - update dependency com.google.protobuf:protobuf-bom to v3.21.5 ([#​901](https://togithub.com/googleapis/java-core/issues/901)) ([13e2fd6](https://togithub.com/googleapis/java-core/commit/13e2fd6fbae1d34385ec500aaf4a2b38e19dd6de)) - update dependency org.threeten:threetenbp to v1.6.1 ([#​902](https://togithub.com/googleapis/java-core/issues/902)) ([02dac62](https://togithub.com/googleapis/java-core/commit/02dac62784a6614291836917b022a32745312157))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 5ceb4ba6815..039f616ee6c 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.8 + 2.8.9 test tests From 6bf53623565a3b8008ed77930c056f588490fe45 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Aug 2022 17:02:18 +0200 Subject: [PATCH 344/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.10 (#1069) 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-core](https://togithub.com/googleapis/java-core) | `2.8.9` -> `2.8.10` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.10/compatibility-slim/2.8.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.10/confidence-slim/2.8.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.10`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2810-httpsgithubcomgoogleapisjava-corecomparev289v2810-2022-08-24) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.9...v2.8.10) ##### Dependencies - update dependency com.google.api:gax-bom to v2.19.0 ([#​907](https://togithub.com/googleapis/java-core/issues/907)) ([51b824c](https://togithub.com/googleapis/java-core/commit/51b824c225fd7095138e1ec2b6d47af4e2a34352)) - update dependency io.grpc:grpc-bom to v1.49.0 ([#​908](https://togithub.com/googleapis/java-core/issues/908)) ([fbccd2d](https://togithub.com/googleapis/java-core/commit/fbccd2daceb0984c7cb95f84f89a116e54bf4ddc))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 039f616ee6c..8b7deb392ea 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.9 + 2.8.10 test tests From cd138ab15bb4111f431a99d7d40f43de05ce0ffe Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 31 Aug 2022 22:42:28 +0200 Subject: [PATCH 345/356] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.1 (#1071) 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:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.0` -> `26.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/compatibility-slim/26.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/confidence-slim/26.1.0)](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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 8b7deb392ea..7b80e18e66b 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.0 + 26.1.1 pom import From ecdb960e571fc4024da2af4b86959b43f0e51cad Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Sep 2022 05:42:27 +0200 Subject: [PATCH 346/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.11 (#1073) 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-core](https://togithub.com/googleapis/java-core) | `2.8.10` -> `2.8.11` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.11/compatibility-slim/2.8.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.11/confidence-slim/2.8.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.11`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2811-httpsgithubcomgoogleapisjava-corecomparev2810v2811-2022-09-08) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.10...v2.8.11) ##### Dependencies - Update dependency com.google.auth:google-auth-library-bom to v1.11.0 ([#​911](https://togithub.com/googleapis/java-core/issues/911)) ([4656905](https://togithub.com/googleapis/java-core/commit/4656905956504e4bc4fe224d1f8cd70bbab614d8))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 7b80e18e66b..57f5330c9d8 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.10 + 2.8.11 test tests From 56aeb6106b65b64b2fb157eb052971eff35d84fa Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 16:08:13 +0200 Subject: [PATCH 347/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.12 (#1076) 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-core](https://togithub.com/googleapis/java-core) | `2.8.11` -> `2.8.12` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.12/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.12/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.12/compatibility-slim/2.8.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.12/confidence-slim/2.8.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.12`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2812-httpsgithubcomgoogleapisjava-corecomparev2811v2812-2022-09-14) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.11...v2.8.12) ##### Dependencies - Update dependency com.google.api:gax-bom to v2.19.1 ([#​915](https://togithub.com/googleapis/java-core/issues/915)) ([2647fde](https://togithub.com/googleapis/java-core/commit/2647fdee8e2b168f3364af8e76abfe2903578b29)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.6 ([#​916](https://togithub.com/googleapis/java-core/issues/916)) ([a7db234](https://togithub.com/googleapis/java-core/commit/a7db234800481ffba71d3222542971dbcd212d8e))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 57f5330c9d8..5d138e201f5 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.11 + 2.8.12 test tests From 4be7371cf47a65fe9ac4706571fb0da10d4d592d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 17:40:30 +0200 Subject: [PATCH 348/356] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.2 (#1081) 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:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.1` -> `26.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/compatibility-slim/26.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/confidence-slim/26.1.1)](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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 5d138e201f5..18d73d3a48e 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.1 + 26.1.2 pom import From 3bc2a8cb9bccaaeea6e692ffaab797e0a6a72cad Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 22:14:25 +0200 Subject: [PATCH 349/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.13 (#1083) 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-core](https://togithub.com/googleapis/java-core) | `2.8.12` -> `2.8.13` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.13/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.13/compatibility-slim/2.8.12)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.13/confidence-slim/2.8.12)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.13`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2813-httpsgithubcomgoogleapisjava-corecomparev2812v2813-2022-09-20) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.12...v2.8.13) ##### Dependencies - Update dependency io.grpc:grpc-bom to v1.49.1 ([#​919](https://togithub.com/googleapis/java-core/issues/919)) ([2d481ba](https://togithub.com/googleapis/java-core/commit/2d481ba500e247d8fee49abe30a9eb84bdcc8d07))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 18d73d3a48e..a9753305ccc 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.12 + 2.8.13 test tests From 09aa6213773c57982c492ce546ca96bf2cc4a3c1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Sep 2022 16:20:23 +0200 Subject: [PATCH 350/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.14 (#1084) 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-core](https://togithub.com/googleapis/java-core) | `2.8.13` -> `2.8.14` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.14/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.14/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.14/compatibility-slim/2.8.13)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.14/confidence-slim/2.8.13)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.14`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2814-httpsgithubcomgoogleapisjava-corecomparev2813v2814-2022-09-20) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.13...v2.8.14) ##### Dependencies - Update dependency com.google.api.grpc:proto-google-common-protos to v2.9.3 ([#​922](https://togithub.com/googleapis/java-core/issues/922)) ([96b5b4e](https://togithub.com/googleapis/java-core/commit/96b5b4e00004c28cd2d726c2161e94778f6a1c01))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index a9753305ccc..db0169f923f 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.13 + 2.8.14 test tests From 05ac1c184db3159776664912f1e4691d4017292e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 26 Sep 2022 16:30:36 +0200 Subject: [PATCH 351/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.15 (#1085) 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-core](https://togithub.com/googleapis/java-core) | `2.8.14` -> `2.8.15` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.15/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.15/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.15/compatibility-slim/2.8.14)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.15/confidence-slim/2.8.14)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.15`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2815-httpsgithubcomgoogleapisjava-corecomparev2814v2815-2022-09-23) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.14...v2.8.15) ##### Dependencies - Update dependency com.google.api.grpc:proto-google-iam-v1 to v1.6.0 ([#​925](https://togithub.com/googleapis/java-core/issues/925)) ([a5475c5](https://togithub.com/googleapis/java-core/commit/a5475c5333ca97392c9e64a883826ea1bd976a01)) - Update dependency com.google.api.grpc:proto-google-iam-v1 to v1.6.1 ([#​926](https://togithub.com/googleapis/java-core/issues/926)) ([3bc96fb](https://togithub.com/googleapis/java-core/commit/3bc96fbba4907d4ac3d24915870132fed596c0d3))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index db0169f923f..4b20602ab1e 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.14 + 2.8.15 test tests From 4e6e2201be2876892069c6480705b34b50450202 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 30 Sep 2022 23:52:07 +0200 Subject: [PATCH 352/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.18 (#1087) --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 4b20602ab1e..f275210f095 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.15 + 2.8.18 test tests From 66ccbca12910eb1bcb1b5dfa9723a11e4fce16ae Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sun, 2 Oct 2022 23:28:21 +0200 Subject: [PATCH 353/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.19 (#1090) 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-core](https://togithub.com/googleapis/java-core) | `2.8.18` -> `2.8.19` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.19/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.19/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.19/compatibility-slim/2.8.18)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.19/confidence-slim/2.8.18)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.19`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2819-httpsgithubcomgoogleapisjava-corecomparev2818v2819-2022-09-30) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.18...v2.8.19) ##### Dependencies - Update dependency com.google.api.grpc:proto-google-common-protos to v2.9.5 ([#​963](https://togithub.com/googleapis/java-core/issues/963)) ([1ee2f9a](https://togithub.com/googleapis/java-core/commit/1ee2f9acd3968b21974a550b6732fe68b18085f4))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index f275210f095..dc3eb631846 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.18 + 2.8.19 test tests From fe75d767259dda6fe5cad9ad1a0545ba29363d39 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 6 Oct 2022 03:26:35 +0200 Subject: [PATCH 354/356] deps: update dependency com.google.cloud:google-cloud-core to v2.8.20 (#1091) 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-core](https://togithub.com/googleapis/java-core) | `2.8.19` -> `2.8.20` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.20/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.20/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.20/compatibility-slim/2.8.19)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.20/confidence-slim/2.8.19)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-core ### [`v2.8.20`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2820-httpsgithubcomgoogleapisjava-corecomparev2819v2820-2022-10-02) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.19...v2.8.20) ##### Dependencies - Update dependency com.google.api:gax-bom to v2.19.2 ([#​969](https://togithub.com/googleapis/java-core/issues/969)) ([1151449](https://togithub.com/googleapis/java-core/commit/1151449c061ab51c45982444db5f9da9d2ce4fb7)) - Update dependency com.google.api.grpc:proto-google-common-protos to v2.9.6 ([#​967](https://togithub.com/googleapis/java-core/issues/967)) ([4a7b524](https://togithub.com/googleapis/java-core/commit/4a7b524fa366484825bedbc0a4f86d4551a6a0e8)) - Update dependency io.grpc:grpc-bom to v1.49.2 ([#​966](https://togithub.com/googleapis/java-core/issues/966)) ([b7738aa](https://togithub.com/googleapis/java-core/commit/b7738aa71fb9cf0994e4ad1dae4bae433754cda0))
--- ### 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**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index dc3eb631846..58923ca201a 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -62,7 +62,7 @@ com.google.cloud google-cloud-core - 2.8.19 + 2.8.20 test tests From 0296eaa3a5d321fe0e9ce36c90074827d7ffd8b2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Oct 2022 20:04:22 +0200 Subject: [PATCH 355/356] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.3 (#1097) 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:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.2` -> `26.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/compatibility-slim/26.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/confidence-slim/26.1.2)](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 this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- 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-translate). --- translate/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/snippets/pom.xml b/translate/snippets/pom.xml index 58923ca201a..5a2c8b3c4da 100644 --- a/translate/snippets/pom.xml +++ b/translate/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.2 + 26.1.3 pom import From 822fb4bf194bcd335b5e06cb2a2a8ac70311da79 Mon Sep 17 00:00:00 2001 From: shabirmean Date: Thu, 17 Nov 2022 19:22:14 -0500 Subject: [PATCH 356/356] chore: post migration updates - groupId, artifact url, repo references --- translate/README.md | 3 - translate/{snippets => }/pom.xml | 4 +- .../{snippets => }/resources/fake_invoice.pdf | Bin .../example/translate/QuickstartSample.java | 43 ------ .../TranslateTextWithGlossaryAndModel.java | 92 ------------- .../BatchTranslateDocument.java | 123 ------------------ .../translatev3beta1/TranslateDocument.java | 76 ----------- .../example/translate/BatchTranslateText.java | 0 .../BatchTranslateTextWithGlossary.java | 0 ...atchTranslateTextWithGlossaryAndModel.java | 0 .../BatchTranslateTextWithModel.java | 0 .../com/example/translate/CreateGlossary.java | 0 .../com/example/translate/DeleteGlossary.java | 0 .../com/example/translate/DetectLanguage.java | 0 .../com/example/translate/GetGlossary.java | 0 .../translate/GetSupportedLanguages.java | 0 .../GetSupportedLanguagesForTarget.java | 0 .../com/example/translate/ListGlossaries.java | 0 .../translate/TranslateTextWithGlossary.java | 0 .../translate/TranslateTextWithModel.java | 0 .../translate/BatchTranslateTextTests.java | 0 ...ranslateTextWithGlossaryAndModelTests.java | 0 .../BatchTranslateTextWithGlossaryTests.java | 0 .../BatchTranslateTextWithModelTests.java | 0 .../translate/CreateGlossaryTests.java | 0 .../translate/DeleteGlossaryTests.java | 0 .../translate/DetectLanguageTests.java | 0 .../example/translate/GetGlossaryTests.java | 0 .../GetSupportedLanguagesForTargetTests.java | 0 .../translate/GetSupportedLanguagesTests.java | 0 .../translate/ListGlossariesTests.java | 0 .../example/translate/QuickstartSampleIT.java | 0 .../example/translate/TranslateTextTests.java | 0 ...ranslateTextWithGlossaryAndModelTests.java | 0 .../TranslateTextWithGlossaryTests.java | 0 .../TranslateTextWithModelTests.java | 0 .../BatchTranslateDocumentTests.java | 0 .../TranslateDocumentTests.java | 0 38 files changed, 2 insertions(+), 339 deletions(-) delete mode 100644 translate/README.md rename translate/{snippets => }/pom.xml (94%) rename translate/{snippets => }/resources/fake_invoice.pdf (100%) delete mode 100644 translate/snippets/src/main/java/com/example/translate/QuickstartSample.java delete mode 100644 translate/snippets/src/main/java/com/example/translate/TranslateTextWithGlossaryAndModel.java delete mode 100644 translate/snippets/src/main/java/com/example/translatev3beta1/BatchTranslateDocument.java delete mode 100644 translate/snippets/src/main/java/com/example/translatev3beta1/TranslateDocument.java rename translate/{snippets => }/src/main/java/com/example/translate/BatchTranslateText.java (100%) rename translate/{snippets => }/src/main/java/com/example/translate/BatchTranslateTextWithGlossary.java (100%) rename translate/{snippets => }/src/main/java/com/example/translate/BatchTranslateTextWithGlossaryAndModel.java (100%) rename translate/{snippets => }/src/main/java/com/example/translate/BatchTranslateTextWithModel.java (100%) rename translate/{snippets => }/src/main/java/com/example/translate/CreateGlossary.java (100%) rename translate/{snippets => }/src/main/java/com/example/translate/DeleteGlossary.java (100%) rename translate/{snippets => }/src/main/java/com/example/translate/DetectLanguage.java (100%) rename translate/{snippets => }/src/main/java/com/example/translate/GetGlossary.java (100%) rename translate/{snippets => }/src/main/java/com/example/translate/GetSupportedLanguages.java (100%) rename translate/{snippets => }/src/main/java/com/example/translate/GetSupportedLanguagesForTarget.java (100%) rename translate/{snippets => }/src/main/java/com/example/translate/ListGlossaries.java (100%) rename translate/{snippets => }/src/main/java/com/example/translate/TranslateTextWithGlossary.java (100%) rename translate/{snippets => }/src/main/java/com/example/translate/TranslateTextWithModel.java (100%) rename translate/{snippets => }/src/test/java/com/example/translate/BatchTranslateTextTests.java (100%) rename translate/{snippets => }/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryAndModelTests.java (100%) rename translate/{snippets => }/src/test/java/com/example/translate/BatchTranslateTextWithGlossaryTests.java (100%) rename translate/{snippets => }/src/test/java/com/example/translate/BatchTranslateTextWithModelTests.java (100%) rename translate/{snippets => }/src/test/java/com/example/translate/CreateGlossaryTests.java (100%) rename translate/{snippets => }/src/test/java/com/example/translate/DeleteGlossaryTests.java (100%) rename translate/{snippets => }/src/test/java/com/example/translate/DetectLanguageTests.java (100%) rename translate/{snippets => }/src/test/java/com/example/translate/GetGlossaryTests.java (100%) rename translate/{snippets => }/src/test/java/com/example/translate/GetSupportedLanguagesForTargetTests.java (100%) rename translate/{snippets => }/src/test/java/com/example/translate/GetSupportedLanguagesTests.java (100%) rename translate/{snippets => }/src/test/java/com/example/translate/ListGlossariesTests.java (100%) rename translate/{snippets => }/src/test/java/com/example/translate/QuickstartSampleIT.java (100%) rename translate/{snippets => }/src/test/java/com/example/translate/TranslateTextTests.java (100%) rename translate/{snippets => }/src/test/java/com/example/translate/TranslateTextWithGlossaryAndModelTests.java (100%) rename translate/{snippets => }/src/test/java/com/example/translate/TranslateTextWithGlossaryTests.java (100%) rename translate/{snippets => }/src/test/java/com/example/translate/TranslateTextWithModelTests.java (100%) rename translate/{snippets => }/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java (100%) rename translate/{snippets => }/src/test/java/com/example/translatev3beta1/TranslateDocumentTests.java (100%) diff --git a/translate/README.md b/translate/README.md deleted file mode 100644 index 1e03b2d9f8d..00000000000 --- a/translate/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Translate Samples have been moved - -[https://github.com/googleapis/java-translate](https://github.com/googleapis/java-translate). \ No newline at end of file diff --git a/translate/snippets/pom.xml b/translate/pom.xml similarity index 94% rename from translate/snippets/pom.xml rename to translate/pom.xml index 5a2c8b3c4da..cfdcd8e0ef3 100644 --- a/translate/snippets/pom.xml +++ b/translate/pom.xml @@ -1,11 +1,11 @@ 4.0.0 - com.google.cloud + com.example.translate translate-snippets jar Google Cloud Translate Snippets - https://github.com/googleapis/java-translate + https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/translate

(TtN<*H*5C)SpU zZx#4R!;vJxrr{>3O6o{bC@2FL7{4}efplxSG{E)(s7FD2i%XlVL%%TC8JHy&5@{sJ z#N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)G<2al5JGf<$(>hPVww~~A=zeY6 z$BYlDDTJd?tFvezxpGj~#OBX#jnyI!DPdiT5TfJa$UWRKGx1C!pJ$p>2x zipeEzURelUj87!eUFT~!n$j2I<@J#lsn)cra={{7E5@S4dl|1=y#$81<`m`x352tqYPQgY?; zHoBI3%yX(1rqX&$+KO&kg!z}^;G5Aa1sb(G+H%^CsT8YxP|Z_q3tkECbAPZSnDwKE}(P>c3l!UF}}99VbqVbh?md?qmn{->a5e z^w~&XGh1kkn4HpB)`(6Gk#o7ixc=Eyz}9?hV99s>-(UvFt!3!edKD#wMEzW^Vt>%| z!J<>nzb#ndJC2|Uf(DKN{0xamCMepw0{UCX11J@c#-a?j zU;`%*0RZs>bu!Tr&K;07Fx44MBm&(rrMAILfQ8dkQ!x$Sr+91_cGp)5m{N zzo~TYU;OM!A(=xF01633{5k+BNl6Jwz#RBa!(dQS;An0gfZY!o0`vu_=HF--X)FRX z?{74)fdVJTKWIp4Q2T$-BtYqZ&@iA8f8)a-rO^NEi;>1ifj;~vpVS|HC6S0f`br{E zfAC3T(Eqd-v<>qI4TJbo7YqUePVB$yf5J%+`S5T+;;*32A(k|s!F%rFE~ mNrE&QD=meRh5lz2!0 future = + client.batchTranslateDocumentAsync(request); + + System.out.println("Waiting for operation to complete..."); + + // random number between timeout + long randomNumber = ThreadLocalRandom.current().nextInt(timeout, timeout + 100); + BatchTranslateDocumentResponse response = future.get(randomNumber, TimeUnit.SECONDS); + + System.out.println("Total Pages: " + response.getTotalPages()); + } + } +} +// [END translate_v3beta1_batch_translate_document] diff --git a/translate/snippets/src/main/java/com/example/translatev3beta1/TranslateDocument.java b/translate/snippets/src/main/java/com/example/translatev3beta1/TranslateDocument.java new file mode 100644 index 00000000000..7a342a3802e --- /dev/null +++ b/translate/snippets/src/main/java/com/example/translatev3beta1/TranslateDocument.java @@ -0,0 +1,76 @@ +/* + * Copyright 2021 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. + */ + +package com.example.translatev3beta1; + +// [START translate_v3beta1_translate_document] + +import com.google.cloud.translate.v3beta1.DocumentInputConfig; +import com.google.cloud.translate.v3beta1.LocationName; +import com.google.cloud.translate.v3beta1.TranslateDocumentRequest; +import com.google.cloud.translate.v3beta1.TranslateDocumentResponse; +import com.google.cloud.translate.v3beta1.TranslationServiceClient; +import com.google.protobuf.ByteString; +import java.io.FileInputStream; +import java.io.IOException; + +public class TranslateDocument { + + public static void translateDocument() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "YOUR-PROJECT-ID"; + String filePath = "your-text"; + translateDocument(projectId, filePath); + } + + // Translating Document + public static void translateDocument(String projectId, String filePath) throws IOException { + // Initialize client that sends requests. This client can be reused for multiple requests. After + // completing all of your requests, call the "close" method on the client to clean + // up any remaining background resources. + try (TranslationServiceClient client = TranslationServiceClient.create()) { + // The ``global`` location is not supported for batch translation + LocationName parent = LocationName.of(projectId, "us-central1"); + + // Supported file types: https://cloud.google.com/translate/docs/supported-formats + ByteString content = ByteString.readFrom(new FileInputStream(filePath)); + + DocumentInputConfig documentInputConfig = + DocumentInputConfig.newBuilder() + .setContent(content) + .setMimeType("application/pdf") + .build(); + + TranslateDocumentRequest request = + TranslateDocumentRequest.newBuilder() + .setParent(parent.toString()) + .setTargetLanguageCode("fr-FR") + .setDocumentInputConfig(documentInputConfig) + .build(); + + TranslateDocumentResponse response = client.translateDocument(request); + + // To view translated document, write `response.document_translation.byte_stream_outputs` + // to file. If not provided in the TranslationRequest, the translated file will only be + // returned through a byte-stream and its output mime type will be the same as the input + // file's mime type + System.out.println( + "Response: Detected Language Code - " + + response.getDocumentTranslation().getDetectedLanguageCode()); + } + } +} +// [END translate_v3beta1_translate_document] diff --git a/translate/snippets/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java b/translate/snippets/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java new file mode 100644 index 00000000000..588ae493691 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translatev3beta1/BatchTranslateDocumentTests.java @@ -0,0 +1,118 @@ +/* + * Copyright 2021 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. + */ + +package com.example.translatev3beta1; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.paging.Page; +import com.google.cloud.storage.Blob; +import com.google.cloud.storage.Storage; +import com.google.cloud.storage.StorageOptions; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeoutException; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Batch Translate Document sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class BatchTranslateDocumentTests { + + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String INPUT_URI = + "gs://java-docs-samples-testing/translation/invoice2.docx"; + private static final String PREFIX = "BATCH_DOC_TRANSLATION_OUTPUT_"; + private static final String OUTPUT_URI = + String.format("gs://%s/%s%s/", PROJECT_ID, PREFIX, UUID.randomUUID()); + + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static void cleanUpBucket() { + Storage storage = StorageOptions.getDefaultInstance().getService(); + Page blobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix(PREFIX)); + + deleteDirectory(storage, blobs); + } + + private static void deleteDirectory(Storage storage, Page blobs) { + for (Blob blob : blobs.iterateAll()) { + System.out.println(blob.getBlobId()); + if (!blob.delete()) { + Page subBlobs = + storage.list( + PROJECT_ID, + Storage.BlobListOption.currentDirectory(), + Storage.BlobListOption.prefix(blob.getName())); + + deleteDirectory(storage, subBlobs); + } + } + } + + private static void requireEnvVar(String varName) { + assertNotNull(String.format(varName), System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + + // clean up bucket before the use to prevent concurrency issue. + cleanUpBucket(); + } + + @After + public void tearDown() { + cleanUpBucket(); + System.out.flush(); + System.setOut(originalPrintStream); + } + + @Test + public void testBatchTranslateDocument() + throws InterruptedException, ExecutionException, IOException, TimeoutException { + BatchTranslateDocument.batchTranslateDocument( + PROJECT_ID, "en-US", "fr-FR", INPUT_URI, OUTPUT_URI, 1000); + + String got = bout.toString(); + assertThat(got).contains("Total Pages:"); + } +} diff --git a/translate/snippets/src/test/java/com/example/translatev3beta1/TranslateDocumentTests.java b/translate/snippets/src/test/java/com/example/translatev3beta1/TranslateDocumentTests.java new file mode 100644 index 00000000000..02780eee0d5 --- /dev/null +++ b/translate/snippets/src/test/java/com/example/translatev3beta1/TranslateDocumentTests.java @@ -0,0 +1,73 @@ +/* + * Copyright 2021 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. + */ + +package com.example.translatev3beta1; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for Translate Document sample. */ +@RunWith(JUnit4.class) +@SuppressWarnings("checkstyle:abbreviationaswordinname") +public class TranslateDocumentTests { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static void requireEnvVar(String varName) { + assertNotNull(String.format(varName), System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + } + + @After + public void tearDown() { + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + } + + @Test + public void testTranslateText() throws IOException { + TranslateDocument.translateDocument(PROJECT_ID, "resources/fake_invoice.pdf"); + String got = bout.toString(); + assertThat(got).contains("Response: Detected Language Code"); + } +} From 7827a57830853d25b47bcb1b02f910ea10b59491 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 18 Oct 2021 23:56:15 +0200 Subject: [PATCH 296/356] deps: update dependency com.google.cloud:google-cloud-core to v2.1.8 (#833) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.7` -> `2.1.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.8/compatibility-slim/2.1.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.8/confidence-slim/2.1.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes