From bf2c2aa9498c51bf078af9193382879dce4d2959 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 18 Jul 2022 17:10:21 +0200 Subject: [PATCH 01/11] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.0 (#720) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.3.0` -> `3.4.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/compatibility-slim/3.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/confidence-slim/3.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-bigqueryconnection). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index cd49ea63..42080ae3 100644 --- a/pom.xml +++ b/pom.xml @@ -143,7 +143,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.3.0 + 3.4.0 From e95a1f114d0a43e26b863997c3ec915e57a772ad Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 Jul 2022 19:20:16 +0200 Subject: [PATCH 02/11] build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3 (#721) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-deploy-plugin](https://maven.apache.org/plugins/) | `2.8.2` -> `3.0.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/compatibility-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/confidence-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-bigqueryconnection). --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index 037e37f8..2a0ec691 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -38,7 +38,7 @@ org.apache.maven.plugins maven-deploy-plugin - 2.8.2 + 3.0.0 true From 780f6d43c9caedd8cfdb173ef2ea68fb371feca1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 22 Jul 2022 16:08:22 +0200 Subject: [PATCH 03/11] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.3 (#722) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.21.2` -> `3.21.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.3/compatibility-slim/3.21.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.3/confidence-slim/3.21.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
protocolbuffers/protobuf ### [`v3.21.3`](https://togithub.com/protocolbuffers/protobuf/compare/v3.21.2...v3.21.3) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.21.2...v3.21.3)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-bigqueryconnection). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b1f51f33..1309c3fe 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -36,7 +36,7 @@ com.google.protobuf protobuf-java-util - 3.21.2 + 3.21.3 junit diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 931c26af..44e4d2bc 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -35,7 +35,7 @@ com.google.protobuf protobuf-java-util - 3.21.2 + 3.21.3 junit diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index de1b8d33..cc7e1402 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -46,7 +46,7 @@ com.google.protobuf protobuf-java-util - 3.21.2 + 3.21.3 junit From 6bf407399a0eb6f9d56d62ec76caf130e683e3e3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 26 Jul 2022 21:22:28 +0200 Subject: [PATCH 04/11] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.4 (#723) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.21.3` -> `3.21.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.4/compatibility-slim/3.21.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.4/confidence-slim/3.21.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
protocolbuffers/protobuf ### [`v3.21.4`](https://togithub.com/protocolbuffers/protobuf/compare/v3.21.3...v3.21.4) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.21.3...v3.21.4)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-bigqueryconnection). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1309c3fe..1f5919aa 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -36,7 +36,7 @@ com.google.protobuf protobuf-java-util - 3.21.3 + 3.21.4 junit diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 44e4d2bc..32d62f34 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -35,7 +35,7 @@ com.google.protobuf protobuf-java-util - 3.21.3 + 3.21.4 junit diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index cc7e1402..1dd64fba 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -46,7 +46,7 @@ com.google.protobuf protobuf-java-util - 3.21.3 + 3.21.4 junit From 3f8265525cce8bc14b359902760d7375239ce616 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 27 Jul 2022 18:58:26 +0000 Subject: [PATCH 05/11] feat: Add service_account_id output field to CloudSQL properties (#724) - [ ] Regenerate this pull request now. Clients can now observe the Service Account that is being used when connecting to the CloudSQL from the BigQuery. PiperOrigin-RevId: 463445598 Source-Link: https://github.com/googleapis/googleapis/commit/fe833ddc7356b404547de4d3c2495ef3881c25d0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/73fad9a6502225fc64332b2f6fea8089cda6db55 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzNmYWQ5YTY1MDIyMjVmYzY0MzMyYjJmNmZlYTgwODljZGE2ZGI1NSJ9 --- .../v1beta1/ConnectionServiceClient.java | 16 +- .../v1beta1/ConnectionServiceGrpc.java | 16 +- .../connection/v1/CloudSqlProperties.java | 200 ++++++++++ .../v1/CloudSqlPropertiesOrBuilder.java | 31 ++ .../connection/v1/ConnectionOuterClass.java | 135 +++---- .../bigquery/connection/v1/connection.proto | 7 + .../connection/v1beta1/ConnectionProto.java | 359 ++++++++++++++---- .../connection/v1beta1/connection.proto | 13 +- 8 files changed, 627 insertions(+), 150 deletions(-) diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java index a10a03f7..1313c9a5 100644 --- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java +++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java @@ -961,7 +961,7 @@ public final UnaryCallable getIamPolicyCallable() { /** * Sets the access control policy on the specified resource. Replaces any existing policy. * - *

Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * *

Sample code: * @@ -995,7 +995,7 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) { /** * Sets the access control policy on the specified resource. Replaces any existing policy. * - *

Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * *

Sample code: * @@ -1026,7 +1026,7 @@ public final Policy setIamPolicy(String resource, Policy policy) { /** * Sets the access control policy on the specified resource. Replaces any existing policy. * - *

Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * *

Sample code: * @@ -1055,7 +1055,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { /** * Sets the access control policy on the specified resource. Replaces any existing policy. * - *

Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * *

Sample code: * @@ -1082,7 +1082,7 @@ public final UnaryCallable setIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. * *

Note: This operation is designed to be used for building permission-aware UIs and * command-line tools, not for authorization checking. This operation may "fail open" without @@ -1121,7 +1121,7 @@ public final TestIamPermissionsResponse testIamPermissions( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. * *

Note: This operation is designed to be used for building permission-aware UIs and * command-line tools, not for authorization checking. This operation may "fail open" without @@ -1160,7 +1160,7 @@ public final TestIamPermissionsResponse testIamPermissions( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. * *

Note: This operation is designed to be used for building permission-aware UIs and * command-line tools, not for authorization checking. This operation may "fail open" without @@ -1191,7 +1191,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. * *

Note: This operation is designed to be used for building permission-aware UIs and * command-line tools, not for authorization checking. This operation may "fail open" without diff --git a/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java b/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java index fed7c438..29002cfd 100644 --- a/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java +++ b/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java @@ -637,7 +637,7 @@ public void getIamPolicy( *

      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
-     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ public void setIamPolicy( @@ -653,7 +653,7 @@ public void setIamPolicy( *
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
+     * permissions, not a `NOT_FOUND` error.
      * Note: This operation is designed to be used for building permission-aware
      * UIs and command-line tools, not for authorization checking. This operation
      * may "fail open" without warning.
@@ -893,7 +893,7 @@ public void getIamPolicy(
      * 
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
-     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ public void setIamPolicy( @@ -911,7 +911,7 @@ public void setIamPolicy( *
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
+     * permissions, not a `NOT_FOUND` error.
      * Note: This operation is designed to be used for building permission-aware
      * UIs and command-line tools, not for authorization checking. This operation
      * may "fail open" without warning.
@@ -1054,7 +1054,7 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
      * 
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
-     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { @@ -1068,7 +1068,7 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque *
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
+     * permissions, not a `NOT_FOUND` error.
      * Note: This operation is designed to be used for building permission-aware
      * UIs and command-line tools, not for authorization checking. This operation
      * may "fail open" without warning.
@@ -1217,7 +1217,7 @@ protected ConnectionServiceFutureStub build(
      * 
      * Sets the access control policy on the specified resource. Replaces any
      * existing policy.
-     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1232,7 +1232,7 @@ protected ConnectionServiceFutureStub build( *
      * Returns permissions that a caller has on the specified resource.
      * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
+     * permissions, not a `NOT_FOUND` error.
      * Note: This operation is designed to be used for building permission-aware
      * UIs and command-line tools, not for authorization checking. This operation
      * may "fail open" without warning.
diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java
index bf090cba..8ce85a42 100644
--- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java
+++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java
@@ -41,6 +41,7 @@ private CloudSqlProperties() {
     instanceId_ = "";
     database_ = "";
     type_ = 0;
+    serviceAccountId_ = "";
   }
 
   @java.lang.Override
@@ -108,6 +109,13 @@ private CloudSqlProperties(
                 credential_ = subBuilder.buildPartial();
               }
 
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              serviceAccountId_ = s;
               break;
             }
           default:
@@ -496,6 +504,61 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlCredential getCredential(
     return getCredential();
   }
 
+  public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 5;
+  private volatile java.lang.Object serviceAccountId_;
+  /**
+   *
+   *
+   * 
+   * Output only. The account ID of the service used for the purpose of this connection.
+   * When the connection is used in the context of an operation in
+   * BigQuery, this service account will serve as identity being used for
+   * connecting to the CloudSQL instance specified in this connection.
+   * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAccountId. + */ + @java.lang.Override + public java.lang.String getServiceAccountId() { + java.lang.Object ref = serviceAccountId_; + 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(); + serviceAccountId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The account ID of the service used for the purpose of this connection.
+   * When the connection is used in the context of an operation in
+   * BigQuery, this service account will serve as identity being used for
+   * connecting to the CloudSQL instance specified in this connection.
+   * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAccountId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountIdBytes() { + java.lang.Object ref = serviceAccountId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -525,6 +588,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (credential_ != null) { output.writeMessage(4, getCredential()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceAccountId_); + } unknownFields.writeTo(output); } @@ -549,6 +615,9 @@ public int getSerializedSize() { if (credential_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCredential()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceAccountId_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -572,6 +641,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCredential()) { if (!getCredential().equals(other.getCredential())) return false; } + if (!getServiceAccountId().equals(other.getServiceAccountId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -593,6 +663,8 @@ public int hashCode() { hash = (37 * hash) + CREDENTIAL_FIELD_NUMBER; hash = (53 * hash) + getCredential().hashCode(); } + hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -751,6 +823,8 @@ public Builder clear() { credential_ = null; credentialBuilder_ = null; } + serviceAccountId_ = ""; + return this; } @@ -786,6 +860,7 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties buildPartial() } else { result.credential_ = credentialBuilder_.build(); } + result.serviceAccountId_ = serviceAccountId_; onBuilt(); return result; } @@ -850,6 +925,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.CloudSqlPropert if (other.hasCredential()) { mergeCredential(other.getCredential()); } + if (!other.getServiceAccountId().isEmpty()) { + serviceAccountId_ = other.serviceAccountId_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1393,6 +1472,127 @@ public Builder clearCredential() { return credentialBuilder_; } + private java.lang.Object serviceAccountId_ = ""; + /** + * + * + *
+     * Output only. The account ID of the service used for the purpose of this connection.
+     * When the connection is used in the context of an operation in
+     * BigQuery, this service account will serve as identity being used for
+     * connecting to the CloudSQL instance specified in this connection.
+     * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAccountId. + */ + public java.lang.String getServiceAccountId() { + java.lang.Object ref = serviceAccountId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The account ID of the service used for the purpose of this connection.
+     * When the connection is used in the context of an operation in
+     * BigQuery, this service account will serve as identity being used for
+     * connecting to the CloudSQL instance specified in this connection.
+     * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAccountId. + */ + public com.google.protobuf.ByteString getServiceAccountIdBytes() { + java.lang.Object ref = serviceAccountId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The account ID of the service used for the purpose of this connection.
+     * When the connection is used in the context of an operation in
+     * BigQuery, this service account will serve as identity being used for
+     * connecting to the CloudSQL instance specified in this connection.
+     * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The serviceAccountId to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccountId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The account ID of the service used for the purpose of this connection.
+     * When the connection is used in the context of an operation in
+     * BigQuery, this service account will serve as identity being used for
+     * connecting to the CloudSQL instance specified in this connection.
+     * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccountId() { + + serviceAccountId_ = getDefaultInstance().getServiceAccountId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The account ID of the service used for the purpose of this connection.
+     * When the connection is used in the context of an operation in
+     * BigQuery, this service account will serve as identity being used for
+     * connecting to the CloudSQL instance specified in this connection.
+     * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for serviceAccountId to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccountId_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java index 8c82ed6a..dabd73ee 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java @@ -138,4 +138,35 @@ public interface CloudSqlPropertiesOrBuilder * */ com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder getCredentialOrBuilder(); + + /** + * + * + *
+   * Output only. The account ID of the service used for the purpose of this connection.
+   * When the connection is used in the context of an operation in
+   * BigQuery, this service account will serve as identity being used for
+   * connecting to the CloudSQL instance specified in this connection.
+   * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAccountId. + */ + java.lang.String getServiceAccountId(); + /** + * + * + *
+   * Output only. The account ID of the service used for the purpose of this connection.
+   * When the connection is used in the context of an operation in
+   * BigQuery, this service account will serve as identity being used for
+   * connecting to the CloudSQL instance specified in this connection.
+   * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAccountId. + */ + com.google.protobuf.ByteString getServiceAccountIdBytes(); } diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java index 36b9795a..879a3cbc 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java @@ -136,77 +136,78 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_credential\030\007 \001(\010B\003\340A\003:s\352Ap\n,bigquerycon" + "nection.googleapis.com/Connection\022@proje" + "cts/{project}/locations/{location}/conne" - + "ctions/{connection}B\014\n\nproperties\"\251\002\n\022Cl" + + "ctions/{connection}B\014\n\nproperties\"\312\002\n\022Cl" + "oudSqlProperties\022\023\n\013instance_id\030\001 \001(\t\022\020\n" + "\010database\030\002 \001(\t\022R\n\004type\030\003 \001(\0162D.google.c" + "loud.bigquery.connection.v1.CloudSqlProp" + "erties.DatabaseType\022P\n\ncredential\030\004 \001(\0132" + "7.google.cloud.bigquery.connection.v1.Cl" - + "oudSqlCredentialB\003\340A\004\"F\n\014DatabaseType\022\035\n" - + "\031DATABASE_TYPE_UNSPECIFIED\020\000\022\014\n\010POSTGRES" - + "\020\001\022\t\n\005MYSQL\020\002\"8\n\022CloudSqlCredential\022\020\n\010u" - + "sername\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"C\n\026Cloud" - + "SpannerProperties\022\020\n\010database\030\001 \001(\t\022\027\n\017u" - + "se_parallelism\030\002 \001(\010\"\313\001\n\rAwsProperties\022V" - + "\n\022cross_account_role\030\002 \001(\01328.google.clou" - + "d.bigquery.connection.v1.AwsCrossAccount" - + "RoleH\000\022I\n\013access_role\030\003 \001(\01322.google.clo" - + "ud.bigquery.connection.v1.AwsAccessRoleH" - + "\000B\027\n\025authentication_method\"^\n\023AwsCrossAc" - + "countRole\022\023\n\013iam_role_id\030\001 \001(\t\022\030\n\013iam_us" - + "er_id\030\002 \001(\tB\003\340A\003\022\030\n\013external_id\030\003 \001(\tB\003\340" - + "A\003\"6\n\rAwsAccessRole\022\023\n\013iam_role_id\030\001 \001(\t" - + "\022\020\n\010identity\030\002 \001(\t\":\n\027CloudResourcePrope" - + "rties\022\037\n\022service_account_id\030\001 \001(\tB\003\340A\0032\314" - + "\r\n\021ConnectionService\022\350\001\n\020CreateConnectio" - + "n\022<.google.cloud.bigquery.connection.v1." - + "CreateConnectionRequest\032/.google.cloud.b" - + "igquery.connection.v1.Connection\"e\202\323\344\223\002=" - + "\"//v1/{parent=projects/*/locations/*}/co" - + "nnections:\nconnection\332A\037parent,connectio" - + "n,connection_id\022\273\001\n\rGetConnection\0229.goog" - + "le.cloud.bigquery.connection.v1.GetConne" - + "ctionRequest\032/.google.cloud.bigquery.con" - + "nection.v1.Connection\">\202\323\344\223\0021\022//v1/{name" - + "=projects/*/locations/*/connections/*}\332A" - + "\004name\022\316\001\n\017ListConnections\022;.google.cloud" - + ".bigquery.connection.v1.ListConnectionsR" - + "equest\032<.google.cloud.bigquery.connectio" - + "n.v1.ListConnectionsResponse\"@\202\323\344\223\0021\022//v" - + "1/{parent=projects/*/locations/*}/connec" - + "tions\332A\006parent\022\344\001\n\020UpdateConnection\022<.go" - + "ogle.cloud.bigquery.connection.v1.Update" - + "ConnectionRequest\032/.google.cloud.bigquer" - + "y.connection.v1.Connection\"a\202\323\344\223\002=2//v1/" - + "{name=projects/*/locations/*/connections" - + "/*}:\nconnection\332A\033name,connection,update" - + "_mask\022\250\001\n\020DeleteConnection\022<.google.clou" - + "d.bigquery.connection.v1.DeleteConnectio" - + "nRequest\032\026.google.protobuf.Empty\">\202\323\344\223\0021" - + "*//v1/{name=projects/*/locations/*/conne" - + "ctions/*}\332A\004name\022\251\001\n\014GetIamPolicy\022\".goog" - + "le.iam.v1.GetIamPolicyRequest\032\025.google.i" - + "am.v1.Policy\"^\202\323\344\223\002E\"@/v1/{resource=proj" - + "ects/*/locations/*/connections/*}:getIam" - + "Policy:\001*\332A\020resource,options\022\250\001\n\014SetIamP" - + "olicy\022\".google.iam.v1.SetIamPolicyReques" - + "t\032\025.google.iam.v1.Policy\"]\202\323\344\223\002E\"@/v1/{r" - + "esource=projects/*/locations/*/connectio" - + "ns/*}:setIamPolicy:\001*\332A\017resource,policy\022" - + "\323\001\n\022TestIamPermissions\022(.google.iam.v1.T" - + "estIamPermissionsRequest\032).google.iam.v1" - + ".TestIamPermissionsResponse\"h\202\323\344\223\002K\"F/v1" - + "/{resource=projects/*/locations/*/connec" - + "tions/*}:testIamPermissions:\001*\332A\024resourc" - + "e,permissions\032~\312A!bigqueryconnection.goo" - + "gleapis.com\322AWhttps://www.googleapis.com" - + "/auth/bigquery,https://www.googleapis.co" - + "m/auth/cloud-platformB\306\001\n\'com.google.clo" - + "ud.bigquery.connection.v1P\001ZMgoogle.gola" - + "ng.org/genproto/googleapis/cloud/bigquer" - + "y/connection/v1;connection\252\002#Google.Clou" - + "d.BigQuery.Connection.V1\312\002#Google\\Cloud\\" - + "BigQuery\\Connection\\V1b\006proto3" + + "oudSqlCredentialB\003\340A\004\022\037\n\022service_account" + + "_id\030\005 \001(\tB\003\340A\003\"F\n\014DatabaseType\022\035\n\031DATABA" + + "SE_TYPE_UNSPECIFIED\020\000\022\014\n\010POSTGRES\020\001\022\t\n\005M" + + "YSQL\020\002\"8\n\022CloudSqlCredential\022\020\n\010username" + + "\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"C\n\026CloudSpanner" + + "Properties\022\020\n\010database\030\001 \001(\t\022\027\n\017use_para" + + "llelism\030\002 \001(\010\"\313\001\n\rAwsProperties\022V\n\022cross" + + "_account_role\030\002 \001(\01328.google.cloud.bigqu" + + "ery.connection.v1.AwsCrossAccountRoleH\000\022" + + "I\n\013access_role\030\003 \001(\01322.google.cloud.bigq" + + "uery.connection.v1.AwsAccessRoleH\000B\027\n\025au" + + "thentication_method\"^\n\023AwsCrossAccountRo" + + "le\022\023\n\013iam_role_id\030\001 \001(\t\022\030\n\013iam_user_id\030\002" + + " \001(\tB\003\340A\003\022\030\n\013external_id\030\003 \001(\tB\003\340A\003\"6\n\rA" + + "wsAccessRole\022\023\n\013iam_role_id\030\001 \001(\t\022\020\n\010ide" + + "ntity\030\002 \001(\t\":\n\027CloudResourceProperties\022\037" + + "\n\022service_account_id\030\001 \001(\tB\003\340A\0032\314\r\n\021Conn" + + "ectionService\022\350\001\n\020CreateConnection\022<.goo" + + "gle.cloud.bigquery.connection.v1.CreateC" + + "onnectionRequest\032/.google.cloud.bigquery" + + ".connection.v1.Connection\"e\202\323\344\223\002=\"//v1/{" + + "parent=projects/*/locations/*}/connectio" + + "ns:\nconnection\332A\037parent,connection,conne" + + "ction_id\022\273\001\n\rGetConnection\0229.google.clou" + + "d.bigquery.connection.v1.GetConnectionRe" + + "quest\032/.google.cloud.bigquery.connection" + + ".v1.Connection\">\202\323\344\223\0021\022//v1/{name=projec" + + "ts/*/locations/*/connections/*}\332A\004name\022\316" + + "\001\n\017ListConnections\022;.google.cloud.bigque" + + "ry.connection.v1.ListConnectionsRequest\032" + + "<.google.cloud.bigquery.connection.v1.Li" + + "stConnectionsResponse\"@\202\323\344\223\0021\022//v1/{pare" + + "nt=projects/*/locations/*}/connections\332A" + + "\006parent\022\344\001\n\020UpdateConnection\022<.google.cl" + + "oud.bigquery.connection.v1.UpdateConnect" + + "ionRequest\032/.google.cloud.bigquery.conne" + + "ction.v1.Connection\"a\202\323\344\223\002=2//v1/{name=p" + + "rojects/*/locations/*/connections/*}:\nco" + + "nnection\332A\033name,connection,update_mask\022\250" + + "\001\n\020DeleteConnection\022<.google.cloud.bigqu" + + "ery.connection.v1.DeleteConnectionReques" + + "t\032\026.google.protobuf.Empty\">\202\323\344\223\0021*//v1/{" + + "name=projects/*/locations/*/connections/" + + "*}\332A\004name\022\251\001\n\014GetIamPolicy\022\".google.iam." + + "v1.GetIamPolicyRequest\032\025.google.iam.v1.P" + + "olicy\"^\202\323\344\223\002E\"@/v1/{resource=projects/*/" + + "locations/*/connections/*}:getIamPolicy:" + + "\001*\332A\020resource,options\022\250\001\n\014SetIamPolicy\022\"" + + ".google.iam.v1.SetIamPolicyRequest\032\025.goo" + + "gle.iam.v1.Policy\"]\202\323\344\223\002E\"@/v1/{resource" + + "=projects/*/locations/*/connections/*}:s" + + "etIamPolicy:\001*\332A\017resource,policy\022\323\001\n\022Tes" + + "tIamPermissions\022(.google.iam.v1.TestIamP" + + "ermissionsRequest\032).google.iam.v1.TestIa" + + "mPermissionsResponse\"h\202\323\344\223\002K\"F/v1/{resou" + + "rce=projects/*/locations/*/connections/*" + + "}:testIamPermissions:\001*\332A\024resource,permi" + + "ssions\032~\312A!bigqueryconnection.googleapis" + + ".com\322AWhttps://www.googleapis.com/auth/b" + + "igquery,https://www.googleapis.com/auth/" + + "cloud-platformB\306\001\n\'com.google.cloud.bigq" + + "uery.connection.v1P\001ZMgoogle.golang.org/" + + "genproto/googleapis/cloud/bigquery/conne" + + "ction/v1;connection\252\002#Google.Cloud.BigQu" + + "ery.Connection.V1\312\002#Google\\Cloud\\BigQuer" + + "y\\Connection\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -293,7 +294,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor, new java.lang.String[] { - "InstanceId", "Database", "Type", "Credential", + "InstanceId", "Database", "Type", "Credential", "ServiceAccountId", }); internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor = getDescriptor().getMessageTypes().get(8); diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto b/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto index 1c316e3a..cf4b5e29 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto @@ -275,6 +275,13 @@ message CloudSqlProperties { // Input only. Cloud SQL credential. CloudSqlCredential credential = 4 [(google.api.field_behavior) = INPUT_ONLY]; + + // Output only. The account ID of the service used for the purpose of this connection. + // + // When the connection is used in the context of an operation in + // BigQuery, this service account will serve as identity being used for + // connecting to the CloudSQL instance specified in this connection. + string service_account_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Credential info for the Cloud SQL. diff --git a/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java b/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java index 881474a1..0e4fb50e 100644 --- a/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java +++ b/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java @@ -10804,6 +10804,37 @@ public interface CloudSqlPropertiesOrBuilder */ com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder getCredentialOrBuilder(); + + /** + * + * + *
+     * Output only. The account ID of the service used for the purpose of this connection.
+     * When the connection is used in the context of an operation in
+     * BigQuery, this service account will serve as identity being used for
+     * connecting to the CloudSQL instance specified in this connection.
+     * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAccountId. + */ + java.lang.String getServiceAccountId(); + /** + * + * + *
+     * Output only. The account ID of the service used for the purpose of this connection.
+     * When the connection is used in the context of an operation in
+     * BigQuery, this service account will serve as identity being used for
+     * connecting to the CloudSQL instance specified in this connection.
+     * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAccountId. + */ + com.google.protobuf.ByteString getServiceAccountIdBytes(); } /** * @@ -10828,6 +10859,7 @@ private CloudSqlProperties() { instanceId_ = ""; database_ = ""; type_ = 0; + serviceAccountId_ = ""; } @java.lang.Override @@ -10898,6 +10930,13 @@ private CloudSqlProperties( credential_ = subBuilder.buildPartial(); } + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + serviceAccountId_ = s; break; } default: @@ -11299,6 +11338,61 @@ public boolean hasCredential() { return getCredential(); } + public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object serviceAccountId_; + /** + * + * + *
+     * Output only. The account ID of the service used for the purpose of this connection.
+     * When the connection is used in the context of an operation in
+     * BigQuery, this service account will serve as identity being used for
+     * connecting to the CloudSQL instance specified in this connection.
+     * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAccountId. + */ + @java.lang.Override + public java.lang.String getServiceAccountId() { + java.lang.Object ref = serviceAccountId_; + 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(); + serviceAccountId_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The account ID of the service used for the purpose of this connection.
+     * When the connection is used in the context of an operation in
+     * BigQuery, this service account will serve as identity being used for
+     * connecting to the CloudSQL instance specified in this connection.
+     * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAccountId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountIdBytes() { + java.lang.Object ref = serviceAccountId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -11328,6 +11422,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (credential_ != null) { output.writeMessage(4, getCredential()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceAccountId_); + } unknownFields.writeTo(output); } @@ -11352,6 +11449,9 @@ public int getSerializedSize() { if (credential_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCredential()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceAccountId_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -11377,6 +11477,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCredential()) { if (!getCredential().equals(other.getCredential())) return false; } + if (!getServiceAccountId().equals(other.getServiceAccountId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -11398,6 +11499,8 @@ public int hashCode() { hash = (37 * hash) + CREDENTIAL_FIELD_NUMBER; hash = (53 * hash) + getCredential().hashCode(); } + hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -11567,6 +11670,8 @@ public Builder clear() { credential_ = null; credentialBuilder_ = null; } + serviceAccountId_ = ""; + return this; } @@ -11608,6 +11713,7 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } else { result.credential_ = credentialBuilder_.build(); } + result.serviceAccountId_ = serviceAccountId_; onBuilt(); return result; } @@ -11680,6 +11786,10 @@ public Builder mergeFrom( if (other.hasCredential()) { mergeCredential(other.getCredential()); } + if (!other.getServiceAccountId().isEmpty()) { + serviceAccountId_ = other.serviceAccountId_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -12251,6 +12361,127 @@ public Builder clearCredential() { return credentialBuilder_; } + private java.lang.Object serviceAccountId_ = ""; + /** + * + * + *
+       * Output only. The account ID of the service used for the purpose of this connection.
+       * When the connection is used in the context of an operation in
+       * BigQuery, this service account will serve as identity being used for
+       * connecting to the CloudSQL instance specified in this connection.
+       * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAccountId. + */ + public java.lang.String getServiceAccountId() { + java.lang.Object ref = serviceAccountId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The account ID of the service used for the purpose of this connection.
+       * When the connection is used in the context of an operation in
+       * BigQuery, this service account will serve as identity being used for
+       * connecting to the CloudSQL instance specified in this connection.
+       * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAccountId. + */ + public com.google.protobuf.ByteString getServiceAccountIdBytes() { + java.lang.Object ref = serviceAccountId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The account ID of the service used for the purpose of this connection.
+       * When the connection is used in the context of an operation in
+       * BigQuery, this service account will serve as identity being used for
+       * connecting to the CloudSQL instance specified in this connection.
+       * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The serviceAccountId to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccountId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The account ID of the service used for the purpose of this connection.
+       * When the connection is used in the context of an operation in
+       * BigQuery, this service account will serve as identity being used for
+       * connecting to the CloudSQL instance specified in this connection.
+       * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccountId() { + + serviceAccountId_ = getDefaultInstance().getServiceAccountId(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The account ID of the service used for the purpose of this connection.
+       * When the connection is used in the context of an operation in
+       * BigQuery, this service account will serve as identity being used for
+       * connecting to the CloudSQL instance specified in this connection.
+       * 
+ * + * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for serviceAccountId to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccountId_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13298,75 +13529,75 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ctions/{connection}B\014\n\nproperties\"w\n\024Con" + "nectionCredential\022Q\n\tcloud_sql\030\001 \001(\0132<.g" + "oogle.cloud.bigquery.connection.v1beta1." - + "CloudSqlCredentialH\000B\014\n\ncredential\"\263\002\n\022C" + + "CloudSqlCredentialH\000B\014\n\ncredential\"\324\002\n\022C" + "loudSqlProperties\022\023\n\013instance_id\030\001 \001(\t\022\020" + "\n\010database\030\002 \001(\t\022W\n\004type\030\003 \001(\0162I.google." + "cloud.bigquery.connection.v1beta1.CloudS" + "qlProperties.DatabaseType\022U\n\ncredential\030" + "\004 \001(\0132<.google.cloud.bigquery.connection" - + ".v1beta1.CloudSqlCredentialB\003\340A\004\"F\n\014Data" - + "baseType\022\035\n\031DATABASE_TYPE_UNSPECIFIED\020\000\022" - + "\014\n\010POSTGRES\020\001\022\t\n\005MYSQL\020\002\"8\n\022CloudSqlCred" - + "ential\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001" - + "(\t2\230\020\n\021ConnectionService\022\367\001\n\020CreateConne" - + "ction\022A.google.cloud.bigquery.connection" - + ".v1beta1.CreateConnectionRequest\0324.googl" - + "e.cloud.bigquery.connection.v1beta1.Conn" - + "ection\"j\202\323\344\223\002B\"4/v1beta1/{parent=project" - + "s/*/locations/*}/connections:\nconnection" - + "\332A\037parent,connection,connection_id\022\312\001\n\rG" - + "etConnection\022>.google.cloud.bigquery.con" - + "nection.v1beta1.GetConnectionRequest\0324.g" + + ".v1beta1.CloudSqlCredentialB\003\340A\004\022\037\n\022serv" + + "ice_account_id\030\005 \001(\tB\003\340A\003\"F\n\014DatabaseTyp" + + "e\022\035\n\031DATABASE_TYPE_UNSPECIFIED\020\000\022\014\n\010POST" + + "GRES\020\001\022\t\n\005MYSQL\020\002\"8\n\022CloudSqlCredential\022" + + "\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t2\230\020\n\021" + + "ConnectionService\022\367\001\n\020CreateConnection\022A" + + ".google.cloud.bigquery.connection.v1beta" + + "1.CreateConnectionRequest\0324.google.cloud" + + ".bigquery.connection.v1beta1.Connection\"" + + "j\202\323\344\223\002B\"4/v1beta1/{parent=projects/*/loc" + + "ations/*}/connections:\nconnection\332A\037pare" + + "nt,connection,connection_id\022\312\001\n\rGetConne" + + "ction\022>.google.cloud.bigquery.connection" + + ".v1beta1.GetConnectionRequest\0324.google.c" + + "loud.bigquery.connection.v1beta1.Connect" + + "ion\"C\202\323\344\223\0026\0224/v1beta1/{name=projects/*/l" + + "ocations/*/connections/*}\332A\004name\022\351\001\n\017Lis" + + "tConnections\022@.google.cloud.bigquery.con" + + "nection.v1beta1.ListConnectionsRequest\032A" + + ".google.cloud.bigquery.connection.v1beta" + + "1.ListConnectionsResponse\"Q\202\323\344\223\0026\0224/v1be" + + "ta1/{parent=projects/*/locations/*}/conn" + + "ections\332A\022parent,max_results\022\363\001\n\020UpdateC" + + "onnection\022A.google.cloud.bigquery.connec" + + "tion.v1beta1.UpdateConnectionRequest\0324.g" + "oogle.cloud.bigquery.connection.v1beta1." - + "Connection\"C\202\323\344\223\0026\0224/v1beta1/{name=proje" - + "cts/*/locations/*/connections/*}\332A\004name\022" - + "\351\001\n\017ListConnections\022@.google.cloud.bigqu" - + "ery.connection.v1beta1.ListConnectionsRe" - + "quest\032A.google.cloud.bigquery.connection" - + ".v1beta1.ListConnectionsResponse\"Q\202\323\344\223\0026" - + "\0224/v1beta1/{parent=projects/*/locations/" - + "*}/connections\332A\022parent,max_results\022\363\001\n\020" - + "UpdateConnection\022A.google.cloud.bigquery" - + ".connection.v1beta1.UpdateConnectionRequ" - + "est\0324.google.cloud.bigquery.connection.v" - + "1beta1.Connection\"f\202\323\344\223\002B24/v1beta1/{nam" - + "e=projects/*/locations/*/connections/*}:" - + "\nconnection\332A\033name,connection,update_mas" - + "k\022\350\001\n\032UpdateConnectionCredential\022K.googl" - + "e.cloud.bigquery.connection.v1beta1.Upda" - + "teConnectionCredentialRequest\032\026.google.p" - + "rotobuf.Empty\"e\202\323\344\223\002M2?/v1beta1/{name=pr" - + "ojects/*/locations/*/connections/*/crede" - + "ntial}:\ncredential\332A\017name,credential\022\262\001\n" - + "\020DeleteConnection\022A.google.cloud.bigquer" - + "y.connection.v1beta1.DeleteConnectionReq" - + "uest\032\026.google.protobuf.Empty\"C\202\323\344\223\0026*4/v" - + "1beta1/{name=projects/*/locations/*/conn" - + "ections/*}\332A\004name\022\256\001\n\014GetIamPolicy\022\".goo" - + "gle.iam.v1.GetIamPolicyRequest\032\025.google." - + "iam.v1.Policy\"c\202\323\344\223\002J\"E/v1beta1/{resourc" - + "e=projects/*/locations/*/connections/*}:" - + "getIamPolicy:\001*\332A\020resource,options\022\255\001\n\014S" - + "etIamPolicy\022\".google.iam.v1.SetIamPolicy" - + "Request\032\025.google.iam.v1.Policy\"b\202\323\344\223\002J\"E" - + "/v1beta1/{resource=projects/*/locations/" - + "*/connections/*}:setIamPolicy:\001*\332A\017resou" - + "rce,policy\022\330\001\n\022TestIamPermissions\022(.goog" - + "le.iam.v1.TestIamPermissionsRequest\032).go" - + "ogle.iam.v1.TestIamPermissionsResponse\"m" - + "\202\323\344\223\002P\"K/v1beta1/{resource=projects/*/lo" - + "cations/*/connections/*}:testIamPermissi" - + "ons:\001*\332A\024resource,permissions\032~\312A!bigque" - + "ryconnection.googleapis.com\322AWhttps://ww" - + "w.googleapis.com/auth/bigquery,https://w" - + "ww.googleapis.com/auth/cloud-platformB\351\001" - + "\n,com.google.cloud.bigquery.connection.v" - + "1beta1B\017ConnectionProtoZRgoogle.golang.o" - + "rg/genproto/googleapis/cloud/bigquery/co" - + "nnection/v1beta1;connection\252\002(Google.Clo" - + "ud.BigQuery.Connection.V1Beta1\312\002(Google\\" - + "Cloud\\BigQuery\\Connection\\V1beta1b\006proto" - + "3" + + "Connection\"f\202\323\344\223\002B24/v1beta1/{name=proje" + + "cts/*/locations/*/connections/*}:\nconnec" + + "tion\332A\033name,connection,update_mask\022\350\001\n\032U" + + "pdateConnectionCredential\022K.google.cloud" + + ".bigquery.connection.v1beta1.UpdateConne" + + "ctionCredentialRequest\032\026.google.protobuf" + + ".Empty\"e\202\323\344\223\002M2?/v1beta1/{name=projects/" + + "*/locations/*/connections/*/credential}:" + + "\ncredential\332A\017name,credential\022\262\001\n\020Delete" + + "Connection\022A.google.cloud.bigquery.conne" + + "ction.v1beta1.DeleteConnectionRequest\032\026." + + "google.protobuf.Empty\"C\202\323\344\223\0026*4/v1beta1/" + + "{name=projects/*/locations/*/connections" + + "/*}\332A\004name\022\256\001\n\014GetIamPolicy\022\".google.iam" + + ".v1.GetIamPolicyRequest\032\025.google.iam.v1." + + "Policy\"c\202\323\344\223\002J\"E/v1beta1/{resource=proje" + + "cts/*/locations/*/connections/*}:getIamP" + + "olicy:\001*\332A\020resource,options\022\255\001\n\014SetIamPo" + + "licy\022\".google.iam.v1.SetIamPolicyRequest" + + "\032\025.google.iam.v1.Policy\"b\202\323\344\223\002J\"E/v1beta" + + "1/{resource=projects/*/locations/*/conne" + + "ctions/*}:setIamPolicy:\001*\332A\017resource,pol" + + "icy\022\330\001\n\022TestIamPermissions\022(.google.iam." + + "v1.TestIamPermissionsRequest\032).google.ia" + + "m.v1.TestIamPermissionsResponse\"m\202\323\344\223\002P\"" + + "K/v1beta1/{resource=projects/*/locations" + + "/*/connections/*}:testIamPermissions:\001*\332" + + "A\024resource,permissions\032~\312A!bigqueryconne" + + "ction.googleapis.com\322AWhttps://www.googl" + + "eapis.com/auth/bigquery,https://www.goog" + + "leapis.com/auth/cloud-platformB\351\001\n,com.g" + + "oogle.cloud.bigquery.connection.v1beta1B" + + "\017ConnectionProtoZRgoogle.golang.org/genp" + + "roto/googleapis/cloud/bigquery/connectio" + + "n/v1beta1;connection\252\002(Google.Cloud.BigQ" + + "uery.Connection.V1Beta1\312\002(Google\\Cloud\\B" + + "igQuery\\Connection\\V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -13467,7 +13698,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor, new java.lang.String[] { - "InstanceId", "Database", "Type", "Credential", + "InstanceId", "Database", "Type", "Credential", "ServiceAccountId", }); internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor = getDescriptor().getMessageTypes().get(10); diff --git a/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto b/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto index e70f6f39..eda714db 100644 --- a/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto +++ b/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// 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. @@ -105,7 +105,7 @@ service ConnectionService { // Sets the access control policy on the specified resource. Replaces any // existing policy. // - // Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + // Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1beta1/{resource=projects/*/locations/*/connections/*}:setIamPolicy" @@ -116,7 +116,7 @@ service ConnectionService { // Returns permissions that a caller has on the specified resource. // If the resource does not exist, this will return an empty set of - // permissions, not a NOT_FOUND error. + // permissions, not a `NOT_FOUND` error. // // Note: This operation is designed to be used for building permission-aware // UIs and command-line tools, not for authorization checking. This operation @@ -295,6 +295,13 @@ message CloudSqlProperties { // Input only. Cloud SQL credential. CloudSqlCredential credential = 4 [(google.api.field_behavior) = INPUT_ONLY]; + + // Output only. The account ID of the service used for the purpose of this connection. + // + // When the connection is used in the context of an operation in + // BigQuery, this service account will serve as identity being used for + // connecting to the CloudSQL instance specified in this connection. + string service_account_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Credential info for the Cloud SQL. From 7a1a8345035a615028ce68c17c2e67cb14041817 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 30 Jul 2022 02:26:16 +0200 Subject: [PATCH 06/11] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3 (#725) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.13.0` -> `3.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.0/compatibility-slim/2.13.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.0/confidence-slim/2.13.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v3.0.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​300-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2130v300-2022-07-29) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.13.0...v3.0.0) ##### Bug Fixes - enable longpaths support for windows test ([#​1485](https://togithub.com/googleapis/java-shared-dependencies/issues/1485)) ([#​738](https://togithub.com/googleapis/java-shared-dependencies/issues/738)) ([11bc8f8](https://togithub.com/googleapis/java-shared-dependencies/commit/11bc8f81f28be88a97fdeafca21724e33638770c)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.35.2 ([#​729](https://togithub.com/googleapis/java-shared-dependencies/issues/729)) ([1fa59af](https://togithub.com/googleapis/java-shared-dependencies/commit/1fa59af80abb9f278f57658c10158567e825fec6)) - update dependency com.google.api-client:google-api-client-bom to v2 ([#​746](https://togithub.com/googleapis/java-shared-dependencies/issues/746)) ([2dcb2e0](https://togithub.com/googleapis/java-shared-dependencies/commit/2dcb2e071e0ba0eea21bb575bd13cd559d4a1ca6)) - update dependency com.google.api.grpc:grpc-google-common-protos to v2.9.2 ([#​741](https://togithub.com/googleapis/java-shared-dependencies/issues/741)) ([3352d6c](https://togithub.com/googleapis/java-shared-dependencies/commit/3352d6c36111c04e3f6f3e6360470fa3efb10d8f)) - update dependency com.google.auth:google-auth-library-bom to v1.8.0 ([#​726](https://togithub.com/googleapis/java-shared-dependencies/issues/726)) ([2c5d64c](https://togithub.com/googleapis/java-shared-dependencies/commit/2c5d64c127db8384e49113acfeac6928716a2d7f)) - update dependency com.google.auth:google-auth-library-bom to v1.8.1 ([#​742](https://togithub.com/googleapis/java-shared-dependencies/issues/742)) ([4f53527](https://togithub.com/googleapis/java-shared-dependencies/commit/4f53527bda7f40896711b7c1d1c02453321ffbc8)) - update dependency com.google.cloud:first-party-dependencies to v2 ([#​747](https://togithub.com/googleapis/java-shared-dependencies/issues/747)) ([e970ac0](https://togithub.com/googleapis/java-shared-dependencies/commit/e970ac0599941c825dc2516146a7c6673e68a9b9)) - update dependency com.google.cloud:grpc-gcp to v1.2.1 ([#​751](https://togithub.com/googleapis/java-shared-dependencies/issues/751)) ([b3284b6](https://togithub.com/googleapis/java-shared-dependencies/commit/b3284b6ee52a96a6ea8696a05a94443df9ee5b9f)) - update dependency com.google.cloud:third-party-dependencies to v2 ([#​748](https://togithub.com/googleapis/java-shared-dependencies/issues/748)) ([573b41a](https://togithub.com/googleapis/java-shared-dependencies/commit/573b41a69504372741cbeb01dd200e7c71967186)) - update dependency com.google.http-client:google-http-client-bom to v1.42.1 ([#​730](https://togithub.com/googleapis/java-shared-dependencies/issues/730)) ([6b47126](https://togithub.com/googleapis/java-shared-dependencies/commit/6b47126686b603a5d112e097ce6aa3a1880daf6f)) - update dependency com.google.http-client:google-http-client-bom to v1.42.2 ([#​749](https://togithub.com/googleapis/java-shared-dependencies/issues/749)) ([299d7b0](https://togithub.com/googleapis/java-shared-dependencies/commit/299d7b0d4920644e2c3070d12dd1d97da17a5e88)) - update dependency com.google.protobuf:protobuf-bom to v3.21.2 ([#​722](https://togithub.com/googleapis/java-shared-dependencies/issues/722)) ([7a96b12](https://togithub.com/googleapis/java-shared-dependencies/commit/7a96b1259a526b63e9376fd6cc18b27cddeb5f0f)) - update dependency com.google.protobuf:protobuf-bom to v3.21.3 ([#​756](https://togithub.com/googleapis/java-shared-dependencies/issues/756)) ([3d0bac2](https://togithub.com/googleapis/java-shared-dependencies/commit/3d0bac23487aebb94267c0708f41ff6c02a028a4)) - update dependency com.google.protobuf:protobuf-bom to v3.21.4 ([#​759](https://togithub.com/googleapis/java-shared-dependencies/issues/759)) ([5a54ef1](https://togithub.com/googleapis/java-shared-dependencies/commit/5a54ef1a2d56244166d4fcc46041d62c0dc4b411)) - update dependency io.grpc:grpc-bom to v1.48.0 ([#​752](https://togithub.com/googleapis/java-shared-dependencies/issues/752)) ([20ac908](https://togithub.com/googleapis/java-shared-dependencies/commit/20ac908932a5e7c8e581bdfcd68579d7e1cedd5f)) - update dependency org.checkerframework:checker-qual to v3.23.0 ([#​736](https://togithub.com/googleapis/java-shared-dependencies/issues/736)) ([fc01d8f](https://togithub.com/googleapis/java-shared-dependencies/commit/fc01d8f93f391f12fdb800d5006f0b4505832eeb)) - update gax.version to v2.18.3 ([#​731](https://togithub.com/googleapis/java-shared-dependencies/issues/731)) ([e8ee554](https://togithub.com/googleapis/java-shared-dependencies/commit/e8ee554707acb2f71c739d08e2ff02fbe43ffa52)) - update gax.version to v2.18.4 ([#​735](https://togithub.com/googleapis/java-shared-dependencies/issues/735)) ([11c7415](https://togithub.com/googleapis/java-shared-dependencies/commit/11c74152a84697924de3a0e838b05f606c3098f7)) - update gax.version to v2.18.5 ([#​758](https://togithub.com/googleapis/java-shared-dependencies/issues/758)) ([7469fc1](https://togithub.com/googleapis/java-shared-dependencies/commit/7469fc1cc5095b39a5738e60156711a268f6e052)) - update gax.version to v2.18.6 ([#​763](https://togithub.com/googleapis/java-shared-dependencies/issues/763)) ([b5ca2f7](https://togithub.com/googleapis/java-shared-dependencies/commit/b5ca2f7b4d81c705823253f4f03363a32d2be48b)) - update google.common-protos.version to v2.9.1 ([#​724](https://togithub.com/googleapis/java-shared-dependencies/issues/724)) ([5213dbb](https://togithub.com/googleapis/java-shared-dependencies/commit/5213dbbfa9c9b73d2420ec2be7782f16c9c4955f)) - update google.core.version to v2.8.1 ([#​725](https://togithub.com/googleapis/java-shared-dependencies/issues/725)) ([575858a](https://togithub.com/googleapis/java-shared-dependencies/commit/575858a60f76e46bbc2a2435c2b6c01c8f4ab681)) - update google.core.version to v2.8.3 ([#​760](https://togithub.com/googleapis/java-shared-dependencies/issues/760)) ([cb10ae4](https://togithub.com/googleapis/java-shared-dependencies/commit/cb10ae4b76939215ea465af74163b3d4ad65a548)) - update google.core.version to v2.8.4 ([#​762](https://togithub.com/googleapis/java-shared-dependencies/issues/762)) ([821daaf](https://togithub.com/googleapis/java-shared-dependencies/commit/821daafefdbcfdfe6e363e580747538096a562ef)) - update google.core.version to v2.8.5 ([#​764](https://togithub.com/googleapis/java-shared-dependencies/issues/764)) ([a1f8f50](https://togithub.com/googleapis/java-shared-dependencies/commit/a1f8f501b54143a2cec8e72efd4ceb3ce47f13ae)) - update iam.version to v1.5.0 ([#​732](https://togithub.com/googleapis/java-shared-dependencies/issues/732)) ([9dce0e5](https://togithub.com/googleapis/java-shared-dependencies/commit/9dce0e5199c1e425119adc804304958f58003a27)) - update iam.version to v1.5.1 ([#​737](https://togithub.com/googleapis/java-shared-dependencies/issues/737)) ([df39168](https://togithub.com/googleapis/java-shared-dependencies/commit/df391685d42fcb1b04f03ab1380a594893bdce37)) - update iam.version to v1.5.2 ([#​743](https://togithub.com/googleapis/java-shared-dependencies/issues/743)) ([cdde697](https://togithub.com/googleapis/java-shared-dependencies/commit/cdde697f25a89fc8c2ec7eae6b7c54f69977bb1c))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-bigqueryconnection). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 42080ae3..5acfc01c 100644 --- a/pom.xml +++ b/pom.xml @@ -54,7 +54,7 @@ UTF-8 github google-cloud-bigqueryconnection-parent - 2.13.0 + 3.0.0 From e138516ce8a3c1c3bc0aad127b369a602a16bb68 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 20:46:25 +0200 Subject: [PATCH 07/11] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.3 (#726) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.5.1` -> `1.5.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/compatibility-slim/1.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/confidence-slim/1.5.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.5.3`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​153-httpsgithubcomgoogleapisjava-shared-configcomparev152v153-2022-07-27) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.5.2...v1.5.3) ##### Dependencies - update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 ([#​497](https://togithub.com/googleapis/java-shared-config/issues/497)) ([1fc6ab4](https://togithub.com/googleapis/java-shared-config/commit/1fc6ab445624cd4f9c8b161d109f346a9e5ed09a)) - Update doclet to latest version 1.6.0 ([38fb7c3](https://togithub.com/googleapis/java-shared-config/commit/38fb7c3957fb6c9b2da10f9e463cc93a8b80a3a4)) ### [`v1.5.2`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​152-httpsgithubcomgoogleapisjava-shared-configcomparev151v152-2022-07-25) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.5.1...v1.5.2) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v10 ([#​435](https://togithub.com/googleapis/java-shared-config/issues/435)) ([bfc8ce1](https://togithub.com/googleapis/java-shared-config/commit/bfc8ce1deca6292147d002d3afe22a09840aa5d6)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.13 ([#​488](https://togithub.com/googleapis/java-shared-config/issues/488)) ([39b91ee](https://togithub.com/googleapis/java-shared-config/commit/39b91ee1283f0a5fbbe63e8bfd1ec97ab4ab377e)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 ([#​489](https://togithub.com/googleapis/java-shared-config/issues/489)) ([cc3bcfa](https://togithub.com/googleapis/java-shared-config/commit/cc3bcfa2d6717441a8d5b5048fa78c2cf7aabf2b))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-bigqueryconnection). --- google-cloud-bigqueryconnection-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-bigqueryconnection-bom/pom.xml b/google-cloud-bigqueryconnection-bom/pom.xml index 8af3d1f6..78abacc8 100644 --- a/google-cloud-bigqueryconnection-bom/pom.xml +++ b/google-cloud-bigqueryconnection-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.1 + 1.5.3 Google Cloud BigQuery Connections BOM diff --git a/pom.xml b/pom.xml index 5acfc01c..3819d60a 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.1 + 1.5.3 From 252e9042b95f5075d7f006e6e18bb9bfebe918e5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Aug 2022 00:14:11 +0200 Subject: [PATCH 08/11] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1 (#728) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.0` -> `3.0.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/compatibility-slim/3.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/confidence-slim/3.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v3.0.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​301-httpsgithubcomgoogleapisjava-shared-dependenciescomparev300v301-2022-08-02) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.0...v3.0.1) ##### Dependencies - update dependency com.google.code.gson:gson to v2.9.1 ([#​766](https://togithub.com/googleapis/java-shared-dependencies/issues/766)) ([f7b2b06](https://togithub.com/googleapis/java-shared-dependencies/commit/f7b2b06b80e3e95ff8ab9b1d6a2638ef3069298a)) - update gax.version to v2.18.7 ([#​767](https://togithub.com/googleapis/java-shared-dependencies/issues/767)) ([9650368](https://togithub.com/googleapis/java-shared-dependencies/commit/96503682e98cdf348ea2c1365a03a60f4322c712)) - update google.core.version to v2.8.6 ([#​770](https://togithub.com/googleapis/java-shared-dependencies/issues/770)) ([cfd4377](https://togithub.com/googleapis/java-shared-dependencies/commit/cfd4377dc178cebb4724065d55d185ce03988d55))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-bigqueryconnection). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 3819d60a..16f44e15 100644 --- a/pom.xml +++ b/pom.xml @@ -54,7 +54,7 @@ UTF-8 github google-cloud-bigqueryconnection-parent - 3.0.0 + 3.0.1 From 1bd666b25977dcc13ad6501ad2cb601b696ed3b3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 4 Aug 2022 01:44:39 +0000 Subject: [PATCH 09/11] chore: deprecate the AwsCrossAccountRole property (#727) - [ ] Regenerate this pull request now. feat: add Azure Properties to Connection Azure properties are used by BigQuery Omni in Azure regions. PiperOrigin-RevId: 464570667 Source-Link: https://github.com/googleapis/googleapis/commit/75905af5ab6cd89c354dcfb9d9ca0bfdd4d581b4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/8c3a2485bb35012ecb7a2ced0f94a11d2de253b2 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGMzYTI0ODViYjM1MDEyZWNiN2EyY2VkMGY5NGExMWQyZGUyNTNiMiJ9 --- .../bigquery/connection/v1/AwsProperties.java | 80 +- .../connection/v1/AwsPropertiesOrBuilder.java | 22 +- .../connection/v1/AzureProperties.java | 1744 +++++++++++++++++ .../v1/AzurePropertiesOrBuilder.java | 208 ++ .../bigquery/connection/v1/Connection.java | 314 +++ .../connection/v1/ConnectionOrBuilder.java | 35 + .../connection/v1/ConnectionOuterClass.java | 192 +- .../bigquery/connection/v1/connection.proto | 34 +- 8 files changed, 2530 insertions(+), 99 deletions(-) create mode 100644 proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.java create mode 100644 proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java index 19dd4ee9..e615099f 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java @@ -153,6 +153,7 @@ public enum AuthenticationMethodCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { + @java.lang.Deprecated CROSS_ACCOUNT_ROLE(2), ACCESS_ROLE(3), AUTHENTICATIONMETHOD_NOT_SET(0); @@ -200,13 +201,19 @@ public AuthenticationMethodCase getAuthenticationMethodCase() { *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
+   * Deprecated, do not use.
    * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * * + * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is deprecated. + * See google/cloud/bigquery/connection/v1/connection.proto;l=314 * @return Whether the crossAccountRole field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasCrossAccountRole() { return authenticationMethodCase_ == 2; } @@ -216,13 +223,19 @@ public boolean hasCrossAccountRole() { *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
+   * Deprecated, do not use.
    * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * * + * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is deprecated. + * See google/cloud/bigquery/connection/v1/connection.proto;l=314 * @return The crossAccountRole. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccountRole() { if (authenticationMethodCase_ == 2) { return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_; @@ -235,11 +248,15 @@ public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccou *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
+   * Deprecated, do not use.
    * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder getCrossAccountRoleOrBuilder() { if (authenticationMethodCase_ == 2) { @@ -705,13 +722,19 @@ public Builder clearAuthenticationMethod() { *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
+     * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * * + * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is + * deprecated. See google/cloud/bigquery/connection/v1/connection.proto;l=314 * @return Whether the crossAccountRole field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasCrossAccountRole() { return authenticationMethodCase_ == 2; } @@ -721,13 +744,19 @@ public boolean hasCrossAccountRole() { *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
+     * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * * + * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is + * deprecated. See google/cloud/bigquery/connection/v1/connection.proto;l=314 * @return The crossAccountRole. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccountRole() { if (crossAccountRoleBuilder_ == null) { if (authenticationMethodCase_ == 2) { @@ -748,10 +777,14 @@ public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccou *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
+     * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setCrossAccountRole( com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole value) { if (crossAccountRoleBuilder_ == null) { @@ -772,10 +805,14 @@ public Builder setCrossAccountRole( *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
+     * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setCrossAccountRole( com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder builderForValue) { if (crossAccountRoleBuilder_ == null) { @@ -793,10 +830,14 @@ public Builder setCrossAccountRole( *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
+     * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder mergeCrossAccountRole( com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole value) { if (crossAccountRoleBuilder_ == null) { @@ -830,10 +871,14 @@ public Builder mergeCrossAccountRole( *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
+     * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder clearCrossAccountRole() { if (crossAccountRoleBuilder_ == null) { if (authenticationMethodCase_ == 2) { @@ -856,10 +901,14 @@ public Builder clearCrossAccountRole() { *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
+     * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder getCrossAccountRoleBuilder() { return getCrossAccountRoleFieldBuilder().getBuilder(); @@ -870,11 +919,15 @@ public Builder clearCrossAccountRole() { *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
+     * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder getCrossAccountRoleOrBuilder() { if ((authenticationMethodCase_ == 2) && (crossAccountRoleBuilder_ != null)) { @@ -893,9 +946,12 @@ public Builder clearCrossAccountRole() { *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
+     * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole, diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java index 41ed383b..414cd370 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java @@ -29,12 +29,18 @@ public interface AwsPropertiesOrBuilder *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
+   * Deprecated, do not use.
    * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * * + * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is deprecated. + * See google/cloud/bigquery/connection/v1/connection.proto;l=314 * @return Whether the crossAccountRole field is set. */ + @java.lang.Deprecated boolean hasCrossAccountRole(); /** * @@ -42,12 +48,18 @@ public interface AwsPropertiesOrBuilder *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
+   * Deprecated, do not use.
    * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * * + * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is deprecated. + * See google/cloud/bigquery/connection/v1/connection.proto;l=314 * @return The crossAccountRole. */ + @java.lang.Deprecated com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccountRole(); /** * @@ -55,10 +67,14 @@ public interface AwsPropertiesOrBuilder *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
+   * Deprecated, do not use.
    * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder getCrossAccountRoleOrBuilder(); diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.java new file mode 100644 index 00000000..6a73ccfb --- /dev/null +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.java @@ -0,0 +1,1744 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/connection/v1/connection.proto + +package com.google.cloud.bigquery.connection.v1; + +/** + * + * + *
+ * Container for connection properties specific to Azure.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.connection.v1.AzureProperties} + */ +public final class AzureProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.AzureProperties) + AzurePropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use AzureProperties.newBuilder() to construct. + private AzureProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AzureProperties() { + application_ = ""; + clientId_ = ""; + objectId_ = ""; + customerTenantId_ = ""; + redirectUri_ = ""; + federatedApplicationClientId_ = ""; + identity_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AzureProperties(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AzureProperties( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + application_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + clientId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + objectId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + customerTenantId_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + redirectUri_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + federatedApplicationClientId_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + identity_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.connection.v1.AzureProperties.class, + com.google.cloud.bigquery.connection.v1.AzureProperties.Builder.class); + } + + public static final int APPLICATION_FIELD_NUMBER = 1; + private volatile java.lang.Object application_; + /** + * + * + *
+   * Output only. The name of the Azure Active Directory Application.
+   * 
+ * + * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The application. + */ + @java.lang.Override + public java.lang.String getApplication() { + java.lang.Object ref = application_; + 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(); + application_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The name of the Azure Active Directory Application.
+   * 
+ * + * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for application. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplicationBytes() { + java.lang.Object ref = application_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + application_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object clientId_; + /** + * + * + *
+   * Output only. The client id of the Azure Active Directory Application.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + 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(); + clientId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The client id of the Azure Active Directory Application.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object objectId_; + /** + * + * + *
+   * Output only. The object id of the Azure Active Directory Application.
+   * 
+ * + * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The objectId. + */ + @java.lang.Override + public java.lang.String getObjectId() { + java.lang.Object ref = objectId_; + 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(); + objectId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The object id of the Azure Active Directory Application.
+   * 
+ * + * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for objectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getObjectIdBytes() { + java.lang.Object ref = objectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + objectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOMER_TENANT_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object customerTenantId_; + /** + * + * + *
+   * The id of customer's directory that host the data.
+   * 
+ * + * string customer_tenant_id = 4; + * + * @return The customerTenantId. + */ + @java.lang.Override + public java.lang.String getCustomerTenantId() { + java.lang.Object ref = customerTenantId_; + 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(); + customerTenantId_ = s; + return s; + } + } + /** + * + * + *
+   * The id of customer's directory that host the data.
+   * 
+ * + * string customer_tenant_id = 4; + * + * @return The bytes for customerTenantId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomerTenantIdBytes() { + java.lang.Object ref = customerTenantId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerTenantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REDIRECT_URI_FIELD_NUMBER = 5; + private volatile java.lang.Object redirectUri_; + /** + * + * + *
+   * The URL user will be redirected to after granting consent during connection
+   * setup.
+   * 
+ * + * string redirect_uri = 5; + * + * @return The redirectUri. + */ + @java.lang.Override + public java.lang.String getRedirectUri() { + java.lang.Object ref = redirectUri_; + 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(); + redirectUri_ = s; + return s; + } + } + /** + * + * + *
+   * The URL user will be redirected to after granting consent during connection
+   * setup.
+   * 
+ * + * string redirect_uri = 5; + * + * @return The bytes for redirectUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRedirectUriBytes() { + java.lang.Object ref = redirectUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redirectUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEDERATED_APPLICATION_CLIENT_ID_FIELD_NUMBER = 6; + private volatile java.lang.Object federatedApplicationClientId_; + /** + * + * + *
+   * The client id of the user's Azure Active Directory Application used for a
+   * federated connection.
+   * 
+ * + * string federated_application_client_id = 6; + * + * @return The federatedApplicationClientId. + */ + @java.lang.Override + public java.lang.String getFederatedApplicationClientId() { + java.lang.Object ref = federatedApplicationClientId_; + 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(); + federatedApplicationClientId_ = s; + return s; + } + } + /** + * + * + *
+   * The client id of the user's Azure Active Directory Application used for a
+   * federated connection.
+   * 
+ * + * string federated_application_client_id = 6; + * + * @return The bytes for federatedApplicationClientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFederatedApplicationClientIdBytes() { + java.lang.Object ref = federatedApplicationClientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + federatedApplicationClientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDENTITY_FIELD_NUMBER = 7; + private volatile java.lang.Object identity_; + /** + * + * + *
+   * Output only. A unique Google-owned and Google-generated identity for the Connection.
+   * This identity will be used to access the user's Azure Active Directory
+   * Application.
+   * 
+ * + * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The identity. + */ + @java.lang.Override + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + 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(); + identity_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. A unique Google-owned and Google-generated identity for the Connection.
+   * This identity will be used to access the user's Azure Active Directory
+   * Application.
+   * 
+ * + * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for identity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identity_ = 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(application_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, application_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, objectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerTenantId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, customerTenantId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, redirectUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(federatedApplicationClientId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, federatedApplicationClientId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, identity_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(application_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, application_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, objectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerTenantId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, customerTenantId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, redirectUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(federatedApplicationClientId_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 6, federatedApplicationClientId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, identity_); + } + size += unknownFields.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.bigquery.connection.v1.AzureProperties)) { + return super.equals(obj); + } + com.google.cloud.bigquery.connection.v1.AzureProperties other = + (com.google.cloud.bigquery.connection.v1.AzureProperties) obj; + + if (!getApplication().equals(other.getApplication())) return false; + if (!getClientId().equals(other.getClientId())) return false; + if (!getObjectId().equals(other.getObjectId())) return false; + if (!getCustomerTenantId().equals(other.getCustomerTenantId())) return false; + if (!getRedirectUri().equals(other.getRedirectUri())) return false; + if (!getFederatedApplicationClientId().equals(other.getFederatedApplicationClientId())) + return false; + if (!getIdentity().equals(other.getIdentity())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + APPLICATION_FIELD_NUMBER; + hash = (53 * hash) + getApplication().hashCode(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + OBJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getObjectId().hashCode(); + hash = (37 * hash) + CUSTOMER_TENANT_ID_FIELD_NUMBER; + hash = (53 * hash) + getCustomerTenantId().hashCode(); + hash = (37 * hash) + REDIRECT_URI_FIELD_NUMBER; + hash = (53 * hash) + getRedirectUri().hashCode(); + hash = (37 * hash) + FEDERATED_APPLICATION_CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getFederatedApplicationClientId().hashCode(); + hash = (37 * hash) + IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getIdentity().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.connection.v1.AzureProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.connection.v1.AzureProperties 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.bigquery.connection.v1.AzureProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.connection.v1.AzureProperties 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.bigquery.connection.v1.AzureProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.connection.v1.AzureProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.connection.v1.AzureProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.connection.v1.AzureProperties 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.bigquery.connection.v1.AzureProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.connection.v1.AzureProperties 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.bigquery.connection.v1.AzureProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.connection.v1.AzureProperties 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.bigquery.connection.v1.AzureProperties 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; + } + /** + * + * + *
+   * Container for connection properties specific to Azure.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.connection.v1.AzureProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.connection.v1.AzureProperties) + com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.connection.v1.AzureProperties.class, + com.google.cloud.bigquery.connection.v1.AzureProperties.Builder.class); + } + + // Construct using com.google.cloud.bigquery.connection.v1.AzureProperties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + application_ = ""; + + clientId_ = ""; + + objectId_ = ""; + + customerTenantId_ = ""; + + redirectUri_ = ""; + + federatedApplicationClientId_ = ""; + + identity_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.AzureProperties getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.AzureProperties build() { + com.google.cloud.bigquery.connection.v1.AzureProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.AzureProperties buildPartial() { + com.google.cloud.bigquery.connection.v1.AzureProperties result = + new com.google.cloud.bigquery.connection.v1.AzureProperties(this); + result.application_ = application_; + result.clientId_ = clientId_; + result.objectId_ = objectId_; + result.customerTenantId_ = customerTenantId_; + result.redirectUri_ = redirectUri_; + result.federatedApplicationClientId_ = federatedApplicationClientId_; + result.identity_ = identity_; + onBuilt(); + return result; + } + + @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.bigquery.connection.v1.AzureProperties) { + return mergeFrom((com.google.cloud.bigquery.connection.v1.AzureProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.AzureProperties other) { + if (other == com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance()) + return this; + if (!other.getApplication().isEmpty()) { + application_ = other.application_; + onChanged(); + } + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + onChanged(); + } + if (!other.getObjectId().isEmpty()) { + objectId_ = other.objectId_; + onChanged(); + } + if (!other.getCustomerTenantId().isEmpty()) { + customerTenantId_ = other.customerTenantId_; + onChanged(); + } + if (!other.getRedirectUri().isEmpty()) { + redirectUri_ = other.redirectUri_; + onChanged(); + } + if (!other.getFederatedApplicationClientId().isEmpty()) { + federatedApplicationClientId_ = other.federatedApplicationClientId_; + onChanged(); + } + if (!other.getIdentity().isEmpty()) { + identity_ = other.identity_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.bigquery.connection.v1.AzureProperties parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.bigquery.connection.v1.AzureProperties) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object application_ = ""; + /** + * + * + *
+     * Output only. The name of the Azure Active Directory Application.
+     * 
+ * + * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The application. + */ + public java.lang.String getApplication() { + java.lang.Object ref = application_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + application_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The name of the Azure Active Directory Application.
+     * 
+ * + * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for application. + */ + public com.google.protobuf.ByteString getApplicationBytes() { + java.lang.Object ref = application_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + application_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The name of the Azure Active Directory Application.
+     * 
+ * + * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The application to set. + * @return This builder for chaining. + */ + public Builder setApplication(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + application_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The name of the Azure Active Directory Application.
+     * 
+ * + * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApplication() { + + application_ = getDefaultInstance().getApplication(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The name of the Azure Active Directory Application.
+     * 
+ * + * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for application to set. + * @return This builder for chaining. + */ + public Builder setApplicationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + application_ = value; + onChanged(); + return this; + } + + private java.lang.Object clientId_ = ""; + /** + * + * + *
+     * Output only. The client id of the Azure Active Directory Application.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The client id of the Azure Active Directory Application.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The client id of the Azure Active Directory Application.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clientId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The client id of the Azure Active Directory Application.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + + clientId_ = getDefaultInstance().getClientId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The client id of the Azure Active Directory Application.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientId_ = value; + onChanged(); + return this; + } + + private java.lang.Object objectId_ = ""; + /** + * + * + *
+     * Output only. The object id of the Azure Active Directory Application.
+     * 
+ * + * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The objectId. + */ + public java.lang.String getObjectId() { + java.lang.Object ref = objectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The object id of the Azure Active Directory Application.
+     * 
+ * + * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for objectId. + */ + public com.google.protobuf.ByteString getObjectIdBytes() { + java.lang.Object ref = objectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + objectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The object id of the Azure Active Directory Application.
+     * 
+ * + * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The objectId to set. + * @return This builder for chaining. + */ + public Builder setObjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + objectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The object id of the Azure Active Directory Application.
+     * 
+ * + * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearObjectId() { + + objectId_ = getDefaultInstance().getObjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The object id of the Azure Active Directory Application.
+     * 
+ * + * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for objectId to set. + * @return This builder for chaining. + */ + public Builder setObjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + objectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object customerTenantId_ = ""; + /** + * + * + *
+     * The id of customer's directory that host the data.
+     * 
+ * + * string customer_tenant_id = 4; + * + * @return The customerTenantId. + */ + public java.lang.String getCustomerTenantId() { + java.lang.Object ref = customerTenantId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerTenantId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The id of customer's directory that host the data.
+     * 
+ * + * string customer_tenant_id = 4; + * + * @return The bytes for customerTenantId. + */ + public com.google.protobuf.ByteString getCustomerTenantIdBytes() { + java.lang.Object ref = customerTenantId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerTenantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The id of customer's directory that host the data.
+     * 
+ * + * string customer_tenant_id = 4; + * + * @param value The customerTenantId to set. + * @return This builder for chaining. + */ + public Builder setCustomerTenantId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + customerTenantId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The id of customer's directory that host the data.
+     * 
+ * + * string customer_tenant_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearCustomerTenantId() { + + customerTenantId_ = getDefaultInstance().getCustomerTenantId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The id of customer's directory that host the data.
+     * 
+ * + * string customer_tenant_id = 4; + * + * @param value The bytes for customerTenantId to set. + * @return This builder for chaining. + */ + public Builder setCustomerTenantIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + customerTenantId_ = value; + onChanged(); + return this; + } + + private java.lang.Object redirectUri_ = ""; + /** + * + * + *
+     * The URL user will be redirected to after granting consent during connection
+     * setup.
+     * 
+ * + * string redirect_uri = 5; + * + * @return The redirectUri. + */ + public java.lang.String getRedirectUri() { + java.lang.Object ref = redirectUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + redirectUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The URL user will be redirected to after granting consent during connection
+     * setup.
+     * 
+ * + * string redirect_uri = 5; + * + * @return The bytes for redirectUri. + */ + public com.google.protobuf.ByteString getRedirectUriBytes() { + java.lang.Object ref = redirectUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redirectUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The URL user will be redirected to after granting consent during connection
+     * setup.
+     * 
+ * + * string redirect_uri = 5; + * + * @param value The redirectUri to set. + * @return This builder for chaining. + */ + public Builder setRedirectUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + redirectUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The URL user will be redirected to after granting consent during connection
+     * setup.
+     * 
+ * + * string redirect_uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearRedirectUri() { + + redirectUri_ = getDefaultInstance().getRedirectUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * The URL user will be redirected to after granting consent during connection
+     * setup.
+     * 
+ * + * string redirect_uri = 5; + * + * @param value The bytes for redirectUri to set. + * @return This builder for chaining. + */ + public Builder setRedirectUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + redirectUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object federatedApplicationClientId_ = ""; + /** + * + * + *
+     * The client id of the user's Azure Active Directory Application used for a
+     * federated connection.
+     * 
+ * + * string federated_application_client_id = 6; + * + * @return The federatedApplicationClientId. + */ + public java.lang.String getFederatedApplicationClientId() { + java.lang.Object ref = federatedApplicationClientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + federatedApplicationClientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The client id of the user's Azure Active Directory Application used for a
+     * federated connection.
+     * 
+ * + * string federated_application_client_id = 6; + * + * @return The bytes for federatedApplicationClientId. + */ + public com.google.protobuf.ByteString getFederatedApplicationClientIdBytes() { + java.lang.Object ref = federatedApplicationClientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + federatedApplicationClientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The client id of the user's Azure Active Directory Application used for a
+     * federated connection.
+     * 
+ * + * string federated_application_client_id = 6; + * + * @param value The federatedApplicationClientId to set. + * @return This builder for chaining. + */ + public Builder setFederatedApplicationClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + federatedApplicationClientId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The client id of the user's Azure Active Directory Application used for a
+     * federated connection.
+     * 
+ * + * string federated_application_client_id = 6; + * + * @return This builder for chaining. + */ + public Builder clearFederatedApplicationClientId() { + + federatedApplicationClientId_ = getDefaultInstance().getFederatedApplicationClientId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The client id of the user's Azure Active Directory Application used for a
+     * federated connection.
+     * 
+ * + * string federated_application_client_id = 6; + * + * @param value The bytes for federatedApplicationClientId to set. + * @return This builder for chaining. + */ + public Builder setFederatedApplicationClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + federatedApplicationClientId_ = value; + onChanged(); + return this; + } + + private java.lang.Object identity_ = ""; + /** + * + * + *
+     * Output only. A unique Google-owned and Google-generated identity for the Connection.
+     * This identity will be used to access the user's Azure Active Directory
+     * Application.
+     * 
+ * + * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The identity. + */ + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. A unique Google-owned and Google-generated identity for the Connection.
+     * This identity will be used to access the user's Azure Active Directory
+     * Application.
+     * 
+ * + * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for identity. + */ + public com.google.protobuf.ByteString getIdentityBytes() { + java.lang.Object ref = identity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. A unique Google-owned and Google-generated identity for the Connection.
+     * This identity will be used to access the user's Azure Active Directory
+     * Application.
+     * 
+ * + * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The identity to set. + * @return This builder for chaining. + */ + public Builder setIdentity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + identity_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A unique Google-owned and Google-generated identity for the Connection.
+     * This identity will be used to access the user's Azure Active Directory
+     * Application.
+     * 
+ * + * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIdentity() { + + identity_ = getDefaultInstance().getIdentity(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A unique Google-owned and Google-generated identity for the Connection.
+     * This identity will be used to access the user's Azure Active Directory
+     * Application.
+     * 
+ * + * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for identity to set. + * @return This builder for chaining. + */ + public Builder setIdentityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + identity_ = value; + 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.bigquery.connection.v1.AzureProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.AzureProperties) + private static final com.google.cloud.bigquery.connection.v1.AzureProperties DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.AzureProperties(); + } + + public static com.google.cloud.bigquery.connection.v1.AzureProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AzureProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AzureProperties(input, extensionRegistry); + } + }; + + 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.bigquery.connection.v1.AzureProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java new file mode 100644 index 00000000..97aeb77c --- /dev/null +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java @@ -0,0 +1,208 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/connection/v1/connection.proto + +package com.google.cloud.bigquery.connection.v1; + +public interface AzurePropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.AzureProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The name of the Azure Active Directory Application.
+   * 
+ * + * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The application. + */ + java.lang.String getApplication(); + /** + * + * + *
+   * Output only. The name of the Azure Active Directory Application.
+   * 
+ * + * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for application. + */ + com.google.protobuf.ByteString getApplicationBytes(); + + /** + * + * + *
+   * Output only. The client id of the Azure Active Directory Application.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clientId. + */ + java.lang.String getClientId(); + /** + * + * + *
+   * Output only. The client id of the Azure Active Directory Application.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); + + /** + * + * + *
+   * Output only. The object id of the Azure Active Directory Application.
+   * 
+ * + * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The objectId. + */ + java.lang.String getObjectId(); + /** + * + * + *
+   * Output only. The object id of the Azure Active Directory Application.
+   * 
+ * + * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for objectId. + */ + com.google.protobuf.ByteString getObjectIdBytes(); + + /** + * + * + *
+   * The id of customer's directory that host the data.
+   * 
+ * + * string customer_tenant_id = 4; + * + * @return The customerTenantId. + */ + java.lang.String getCustomerTenantId(); + /** + * + * + *
+   * The id of customer's directory that host the data.
+   * 
+ * + * string customer_tenant_id = 4; + * + * @return The bytes for customerTenantId. + */ + com.google.protobuf.ByteString getCustomerTenantIdBytes(); + + /** + * + * + *
+   * The URL user will be redirected to after granting consent during connection
+   * setup.
+   * 
+ * + * string redirect_uri = 5; + * + * @return The redirectUri. + */ + java.lang.String getRedirectUri(); + /** + * + * + *
+   * The URL user will be redirected to after granting consent during connection
+   * setup.
+   * 
+ * + * string redirect_uri = 5; + * + * @return The bytes for redirectUri. + */ + com.google.protobuf.ByteString getRedirectUriBytes(); + + /** + * + * + *
+   * The client id of the user's Azure Active Directory Application used for a
+   * federated connection.
+   * 
+ * + * string federated_application_client_id = 6; + * + * @return The federatedApplicationClientId. + */ + java.lang.String getFederatedApplicationClientId(); + /** + * + * + *
+   * The client id of the user's Azure Active Directory Application used for a
+   * federated connection.
+   * 
+ * + * string federated_application_client_id = 6; + * + * @return The bytes for federatedApplicationClientId. + */ + com.google.protobuf.ByteString getFederatedApplicationClientIdBytes(); + + /** + * + * + *
+   * Output only. A unique Google-owned and Google-generated identity for the Connection.
+   * This identity will be used to access the user's Azure Active Directory
+   * Application.
+   * 
+ * + * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The identity. + */ + java.lang.String getIdentity(); + /** + * + * + *
+   * Output only. A unique Google-owned and Google-generated identity for the Connection.
+   * This identity will be used to access the user's Azure Active Directory
+   * Application.
+   * 
+ * + * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for identity. + */ + com.google.protobuf.ByteString getIdentityBytes(); +} diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java index 98644480..f70b9712 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java @@ -149,6 +149,26 @@ private Connection( propertiesCase_ = 8; break; } + case 90: + { + com.google.cloud.bigquery.connection.v1.AzureProperties.Builder subBuilder = null; + if (propertiesCase_ == 11) { + subBuilder = + ((com.google.cloud.bigquery.connection.v1.AzureProperties) properties_) + .toBuilder(); + } + properties_ = + input.readMessage( + com.google.cloud.bigquery.connection.v1.AzureProperties.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_); + properties_ = subBuilder.buildPartial(); + } + propertiesCase_ = 11; + break; + } case 170: { com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder subBuilder = @@ -236,6 +256,7 @@ public enum PropertiesCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { CLOUD_SQL(4), AWS(8), + AZURE(11), CLOUD_SPANNER(21), CLOUD_RESOURCE(22), PROPERTIES_NOT_SET(0); @@ -260,6 +281,8 @@ public static PropertiesCase forNumber(int value) { return CLOUD_SQL; case 8: return AWS; + case 11: + return AZURE; case 21: return CLOUD_SPANNER; case 22: @@ -532,6 +555,57 @@ public com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBu return com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance(); } + public static final int AZURE_FIELD_NUMBER = 11; + /** + * + * + *
+   * Azure properties.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + * + * @return Whether the azure field is set. + */ + @java.lang.Override + public boolean hasAzure() { + return propertiesCase_ == 11; + } + /** + * + * + *
+   * Azure properties.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + * + * @return The azure. + */ + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.AzureProperties getAzure() { + if (propertiesCase_ == 11) { + return (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_; + } + return com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance(); + } + /** + * + * + *
+   * Azure properties.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + */ + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder getAzureOrBuilder() { + if (propertiesCase_ == 11) { + return (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_; + } + return com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance(); + } + public static final int CLOUD_SPANNER_FIELD_NUMBER = 21; /** * @@ -729,6 +803,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (propertiesCase_ == 8) { output.writeMessage(8, (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_); } + if (propertiesCase_ == 11) { + output.writeMessage( + 11, (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_); + } if (propertiesCase_ == 21) { output.writeMessage( 21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); @@ -774,6 +852,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 8, (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_); } + if (propertiesCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_); + } if (propertiesCase_ == 21) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -814,6 +897,9 @@ public boolean equals(final java.lang.Object obj) { case 8: if (!getAws().equals(other.getAws())) return false; break; + case 11: + if (!getAzure().equals(other.getAzure())) return false; + break; case 21: if (!getCloudSpanner().equals(other.getCloudSpanner())) return false; break; @@ -855,6 +941,10 @@ public int hashCode() { hash = (37 * hash) + AWS_FIELD_NUMBER; hash = (53 * hash) + getAws().hashCode(); break; + case 11: + hash = (37 * hash) + AZURE_FIELD_NUMBER; + hash = (53 * hash) + getAzure().hashCode(); + break; case 21: hash = (37 * hash) + CLOUD_SPANNER_FIELD_NUMBER; hash = (53 * hash) + getCloudSpanner().hashCode(); @@ -1070,6 +1160,13 @@ public com.google.cloud.bigquery.connection.v1.Connection buildPartial() { result.properties_ = awsBuilder_.build(); } } + if (propertiesCase_ == 11) { + if (azureBuilder_ == null) { + result.properties_ = properties_; + } else { + result.properties_ = azureBuilder_.build(); + } + } if (propertiesCase_ == 21) { if (cloudSpannerBuilder_ == null) { result.properties_ = properties_; @@ -1170,6 +1267,11 @@ public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.Connection othe mergeAws(other.getAws()); break; } + case AZURE: + { + mergeAzure(other.getAzure()); + break; + } case CLOUD_SPANNER: { mergeCloudSpanner(other.getCloudSpanner()); @@ -1977,6 +2079,218 @@ public com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBu return awsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.AzureProperties, + com.google.cloud.bigquery.connection.v1.AzureProperties.Builder, + com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder> + azureBuilder_; + /** + * + * + *
+     * Azure properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + * + * @return Whether the azure field is set. + */ + @java.lang.Override + public boolean hasAzure() { + return propertiesCase_ == 11; + } + /** + * + * + *
+     * Azure properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + * + * @return The azure. + */ + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.AzureProperties getAzure() { + if (azureBuilder_ == null) { + if (propertiesCase_ == 11) { + return (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_; + } + return com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance(); + } else { + if (propertiesCase_ == 11) { + return azureBuilder_.getMessage(); + } + return com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance(); + } + } + /** + * + * + *
+     * Azure properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + */ + public Builder setAzure(com.google.cloud.bigquery.connection.v1.AzureProperties value) { + if (azureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + onChanged(); + } else { + azureBuilder_.setMessage(value); + } + propertiesCase_ = 11; + return this; + } + /** + * + * + *
+     * Azure properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + */ + public Builder setAzure( + com.google.cloud.bigquery.connection.v1.AzureProperties.Builder builderForValue) { + if (azureBuilder_ == null) { + properties_ = builderForValue.build(); + onChanged(); + } else { + azureBuilder_.setMessage(builderForValue.build()); + } + propertiesCase_ = 11; + return this; + } + /** + * + * + *
+     * Azure properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + */ + public Builder mergeAzure(com.google.cloud.bigquery.connection.v1.AzureProperties value) { + if (azureBuilder_ == null) { + if (propertiesCase_ == 11 + && properties_ + != com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance()) { + properties_ = + com.google.cloud.bigquery.connection.v1.AzureProperties.newBuilder( + (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_) + .mergeFrom(value) + .buildPartial(); + } else { + properties_ = value; + } + onChanged(); + } else { + if (propertiesCase_ == 11) { + azureBuilder_.mergeFrom(value); + } else { + azureBuilder_.setMessage(value); + } + } + propertiesCase_ = 11; + return this; + } + /** + * + * + *
+     * Azure properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + */ + public Builder clearAzure() { + if (azureBuilder_ == null) { + if (propertiesCase_ == 11) { + propertiesCase_ = 0; + properties_ = null; + onChanged(); + } + } else { + if (propertiesCase_ == 11) { + propertiesCase_ = 0; + properties_ = null; + } + azureBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Azure properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + */ + public com.google.cloud.bigquery.connection.v1.AzureProperties.Builder getAzureBuilder() { + return getAzureFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Azure properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + */ + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder getAzureOrBuilder() { + if ((propertiesCase_ == 11) && (azureBuilder_ != null)) { + return azureBuilder_.getMessageOrBuilder(); + } else { + if (propertiesCase_ == 11) { + return (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_; + } + return com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance(); + } + } + /** + * + * + *
+     * Azure properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.AzureProperties, + com.google.cloud.bigquery.connection.v1.AzureProperties.Builder, + com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder> + getAzureFieldBuilder() { + if (azureBuilder_ == null) { + if (!(propertiesCase_ == 11)) { + properties_ = + com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance(); + } + azureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.AzureProperties, + com.google.cloud.bigquery.connection.v1.AzureProperties.Builder, + com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder>( + (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_, + getParentForChildren(), + isClean()); + properties_ = null; + } + propertiesCase_ = 11; + onChanged(); + ; + return azureBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java index 9e3e7a5b..352f95ed 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java @@ -170,6 +170,41 @@ public interface ConnectionOrBuilder */ com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBuilder(); + /** + * + * + *
+   * Azure properties.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + * + * @return Whether the azure field is set. + */ + boolean hasAzure(); + /** + * + * + *
+   * Azure properties.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + * + * @return The azure. + */ + com.google.cloud.bigquery.connection.v1.AzureProperties getAzure(); + /** + * + * + *
+   * Azure properties.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + */ + com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder getAzureOrBuilder(); + /** * * diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java index 879a3cbc..01d693f7 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java @@ -79,6 +79,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -121,93 +125,100 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e_mask\030\003 \001(\0132\032.google.protobuf.FieldMask" + "B\003\340A\002\"]\n\027DeleteConnectionRequest\022B\n\004name" + "\030\001 \001(\tB4\340A\002\372A.\n,bigqueryconnection.googl" - + "eapis.com/Connection\"\342\004\n\nConnection\022\014\n\004n" + + "eapis.com/Connection\"\251\005\n\nConnection\022\014\n\004n" + "ame\030\001 \001(\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013desc" + "ription\030\003 \001(\t\022L\n\tcloud_sql\030\004 \001(\01327.googl" + "e.cloud.bigquery.connection.v1.CloudSqlP" + "ropertiesH\000\022A\n\003aws\030\010 \001(\01322.google.cloud." - + "bigquery.connection.v1.AwsPropertiesH\000\022T" - + "\n\rcloud_spanner\030\025 \001(\0132;.google.cloud.big" - + "query.connection.v1.CloudSpannerProperti" - + "esH\000\022V\n\016cloud_resource\030\026 \001(\0132<.google.cl" - + "oud.bigquery.connection.v1.CloudResource" - + "PropertiesH\000\022\032\n\rcreation_time\030\005 \001(\003B\003\340A\003" - + "\022\037\n\022last_modified_time\030\006 \001(\003B\003\340A\003\022\033\n\016has" - + "_credential\030\007 \001(\010B\003\340A\003:s\352Ap\n,bigquerycon" - + "nection.googleapis.com/Connection\022@proje" - + "cts/{project}/locations/{location}/conne" - + "ctions/{connection}B\014\n\nproperties\"\312\002\n\022Cl" - + "oudSqlProperties\022\023\n\013instance_id\030\001 \001(\t\022\020\n" - + "\010database\030\002 \001(\t\022R\n\004type\030\003 \001(\0162D.google.c" - + "loud.bigquery.connection.v1.CloudSqlProp" - + "erties.DatabaseType\022P\n\ncredential\030\004 \001(\0132" - + "7.google.cloud.bigquery.connection.v1.Cl" - + "oudSqlCredentialB\003\340A\004\022\037\n\022service_account" - + "_id\030\005 \001(\tB\003\340A\003\"F\n\014DatabaseType\022\035\n\031DATABA" - + "SE_TYPE_UNSPECIFIED\020\000\022\014\n\010POSTGRES\020\001\022\t\n\005M" - + "YSQL\020\002\"8\n\022CloudSqlCredential\022\020\n\010username" - + "\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"C\n\026CloudSpanner" - + "Properties\022\020\n\010database\030\001 \001(\t\022\027\n\017use_para" - + "llelism\030\002 \001(\010\"\313\001\n\rAwsProperties\022V\n\022cross" - + "_account_role\030\002 \001(\01328.google.cloud.bigqu" - + "ery.connection.v1.AwsCrossAccountRoleH\000\022" - + "I\n\013access_role\030\003 \001(\01322.google.cloud.bigq" - + "uery.connection.v1.AwsAccessRoleH\000B\027\n\025au" - + "thentication_method\"^\n\023AwsCrossAccountRo" - + "le\022\023\n\013iam_role_id\030\001 \001(\t\022\030\n\013iam_user_id\030\002" - + " \001(\tB\003\340A\003\022\030\n\013external_id\030\003 \001(\tB\003\340A\003\"6\n\rA" - + "wsAccessRole\022\023\n\013iam_role_id\030\001 \001(\t\022\020\n\010ide" - + "ntity\030\002 \001(\t\":\n\027CloudResourceProperties\022\037" - + "\n\022service_account_id\030\001 \001(\tB\003\340A\0032\314\r\n\021Conn" - + "ectionService\022\350\001\n\020CreateConnection\022<.goo" - + "gle.cloud.bigquery.connection.v1.CreateC" - + "onnectionRequest\032/.google.cloud.bigquery" - + ".connection.v1.Connection\"e\202\323\344\223\002=\"//v1/{" - + "parent=projects/*/locations/*}/connectio" - + "ns:\nconnection\332A\037parent,connection,conne" - + "ction_id\022\273\001\n\rGetConnection\0229.google.clou" - + "d.bigquery.connection.v1.GetConnectionRe" - + "quest\032/.google.cloud.bigquery.connection" - + ".v1.Connection\">\202\323\344\223\0021\022//v1/{name=projec" - + "ts/*/locations/*/connections/*}\332A\004name\022\316" - + "\001\n\017ListConnections\022;.google.cloud.bigque" - + "ry.connection.v1.ListConnectionsRequest\032" - + "<.google.cloud.bigquery.connection.v1.Li" - + "stConnectionsResponse\"@\202\323\344\223\0021\022//v1/{pare" - + "nt=projects/*/locations/*}/connections\332A" - + "\006parent\022\344\001\n\020UpdateConnection\022<.google.cl" - + "oud.bigquery.connection.v1.UpdateConnect" - + "ionRequest\032/.google.cloud.bigquery.conne" - + "ction.v1.Connection\"a\202\323\344\223\002=2//v1/{name=p" - + "rojects/*/locations/*/connections/*}:\nco" - + "nnection\332A\033name,connection,update_mask\022\250" - + "\001\n\020DeleteConnection\022<.google.cloud.bigqu" - + "ery.connection.v1.DeleteConnectionReques" - + "t\032\026.google.protobuf.Empty\">\202\323\344\223\0021*//v1/{" - + "name=projects/*/locations/*/connections/" - + "*}\332A\004name\022\251\001\n\014GetIamPolicy\022\".google.iam." - + "v1.GetIamPolicyRequest\032\025.google.iam.v1.P" - + "olicy\"^\202\323\344\223\002E\"@/v1/{resource=projects/*/" - + "locations/*/connections/*}:getIamPolicy:" - + "\001*\332A\020resource,options\022\250\001\n\014SetIamPolicy\022\"" - + ".google.iam.v1.SetIamPolicyRequest\032\025.goo" - + "gle.iam.v1.Policy\"]\202\323\344\223\002E\"@/v1/{resource" - + "=projects/*/locations/*/connections/*}:s" - + "etIamPolicy:\001*\332A\017resource,policy\022\323\001\n\022Tes" - + "tIamPermissions\022(.google.iam.v1.TestIamP" - + "ermissionsRequest\032).google.iam.v1.TestIa" - + "mPermissionsResponse\"h\202\323\344\223\002K\"F/v1/{resou" + + "bigquery.connection.v1.AwsPropertiesH\000\022E" + + "\n\005azure\030\013 \001(\01324.google.cloud.bigquery.co" + + "nnection.v1.AzurePropertiesH\000\022T\n\rcloud_s" + + "panner\030\025 \001(\0132;.google.cloud.bigquery.con" + + "nection.v1.CloudSpannerPropertiesH\000\022V\n\016c" + + "loud_resource\030\026 \001(\0132<.google.cloud.bigqu" + + "ery.connection.v1.CloudResourcePropertie" + + "sH\000\022\032\n\rcreation_time\030\005 \001(\003B\003\340A\003\022\037\n\022last_" + + "modified_time\030\006 \001(\003B\003\340A\003\022\033\n\016has_credenti" + + "al\030\007 \001(\010B\003\340A\003:s\352Ap\n,bigqueryconnection.g" + + "oogleapis.com/Connection\022@projects/{proj" + + "ect}/locations/{location}/connections/{c" + + "onnection}B\014\n\nproperties\"\312\002\n\022CloudSqlPro" + + "perties\022\023\n\013instance_id\030\001 \001(\t\022\020\n\010database" + + "\030\002 \001(\t\022R\n\004type\030\003 \001(\0162D.google.cloud.bigq" + + "uery.connection.v1.CloudSqlProperties.Da" + + "tabaseType\022P\n\ncredential\030\004 \001(\01327.google." + + "cloud.bigquery.connection.v1.CloudSqlCre" + + "dentialB\003\340A\004\022\037\n\022service_account_id\030\005 \001(\t" + + "B\003\340A\003\"F\n\014DatabaseType\022\035\n\031DATABASE_TYPE_U" + + "NSPECIFIED\020\000\022\014\n\010POSTGRES\020\001\022\t\n\005MYSQL\020\002\"8\n" + + "\022CloudSqlCredential\022\020\n\010username\030\001 \001(\t\022\020\n" + + "\010password\030\002 \001(\t\"C\n\026CloudSpannerPropertie" + + "s\022\020\n\010database\030\001 \001(\t\022\027\n\017use_parallelism\030\002" + + " \001(\010\"\317\001\n\rAwsProperties\022Z\n\022cross_account_" + + "role\030\002 \001(\01328.google.cloud.bigquery.conne" + + "ction.v1.AwsCrossAccountRoleB\002\030\001H\000\022I\n\013ac" + + "cess_role\030\003 \001(\01322.google.cloud.bigquery." + + "connection.v1.AwsAccessRoleH\000B\027\n\025authent" + + "ication_method\"^\n\023AwsCrossAccountRole\022\023\n" + + "\013iam_role_id\030\001 \001(\t\022\030\n\013iam_user_id\030\002 \001(\tB" + + "\003\340A\003\022\030\n\013external_id\030\003 \001(\tB\003\340A\003\"6\n\rAwsAcc" + + "essRole\022\023\n\013iam_role_id\030\001 \001(\t\022\020\n\010identity" + + "\030\002 \001(\t\"\315\001\n\017AzureProperties\022\030\n\013applicatio" + + "n\030\001 \001(\tB\003\340A\003\022\026\n\tclient_id\030\002 \001(\tB\003\340A\003\022\026\n\t" + + "object_id\030\003 \001(\tB\003\340A\003\022\032\n\022customer_tenant_" + + "id\030\004 \001(\t\022\024\n\014redirect_uri\030\005 \001(\t\022\'\n\037federa" + + "ted_application_client_id\030\006 \001(\t\022\025\n\010ident" + + "ity\030\007 \001(\tB\003\340A\003\":\n\027CloudResourcePropertie" + + "s\022\037\n\022service_account_id\030\001 \001(\tB\003\340A\0032\314\r\n\021C" + + "onnectionService\022\350\001\n\020CreateConnection\022<." + + "google.cloud.bigquery.connection.v1.Crea" + + "teConnectionRequest\032/.google.cloud.bigqu" + + "ery.connection.v1.Connection\"e\202\323\344\223\002=\"//v" + + "1/{parent=projects/*/locations/*}/connec" + + "tions:\nconnection\332A\037parent,connection,co" + + "nnection_id\022\273\001\n\rGetConnection\0229.google.c" + + "loud.bigquery.connection.v1.GetConnectio" + + "nRequest\032/.google.cloud.bigquery.connect" + + "ion.v1.Connection\">\202\323\344\223\0021\022//v1/{name=pro" + + "jects/*/locations/*/connections/*}\332A\004nam" + + "e\022\316\001\n\017ListConnections\022;.google.cloud.big" + + "query.connection.v1.ListConnectionsReque" + + "st\032<.google.cloud.bigquery.connection.v1" + + ".ListConnectionsResponse\"@\202\323\344\223\0021\022//v1/{p" + + "arent=projects/*/locations/*}/connection" + + "s\332A\006parent\022\344\001\n\020UpdateConnection\022<.google" + + ".cloud.bigquery.connection.v1.UpdateConn" + + "ectionRequest\032/.google.cloud.bigquery.co" + + "nnection.v1.Connection\"a\202\323\344\223\002=2//v1/{nam" + + "e=projects/*/locations/*/connections/*}:" + + "\nconnection\332A\033name,connection,update_mas" + + "k\022\250\001\n\020DeleteConnection\022<.google.cloud.bi" + + "gquery.connection.v1.DeleteConnectionReq" + + "uest\032\026.google.protobuf.Empty\">\202\323\344\223\0021*//v" + + "1/{name=projects/*/locations/*/connectio" + + "ns/*}\332A\004name\022\251\001\n\014GetIamPolicy\022\".google.i" + + "am.v1.GetIamPolicyRequest\032\025.google.iam.v" + + "1.Policy\"^\202\323\344\223\002E\"@/v1/{resource=projects" + + "/*/locations/*/connections/*}:getIamPoli" + + "cy:\001*\332A\020resource,options\022\250\001\n\014SetIamPolic" + + "y\022\".google.iam.v1.SetIamPolicyRequest\032\025." + + "google.iam.v1.Policy\"]\202\323\344\223\002E\"@/v1/{resou" + "rce=projects/*/locations/*/connections/*" - + "}:testIamPermissions:\001*\332A\024resource,permi" - + "ssions\032~\312A!bigqueryconnection.googleapis" - + ".com\322AWhttps://www.googleapis.com/auth/b" - + "igquery,https://www.googleapis.com/auth/" - + "cloud-platformB\306\001\n\'com.google.cloud.bigq" - + "uery.connection.v1P\001ZMgoogle.golang.org/" - + "genproto/googleapis/cloud/bigquery/conne" - + "ction/v1;connection\252\002#Google.Cloud.BigQu" - + "ery.Connection.V1\312\002#Google\\Cloud\\BigQuer" - + "y\\Connection\\V1b\006proto3" + + "}:setIamPolicy:\001*\332A\017resource,policy\022\323\001\n\022" + + "TestIamPermissions\022(.google.iam.v1.TestI" + + "amPermissionsRequest\032).google.iam.v1.Tes" + + "tIamPermissionsResponse\"h\202\323\344\223\002K\"F/v1/{re" + + "source=projects/*/locations/*/connection" + + "s/*}:testIamPermissions:\001*\332A\024resource,pe" + + "rmissions\032~\312A!bigqueryconnection.googlea" + + "pis.com\322AWhttps://www.googleapis.com/aut" + + "h/bigquery,https://www.googleapis.com/au" + + "th/cloud-platformB\306\001\n\'com.google.cloud.b" + + "igquery.connection.v1P\001ZMgoogle.golang.o" + + "rg/genproto/googleapis/cloud/bigquery/co" + + "nnection/v1;connection\252\002#Google.Cloud.Bi" + + "gQuery.Connection.V1\312\002#Google\\Cloud\\BigQ" + + "uery\\Connection\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -281,6 +292,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Description", "CloudSql", "Aws", + "Azure", "CloudSpanner", "CloudResource", "CreationTime", @@ -336,8 +348,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "IamRoleId", "Identity", }); - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor = + internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor, + new java.lang.String[] { + "Application", + "ClientId", + "ObjectId", + "CustomerTenantId", + "RedirectUri", + "FederatedApplicationClientId", + "Identity", + }); + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor = + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor, diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto b/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto index cf4b5e29..ee0dba14 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto @@ -233,6 +233,9 @@ message Connection { // Amazon Web Services (AWS) properties. AwsProperties aws = 8; + // Azure properties. + AzureProperties azure = 11; + // Cloud Spanner properties. CloudSpannerProperties cloud_spanner = 21; @@ -308,7 +311,8 @@ message AwsProperties { oneof authentication_method { // Authentication using Google owned AWS IAM user's access key to assume // into customer's AWS IAM Role. - AwsCrossAccountRole cross_account_role = 2; + // Deprecated, do not use. + AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; // Authentication using Google owned service account to assume into // customer's AWS IAM Role. @@ -344,6 +348,34 @@ message AwsAccessRole { string identity = 2; } +// Container for connection properties specific to Azure. +message AzureProperties { + // Output only. The name of the Azure Active Directory Application. + string application = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The client id of the Azure Active Directory Application. + string client_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The object id of the Azure Active Directory Application. + string object_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The id of customer's directory that host the data. + string customer_tenant_id = 4; + + // The URL user will be redirected to after granting consent during connection + // setup. + string redirect_uri = 5; + + // The client id of the user's Azure Active Directory Application used for a + // federated connection. + string federated_application_client_id = 6; + + // Output only. A unique Google-owned and Google-generated identity for the Connection. + // This identity will be used to access the user's Azure Active Directory + // Application. + string identity = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Container for connection properties for delegation of access to GCP // resources. message CloudResourceProperties { From 8a8c8ce8495c9f0a416c127759cc04fd2f46fdf1 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 9 Aug 2022 04:56:16 +0000 Subject: [PATCH 10/11] chore(main): release 2.4.2-SNAPSHOT (#718) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-bigqueryconnection-bom/pom.xml | 12 ++++++------ google-cloud-bigqueryconnection/pom.xml | 4 ++-- grpc-google-cloud-bigqueryconnection-v1/pom.xml | 4 ++-- grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-bigqueryconnection-v1/pom.xml | 4 ++-- .../pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-bigqueryconnection-bom/pom.xml b/google-cloud-bigqueryconnection-bom/pom.xml index 78abacc8..476dc26d 100644 --- a/google-cloud-bigqueryconnection-bom/pom.xml +++ b/google-cloud-bigqueryconnection-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection-bom - 2.4.1 + 2.4.2-SNAPSHOT pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.4.1 + 2.4.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.4.1 + 2.4.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.12.1 + 0.12.2-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.4.1 + 2.4.2-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.12.1 + 0.12.2-SNAPSHOT
diff --git a/google-cloud-bigqueryconnection/pom.xml b/google-cloud-bigqueryconnection/pom.xml index 3d62b686..2efe5700 100644 --- a/google-cloud-bigqueryconnection/pom.xml +++ b/google-cloud-bigqueryconnection/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection - 2.4.1 + 2.4.2-SNAPSHOT jar Google Cloud BigQuery Connections https://github.com/googleapis/java-bigqueryconnection @@ -11,7 +11,7 @@ com.google.cloud google-cloud-bigqueryconnection-parent - 2.4.1 + 2.4.2-SNAPSHOT google-cloud-bigqueryconnection diff --git a/grpc-google-cloud-bigqueryconnection-v1/pom.xml b/grpc-google-cloud-bigqueryconnection-v1/pom.xml index 6ee86fb8..da6e2045 100644 --- a/grpc-google-cloud-bigqueryconnection-v1/pom.xml +++ b/grpc-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.4.1 + 2.4.2-SNAPSHOT grpc-google-cloud-bigqueryconnection-v1 GRPC library for grpc-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.4.1 + 2.4.2-SNAPSHOT diff --git a/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml b/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml index d818172a..a4cec384 100644 --- a/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.12.1 + 0.12.2-SNAPSHOT grpc-google-cloud-bigqueryconnection-v1beta1 GRPC library for grpc-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.4.1 + 2.4.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 16f44e15..d13ded0b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigqueryconnection-parent pom - 2.4.1 + 2.4.2-SNAPSHOT Google Cloud BigQuery Connections Parent https://github.com/googleapis/java-bigqueryconnection @@ -62,27 +62,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.4.1 + 2.4.2-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.4.1 + 2.4.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.4.1 + 2.4.2-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.12.1 + 0.12.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.12.1 + 0.12.2-SNAPSHOT diff --git a/proto-google-cloud-bigqueryconnection-v1/pom.xml b/proto-google-cloud-bigqueryconnection-v1/pom.xml index 2887d9d6..796591cf 100644 --- a/proto-google-cloud-bigqueryconnection-v1/pom.xml +++ b/proto-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.4.1 + 2.4.2-SNAPSHOT proto-google-cloud-bigqueryconnection-v1 PROTO library for proto-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.4.1 + 2.4.2-SNAPSHOT diff --git a/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml b/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml index e654a766..460272c7 100644 --- a/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.12.1 + 0.12.2-SNAPSHOT proto-google-cloud-bigqueryconnection-v1beta1 PROTO library for proto-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.4.1 + 2.4.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 32d62f34..5a91ea25 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-bigqueryconnection - 2.4.1 + 2.4.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 3e63beb0..03e01941 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-bigqueryconnection:2.4.1:2.4.1 -grpc-google-cloud-bigqueryconnection-v1:2.4.1:2.4.1 -grpc-google-cloud-bigqueryconnection-v1beta1:0.12.1:0.12.1 -proto-google-cloud-bigqueryconnection-v1:2.4.1:2.4.1 -proto-google-cloud-bigqueryconnection-v1beta1:0.12.1:0.12.1 +google-cloud-bigqueryconnection:2.4.1:2.4.2-SNAPSHOT +grpc-google-cloud-bigqueryconnection-v1:2.4.1:2.4.2-SNAPSHOT +grpc-google-cloud-bigqueryconnection-v1beta1:0.12.1:0.12.2-SNAPSHOT +proto-google-cloud-bigqueryconnection-v1:2.4.1:2.4.2-SNAPSHOT +proto-google-cloud-bigqueryconnection-v1beta1:0.12.1:0.12.2-SNAPSHOT From 44cb559a9b92279060becc01215f74947ca119c4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 9 Aug 2022 16:34:30 +0000 Subject: [PATCH 11/11] chore(main): release 2.5.0 (#730) :robot: I have created a release *beep* *boop* --- ## [2.5.0](https://github.com/googleapis/java-bigqueryconnection/compare/v2.4.1...v2.5.0) (2022-08-09) ### Features * Add service_account_id output field to CloudSQL properties ([#724](https://github.com/googleapis/java-bigqueryconnection/issues/724)) ([3f82655](https://github.com/googleapis/java-bigqueryconnection/commit/3f8265525cce8bc14b359902760d7375239ce616)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#725](https://github.com/googleapis/java-bigqueryconnection/issues/725)) ([7a1a834](https://github.com/googleapis/java-bigqueryconnection/commit/7a1a8345035a615028ce68c17c2e67cb14041817)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1 ([#728](https://github.com/googleapis/java-bigqueryconnection/issues/728)) ([252e904](https://github.com/googleapis/java-bigqueryconnection/commit/252e9042b95f5075d7f006e6e18bb9bfebe918e5)) * update dependency com.google.protobuf:protobuf-java-util to v3.21.3 ([#722](https://github.com/googleapis/java-bigqueryconnection/issues/722)) ([780f6d4](https://github.com/googleapis/java-bigqueryconnection/commit/780f6d43c9caedd8cfdb173ef2ea68fb371feca1)) * update dependency com.google.protobuf:protobuf-java-util to v3.21.4 ([#723](https://github.com/googleapis/java-bigqueryconnection/issues/723)) ([6bf4073](https://github.com/googleapis/java-bigqueryconnection/commit/6bf407399a0eb6f9d56d62ec76caf130e683e3e3)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 15 +++++++++++++++ google-cloud-bigqueryconnection-bom/pom.xml | 12 ++++++------ google-cloud-bigqueryconnection/pom.xml | 4 ++-- grpc-google-cloud-bigqueryconnection-v1/pom.xml | 4 ++-- .../pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-bigqueryconnection-v1/pom.xml | 4 ++-- .../pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 43 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 93f3ad82..ab23e038 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [2.5.0](https://github.com/googleapis/java-bigqueryconnection/compare/v2.4.1...v2.5.0) (2022-08-09) + + +### Features + +* Add service_account_id output field to CloudSQL properties ([#724](https://github.com/googleapis/java-bigqueryconnection/issues/724)) ([3f82655](https://github.com/googleapis/java-bigqueryconnection/commit/3f8265525cce8bc14b359902760d7375239ce616)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#725](https://github.com/googleapis/java-bigqueryconnection/issues/725)) ([7a1a834](https://github.com/googleapis/java-bigqueryconnection/commit/7a1a8345035a615028ce68c17c2e67cb14041817)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1 ([#728](https://github.com/googleapis/java-bigqueryconnection/issues/728)) ([252e904](https://github.com/googleapis/java-bigqueryconnection/commit/252e9042b95f5075d7f006e6e18bb9bfebe918e5)) +* update dependency com.google.protobuf:protobuf-java-util to v3.21.3 ([#722](https://github.com/googleapis/java-bigqueryconnection/issues/722)) ([780f6d4](https://github.com/googleapis/java-bigqueryconnection/commit/780f6d43c9caedd8cfdb173ef2ea68fb371feca1)) +* update dependency com.google.protobuf:protobuf-java-util to v3.21.4 ([#723](https://github.com/googleapis/java-bigqueryconnection/issues/723)) ([6bf4073](https://github.com/googleapis/java-bigqueryconnection/commit/6bf407399a0eb6f9d56d62ec76caf130e683e3e3)) + ## [2.4.1](https://github.com/googleapis/java-bigqueryconnection/compare/v2.4.0...v2.4.1) (2022-07-13) diff --git a/google-cloud-bigqueryconnection-bom/pom.xml b/google-cloud-bigqueryconnection-bom/pom.xml index 476dc26d..463e563d 100644 --- a/google-cloud-bigqueryconnection-bom/pom.xml +++ b/google-cloud-bigqueryconnection-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection-bom - 2.4.2-SNAPSHOT + 2.5.0 pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.4.2-SNAPSHOT + 2.5.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.4.2-SNAPSHOT + 2.5.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.12.2-SNAPSHOT + 0.13.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.4.2-SNAPSHOT + 2.5.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.12.2-SNAPSHOT + 0.13.0
diff --git a/google-cloud-bigqueryconnection/pom.xml b/google-cloud-bigqueryconnection/pom.xml index 2efe5700..495344b8 100644 --- a/google-cloud-bigqueryconnection/pom.xml +++ b/google-cloud-bigqueryconnection/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection - 2.4.2-SNAPSHOT + 2.5.0 jar Google Cloud BigQuery Connections https://github.com/googleapis/java-bigqueryconnection @@ -11,7 +11,7 @@ com.google.cloud google-cloud-bigqueryconnection-parent - 2.4.2-SNAPSHOT + 2.5.0 google-cloud-bigqueryconnection diff --git a/grpc-google-cloud-bigqueryconnection-v1/pom.xml b/grpc-google-cloud-bigqueryconnection-v1/pom.xml index da6e2045..8dca667d 100644 --- a/grpc-google-cloud-bigqueryconnection-v1/pom.xml +++ b/grpc-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.4.2-SNAPSHOT + 2.5.0 grpc-google-cloud-bigqueryconnection-v1 GRPC library for grpc-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.4.2-SNAPSHOT + 2.5.0 diff --git a/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml b/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml index a4cec384..b5a4ffda 100644 --- a/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.12.2-SNAPSHOT + 0.13.0 grpc-google-cloud-bigqueryconnection-v1beta1 GRPC library for grpc-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.4.2-SNAPSHOT + 2.5.0 diff --git a/pom.xml b/pom.xml index d13ded0b..d80ff942 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigqueryconnection-parent pom - 2.4.2-SNAPSHOT + 2.5.0 Google Cloud BigQuery Connections Parent https://github.com/googleapis/java-bigqueryconnection @@ -62,27 +62,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.4.2-SNAPSHOT + 2.5.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.4.2-SNAPSHOT + 2.5.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.4.2-SNAPSHOT + 2.5.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.12.2-SNAPSHOT + 0.13.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.12.2-SNAPSHOT + 0.13.0 diff --git a/proto-google-cloud-bigqueryconnection-v1/pom.xml b/proto-google-cloud-bigqueryconnection-v1/pom.xml index 796591cf..f82db9dd 100644 --- a/proto-google-cloud-bigqueryconnection-v1/pom.xml +++ b/proto-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.4.2-SNAPSHOT + 2.5.0 proto-google-cloud-bigqueryconnection-v1 PROTO library for proto-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.4.2-SNAPSHOT + 2.5.0 diff --git a/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml b/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml index 460272c7..c260c6ce 100644 --- a/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.12.2-SNAPSHOT + 0.13.0 proto-google-cloud-bigqueryconnection-v1beta1 PROTO library for proto-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.4.2-SNAPSHOT + 2.5.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5a91ea25..11bbf460 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-bigqueryconnection - 2.4.2-SNAPSHOT + 2.5.0 diff --git a/versions.txt b/versions.txt index 03e01941..ff641204 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-bigqueryconnection:2.4.1:2.4.2-SNAPSHOT -grpc-google-cloud-bigqueryconnection-v1:2.4.1:2.4.2-SNAPSHOT -grpc-google-cloud-bigqueryconnection-v1beta1:0.12.1:0.12.2-SNAPSHOT -proto-google-cloud-bigqueryconnection-v1:2.4.1:2.4.2-SNAPSHOT -proto-google-cloud-bigqueryconnection-v1beta1:0.12.1:0.12.2-SNAPSHOT +google-cloud-bigqueryconnection:2.5.0:2.5.0 +grpc-google-cloud-bigqueryconnection-v1:2.5.0:2.5.0 +grpc-google-cloud-bigqueryconnection-v1beta1:0.13.0:0.13.0 +proto-google-cloud-bigqueryconnection-v1:2.5.0:2.5.0 +proto-google-cloud-bigqueryconnection-v1beta1:0.13.0:0.13.0