diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index 83292f5a648e..70932ed0bf9f 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -49,6 +49,13 @@ pom import + + com.google.cloud + google-cloud-alloydb-connectors-bom + 0.0.1-SNAPSHOT + pom + import + com.google.cloud google-cloud-alloydb-bom diff --git a/java-alloydb-connectors/.OwlBot.yaml b/java-alloydb-connectors/.OwlBot.yaml new file mode 100644 index 000000000000..2ad69b20a09a --- /dev/null +++ b/java-alloydb-connectors/.OwlBot.yaml @@ -0,0 +1,36 @@ +# Copyright 2022 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. + + +deep-remove-regex: +- "/java-alloydb-connectors/grpc-google-.*/src" +- "/java-alloydb-connectors/proto-google-.*/src" +- "/java-alloydb-connectors/google-.*/src" +- "/java-alloydb-connectors/samples/snippets/generated" + +deep-preserve-regex: +- "/java-alloydb-connectors/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + +deep-copy-regex: +- source: "/google/cloud/alloydb/connectors/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/java-alloydb-connectors/$1/proto-google-cloud-alloydb-connectors-$1/src" +- source: "/google/cloud/alloydb/connectors/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/java-alloydb-connectors/$1/grpc-google-cloud-alloydb-connectors-$1/src" +- source: "/google/cloud/alloydb/connectors/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-alloydb-connectors/$1/google-cloud-alloydb-connectors/src" +- source: "/google/cloud/alloydb/connectors/(v.*)/.*-java/samples/snippets/generated" + dest: "/owl-bot-staging/java-alloydb-connectors/$1/samples/snippets/generated" + + +api-name: alloydb \ No newline at end of file diff --git a/java-alloydb-connectors/.repo-metadata.json b/java-alloydb-connectors/.repo-metadata.json new file mode 100644 index 000000000000..a11d99f1579d --- /dev/null +++ b/java-alloydb-connectors/.repo-metadata.json @@ -0,0 +1,16 @@ +{ + "api_shortname": "alloydb", + "name_pretty": "AlloyDB connectors", + "product_documentation": "https://cloud.google.com/alloydb/docs", + "api_description": "AlloyDB is a fully-managed, PostgreSQL-compatible database for demanding transactional workloads. It provides enterprise-grade performance and availability while maintaining 100% compatibility with open-source PostgreSQL.", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-alloydb-connectors/latest/overview", + "release_level": "preview", + "transport": "grpc", + "language": "java", + "repo": "googleapis/java-alloydb-connectors", + "repo_short": "java-alloydb-connectors", + "distribution_name": "com.google.cloud:google-cloud-alloydb-connectors", + "api_id": "alloydb.googleapis.com", + "library_type": "GAPIC_AUTO", + "requires_billing": true +} \ No newline at end of file diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md new file mode 100644 index 000000000000..6690c7a372c3 --- /dev/null +++ b/java-alloydb-connectors/README.md @@ -0,0 +1,225 @@ +# Google AlloyDB connectors Client for Java + +Java idiomatic client for [AlloyDB connectors][product-docs]. + +[![Maven][maven-version-image]][maven-version-link] +![Stability][stability-image] + +- [Product Documentation][product-docs] +- [Client Library Documentation][javadocs] + +> Note: This client is a work-in-progress, and may occasionally +> make backwards-incompatible changes. + + +## Quickstart + + +If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: + +```xml + + + + com.google.cloud + libraries-bom + 26.21.0 + pom + import + + + + + + + com.google.cloud + google-cloud-alloydb-connectors + +``` + +If you are using Maven without the BOM, add this to your dependencies: + + + +```xml + + com.google.cloud + google-cloud-alloydb-connectors + 0.0.0 + +``` + +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.0.0' +``` + +If you are using SBT, add this to your dependencies: + +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.0.0" +``` + + +## Authentication + +See the [Authentication][authentication] section in the base directory's README. + +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired AlloyDB connectors APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the AlloyDB connectors API calls. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the AlloyDB connectors [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google AlloyDB connectors. +[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]`. + +### Installation and setup + +You'll need to obtain the `google-cloud-alloydb-connectors` library. See the [Quickstart](#quickstart) section +to add `google-cloud-alloydb-connectors` as a dependency in your code. + +## About AlloyDB connectors + + +[AlloyDB connectors][product-docs] AlloyDB is a fully-managed, PostgreSQL-compatible database for demanding transactional workloads. It provides enterprise-grade performance and availability while maintaining 100% compatibility with open-source PostgreSQL. + +See the [AlloyDB connectors client library docs][javadocs] to learn how to +use this AlloyDB connectors Client Library. + + + + + + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +## Transport + +AlloyDB connectors uses gRPC for the transport layer. + +## Supported Java Versions + +Java 8 or above is required for using this client. + +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +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/). + + +It is currently in major version zero (``0.y.z``), which means that anything may change at any time +and the public API should not be considered stable. + + +## Contributing + + +Contributions to this library are always welcome and highly encouraged. + +See [CONTRIBUTING][contributing] for more information how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in +this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more +information. + + +## License + +Apache 2.0 - See [LICENSE][license] for more information. + +## CI Status + +Java Version | Status +------------ | ------ +Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] +Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] +Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] +Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] + +Java is a registered trademark of Oracle and/or its affiliates. + +[product-docs]: https://cloud.google.com/alloydb/docs +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb-connectors/latest/overview +[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-alloydb-connectors/java7.svg +[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-alloydb-connectors/java7.html +[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-alloydb-connectors/java8.svg +[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-alloydb-connectors/java8.html +[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-alloydb-connectors/java8-osx.svg +[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-alloydb-connectors/java8-osx.html +[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-alloydb-connectors/java8-win.svg +[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-alloydb-connectors/java8-win.html +[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-alloydb-connectors/java11.svg +[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-alloydb-connectors/java11.html +[stability-image]: https://img.shields.io/badge/stability-preview-yellow +[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb-connectors.svg +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.0.0 +[authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy +[developer-console]: https://console.developers.google.com/ +[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects +[cloud-cli]: https://cloud.google.com/cli +[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md +[contributing]: https://github.com/googleapis/java-alloydb-connectors/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/java-alloydb-connectors/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/java-alloydb-connectors/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=alloydb.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 + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java diff --git a/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml b/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml new file mode 100644 index 000000000000..0003e6c56ff9 --- /dev/null +++ b/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml @@ -0,0 +1,39 @@ + + + 4.0.0 + com.google.cloud + google-cloud-alloydb-connectors-bom + 0.0.1-SNAPSHOT + pom + + + com.google.cloud + google-cloud-pom-parent + 1.17.0-SNAPSHOT + ../../google-cloud-pom-parent/pom.xml + + + Google AlloyDB connectors BOM + + BOM for AlloyDB connectors + + + + true + + + + + + com.google.cloud + google-cloud-alloydb-connectors + 0.0.1-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-alloydb-connectors-v1alpha + 0.0.1-SNAPSHOT + + + + diff --git a/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml b/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml new file mode 100644 index 000000000000..dabf284037b1 --- /dev/null +++ b/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml @@ -0,0 +1,108 @@ + + + 4.0.0 + com.google.cloud + google-cloud-alloydb-connectors + 0.0.1-SNAPSHOT + jar + Google AlloyDB connectors + AlloyDB connectors AlloyDB is a fully-managed, PostgreSQL-compatible database for demanding transactional workloads. It provides enterprise-grade performance and availability while maintaining 100% compatibility with open-source PostgreSQL. + + com.google.cloud + google-cloud-alloydb-connectors-parent + 0.0.1-SNAPSHOT + + + google-cloud-alloydb-connectors + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.api + api-common + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + + com.google.api.grpc + proto-google-cloud-alloydb-connectors-v1alpha + + + com.google.guava + guava + + + com.google.api + gax + + + com.google.api + gax-grpc + + + com.google.api + gax-httpjson + + + com.google.api.grpc + grpc-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api.grpc + grpc-google-iam-v1 + + + org.threeten + threetenbp + + + + + junit + junit + test + + + + + com.google.api + gax + testlib + test + + + com.google.api + gax-grpc + testlib + test + + + com.google.api + gax-httpjson + testlib + test + + + \ No newline at end of file diff --git a/java-alloydb-connectors/owlbot.py b/java-alloydb-connectors/owlbot.py new file mode 100644 index 000000000000..03c0f6686d3f --- /dev/null +++ b/java-alloydb-connectors/owlbot.py @@ -0,0 +1,36 @@ +# 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 + 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" +]) \ No newline at end of file diff --git a/java-alloydb-connectors/pom.xml b/java-alloydb-connectors/pom.xml new file mode 100644 index 000000000000..a9538050890e --- /dev/null +++ b/java-alloydb-connectors/pom.xml @@ -0,0 +1,47 @@ + + + 4.0.0 + com.google.cloud + google-cloud-alloydb-connectors-parent + pom + 0.0.1-SNAPSHOT + Google AlloyDB connectors Parent + + Java idiomatic client for Google Cloud Platform services. + + + + com.google.cloud + google-cloud-jar-parent + 1.17.0-SNAPSHOT + ../google-cloud-jar-parent/pom.xml + + + + UTF-8 + UTF-8 + github + google-cloud-alloydb-connectors-parent + + + + + + com.google.cloud + google-cloud-alloydb-connectors + 0.0.1-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-alloydb-connectors-v1alpha + 0.0.1-SNAPSHOT + + + + + + google-cloud-alloydb-connectors + proto-google-cloud-alloydb-connectors-v1alpha + google-cloud-alloydb-connectors-bom + + diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/clirr-ignored-differences.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/clirr-ignored-differences.xml new file mode 100644 index 000000000000..5b6afe10dd3c --- /dev/null +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/alloydb/connectors/v1alpha/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/alloydb/connectors/v1alpha/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/alloydb/connectors/v1alpha/*OrBuilder + boolean has*(*) + + diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml new file mode 100644 index 000000000000..cea417df97f4 --- /dev/null +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-alloydb-connectors-v1alpha + 0.0.1-SNAPSHOT + proto-google-cloud-alloydb-connectors-v1alpha + Proto library for google-cloud-alloydb-connectors + + com.google.cloud + google-cloud-alloydb-connectors-parent + 0.0.1-SNAPSHOT + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequest.java b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequest.java new file mode 100644 index 000000000000..d803934e01e7 --- /dev/null +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequest.java @@ -0,0 +1,1170 @@ +/* + * Copyright 2023 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/alloydb/connectors/v1alpha/resources.proto + +package com.google.cloud.alloydb.connectors.v1alpha; + +/** + * + * + *
+ * Message used by AlloyDB connectors to exchange client and connection metadata
+ * with the server after a successful TLS handshake. This metadata includes an
+ * IAM token, which is used to authenticate users based on their IAM identity.
+ * The sole purpose of this message is for the use of AlloyDB connectors.
+ * Clients should not rely on this message directly as there can be breaking
+ * changes in the future.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest} + */ +public final class MetadataExchangeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest) + MetadataExchangeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetadataExchangeRequest.newBuilder() to construct. + private MetadataExchangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MetadataExchangeRequest() { + userAgent_ = ""; + authType_ = 0; + oauth2Token_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetadataExchangeRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.class, + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.Builder.class); + } + + /** + * + * + *
+   * AuthType contains all supported authentication types.
+   * 
+ * + * Protobuf enum {@code google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType} + */ + public enum AuthType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Authentication type is unspecified and DB_NATIVE is used by default
+     * 
+ * + * AUTH_TYPE_UNSPECIFIED = 0; + */ + AUTH_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Database native authentication (user/password)
+     * 
+ * + * DB_NATIVE = 1; + */ + DB_NATIVE(1), + /** + * + * + *
+     * Automatic IAM authentication
+     * 
+ * + * AUTO_IAM = 2; + */ + AUTO_IAM(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Authentication type is unspecified and DB_NATIVE is used by default
+     * 
+ * + * AUTH_TYPE_UNSPECIFIED = 0; + */ + public static final int AUTH_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Database native authentication (user/password)
+     * 
+ * + * DB_NATIVE = 1; + */ + public static final int DB_NATIVE_VALUE = 1; + /** + * + * + *
+     * Automatic IAM authentication
+     * 
+ * + * AUTO_IAM = 2; + */ + public static final int AUTO_IAM_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AuthType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AuthType forNumber(int value) { + switch (value) { + case 0: + return AUTH_TYPE_UNSPECIFIED; + case 1: + return DB_NATIVE; + case 2: + return AUTO_IAM; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AuthType findValueByNumber(int number) { + return AuthType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AuthType[] VALUES = values(); + + public static AuthType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AuthType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType) + } + + public static final int USER_AGENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object userAgent_ = ""; + /** + * + * + *
+   * Optional. Connector information.
+   * 
+ * + * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userAgent. + */ + @java.lang.Override + public java.lang.String getUserAgent() { + java.lang.Object ref = userAgent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userAgent_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Connector information.
+   * 
+ * + * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userAgent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserAgentBytes() { + java.lang.Object ref = userAgent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTH_TYPE_FIELD_NUMBER = 2; + private int authType_ = 0; + /** + * + * + *
+   * Authentication type.
+   * 
+ * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * + * @return The enum numeric value on the wire for authType. + */ + @java.lang.Override + public int getAuthTypeValue() { + return authType_; + } + /** + * + * + *
+   * Authentication type.
+   * 
+ * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * + * @return The authType. + */ + @java.lang.Override + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType + getAuthType() { + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType result = + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType.forNumber( + authType_); + return result == null + ? com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType.UNRECOGNIZED + : result; + } + + public static final int OAUTH2_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object oauth2Token_ = ""; + /** + * + * + *
+   * IAM token used for both IAM user authentiation and
+   * `alloydb.instances.connect` permission check.
+   * 
+ * + * string oauth2_token = 3; + * + * @return The oauth2Token. + */ + @java.lang.Override + public java.lang.String getOauth2Token() { + java.lang.Object ref = oauth2Token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oauth2Token_ = s; + return s; + } + } + /** + * + * + *
+   * IAM token used for both IAM user authentiation and
+   * `alloydb.instances.connect` permission check.
+   * 
+ * + * string oauth2_token = 3; + * + * @return The bytes for oauth2Token. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOauth2TokenBytes() { + java.lang.Object ref = oauth2Token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oauth2Token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userAgent_); + } + if (authType_ + != com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType + .AUTH_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, authType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauth2Token_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oauth2Token_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userAgent_); + } + if (authType_ + != com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType + .AUTH_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, authType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauth2Token_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, oauth2Token_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest)) { + return super.equals(obj); + } + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest other = + (com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest) obj; + + if (!getUserAgent().equals(other.getUserAgent())) return false; + if (authType_ != other.authType_) return false; + if (!getOauth2Token().equals(other.getOauth2Token())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getUserAgent().hashCode(); + hash = (37 * hash) + AUTH_TYPE_FIELD_NUMBER; + hash = (53 * hash) + authType_; + hash = (37 * hash) + OAUTH2_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getOauth2Token().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message used by AlloyDB connectors to exchange client and connection metadata
+   * with the server after a successful TLS handshake. This metadata includes an
+   * IAM token, which is used to authenticate users based on their IAM identity.
+   * The sole purpose of this message is for the use of AlloyDB connectors.
+   * Clients should not rely on this message directly as there can be breaking
+   * changes in the future.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest) + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.class, + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.Builder.class); + } + + // Construct using + // com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userAgent_ = ""; + authType_ = 0; + oauth2Token_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest + getDefaultInstanceForType() { + return com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest build() { + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest buildPartial() { + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest result = + new com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userAgent_ = userAgent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.authType_ = authType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.oauth2Token_ = oauth2Token_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest) { + return mergeFrom( + (com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest other) { + if (other + == com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest + .getDefaultInstance()) return this; + if (!other.getUserAgent().isEmpty()) { + userAgent_ = other.userAgent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.authType_ != 0) { + setAuthTypeValue(other.getAuthTypeValue()); + } + if (!other.getOauth2Token().isEmpty()) { + oauth2Token_ = other.oauth2Token_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + userAgent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + authType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + oauth2Token_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object userAgent_ = ""; + /** + * + * + *
+     * Optional. Connector information.
+     * 
+ * + * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userAgent. + */ + public java.lang.String getUserAgent() { + java.lang.Object ref = userAgent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userAgent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Connector information.
+     * 
+ * + * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userAgent. + */ + public com.google.protobuf.ByteString getUserAgentBytes() { + java.lang.Object ref = userAgent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Connector information.
+     * 
+ * + * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The userAgent to set. + * @return This builder for chaining. + */ + public Builder setUserAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userAgent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Connector information.
+     * 
+ * + * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUserAgent() { + userAgent_ = getDefaultInstance().getUserAgent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Connector information.
+     * 
+ * + * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for userAgent to set. + * @return This builder for chaining. + */ + public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userAgent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int authType_ = 0; + /** + * + * + *
+     * Authentication type.
+     * 
+ * + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * + * @return The enum numeric value on the wire for authType. + */ + @java.lang.Override + public int getAuthTypeValue() { + return authType_; + } + /** + * + * + *
+     * Authentication type.
+     * 
+ * + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * + * @param value The enum numeric value on the wire for authType to set. + * @return This builder for chaining. + */ + public Builder setAuthTypeValue(int value) { + authType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Authentication type.
+     * 
+ * + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * + * @return The authType. + */ + @java.lang.Override + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType + getAuthType() { + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType result = + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType.forNumber( + authType_); + return result == null + ? com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Authentication type.
+     * 
+ * + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * + * @param value The authType to set. + * @return This builder for chaining. + */ + public Builder setAuthType( + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + authType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Authentication type.
+     * 
+ * + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearAuthType() { + bitField0_ = (bitField0_ & ~0x00000002); + authType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object oauth2Token_ = ""; + /** + * + * + *
+     * IAM token used for both IAM user authentiation and
+     * `alloydb.instances.connect` permission check.
+     * 
+ * + * string oauth2_token = 3; + * + * @return The oauth2Token. + */ + public java.lang.String getOauth2Token() { + java.lang.Object ref = oauth2Token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oauth2Token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * IAM token used for both IAM user authentiation and
+     * `alloydb.instances.connect` permission check.
+     * 
+ * + * string oauth2_token = 3; + * + * @return The bytes for oauth2Token. + */ + public com.google.protobuf.ByteString getOauth2TokenBytes() { + java.lang.Object ref = oauth2Token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oauth2Token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * IAM token used for both IAM user authentiation and
+     * `alloydb.instances.connect` permission check.
+     * 
+ * + * string oauth2_token = 3; + * + * @param value The oauth2Token to set. + * @return This builder for chaining. + */ + public Builder setOauth2Token(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oauth2Token_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * IAM token used for both IAM user authentiation and
+     * `alloydb.instances.connect` permission check.
+     * 
+ * + * string oauth2_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearOauth2Token() { + oauth2Token_ = getDefaultInstance().getOauth2Token(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * IAM token used for both IAM user authentiation and
+     * `alloydb.instances.connect` permission check.
+     * 
+ * + * string oauth2_token = 3; + * + * @param value The bytes for oauth2Token to set. + * @return This builder for chaining. + */ + public Builder setOauth2TokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + oauth2Token_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest) + private static final com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest(); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetadataExchangeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequestOrBuilder.java b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequestOrBuilder.java new file mode 100644 index 000000000000..4390a205da63 --- /dev/null +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/alloydb/connectors/v1alpha/resources.proto + +package com.google.cloud.alloydb.connectors.v1alpha; + +public interface MetadataExchangeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Connector information.
+   * 
+ * + * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userAgent. + */ + java.lang.String getUserAgent(); + /** + * + * + *
+   * Optional. Connector information.
+   * 
+ * + * string user_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userAgent. + */ + com.google.protobuf.ByteString getUserAgentBytes(); + + /** + * + * + *
+   * Authentication type.
+   * 
+ * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * + * @return The enum numeric value on the wire for authType. + */ + int getAuthTypeValue(); + /** + * + * + *
+   * Authentication type.
+   * 
+ * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType auth_type = 2; + * + * + * @return The authType. + */ + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeRequest.AuthType getAuthType(); + + /** + * + * + *
+   * IAM token used for both IAM user authentiation and
+   * `alloydb.instances.connect` permission check.
+   * 
+ * + * string oauth2_token = 3; + * + * @return The oauth2Token. + */ + java.lang.String getOauth2Token(); + /** + * + * + *
+   * IAM token used for both IAM user authentiation and
+   * `alloydb.instances.connect` permission check.
+   * 
+ * + * string oauth2_token = 3; + * + * @return The bytes for oauth2Token. + */ + com.google.protobuf.ByteString getOauth2TokenBytes(); +} diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponse.java b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponse.java new file mode 100644 index 000000000000..b77b94d1391a --- /dev/null +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponse.java @@ -0,0 +1,979 @@ +/* + * Copyright 2023 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/alloydb/connectors/v1alpha/resources.proto + +package com.google.cloud.alloydb.connectors.v1alpha; + +/** + * + * + *
+ * Message for response to metadata exchange request. The sole purpose of this
+ * message is for the use of AlloyDB connectors. Clients should not rely on this
+ * message directly as there can be breaking changes in the future.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse} + */ +public final class MetadataExchangeResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse) + MetadataExchangeResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetadataExchangeResponse.newBuilder() to construct. + private MetadataExchangeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MetadataExchangeResponse() { + responseCode_ = 0; + error_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetadataExchangeResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.class, + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.Builder.class); + } + + /** + * + * + *
+   * Response code.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode} + */ + public enum ResponseCode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unknown response code
+     * 
+ * + * RESPONSE_CODE_UNSPECIFIED = 0; + */ + RESPONSE_CODE_UNSPECIFIED(0), + /** + * + * + *
+     * Success
+     * 
+ * + * OK = 1; + */ + OK(1), + /** + * + * + *
+     * Failure
+     * 
+ * + * ERROR = 2; + */ + ERROR(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unknown response code
+     * 
+ * + * RESPONSE_CODE_UNSPECIFIED = 0; + */ + public static final int RESPONSE_CODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Success
+     * 
+ * + * OK = 1; + */ + public static final int OK_VALUE = 1; + /** + * + * + *
+     * Failure
+     * 
+ * + * ERROR = 2; + */ + public static final int ERROR_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResponseCode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ResponseCode forNumber(int value) { + switch (value) { + case 0: + return RESPONSE_CODE_UNSPECIFIED; + case 1: + return OK; + case 2: + return ERROR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResponseCode findValueByNumber(int number) { + return ResponseCode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ResponseCode[] VALUES = values(); + + public static ResponseCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ResponseCode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode) + } + + public static final int RESPONSE_CODE_FIELD_NUMBER = 1; + private int responseCode_ = 0; + /** + * + * + *
+   * Response code.
+   * 
+ * + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * + * @return The enum numeric value on the wire for responseCode. + */ + @java.lang.Override + public int getResponseCodeValue() { + return responseCode_; + } + /** + * + * + *
+   * Response code.
+   * 
+ * + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * + * @return The responseCode. + */ + @java.lang.Override + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode + getResponseCode() { + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode result = + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode.forNumber( + responseCode_); + return result == null + ? com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode + .UNRECOGNIZED + : result; + } + + public static final int ERROR_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object error_ = ""; + /** + * + * + *
+   * Optional. Error message.
+   * 
+ * + * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The error. + */ + @java.lang.Override + public java.lang.String getError() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Error message.
+   * 
+ * + * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for error. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (responseCode_ + != com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode + .RESPONSE_CODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, responseCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (responseCode_ + != com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode + .RESPONSE_CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, responseCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse)) { + return super.equals(obj); + } + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse other = + (com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse) obj; + + if (responseCode_ != other.responseCode_) return false; + if (!getError().equals(other.getError())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESPONSE_CODE_FIELD_NUMBER; + hash = (53 * hash) + responseCode_; + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for response to metadata exchange request. The sole purpose of this
+   * message is for the use of AlloyDB connectors. Clients should not rely on this
+   * message directly as there can be breaking changes in the future.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse) + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.class, + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.Builder.class); + } + + // Construct using + // com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + responseCode_ = 0; + error_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.connectors.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse + getDefaultInstanceForType() { + return com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse build() { + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse buildPartial() { + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse result = + new com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.responseCode_ = responseCode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.error_ = error_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse) { + return mergeFrom( + (com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse other) { + if (other + == com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse + .getDefaultInstance()) return this; + if (other.responseCode_ != 0) { + setResponseCodeValue(other.getResponseCodeValue()); + } + if (!other.getError().isEmpty()) { + error_ = other.error_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + responseCode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + error_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int responseCode_ = 0; + /** + * + * + *
+     * Response code.
+     * 
+ * + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * + * @return The enum numeric value on the wire for responseCode. + */ + @java.lang.Override + public int getResponseCodeValue() { + return responseCode_; + } + /** + * + * + *
+     * Response code.
+     * 
+ * + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * + * @param value The enum numeric value on the wire for responseCode to set. + * @return This builder for chaining. + */ + public Builder setResponseCodeValue(int value) { + responseCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Response code.
+     * 
+ * + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * + * @return The responseCode. + */ + @java.lang.Override + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode + getResponseCode() { + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode result = + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode + .forNumber(responseCode_); + return result == null + ? com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Response code.
+     * 
+ * + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * + * @param value The responseCode to set. + * @return This builder for chaining. + */ + public Builder setResponseCode( + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + responseCode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Response code.
+     * 
+ * + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearResponseCode() { + bitField0_ = (bitField0_ & ~0x00000001); + responseCode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object error_ = ""; + /** + * + * + *
+     * Optional. Error message.
+     * 
+ * + * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The error. + */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Error message.
+     * 
+ * + * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for error. + */ + public com.google.protobuf.ByteString getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Error message.
+     * 
+ * + * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The error to set. + * @return This builder for chaining. + */ + public Builder setError(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Error message.
+     * 
+ * + * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearError() { + error_ = getDefaultInstance().getError(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Error message.
+     * 
+ * + * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for error to set. + * @return This builder for chaining. + */ + public Builder setErrorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + error_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse) + private static final com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse(); + } + + public static com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetadataExchangeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponseOrBuilder.java b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponseOrBuilder.java new file mode 100644 index 000000000000..d540924de770 --- /dev/null +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/MetadataExchangeResponseOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2023 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/alloydb/connectors/v1alpha/resources.proto + +package com.google.cloud.alloydb.connectors.v1alpha; + +public interface MetadataExchangeResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Response code.
+   * 
+ * + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * + * @return The enum numeric value on the wire for responseCode. + */ + int getResponseCodeValue(); + /** + * + * + *
+   * Response code.
+   * 
+ * + * + * .google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode response_code = 1; + * + * + * @return The responseCode. + */ + com.google.cloud.alloydb.connectors.v1alpha.MetadataExchangeResponse.ResponseCode + getResponseCode(); + + /** + * + * + *
+   * Optional. Error message.
+   * 
+ * + * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The error. + */ + java.lang.String getError(); + /** + * + * + *
+   * Optional. Error message.
+   * 
+ * + * string error = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for error. + */ + com.google.protobuf.ByteString getErrorBytes(); +} diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/ResourcesProto.java b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/ResourcesProto.java new file mode 100644 index 000000000000..0a7cfe9683d8 --- /dev/null +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/src/main/java/com/google/cloud/alloydb/connectors/v1alpha/ResourcesProto.java @@ -0,0 +1,101 @@ +/* + * Copyright 2023 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/alloydb/connectors/v1alpha/resources.proto + +package com.google.cloud.alloydb.connectors.v1alpha; + +public final class ResourcesProto { + private ResourcesProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n7google/cloud/alloydb/connectors/v1alph" + + "a/resources.proto\022\'google.cloud.alloydb." + + "connectors.v1alpha\032\037google/api/field_beh" + + "avior.proto\"\353\001\n\027MetadataExchangeRequest\022" + + "\030\n\nuser_agent\030\001 \001(\tB\004\342A\001\001\022\\\n\tauth_type\030\002" + + " \001(\0162I.google.cloud.alloydb.connectors.v" + + "1alpha.MetadataExchangeRequest.AuthType\022" + + "\024\n\014oauth2_token\030\003 \001(\t\"B\n\010AuthType\022\031\n\025AUT" + + "H_TYPE_UNSPECIFIED\020\000\022\r\n\tDB_NATIVE\020\001\022\014\n\010A" + + "UTO_IAM\020\002\"\330\001\n\030MetadataExchangeResponse\022e" + + "\n\rresponse_code\030\001 \001(\0162N.google.cloud.all" + + "oydb.connectors.v1alpha.MetadataExchange" + + "Response.ResponseCode\022\023\n\005error\030\002 \001(\tB\004\342A" + + "\001\001\"@\n\014ResponseCode\022\035\n\031RESPONSE_CODE_UNSP" + + "ECIFIED\020\000\022\006\n\002OK\020\001\022\t\n\005ERROR\020\002B\216\002\n+com.goo" + + "gle.cloud.alloydb.connectors.v1alphaB\016Re" + + "sourcesProtoP\001ZKcloud.google.com/go/allo" + + "ydb/connectors/apiv1alpha/connectorspb;c" + + "onnectorspb\252\002\'Google.Cloud.AlloyDb.Conne" + + "ctors.V1Alpha\312\002\'Google\\Cloud\\AlloyDb\\Con" + + "nectors\\V1alpha\352\002+Google::Cloud::AlloyDb" + + "::Connectors::V1alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeRequest_descriptor, + new java.lang.String[] { + "UserAgent", "AuthType", "Oauth2Token", + }); + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_connectors_v1alpha_MetadataExchangeResponse_descriptor, + new java.lang.String[] { + "ResponseCode", "Error", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/pom.xml b/pom.xml index d6c7f8215913..e83a79d356f1 100644 --- a/pom.xml +++ b/pom.xml @@ -18,6 +18,7 @@ java-accesscontextmanager java-advisorynotifications java-aiplatform + java-alloydb-connectors java-alloydb java-analytics-admin java-analytics-data diff --git a/versions.txt b/versions.txt index 1ef389426282..8848c006be14 100644 --- a/versions.txt +++ b/versions.txt @@ -663,3 +663,7 @@ proto-google-cloud-netapp-v1:0.1.0:0.2.0-SNAPSHOT grpc-google-cloud-netapp-v1:0.1.0:0.2.0-SNAPSHOT proto-google-cloud-cloudcommerceconsumerprocurement-v1:0.20.0:0.21.0-SNAPSHOT grpc-google-cloud-cloudcommerceconsumerprocurement-v1:0.20.0:0.21.0-SNAPSHOT +google-cloud-java-alloydb-connectors:0.0.0:0.0.1-SNAPSHOT +proto-google-cloud-java-alloydb-connectors-v1alpha:0.0.0:0.0.1-SNAPSHOT +google-cloud-alloydb-connectors:0.0.0:0.0.1-SNAPSHOT +proto-google-cloud-alloydb-connectors-v1alpha:0.0.0:0.0.1-SNAPSHOT