{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build();
@@ -83,6 +85,8 @@
* To customize credentials:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* ConnectionServiceSettings connectionServiceSettings =
* ConnectionServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -94,6 +98,8 @@
* To customize the endpoint:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* ConnectionServiceSettings connectionServiceSettings =
* ConnectionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
* ConnectionServiceClient connectionServiceClient =
@@ -163,6 +169,8 @@ public ConnectionServiceStub getStub() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build();
@@ -196,6 +204,8 @@ public final ConnectionProto.Connection createConnection(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build();
@@ -229,6 +239,8 @@ public final ConnectionProto.Connection createConnection(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionProto.CreateConnectionRequest request =
* ConnectionProto.CreateConnectionRequest.newBuilder()
@@ -255,6 +267,8 @@ public final ConnectionProto.Connection createConnection(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionProto.CreateConnectionRequest request =
* ConnectionProto.CreateConnectionRequest.newBuilder()
@@ -281,6 +295,8 @@ public final ConnectionProto.Connection createConnection(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]");
* ConnectionProto.Connection response = connectionServiceClient.getConnection(name);
@@ -306,6 +322,8 @@ public final ConnectionProto.Connection getConnection(ConnectionName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString();
* ConnectionProto.Connection response = connectionServiceClient.getConnection(name);
@@ -329,6 +347,8 @@ public final ConnectionProto.Connection getConnection(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionProto.GetConnectionRequest request =
* ConnectionProto.GetConnectionRequest.newBuilder()
@@ -353,6 +373,8 @@ public final ConnectionProto.Connection getConnection(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionProto.GetConnectionRequest request =
* ConnectionProto.GetConnectionRequest.newBuilder()
@@ -377,6 +399,8 @@ public final ConnectionProto.Connection getConnection(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* UInt32Value maxResults = UInt32Value.newBuilder().build();
@@ -407,6 +431,8 @@ public final ConnectionProto.ListConnectionsResponse listConnections(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* UInt32Value maxResults = UInt32Value.newBuilder().build();
@@ -437,6 +463,8 @@ public final ConnectionProto.ListConnectionsResponse listConnections(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionProto.ListConnectionsRequest request =
* ConnectionProto.ListConnectionsRequest.newBuilder()
@@ -464,6 +492,8 @@ public final ConnectionProto.ListConnectionsResponse listConnections(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionProto.ListConnectionsRequest request =
* ConnectionProto.ListConnectionsRequest.newBuilder()
@@ -492,6 +522,8 @@ public final ConnectionProto.ListConnectionsResponse listConnections(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]");
* ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build();
@@ -526,6 +558,8 @@ public final ConnectionProto.Connection updateConnection(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString();
* ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build();
@@ -560,6 +594,8 @@ public final ConnectionProto.Connection updateConnection(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionProto.UpdateConnectionRequest request =
* ConnectionProto.UpdateConnectionRequest.newBuilder()
@@ -587,6 +623,8 @@ public final ConnectionProto.Connection updateConnection(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionProto.UpdateConnectionRequest request =
* ConnectionProto.UpdateConnectionRequest.newBuilder()
@@ -613,6 +651,8 @@ public final ConnectionProto.Connection updateConnection(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String name = "name3373707";
* ConnectionProto.ConnectionCredential credential =
@@ -643,6 +683,8 @@ public final void updateConnectionCredential(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionProto.UpdateConnectionCredentialRequest request =
* ConnectionProto.UpdateConnectionCredentialRequest.newBuilder()
@@ -668,6 +710,8 @@ public final void updateConnectionCredential(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionProto.UpdateConnectionCredentialRequest request =
* ConnectionProto.UpdateConnectionCredentialRequest.newBuilder()
@@ -693,6 +737,8 @@ public final void updateConnectionCredential(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]");
* connectionServiceClient.deleteConnection(name);
@@ -718,6 +764,8 @@ public final void deleteConnection(ConnectionName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString();
* connectionServiceClient.deleteConnection(name);
@@ -741,6 +789,8 @@ public final void deleteConnection(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionProto.DeleteConnectionRequest request =
* ConnectionProto.DeleteConnectionRequest.newBuilder()
@@ -764,6 +814,8 @@ public final void deleteConnection(ConnectionProto.DeleteConnectionRequest reque
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionProto.DeleteConnectionRequest request =
* ConnectionProto.DeleteConnectionRequest.newBuilder()
@@ -789,6 +841,8 @@ public final void deleteConnection(ConnectionProto.DeleteConnectionRequest reque
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]");
* GetPolicyOptions options = GetPolicyOptions.newBuilder().build();
@@ -799,7 +853,6 @@ public final void deleteConnection(ConnectionProto.DeleteConnectionRequest reque
* @param resource REQUIRED: The resource for which the policy is being requested. See the
* operation documentation for the appropriate value for this field.
* @param options OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
- * This field is only used by Cloud IAM.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Policy getIamPolicy(ResourceName resource, GetPolicyOptions options) {
@@ -819,6 +872,8 @@ public final Policy getIamPolicy(ResourceName resource, GetPolicyOptions options
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString();
* GetPolicyOptions options = GetPolicyOptions.newBuilder().build();
@@ -829,7 +884,6 @@ public final Policy getIamPolicy(ResourceName resource, GetPolicyOptions options
* @param resource REQUIRED: The resource for which the policy is being requested. See the
* operation documentation for the appropriate value for this field.
* @param options OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
- * This field is only used by Cloud IAM.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Policy getIamPolicy(String resource, GetPolicyOptions options) {
@@ -846,6 +900,8 @@ public final Policy getIamPolicy(String resource, GetPolicyOptions options) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
@@ -871,6 +927,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
@@ -896,6 +954,8 @@ public final UnaryCallable getIamPolicyCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]");
* Policy policy = Policy.newBuilder().build();
@@ -928,6 +988,8 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString();
* Policy policy = Policy.newBuilder().build();
@@ -957,11 +1019,14 @@ public final Policy setIamPolicy(String resource, Policy policy) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString())
* .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* Policy response = connectionServiceClient.setIamPolicy(request);
* }
@@ -983,11 +1048,14 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString())
* .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* ApiFuture future = connectionServiceClient.setIamPolicyCallable().futureCall(request);
* // Do something.
@@ -1011,6 +1079,8 @@ public final UnaryCallable setIamPolicyCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]");
* List permissions = new ArrayList<>();
@@ -1048,6 +1118,8 @@ public final TestIamPermissionsResponse testIamPermissions(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString();
* List permissions = new ArrayList<>();
@@ -1085,6 +1157,8 @@ public final TestIamPermissionsResponse testIamPermissions(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
@@ -1114,6 +1188,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java
index cd540989..eafee464 100644
--- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java
+++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
@@ -56,6 +56,8 @@
* For example, to set the total timeout of createConnection to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* ConnectionServiceSettings.Builder connectionServiceSettingsBuilder =
* ConnectionServiceSettings.newBuilder();
* connectionServiceSettingsBuilder
diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java
index a39e2482..9e1d06b0 100644
--- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java
+++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
@@ -24,6 +24,8 @@
* Sample for ConnectionServiceClient:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build();
diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java
index 2a61088e..2d3ab0dc 100644
--- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java
+++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java
index 4fd71d37..65b9e136 100644
--- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java
+++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
@@ -66,6 +66,8 @@
* For example, to set the total timeout of createConnection to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* ConnectionServiceStubSettings.Builder connectionServiceSettingsBuilder =
* ConnectionServiceStubSettings.newBuilder();
* connectionServiceSettingsBuilder
diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java
index 9aa38429..95a45218 100644
--- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java
+++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java
index e6f2bb19..012a6e07 100644
--- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java
+++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java
index 550daccf..b8afa7b6 100644
--- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java
+++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
@@ -59,6 +59,8 @@
* calls that map to API methods. Sample code to get started:
*
* {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Connection connection = Connection.newBuilder().build();
@@ -98,6 +100,8 @@
* To customize credentials:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* ConnectionServiceSettings connectionServiceSettings =
* ConnectionServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -109,6 +113,8 @@
* To customize the endpoint:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* ConnectionServiceSettings connectionServiceSettings =
* ConnectionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
* ConnectionServiceClient connectionServiceClient =
@@ -177,6 +183,8 @@ public ConnectionServiceStub getStub() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Connection connection = Connection.newBuilder().build();
@@ -210,6 +218,8 @@ public final Connection createConnection(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Connection connection = Connection.newBuilder().build();
@@ -243,6 +253,8 @@ public final Connection createConnection(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* CreateConnectionRequest request =
* CreateConnectionRequest.newBuilder()
@@ -268,6 +280,8 @@ public final Connection createConnection(CreateConnectionRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* CreateConnectionRequest request =
* CreateConnectionRequest.newBuilder()
@@ -293,6 +307,8 @@ public final UnaryCallable createConnection
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]");
* Connection response = connectionServiceClient.getConnection(name);
@@ -316,6 +332,8 @@ public final Connection getConnection(ConnectionName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString();
* Connection response = connectionServiceClient.getConnection(name);
@@ -338,6 +356,8 @@ public final Connection getConnection(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* GetConnectionRequest request =
* GetConnectionRequest.newBuilder()
@@ -361,6 +381,8 @@ public final Connection getConnection(GetConnectionRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* GetConnectionRequest request =
* GetConnectionRequest.newBuilder()
@@ -384,6 +406,8 @@ public final UnaryCallable getConnectionCallab
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* for (Connection element : connectionServiceClient.listConnections(parent).iterateAll()) {
@@ -411,6 +435,8 @@ public final ListConnectionsPagedResponse listConnections(LocationName parent) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* for (Connection element : connectionServiceClient.listConnections(parent).iterateAll()) {
@@ -435,6 +461,8 @@ public final ListConnectionsPagedResponse listConnections(String parent) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ListConnectionsRequest request =
* ListConnectionsRequest.newBuilder()
@@ -462,6 +490,8 @@ public final ListConnectionsPagedResponse listConnections(ListConnectionsRequest
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ListConnectionsRequest request =
* ListConnectionsRequest.newBuilder()
@@ -490,6 +520,8 @@ public final ListConnectionsPagedResponse listConnections(ListConnectionsRequest
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ListConnectionsRequest request =
* ListConnectionsRequest.newBuilder()
@@ -526,6 +558,8 @@ public final ListConnectionsPagedResponse listConnections(ListConnectionsRequest
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]");
* Connection connection = Connection.newBuilder().build();
@@ -559,6 +593,8 @@ public final Connection updateConnection(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString();
* Connection connection = Connection.newBuilder().build();
@@ -592,6 +628,8 @@ public final Connection updateConnection(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* UpdateConnectionRequest request =
* UpdateConnectionRequest.newBuilder()
@@ -618,6 +656,8 @@ public final Connection updateConnection(UpdateConnectionRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* UpdateConnectionRequest request =
* UpdateConnectionRequest.newBuilder()
@@ -643,6 +683,8 @@ public final UnaryCallable updateConnection
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]");
* connectionServiceClient.deleteConnection(name);
@@ -666,6 +708,8 @@ public final void deleteConnection(ConnectionName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString();
* connectionServiceClient.deleteConnection(name);
@@ -688,6 +732,8 @@ public final void deleteConnection(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* DeleteConnectionRequest request =
* DeleteConnectionRequest.newBuilder()
@@ -711,6 +757,8 @@ public final void deleteConnection(DeleteConnectionRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* DeleteConnectionRequest request =
* DeleteConnectionRequest.newBuilder()
@@ -735,6 +783,8 @@ public final UnaryCallable deleteConnectionCalla
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]");
* GetPolicyOptions options = GetPolicyOptions.newBuilder().build();
@@ -745,7 +795,6 @@ public final UnaryCallable deleteConnectionCalla
* @param resource REQUIRED: The resource for which the policy is being requested. See the
* operation documentation for the appropriate value for this field.
* @param options OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
- * This field is only used by Cloud IAM.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Policy getIamPolicy(ResourceName resource, GetPolicyOptions options) {
@@ -765,6 +814,8 @@ public final Policy getIamPolicy(ResourceName resource, GetPolicyOptions options
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString();
* GetPolicyOptions options = GetPolicyOptions.newBuilder().build();
@@ -775,7 +826,6 @@ public final Policy getIamPolicy(ResourceName resource, GetPolicyOptions options
* @param resource REQUIRED: The resource for which the policy is being requested. See the
* operation documentation for the appropriate value for this field.
* @param options OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
- * This field is only used by Cloud IAM.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Policy getIamPolicy(String resource, GetPolicyOptions options) {
@@ -792,6 +842,8 @@ public final Policy getIamPolicy(String resource, GetPolicyOptions options) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
@@ -817,6 +869,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
@@ -842,6 +896,8 @@ public final UnaryCallable getIamPolicyCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]");
* Policy policy = Policy.newBuilder().build();
@@ -874,6 +930,8 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString();
* Policy policy = Policy.newBuilder().build();
@@ -903,11 +961,14 @@ public final Policy setIamPolicy(String resource, Policy policy) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString())
* .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* Policy response = connectionServiceClient.setIamPolicy(request);
* }
@@ -929,11 +990,14 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString())
* .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
* .build();
* ApiFuture future = connectionServiceClient.setIamPolicyCallable().futureCall(request);
* // Do something.
@@ -957,6 +1021,8 @@ public final UnaryCallable setIamPolicyCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]");
* List permissions = new ArrayList<>();
@@ -994,6 +1060,8 @@ public final TestIamPermissionsResponse testIamPermissions(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* String resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString();
* List permissions = new ArrayList<>();
@@ -1031,6 +1099,8 @@ public final TestIamPermissionsResponse testIamPermissions(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
@@ -1060,6 +1130,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java
index b076afb0..580c8d6c 100644
--- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java
+++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
@@ -66,6 +66,8 @@
* For example, to set the total timeout of createConnection to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* ConnectionServiceSettings.Builder connectionServiceSettingsBuilder =
* ConnectionServiceSettings.newBuilder();
* connectionServiceSettingsBuilder
diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java
index 3832a250..7ef05480 100644
--- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java
+++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
@@ -24,6 +24,8 @@
* Sample for ConnectionServiceClient:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Connection connection = Connection.newBuilder().build();
diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java
index c3d08ed7..5d028ee9 100644
--- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java
+++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java
index 3ce6f508..a3b24bcb 100644
--- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java
+++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
@@ -81,6 +81,8 @@
* For example, to set the total timeout of createConnection to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* ConnectionServiceStubSettings.Builder connectionServiceSettingsBuilder =
* ConnectionServiceStubSettings.newBuilder();
* connectionServiceSettingsBuilder
diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java
index 8b2d38d7..c476ac00 100644
--- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java
+++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java
index 7f4d4c4e..31b7ac5d 100644
--- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java
+++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
diff --git a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java
index b8dab66f..b43542fb 100644
--- a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java
+++ b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
@@ -24,6 +24,7 @@
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.InvalidArgumentException;
import com.google.api.resourcenames.ResourceName;
+import com.google.iam.v1.AuditConfig;
import com.google.iam.v1.Binding;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.GetPolicyOptions;
@@ -584,6 +585,7 @@ public void getIamPolicyTest() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList())
+ .addAllAuditConfigs(new ArrayList())
.setEtag(ByteString.EMPTY)
.build();
mockConnectionService.addResponse(expectedResponse);
@@ -627,6 +629,7 @@ public void getIamPolicyTest2() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList())
+ .addAllAuditConfigs(new ArrayList())
.setEtag(ByteString.EMPTY)
.build();
mockConnectionService.addResponse(expectedResponse);
@@ -670,6 +673,7 @@ public void setIamPolicyTest() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList())
+ .addAllAuditConfigs(new ArrayList())
.setEtag(ByteString.EMPTY)
.build();
mockConnectionService.addResponse(expectedResponse);
@@ -713,6 +717,7 @@ public void setIamPolicyTest2() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList())
+ .addAllAuditConfigs(new ArrayList())
.setEtag(ByteString.EMPTY)
.build();
mockConnectionService.addResponse(expectedResponse);
diff --git a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java
index 4c313edd..3e423789 100644
--- a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java
+++ b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
diff --git a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java
index 9598b809..dccea556 100644
--- a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java
+++ b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
diff --git a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java
index 277818e8..e20e558f 100644
--- a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java
+++ b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
@@ -36,6 +36,7 @@
import com.google.cloud.bigquery.connection.v1.LocationName;
import com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest;
import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
import com.google.iam.v1.Binding;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.GetPolicyOptions;
@@ -543,6 +544,7 @@ public void getIamPolicyTest() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList())
+ .addAllAuditConfigs(new ArrayList())
.setEtag(ByteString.EMPTY)
.build();
mockConnectionService.addResponse(expectedResponse);
@@ -586,6 +588,7 @@ public void getIamPolicyTest2() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList())
+ .addAllAuditConfigs(new ArrayList())
.setEtag(ByteString.EMPTY)
.build();
mockConnectionService.addResponse(expectedResponse);
@@ -629,6 +632,7 @@ public void setIamPolicyTest() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList())
+ .addAllAuditConfigs(new ArrayList())
.setEtag(ByteString.EMPTY)
.build();
mockConnectionService.addResponse(expectedResponse);
@@ -672,6 +676,7 @@ public void setIamPolicyTest2() throws Exception {
Policy.newBuilder()
.setVersion(351608024)
.addAllBindings(new ArrayList())
+ .addAllAuditConfigs(new ArrayList())
.setEtag(ByteString.EMPTY)
.build();
mockConnectionService.addResponse(expectedResponse);
diff --git a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java
index 68cdf393..c84181b4 100644
--- a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java
+++ b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
diff --git a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java
index 6f843f95..db691c61 100644
--- a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java
+++ b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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.
diff --git a/grpc-google-cloud-bigqueryconnection-v1/pom.xml b/grpc-google-cloud-bigqueryconnection-v1/pom.xml
index ed8e2f80..018d7df5 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.2.4
+ 2.3.0
grpc-google-cloud-bigqueryconnection-v1
GRPC library for grpc-google-cloud-bigqueryconnection-v1
com.google.cloud
google-cloud-bigqueryconnection-parent
- 2.2.4
+ 2.3.0
diff --git a/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml b/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml
index d6f636f6..41842021 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.10.4
+ 0.11.0
grpc-google-cloud-bigqueryconnection-v1beta1
GRPC library for grpc-google-cloud-bigqueryconnection-v1beta1
com.google.cloud
google-cloud-bigqueryconnection-parent
- 2.2.4
+ 2.3.0
diff --git a/pom.xml b/pom.xml
index a4133d2d..eaeed602 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-bigqueryconnection-parent
pom
- 2.2.4
+ 2.3.0
Google Cloud BigQuery Connections Parent
https://github.com/googleapis/java-bigqueryconnection
@@ -14,7 +14,7 @@
com.google.cloud
google-cloud-shared-config
- 1.3.3
+ 1.4.0
@@ -54,7 +54,7 @@
UTF-8
github
google-cloud-bigqueryconnection-parent
- 2.10.0
+ 2.12.0