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 8af3d1f6..463e563d 100644 --- a/google-cloud-bigqueryconnection-bom/pom.xml +++ b/google-cloud-bigqueryconnection-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection-bom - 2.4.1 + 2.5.0 pom com.google.cloud google-cloud-shared-config - 1.5.1 + 1.5.3 Google Cloud BigQuery Connections BOM @@ -52,27 +52,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.4.1 + 2.5.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.4.1 + 2.5.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.12.1 + 0.13.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.4.1 + 2.5.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.12.1 + 0.13.0 diff --git a/google-cloud-bigqueryconnection/pom.xml b/google-cloud-bigqueryconnection/pom.xml index 3d62b686..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.1 + 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.1 + 2.5.0 google-cloud-bigqueryconnection 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-v1/pom.xml b/grpc-google-cloud-bigqueryconnection-v1/pom.xml index 6ee86fb8..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.1 + 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.1 + 2.5.0 diff --git a/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml b/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml index d818172a..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.1 + 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.1 + 2.5.0 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/pom.xml b/pom.xml
index cd49ea63..d80ff942 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
   com.google.cloud
   google-cloud-bigqueryconnection-parent
   pom
-  2.4.1
+  2.5.0
   Google Cloud BigQuery Connections Parent
   https://github.com/googleapis/java-bigqueryconnection
   
@@ -14,7 +14,7 @@
   
     com.google.cloud
     google-cloud-shared-config
-    1.5.1
+    1.5.3
   
 
   
@@ -54,7 +54,7 @@
     UTF-8
     github
     google-cloud-bigqueryconnection-parent
-    2.13.0
+    3.0.1
   
 
   
@@ -62,27 +62,27 @@
       
         com.google.cloud
         google-cloud-bigqueryconnection
-        2.4.1
+        2.5.0
       
       
         com.google.api.grpc
         proto-google-cloud-bigqueryconnection-v1
-        2.4.1
+        2.5.0
       
       
         com.google.api.grpc
         grpc-google-cloud-bigqueryconnection-v1
-        2.4.1
+        2.5.0
       
       
         com.google.api.grpc
         proto-google-cloud-bigqueryconnection-v1beta1
-        0.12.1
+        0.13.0
       
       
         com.google.api.grpc
         grpc-google-cloud-bigqueryconnection-v1beta1
-        0.12.1
+        0.13.0
       
 
       
@@ -143,7 +143,7 @@
       
         org.apache.maven.plugins
         maven-project-info-reports-plugin
-        3.3.0
+        3.4.0
         
           
             
diff --git a/proto-google-cloud-bigqueryconnection-v1/pom.xml b/proto-google-cloud-bigqueryconnection-v1/pom.xml
index 2887d9d6..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.1
+  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.1
+    2.5.0
   
   
     
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/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/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 36b9795a..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,92 +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\"\251\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" + + "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\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" + + "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/*" + + "}: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( @@ -280,6 +292,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Description", "CloudSql", "Aws", + "Azure", "CloudSpanner", "CloudResource", "CreationTime", @@ -293,7 +306,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); @@ -335,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 1c316e3a..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; @@ -275,6 +278,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. @@ -301,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. @@ -337,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 { diff --git a/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml b/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml index e654a766..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.1 + 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.1 + 2.5.0 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. diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b1f51f33..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.2 + 3.21.4 junit 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 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 931c26af..11bbf460 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,14 +28,14 @@ com.google.cloud google-cloud-bigqueryconnection - 2.4.1 + 2.5.0 com.google.protobuf protobuf-java-util - 3.21.2 + 3.21.4 junit diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index de1b8d33..1dd64fba 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.4 junit diff --git a/versions.txt b/versions.txt index 3e63beb0..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.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.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