From d75a95973b8956a55886759d55e871f76f3b65f0 Mon Sep 17 00:00:00 2001 From: Sophia Yang <171981480+yangyzs@users.noreply.github.com> Date: Fri, 17 Jul 2026 16:13:25 -0400 Subject: [PATCH] chore: modernize post-processing for 10 libraries Remove legacy owlbot.py scripts and migrate configurations to librarian.yaml for the following libraries: - bigquerydatatransfer - bigquerystorage - bigtable - containeranalysis - datastore - dialogflow - dlp - errorreporting - firestore - grafeas For https://github.com/googleapis/librarian/issues/6900 --- java-bigquerydatatransfer/README.md | 15 +- java-bigquerydatatransfer/owlbot.py | 48 ---- java-bigquerystorage/README.md | 21 +- java-bigquerystorage/owlbot.py | 36 --- java-bigtable/README.md | 14 +- java-bigtable/owlbot.py | 69 ------ java-containeranalysis/README.md | 15 +- java-containeranalysis/owlbot.py | 60 ----- java-datastore/README.md | 19 +- java-datastore/owlbot.py | 42 ---- java-dialogflow/README.md | 15 +- java-dialogflow/owlbot.py | 109 --------- java-dlp/README.md | 15 +- java-dlp/owlbot.py | 66 ------ java-errorreporting/README.md | 11 +- java-errorreporting/owlbot.py | 92 -------- java-firestore/README.md | 16 +- java-firestore/owlbot.py | 77 ------ java-grafeas/README.md | 7 +- java-grafeas/owlbot.py | 93 -------- .../main/java/io/grafeas/v1/GrafeasGrpc.java | 16 -- librarian.yaml | 223 ++++++++++++++++++ 22 files changed, 299 insertions(+), 780 deletions(-) delete mode 100644 java-bigquerydatatransfer/owlbot.py delete mode 100644 java-bigquerystorage/owlbot.py delete mode 100644 java-bigtable/owlbot.py delete mode 100644 java-containeranalysis/owlbot.py delete mode 100644 java-datastore/owlbot.py delete mode 100644 java-dialogflow/owlbot.py delete mode 100644 java-dlp/owlbot.py delete mode 100644 java-errorreporting/owlbot.py delete mode 100644 java-firestore/owlbot.py delete mode 100644 java-grafeas/owlbot.py diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index ecd28c95fe82..b3cef4c1033e 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -11,7 +11,6 @@ Java idiomatic client for [BigQuery Data Transfer Service][product-docs]. ## Quickstart - If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: ```xml @@ -46,6 +45,14 @@ If you are using Maven without the BOM, add this to your dependencies: ``` +If you are using Gradle 5.x or later, add this to your dependencies: + +```Groovy +implementation platform('com.google.cloud:libraries-bom:26.83.0') + +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer' +``` + If you are using Gradle without BOM, add this to your dependencies: ```Groovy @@ -71,7 +78,7 @@ The client application making API calls must be granted [authorization scopes][a ### Prerequisites You will need a [Google Cloud Platform Console][developer-console] project with the BigQuery Data Transfer Service [API enabled][enable-api]. - +You will need to [enable billing][enable-billing] to use Google BigQuery Data Transfer Service. [Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by [installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. @@ -147,8 +154,6 @@ the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` and on [google-cloud-java][g-c-j]. ## Versioning - - This library follows [Semantic Versioning](http://semver.org/). @@ -187,7 +192,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md [code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct [license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE - +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=bigquerydatatransfer.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png diff --git a/java-bigquerydatatransfer/owlbot.py b/java-bigquerydatatransfer/owlbot.py deleted file mode 100644 index 9edac350d5fd..000000000000 --- a/java-bigquerydatatransfer/owlbot.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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 -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import synthtool as s -from synthtool.languages import java - - -for library in s.get_staging_dirs(): - # put any special-case replacements here - - # Ensure backwards-compat for Java-microgenerator migration - # Details: https://github.com/googleapis/synthtool/pull/883 - java.remove_method('owl-bot-staging/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java', 'public static List parseList(List formattedStrings)') - java.remove_method('owl-bot-staging/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java', 'public static List toStringList(List<@Nullable DataSourceName> values)') - java.remove_method('owl-bot-staging/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java', 'public static List parseList(List formattedStrings)') - java.remove_method('owl-bot-staging/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java', 'public static List toStringList(List<@Nullable TransferConfigName> values)') - java.remove_method('owl-bot-staging/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java', 'public static List parseList(List formattedStrings)') - java.remove_method('owl-bot-staging/v1/proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java', 'public static List toStringList(List<@Nullable RunName> values)') - - s.move(library) - -s.remove_staging_dirs() -java.common_templates( - monorepo=True, - excludes=[ - ".github/*", - ".kokoro/*", - "samples/*", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "SECURITY.md", - "java.header", - "license-checks.xml", - "renovate.json", - ".gitignore" -]) diff --git a/java-bigquerystorage/README.md b/java-bigquerystorage/README.md index a8dc40570471..461dbe97ecce 100644 --- a/java-bigquerystorage/README.md +++ b/java-bigquerystorage/README.md @@ -19,14 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 - pom - import - - - io.opentelemetry - opentelemetry-bom - 1.52.0 + 26.83.0 pom import @@ -38,7 +31,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud google-cloud-bigquerystorage - + ``` If you are using Maven without the BOM, add this to your dependencies: @@ -48,9 +41,8 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerystorage - 3.17.2 + 3.30.0 - ``` If you are using Gradle 5.x or later, add this to your dependencies: @@ -60,6 +52,7 @@ implementation platform('com.google.cloud:libraries-bom:26.83.0') implementation 'com.google.cloud:google-cloud-bigquerystorage' ``` + If you are using Gradle without BOM, add this to your dependencies: ```Groovy @@ -85,7 +78,7 @@ The client application making API calls must be granted [authorization scopes][a ### Prerequisites You will need a [Google Cloud Platform Console][developer-console] project with the BigQuery Storage [API enabled][enable-api]. - +You will need to [enable billing][enable-billing] to use Google BigQuery Storage. [Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by [installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. @@ -214,8 +207,6 @@ the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` and on [google-cloud-java][g-c-j]. ## Versioning - - This library follows [Semantic Versioning](http://semver.org/). @@ -254,7 +245,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md [code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct [license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE - +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=bigquerystorage.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png diff --git a/java-bigquerystorage/owlbot.py b/java-bigquerystorage/owlbot.py deleted file mode 100644 index 193523318929..000000000000 --- a/java-bigquerystorage/owlbot.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import synthtool as s -from synthtool.languages import java - -for library in s.get_staging_dirs(): - # put any special-case replacements here - s.move(library) -s.remove_staging_dirs() -java.common_templates( - monorepo=True, - excludes=[ - ".github/*", - ".kokoro/*", - "samples/*", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "SECURITY.md", - "java.header", - "license-checks.xml", - "renovate.json", - ".gitignore" -]) diff --git a/java-bigtable/README.md b/java-bigtable/README.md index 4b42c8469c03..d8211b682542 100644 --- a/java-bigtable/README.md +++ b/java-bigtable/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.69.0 + 26.83.0 pom import @@ -31,7 +31,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud google-cloud-bigtable - + ``` If you are using Maven without the BOM, add this to your dependencies: @@ -41,9 +41,8 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigtable - 2.67.0 + 2.80.0 - ``` If you are using Gradle 5.x or later, add this to your dependencies: @@ -53,6 +52,7 @@ implementation platform('com.google.cloud:libraries-bom:26.83.0') implementation 'com.google.cloud:google-cloud-bigtable' ``` + If you are using Gradle without BOM, add this to your dependencies: ```Groovy @@ -78,7 +78,7 @@ The client application making API calls must be granted [authorization scopes][a ### Prerequisites You will need a [Google Cloud Platform Console][developer-console] project with the Cloud Bigtable [API enabled][enable-api]. - +You will need to [enable billing][enable-billing] to use Google Cloud Bigtable. [Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by [installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. @@ -424,8 +424,6 @@ the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` and on [google-cloud-java][g-c-j]. ## Versioning - - This library follows [Semantic Versioning](http://semver.org/). @@ -464,7 +462,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md [code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct [license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE - +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=bigtable.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png diff --git a/java-bigtable/owlbot.py b/java-bigtable/owlbot.py deleted file mode 100644 index 1c5670b95625..000000000000 --- a/java-bigtable/owlbot.py +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import synthtool as s -from synthtool.languages import java - -'This script is used to synthesize generated parts of this library.' -import re -import os.path -data_internal_only = ['owl-bot-staging/v2/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java', 'owl-bot-staging/v2/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java', 'owl-bot-staging/v2/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java', 'owl-bot-staging/v2/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableCallableFactory.java'] -def make_internal_only(sources): - """Annotates all toplevel classes with `@InternalOnly`""" - s.replace(sources, before='^(import (?!static).*?\\n)\\n', after='\\1import com.google.api.core.InternalApi;\\n\\n', flags=re.MULTILINE | re.DOTALL) - s.replace(sources, before='/\\*\\*.+?\\*/\\n(?:^@[^\\n]*\\n)*(?=public [a-zA-B ]*class)', after='/** For internal use only. */\n@Generated("by gapic-generator")\n@InternalApi\n', flags=re.MULTILINE | re.DOTALL) - -for library in s.get_staging_dirs(): - # put any special-case replacements here - make_internal_only(data_internal_only) - if os.path.exists('owl-bot-staging/v2/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java'): - os.remove('owl-bot-staging/v2/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java') - if os.path.exists('owl-bot-staging/v2/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java'): - os.remove('owl-bot-staging/v2/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java') - if os.path.exists('owl-bot-staging/v2/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/BaseBigtableDataClientTest.java'): - os.remove('owl-bot-staging/v2/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/BaseBigtableDataClientTest.java') - if os.path.exists('owl-bot-staging/v2/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/MockBigtable.java'): - os.remove('owl-bot-staging/v2/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/MockBigtable.java') - if os.path.exists('owl-bot-staging/v2/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/MockBigtableImpl.java'): - os.remove('owl-bot-staging/v2/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/MockBigtableImpl.java') - if os.path.exists('owl-bot-staging/v2/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/package-info.java'): - os.remove('owl-bot-staging/v2/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/package-info.java') - if os.path.exists('owl-bot-staging/v2/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/package-info.java'): - os.remove('owl-bot-staging/v2/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/package-info.java') - s.replace(f'{library}/**/BaseBigtable*AdminClient.java', 'public static final BaseBigtable(.*)AdminClient create\\(', 'protected static BaseBigtable\\1AdminClient create(') - - # Remove the 'final' modifier from the close() method in the Base Admin clients - # This allows our handwritten wrappers to override close() and clean up custom executors. - s.replace( - f"{library}/**/BaseBigtable*AdminClient.java", - r"public final void close\(\) \{", - r"public void close() {" - ) - s.move(library) -s.remove_staging_dirs() -java.common_templates( - monorepo=True, - excludes=[ - ".github/*", - ".kokoro/*", - "samples/*", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "SECURITY.md", - "java.header", - "license-checks.xml", - "renovate.json", - ".gitignore" -]) diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index bf0420972afa..02d498ced638 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/README.md @@ -11,7 +11,6 @@ Java idiomatic client for [Cloud Container Analysis][product-docs]. ## Quickstart - If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: ```xml @@ -46,6 +45,14 @@ If you are using Maven without the BOM, add this to your dependencies: ``` +If you are using Gradle 5.x or later, add this to your dependencies: + +```Groovy +implementation platform('com.google.cloud:libraries-bom:26.83.0') + +implementation 'com.google.cloud:google-cloud-containeranalysis' +``` + If you are using Gradle without BOM, add this to your dependencies: ```Groovy @@ -71,7 +78,7 @@ The client application making API calls must be granted [authorization scopes][a ### Prerequisites You will need a [Google Cloud Platform Console][developer-console] project with the Cloud Container Analysis [API enabled][enable-api]. - +You will need to [enable billing][enable-billing] to use Google Cloud Container Analysis. [Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by [installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. @@ -147,8 +154,6 @@ the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` and on [google-cloud-java][g-c-j]. ## Versioning - - This library follows [Semantic Versioning](http://semver.org/). @@ -187,7 +192,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md [code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct [license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE - +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=containeranalysis.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png diff --git a/java-containeranalysis/owlbot.py b/java-containeranalysis/owlbot.py deleted file mode 100644 index 0e1f0424a431..000000000000 --- a/java-containeranalysis/owlbot.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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 -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import synthtool as s -from synthtool.languages import java - -get_grafeas_code = """ - /** - * Returns a new GrafeasClient with the same configured settings. - * - * @throws IOException - */ - public GrafeasClient getGrafeasClient() throws IOException { - return GrafeasClient.create(GrafeasUtils.transformSettings(settings)); - } -""" - -for library in s.get_staging_dirs(): - # put any special-case replacements here - s.replace( - f'owl-bot-staging/v1/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisClient.java', - 'import com.google.iam.v1.TestIamPermissionsResponse;', - 'import com.google.iam.v1.TestIamPermissionsResponse;\nimport io.grafeas.v1.GrafeasClient;' - ) - - # add getGrafeasClient() - s.replace( - f'owl-bot-staging/v1/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisClient.java', - r'(\s+private final ContainerAnalysisStub stub;.*)', - f'\g<1>{get_grafeas_code}' - ) - s.move(library) - -s.remove_staging_dirs() -java.common_templates( - monorepo=True, - excludes=[ - ".github/*", - ".kokoro/*", - "samples/*", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "SECURITY.md", - "java.header", - "license-checks.xml", - "renovate.json", - ".gitignore" -]) diff --git a/java-datastore/README.md b/java-datastore/README.md index 57cbb6ba67e1..a2790e3bd4d1 100644 --- a/java-datastore/README.md +++ b/java-datastore/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.62.0 + 26.83.0 pom import @@ -30,9 +30,8 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud google-cloud-datastore - 3.3.0-SNAPSHOT - + ``` If you are using Maven without the BOM, add this to your dependencies: @@ -42,9 +41,8 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastore - 2.31.2 + 3.2.0 - ``` If you are using Gradle 5.x or later, add this to your dependencies: @@ -54,6 +52,7 @@ implementation platform('com.google.cloud:libraries-bom:26.83.0') implementation 'com.google.cloud:google-cloud-datastore' ``` + If you are using Gradle without BOM, add this to your dependencies: ```Groovy @@ -79,7 +78,7 @@ The client application making API calls must be granted [authorization scopes][a ### Prerequisites You will need a [Google Cloud Platform Console][developer-console] project with the Cloud Datastore [API enabled][enable-api]. - +You will need to [enable billing][enable-billing] to use Google Cloud Datastore. [Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by [installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. @@ -384,9 +383,9 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-java/ | Sum Aggregation With Limit | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/datastore/aggregation/SumAggregationWithLimit.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/datastore/aggregation/SumAggregationWithLimit.java) | | Sum Aggregation With Order By | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/datastore/aggregation/SumAggregationWithOrderBy.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/datastore/aggregation/SumAggregationWithOrderBy.java) | | Sum Aggregation With Property Filter | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/datastore/aggregation/SumAggregationWithPropertyFilter.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/datastore/aggregation/SumAggregationWithPropertyFilter.java) | -| Indexing Consideration Query | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/datastore/filters/IndexingConsiderationQuery.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/datastore/filters/IndexingConsiderationQuery.java) | +| Queries with indexing considerations | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/datastore/filters/IndexingConsiderationQuery.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/datastore/filters/IndexingConsiderationQuery.java) | | Create a union between two filters | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/datastore/filters/OrFilterQuery.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/datastore/filters/OrFilterQuery.java) | -| Order Fields Query | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/datastore/filters/OrderFieldsQuery.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/datastore/filters/OrderFieldsQuery.java) | +| Queries with order fileds | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/datastore/filters/OrderFieldsQuery.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/datastore/filters/OrderFieldsQuery.java) | | Query Profile Explain | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/datastore/queryprofile/QueryProfileExplain.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/datastore/queryprofile/QueryProfileExplain.java) | | Query Profile Explain Aggregation | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/datastore/queryprofile/QueryProfileExplainAggregation.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/datastore/queryprofile/QueryProfileExplainAggregation.java) | | Query Profile Explain Analyze | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/com/example/datastore/queryprofile/QueryProfileExplainAnalyze.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/datastore/queryprofile/QueryProfileExplainAnalyze.java) | @@ -448,8 +447,6 @@ the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` and on [google-cloud-java][g-c-j]. ## Versioning - - This library follows [Semantic Versioning](http://semver.org/). @@ -488,7 +485,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md [code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct [license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE - +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=datastore.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png diff --git a/java-datastore/owlbot.py b/java-datastore/owlbot.py deleted file mode 100644 index 99c03f811bb0..000000000000 --- a/java-datastore/owlbot.py +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import synthtool as s -from synthtool.languages import java - -protobuf_header = '// Generated by the protocol buffer compiler. DO NOT EDIT!' -license_header = '/*\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n' -service = 'datastore' -version = 'v1' - -for library in s.get_staging_dirs(): - # put any special-case replacements here - s.replace(f'owl-bot-staging/v1/proto-google-cloud-{service}-{version}-java/src/**/*.java', protobuf_header, f'{license_header}{protobuf_header}') - s.move(library) -s.remove_staging_dirs() -java.common_templates( - monorepo=True, - excludes=[ - ".github/*", - ".kokoro/*", - "samples/*", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "SECURITY.md", - "java.header", - "license-checks.xml", - "renovate.json", - ".gitignore" -]) diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index 7aee4fa1deee..b43fdf04f716 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -11,7 +11,6 @@ Java idiomatic client for [Dialogflow API][product-docs]. ## Quickstart - If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: ```xml @@ -46,6 +45,14 @@ If you are using Maven without the BOM, add this to your dependencies: ``` +If you are using Gradle 5.x or later, add this to your dependencies: + +```Groovy +implementation platform('com.google.cloud:libraries-bom:26.83.0') + +implementation 'com.google.cloud:google-cloud-dialogflow' +``` + If you are using Gradle without BOM, add this to your dependencies: ```Groovy @@ -71,7 +78,7 @@ The client application making API calls must be granted [authorization scopes][a ### Prerequisites You will need a [Google Cloud Platform Console][developer-console] project with the Dialogflow API [API enabled][enable-api]. - +You will need to [enable billing][enable-billing] to use Google Dialogflow API. [Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by [installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. @@ -147,8 +154,6 @@ the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` and on [google-cloud-java][g-c-j]. ## Versioning - - This library follows [Semantic Versioning](http://semver.org/). @@ -187,7 +192,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md [code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct [license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE - +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=dialogflow.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png diff --git a/java-dialogflow/owlbot.py b/java-dialogflow/owlbot.py deleted file mode 100644 index f40dd7102cf6..000000000000 --- a/java-dialogflow/owlbot.py +++ /dev/null @@ -1,109 +0,0 @@ -# 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 -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import synthtool as s -from synthtool.languages import java - - -for library in s.get_staging_dirs(): - # put any special-case replacements here - # TODO: remove this for the next major version bump - if 'formatProjectAgentName' not in open('owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java').read(): - s.replace( - 'owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java', - 'public static String formatProjectName', - 'public static String formatProjectAgentName' - ) - s.replace( - 'owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java', - 'public static String formatProjectLocationName', - 'public static String formatProjectLocationAgentName' - ) - s.replace( - 'owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java', - 'ProjectBuilder', - 'ProjectAgentBuilder' - ) - s.replace( - 'owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java', - 'ProjectLocationBuilder', - 'ProjectLocationAgentBuilder' - ) - - DEPRECATION_JAVADOC = """Please use {{@link #{new_method}()}} instead""" - - - java.copy_and_rename_method( - 'owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java', - 'public static AgentName ofProjectName(String project)', - 'ofProjectName', - 'ofProjectAgentName' - ) - java.deprecate_method( - 'owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java', - 'public static AgentName ofProjectAgentName(String project)', - DEPRECATION_JAVADOC.format(new_method='ofProjectName') - ) - s.replace( - 'owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java', - 'return ofProjectName', - 'return ofProjectAgentName' - ) - s.replace( - 'owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java', - 'return ofProjectLocationName', - 'return ofProjectLocationAgentName' - ) - java.copy_and_rename_method( - 'owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java', - 'public static AgentName ofProjectLocationName(String project, String location)', - 'ofProjectLocationName', - 'ofProjectLocationAgentName' - ) - java.deprecate_method( - 'owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java', - 'public static AgentName ofProjectLocationAgentName(String project, String location)', - DEPRECATION_JAVADOC.format(new_method='ofProjectLocationName') - ) - - s.replace( - [ - 'owl-bot-staging/v2beta1/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/AgentsClientTest.java', - 'owl-bot-staging/v2beta1/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClientTest.java', - 'owl-bot-staging/v2beta1/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClientTest.java', - 'owl-bot-staging/v2beta1/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/IntentsClientTest.java', - 'owl-bot-staging/v2beta1/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/VersionsClientTest.java' - - ], - 'ofProjectName', - 'ofProjectAgentName' - ) - s.move(library) - -s.remove_staging_dirs() -java.common_templates( - monorepo=True, - excludes=[ - ".github/*", - ".kokoro/*", - "samples/*", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "SECURITY.md", - "java.header", - "license-checks.xml", - "renovate.json", - ".gitignore" -]) diff --git a/java-dlp/README.md b/java-dlp/README.md index 6364bcbd913d..ea4f06fe8d43 100644 --- a/java-dlp/README.md +++ b/java-dlp/README.md @@ -11,7 +11,6 @@ Java idiomatic client for [Cloud Data Loss Prevention][product-docs]. ## Quickstart - If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: ```xml @@ -46,6 +45,14 @@ If you are using Maven without the BOM, add this to your dependencies: ``` +If you are using Gradle 5.x or later, add this to your dependencies: + +```Groovy +implementation platform('com.google.cloud:libraries-bom:26.83.0') + +implementation 'com.google.cloud:google-cloud-dlp' +``` + If you are using Gradle without BOM, add this to your dependencies: ```Groovy @@ -71,7 +78,7 @@ The client application making API calls must be granted [authorization scopes][a ### Prerequisites You will need a [Google Cloud Platform Console][developer-console] project with the Cloud Data Loss Prevention [API enabled][enable-api]. - +You will need to [enable billing][enable-billing] to use Google Cloud Data Loss Prevention. [Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by [installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. @@ -147,8 +154,6 @@ the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` and on [google-cloud-java][g-c-j]. ## Versioning - - This library follows [Semantic Versioning](http://semver.org/). @@ -187,7 +192,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md [code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct [license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE - +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=dlp.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png diff --git a/java-dlp/owlbot.py b/java-dlp/owlbot.py deleted file mode 100644 index 9bea6bd29761..000000000000 --- a/java-dlp/owlbot.py +++ /dev/null @@ -1,66 +0,0 @@ -# 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 -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import synthtool as s -from synthtool.languages import java - - -for library in s.get_staging_dirs(): - # put any special-case replacements here - - # TODO: remove this for the next semver major release - # remove ResourceName base parseList and toStringList for backward-compatibility with legacy - # resource name implementation - java.remove_method( - "owl-bot-staging/v2/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateName.java", - "public static List parseList(List formattedStrings)" - ) - java.remove_method( - "owl-bot-staging/v2/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateName.java", - "public static List toStringList(List<@Nullable InspectTemplateName> values)" - ) - java.remove_method( - "owl-bot-staging/v2/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateName.java", - "public static List parseList(List formattedStrings)" - ) - java.remove_method( - "owl-bot-staging/v2/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateName.java", - "public static List toStringList(List<@Nullable DeidentifyTemplateName> values)" - ) - java.remove_method( - "owl-bot-staging/v2/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeName.java", - "public static List parseList(List formattedStrings)" - ) - java.remove_method( - "owl-bot-staging/v2/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeName.java", - "public static List toStringList(List<@Nullable StoredInfoTypeName> values)" - ) - s.move(library) - -s.remove_staging_dirs() -java.common_templates( - monorepo=True, - excludes=[ - ".github/*", - ".kokoro/*", - "samples/*", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "SECURITY.md", - "java.header", - "license-checks.xml", - "renovate.json", - ".gitignore" -]) diff --git a/java-errorreporting/README.md b/java-errorreporting/README.md index 5f11dbbbca55..4a3a1d9e89a0 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/README.md @@ -14,7 +14,6 @@ Java idiomatic client for [Error Reporting][product-docs]. ## Quickstart - If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: ```xml @@ -49,6 +48,14 @@ If you are using Maven without the BOM, add this to your dependencies: ``` +If you are using Gradle 5.x or later, add this to your dependencies: + +```Groovy +implementation platform('com.google.cloud:libraries-bom:26.83.0') + +implementation 'com.google.cloud:google-cloud-errorreporting' +``` + If you are using Gradle without BOM, add this to your dependencies: ```Groovy @@ -150,8 +157,6 @@ the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` and on [google-cloud-java][g-c-j]. ## Versioning - - This library follows [Semantic Versioning](http://semver.org/). diff --git a/java-errorreporting/owlbot.py b/java-errorreporting/owlbot.py deleted file mode 100644 index 0ad0d8770111..000000000000 --- a/java-errorreporting/owlbot.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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 -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import os -import synthtool as s -from synthtool.languages import java - - -for library in s.get_staging_dirs(): - # put any special-case replacements here - ERROR_GROUP_OVERLOAD = """ - // Inserted by synthtool to preserve backwards-compatibility - /** - * Get the specified group. - * - *

Sample code: - * - *


-       * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
-       *   GroupName groupName = GroupName.of("[PROJECT]", "[GROUP]");
-       *   ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
-       * }
-       * 
- * - * @param groupName Required. The group resource name. Written as - * <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>. - * Call <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list"> - * <code>groupStats.list</code></a> to return a list of groups belonging to - * this project. - *

Example: <code>projects/my-project-123/groups/my-group</code> - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use ErrorGroupServiceClient#getGroup(ErrorGroupName) - */ - @Deprecated - public final ErrorGroup getGroup(GroupName groupName) { - - GetGroupRequest request = - GetGroupRequest.newBuilder() - .setGroupName(groupName == null ? null : groupName.toString()) - .build(); - return getGroup(request); - } - """ - - ERROR_GROUP_OVERLOAD_PREVIOUS_METHOD = r'(\s+public ErrorGroupServiceStub getStub\(\) {\n\s+return stub;\n\s+})' - - version = library.parts[len(library.parts) - 1] - service = 'errorreporting' - - #java.fix_proto_headers('owl-bot-staging/v2beta1/proto-google-cloud-error-reporting-v1beta1') - #java.fix_grpc_headers('owl-bot-staging/v2beta1/grpc-google-cloud-error-reporting-v1beta1', "") - - s.replace( - 'owl-bot-staging/v1beta1/google-cloud-errorreporting/src/**/ErrorGroupServiceClient.java', - ERROR_GROUP_OVERLOAD_PREVIOUS_METHOD, - "\g<1>\n\n" + ERROR_GROUP_OVERLOAD - ) - s.replace( - 'owl-bot-staging/v1beta1/google-cloud-errorreporting/src/**/ErrorGroupServiceClient.java', - "import com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupName;", - "import com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupName;\nimport com.google.devtools.clouderrorreporting.v1beta1.GroupName;" - ) - - s.move(library) - -s.remove_staging_dirs() -java.common_templates( - monorepo=True, - excludes=[ - ".github/*", - ".kokoro/*", - "samples/*", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "SECURITY.md", - "java.header", - "license-checks.xml", - "renovate.json", - ".gitignore" -]) diff --git a/java-firestore/README.md b/java-firestore/README.md index 0973bb1c61f2..348148267b3c 100644 --- a/java-firestore/README.md +++ b/java-firestore/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.65.0 + 26.83.0 pom import @@ -31,7 +31,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud google-cloud-firestore - + ``` If you are using Maven without the BOM, add this to your dependencies: @@ -41,9 +41,8 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-firestore - 3.31.9 + 3.44.0 - ``` If you are using Gradle 5.x or later, add this to your dependencies: @@ -53,6 +52,7 @@ implementation platform('com.google.cloud:libraries-bom:26.83.0') implementation 'com.google.cloud:google-cloud-firestore' ``` + If you are using Gradle without BOM, add this to your dependencies: ```Groovy @@ -78,7 +78,7 @@ The client application making API calls must be granted [authorization scopes][a ### Prerequisites You will need a [Google Cloud Platform Console][developer-console] project with the Cloud Firestore [API enabled][enable-api]. - +You will need to [enable billing][enable-billing] to use Google Cloud Firestore. [Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by [installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. @@ -98,8 +98,6 @@ use this Cloud Firestore Client Library. - - ## Samples Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-java/tree/main/samples) directory. @@ -173,8 +171,6 @@ the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` and on [google-cloud-java][g-c-j]. ## Versioning - - This library follows [Semantic Versioning](http://semver.org/). @@ -213,7 +209,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md [code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct [license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE - +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=firestore.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png diff --git a/java-firestore/owlbot.py b/java-firestore/owlbot.py deleted file mode 100644 index a502de3e6398..000000000000 --- a/java-firestore/owlbot.py +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import synthtool as s -from synthtool.languages import java - -'This script is used to synthesize generated parts of this library.' -import json -protobuf_header = '// Generated by the protocol buffer compiler. DO NOT EDIT!' -license_header = '/*\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n' -bad_license_header = '/\\*\n \\* Copyright 2018 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' -metadata_path = '.repo-metadata.json' -try: - with open(metadata_path, 'r') as f: - metadata = json.load(f) - if 'library_path_overrides' not in metadata: - metadata['library_path_overrides'] = {} - metadata['library_path_overrides']['FirestoreAdminClient'] = 'google-cloud-firestore-admin' - with open(metadata_path, 'w') as f: - json.dump(metadata, f, indent=2) - f.write('\n') -except Exception as e: - print(f'Failed to update .repo-metadata.json: {e}') - -# Loop 1: License header replacements -for library in s.get_staging_dirs(): - # put any special-case replacements here - service = 'firestore' - version = 'v1' - s.replace(f'owl-bot-staging/v1/proto-google-cloud-{service}-{version}-java/src/**/*.java', protobuf_header, f'{license_header}{protobuf_header}') - service = 'firestore-admin' - s.replace(f'owl-bot-staging/v1/grpc-google-cloud-{service}-{version}-java/src/**/*.java', bad_license_header, license_header) - s.replace(f'owl-bot-staging/v1/proto-google-cloud-{service}-{version}-java/src/**/*.java', bad_license_header, license_header) - -# Loop 2: Move libraries and handle special cases -for version_dir in s.get_staging_dirs(): - for library in version_dir.iterdir(): - if not library.is_dir(): - continue - if library.name == "google-cloud-firestore-admin": - s.move(library, excludes=["**/Version.java"]) - # Replace Version.VERSION with FirestoreAdminVersion.VERSION in stub files - s.replace( - "google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStubSettings.java", - "Version.VERSION", - "FirestoreAdminVersion.VERSION", - ) - else: - s.move(library) - -s.remove_staging_dirs() -java.common_templates( - monorepo=True, - excludes=[ - ".github/*", - ".kokoro/*", - "samples/*", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "SECURITY.md", - "java.header", - "license-checks.xml", - "renovate.json", - ".gitignore" -]) diff --git a/java-grafeas/README.md b/java-grafeas/README.md index 242a488304cf..0314f51544ec 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/README.md @@ -11,7 +11,6 @@ Java idiomatic client for [Grafeas][product-docs]. ## Quickstart - If you are using Maven, add this to your pom.xml file: @@ -48,7 +47,7 @@ The client application making API calls must be granted [authorization scopes][a ### Prerequisites You will need a [Google Cloud Platform Console][developer-console] project with the Grafeas [API enabled][enable-api]. - +You will need to [enable billing][enable-billing] to use Google Grafeas. [Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by [installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. @@ -124,8 +123,6 @@ the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` and on [google-cloud-java][g-c-j]. ## Versioning - - This library follows [Semantic Versioning](http://semver.org/). @@ -164,7 +161,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md [code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct [license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE - +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=containeranalysis.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png diff --git a/java-grafeas/owlbot.py b/java-grafeas/owlbot.py deleted file mode 100644 index 53eff1ff5bfe..000000000000 --- a/java-grafeas/owlbot.py +++ /dev/null @@ -1,93 +0,0 @@ -# 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 -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import synthtool as s -from synthtool.languages import java -import glob -from datetime import datetime - -# License header -license = f"""/* - * Copyright {datetime.now().year} The Grafeas Authors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -""" -protobuf_header = "// Generated by the protocol buffer compiler. DO NOT EDIT!" - -# put any special-case replacements here -for file in glob.glob('owl-bot-staging/v1/src/**/*.java', recursive=True): - if " * Copyright 2021 Google LLC" not in open(file).read() \ - and protobuf_header in open(file).read() \ - and license not in open(file).read(): - s.replace( - f'owl-bot-staging/v1/src/**/*.java', - protobuf_header, - f"{license}\n{protobuf_header}" - ) - -# strip out Google-specific parts -# Remove default scope -s.replace( - f'owl-bot-staging/v1/src/main/java/io/grafeas/v1/GrafeasGrpc.java', - f"package io.grafeas.v1;", - f"{license}\npackage io.grafeas.v1;" -) -s.replace( - f'owl-bot-staging/v1/src/**/GrafeasStubSettings.java', - r'^(.*)ImmutableList\.builder\(\).add\(".*"\)\.build\(\);', - '\g<1>ImmutableList.of();' -) -# Remove default service endpoint -s.replace( - f'owl-bot-staging/v1/src/**/GrafeasStubSettings.java', - ' return "containeranalysis.googleapis.com:443";', - ' return null;' -) -# Remove default service endpoint javadoc -s.replace( - f'owl-bot-staging/v1/src/**/GrafeasStubSettings.java', - '\s+\*.*default service address.*\n\s+\*.*', - '' -) -for library in s.get_staging_dirs(): - # put any special-case replacements here - s.move(library) - -s.remove_staging_dirs() -java.common_templates( - monorepo=True, - excludes=[ - ".github/*", - ".kokoro/*", - "samples/*", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "SECURITY.md", - "java.header", - "license-checks.xml", - "renovate.json", - ".gitignore" -]) diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GrafeasGrpc.java b/java-grafeas/src/main/java/io/grafeas/v1/GrafeasGrpc.java index 848613b28a12..4a4781688749 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GrafeasGrpc.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GrafeasGrpc.java @@ -14,22 +14,6 @@ * limitations under the License. */ -/* - * Copyright 2026 The Grafeas Authors. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package io.grafeas.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/librarian.yaml b/librarian.yaml index 70bef0d3df22..036c000b89e5 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -580,6 +580,26 @@ libraries: - path: google/cloud/location/locations.proto keep: - google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/SampleApp.java + postprocess: + method_operations: + - path: proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java + action: delete + func_name: "public static List parseList(List formattedStrings)" + - path: proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/DataSourceName.java + action: delete + func_name: "public static List toStringList(List<@Nullable DataSourceName> values)" + - path: proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java + action: delete + func_name: "public static List parseList(List formattedStrings)" + - path: proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/TransferConfigName.java + action: delete + func_name: "public static List toStringList(List<@Nullable TransferConfigName> values)" + - path: proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java + action: delete + func_name: "public static List parseList(List formattedStrings)" + - path: proto-google-cloud-bigquerydatatransfer-v1/src/main/java/com/google/cloud/bigquery/datatransfer/v1/RunName.java + action: delete + func_name: "public static List toStringList(List<@Nullable RunName> values)" java: api_description_override: transfers data from partner SaaS applications to Google BigQuery on a scheduled, managed basis. issue_tracker_override: https://issuetracker.google.com/savedsearches/559654 @@ -745,6 +765,64 @@ libraries: grpc_artifact_id_override: grpc-google-cloud-bigtable-admin-v2 proto_artifact_id_override: proto-google-cloud-bigtable-admin-v2 samples: false + keep: + - google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/package-info.java + - google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/package-info.java + postprocess: + remove_file: + - google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java + - google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java + - google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/BaseBigtableDataClientTest.java + - google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/MockBigtable.java + - google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/MockBigtableImpl.java + replace: + - path: google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtable*AdminClient.java + original: "public final void close() {" + replacement: "public void close() {" + - path: google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java + original: "package com.google.cloud.bigtable.data.v2.stub;" + replacement: "package com.google.cloud.bigtable.data.v2.stub;\n\nimport com.google.api.core.InternalApi;" + - path: google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java + original: "package com.google.cloud.bigtable.data.v2.stub;" + replacement: "package com.google.cloud.bigtable.data.v2.stub;\n\nimport com.google.api.core.InternalApi;" + - path: google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableCallableFactory.java + original: "package com.google.cloud.bigtable.data.v2.stub;" + replacement: "package com.google.cloud.bigtable.data.v2.stub;\n\nimport com.google.api.core.InternalApi;" + - path: google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java + original: "package com.google.cloud.bigtable.data.v2.stub;" + replacement: "package com.google.cloud.bigtable.data.v2.stub;\n\nimport com.google.api.core.InternalApi;" + replace_regex: + - path: google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtable*AdminClient.java + pattern: "public static final BaseBigtable(.*)AdminClient create\\(" + replacement: "protected static BaseBigtable${1}AdminClient create(" + - path: google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java + pattern: "(/\\*\\*(?s).+?\\*/\\n(?:^@[^\\n]*\\n)*)(public\\s+(?:abstract\\s+|final\\s+)?class\\s+\\w+)" + replacement: | + /** For internal use only. */ + @Generated("by gapic-generator") + @InternalApi + $2 + - path: google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java + pattern: "(/\\*\\*(?s).+?\\*/\\n(?:^@[^\\n]*\\n)*)(public\\s+(?:abstract\\s+|final\\s+)?class\\s+\\w+)" + replacement: | + /** For internal use only. */ + @Generated("by gapic-generator") + @InternalApi + $2 + - path: google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableCallableFactory.java + pattern: "(/\\*\\*(?s).+?\\*/\\n(?:^@[^\\n]*\\n)*)(public\\s+(?:abstract\\s+|final\\s+)?class\\s+\\w+)" + replacement: | + /** For internal use only. */ + @Generated("by gapic-generator") + @InternalApi + $2 + - path: google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java + pattern: "(/\\*\\*(?s).+?\\*/\\n(?:^@[^\\n]*\\n)*)(public\\s+(?:abstract\\s+|final\\s+)?class\\s+\\w+)" + replacement: | + /** For internal use only. */ + @Generated("by gapic-generator") + @InternalApi + $2 java: api_id_override: bigtable.googleapis.com api_description_override: API for reading and writing the contents of Bigtables associated with a cloud project. @@ -1170,6 +1248,25 @@ libraries: keep: - google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/GrafeasUtils.java - google-cloud-containeranalysis/src/test/java/com/google/cloud/devtools/containeranalysis/v1/ITGrafeasInteropTest.java + postprocess: + replace: + - path: google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisClient.java + original: "import com.google.iam.v1.TestIamPermissionsResponse;" + replacement: "import com.google.iam.v1.TestIamPermissionsResponse;\nimport io.grafeas.v1.GrafeasClient;" + replace_regex: + - path: google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisClient.java + pattern: "(\\s+private final ContainerAnalysisStub stub;.*)" + replacement: | + $1 + + /** + * Returns a new GrafeasClient with the same configured settings. + * + * @throws IOException + */ + public GrafeasClient getGrafeasClient() throws IOException { + return GrafeasClient.create(GrafeasUtils.transformSettings(settings)); + } java: api_description_override: is a service that provides vulnerability scanning and metadata storage for software artifacts. The service performs vulnerability scans on built software artifacts, such as the images in Container Registry, then stores the resulting metadata and makes it available for consumption through an API. The metadata may come from several sources, including vulnerability scanning, other Cloud services, and third-party providers. codeowner_team: '@googleapis/aap-dpes' @@ -1443,6 +1540,55 @@ libraries: - proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentSessionEntityTypeName.java - proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentSessionName.java - proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ProjectAgentName.java + postprocess: + method_operations: + - path: proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java + action: duplicate + func_name: "public static AgentName ofProjectName(String project)" + new_name: "ofProjectAgentName" + - path: proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java + action: deprecate + func_name: "public static AgentName ofProjectAgentName(String project)" + deprecation_message: "Please use {@link #ofProjectName()} instead" + - path: proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java + action: duplicate + func_name: "public static AgentName ofProjectLocationName(String project, String location)" + new_name: "ofProjectLocationAgentName" + - path: proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java + action: deprecate + func_name: "public static AgentName ofProjectLocationAgentName(String project, String location)" + deprecation_message: "Please use {@link #ofProjectLocationName()} instead" + replace: + - path: proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java + original: "public static String formatProjectName" + replacement: "public static String formatProjectAgentName" + - path: proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java + original: "public static String formatProjectLocationName" + replacement: "public static String formatProjectLocationAgentName" + - path: proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java + original: "ProjectBuilder" + replacement: "ProjectAgentBuilder" + - path: proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java + original: "ProjectLocationBuilder" + replacement: "ProjectLocationAgentBuilder" + - path: proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java + original: "return ofProjectName" + replacement: "return ofProjectAgentName" + - path: proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java + original: "return ofProjectLocationName" + replacement: "return ofProjectLocationAgentName" + - path: google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClientTest.java + original: "ofProjectName" + replacement: "ofProjectAgentName" + - path: google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClientTest.java + original: "ofProjectName" + replacement: "ofProjectAgentName" + - path: google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/IntentsClientTest.java + original: "ofProjectName" + replacement: "ofProjectAgentName" + - path: google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/VersionsClientTest.java + original: "ofProjectName" + replacement: "ofProjectAgentName" java: api_description_override: is an end-to-end, build-once deploy-everywhere development suite for creating conversational interfaces for websites, mobile applications, popular messaging platforms, and IoT devices. You can use it to build interfaces (such as chatbots and conversational IVR) that enable natural and rich interactions between your users and your business. Dialogflow Enterprise Edition users have access to Google Cloud Support and a service level agreement (SLA) for production deployments. issue_tracker_override: https://issuetracker.google.com/savedsearches/5300385 @@ -1517,6 +1663,26 @@ libraries: - proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UntypedDeidentifyTemplateName.java - proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UntypedInspectTemplateName.java - proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UntypedStoredInfoTypeName.java + postprocess: + method_operations: + - path: proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateName.java + action: delete + func_name: "public static List parseList(List formattedStrings)" + - path: proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateName.java + action: delete + func_name: "public static List toStringList(List<@Nullable InspectTemplateName> values)" + - path: proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateName.java + action: delete + func_name: "public static List parseList(List formattedStrings)" + - path: proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateName.java + action: delete + func_name: "public static List toStringList(List<@Nullable DeidentifyTemplateName> values)" + - path: proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeName.java + action: delete + func_name: "public static List parseList(List formattedStrings)" + - path: proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeName.java + action: delete + func_name: "public static List toStringList(List<@Nullable StoredInfoTypeName> values)" java: api_description_override: provides programmatic access to a powerful detection engine for personally identifiable information and other privacy-sensitive data in unstructured data streams, like text blocks and images. issue_tracker_override: https://issuetracker.google.com/savedsearches/5548083 @@ -1589,6 +1755,44 @@ libraries: keep: - google-cloud-errorreporting/src/test/java/com/google/devtools/clouderrorreporting/v1beta1/ITSystemTest.java - proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/GroupName.java + postprocess: + replace_regex: + - path: google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorGroupServiceClient.java + pattern: "(\\s+public ErrorGroupServiceStub getStub\\(\\) \\{\\n\\s+return stub;\\n\\s+\\})" + replacement: | + $1 + + // Inserted by synthtool to preserve backwards-compatibility + /** + * Get the specified group. + * + *

Sample code: + * + *


+               * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
+               *   GroupName groupName = GroupName.of("[PROJECT]", "[GROUP]");
+               *   ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
+               * }
+               * 
+ * + * @param groupName Required. The group resource name. Written as + * <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>. + * Call <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list"> + * <code>groupStats.list</code></a> to return a list of groups belonging to + * this project. + *

Example: <code>projects/my-project-123/groups/my-group</code> + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use ErrorGroupServiceClient#getGroup(ErrorGroupName) + */ + @Deprecated + public final ErrorGroup getGroup(GroupName groupName) { + + GetGroupRequest request = + GetGroupRequest.newBuilder() + .setGroupName(groupName == null ? null : groupName.toString()) + .build(); + return getGroup(request); + } java: api_description_override: 'counts, analyzes, and aggregates the crashes in your running cloud services. A centralized error management interface displays the results with sorting and filtering capabilities. A dedicated view shows the error details: time chart, occurrences, affected user count, first- and last-seen dates and a cleaned exception stack trace. Opt in to receive email and mobile alerts on new errors.' issue_tracker_override: https://issuetracker.google.com/savedsearches/559780 @@ -1695,6 +1899,16 @@ libraries: - proto-google-cloud-firestore-v1/src/main/java/com/google/firestore/v1/DocumentRootName.java - proto-google-cloud-firestore-v1/src/main/proto/firestore/BUILD.bazel - proto-google-cloud-firestore-v1/src/main/proto/firestore/bundle.proto + postprocess: + remove_file: + - google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/Version.java + replace: + - path: google-cloud-firestore-admin/src/main/java/com/google/cloud/firestore/v1/stub/FirestoreAdminStubSettings.java + original: "Version.VERSION" + replacement: "FirestoreAdminVersion.VERSION" + - path: .repo-metadata.json + original: " \"recommended_package\": \"com.google.cloud.firestore\"\n}" + replacement: " \"recommended_package\": \"com.google.cloud.firestore\",\n \"library_path_overrides\": {\n \"FirestoreAdminClient\": \"google-cloud-firestore-admin\"\n }\n}\n" java: api_id_override: firestore.googleapis.com api_description_override: is a fully-managed NoSQL document database for mobile, web, and server development from Firebase and Google Cloud Platform. It's backed by a multi-region replicated database that ensures once data is committed, it's durable even in the face of unexpected disasters. Not only that, but despite being a distributed database, it's also strongly consistent and offers seamless integration with other Firebase and Google Cloud Platform products, including Google Cloud Functions. @@ -1863,6 +2077,15 @@ libraries: samples: false keep: - src/main/java/io/grafeas/v1/stub/Version.java + postprocess: + replace: + - path: src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java + original: ' return "containeranalysis.googleapis.com:443";' + replacement: ' return null;' + replace_regex: + - path: src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java + pattern: '\s+\*.*default service address.*\n\s+\*.*' + replacement: '' java: alternate_headers: license-header.txt api_description_override: n/a