diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java index 03f0ecf3caa1..61d074322064 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisClient.java @@ -67,8 +67,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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * Instance response = cloudRedisClient.getInstance(name); @@ -104,8 +107,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 * CloudRedisSettings cloudRedisSettings = * CloudRedisSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -116,8 +122,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 * CloudRedisSettings cloudRedisSettings = * CloudRedisSettings.newBuilder().setEndpoint(myEndpoint).build(); * CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings); @@ -127,8 +136,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 * CloudRedisSettings cloudRedisSettings = * CloudRedisSettings.newBuilder() * .setTransportChannelProvider( @@ -229,8 +241,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Instance element : cloudRedisClient.listInstances(parent).iterateAll()) { @@ -268,8 +283,11 @@ public final ListInstancesPagedResponse listInstances(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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Instance element : cloudRedisClient.listInstances(parent).iterateAll()) { @@ -304,8 +322,11 @@ public final ListInstancesPagedResponse listInstances(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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ListInstancesRequest request = * ListInstancesRequest.newBuilder() @@ -343,8 +364,11 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ListInstancesRequest request = * ListInstancesRequest.newBuilder() @@ -383,8 +407,11 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ListInstancesRequest request = * ListInstancesRequest.newBuilder() @@ -418,8 +445,11 @@ public final UnaryCallablelistInst * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * Instance response = cloudRedisClient.getInstance(name); @@ -444,8 +474,11 @@ public final Instance getInstance(InstanceName 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * Instance response = cloudRedisClient.getInstance(name); @@ -469,8 +502,11 @@ public final Instance getInstance(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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * GetInstanceRequest request = * GetInstanceRequest.newBuilder() @@ -494,8 +530,11 @@ public final Instance getInstance(GetInstanceRequest 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * GetInstanceRequest request = * GetInstanceRequest.newBuilder() @@ -519,8 +558,11 @@ public final UnaryCallablegetInstanceCallable() { * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * InstanceAuthString response = cloudRedisClient.getInstanceAuthString(name); @@ -548,8 +590,11 @@ public final InstanceAuthString getInstanceAuthString(InstanceName 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * InstanceAuthString response = cloudRedisClient.getInstanceAuthString(name); @@ -575,8 +620,11 @@ public final InstanceAuthString getInstanceAuthString(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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * GetInstanceAuthStringRequest request = * GetInstanceAuthStringRequest.newBuilder() @@ -601,8 +649,11 @@ public final InstanceAuthString getInstanceAuthString(GetInstanceAuthStringReque *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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * GetInstanceAuthStringRequest request = * GetInstanceAuthStringRequest.newBuilder() @@ -638,8 +689,11 @@ public final InstanceAuthString getInstanceAuthString(GetInstanceAuthStringReque *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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * String instanceId = "instanceId902024336"; @@ -692,8 +746,11 @@ public final OperationFuturecreateInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * String instanceId = "instanceId902024336"; @@ -746,8 +803,11 @@ public final OperationFuturecreateInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * CreateInstanceRequest request = * CreateInstanceRequest.newBuilder() @@ -785,8 +845,11 @@ public final OperationFuturecreateInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * CreateInstanceRequest request = * CreateInstanceRequest.newBuilder() @@ -824,8 +887,11 @@ public final OperationFuturecreateInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * CreateInstanceRequest request = * CreateInstanceRequest.newBuilder() @@ -854,8 +920,11 @@ public final UnaryCallablecreateInstanceCalla * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * FieldMask updateMask = FieldMask.newBuilder().build(); * Instance instance = Instance.newBuilder().build(); @@ -889,8 +958,11 @@ public final OperationFutureupdateInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * UpdateInstanceRequest request = * UpdateInstanceRequest.newBuilder() @@ -920,8 +992,11 @@ public final OperationFutureupdateInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * UpdateInstanceRequest request = * UpdateInstanceRequest.newBuilder() @@ -951,8 +1026,11 @@ public final OperationFutureupdateInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * UpdateInstanceRequest request = * UpdateInstanceRequest.newBuilder() @@ -976,8 +1054,11 @@ public final UnaryCallableupdateInstanceCalla * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * String redisVersion = "redisVersion-1972584739"; @@ -1008,8 +1089,11 @@ public final OperationFutureupgradeInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * String redisVersion = "redisVersion-1972584739"; @@ -1037,8 +1121,11 @@ public final OperationFutureupgradeInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * UpgradeInstanceRequest request = * UpgradeInstanceRequest.newBuilder() @@ -1064,8 +1151,11 @@ public final OperationFutureupgradeInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * UpgradeInstanceRequest request = * UpgradeInstanceRequest.newBuilder() @@ -1091,8 +1181,11 @@ public final OperationFutureupgradeInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * UpgradeInstanceRequest request = * UpgradeInstanceRequest.newBuilder() @@ -1122,8 +1215,11 @@ public final UnaryCallableupgradeInstanceCal * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String name = "name3373707"; * InputConfig inputConfig = InputConfig.newBuilder().build(); @@ -1157,8 +1253,11 @@ public final OperationFutureimportInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ImportInstanceRequest request = * ImportInstanceRequest.newBuilder() @@ -1190,8 +1289,11 @@ public final OperationFutureimportInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ImportInstanceRequest request = * ImportInstanceRequest.newBuilder() @@ -1223,8 +1325,11 @@ public final OperationFutureimportInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ImportInstanceRequest request = * ImportInstanceRequest.newBuilder() @@ -1253,8 +1358,11 @@ public final UnaryCallableimportInstanceCalla * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String name = "name3373707"; * OutputConfig outputConfig = OutputConfig.newBuilder().build(); @@ -1287,8 +1395,11 @@ public final OperationFutureexportInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ExportInstanceRequest request = * ExportInstanceRequest.newBuilder() @@ -1319,8 +1430,11 @@ public final OperationFutureexportInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ExportInstanceRequest request = * ExportInstanceRequest.newBuilder() @@ -1351,8 +1465,11 @@ public final OperationFutureexportInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ExportInstanceRequest request = * ExportInstanceRequest.newBuilder() @@ -1377,8 +1494,11 @@ public final UnaryCallableexportInstanceCalla * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * FailoverInstanceRequest.DataProtectionMode dataProtectionMode = @@ -1412,8 +1532,11 @@ public final OperationFuturefailoverInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * FailoverInstanceRequest.DataProtectionMode dataProtectionMode = @@ -1447,8 +1570,11 @@ public final OperationFuturefailoverInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * FailoverInstanceRequest request = * FailoverInstanceRequest.newBuilder() @@ -1474,8 +1600,11 @@ public final OperationFuturefailoverInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * FailoverInstanceRequest request = * FailoverInstanceRequest.newBuilder() @@ -1501,8 +1630,11 @@ public final OperationFuturefailoverInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * FailoverInstanceRequest request = * FailoverInstanceRequest.newBuilder() @@ -1525,8 +1657,11 @@ public final UnaryCallablefailoverInstanceC * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * cloudRedisClient.deleteInstanceAsync(name).get(); @@ -1551,8 +1686,11 @@ public final OperationFuturedeleteInstanceAsync(Insta * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * cloudRedisClient.deleteInstanceAsync(name).get(); @@ -1576,8 +1714,11 @@ public final OperationFuturedeleteInstanceAsync(Strin * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * DeleteInstanceRequest request = * DeleteInstanceRequest.newBuilder() @@ -1602,8 +1743,11 @@ public final OperationFuturedeleteInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * DeleteInstanceRequest request = * DeleteInstanceRequest.newBuilder() @@ -1628,8 +1772,11 @@ public final OperationFuturedeleteInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * DeleteInstanceRequest request = * DeleteInstanceRequest.newBuilder() @@ -1652,8 +1799,11 @@ public final UnaryCallabledeleteInstanceCalla * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * RescheduleMaintenanceRequest.RescheduleType rescheduleType = @@ -1693,8 +1843,11 @@ public final OperationFuturerescheduleMaintenanceA * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * RescheduleMaintenanceRequest.RescheduleType rescheduleType = @@ -1734,8 +1887,11 @@ public final OperationFuturerescheduleMaintenanceA * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * RescheduleMaintenanceRequest request = * RescheduleMaintenanceRequest.newBuilder() @@ -1761,8 +1917,11 @@ public final OperationFuturerescheduleMaintenanceA * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * RescheduleMaintenanceRequest request = * RescheduleMaintenanceRequest.newBuilder() @@ -1788,8 +1947,11 @@ public final OperationFuturerescheduleMaintenanceA * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * RescheduleMaintenanceRequest request = * RescheduleMaintenanceRequest.newBuilder() diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java index 35cb5cf7fdec..6b5186158bff 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/CloudRedisSettings.java @@ -56,16 +56,16 @@ *For example, to set the total timeout of getInstance 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 * CloudRedisSettings.Builder cloudRedisSettingsBuilder = CloudRedisSettings.newBuilder(); * cloudRedisSettingsBuilder * .getInstanceSettings() * .setRetrySettings( - * cloudRedisSettingsBuilder - * .getInstanceSettings() - * .getRetrySettings() - * .toBuilder() + * cloudRedisSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * CloudRedisSettings cloudRedisSettings = cloudRedisSettingsBuilder.build(); diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java index 9fdd69e4f42e..be394a06f185 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java @@ -45,8 +45,11 @@ *Sample for CloudRedisClient: * *
{@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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * Instance response = cloudRedisClient.getInstance(name); diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java index 7a2e730d2803..9aa13c1cad46 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/CloudRedisStubSettings.java @@ -91,16 +91,16 @@ *For example, to set the total timeout of getInstance 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 * CloudRedisStubSettings.Builder cloudRedisSettingsBuilder = CloudRedisStubSettings.newBuilder(); * cloudRedisSettingsBuilder * .getInstanceSettings() * .setRetrySettings( - * cloudRedisSettingsBuilder - * .getInstanceSettings() - * .getRetrySettings() - * .toBuilder() + * cloudRedisSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * CloudRedisStubSettings cloudRedisSettings = cloudRedisSettingsBuilder.build(); diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java index d958da7de5fd..5a7a01c0bbc6 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/HttpJsonCloudRedisStub.java @@ -204,7 +204,7 @@ public class HttpJsonCloudRedisStub extends CloudRedisStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("instance", request.getInstance())) + .toBody("instance", request.getInstance(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -245,7 +245,7 @@ public class HttpJsonCloudRedisStub extends CloudRedisStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("instance", request.getInstance())) + .toBody("instance", request.getInstance(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -284,7 +284,7 @@ public class HttpJsonCloudRedisStub extends CloudRedisStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -323,7 +323,7 @@ public class HttpJsonCloudRedisStub extends CloudRedisStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -362,7 +362,7 @@ public class HttpJsonCloudRedisStub extends CloudRedisStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -401,7 +401,7 @@ public class HttpJsonCloudRedisStub extends CloudRedisStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -476,7 +476,7 @@ public class HttpJsonCloudRedisStub extends CloudRedisStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java index f9164c8e1387..a1d945f9b90e 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java @@ -68,8 +68,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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * Instance response = cloudRedisClient.getInstance(name); @@ -105,8 +108,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 * CloudRedisSettings cloudRedisSettings = * CloudRedisSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -117,8 +123,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 * CloudRedisSettings cloudRedisSettings = * CloudRedisSettings.newBuilder().setEndpoint(myEndpoint).build(); * CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings); @@ -128,8 +137,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 * CloudRedisSettings cloudRedisSettings = * CloudRedisSettings.newBuilder() * .setTransportChannelProvider( @@ -231,8 +243,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Instance element : cloudRedisClient.listInstances(parent).iterateAll()) { @@ -270,8 +285,11 @@ public final ListInstancesPagedResponse listInstances(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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Instance element : cloudRedisClient.listInstances(parent).iterateAll()) { @@ -306,8 +324,11 @@ public final ListInstancesPagedResponse listInstances(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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ListInstancesRequest request = * ListInstancesRequest.newBuilder() @@ -345,8 +366,11 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ListInstancesRequest request = * ListInstancesRequest.newBuilder() @@ -385,8 +409,11 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ListInstancesRequest request = * ListInstancesRequest.newBuilder() @@ -420,8 +447,11 @@ public final UnaryCallablelistInst * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * Instance response = cloudRedisClient.getInstance(name); @@ -446,8 +476,11 @@ public final Instance getInstance(InstanceName 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * Instance response = cloudRedisClient.getInstance(name); @@ -471,8 +504,11 @@ public final Instance getInstance(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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * GetInstanceRequest request = * GetInstanceRequest.newBuilder() @@ -496,8 +532,11 @@ public final Instance getInstance(GetInstanceRequest 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * GetInstanceRequest request = * GetInstanceRequest.newBuilder() @@ -521,8 +560,11 @@ public final UnaryCallablegetInstanceCallable() { * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * InstanceAuthString response = cloudRedisClient.getInstanceAuthString(name); @@ -550,8 +592,11 @@ public final InstanceAuthString getInstanceAuthString(InstanceName 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * InstanceAuthString response = cloudRedisClient.getInstanceAuthString(name); @@ -577,8 +622,11 @@ public final InstanceAuthString getInstanceAuthString(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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * GetInstanceAuthStringRequest request = * GetInstanceAuthStringRequest.newBuilder() @@ -603,8 +651,11 @@ public final InstanceAuthString getInstanceAuthString(GetInstanceAuthStringReque *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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * GetInstanceAuthStringRequest request = * GetInstanceAuthStringRequest.newBuilder() @@ -640,8 +691,11 @@ public final InstanceAuthString getInstanceAuthString(GetInstanceAuthStringReque *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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * String instanceId = "instanceId902024336"; @@ -694,8 +748,11 @@ public final OperationFuturecreateInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * String instanceId = "instanceId902024336"; @@ -748,8 +805,11 @@ public final OperationFuturecreateInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * CreateInstanceRequest request = * CreateInstanceRequest.newBuilder() @@ -786,8 +846,11 @@ public final OperationFuturecreateInstanceAsync(CreateInstanceRe * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * CreateInstanceRequest request = * CreateInstanceRequest.newBuilder() @@ -825,8 +888,11 @@ public final OperationFuturecreateInstanceAsync(CreateInstanceRe * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * CreateInstanceRequest request = * CreateInstanceRequest.newBuilder() @@ -855,8 +921,11 @@ public final UnaryCallablecreateInstanceCalla * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * FieldMask updateMask = FieldMask.newBuilder().build(); * Instance instance = Instance.newBuilder().build(); @@ -890,8 +959,11 @@ public final OperationFutureupdateInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * UpdateInstanceRequest request = * UpdateInstanceRequest.newBuilder() @@ -920,8 +992,11 @@ public final OperationFutureupdateInstanceAsync(UpdateInstanceRe * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * UpdateInstanceRequest request = * UpdateInstanceRequest.newBuilder() @@ -951,8 +1026,11 @@ public final OperationFutureupdateInstanceAsync(UpdateInstanceRe * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * UpdateInstanceRequest request = * UpdateInstanceRequest.newBuilder() @@ -976,8 +1054,11 @@ public final UnaryCallableupdateInstanceCalla * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * String redisVersion = "redisVersion-1972584739"; @@ -1008,8 +1089,11 @@ public final OperationFutureupgradeInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * String redisVersion = "redisVersion-1972584739"; @@ -1037,8 +1121,11 @@ public final OperationFutureupgradeInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * UpgradeInstanceRequest request = * UpgradeInstanceRequest.newBuilder() @@ -1063,8 +1150,11 @@ public final OperationFutureupgradeInstanceAsync(UpgradeInstance * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * UpgradeInstanceRequest request = * UpgradeInstanceRequest.newBuilder() @@ -1090,8 +1180,11 @@ public final OperationFutureupgradeInstanceAsync(UpgradeInstance * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * UpgradeInstanceRequest request = * UpgradeInstanceRequest.newBuilder() @@ -1121,8 +1214,11 @@ public final UnaryCallableupgradeInstanceCal * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String name = "name3373707"; * InputConfig inputConfig = InputConfig.newBuilder().build(); @@ -1156,8 +1252,11 @@ public final OperationFutureimportInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ImportInstanceRequest request = * ImportInstanceRequest.newBuilder() @@ -1188,8 +1287,11 @@ public final OperationFutureimportInstanceAsync(ImportInstanceRe * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ImportInstanceRequest request = * ImportInstanceRequest.newBuilder() @@ -1221,8 +1323,11 @@ public final OperationFutureimportInstanceAsync(ImportInstanceRe * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ImportInstanceRequest request = * ImportInstanceRequest.newBuilder() @@ -1251,8 +1356,11 @@ public final UnaryCallableimportInstanceCalla * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String name = "name3373707"; * OutputConfig outputConfig = OutputConfig.newBuilder().build(); @@ -1285,8 +1393,11 @@ public final OperationFutureexportInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ExportInstanceRequest request = * ExportInstanceRequest.newBuilder() @@ -1316,8 +1427,11 @@ public final OperationFutureexportInstanceAsync(ExportInstanceRe * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ExportInstanceRequest request = * ExportInstanceRequest.newBuilder() @@ -1348,8 +1462,11 @@ public final OperationFutureexportInstanceAsync(ExportInstanceRe * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * ExportInstanceRequest request = * ExportInstanceRequest.newBuilder() @@ -1374,8 +1491,11 @@ public final UnaryCallableexportInstanceCalla * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * FailoverInstanceRequest.DataProtectionMode dataProtectionMode = @@ -1409,8 +1529,11 @@ public final OperationFuturefailoverInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * FailoverInstanceRequest.DataProtectionMode dataProtectionMode = @@ -1444,8 +1567,11 @@ public final OperationFuturefailoverInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * FailoverInstanceRequest request = * FailoverInstanceRequest.newBuilder() @@ -1471,8 +1597,11 @@ public final OperationFuturefailoverInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * FailoverInstanceRequest request = * FailoverInstanceRequest.newBuilder() @@ -1498,8 +1627,11 @@ public final OperationFuturefailoverInstanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * FailoverInstanceRequest request = * FailoverInstanceRequest.newBuilder() @@ -1522,8 +1654,11 @@ public final UnaryCallablefailoverInstanceC * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * cloudRedisClient.deleteInstanceAsync(name).get(); @@ -1548,8 +1683,11 @@ public final OperationFuturedeleteInstanceAsync(InstanceName 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * cloudRedisClient.deleteInstanceAsync(name).get(); @@ -1573,8 +1711,11 @@ public final OperationFuturedeleteInstanceAsync(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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * DeleteInstanceRequest request = * DeleteInstanceRequest.newBuilder() @@ -1598,8 +1739,11 @@ public final OperationFuturedeleteInstanceAsync(DeleteInstanceReque * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * DeleteInstanceRequest request = * DeleteInstanceRequest.newBuilder() @@ -1624,8 +1768,11 @@ public final OperationFuturedeleteInstanceAsync(DeleteInstanceReque * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * DeleteInstanceRequest request = * DeleteInstanceRequest.newBuilder() @@ -1648,8 +1795,11 @@ public final UnaryCallabledeleteInstanceCalla * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * RescheduleMaintenanceRequest.RescheduleType rescheduleType = @@ -1689,8 +1839,11 @@ public final OperationFuturerescheduleMaintenanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * RescheduleMaintenanceRequest.RescheduleType rescheduleType = @@ -1730,8 +1883,11 @@ public final OperationFuturerescheduleMaintenanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * RescheduleMaintenanceRequest request = * RescheduleMaintenanceRequest.newBuilder() @@ -1757,8 +1913,11 @@ public final OperationFuturerescheduleMaintenanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * RescheduleMaintenanceRequest request = * RescheduleMaintenanceRequest.newBuilder() @@ -1784,8 +1943,11 @@ public final OperationFuturerescheduleMaintenanceAsync( * 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * RescheduleMaintenanceRequest request = * RescheduleMaintenanceRequest.newBuilder() diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java index 347d6a82ca27..651476cfa599 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisSettings.java @@ -57,16 +57,16 @@ *For example, to set the total timeout of getInstance 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 * CloudRedisSettings.Builder cloudRedisSettingsBuilder = CloudRedisSettings.newBuilder(); * cloudRedisSettingsBuilder * .getInstanceSettings() * .setRetrySettings( - * cloudRedisSettingsBuilder - * .getInstanceSettings() - * .getRetrySettings() - * .toBuilder() + * cloudRedisSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * CloudRedisSettings cloudRedisSettings = cloudRedisSettingsBuilder.build(); diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java index 9b934c1ddd1e..18a35816ee94 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java @@ -45,8 +45,11 @@ *Sample for CloudRedisClient: * *
{@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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * Instance response = cloudRedisClient.getInstance(name); diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java index d123b8b33e1e..29c5a90784af 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java @@ -91,16 +91,16 @@ *For example, to set the total timeout of getInstance 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 * CloudRedisStubSettings.Builder cloudRedisSettingsBuilder = CloudRedisStubSettings.newBuilder(); * cloudRedisSettingsBuilder * .getInstanceSettings() * .setRetrySettings( - * cloudRedisSettingsBuilder - * .getInstanceSettings() - * .getRetrySettings() - * .toBuilder() + * cloudRedisSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * CloudRedisStubSettings cloudRedisSettings = cloudRedisSettingsBuilder.build(); diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java index 75d733065bde..2279f741fd11 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java @@ -204,7 +204,7 @@ public class HttpJsonCloudRedisStub extends CloudRedisStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("instance", request.getInstance())) + .toBody("instance", request.getInstance(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -245,7 +245,7 @@ public class HttpJsonCloudRedisStub extends CloudRedisStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("instance", request.getInstance())) + .toBody("instance", request.getInstance(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -284,7 +284,7 @@ public class HttpJsonCloudRedisStub extends CloudRedisStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -323,7 +323,7 @@ public class HttpJsonCloudRedisStub extends CloudRedisStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -362,7 +362,7 @@ public class HttpJsonCloudRedisStub extends CloudRedisStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -401,7 +401,7 @@ public class HttpJsonCloudRedisStub extends CloudRedisStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -476,7 +476,7 @@ public class HttpJsonCloudRedisStub extends CloudRedisStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java index c7cfca1c3097..cd6931c6db72 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // 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 CloudRedisSettings cloudRedisSettings = CloudRedisSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java index d6e35229b2a9..1392da5f2a88 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // 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 CloudRedisSettings cloudRedisSettings = CloudRedisSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetEndpoint.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetEndpoint.java index 122eabb87ed3..656e0d53cb81 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetEndpoint.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // 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 CloudRedisSettings cloudRedisSettings = CloudRedisSettings.newBuilder().setEndpoint(myEndpoint).build(); CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstance.java index a36bd3e1c677..522f8fa00f49 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstance.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java index d5f6c12d0e70..435e6c010f34 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateInstanceLRO() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstance.java index 7c7a31868010..daf1c8856fe1 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java index 04dc7e0460a6..74ff186d751c 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateInstanceLocationnameStringInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); String instanceId = "instanceId902024336"; diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java index bb18df0c5928..0300ac1494b0 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateInstanceStringStringInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); String instanceId = "instanceId902024336"; diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java index d021fb930f5f..9ca56783df23 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java index d16e1e404875..2f69a332d946 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteInstanceLRO() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstance.java index 68e341cc788c..b237a64d3b45 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java index 0ada0e1d05fc..9036db1696aa 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteInstanceInstancename() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); cloudRedisClient.deleteInstanceAsync(name).get(); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java index 1188b53535db..b3c30c3ea06d 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteInstanceString() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); cloudRedisClient.deleteInstanceAsync(name).get(); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstance.java index 4e4aa5841028..2f795a0d4b30 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstance.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncExportInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ExportInstanceRequest request = ExportInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java index fde369e6485b..010086c51f4a 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncExportInstanceLRO() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ExportInstanceRequest request = ExportInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstance.java index 093f0ee4b347..d154784ea71d 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncExportInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ExportInstanceRequest request = ExportInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java index 00726e94f34e..cd8ff91e5137 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncExportInstanceStringOutputconfig() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String name = "name3373707"; OutputConfig outputConfig = OutputConfig.newBuilder().build(); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java index 80772397f2e9..bb70bf79cbdb 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncFailoverInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { FailoverInstanceRequest request = FailoverInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java index 502902052c17..13d03d34bbbe 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncFailoverInstanceLRO() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { FailoverInstanceRequest request = FailoverInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstance.java index f919107bb382..94d5a6545135 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncFailoverInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { FailoverInstanceRequest request = FailoverInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java index 512e7148dab3..6112eaf72306 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { public static void syncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); FailoverInstanceRequest.DataProtectionMode dataProtectionMode = diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java index fb90df6edd1f..884f3656f8fe 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { public static void syncFailoverInstanceStringFailoverinstancerequestdataprotectionmode() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); FailoverInstanceRequest.DataProtectionMode dataProtectionMode = diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/AsyncGetInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/AsyncGetInstance.java index f2a073274626..7759cbe102b7 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/AsyncGetInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/AsyncGetInstance.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { GetInstanceRequest request = GetInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstance.java index 3bdcb704de10..96c4ace9dc6c 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { GetInstanceRequest request = GetInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java index 3bb4b5eb3279..692e26c5de82 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstanceInstancename() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); Instance response = cloudRedisClient.getInstance(name); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceString.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceString.java index 4e8ad48b925f..f96b31f183d3 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceString.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstance/SyncGetInstanceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstanceString() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); Instance response = cloudRedisClient.getInstance(name); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java index dbb2ba9917df..378244deccb0 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetInstanceAuthString() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { GetInstanceAuthStringRequest request = GetInstanceAuthStringRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java index 68e7c5fd4090..08d610e25f27 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstanceAuthString() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { GetInstanceAuthStringRequest request = GetInstanceAuthStringRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java index 74af0d120801..d96f02cb8a5f 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstanceAuthStringInstancename() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); InstanceAuthString response = cloudRedisClient.getInstanceAuthString(name); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java index f318832eb93d..9d41a9676722 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstanceAuthStringString() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); InstanceAuthString response = cloudRedisClient.getInstanceAuthString(name); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstance.java index 3012e27abdcb..88a41bbe9785 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstance.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncImportInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ImportInstanceRequest request = ImportInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java index 9c29bd06d2c3..f6c1bf3b39c7 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncImportInstanceLRO() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ImportInstanceRequest request = ImportInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstance.java index c79f9b38ac53..92e86a27bd1b 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncImportInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ImportInstanceRequest request = ImportInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java index 19273c723632..60daa0d2d180 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncImportInstanceStringInputconfig() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String name = "name3373707"; InputConfig inputConfig = InputConfig.newBuilder().build(); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstances.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstances.java index 8dbc9fed791a..8edf97535a10 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstances.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstances.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListInstances() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ListInstancesRequest request = ListInstancesRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstancesPaged.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstancesPaged.java index d33b6c496ce1..e00a96662dee 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstancesPaged.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/AsyncListInstancesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListInstancesPaged() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ListInstancesRequest request = ListInstancesRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstances.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstances.java index eee98ebe7fb3..84b41a551630 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstances.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstances.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInstances() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ListInstancesRequest request = ListInstancesRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesLocationname.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesLocationname.java index 2c8a14e46505..1ead72fdb028 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesLocationname.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInstancesLocationname() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Instance element : cloudRedisClient.listInstances(parent).iterateAll()) { diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesString.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesString.java index 880787c96f72..7514bc57c243 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesString.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/listinstances/SyncListInstancesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInstancesString() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Instance element : cloudRedisClient.listInstances(parent).iterateAll()) { diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java index 552c9a909c84..077273399ff2 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncRescheduleMaintenance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { RescheduleMaintenanceRequest request = RescheduleMaintenanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java index 0a969adb092b..c40b9646d390 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncRescheduleMaintenanceLRO() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { RescheduleMaintenanceRequest request = RescheduleMaintenanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java index b89b517a8754..58637f5f1440 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncRescheduleMaintenance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { RescheduleMaintenanceRequest request = RescheduleMaintenanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java index a12d3ce0689f..bbef68157e59 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java @@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception { public static void syncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); RescheduleMaintenanceRequest.RescheduleType rescheduleType = diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java index d36b725af68b..aecb6cc3e541 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { public static void syncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); RescheduleMaintenanceRequest.RescheduleType rescheduleType = diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstance.java index 0d73b70e7d1e..3b1da36503ec 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstance.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java index ea7bf5f001cf..43b0e90dd208 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateInstanceLRO() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstance.java index 7460eb1ee150..a83b171bb7b0 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java index e78ddd190fb6..87b6f1473e2c 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateInstanceFieldmaskInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { FieldMask updateMask = FieldMask.newBuilder().build(); Instance instance = Instance.newBuilder().build(); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java index 27287237795a..61de81f6d78c 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpgradeInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { UpgradeInstanceRequest request = UpgradeInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java index cc95739f8550..1c264353aaec 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpgradeInstanceLRO() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { UpgradeInstanceRequest request = UpgradeInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java index e3daecf4fe6d..ece779c63091 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpgradeInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { UpgradeInstanceRequest request = UpgradeInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java index aef01d2b2680..a0e9b6239d52 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpgradeInstanceInstancenameString() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); String redisVersion = "redisVersion-1972584739"; diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java index ccb937ac1033..5483ecf8035f 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpgradeInstanceStringString() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); String redisVersion = "redisVersion-1972584739"; diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredissettings/getinstance/SyncGetInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredissettings/getinstance/SyncGetInstance.java index 069a43adbe75..14700e1dbd0a 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredissettings/getinstance/SyncGetInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/cloudredissettings/getinstance/SyncGetInstance.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstance() throws Exception { - // 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 CloudRedisSettings.Builder cloudRedisSettingsBuilder = CloudRedisSettings.newBuilder(); cloudRedisSettingsBuilder .getInstanceSettings() .setRetrySettings( - cloudRedisSettingsBuilder - .getInstanceSettings() - .getRetrySettings() - .toBuilder() + cloudRedisSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); CloudRedisSettings cloudRedisSettings = cloudRedisSettingsBuilder.build(); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java index a5129fc09317..63fd63254368 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstance() throws Exception { - // 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 CloudRedisStubSettings.Builder cloudRedisSettingsBuilder = CloudRedisStubSettings.newBuilder(); cloudRedisSettingsBuilder .getInstanceSettings() .setRetrySettings( - cloudRedisSettingsBuilder - .getInstanceSettings() - .getRetrySettings() - .toBuilder() + cloudRedisSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); CloudRedisStubSettings cloudRedisSettings = cloudRedisSettingsBuilder.build(); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java index cfd9fc80f7d4..84b8b68262bb 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // 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 CloudRedisSettings cloudRedisSettings = CloudRedisSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java index 61ca0b735f13..c18e6b1f252c 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // 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 CloudRedisSettings cloudRedisSettings = CloudRedisSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java index b6234a302ca7..dc877d2084a7 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // 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 CloudRedisSettings cloudRedisSettings = CloudRedisSettings.newBuilder().setEndpoint(myEndpoint).build(); CloudRedisClient cloudRedisClient = CloudRedisClient.create(cloudRedisSettings); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java index 59c4f0fd66ea..96519758d6d1 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstance.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java index 8a8154c496ee..35fea74142f9 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/AsyncCreateInstanceLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateInstanceLRO() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java index fedb0e4ddbec..ba5cd839a185 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java index 55af3c168b5b..4a0d38a85961 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateInstanceLocationnameStringInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); String instanceId = "instanceId902024336"; diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java index 1e777a7015fb..e3af6e6083ac 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/createinstance/SyncCreateInstanceStringStringInstance.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateInstanceStringStringInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); String instanceId = "instanceId902024336"; diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java index b7fb20b691f3..be1676aca8f9 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstance.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java index ddb78118cd10..d1eb442ee80a 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/AsyncDeleteInstanceLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteInstanceLRO() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java index c8916d3582ee..33b0ebb99ebe 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java index 2e63ba9fedda..942b4b99e37d 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceInstancename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteInstanceInstancename() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); cloudRedisClient.deleteInstanceAsync(name).get(); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java index 51230d5a2402..64add1b20cd6 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/deleteinstance/SyncDeleteInstanceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteInstanceString() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); cloudRedisClient.deleteInstanceAsync(name).get(); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java index ad57c58e7e56..dfef10de39dd 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstance.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncExportInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ExportInstanceRequest request = ExportInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java index 8534bf3ee717..4eb0cd23e071 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/AsyncExportInstanceLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncExportInstanceLRO() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ExportInstanceRequest request = ExportInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java index 3f2cc0e56662..0a6078e327a2 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncExportInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ExportInstanceRequest request = ExportInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java index d2b36f90a158..1e3a19f42b27 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/exportinstance/SyncExportInstanceStringOutputconfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncExportInstanceStringOutputconfig() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String name = "name3373707"; OutputConfig outputConfig = OutputConfig.newBuilder().build(); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java index 908d016b7e59..a6cf421f4854 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstance.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncFailoverInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { FailoverInstanceRequest request = FailoverInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java index 9424f43065b1..05f0f05aec4d 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/AsyncFailoverInstanceLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncFailoverInstanceLRO() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { FailoverInstanceRequest request = FailoverInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java index 845c470c4da4..f5c369f45f1d 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncFailoverInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { FailoverInstanceRequest request = FailoverInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java index 3a534cd4444d..7fdd68b0a190 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { public static void syncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); FailoverInstanceRequest.DataProtectionMode dataProtectionMode = diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java index af21b9309f2c..54d5a60b95f7 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { public static void syncFailoverInstanceStringFailoverinstancerequestdataprotectionmode() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); FailoverInstanceRequest.DataProtectionMode dataProtectionMode = diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java index b2147500ef68..a447cd39e750 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/AsyncGetInstance.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { GetInstanceRequest request = GetInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java index d68e05277b32..4bc00a7ab7a9 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { GetInstanceRequest request = GetInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java index 97b599056887..e22472c887d1 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceInstancename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstanceInstancename() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); Instance response = cloudRedisClient.getInstance(name); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java index 92ff58b94dc5..1d3b9298088d 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstance/SyncGetInstanceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstanceString() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); Instance response = cloudRedisClient.getInstance(name); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java index 1adc84838eb1..070ea20e4e11 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/AsyncGetInstanceAuthString.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetInstanceAuthString() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { GetInstanceAuthStringRequest request = GetInstanceAuthStringRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java index 44666a4cc970..9bf0be720f4e 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthString.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstanceAuthString() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { GetInstanceAuthStringRequest request = GetInstanceAuthStringRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java index 9aab155d9058..51ccae536e42 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstanceAuthStringInstancename() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); InstanceAuthString response = cloudRedisClient.getInstanceAuthString(name); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java index b9ffffca54b8..2099b73459f0 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/getinstanceauthstring/SyncGetInstanceAuthStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstanceAuthStringString() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); InstanceAuthString response = cloudRedisClient.getInstanceAuthString(name); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java index cdf2776d77ed..d35688f4867e 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstance.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncImportInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ImportInstanceRequest request = ImportInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java index 74e69879e2cd..da4076dc2628 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/AsyncImportInstanceLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncImportInstanceLRO() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ImportInstanceRequest request = ImportInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java index 4482b6805908..91af8a59c538 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncImportInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ImportInstanceRequest request = ImportInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java index bc0092ca1581..074dea83e1de 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/importinstance/SyncImportInstanceStringInputconfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncImportInstanceStringInputconfig() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String name = "name3373707"; InputConfig inputConfig = InputConfig.newBuilder().build(); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstances.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstances.java index f4d15eb731fd..666111e35e52 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstances.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstances.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListInstances() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ListInstancesRequest request = ListInstancesRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java index 4fda4467d4d8..b528de4cfac3 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListInstancesPaged() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ListInstancesRequest request = ListInstancesRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java index c76dc3b7a7cf..8b44b76ab937 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstances.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInstances() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { ListInstancesRequest request = ListInstancesRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java index 3b16874b2f59..074b04ba05d1 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInstancesLocationname() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Instance element : cloudRedisClient.listInstances(parent).iterateAll()) { diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java index fd896631abb5..32a46245a8a1 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/SyncListInstancesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListInstancesString() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Instance element : cloudRedisClient.listInstances(parent).iterateAll()) { diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java index 6da21f92b498..6afd7c602aa7 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenance.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncRescheduleMaintenance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { RescheduleMaintenanceRequest request = RescheduleMaintenanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java index 2e4486d49493..d37e56f91822 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncRescheduleMaintenanceLRO() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { RescheduleMaintenanceRequest request = RescheduleMaintenanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java index e5aa6c343867..8b8238870a16 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenance.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncRescheduleMaintenance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { RescheduleMaintenanceRequest request = RescheduleMaintenanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java index 8e4e5e99ecc4..3cb0db55f373 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java @@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception { public static void syncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); RescheduleMaintenanceRequest.RescheduleType rescheduleType = diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java index 686b3760c8d2..ec59dafbe34f 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { public static void syncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); RescheduleMaintenanceRequest.RescheduleType rescheduleType = diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java index a8250d4dae96..5e60c29ba858 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstance.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java index b8702e6ade70..fcbc0ff7636e 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/AsyncUpdateInstanceLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateInstanceLRO() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java index 3e2e71b8206e..f1bea39c8fea 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java index 2580dcde7b95..d400476d730b 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateInstanceFieldmaskInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { FieldMask updateMask = FieldMask.newBuilder().build(); Instance instance = Instance.newBuilder().build(); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java index e94e34c9205a..9f91d32f6314 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstance.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpgradeInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { UpgradeInstanceRequest request = UpgradeInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java index daae237f8b7a..9837b002141b 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/AsyncUpgradeInstanceLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpgradeInstanceLRO() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { UpgradeInstanceRequest request = UpgradeInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java index 2860730b5876..54ad26057c84 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpgradeInstance() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { UpgradeInstanceRequest request = UpgradeInstanceRequest.newBuilder() diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java index 20bc73d1dffb..b2249259dff6 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceInstancenameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpgradeInstanceInstancenameString() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); String redisVersion = "redisVersion-1972584739"; diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java index d5e491b2aa25..4dfc6e9b852e 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredisclient/upgradeinstance/SyncUpgradeInstanceStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpgradeInstanceStringString() throws Exception { - // 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 (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); String redisVersion = "redisVersion-1972584739"; diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java index 83c803548225..23079cfa362e 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstance() throws Exception { - // 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 CloudRedisSettings.Builder cloudRedisSettingsBuilder = CloudRedisSettings.newBuilder(); cloudRedisSettingsBuilder .getInstanceSettings() .setRetrySettings( - cloudRedisSettingsBuilder - .getInstanceSettings() - .getRetrySettings() - .toBuilder() + cloudRedisSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); CloudRedisSettings cloudRedisSettings = cloudRedisSettingsBuilder.build(); diff --git a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java index 3721e3591d90..5f1112005772 100644 --- a/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java +++ b/java-redis/samples/snippets/generated/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncGetInstance() throws Exception { - // 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 CloudRedisStubSettings.Builder cloudRedisSettingsBuilder = CloudRedisStubSettings.newBuilder(); cloudRedisSettingsBuilder .getInstanceSettings() .setRetrySettings( - cloudRedisSettingsBuilder - .getInstanceSettings() - .getRetrySettings() - .toBuilder() + cloudRedisSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); CloudRedisStubSettings cloudRedisSettings = cloudRedisSettingsBuilder.build();