From f7d63d15dc3185f43c414c71a1840157ba153f1f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 16:24:25 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#670) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../memcache/v1/CloudMemcacheClient.java | 259 ++++++++++----- .../memcache/v1/CloudMemcacheSettings.java | 12 +- .../cloud/memcache/v1/package-info.java | 7 +- .../v1/stub/CloudMemcacheStubSettings.java | 12 +- .../v1/stub/HttpJsonCloudMemcacheStub.java | 8 +- .../memcache/v1beta2/CloudMemcacheClient.java | 294 +++++++++++++----- .../v1beta2/CloudMemcacheSettings.java | 12 +- .../cloud/memcache/v1beta2/package-info.java | 7 +- .../stub/CloudMemcacheStubSettings.java | 12 +- .../stub/HttpJsonCloudMemcacheStub.java | 10 +- .../applyparameters/AsyncApplyParameters.java | 7 +- .../AsyncApplyParametersLRO.java | 7 +- .../applyparameters/SyncApplyParameters.java | 7 +- ...rametersInstancenameListstringBoolean.java | 7 +- ...pplyParametersStringListstringBoolean.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createinstance/AsyncCreateInstance.java | 7 +- .../AsyncCreateInstanceLRO.java | 7 +- .../createinstance/SyncCreateInstance.java | 7 +- ...ateInstanceLocationnameInstanceString.java | 7 +- ...yncCreateInstanceStringInstanceString.java | 7 +- .../deleteinstance/AsyncDeleteInstance.java | 7 +- .../AsyncDeleteInstanceLRO.java | 7 +- .../deleteinstance/SyncDeleteInstance.java | 7 +- .../SyncDeleteInstanceInstancename.java | 7 +- .../SyncDeleteInstanceString.java | 7 +- .../getinstance/AsyncGetInstance.java | 7 +- .../getinstance/SyncGetInstance.java | 7 +- .../SyncGetInstanceInstancename.java | 7 +- .../getinstance/SyncGetInstanceString.java | 7 +- .../listinstances/AsyncListInstances.java | 7 +- .../AsyncListInstancesPaged.java | 7 +- .../listinstances/SyncListInstances.java | 7 +- .../SyncListInstancesLocationname.java | 7 +- .../SyncListInstancesString.java | 7 +- .../updateinstance/AsyncUpdateInstance.java | 7 +- .../AsyncUpdateInstanceLRO.java | 7 +- .../updateinstance/SyncUpdateInstance.java | 7 +- .../SyncUpdateInstanceInstanceFieldmask.java | 7 +- .../AsyncUpdateParameters.java | 7 +- .../AsyncUpdateParametersLRO.java | 7 +- .../SyncUpdateParameters.java | 7 +- ...stancenameFieldmaskMemcacheparameters.java | 7 +- ...tersStringFieldmaskMemcacheparameters.java | 7 +- .../getinstance/SyncGetInstance.java | 12 +- .../getinstance/SyncGetInstance.java | 12 +- .../applyparameters/AsyncApplyParameters.java | 7 +- .../AsyncApplyParametersLRO.java | 7 +- .../applyparameters/SyncApplyParameters.java | 7 +- ...rametersInstancenameListstringBoolean.java | 7 +- ...pplyParametersStringListstringBoolean.java | 7 +- .../AsyncApplySoftwareUpdate.java | 7 +- .../AsyncApplySoftwareUpdateLRO.java | 7 +- .../SyncApplySoftwareUpdate.java | 7 +- ...reUpdateInstancenameListstringBoolean.java | 7 +- ...SoftwareUpdateStringListstringBoolean.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createinstance/AsyncCreateInstance.java | 7 +- .../AsyncCreateInstanceLRO.java | 7 +- .../createinstance/SyncCreateInstance.java | 7 +- ...ateInstanceLocationnameStringInstance.java | 7 +- ...yncCreateInstanceStringStringInstance.java | 7 +- .../deleteinstance/AsyncDeleteInstance.java | 7 +- .../AsyncDeleteInstanceLRO.java | 7 +- .../deleteinstance/SyncDeleteInstance.java | 7 +- .../SyncDeleteInstanceInstancename.java | 7 +- .../SyncDeleteInstanceString.java | 7 +- .../getinstance/AsyncGetInstance.java | 7 +- .../getinstance/SyncGetInstance.java | 7 +- .../SyncGetInstanceInstancename.java | 7 +- .../getinstance/SyncGetInstanceString.java | 7 +- .../listinstances/AsyncListInstances.java | 7 +- .../AsyncListInstancesPaged.java | 7 +- .../listinstances/SyncListInstances.java | 7 +- .../SyncListInstancesLocationname.java | 7 +- .../SyncListInstancesString.java | 7 +- .../updateinstance/AsyncUpdateInstance.java | 7 +- .../AsyncUpdateInstanceLRO.java | 7 +- .../updateinstance/SyncUpdateInstance.java | 7 +- .../SyncUpdateInstanceFieldmaskInstance.java | 7 +- .../AsyncUpdateParameters.java | 7 +- .../AsyncUpdateParametersLRO.java | 7 +- .../SyncUpdateParameters.java | 7 +- ...stancenameFieldmaskMemcacheparameters.java | 7 +- ...tersStringFieldmaskMemcacheparameters.java | 7 +- .../getinstance/SyncGetInstance.java | 12 +- .../getinstance/SyncGetInstance.java | 12 +- 91 files changed, 847 insertions(+), 373 deletions(-) diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java index 5738f74e4138..22a0f3e5da28 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java @@ -65,8 +65,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * Instance response = cloudMemcacheClient.getInstance(name); @@ -102,8 +105,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 * CloudMemcacheSettings cloudMemcacheSettings = * CloudMemcacheSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -114,8 +120,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 * CloudMemcacheSettings cloudMemcacheSettings = * CloudMemcacheSettings.newBuilder().setEndpoint(myEndpoint).build(); * CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create(cloudMemcacheSettings); @@ -125,8 +134,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 * CloudMemcacheSettings cloudMemcacheSettings = * CloudMemcacheSettings.newBuilder() * .setTransportChannelProvider( @@ -219,8 +231,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Instance element : cloudMemcacheClient.listInstances(parent).iterateAll()) { @@ -248,8 +263,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Instance element : cloudMemcacheClient.listInstances(parent).iterateAll()) { @@ -274,8 +292,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * ListInstancesRequest request = * ListInstancesRequest.newBuilder() @@ -305,8 +326,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * ListInstancesRequest request = * ListInstancesRequest.newBuilder() @@ -337,8 +361,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * ListInstancesRequest request = * ListInstancesRequest.newBuilder() @@ -374,8 +401,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * Instance response = cloudMemcacheClient.getInstance(name); @@ -400,8 +430,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * Instance response = cloudMemcacheClient.getInstance(name); @@ -425,8 +458,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * GetInstanceRequest request = * GetInstanceRequest.newBuilder() @@ -450,8 +486,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * GetInstanceRequest request = * GetInstanceRequest.newBuilder() @@ -474,8 +513,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Instance instance = Instance.newBuilder().build(); @@ -518,8 +560,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Instance instance = Instance.newBuilder().build(); @@ -562,8 +607,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * CreateInstanceRequest request = * CreateInstanceRequest.newBuilder() @@ -590,8 +638,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * CreateInstanceRequest request = * CreateInstanceRequest.newBuilder() @@ -618,8 +669,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * CreateInstanceRequest request = * CreateInstanceRequest.newBuilder() @@ -645,8 +699,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * Instance instance = Instance.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -673,8 +730,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * UpdateInstanceRequest request = * UpdateInstanceRequest.newBuilder() @@ -700,8 +760,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * UpdateInstanceRequest request = * UpdateInstanceRequest.newBuilder() @@ -727,8 +790,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * UpdateInstanceRequest request = * UpdateInstanceRequest.newBuilder() @@ -755,8 +821,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -792,8 +861,11 @@ public final OperationFutureupdateParametersAsync( * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -829,8 +901,11 @@ public final OperationFutureupdateParametersAsync( * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * UpdateParametersRequest request = * UpdateParametersRequest.newBuilder() @@ -859,8 +934,11 @@ public final OperationFutureupdateParametersAsync( * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * UpdateParametersRequest request = * UpdateParametersRequest.newBuilder() @@ -889,8 +967,11 @@ public final OperationFutureupdateParametersAsync( * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * UpdateParametersRequest request = * UpdateParametersRequest.newBuilder() @@ -916,8 +997,11 @@ public final UnaryCallableupdateParametersC * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * cloudMemcacheClient.deleteInstanceAsync(name).get(); @@ -942,8 +1026,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * cloudMemcacheClient.deleteInstanceAsync(name).get(); @@ -967,8 +1054,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * DeleteInstanceRequest request = * DeleteInstanceRequest.newBuilder() @@ -993,8 +1083,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * DeleteInstanceRequest request = * DeleteInstanceRequest.newBuilder() @@ -1019,8 +1112,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * DeleteInstanceRequest request = * DeleteInstanceRequest.newBuilder() @@ -1045,8 +1141,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * ListnodeIds = new ArrayList<>(); @@ -1082,8 +1181,11 @@ public final OperationFuture applyParametersAsync( * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * ListnodeIds = new ArrayList<>(); @@ -1119,8 +1221,11 @@ public final OperationFuture applyParametersAsync( * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * ApplyParametersRequest request = * ApplyParametersRequest.newBuilder() @@ -1148,8 +1253,11 @@ public final OperationFutureapplyParametersAsync( * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * ApplyParametersRequest request = * ApplyParametersRequest.newBuilder() @@ -1177,8 +1285,11 @@ public final OperationFutureapplyParametersAsync( * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * ApplyParametersRequest request = * ApplyParametersRequest.newBuilder() diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java index 528ec1c18719..9bdc48f2b46e 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.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 * CloudMemcacheSettings.Builder cloudMemcacheSettingsBuilder = CloudMemcacheSettings.newBuilder(); * cloudMemcacheSettingsBuilder * .getInstanceSettings() * .setRetrySettings( - * cloudMemcacheSettingsBuilder - * .getInstanceSettings() - * .getRetrySettings() - * .toBuilder() + * cloudMemcacheSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * CloudMemcacheSettings cloudMemcacheSettings = cloudMemcacheSettingsBuilder.build(); diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/package-info.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/package-info.java index 6b4ab8e5c062..27a12c3bd9e0 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/package-info.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/package-info.java @@ -42,8 +42,11 @@ *Sample for CloudMemcacheClient: * *
{@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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * Instance response = cloudMemcacheClient.getInstance(name); diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java index b9fbff87c671..858ee942db2c 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java @@ -86,17 +86,17 @@ *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 * CloudMemcacheStubSettings.Builder cloudMemcacheSettingsBuilder = * CloudMemcacheStubSettings.newBuilder(); * cloudMemcacheSettingsBuilder * .getInstanceSettings() * .setRetrySettings( - * cloudMemcacheSettingsBuilder - * .getInstanceSettings() - * .getRetrySettings() - * .toBuilder() + * cloudMemcacheSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * CloudMemcacheStubSettings cloudMemcacheSettings = cloudMemcacheSettingsBuilder.build(); diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.java index 08ebd97efd02..ed2ee4d7e630 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.java @@ -168,7 +168,7 @@ public class HttpJsonCloudMemcacheStub extends CloudMemcacheStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("instance", request.getInstance())) + .toBody("instance", request.getInstance(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -209,7 +209,7 @@ public class HttpJsonCloudMemcacheStub extends CloudMemcacheStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("instance", request.getInstance())) + .toBody("instance", request.getInstance(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -248,7 +248,7 @@ public class HttpJsonCloudMemcacheStub extends CloudMemcacheStub { .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 HttpJsonCloudMemcacheStub extends CloudMemcacheStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java index 0e8b39fa6418..c84d2b04c45a 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java @@ -65,8 +65,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * Instance response = cloudMemcacheClient.getInstance(name); @@ -102,8 +105,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 * CloudMemcacheSettings cloudMemcacheSettings = * CloudMemcacheSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -114,8 +120,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 * CloudMemcacheSettings cloudMemcacheSettings = * CloudMemcacheSettings.newBuilder().setEndpoint(myEndpoint).build(); * CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create(cloudMemcacheSettings); @@ -125,8 +134,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 * CloudMemcacheSettings cloudMemcacheSettings = * CloudMemcacheSettings.newBuilder() * .setTransportChannelProvider( @@ -220,8 +232,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Instance element : cloudMemcacheClient.listInstances(parent).iterateAll()) { @@ -249,8 +264,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Instance element : cloudMemcacheClient.listInstances(parent).iterateAll()) { @@ -275,8 +293,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * ListInstancesRequest request = * ListInstancesRequest.newBuilder() @@ -306,8 +327,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * ListInstancesRequest request = * ListInstancesRequest.newBuilder() @@ -338,8 +362,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * ListInstancesRequest request = * ListInstancesRequest.newBuilder() @@ -375,8 +402,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * Instance response = cloudMemcacheClient.getInstance(name); @@ -401,8 +431,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * Instance response = cloudMemcacheClient.getInstance(name); @@ -426,8 +459,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * GetInstanceRequest request = * GetInstanceRequest.newBuilder() @@ -451,8 +487,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * GetInstanceRequest request = * GetInstanceRequest.newBuilder() @@ -475,8 +514,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * String instanceId = "instanceId902024336"; @@ -519,8 +561,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * String instanceId = "instanceId902024336"; @@ -563,8 +608,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * CreateInstanceRequest request = * CreateInstanceRequest.newBuilder() @@ -591,8 +639,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * CreateInstanceRequest request = * CreateInstanceRequest.newBuilder() @@ -619,8 +670,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * CreateInstanceRequest request = * CreateInstanceRequest.newBuilder() @@ -646,8 +700,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * FieldMask updateMask = FieldMask.newBuilder().build(); * Instance resource = Instance.newBuilder().build(); @@ -674,8 +731,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * UpdateInstanceRequest request = * UpdateInstanceRequest.newBuilder() @@ -701,8 +761,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * UpdateInstanceRequest request = * UpdateInstanceRequest.newBuilder() @@ -728,8 +791,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * UpdateInstanceRequest request = * UpdateInstanceRequest.newBuilder() @@ -756,8 +822,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -793,8 +862,11 @@ public final OperationFutureupdateParametersAsync( * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -830,8 +902,11 @@ public final OperationFutureupdateParametersAsync( * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * UpdateParametersRequest request = * UpdateParametersRequest.newBuilder() @@ -860,8 +935,11 @@ public final OperationFutureupdateParametersAsync( * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * UpdateParametersRequest request = * UpdateParametersRequest.newBuilder() @@ -890,8 +968,11 @@ public final OperationFutureupdateParametersAsync( * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * UpdateParametersRequest request = * UpdateParametersRequest.newBuilder() @@ -917,8 +998,11 @@ public final UnaryCallableupdateParametersC * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * cloudMemcacheClient.deleteInstanceAsync(name).get(); @@ -943,8 +1027,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * cloudMemcacheClient.deleteInstanceAsync(name).get(); @@ -968,8 +1055,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * DeleteInstanceRequest request = * DeleteInstanceRequest.newBuilder() @@ -994,8 +1084,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * DeleteInstanceRequest request = * DeleteInstanceRequest.newBuilder() @@ -1020,8 +1113,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * DeleteInstanceRequest request = * DeleteInstanceRequest.newBuilder() @@ -1046,8 +1142,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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * ListnodeIds = new ArrayList<>(); @@ -1083,8 +1182,11 @@ public final OperationFuture applyParametersAsync( * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * ListnodeIds = new ArrayList<>(); @@ -1120,8 +1222,11 @@ public final OperationFuture applyParametersAsync( * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * ApplyParametersRequest request = * ApplyParametersRequest.newBuilder() @@ -1149,8 +1254,11 @@ public final OperationFutureapplyParametersAsync( * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * ApplyParametersRequest request = * ApplyParametersRequest.newBuilder() @@ -1178,8 +1286,11 @@ public final OperationFutureapplyParametersAsync( * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * ApplyParametersRequest request = * ApplyParametersRequest.newBuilder() @@ -1205,8 +1316,11 @@ public final UnaryCallableapplyParametersCal * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * ListnodeIds = new ArrayList<>(); @@ -1243,8 +1357,11 @@ public final OperationFuture applySoftwareUpdateAsy * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * String instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); * ListnodeIds = new ArrayList<>(); @@ -1281,8 +1398,11 @@ public final OperationFuture applySoftwareUpdateAsy * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * ApplySoftwareUpdateRequest request = * ApplySoftwareUpdateRequest.newBuilder() @@ -1309,8 +1429,11 @@ public final OperationFutureapplySoftwareUpdateAsy * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * ApplySoftwareUpdateRequest request = * ApplySoftwareUpdateRequest.newBuilder() @@ -1337,8 +1460,11 @@ public final OperationFutureapplySoftwareUpdateAsy * 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * ApplySoftwareUpdateRequest request = * ApplySoftwareUpdateRequest.newBuilder() diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java index 51da4ed87208..f3b772eac48b 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.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 * CloudMemcacheSettings.Builder cloudMemcacheSettingsBuilder = CloudMemcacheSettings.newBuilder(); * cloudMemcacheSettingsBuilder * .getInstanceSettings() * .setRetrySettings( - * cloudMemcacheSettingsBuilder - * .getInstanceSettings() - * .getRetrySettings() - * .toBuilder() + * cloudMemcacheSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * CloudMemcacheSettings cloudMemcacheSettings = cloudMemcacheSettingsBuilder.build(); diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java index 96cda576a0b9..6c0ca283515d 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java @@ -42,8 +42,11 @@ *Sample for CloudMemcacheClient: * *
{@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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); * Instance response = cloudMemcacheClient.getInstance(name); diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java index 90fb09a66154..fafd2098167c 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java @@ -87,17 +87,17 @@ *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 * CloudMemcacheStubSettings.Builder cloudMemcacheSettingsBuilder = * CloudMemcacheStubSettings.newBuilder(); * cloudMemcacheSettingsBuilder * .getInstanceSettings() * .setRetrySettings( - * cloudMemcacheSettingsBuilder - * .getInstanceSettings() - * .getRetrySettings() - * .toBuilder() + * cloudMemcacheSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * CloudMemcacheStubSettings cloudMemcacheSettings = cloudMemcacheSettingsBuilder.build(); diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.java index f034b57bc9f1..a06bace6c27f 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.java @@ -169,7 +169,7 @@ public class HttpJsonCloudMemcacheStub extends CloudMemcacheStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("resource", request.getResource())) + .toBody("resource", request.getResource(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -210,7 +210,7 @@ public class HttpJsonCloudMemcacheStub extends CloudMemcacheStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("resource", request.getResource())) + .toBody("resource", request.getResource(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -249,7 +249,7 @@ public class HttpJsonCloudMemcacheStub extends CloudMemcacheStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -324,7 +324,7 @@ public class HttpJsonCloudMemcacheStub extends CloudMemcacheStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -363,7 +363,7 @@ public class HttpJsonCloudMemcacheStub extends CloudMemcacheStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearInstance().build())) + .toBody("*", request.toBuilder().clearInstance().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java index 1c5992076182..50f003c2c00b 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncApplyParameters() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { ApplyParametersRequest request = ApplyParametersRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java index 7e107bcb6684..b7f8d313038e 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncApplyParametersLRO() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { ApplyParametersRequest request = ApplyParametersRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParameters.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParameters.java index 4b9feceefcae..7cde1936e788 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParameters.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParameters.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncApplyParameters() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { ApplyParametersRequest request = ApplyParametersRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java index 3006b54ffcef..11c4fc59d371 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncApplyParametersInstancenameListstringBoolean() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); List nodeIds = new ArrayList<>(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java index 0603560c5028..e068939cba5b 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncApplyParametersStringListstringBoolean() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); List nodeIds = new ArrayList<>(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java index 23fcd415cc48..fe8c9184535e 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 CloudMemcacheSettings cloudMemcacheSettings = CloudMemcacheSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java index 65949753d90f..0934ad350d4e 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 CloudMemcacheSettings cloudMemcacheSettings = CloudMemcacheSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetEndpoint.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetEndpoint.java index 39af71fcf163..806234a8f092 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetEndpoint.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 CloudMemcacheSettings cloudMemcacheSettings = CloudMemcacheSettings.newBuilder().setEndpoint(myEndpoint).build(); CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create(cloudMemcacheSettings); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstance.java index c39ebe7b196a..dd0145d2b241 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java index edc7256d3a29..f12855521115 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstance.java index 923976b6e48a..aa0c53050b2a 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java index 2bf89199d361..4d12877684a6 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateInstanceLocationnameInstanceString() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Instance instance = Instance.newBuilder().build(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceStringInstanceString.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceStringInstanceString.java index d2316ff545a6..d3583d71ec26 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceStringInstanceString.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceStringInstanceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateInstanceStringInstanceString() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); Instance instance = Instance.newBuilder().build(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java index 01a1b63f33b1..d23d05ddf6c6 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java index 9079cb23bc23..155d239a4df2 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java index 8dce5b7797ae..95e84ecd1864 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java index 83449acba2c2..3b38406ba6a2 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); cloudMemcacheClient.deleteInstanceAsync(name).get(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java index e907e4598815..b554dd8e33f3 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); cloudMemcacheClient.deleteInstanceAsync(name).get(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/AsyncGetInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/AsyncGetInstance.java index bea5f8ae99c4..0b528c6792e3 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/AsyncGetInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { GetInstanceRequest request = GetInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstance.java index bf43198a74b8..1c16adbed0d5 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { GetInstanceRequest request = GetInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java index 4685fb707020..9cb08a331fe7 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); Instance response = cloudMemcacheClient.getInstance(name); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceString.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceString.java index cceaefb5cc83..e39078ab6c0d 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceString.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); Instance response = cloudMemcacheClient.getInstance(name); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstances.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstances.java index 04231a5e6c2e..ae53fcd10ba0 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstances.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { ListInstancesRequest request = ListInstancesRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java index c80ac5069ec1..a7431f1d9ebe 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { ListInstancesRequest request = ListInstancesRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstances.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstances.java index f682638c3739..66fc75cefb7b 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstances.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { ListInstancesRequest request = ListInstancesRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java index 6fc1ffe8519b..5df0508eff05 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Instance element : cloudMemcacheClient.listInstances(parent).iterateAll()) { diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesString.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesString.java index 9e0823196503..c515abb148de 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesString.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Instance element : cloudMemcacheClient.listInstances(parent).iterateAll()) { diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java index 8541acae4a84..e3e9169950b3 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java index ca3ec700fa03..9621c044e512 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java index 19b6b26d0bb1..18efbd1363e9 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java index 6f0bec0c9ee0..1be490f01d34 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateInstanceInstanceFieldmask() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { Instance instance = Instance.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java index 82933ed475ae..ca906cf7a0d7 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateParameters() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { UpdateParametersRequest request = UpdateParametersRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java index 3201539954fd..c73961209216 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java @@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateParametersLRO() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { UpdateParametersRequest request = UpdateParametersRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java index 3b85b805e1ab..2768d752f9b0 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateParameters() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { UpdateParametersRequest request = UpdateParametersRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java index 82cf93b9377a..0399b0a718c7 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncUpdateParametersInstancenameFieldmaskMemcacheparameters() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java index e0a627fc9d59..9c84b93c08ba 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateParametersStringFieldmaskMemcacheparameters() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcachesettings/getinstance/SyncGetInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcachesettings/getinstance/SyncGetInstance.java index aacd9011b9ad..16ee478631a9 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcachesettings/getinstance/SyncGetInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcachesettings/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 CloudMemcacheSettings.Builder cloudMemcacheSettingsBuilder = CloudMemcacheSettings.newBuilder(); cloudMemcacheSettingsBuilder .getInstanceSettings() .setRetrySettings( - cloudMemcacheSettingsBuilder - .getInstanceSettings() - .getRetrySettings() - .toBuilder() + cloudMemcacheSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); CloudMemcacheSettings cloudMemcacheSettings = cloudMemcacheSettingsBuilder.build(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java index 05577f9b5f26..df6d2f5daf09 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java @@ -27,17 +27,17 @@ 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 CloudMemcacheStubSettings.Builder cloudMemcacheSettingsBuilder = CloudMemcacheStubSettings.newBuilder(); cloudMemcacheSettingsBuilder .getInstanceSettings() .setRetrySettings( - cloudMemcacheSettingsBuilder - .getInstanceSettings() - .getRetrySettings() - .toBuilder() + cloudMemcacheSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); CloudMemcacheStubSettings cloudMemcacheSettings = cloudMemcacheSettingsBuilder.build(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java index bd1bbb5ec769..567b170cca09 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncApplyParameters() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { ApplyParametersRequest request = ApplyParametersRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java index ae1b842f3d64..6ed52542fea9 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncApplyParametersLRO() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { ApplyParametersRequest request = ApplyParametersRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParameters.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParameters.java index 0425b703efbf..141b891aeb00 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParameters.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParameters.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncApplyParameters() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { ApplyParametersRequest request = ApplyParametersRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java index 537ad967c089..1e61ca2f6e86 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncApplyParametersInstancenameListstringBoolean() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); List nodeIds = new ArrayList<>(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java index fbb0055553df..cf6357a5de37 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncApplyParametersStringListstringBoolean() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); List nodeIds = new ArrayList<>(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdate.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdate.java index a75780296eac..dffb5f9e51cd 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdate.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdate.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncApplySoftwareUpdate() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { ApplySoftwareUpdateRequest request = ApplySoftwareUpdateRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdateLRO.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdateLRO.java index 6c960796694f..8d9e8e4ef767 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdateLRO.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdateLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncApplySoftwareUpdateLRO() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { ApplySoftwareUpdateRequest request = ApplySoftwareUpdateRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdate.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdate.java index d3f822616bdf..b8ea395a6496 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdate.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdate.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncApplySoftwareUpdate() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { ApplySoftwareUpdateRequest request = ApplySoftwareUpdateRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateInstancenameListstringBoolean.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateInstancenameListstringBoolean.java index ab80655567e1..344c357a0ab7 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateInstancenameListstringBoolean.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateInstancenameListstringBoolean.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncApplySoftwareUpdateInstancenameListstringBoolean() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); List nodeIds = new ArrayList<>(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateStringListstringBoolean.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateStringListstringBoolean.java index e387d095600e..c09d86eeaa17 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateStringListstringBoolean.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateStringListstringBoolean.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncApplySoftwareUpdateStringListstringBoolean() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { String instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); List nodeIds = new ArrayList<>(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java index dfcda128b34e..f029ab0b2826 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 CloudMemcacheSettings cloudMemcacheSettings = CloudMemcacheSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java index 35ae6daaae55..909ef30330f5 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 CloudMemcacheSettings cloudMemcacheSettings = CloudMemcacheSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetEndpoint.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetEndpoint.java index ebfedbd75252..123d5a76b9d6 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetEndpoint.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 CloudMemcacheSettings cloudMemcacheSettings = CloudMemcacheSettings.newBuilder().setEndpoint(myEndpoint).build(); CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create(cloudMemcacheSettings); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstance.java index cd8837a60c1f..a949a44cd970 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java index 7633cb7ad7e5..a4a7699d6f6e 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstance.java index 06370d4e645b..a094e85758e9 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { CreateInstanceRequest request = CreateInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java index 773cb7bc4c82..1d36e97f8e2b 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); String instanceId = "instanceId902024336"; diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceStringStringInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceStringStringInstance.java index 24ac35626690..6690e2eb595a 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceStringStringInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); String instanceId = "instanceId902024336"; diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java index 7fe059e2a146..1da5648f9435 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java index 7c078d3e9193..40352d599f09 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java index ce70006f2bc0..9409e6a465fa 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { DeleteInstanceRequest request = DeleteInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java index cd820a0d5d29..cad6864deb55 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); cloudMemcacheClient.deleteInstanceAsync(name).get(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java index 76037fc702cb..b73134eca8b7 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); cloudMemcacheClient.deleteInstanceAsync(name).get(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/AsyncGetInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/AsyncGetInstance.java index 83ab8964ec2d..a8f398725e0c 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/AsyncGetInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { GetInstanceRequest request = GetInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstance.java index 054325eaec69..457a52954b0e 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { GetInstanceRequest request = GetInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java index 9bf1c35db303..41f264909333 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); Instance response = cloudMemcacheClient.getInstance(name); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceString.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceString.java index da65faaa398f..3af86a93b9d6 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceString.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); Instance response = cloudMemcacheClient.getInstance(name); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstances.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstances.java index 12e26eb679d3..9e4de2a4641b 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstances.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { ListInstancesRequest request = ListInstancesRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java index 9f6452aa6873..5b65bd231f85 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { ListInstancesRequest request = ListInstancesRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstances.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstances.java index 0deceafaa03d..45448ca6d180 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstances.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { ListInstancesRequest request = ListInstancesRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java index 3c91cf429309..352a37cf103e 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Instance element : cloudMemcacheClient.listInstances(parent).iterateAll()) { diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesString.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesString.java index 601afe55cb0a..a8994cb4159b 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesString.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Instance element : cloudMemcacheClient.listInstances(parent).iterateAll()) { diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java index e21b6d672322..40fb9b9aac04 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java index ee3251ed5eae..e48186104cf6 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java index 493f7682f5cf..580dedcef5b8 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { UpdateInstanceRequest request = UpdateInstanceRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java index 9e72d00f0588..71c07dd09c4e 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { FieldMask updateMask = FieldMask.newBuilder().build(); Instance resource = Instance.newBuilder().build(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java index 5dfb74394e0b..376dbaa5a09b 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateParameters() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { UpdateParametersRequest request = UpdateParametersRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java index b0823fbd2127..adec47a92112 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java @@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateParametersLRO() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { UpdateParametersRequest request = UpdateParametersRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java index c4de3135dc49..2299f9aae37b 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateParameters() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { UpdateParametersRequest request = UpdateParametersRequest.newBuilder() diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java index 3a8242409f88..6ef760a3e7f8 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { public static void syncUpdateParametersInstancenameFieldmaskMemcacheparameters() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java index 03b3efaa4022..a7d4120b2c6a 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateParametersStringFieldmaskMemcacheparameters() 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 (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcachesettings/getinstance/SyncGetInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcachesettings/getinstance/SyncGetInstance.java index 7e9603050965..f3aa79167cc6 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcachesettings/getinstance/SyncGetInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcachesettings/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 CloudMemcacheSettings.Builder cloudMemcacheSettingsBuilder = CloudMemcacheSettings.newBuilder(); cloudMemcacheSettingsBuilder .getInstanceSettings() .setRetrySettings( - cloudMemcacheSettingsBuilder - .getInstanceSettings() - .getRetrySettings() - .toBuilder() + cloudMemcacheSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); CloudMemcacheSettings cloudMemcacheSettings = cloudMemcacheSettingsBuilder.build(); diff --git a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java index 0af8baf6e710..42621fcc2975 100644 --- a/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java +++ b/java-memcache/samples/snippets/generated/com/google/cloud/memcache/v1beta2/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java @@ -27,17 +27,17 @@ 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 CloudMemcacheStubSettings.Builder cloudMemcacheSettingsBuilder = CloudMemcacheStubSettings.newBuilder(); cloudMemcacheSettingsBuilder .getInstanceSettings() .setRetrySettings( - cloudMemcacheSettingsBuilder - .getInstanceSettings() - .getRetrySettings() - .toBuilder() + cloudMemcacheSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); CloudMemcacheStubSettings cloudMemcacheSettings = cloudMemcacheSettingsBuilder.build();