diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java index 23c1bef45aaa..8e9d428578ea 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java @@ -72,8 +72,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); @@ -111,8 +114,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 * CloudFilestoreManagerSettings cloudFilestoreManagerSettings = * CloudFilestoreManagerSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -124,8 +130,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 * CloudFilestoreManagerSettings cloudFilestoreManagerSettings = * CloudFilestoreManagerSettings.newBuilder().setEndpoint(myEndpoint).build(); * CloudFilestoreManagerClient cloudFilestoreManagerClient = @@ -136,8 +145,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 * CloudFilestoreManagerSettings cloudFilestoreManagerSettings = * CloudFilestoreManagerSettings.newBuilder() * .setTransportChannelProvider( @@ -231,8 +243,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -263,8 +278,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); @@ -292,8 +310,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * ListInstancesRequest request = @@ -324,8 +345,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * ListInstancesRequest request = @@ -357,8 +381,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * ListInstancesRequest request = @@ -396,8 +423,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); @@ -422,8 +452,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); @@ -447,8 +480,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * GetInstanceRequest request = @@ -473,8 +509,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * GetInstanceRequest request = @@ -501,8 +540,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -541,8 +583,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); @@ -581,8 +626,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * CreateInstanceRequest request = @@ -612,8 +660,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * CreateInstanceRequest request = @@ -643,8 +694,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * CreateInstanceRequest request = @@ -671,8 +725,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * Instance instance = Instance.newBuilder().build(); @@ -707,8 +764,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * UpdateInstanceRequest request = @@ -735,8 +795,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * UpdateInstanceRequest request = @@ -763,8 +826,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * UpdateInstanceRequest request = @@ -793,8 +859,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * RestoreInstanceRequest request = @@ -824,8 +893,11 @@ public final OperationFuturerestoreInstanceAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * RestoreInstanceRequest request = @@ -855,8 +927,11 @@ public final OperationFuturerestoreInstanceAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * RestoreInstanceRequest request = @@ -882,8 +957,11 @@ public final UnaryCallablerestoreInstanceCal * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); @@ -908,8 +986,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); @@ -933,8 +1014,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * DeleteInstanceRequest request = @@ -960,8 +1044,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * DeleteInstanceRequest request = @@ -987,8 +1074,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * DeleteInstanceRequest request = @@ -1013,8 +1103,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -1045,8 +1138,11 @@ public final ListBackupsPagedResponse listBackups(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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); @@ -1074,8 +1170,11 @@ public final ListBackupsPagedResponse listBackups(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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * ListBackupsRequest request = @@ -1106,8 +1205,11 @@ public final ListBackupsPagedResponse listBackups(ListBackupsRequest 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * ListBackupsRequest request = @@ -1139,8 +1241,11 @@ public final ListBackupsPagedResponse listBackups(ListBackupsRequest 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * ListBackupsRequest request = @@ -1178,8 +1283,11 @@ public final UnaryCallablelistBackupsC * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); @@ -1204,8 +1312,11 @@ public final Backup getBackup(BackupName 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); @@ -1229,8 +1340,11 @@ public final Backup getBackup(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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * GetBackupRequest request = @@ -1255,8 +1369,11 @@ public final Backup getBackup(GetBackupRequest 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * GetBackupRequest request = @@ -1281,8 +1398,11 @@ public final UnaryCallablegetBackupCallable() { * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -1322,8 +1442,11 @@ public final OperationFuturecreateBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); @@ -1363,8 +1486,11 @@ public final OperationFuturecreateBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * CreateBackupRequest request = @@ -1392,8 +1518,11 @@ public final OperationFuturecreateBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * CreateBackupRequest request = @@ -1421,8 +1550,11 @@ public final OperationFuturecreateBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * CreateBackupRequest request = @@ -1449,8 +1581,11 @@ public final UnaryCallablecreateBackupCallable( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); @@ -1475,8 +1610,11 @@ public final OperationFuturedeleteBackupAsync(BackupN * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); @@ -1500,8 +1638,11 @@ public final OperationFuturedeleteBackupAsync(String * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * DeleteBackupRequest request = @@ -1527,8 +1668,11 @@ public final OperationFuturedeleteBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * DeleteBackupRequest request = @@ -1554,8 +1698,11 @@ public final OperationFuturedeleteBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * DeleteBackupRequest request = @@ -1580,8 +1727,11 @@ public final UnaryCallabledeleteBackupCallable( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * Backup backup = Backup.newBuilder().build(); @@ -1609,8 +1759,11 @@ public final OperationFutureupdateBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * UpdateBackupRequest request = @@ -1637,8 +1790,11 @@ public final OperationFutureupdateBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * UpdateBackupRequest request = @@ -1665,8 +1821,11 @@ public final OperationFutureupdateBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * UpdateBackupRequest request = diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java index be91e7c1c24b..467082ec489c 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java @@ -58,8 +58,11 @@ *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 * CloudFilestoreManagerSettings.Builder cloudFilestoreManagerSettingsBuilder = * CloudFilestoreManagerSettings.newBuilder(); * cloudFilestoreManagerSettingsBuilder diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java index 28d30c0a78cd..1a93fdb1fd64 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java @@ -50,8 +50,11 @@ *Sample for CloudFilestoreManagerClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java index b6deaf5afb3f..71eab46b6adf 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStubSettings.java @@ -93,8 +93,11 @@ *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 * CloudFilestoreManagerStubSettings.Builder cloudFilestoreManagerSettingsBuilder = * CloudFilestoreManagerStubSettings.newBuilder(); * cloudFilestoreManagerSettingsBuilder diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java index e36211a8b282..268519024da1 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/HttpJsonCloudFilestoreManagerStub.java @@ -176,7 +176,7 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("instance", request.getInstance())) + .toBody("instance", request.getInstance(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -217,7 +217,7 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("instance", request.getInstance())) + .toBody("instance", request.getInstance(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -256,7 +256,7 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -400,7 +400,8 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("backup", request.getBackup())) + ProtoRestSerializer.create() + .toBody("backup", request.getBackup(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -476,7 +477,8 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("backup", request.getBackup())) + ProtoRestSerializer.create() + .toBody("backup", request.getBackup(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java index 3556832756fd..28bb918ce097 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerClient.java @@ -72,8 +72,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); @@ -111,8 +114,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 * CloudFilestoreManagerSettings cloudFilestoreManagerSettings = * CloudFilestoreManagerSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -124,8 +130,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 * CloudFilestoreManagerSettings cloudFilestoreManagerSettings = * CloudFilestoreManagerSettings.newBuilder().setEndpoint(myEndpoint).build(); * CloudFilestoreManagerClient cloudFilestoreManagerClient = @@ -136,8 +145,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 * CloudFilestoreManagerSettings cloudFilestoreManagerSettings = * CloudFilestoreManagerSettings.newBuilder() * .setTransportChannelProvider( @@ -232,8 +244,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -264,8 +279,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); @@ -293,8 +311,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * ListInstancesRequest request = @@ -325,8 +346,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * ListInstancesRequest request = @@ -358,8 +382,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * ListInstancesRequest request = @@ -397,8 +424,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); @@ -423,8 +453,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); @@ -448,8 +481,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * GetInstanceRequest request = @@ -474,8 +510,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * GetInstanceRequest request = @@ -502,8 +541,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -544,8 +586,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); @@ -586,8 +631,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * CreateInstanceRequest request = @@ -617,8 +665,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * CreateInstanceRequest request = @@ -648,8 +699,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * CreateInstanceRequest request = @@ -676,8 +730,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * Instance instance = Instance.newBuilder().build(); @@ -712,8 +769,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * UpdateInstanceRequest request = @@ -740,8 +800,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * UpdateInstanceRequest request = @@ -768,8 +831,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * UpdateInstanceRequest request = @@ -798,8 +864,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * RestoreInstanceRequest request = @@ -829,8 +898,11 @@ public final OperationFuturerestoreInstanceAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * RestoreInstanceRequest request = @@ -860,8 +932,11 @@ public final OperationFuturerestoreInstanceAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * RestoreInstanceRequest request = @@ -887,8 +962,11 @@ public final UnaryCallablerestoreInstanceCal * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); @@ -913,8 +991,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); @@ -938,8 +1019,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * DeleteInstanceRequest request = @@ -965,8 +1049,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * DeleteInstanceRequest request = @@ -992,8 +1079,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * DeleteInstanceRequest request = @@ -1018,8 +1108,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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -1050,8 +1143,11 @@ public final ListBackupsPagedResponse listBackups(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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); @@ -1079,8 +1175,11 @@ public final ListBackupsPagedResponse listBackups(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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * ListBackupsRequest request = @@ -1111,8 +1210,11 @@ public final ListBackupsPagedResponse listBackups(ListBackupsRequest 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * ListBackupsRequest request = @@ -1144,8 +1246,11 @@ public final ListBackupsPagedResponse listBackups(ListBackupsRequest 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * ListBackupsRequest request = @@ -1183,8 +1288,11 @@ public final UnaryCallablelistBackupsC * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); @@ -1209,8 +1317,11 @@ public final Backup getBackup(BackupName 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); @@ -1234,8 +1345,11 @@ public final Backup getBackup(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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * GetBackupRequest request = @@ -1260,8 +1374,11 @@ public final Backup getBackup(GetBackupRequest 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * GetBackupRequest request = @@ -1286,8 +1403,11 @@ public final UnaryCallablegetBackupCallable() { * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); @@ -1326,8 +1446,11 @@ public final OperationFuturecreateBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); @@ -1366,8 +1489,11 @@ public final OperationFuturecreateBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * CreateBackupRequest request = @@ -1395,8 +1521,11 @@ public final OperationFuturecreateBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * CreateBackupRequest request = @@ -1424,8 +1553,11 @@ public final OperationFuturecreateBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * CreateBackupRequest request = @@ -1452,8 +1584,11 @@ public final UnaryCallablecreateBackupCallable( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); @@ -1478,8 +1613,11 @@ public final OperationFuturedeleteBackupAsync(BackupN * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); @@ -1503,8 +1641,11 @@ public final OperationFuturedeleteBackupAsync(String * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * DeleteBackupRequest request = @@ -1530,8 +1671,11 @@ public final OperationFuturedeleteBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * DeleteBackupRequest request = @@ -1557,8 +1701,11 @@ public final OperationFuturedeleteBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * DeleteBackupRequest request = @@ -1583,8 +1730,11 @@ public final UnaryCallabledeleteBackupCallable( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * Backup backup = Backup.newBuilder().build(); @@ -1612,8 +1762,11 @@ public final OperationFutureupdateBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * UpdateBackupRequest request = @@ -1640,8 +1793,11 @@ public final OperationFutureupdateBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * UpdateBackupRequest request = @@ -1668,8 +1824,11 @@ public final OperationFutureupdateBackupAsync( * 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * UpdateBackupRequest request = diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java index 798d804337bd..298f570d621b 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/CloudFilestoreManagerSettings.java @@ -58,8 +58,11 @@ *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 * CloudFilestoreManagerSettings.Builder cloudFilestoreManagerSettingsBuilder = * CloudFilestoreManagerSettings.newBuilder(); * cloudFilestoreManagerSettingsBuilder diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java index 3fc5e6b525a7..58559df5759f 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/package-info.java @@ -48,8 +48,11 @@ *Sample for CloudFilestoreManagerClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = * CloudFilestoreManagerClient.create()) { * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java index fe0cde7afd72..4ad65595f3ef 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/CloudFilestoreManagerStubSettings.java @@ -93,8 +93,11 @@ *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 * CloudFilestoreManagerStubSettings.Builder cloudFilestoreManagerSettingsBuilder = * CloudFilestoreManagerStubSettings.newBuilder(); * cloudFilestoreManagerSettingsBuilder diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java index a6db15fff283..a5583d065fc7 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/HttpJsonCloudFilestoreManagerStub.java @@ -178,7 +178,7 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("instance", request.getInstance())) + .toBody("instance", request.getInstance(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -220,7 +220,7 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("instance", request.getInstance())) + .toBody("instance", request.getInstance(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -260,7 +260,7 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -406,7 +406,8 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("backup", request.getBackup())) + ProtoRestSerializer.create() + .toBody("backup", request.getBackup(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -484,7 +485,8 @@ public class HttpJsonCloudFilestoreManagerStub extends CloudFilestoreManagerStub }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("backup", request.getBackup())) + ProtoRestSerializer.create() + .toBody("backup", request.getBackup(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/create/SyncCreateSetCredentialsProvider.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/create/SyncCreateSetCredentialsProvider.java index f7c59763e18f..b45265055c4a 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 CloudFilestoreManagerSettings cloudFilestoreManagerSettings = CloudFilestoreManagerSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/create/SyncCreateSetCredentialsProvider1.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/create/SyncCreateSetCredentialsProvider1.java index c55967c33347..480e4d57dca2 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 CloudFilestoreManagerSettings cloudFilestoreManagerSettings = CloudFilestoreManagerSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/create/SyncCreateSetEndpoint.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/create/SyncCreateSetEndpoint.java index f1c0f646bddf..2e6aac894e97 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/create/SyncCreateSetEndpoint.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 CloudFilestoreManagerSettings cloudFilestoreManagerSettings = CloudFilestoreManagerSettings.newBuilder().setEndpoint(myEndpoint).build(); CloudFilestoreManagerClient cloudFilestoreManagerClient = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/AsyncCreateBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/AsyncCreateBackup.java index 64e3055769ba..200d38c270ee 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/AsyncCreateBackup.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/AsyncCreateBackup.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateBackup() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { CreateBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/AsyncCreateBackupLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/AsyncCreateBackupLRO.java index 3d6e54a1b02f..ea7b19be0c82 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/AsyncCreateBackupLRO.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/AsyncCreateBackupLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateBackupLRO() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { CreateBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/SyncCreateBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/SyncCreateBackup.java index aec63e4ba426..00bd72d06c90 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/SyncCreateBackup.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/SyncCreateBackup.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateBackup() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { CreateBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/SyncCreateBackupLocationnameBackupString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/SyncCreateBackupLocationnameBackupString.java index 0177177955dd..aa73a3f55c7e 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/SyncCreateBackupLocationnameBackupString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/SyncCreateBackupLocationnameBackupString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateBackupLocationnameBackupString() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/SyncCreateBackupStringBackupString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/SyncCreateBackupStringBackupString.java index edc2d57381a0..cbe835fad948 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/SyncCreateBackupStringBackupString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createbackup/SyncCreateBackupStringBackupString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateBackupStringBackupString() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createinstance/AsyncCreateInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createinstance/AsyncCreateInstance.java index 7a1001f26c0e..2b191c69e330 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createinstance/AsyncCreateInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { CreateInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createinstance/AsyncCreateInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createinstance/AsyncCreateInstanceLRO.java index d94f5c806fac..54e981126228 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createinstance/AsyncCreateInstanceLRO.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { CreateInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createinstance/SyncCreateInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createinstance/SyncCreateInstance.java index 36f8b59f6adf..be77d32f4929 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createinstance/SyncCreateInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { CreateInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java index 835069fca853..004789ef5786 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createinstance/SyncCreateInstanceStringInstanceString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createinstance/SyncCreateInstanceStringInstanceString.java index 3cb633834c1b..2a78b136b1ae 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/createinstance/SyncCreateInstanceStringInstanceString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/AsyncDeleteBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/AsyncDeleteBackup.java index b9f25d5e6ca2..ced60362e757 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/AsyncDeleteBackup.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/AsyncDeleteBackup.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteBackup() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { DeleteBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/AsyncDeleteBackupLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/AsyncDeleteBackupLRO.java index e6be2f41e8b0..98cc9ef92e77 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/AsyncDeleteBackupLRO.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/AsyncDeleteBackupLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteBackupLRO() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { DeleteBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackup.java index 9eec9ced95ee..2a3a590ce18a 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackup.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackup.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteBackup() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { DeleteBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackupBackupname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackupBackupname.java index 95d66590e76b..24276923a197 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackupBackupname.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackupBackupname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteBackupBackupname() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackupString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackupString.java index 97365ed8df3f..00f474992144 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackupString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackupString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteBackupString() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deleteinstance/AsyncDeleteInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deleteinstance/AsyncDeleteInstance.java index ad2a0d10a814..3a675dea5dcf 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deleteinstance/AsyncDeleteInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { DeleteInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deleteinstance/AsyncDeleteInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deleteinstance/AsyncDeleteInstanceLRO.java index 88f81e368baf..af76d2345b89 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deleteinstance/AsyncDeleteInstanceLRO.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { DeleteInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstance.java index dd5fb0299365..87c625ae4601 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { DeleteInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstanceInstancename.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstanceInstancename.java index e3a317efcdf8..42ef98910a44 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstanceInstancename.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstanceString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstanceString.java index 61a641e965f5..a37691ebb0d7 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstanceString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getbackup/AsyncGetBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getbackup/AsyncGetBackup.java index b4df3bc56d16..5e20a3020b79 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getbackup/AsyncGetBackup.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getbackup/AsyncGetBackup.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetBackup() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { GetBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getbackup/SyncGetBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getbackup/SyncGetBackup.java index 61f3b96d4e6c..48680ded29b0 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getbackup/SyncGetBackup.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getbackup/SyncGetBackup.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetBackup() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { GetBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getbackup/SyncGetBackupBackupname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getbackup/SyncGetBackupBackupname.java index 5dc063ec4093..61b3c548c5a4 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getbackup/SyncGetBackupBackupname.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getbackup/SyncGetBackupBackupname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetBackupBackupname() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getbackup/SyncGetBackupString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getbackup/SyncGetBackupString.java index fcef05c8be43..59ae9a3f066b 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getbackup/SyncGetBackupString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getbackup/SyncGetBackupString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetBackupString() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getinstance/AsyncGetInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getinstance/AsyncGetInstance.java index a236b2de15d7..847a2870cdb6 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getinstance/AsyncGetInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { GetInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getinstance/SyncGetInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getinstance/SyncGetInstance.java index 2496ef246696..d3068dd175ae 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getinstance/SyncGetInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { GetInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getinstance/SyncGetInstanceInstancename.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getinstance/SyncGetInstanceInstancename.java index 89cd872e8508..6c46fa43d094 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getinstance/SyncGetInstanceInstancename.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getinstance/SyncGetInstanceString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getinstance/SyncGetInstanceString.java index 410ea25abdd3..f85e76ef762f 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/getinstance/SyncGetInstanceString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/AsyncListBackups.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/AsyncListBackups.java index c9cce4dde56e..dc999f1798d8 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/AsyncListBackups.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/AsyncListBackups.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListBackups() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { ListBackupsRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/AsyncListBackupsPaged.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/AsyncListBackupsPaged.java index 9f07bf3c0aaf..34d8aac447ac 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/AsyncListBackupsPaged.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/AsyncListBackupsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListBackupsPaged() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { ListBackupsRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/SyncListBackups.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/SyncListBackups.java index b0ae8f307b56..9aad997242a9 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/SyncListBackups.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/SyncListBackups.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListBackups() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { ListBackupsRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/SyncListBackupsLocationname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/SyncListBackupsLocationname.java index ee03bf0d6985..cb47b1fa9dee 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/SyncListBackupsLocationname.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/SyncListBackupsLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListBackupsLocationname() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/SyncListBackupsString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/SyncListBackupsString.java index 36fb5015e8ac..b2bb4796bd7e 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/SyncListBackupsString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listbackups/SyncListBackupsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListBackupsString() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listinstances/AsyncListInstances.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listinstances/AsyncListInstances.java index 213c1f7e64b5..080822a494eb 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listinstances/AsyncListInstances.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { ListInstancesRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listinstances/AsyncListInstancesPaged.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listinstances/AsyncListInstancesPaged.java index 215d2f2c86cf..0354b65e68b8 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listinstances/AsyncListInstancesPaged.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { ListInstancesRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listinstances/SyncListInstances.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listinstances/SyncListInstances.java index e93dc20221c3..2e9943d58d3c 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listinstances/SyncListInstances.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { ListInstancesRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listinstances/SyncListInstancesLocationname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listinstances/SyncListInstancesLocationname.java index 53d9f9b19c8d..3c805344aa72 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listinstances/SyncListInstancesLocationname.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listinstances/SyncListInstancesString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listinstances/SyncListInstancesString.java index e6e99ef78eb7..c3d281955949 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/listinstances/SyncListInstancesString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/restoreinstance/AsyncRestoreInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/restoreinstance/AsyncRestoreInstance.java index 627e73e257bc..6c610eb8b2ba 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/restoreinstance/AsyncRestoreInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/restoreinstance/AsyncRestoreInstance.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncRestoreInstance() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { RestoreInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/restoreinstance/AsyncRestoreInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/restoreinstance/AsyncRestoreInstanceLRO.java index d29e8e1e9325..4a4cf9e3313f 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/restoreinstance/AsyncRestoreInstanceLRO.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/restoreinstance/AsyncRestoreInstanceLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncRestoreInstanceLRO() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { RestoreInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/restoreinstance/SyncRestoreInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/restoreinstance/SyncRestoreInstance.java index 63896d2aff37..37d6c29b45ff 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/restoreinstance/SyncRestoreInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/restoreinstance/SyncRestoreInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncRestoreInstance() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { RestoreInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updatebackup/AsyncUpdateBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updatebackup/AsyncUpdateBackup.java index 7c1d803980ae..adb565c09582 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updatebackup/AsyncUpdateBackup.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updatebackup/AsyncUpdateBackup.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateBackup() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { UpdateBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updatebackup/AsyncUpdateBackupLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updatebackup/AsyncUpdateBackupLRO.java index 8cc923ba6445..2a73c6053c1a 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updatebackup/AsyncUpdateBackupLRO.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updatebackup/AsyncUpdateBackupLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateBackupLRO() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { UpdateBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updatebackup/SyncUpdateBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updatebackup/SyncUpdateBackup.java index efacf6f4070c..0ae110d0b242 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updatebackup/SyncUpdateBackup.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updatebackup/SyncUpdateBackup.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateBackup() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { UpdateBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updatebackup/SyncUpdateBackupBackupFieldmask.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updatebackup/SyncUpdateBackupBackupFieldmask.java index e872c1effa10..bc4417147203 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updatebackup/SyncUpdateBackupBackupFieldmask.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updatebackup/SyncUpdateBackupBackupFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateBackupBackupFieldmask() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { Backup backup = Backup.newBuilder().build(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updateinstance/AsyncUpdateInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updateinstance/AsyncUpdateInstance.java index e49d70925f4b..d82c8e98a1fc 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updateinstance/AsyncUpdateInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { UpdateInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updateinstance/AsyncUpdateInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updateinstance/AsyncUpdateInstanceLRO.java index 0cbeb2de2bd3..0b5a55dd3eed 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updateinstance/AsyncUpdateInstanceLRO.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { UpdateInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updateinstance/SyncUpdateInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updateinstance/SyncUpdateInstance.java index 7ce812372947..15a116512baf 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updateinstance/SyncUpdateInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { UpdateInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java index 42dbce80ffc4..6abb6f17fb02 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { Instance instance = Instance.newBuilder().build(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java index ff44b8b7bc81..859a27737b88 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java @@ -27,8 +27,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 CloudFilestoreManagerSettings.Builder cloudFilestoreManagerSettingsBuilder = CloudFilestoreManagerSettings.newBuilder(); cloudFilestoreManagerSettingsBuilder diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java index d8a10e166341..e99a270583fc 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java @@ -27,8 +27,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 CloudFilestoreManagerStubSettings.Builder cloudFilestoreManagerSettingsBuilder = CloudFilestoreManagerStubSettings.newBuilder(); cloudFilestoreManagerSettingsBuilder diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/create/SyncCreateSetCredentialsProvider.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/create/SyncCreateSetCredentialsProvider.java index b09f5c53bb6a..45eada5592d8 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 CloudFilestoreManagerSettings cloudFilestoreManagerSettings = CloudFilestoreManagerSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/create/SyncCreateSetCredentialsProvider1.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/create/SyncCreateSetCredentialsProvider1.java index da68b0b05552..0c48c4d34ad5 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 CloudFilestoreManagerSettings cloudFilestoreManagerSettings = CloudFilestoreManagerSettings.newBuilder() .setTransportChannelProvider( diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/create/SyncCreateSetEndpoint.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/create/SyncCreateSetEndpoint.java index 3a997277fe23..1fadb7732675 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/create/SyncCreateSetEndpoint.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 CloudFilestoreManagerSettings cloudFilestoreManagerSettings = CloudFilestoreManagerSettings.newBuilder().setEndpoint(myEndpoint).build(); CloudFilestoreManagerClient cloudFilestoreManagerClient = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/AsyncCreateBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/AsyncCreateBackup.java index 38717f70a1d7..ba6705e4a6da 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/AsyncCreateBackup.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/AsyncCreateBackup.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateBackup() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { CreateBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/AsyncCreateBackupLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/AsyncCreateBackupLRO.java index e2c04c78abf4..3bb6422840b2 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/AsyncCreateBackupLRO.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/AsyncCreateBackupLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateBackupLRO() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { CreateBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/SyncCreateBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/SyncCreateBackup.java index 5e4ac9a79235..a471740c6d1e 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/SyncCreateBackup.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/SyncCreateBackup.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateBackup() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { CreateBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/SyncCreateBackupLocationnameBackupString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/SyncCreateBackupLocationnameBackupString.java index 9530347c057f..601c90e77735 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/SyncCreateBackupLocationnameBackupString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/SyncCreateBackupLocationnameBackupString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateBackupLocationnameBackupString() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/SyncCreateBackupStringBackupString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/SyncCreateBackupStringBackupString.java index cdf86e030495..8c49975ac5f1 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/SyncCreateBackupStringBackupString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createbackup/SyncCreateBackupStringBackupString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateBackupStringBackupString() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createinstance/AsyncCreateInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createinstance/AsyncCreateInstance.java index 4aece0eeb995..e218f441aae8 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createinstance/AsyncCreateInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { CreateInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createinstance/AsyncCreateInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createinstance/AsyncCreateInstanceLRO.java index 1071b4cc7f2c..f9891e2ea42c 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createinstance/AsyncCreateInstanceLRO.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { CreateInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createinstance/SyncCreateInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createinstance/SyncCreateInstance.java index cf8712405d22..c8118e6271fa 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createinstance/SyncCreateInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { CreateInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java index 6a341fa78fc7..2c7e069053b3 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createinstance/SyncCreateInstanceStringInstanceString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createinstance/SyncCreateInstanceStringInstanceString.java index 54807b78ee8a..c2942d4eba1f 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/createinstance/SyncCreateInstanceStringInstanceString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/AsyncDeleteBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/AsyncDeleteBackup.java index ac9f5b9c6d0e..d79609de3477 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/AsyncDeleteBackup.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/AsyncDeleteBackup.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteBackup() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { DeleteBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/AsyncDeleteBackupLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/AsyncDeleteBackupLRO.java index ceca8a8df3cc..c5ffc41305f6 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/AsyncDeleteBackupLRO.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/AsyncDeleteBackupLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteBackupLRO() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { DeleteBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackup.java index b877c08f1871..2e09de3ccb61 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackup.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackup.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteBackup() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { DeleteBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackupBackupname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackupBackupname.java index 5c872f2a8b0c..947f03abc6db 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackupBackupname.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackupBackupname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteBackupBackupname() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackupString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackupString.java index 73745ccb70d7..7e126335577a 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackupString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deletebackup/SyncDeleteBackupString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteBackupString() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deleteinstance/AsyncDeleteInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deleteinstance/AsyncDeleteInstance.java index 7c74e56c47db..6bd4872dd0a6 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deleteinstance/AsyncDeleteInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { DeleteInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deleteinstance/AsyncDeleteInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deleteinstance/AsyncDeleteInstanceLRO.java index e20b4c6cef50..347e285ce009 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deleteinstance/AsyncDeleteInstanceLRO.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { DeleteInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstance.java index c956f4d56743..6b0a8876a04e 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { DeleteInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstanceInstancename.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstanceInstancename.java index 88acc0982192..0df567d44a6b 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstanceInstancename.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstanceString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstanceString.java index 70775e0bb9ad..1a8d0910d2aa 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/deleteinstance/SyncDeleteInstanceString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getbackup/AsyncGetBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getbackup/AsyncGetBackup.java index b29ff1d7f649..a68efcfd1204 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getbackup/AsyncGetBackup.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getbackup/AsyncGetBackup.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetBackup() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { GetBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getbackup/SyncGetBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getbackup/SyncGetBackup.java index c0e30720fb17..cb8092c16c1e 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getbackup/SyncGetBackup.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getbackup/SyncGetBackup.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetBackup() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { GetBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getbackup/SyncGetBackupBackupname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getbackup/SyncGetBackupBackupname.java index ace688982c69..401875a9aa3d 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getbackup/SyncGetBackupBackupname.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getbackup/SyncGetBackupBackupname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetBackupBackupname() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getbackup/SyncGetBackupString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getbackup/SyncGetBackupString.java index 54f2148be843..30777718ffae 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getbackup/SyncGetBackupString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getbackup/SyncGetBackupString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetBackupString() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getinstance/AsyncGetInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getinstance/AsyncGetInstance.java index a4e93e5fa7e0..26286f163fe7 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getinstance/AsyncGetInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { GetInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getinstance/SyncGetInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getinstance/SyncGetInstance.java index a433ed0fe02b..6387a6dc82c3 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getinstance/SyncGetInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { GetInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getinstance/SyncGetInstanceInstancename.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getinstance/SyncGetInstanceInstancename.java index 66bc2caed2fe..ea2f9bf64f37 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getinstance/SyncGetInstanceInstancename.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getinstance/SyncGetInstanceString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getinstance/SyncGetInstanceString.java index 5e5c7e597b7a..ac8e978ca1ef 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/getinstance/SyncGetInstanceString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/AsyncListBackups.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/AsyncListBackups.java index 18316ed04087..fc45422ce067 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/AsyncListBackups.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/AsyncListBackups.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListBackups() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { ListBackupsRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/AsyncListBackupsPaged.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/AsyncListBackupsPaged.java index 89be677d26e9..9d3e3e679bc3 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/AsyncListBackupsPaged.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/AsyncListBackupsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListBackupsPaged() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { ListBackupsRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/SyncListBackups.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/SyncListBackups.java index 5e8e3a97ae9d..bad8afcd41f7 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/SyncListBackups.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/SyncListBackups.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListBackups() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { ListBackupsRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/SyncListBackupsLocationname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/SyncListBackupsLocationname.java index 2a5f6d53b764..5b2183e37ef6 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/SyncListBackupsLocationname.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/SyncListBackupsLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListBackupsLocationname() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/SyncListBackupsString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/SyncListBackupsString.java index 7b02b45b3978..2675f3d0769d 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/SyncListBackupsString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listbackups/SyncListBackupsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListBackupsString() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listinstances/AsyncListInstances.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listinstances/AsyncListInstances.java index a785979a6596..cc60955b0919 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listinstances/AsyncListInstances.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { ListInstancesRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listinstances/AsyncListInstancesPaged.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listinstances/AsyncListInstancesPaged.java index ea6275b185b5..bc3de8f11b50 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listinstances/AsyncListInstancesPaged.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { ListInstancesRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listinstances/SyncListInstances.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listinstances/SyncListInstances.java index d889bba0687f..85e90d7dbd7e 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listinstances/SyncListInstances.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { ListInstancesRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listinstances/SyncListInstancesLocationname.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listinstances/SyncListInstancesLocationname.java index b29cbeb9b4d0..950b02c06ecc 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listinstances/SyncListInstancesLocationname.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listinstances/SyncListInstancesString.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listinstances/SyncListInstancesString.java index b4723dcaf318..21b761cee37b 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/listinstances/SyncListInstancesString.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/restoreinstance/AsyncRestoreInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/restoreinstance/AsyncRestoreInstance.java index fbc467cbae0c..5f9893817d1a 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/restoreinstance/AsyncRestoreInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/restoreinstance/AsyncRestoreInstance.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncRestoreInstance() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { RestoreInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/restoreinstance/AsyncRestoreInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/restoreinstance/AsyncRestoreInstanceLRO.java index bb43a5796cf7..7c195c1ff856 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/restoreinstance/AsyncRestoreInstanceLRO.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/restoreinstance/AsyncRestoreInstanceLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncRestoreInstanceLRO() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { RestoreInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/restoreinstance/SyncRestoreInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/restoreinstance/SyncRestoreInstance.java index d3e3588e53f8..4e6f718197c5 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/restoreinstance/SyncRestoreInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/restoreinstance/SyncRestoreInstance.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncRestoreInstance() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { RestoreInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updatebackup/AsyncUpdateBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updatebackup/AsyncUpdateBackup.java index d0930f68b179..62eb6fa53830 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updatebackup/AsyncUpdateBackup.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updatebackup/AsyncUpdateBackup.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateBackup() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { UpdateBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updatebackup/AsyncUpdateBackupLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updatebackup/AsyncUpdateBackupLRO.java index 3b93f38473ee..3827534e74ec 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updatebackup/AsyncUpdateBackupLRO.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updatebackup/AsyncUpdateBackupLRO.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateBackupLRO() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { UpdateBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updatebackup/SyncUpdateBackup.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updatebackup/SyncUpdateBackup.java index 222234e3ba52..9a410c17af9b 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updatebackup/SyncUpdateBackup.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updatebackup/SyncUpdateBackup.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateBackup() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { UpdateBackupRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updatebackup/SyncUpdateBackupBackupFieldmask.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updatebackup/SyncUpdateBackupBackupFieldmask.java index 8efe77f0fd83..49f978dca4d3 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updatebackup/SyncUpdateBackupBackupFieldmask.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updatebackup/SyncUpdateBackupBackupFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateBackupBackupFieldmask() 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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { Backup backup = Backup.newBuilder().build(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updateinstance/AsyncUpdateInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updateinstance/AsyncUpdateInstance.java index 18fe46689fe0..2e57c874ed86 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updateinstance/AsyncUpdateInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { UpdateInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updateinstance/AsyncUpdateInstanceLRO.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updateinstance/AsyncUpdateInstanceLRO.java index 38cb997e8253..210e2c17a5cf 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updateinstance/AsyncUpdateInstanceLRO.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { UpdateInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updateinstance/SyncUpdateInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updateinstance/SyncUpdateInstance.java index 0c826902e31c..1368d1fa3f96 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updateinstance/SyncUpdateInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { UpdateInstanceRequest request = diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java index e8324ffa61a7..8bbb7b08e9a5 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagerclient/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 (CloudFilestoreManagerClient cloudFilestoreManagerClient = CloudFilestoreManagerClient.create()) { Instance instance = Instance.newBuilder().build(); diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java index e856cb1747b3..f06944fef06c 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/cloudfilestoremanagersettings/getinstance/SyncGetInstance.java @@ -27,8 +27,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 CloudFilestoreManagerSettings.Builder cloudFilestoreManagerSettingsBuilder = CloudFilestoreManagerSettings.newBuilder(); cloudFilestoreManagerSettingsBuilder diff --git a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java index 2f07b2210b23..ede339c127db 100644 --- a/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java +++ b/java-filestore/samples/snippets/generated/com/google/cloud/filestore/v1beta1/stub/cloudfilestoremanagerstubsettings/getinstance/SyncGetInstance.java @@ -27,8 +27,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 CloudFilestoreManagerStubSettings.Builder cloudFilestoreManagerSettingsBuilder = CloudFilestoreManagerStubSettings.newBuilder(); cloudFilestoreManagerSettingsBuilder