diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index 040420500467..e2eb9f8718eb 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -27,13 +27,13 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.5.1' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.5.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.5.1" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.5.2" ``` ## Authentication diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java index 1313c9a5fbdd..559a4ea55f16 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java @@ -44,8 +44,11 @@ * 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build(); @@ -85,8 +88,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ConnectionServiceSettings connectionServiceSettings = * ConnectionServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -98,8 +104,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ConnectionServiceSettings connectionServiceSettings = * ConnectionServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * ConnectionServiceClient connectionServiceClient = @@ -110,8 +119,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ConnectionServiceSettings connectionServiceSettings = * ConnectionServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -181,8 +193,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build(); @@ -216,8 +231,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build(); @@ -251,8 +269,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionProto.CreateConnectionRequest request = * ConnectionProto.CreateConnectionRequest.newBuilder() @@ -279,8 +300,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionProto.CreateConnectionRequest request = * ConnectionProto.CreateConnectionRequest.newBuilder() @@ -307,8 +331,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); * ConnectionProto.Connection response = connectionServiceClient.getConnection(name); @@ -334,8 +361,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); * ConnectionProto.Connection response = connectionServiceClient.getConnection(name); @@ -359,8 +389,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionProto.GetConnectionRequest request = * ConnectionProto.GetConnectionRequest.newBuilder() @@ -385,8 +418,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionProto.GetConnectionRequest request = * ConnectionProto.GetConnectionRequest.newBuilder() @@ -411,8 +447,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * UInt32Value maxResults = UInt32Value.newBuilder().build(); @@ -443,8 +482,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * UInt32Value maxResults = UInt32Value.newBuilder().build(); @@ -475,8 +517,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionProto.ListConnectionsRequest request = * ConnectionProto.ListConnectionsRequest.newBuilder() @@ -504,8 +549,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionProto.ListConnectionsRequest request = * ConnectionProto.ListConnectionsRequest.newBuilder() @@ -534,8 +582,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); * ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build(); @@ -570,8 +621,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); * ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build(); @@ -606,8 +660,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionProto.UpdateConnectionRequest request = * ConnectionProto.UpdateConnectionRequest.newBuilder() @@ -635,8 +692,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionProto.UpdateConnectionRequest request = * ConnectionProto.UpdateConnectionRequest.newBuilder() @@ -663,8 +723,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String name = "name3373707"; * ConnectionProto.ConnectionCredential credential = @@ -695,8 +758,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionProto.UpdateConnectionCredentialRequest request = * ConnectionProto.UpdateConnectionCredentialRequest.newBuilder() @@ -722,8 +788,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionProto.UpdateConnectionCredentialRequest request = * ConnectionProto.UpdateConnectionCredentialRequest.newBuilder() @@ -749,8 +818,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); * connectionServiceClient.deleteConnection(name); @@ -776,8 +848,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); * connectionServiceClient.deleteConnection(name); @@ -801,8 +876,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionProto.DeleteConnectionRequest request = * ConnectionProto.DeleteConnectionRequest.newBuilder() @@ -826,8 +904,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionProto.DeleteConnectionRequest request = * ConnectionProto.DeleteConnectionRequest.newBuilder() @@ -853,8 +934,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); * GetPolicyOptions options = GetPolicyOptions.newBuilder().build(); @@ -884,8 +968,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); * GetPolicyOptions options = GetPolicyOptions.newBuilder().build(); @@ -912,8 +999,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -939,8 +1029,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -966,8 +1059,11 @@ public final UnaryCallablegetIamPolicyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); * Policy policy = Policy.newBuilder().build(); @@ -1000,8 +1096,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); * Policy policy = Policy.newBuilder().build(); @@ -1031,8 +1130,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -1060,8 +1162,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -1091,8 +1196,11 @@ public final UnaryCallablesetIamPolicyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); * Listpermissions = new ArrayList<>(); @@ -1130,8 +1238,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); * Listpermissions = new ArrayList<>(); @@ -1169,8 +1280,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() @@ -1200,8 +1314,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java index af7bb3caf817..d87b6ea20ecf 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java @@ -57,8 +57,11 @@ *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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ConnectionServiceSettings.Builder connectionServiceSettingsBuilder = * ConnectionServiceSettings.newBuilder(); * connectionServiceSettingsBuilder diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java index 9e1d06b0aa90..271f2fe9adf4 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java @@ -24,8 +24,11 @@ *Sample for ConnectionServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build(); diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java index 5e035681c4f1..5e5749b8553c 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java @@ -69,8 +69,11 @@ *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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ConnectionServiceStubSettings.Builder connectionServiceSettingsBuilder = * ConnectionServiceStubSettings.newBuilder(); * connectionServiceSettingsBuilder diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java index 5acc486b16ca..a0b312c39747 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java @@ -87,7 +87,7 @@ public class HttpJsonConnectionServiceStub extends ConnectionServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("connection", request.getConnection())) + .toBody("connection", request.getConnection(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -203,7 +203,7 @@ public class HttpJsonConnectionServiceStub extends ConnectionServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("connection", request.getConnection())) + .toBody("connection", request.getConnection(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -241,7 +241,7 @@ public class HttpJsonConnectionServiceStub extends ConnectionServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("credential", request.getCredential())) + .toBody("credential", request.getCredential(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -312,7 +312,7 @@ public class HttpJsonConnectionServiceStub extends ConnectionServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build())) + .toBody("*", request.toBuilder().clearResource().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -349,7 +349,7 @@ public class HttpJsonConnectionServiceStub extends ConnectionServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build())) + .toBody("*", request.toBuilder().clearResource().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -386,7 +386,7 @@ public class HttpJsonConnectionServiceStub extends ConnectionServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build())) + .toBody("*", request.toBuilder().clearResource().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java index ee225deb4d08..261399476d47 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java @@ -58,8 +58,11 @@ * 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Connection connection = Connection.newBuilder().build(); @@ -99,8 +102,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ConnectionServiceSettings connectionServiceSettings = * ConnectionServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -112,8 +118,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ConnectionServiceSettings connectionServiceSettings = * ConnectionServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * ConnectionServiceClient connectionServiceClient = @@ -124,8 +133,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ConnectionServiceSettings connectionServiceSettings = * ConnectionServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -194,8 +206,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Connection connection = Connection.newBuilder().build(); @@ -229,8 +244,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Connection connection = Connection.newBuilder().build(); @@ -264,8 +282,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * CreateConnectionRequest request = * CreateConnectionRequest.newBuilder() @@ -291,8 +312,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * CreateConnectionRequest request = * CreateConnectionRequest.newBuilder() @@ -318,8 +342,11 @@ public final UnaryCallablecreateConnection * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); * Connection response = connectionServiceClient.getConnection(name); @@ -343,8 +370,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); * Connection response = connectionServiceClient.getConnection(name); @@ -367,8 +397,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * GetConnectionRequest request = * GetConnectionRequest.newBuilder() @@ -392,8 +425,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * GetConnectionRequest request = * GetConnectionRequest.newBuilder() @@ -417,8 +453,11 @@ public final UnaryCallablegetConnectionCallab * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Connection element : connectionServiceClient.listConnections(parent).iterateAll()) { @@ -446,8 +485,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Connection element : connectionServiceClient.listConnections(parent).iterateAll()) { @@ -472,8 +514,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ListConnectionsRequest request = * ListConnectionsRequest.newBuilder() @@ -501,8 +546,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ListConnectionsRequest request = * ListConnectionsRequest.newBuilder() @@ -531,8 +579,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ListConnectionsRequest request = * ListConnectionsRequest.newBuilder() @@ -569,8 +620,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); * Connection connection = Connection.newBuilder().build(); @@ -604,8 +658,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); * Connection connection = Connection.newBuilder().build(); @@ -639,8 +696,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * UpdateConnectionRequest request = * UpdateConnectionRequest.newBuilder() @@ -667,8 +727,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * UpdateConnectionRequest request = * UpdateConnectionRequest.newBuilder() @@ -694,8 +757,11 @@ public final UnaryCallableupdateConnection * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); * connectionServiceClient.deleteConnection(name); @@ -719,8 +785,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); * connectionServiceClient.deleteConnection(name); @@ -743,8 +812,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * DeleteConnectionRequest request = * DeleteConnectionRequest.newBuilder() @@ -768,8 +840,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * DeleteConnectionRequest request = * DeleteConnectionRequest.newBuilder() @@ -794,8 +869,11 @@ public final UnaryCallabledeleteConnectionCalla * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); * GetPolicyOptions options = GetPolicyOptions.newBuilder().build(); @@ -825,8 +903,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); * GetPolicyOptions options = GetPolicyOptions.newBuilder().build(); @@ -853,8 +934,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -880,8 +964,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -907,8 +994,11 @@ public final UnaryCallablegetIamPolicyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); * Policy policy = Policy.newBuilder().build(); @@ -941,8 +1031,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); * Policy policy = Policy.newBuilder().build(); @@ -972,8 +1065,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -1001,8 +1097,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -1032,8 +1131,11 @@ public final UnaryCallablesetIamPolicyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); * Listpermissions = new ArrayList<>(); @@ -1071,8 +1173,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * String resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString(); * Listpermissions = new ArrayList<>(); @@ -1110,8 +1215,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() @@ -1141,8 +1249,11 @@ 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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java index 16619b294f1e..1e1044fa4127 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java @@ -67,8 +67,11 @@ *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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ConnectionServiceSettings.Builder connectionServiceSettingsBuilder = * ConnectionServiceSettings.newBuilder(); * connectionServiceSettingsBuilder diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java index 7ef0548085d4..0e8c059c75f9 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java @@ -24,8 +24,11 @@ *Sample for ConnectionServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Connection connection = Connection.newBuilder().build(); diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java index 2174b9e4b1e0..e8d1aca9ecd1 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java @@ -84,8 +84,11 @@ *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. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ConnectionServiceStubSettings.Builder connectionServiceSettingsBuilder = * ConnectionServiceStubSettings.newBuilder(); * connectionServiceSettingsBuilder diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java index 341d08f396ed..21a17ae2a849 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java @@ -93,7 +93,7 @@ public class HttpJsonConnectionServiceStub extends ConnectionServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("connection", request.getConnection())) + .toBody("connection", request.getConnection(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -201,7 +201,7 @@ public class HttpJsonConnectionServiceStub extends ConnectionServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("connection", request.getConnection())) + .toBody("connection", request.getConnection(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -272,7 +272,7 @@ public class HttpJsonConnectionServiceStub extends ConnectionServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build())) + .toBody("*", request.toBuilder().clearResource().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -309,7 +309,7 @@ public class HttpJsonConnectionServiceStub extends ConnectionServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build())) + .toBody("*", request.toBuilder().clearResource().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -346,7 +346,7 @@ public class HttpJsonConnectionServiceStub extends ConnectionServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build())) + .toBody("*", request.toBuilder().clearResource().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder()