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 dcfc080cc7a1..fe0cde7afd72 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 @@ -776,13 +776,13 @@ private static Builder initDefaults(Builder builder) { .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setInitialRetryDelay(Duration.ofMillis(60000L)) .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setMaxRetryDelay(Duration.ofMillis(360000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) + .setTotalTimeout(Duration.ofMillis(900000L)) .build())); builder @@ -800,13 +800,13 @@ private static Builder initDefaults(Builder builder) { .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setInitialRetryDelay(Duration.ofMillis(60000L)) .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setMaxRetryDelay(Duration.ofMillis(360000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) + .setTotalTimeout(Duration.ofMillis(7200000L)) .build())); builder diff --git a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java deleted file mode 100644 index c97fcd964bd9..000000000000 --- a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java +++ /dev/null @@ -1,1854 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.filestore.v1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.httpjson.longrunning.OperationsClient; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.common.OperationMetadata; -import com.google.cloud.filestore.v1.stub.CloudFilestoreManagerStub; -import com.google.cloud.filestore.v1.stub.CloudFilestoreManagerStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Configures and manages Cloud Filestore resources. - * - *
Cloud Filestore Manager v1. - * - *
The `file.googleapis.com` service implements the Cloud Filestore API and defines the following - * resource model for managing instances: - * - *
Note that location_id must be a GCP `zone` for instances and but to a GCP `region` for - * backups; for example: - * - *
This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); - * Instance response = cloudFilestoreManagerClient.getInstance(name); - * } - * }- * - *
Note: close() needs to be called on the CloudFilestoreManagerClient object to clean up - * resources such as threads. In the example above, try-with-resources is used, which automatically - * calls close(). - * - *
The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *
See the individual methods for example code. - * - *
Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *
This class can be customized by passing in a custom instance of CloudFilestoreManagerSettings - * to create(). For example: - * - *
To customize credentials: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * CloudFilestoreManagerSettings cloudFilestoreManagerSettings = - * CloudFilestoreManagerSettings.newBuilder() - * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - * .build(); - * CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create(cloudFilestoreManagerSettings); - * }- * - *
To customize the endpoint: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * CloudFilestoreManagerSettings cloudFilestoreManagerSettings = - * CloudFilestoreManagerSettings.newBuilder().setEndpoint(myEndpoint).build(); - * CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create(cloudFilestoreManagerSettings); - * }- * - *
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * CloudFilestoreManagerSettings cloudFilestoreManagerSettings = - * CloudFilestoreManagerSettings.newBuilder() - * .setTransportChannelProvider( - * CloudFilestoreManagerSettings.defaultHttpJsonTransportProviderBuilder().build()) - * .build(); - * CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create(cloudFilestoreManagerSettings); - * }- * - *
Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class CloudFilestoreManagerClient implements BackgroundResource { - private final CloudFilestoreManagerSettings settings; - private final CloudFilestoreManagerStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of CloudFilestoreManagerClient with default settings. */ - public static final CloudFilestoreManagerClient create() throws IOException { - return create(CloudFilestoreManagerSettings.newBuilder().build()); - } - - /** - * Constructs an instance of CloudFilestoreManagerClient, using the given settings. The channels - * are created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final CloudFilestoreManagerClient create(CloudFilestoreManagerSettings settings) - throws IOException { - return new CloudFilestoreManagerClient(settings); - } - - /** - * Constructs an instance of CloudFilestoreManagerClient, using the given stub for making calls. - * This is for advanced usage - prefer using create(CloudFilestoreManagerSettings). - */ - public static final CloudFilestoreManagerClient create(CloudFilestoreManagerStub stub) { - return new CloudFilestoreManagerClient(stub); - } - - /** - * Constructs an instance of CloudFilestoreManagerClient, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected CloudFilestoreManagerClient(CloudFilestoreManagerSettings settings) throws IOException { - this.settings = settings; - this.stub = ((CloudFilestoreManagerStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected CloudFilestoreManagerClient(CloudFilestoreManagerStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final CloudFilestoreManagerSettings getSettings() { - return settings; - } - - public CloudFilestoreManagerStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all instances in a project for either a specified location or for all locations. - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (Instance element : cloudFilestoreManagerClient.listInstances(parent).iterateAll()) { - * // doThingsWith(element); - * } - * } - * }- * - * @param parent Required. The project and location for which to retrieve instance information, in - * the format `projects/{project_id}/locations/{location}`. In Cloud Filestore, locations map - * to GCP zones, for example **us-west1-b**. To retrieve instance information - * for all locations, use "-" for the `{location}` value. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListInstancesPagedResponse listInstances(LocationName parent) { - ListInstancesRequest request = - ListInstancesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listInstances(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all instances in a project for either a specified location or for all locations. - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (Instance element : cloudFilestoreManagerClient.listInstances(parent).iterateAll()) { - * // doThingsWith(element); - * } - * } - * }- * - * @param parent Required. The project and location for which to retrieve instance information, in - * the format `projects/{project_id}/locations/{location}`. In Cloud Filestore, locations map - * to GCP zones, for example **us-west1-b**. To retrieve instance information - * for all locations, use "-" for the `{location}` value. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListInstancesPagedResponse listInstances(String parent) { - ListInstancesRequest request = ListInstancesRequest.newBuilder().setParent(parent).build(); - return listInstances(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all instances in a project for either a specified location or for all locations. - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * ListInstancesRequest request = - * ListInstancesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") - * .build(); - * for (Instance element : cloudFilestoreManagerClient.listInstances(request).iterateAll()) { - * // doThingsWith(element); - * } - * } - * }- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListInstancesPagedResponse listInstances(ListInstancesRequest request) { - return listInstancesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all instances in a project for either a specified location or for all locations. - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * ListInstancesRequest request = - * ListInstancesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") - * .build(); - * ApiFuture- */ - public final UnaryCallablefuture = - * cloudFilestoreManagerClient.listInstancesPagedCallable().futureCall(request); - * // Do something. - * for (Instance element : future.get().iterateAll()) { - * // doThingsWith(element); - * } - * } - * }
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * ListInstancesRequest request = - * ListInstancesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") - * .build(); - * while (true) { - * ListInstancesResponse response = - * cloudFilestoreManagerClient.listInstancesCallable().call(request); - * for (Instance element : response.getInstancesList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } - * } - * }- */ - public final UnaryCallable
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); - * Instance response = cloudFilestoreManagerClient.getInstance(name); - * } - * }- * - * @param name Required. The instance resource name, in the format - * `projects/{project_id}/locations/{location}/instances/{instance_id}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Instance getInstance(InstanceName name) { - GetInstanceRequest request = - GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getInstance(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the details of a specific instance. - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); - * Instance response = cloudFilestoreManagerClient.getInstance(name); - * } - * }- * - * @param name Required. The instance resource name, in the format - * `projects/{project_id}/locations/{location}/instances/{instance_id}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Instance getInstance(String name) { - GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name).build(); - return getInstance(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the details of a specific instance. - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * GetInstanceRequest request = - * GetInstanceRequest.newBuilder() - * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - * .build(); - * Instance response = cloudFilestoreManagerClient.getInstance(request); - * } - * }- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Instance getInstance(GetInstanceRequest request) { - return getInstanceCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the details of a specific instance. - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * GetInstanceRequest request = - * GetInstanceRequest.newBuilder() - * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - * .build(); - * ApiFuture- */ - public final UnaryCallablefuture = - * cloudFilestoreManagerClient.getInstanceCallable().futureCall(request); - * // Do something. - * Instance response = future.get(); - * } - * }
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * Instance instance = Instance.newBuilder().build(); - * String instanceId = "instanceId902024336"; - * Instance response = - * cloudFilestoreManagerClient.createInstanceAsync(parent, instance, instanceId).get(); - * } - * }- * - * @param parent Required. The instance's project and location, in the format - * `projects/{project_id}/locations/{location}`. In Cloud Filestore, locations map to GCP - * zones, for example **us-west1-b**. - * @param instance Required. An [instance resource][google.cloud.filestore.v1.Instance] - * @param instanceId Required. The name of the instance to create. The name must be unique for the - * specified project and location. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * Instance instance = Instance.newBuilder().build(); - * String instanceId = "instanceId902024336"; - * Instance response = - * cloudFilestoreManagerClient.createInstanceAsync(parent, instance, instanceId).get(); - * } - * }- * - * @param parent Required. The instance's project and location, in the format - * `projects/{project_id}/locations/{location}`. In Cloud Filestore, locations map to GCP - * zones, for example **us-west1-b**. - * @param instance Required. An [instance resource][google.cloud.filestore.v1.Instance] - * @param instanceId Required. The name of the instance to create. The name must be unique for the - * specified project and location. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * CreateInstanceRequest request = - * CreateInstanceRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setInstanceId("instanceId902024336") - * .setInstance(Instance.newBuilder().build()) - * .build(); - * Instance response = cloudFilestoreManagerClient.createInstanceAsync(request).get(); - * } - * }- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * CreateInstanceRequest request = - * CreateInstanceRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setInstanceId("instanceId902024336") - * .setInstance(Instance.newBuilder().build()) - * .build(); - * OperationFuture- */ - public final OperationCallablefuture = - * cloudFilestoreManagerClient.createInstanceOperationCallable().futureCall(request); - * // Do something. - * Instance response = future.get(); - * } - * }
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * CreateInstanceRequest request = - * CreateInstanceRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setInstanceId("instanceId902024336") - * .setInstance(Instance.newBuilder().build()) - * .build(); - * ApiFuture- */ - public final UnaryCallablefuture = - * cloudFilestoreManagerClient.createInstanceCallable().futureCall(request); - * // Do something. - * Operation response = future.get(); - * } - * }
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * Instance instance = Instance.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * Instance response = - * cloudFilestoreManagerClient.updateInstanceAsync(instance, updateMask).get(); - * } - * }- * - * @param instance Only fields specified in update_mask are updated. - * @param updateMask Mask of fields to update. At least one path must be supplied in this field. - * The elements of the repeated paths field may only include these fields: - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * UpdateInstanceRequest request = - * UpdateInstanceRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setInstance(Instance.newBuilder().build()) - * .build(); - * Instance response = cloudFilestoreManagerClient.updateInstanceAsync(request).get(); - * } - * }- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * UpdateInstanceRequest request = - * UpdateInstanceRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setInstance(Instance.newBuilder().build()) - * .build(); - * OperationFuture- */ - public final OperationCallablefuture = - * cloudFilestoreManagerClient.updateInstanceOperationCallable().futureCall(request); - * // Do something. - * Instance response = future.get(); - * } - * }
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * UpdateInstanceRequest request = - * UpdateInstanceRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setInstance(Instance.newBuilder().build()) - * .build(); - * ApiFuture- */ - public final UnaryCallablefuture = - * cloudFilestoreManagerClient.updateInstanceCallable().futureCall(request); - * // Do something. - * Operation response = future.get(); - * } - * }
The capacity of the instance needs to be equal to or larger than the capacity of the backup - * (and also equal to or larger than the minimum capacity of the tier). - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * RestoreInstanceRequest request = - * RestoreInstanceRequest.newBuilder() - * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - * .setFileShare("fileShare-1327728701") - * .build(); - * Instance response = cloudFilestoreManagerClient.restoreInstanceAsync(request).get(); - * } - * }- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture
The capacity of the instance needs to be equal to or larger than the capacity of the backup - * (and also equal to or larger than the minimum capacity of the tier). - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * RestoreInstanceRequest request = - * RestoreInstanceRequest.newBuilder() - * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - * .setFileShare("fileShare-1327728701") - * .build(); - * OperationFuture- */ - public final OperationCallablefuture = - * cloudFilestoreManagerClient.restoreInstanceOperationCallable().futureCall(request); - * // Do something. - * Instance response = future.get(); - * } - * }
The capacity of the instance needs to be equal to or larger than the capacity of the backup - * (and also equal to or larger than the minimum capacity of the tier). - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * RestoreInstanceRequest request = - * RestoreInstanceRequest.newBuilder() - * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - * .setFileShare("fileShare-1327728701") - * .build(); - * ApiFuture- */ - public final UnaryCallablefuture = - * cloudFilestoreManagerClient.restoreInstanceCallable().futureCall(request); - * // Do something. - * Operation response = future.get(); - * } - * }
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); - * cloudFilestoreManagerClient.deleteInstanceAsync(name).get(); - * } - * }- * - * @param name Required. The instance resource name, in the format - * `projects/{project_id}/locations/{location}/instances/{instance_id}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); - * cloudFilestoreManagerClient.deleteInstanceAsync(name).get(); - * } - * }- * - * @param name Required. The instance resource name, in the format - * `projects/{project_id}/locations/{location}/instances/{instance_id}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * DeleteInstanceRequest request = - * DeleteInstanceRequest.newBuilder() - * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - * .build(); - * cloudFilestoreManagerClient.deleteInstanceAsync(request).get(); - * } - * }- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * DeleteInstanceRequest request = - * DeleteInstanceRequest.newBuilder() - * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - * .build(); - * OperationFuture- */ - public final OperationCallablefuture = - * cloudFilestoreManagerClient.deleteInstanceOperationCallable().futureCall(request); - * // Do something. - * future.get(); - * } - * }
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * DeleteInstanceRequest request = - * DeleteInstanceRequest.newBuilder() - * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) - * .build(); - * ApiFuture- */ - public final UnaryCallablefuture = - * cloudFilestoreManagerClient.deleteInstanceCallable().futureCall(request); - * // Do something. - * future.get(); - * } - * }
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (Backup element : cloudFilestoreManagerClient.listBackups(parent).iterateAll()) { - * // doThingsWith(element); - * } - * } - * }- * - * @param parent Required. The project and location for which to retrieve backup information, in - * the format `projects/{project_number}/locations/{location}`. In Cloud Filestore, backup - * locations map to GCP regions, for example **us-west1**. To retrieve backup - * information for all locations, use "-" for the `{location}` value. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListBackupsPagedResponse listBackups(LocationName parent) { - ListBackupsRequest request = - ListBackupsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listBackups(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all backups in a project for either a specified location or for all locations. - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (Backup element : cloudFilestoreManagerClient.listBackups(parent).iterateAll()) { - * // doThingsWith(element); - * } - * } - * }- * - * @param parent Required. The project and location for which to retrieve backup information, in - * the format `projects/{project_number}/locations/{location}`. In Cloud Filestore, backup - * locations map to GCP regions, for example **us-west1**. To retrieve backup - * information for all locations, use "-" for the `{location}` value. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListBackupsPagedResponse listBackups(String parent) { - ListBackupsRequest request = ListBackupsRequest.newBuilder().setParent(parent).build(); - return listBackups(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all backups in a project for either a specified location or for all locations. - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * ListBackupsRequest request = - * ListBackupsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") - * .build(); - * for (Backup element : cloudFilestoreManagerClient.listBackups(request).iterateAll()) { - * // doThingsWith(element); - * } - * } - * }- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListBackupsPagedResponse listBackups(ListBackupsRequest request) { - return listBackupsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all backups in a project for either a specified location or for all locations. - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * ListBackupsRequest request = - * ListBackupsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") - * .build(); - * ApiFuture- */ - public final UnaryCallablefuture = - * cloudFilestoreManagerClient.listBackupsPagedCallable().futureCall(request); - * // Do something. - * for (Backup element : future.get().iterateAll()) { - * // doThingsWith(element); - * } - * } - * }
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * ListBackupsRequest request = - * ListBackupsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setOrderBy("orderBy-1207110587") - * .setFilter("filter-1274492040") - * .build(); - * while (true) { - * ListBackupsResponse response = - * cloudFilestoreManagerClient.listBackupsCallable().call(request); - * for (Backup element : response.getBackupsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } - * } - * }- */ - public final UnaryCallable
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); - * Backup response = cloudFilestoreManagerClient.getBackup(name); - * } - * }- * - * @param name Required. The backup resource name, in the format - * `projects/{project_number}/locations/{location}/backups/{backup_id}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Backup getBackup(BackupName name) { - GetBackupRequest request = - GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getBackup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the details of a specific backup. - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); - * Backup response = cloudFilestoreManagerClient.getBackup(name); - * } - * }- * - * @param name Required. The backup resource name, in the format - * `projects/{project_number}/locations/{location}/backups/{backup_id}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Backup getBackup(String name) { - GetBackupRequest request = GetBackupRequest.newBuilder().setName(name).build(); - return getBackup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the details of a specific backup. - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * GetBackupRequest request = - * GetBackupRequest.newBuilder() - * .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) - * .build(); - * Backup response = cloudFilestoreManagerClient.getBackup(request); - * } - * }- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Backup getBackup(GetBackupRequest request) { - return getBackupCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the details of a specific backup. - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * GetBackupRequest request = - * GetBackupRequest.newBuilder() - * .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) - * .build(); - * ApiFuture- */ - public final UnaryCallablefuture = - * cloudFilestoreManagerClient.getBackupCallable().futureCall(request); - * // Do something. - * Backup response = future.get(); - * } - * }
Sample code: - * - *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. - * try (CloudFilestoreManagerClient cloudFilestoreManagerClient = - * CloudFilestoreManagerClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * Backup backup = Backup.newBuilder().build(); - * String backupId = "backupId2121930365"; - * Backup response = - * cloudFilestoreManagerClient.createBackupAsync(parent, backup, backupId).get(); - * } - * }- * - * @param parent Required. The backup's project and location, in the format - * `projects/{project_number}/locations/{location}`. In Cloud Filestore, backup locations map - * to GCP regions, for example **us-west1**. - * @param backup Required. A [backup resource][google.cloud.filestore.v1.Backup] - * @param backupId Required. The ID to use for the backup. The ID must be unique within the - * specified project and location. - *
This value must start with a lowercase letter followed by up to 62 lowercase letters,
- * numbers, or hyphens, and cannot end with a hyphen. Values that do not match this pattern
- * will trigger an INVALID_ARGUMENT error.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final OperationFuture Sample code:
- *
- * This value must start with a lowercase letter followed by up to 62 lowercase letters,
- * numbers, or hyphens, and cannot end with a hyphen. Values that do not match this pattern
- * will trigger an INVALID_ARGUMENT error.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final OperationFuture Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * The default instance has everything set to sensible defaults:
- *
- * The builder of this class is recursive, so contained classes are themselves builders. When
- * build() is called, the tree of builders is called to create the complete settings object.
- *
- * For example, to set the total timeout of getInstance to 30 seconds:
- *
- * Note: This method does not support applying settings to streaming methods.
- */
- public Builder applyToAllUnaryMethods(
- ApiFunction The interfaces provided are listed below, along with usage samples.
- *
- * ======================= CloudFilestoreManagerClient =======================
- *
- * Service Description: Configures and manages Cloud Filestore resources.
- *
- * Cloud Filestore Manager v1.
- *
- * The `file.googleapis.com` service implements the Cloud Filestore API and defines the following
- * resource model for managing instances:
- *
- * Note that location_id must be a GCP `zone` for instances and but to a GCP `region` for
- * backups; for example:
- *
- * Sample for CloudFilestoreManagerClient:
- *
- * This class is for advanced usage and reflects the underlying API directly.
- */
-@Generated("by gapic-generator-java")
-public abstract class CloudFilestoreManagerStub implements BackgroundResource {
-
- public OperationsStub getOperationsStub() {
- return null;
- }
-
- public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() {
- return null;
- }
-
- public UnaryCallable The default instance has everything set to sensible defaults:
- *
- * The builder of this class is recursive, so contained classes are themselves builders. When
- * build() is called, the tree of builders is called to create the complete settings object.
- *
- * For example, to set the total timeout of getInstance to 30 seconds:
- *
- * Note: This method does not support applying settings to streaming methods.
- */
- public Builder applyToAllUnaryMethods(
- ApiFunction This class is for advanced usage.
- */
-@Generated("by gapic-generator-java")
-public class GrpcCloudFilestoreManagerCallableFactory implements GrpcStubCallableFactory {
-
- @Override
- public {@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
- * CloudFilestoreManagerClient.create()) {
- * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
- * Backup backup = Backup.newBuilder().build();
- * String backupId = "backupId2121930365";
- * Backup response =
- * cloudFilestoreManagerClient.createBackupAsync(parent, backup, backupId).get();
- * }
- * }
- *
- * @param parent Required. The backup's project and location, in the format
- * `projects/{project_number}/locations/{location}`. In Cloud Filestore, backup locations map
- * to GCP regions, for example **us-west1**.
- * @param backup Required. A [backup resource][google.cloud.filestore.v1.Backup]
- * @param backupId Required. The ID to use for the backup. The ID must be unique within the
- * specified project and location.
- * {@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
- * CloudFilestoreManagerClient.create()) {
- * CreateBackupRequest request =
- * CreateBackupRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setBackup(Backup.newBuilder().build())
- * .setBackupId("backupId2121930365")
- * .build();
- * Backup response = cloudFilestoreManagerClient.createBackupAsync(request).get();
- * }
- * }
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final OperationFuture{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
- * CloudFilestoreManagerClient.create()) {
- * CreateBackupRequest request =
- * CreateBackupRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setBackup(Backup.newBuilder().build())
- * .setBackupId("backupId2121930365")
- * .build();
- * OperationFuture
- */
- public final OperationCallable{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
- * CloudFilestoreManagerClient.create()) {
- * CreateBackupRequest request =
- * CreateBackupRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setBackup(Backup.newBuilder().build())
- * .setBackupId("backupId2121930365")
- * .build();
- * ApiFuture
- */
- public final UnaryCallable{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
- * CloudFilestoreManagerClient.create()) {
- * BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
- * cloudFilestoreManagerClient.deleteBackupAsync(name).get();
- * }
- * }
- *
- * @param name Required. The backup resource name, in the format
- * `projects/{project_number}/locations/{location}/backups/{backup_id}`
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final OperationFuture{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
- * CloudFilestoreManagerClient.create()) {
- * String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString();
- * cloudFilestoreManagerClient.deleteBackupAsync(name).get();
- * }
- * }
- *
- * @param name Required. The backup resource name, in the format
- * `projects/{project_number}/locations/{location}/backups/{backup_id}`
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final OperationFuture{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
- * CloudFilestoreManagerClient.create()) {
- * DeleteBackupRequest request =
- * DeleteBackupRequest.newBuilder()
- * .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
- * .build();
- * cloudFilestoreManagerClient.deleteBackupAsync(request).get();
- * }
- * }
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final OperationFuture{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
- * CloudFilestoreManagerClient.create()) {
- * DeleteBackupRequest request =
- * DeleteBackupRequest.newBuilder()
- * .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
- * .build();
- * OperationFuture
- */
- public final OperationCallable{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
- * CloudFilestoreManagerClient.create()) {
- * DeleteBackupRequest request =
- * DeleteBackupRequest.newBuilder()
- * .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
- * .build();
- * ApiFuture
- */
- public final UnaryCallable{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
- * CloudFilestoreManagerClient.create()) {
- * Backup backup = Backup.newBuilder().build();
- * FieldMask updateMask = FieldMask.newBuilder().build();
- * Backup response = cloudFilestoreManagerClient.updateBackupAsync(backup, updateMask).get();
- * }
- * }
- *
- * @param backup Required. A [backup resource][google.cloud.filestore.v1.Backup]
- * @param updateMask Required. Mask of fields to update. At least one path must be supplied in
- * this field.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final OperationFuture{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
- * CloudFilestoreManagerClient.create()) {
- * UpdateBackupRequest request =
- * UpdateBackupRequest.newBuilder()
- * .setBackup(Backup.newBuilder().build())
- * .setUpdateMask(FieldMask.newBuilder().build())
- * .build();
- * Backup response = cloudFilestoreManagerClient.updateBackupAsync(request).get();
- * }
- * }
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final OperationFuture{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
- * CloudFilestoreManagerClient.create()) {
- * UpdateBackupRequest request =
- * UpdateBackupRequest.newBuilder()
- * .setBackup(Backup.newBuilder().build())
- * .setUpdateMask(FieldMask.newBuilder().build())
- * .build();
- * OperationFuture
- */
- public final OperationCallable{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
- * CloudFilestoreManagerClient.create()) {
- * UpdateBackupRequest request =
- * UpdateBackupRequest.newBuilder()
- * .setBackup(Backup.newBuilder().build())
- * .setUpdateMask(FieldMask.newBuilder().build())
- * .build();
- * ApiFuture
- */
- public final UnaryCallable
- *
- *
- * {@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * CloudFilestoreManagerSettings.Builder cloudFilestoreManagerSettingsBuilder =
- * CloudFilestoreManagerSettings.newBuilder();
- * cloudFilestoreManagerSettingsBuilder
- * .getInstanceSettings()
- * .setRetrySettings(
- * cloudFilestoreManagerSettingsBuilder
- * .getInstanceSettings()
- * .getRetrySettings()
- * .toBuilder()
- * .setTotalTimeout(Duration.ofSeconds(30))
- * .build());
- * CloudFilestoreManagerSettings cloudFilestoreManagerSettings =
- * cloudFilestoreManagerSettingsBuilder.build();
- * }
- */
-@Generated("by gapic-generator-java")
-public class CloudFilestoreManagerSettings extends ClientSettings
- *
- *
- *
- *
- *
- * {@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (CloudFilestoreManagerClient cloudFilestoreManagerClient =
- * CloudFilestoreManagerClient.create()) {
- * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
- * Instance response = cloudFilestoreManagerClient.getInstance(name);
- * }
- * }
- */
-@Generated("by gapic-generator-java")
-package com.google.cloud.filestore.v1;
-
-import javax.annotation.Generated;
diff --git a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java b/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java
deleted file mode 100644
index ff6d6eb04976..000000000000
--- a/owl-bot-staging/java-filestore/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java
+++ /dev/null
@@ -1,153 +0,0 @@
-/*
- * Copyright 2022 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.google.cloud.filestore.v1.stub;
-
-import static com.google.cloud.filestore.v1.CloudFilestoreManagerClient.ListBackupsPagedResponse;
-import static com.google.cloud.filestore.v1.CloudFilestoreManagerClient.ListInstancesPagedResponse;
-
-import com.google.api.gax.core.BackgroundResource;
-import com.google.api.gax.rpc.OperationCallable;
-import com.google.api.gax.rpc.UnaryCallable;
-import com.google.cloud.common.OperationMetadata;
-import com.google.cloud.filestore.v1.Backup;
-import com.google.cloud.filestore.v1.CreateBackupRequest;
-import com.google.cloud.filestore.v1.CreateInstanceRequest;
-import com.google.cloud.filestore.v1.DeleteBackupRequest;
-import com.google.cloud.filestore.v1.DeleteInstanceRequest;
-import com.google.cloud.filestore.v1.GetBackupRequest;
-import com.google.cloud.filestore.v1.GetInstanceRequest;
-import com.google.cloud.filestore.v1.Instance;
-import com.google.cloud.filestore.v1.ListBackupsRequest;
-import com.google.cloud.filestore.v1.ListBackupsResponse;
-import com.google.cloud.filestore.v1.ListInstancesRequest;
-import com.google.cloud.filestore.v1.ListInstancesResponse;
-import com.google.cloud.filestore.v1.RestoreInstanceRequest;
-import com.google.cloud.filestore.v1.UpdateBackupRequest;
-import com.google.cloud.filestore.v1.UpdateInstanceRequest;
-import com.google.longrunning.Operation;
-import com.google.longrunning.stub.OperationsStub;
-import com.google.protobuf.Empty;
-import javax.annotation.Generated;
-
-// AUTO-GENERATED DOCUMENTATION AND CLASS.
-/**
- * Base stub class for the CloudFilestoreManager service API.
- *
- *
- *
- *
- * {@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * CloudFilestoreManagerStubSettings.Builder cloudFilestoreManagerSettingsBuilder =
- * CloudFilestoreManagerStubSettings.newBuilder();
- * cloudFilestoreManagerSettingsBuilder
- * .getInstanceSettings()
- * .setRetrySettings(
- * cloudFilestoreManagerSettingsBuilder
- * .getInstanceSettings()
- * .getRetrySettings()
- * .toBuilder()
- * .setTotalTimeout(Duration.ofSeconds(30))
- * .build());
- * CloudFilestoreManagerStubSettings cloudFilestoreManagerSettings =
- * cloudFilestoreManagerSettingsBuilder.build();
- * }
- */
-@Generated("by gapic-generator-java")
-public class CloudFilestoreManagerStubSettings
- extends StubSettings