All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.gkebackup.v1.stub.BackupForGKEStubSettings Maven / Gradle / Ivy

/*
 * Copyright 2024 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.gkebackup.v1.stub;

import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListBackupPlansPagedResponse;
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListBackupsPagedResponse;
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListLocationsPagedResponse;
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListRestorePlansPagedResponse;
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListRestoresPagedResponse;
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListVolumeBackupsPagedResponse;
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListVolumeRestoresPagedResponse;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
import com.google.api.core.ObsoleteApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
import com.google.api.gax.grpc.GaxGrpcProperties;
import com.google.api.gax.grpc.GrpcTransportChannel;
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
import com.google.api.gax.grpc.ProtoOperationTransformers;
import com.google.api.gax.httpjson.GaxHttpJsonProperties;
import com.google.api.gax.httpjson.HttpJsonTransportChannel;
import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
import com.google.api.gax.longrunning.OperationSnapshot;
import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
import com.google.api.gax.retrying.RetrySettings;
import com.google.api.gax.rpc.ApiCallContext;
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.PageContext;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.PagedListDescriptor;
import com.google.api.gax.rpc.PagedListResponseFactory;
import com.google.api.gax.rpc.StatusCode;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.gkebackup.v1.Backup;
import com.google.cloud.gkebackup.v1.BackupPlan;
import com.google.cloud.gkebackup.v1.CreateBackupPlanRequest;
import com.google.cloud.gkebackup.v1.CreateBackupRequest;
import com.google.cloud.gkebackup.v1.CreateRestorePlanRequest;
import com.google.cloud.gkebackup.v1.CreateRestoreRequest;
import com.google.cloud.gkebackup.v1.DeleteBackupPlanRequest;
import com.google.cloud.gkebackup.v1.DeleteBackupRequest;
import com.google.cloud.gkebackup.v1.DeleteRestorePlanRequest;
import com.google.cloud.gkebackup.v1.DeleteRestoreRequest;
import com.google.cloud.gkebackup.v1.GetBackupIndexDownloadUrlRequest;
import com.google.cloud.gkebackup.v1.GetBackupIndexDownloadUrlResponse;
import com.google.cloud.gkebackup.v1.GetBackupPlanRequest;
import com.google.cloud.gkebackup.v1.GetBackupRequest;
import com.google.cloud.gkebackup.v1.GetRestorePlanRequest;
import com.google.cloud.gkebackup.v1.GetRestoreRequest;
import com.google.cloud.gkebackup.v1.GetVolumeBackupRequest;
import com.google.cloud.gkebackup.v1.GetVolumeRestoreRequest;
import com.google.cloud.gkebackup.v1.ListBackupPlansRequest;
import com.google.cloud.gkebackup.v1.ListBackupPlansResponse;
import com.google.cloud.gkebackup.v1.ListBackupsRequest;
import com.google.cloud.gkebackup.v1.ListBackupsResponse;
import com.google.cloud.gkebackup.v1.ListRestorePlansRequest;
import com.google.cloud.gkebackup.v1.ListRestorePlansResponse;
import com.google.cloud.gkebackup.v1.ListRestoresRequest;
import com.google.cloud.gkebackup.v1.ListRestoresResponse;
import com.google.cloud.gkebackup.v1.ListVolumeBackupsRequest;
import com.google.cloud.gkebackup.v1.ListVolumeBackupsResponse;
import com.google.cloud.gkebackup.v1.ListVolumeRestoresRequest;
import com.google.cloud.gkebackup.v1.ListVolumeRestoresResponse;
import com.google.cloud.gkebackup.v1.OperationMetadata;
import com.google.cloud.gkebackup.v1.Restore;
import com.google.cloud.gkebackup.v1.RestorePlan;
import com.google.cloud.gkebackup.v1.UpdateBackupPlanRequest;
import com.google.cloud.gkebackup.v1.UpdateBackupRequest;
import com.google.cloud.gkebackup.v1.UpdateRestorePlanRequest;
import com.google.cloud.gkebackup.v1.UpdateRestoreRequest;
import com.google.cloud.gkebackup.v1.VolumeBackup;
import com.google.cloud.gkebackup.v1.VolumeRestore;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
import com.google.cloud.location.Location;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Lists;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
import com.google.iam.v1.SetIamPolicyRequest;
import com.google.iam.v1.TestIamPermissionsRequest;
import com.google.iam.v1.TestIamPermissionsResponse;
import com.google.longrunning.Operation;
import com.google.protobuf.Empty;
import java.io.IOException;
import java.util.List;
import javax.annotation.Generated;
import org.threeten.bp.Duration;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
 * Settings class to configure an instance of {@link BackupForGKEStub}.
 *
 * 

The default instance has everything set to sensible defaults: * *

    *
  • The default service address (gkebackup.googleapis.com) and default port (443) are used. *
  • Credentials are acquired automatically through Application Default Credentials. *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

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 getBackupPlan to 30 seconds: * *

{@code
 * // This snippet has been automatically generated and should be regarded as a code template only.
 * // It will require modifications to work:
 * // - It may require correct/in-range values for request initialization.
 * // - It may require specifying regional endpoints when creating the service client as shown in
 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 * BackupForGKEStubSettings.Builder backupForGKESettingsBuilder =
 *     BackupForGKEStubSettings.newBuilder();
 * backupForGKESettingsBuilder
 *     .getBackupPlanSettings()
 *     .setRetrySettings(
 *         backupForGKESettingsBuilder
 *             .getBackupPlanSettings()
 *             .getRetrySettings()
 *             .toBuilder()
 *             .setTotalTimeout(Duration.ofSeconds(30))
 *             .build());
 * BackupForGKEStubSettings backupForGKESettings = backupForGKESettingsBuilder.build();
 * }
*/ @Generated("by gapic-generator-java") public class BackupForGKEStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); private final UnaryCallSettings createBackupPlanSettings; private final OperationCallSettings createBackupPlanOperationSettings; private final PagedCallSettings< ListBackupPlansRequest, ListBackupPlansResponse, ListBackupPlansPagedResponse> listBackupPlansSettings; private final UnaryCallSettings getBackupPlanSettings; private final UnaryCallSettings updateBackupPlanSettings; private final OperationCallSettings updateBackupPlanOperationSettings; private final UnaryCallSettings deleteBackupPlanSettings; private final OperationCallSettings deleteBackupPlanOperationSettings; private final UnaryCallSettings createBackupSettings; private final OperationCallSettings createBackupOperationSettings; private final PagedCallSettings listBackupsSettings; private final UnaryCallSettings getBackupSettings; private final UnaryCallSettings updateBackupSettings; private final OperationCallSettings updateBackupOperationSettings; private final UnaryCallSettings deleteBackupSettings; private final OperationCallSettings deleteBackupOperationSettings; private final PagedCallSettings< ListVolumeBackupsRequest, ListVolumeBackupsResponse, ListVolumeBackupsPagedResponse> listVolumeBackupsSettings; private final UnaryCallSettings getVolumeBackupSettings; private final UnaryCallSettings createRestorePlanSettings; private final OperationCallSettings createRestorePlanOperationSettings; private final PagedCallSettings< ListRestorePlansRequest, ListRestorePlansResponse, ListRestorePlansPagedResponse> listRestorePlansSettings; private final UnaryCallSettings getRestorePlanSettings; private final UnaryCallSettings updateRestorePlanSettings; private final OperationCallSettings updateRestorePlanOperationSettings; private final UnaryCallSettings deleteRestorePlanSettings; private final OperationCallSettings deleteRestorePlanOperationSettings; private final UnaryCallSettings createRestoreSettings; private final OperationCallSettings createRestoreOperationSettings; private final PagedCallSettings< ListRestoresRequest, ListRestoresResponse, ListRestoresPagedResponse> listRestoresSettings; private final UnaryCallSettings getRestoreSettings; private final UnaryCallSettings updateRestoreSettings; private final OperationCallSettings updateRestoreOperationSettings; private final UnaryCallSettings deleteRestoreSettings; private final OperationCallSettings deleteRestoreOperationSettings; private final PagedCallSettings< ListVolumeRestoresRequest, ListVolumeRestoresResponse, ListVolumeRestoresPagedResponse> listVolumeRestoresSettings; private final UnaryCallSettings getVolumeRestoreSettings; private final UnaryCallSettings< GetBackupIndexDownloadUrlRequest, GetBackupIndexDownloadUrlResponse> getBackupIndexDownloadUrlSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; private final UnaryCallSettings getLocationSettings; private final UnaryCallSettings setIamPolicySettings; private final UnaryCallSettings getIamPolicySettings; private final UnaryCallSettings testIamPermissionsSettings; private static final PagedListDescriptor< ListBackupPlansRequest, ListBackupPlansResponse, BackupPlan> LIST_BACKUP_PLANS_PAGE_STR_DESC = new PagedListDescriptor() { @Override public String emptyToken() { return ""; } @Override public ListBackupPlansRequest injectToken( ListBackupPlansRequest payload, String token) { return ListBackupPlansRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListBackupPlansRequest injectPageSize( ListBackupPlansRequest payload, int pageSize) { return ListBackupPlansRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListBackupPlansRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListBackupPlansResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources(ListBackupPlansResponse payload) { return payload.getBackupPlansList() == null ? ImmutableList.of() : payload.getBackupPlansList(); } }; private static final PagedListDescriptor LIST_BACKUPS_PAGE_STR_DESC = new PagedListDescriptor() { @Override public String emptyToken() { return ""; } @Override public ListBackupsRequest injectToken(ListBackupsRequest payload, String token) { return ListBackupsRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListBackupsRequest injectPageSize(ListBackupsRequest payload, int pageSize) { return ListBackupsRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListBackupsRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListBackupsResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources(ListBackupsResponse payload) { return payload.getBackupsList() == null ? ImmutableList.of() : payload.getBackupsList(); } }; private static final PagedListDescriptor< ListVolumeBackupsRequest, ListVolumeBackupsResponse, VolumeBackup> LIST_VOLUME_BACKUPS_PAGE_STR_DESC = new PagedListDescriptor< ListVolumeBackupsRequest, ListVolumeBackupsResponse, VolumeBackup>() { @Override public String emptyToken() { return ""; } @Override public ListVolumeBackupsRequest injectToken( ListVolumeBackupsRequest payload, String token) { return ListVolumeBackupsRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListVolumeBackupsRequest injectPageSize( ListVolumeBackupsRequest payload, int pageSize) { return ListVolumeBackupsRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListVolumeBackupsRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListVolumeBackupsResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources(ListVolumeBackupsResponse payload) { return payload.getVolumeBackupsList() == null ? ImmutableList.of() : payload.getVolumeBackupsList(); } }; private static final PagedListDescriptor< ListRestorePlansRequest, ListRestorePlansResponse, RestorePlan> LIST_RESTORE_PLANS_PAGE_STR_DESC = new PagedListDescriptor< ListRestorePlansRequest, ListRestorePlansResponse, RestorePlan>() { @Override public String emptyToken() { return ""; } @Override public ListRestorePlansRequest injectToken( ListRestorePlansRequest payload, String token) { return ListRestorePlansRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListRestorePlansRequest injectPageSize( ListRestorePlansRequest payload, int pageSize) { return ListRestorePlansRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListRestorePlansRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListRestorePlansResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources(ListRestorePlansResponse payload) { return payload.getRestorePlansList() == null ? ImmutableList.of() : payload.getRestorePlansList(); } }; private static final PagedListDescriptor LIST_RESTORES_PAGE_STR_DESC = new PagedListDescriptor() { @Override public String emptyToken() { return ""; } @Override public ListRestoresRequest injectToken(ListRestoresRequest payload, String token) { return ListRestoresRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListRestoresRequest injectPageSize(ListRestoresRequest payload, int pageSize) { return ListRestoresRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListRestoresRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListRestoresResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources(ListRestoresResponse payload) { return payload.getRestoresList() == null ? ImmutableList.of() : payload.getRestoresList(); } }; private static final PagedListDescriptor< ListVolumeRestoresRequest, ListVolumeRestoresResponse, VolumeRestore> LIST_VOLUME_RESTORES_PAGE_STR_DESC = new PagedListDescriptor< ListVolumeRestoresRequest, ListVolumeRestoresResponse, VolumeRestore>() { @Override public String emptyToken() { return ""; } @Override public ListVolumeRestoresRequest injectToken( ListVolumeRestoresRequest payload, String token) { return ListVolumeRestoresRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListVolumeRestoresRequest injectPageSize( ListVolumeRestoresRequest payload, int pageSize) { return ListVolumeRestoresRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListVolumeRestoresRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListVolumeRestoresResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources(ListVolumeRestoresResponse payload) { return payload.getVolumeRestoresList() == null ? ImmutableList.of() : payload.getVolumeRestoresList(); } }; private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @Override public String emptyToken() { return ""; } @Override public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); } @Override public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); } @Override public Integer extractPageSize(ListLocationsRequest payload) { return payload.getPageSize(); } @Override public String extractNextToken(ListLocationsResponse payload) { return payload.getNextPageToken(); } @Override public Iterable extractResources(ListLocationsResponse payload) { return payload.getLocationsList() == null ? ImmutableList.of() : payload.getLocationsList(); } }; private static final PagedListResponseFactory< ListBackupPlansRequest, ListBackupPlansResponse, ListBackupPlansPagedResponse> LIST_BACKUP_PLANS_PAGE_STR_FACT = new PagedListResponseFactory< ListBackupPlansRequest, ListBackupPlansResponse, ListBackupPlansPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListBackupPlansRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext pageContext = PageContext.create(callable, LIST_BACKUP_PLANS_PAGE_STR_DESC, request, context); return ListBackupPlansPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> LIST_BACKUPS_PAGE_STR_FACT = new PagedListResponseFactory< ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListBackupsRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext pageContext = PageContext.create(callable, LIST_BACKUPS_PAGE_STR_DESC, request, context); return ListBackupsPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< ListVolumeBackupsRequest, ListVolumeBackupsResponse, ListVolumeBackupsPagedResponse> LIST_VOLUME_BACKUPS_PAGE_STR_FACT = new PagedListResponseFactory< ListVolumeBackupsRequest, ListVolumeBackupsResponse, ListVolumeBackupsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListVolumeBackupsRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext pageContext = PageContext.create( callable, LIST_VOLUME_BACKUPS_PAGE_STR_DESC, request, context); return ListVolumeBackupsPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< ListRestorePlansRequest, ListRestorePlansResponse, ListRestorePlansPagedResponse> LIST_RESTORE_PLANS_PAGE_STR_FACT = new PagedListResponseFactory< ListRestorePlansRequest, ListRestorePlansResponse, ListRestorePlansPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListRestorePlansRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext pageContext = PageContext.create( callable, LIST_RESTORE_PLANS_PAGE_STR_DESC, request, context); return ListRestorePlansPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< ListRestoresRequest, ListRestoresResponse, ListRestoresPagedResponse> LIST_RESTORES_PAGE_STR_FACT = new PagedListResponseFactory< ListRestoresRequest, ListRestoresResponse, ListRestoresPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListRestoresRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext pageContext = PageContext.create(callable, LIST_RESTORES_PAGE_STR_DESC, request, context); return ListRestoresPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< ListVolumeRestoresRequest, ListVolumeRestoresResponse, ListVolumeRestoresPagedResponse> LIST_VOLUME_RESTORES_PAGE_STR_FACT = new PagedListResponseFactory< ListVolumeRestoresRequest, ListVolumeRestoresResponse, ListVolumeRestoresPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListVolumeRestoresRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext pageContext = PageContext.create( callable, LIST_VOLUME_RESTORES_PAGE_STR_DESC, request, context); return ListVolumeRestoresPagedResponse.createAsync(pageContext, futureResponse); } }; private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = new PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( UnaryCallable callable, ListLocationsRequest request, ApiCallContext context, ApiFuture futureResponse) { PageContext pageContext = PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); } }; /** Returns the object with the settings used for calls to createBackupPlan. */ public UnaryCallSettings createBackupPlanSettings() { return createBackupPlanSettings; } /** Returns the object with the settings used for calls to createBackupPlan. */ public OperationCallSettings createBackupPlanOperationSettings() { return createBackupPlanOperationSettings; } /** Returns the object with the settings used for calls to listBackupPlans. */ public PagedCallSettings< ListBackupPlansRequest, ListBackupPlansResponse, ListBackupPlansPagedResponse> listBackupPlansSettings() { return listBackupPlansSettings; } /** Returns the object with the settings used for calls to getBackupPlan. */ public UnaryCallSettings getBackupPlanSettings() { return getBackupPlanSettings; } /** Returns the object with the settings used for calls to updateBackupPlan. */ public UnaryCallSettings updateBackupPlanSettings() { return updateBackupPlanSettings; } /** Returns the object with the settings used for calls to updateBackupPlan. */ public OperationCallSettings updateBackupPlanOperationSettings() { return updateBackupPlanOperationSettings; } /** Returns the object with the settings used for calls to deleteBackupPlan. */ public UnaryCallSettings deleteBackupPlanSettings() { return deleteBackupPlanSettings; } /** Returns the object with the settings used for calls to deleteBackupPlan. */ public OperationCallSettings deleteBackupPlanOperationSettings() { return deleteBackupPlanOperationSettings; } /** Returns the object with the settings used for calls to createBackup. */ public UnaryCallSettings createBackupSettings() { return createBackupSettings; } /** Returns the object with the settings used for calls to createBackup. */ public OperationCallSettings createBackupOperationSettings() { return createBackupOperationSettings; } /** Returns the object with the settings used for calls to listBackups. */ public PagedCallSettings listBackupsSettings() { return listBackupsSettings; } /** Returns the object with the settings used for calls to getBackup. */ public UnaryCallSettings getBackupSettings() { return getBackupSettings; } /** Returns the object with the settings used for calls to updateBackup. */ public UnaryCallSettings updateBackupSettings() { return updateBackupSettings; } /** Returns the object with the settings used for calls to updateBackup. */ public OperationCallSettings updateBackupOperationSettings() { return updateBackupOperationSettings; } /** Returns the object with the settings used for calls to deleteBackup. */ public UnaryCallSettings deleteBackupSettings() { return deleteBackupSettings; } /** Returns the object with the settings used for calls to deleteBackup. */ public OperationCallSettings deleteBackupOperationSettings() { return deleteBackupOperationSettings; } /** Returns the object with the settings used for calls to listVolumeBackups. */ public PagedCallSettings< ListVolumeBackupsRequest, ListVolumeBackupsResponse, ListVolumeBackupsPagedResponse> listVolumeBackupsSettings() { return listVolumeBackupsSettings; } /** Returns the object with the settings used for calls to getVolumeBackup. */ public UnaryCallSettings getVolumeBackupSettings() { return getVolumeBackupSettings; } /** Returns the object with the settings used for calls to createRestorePlan. */ public UnaryCallSettings createRestorePlanSettings() { return createRestorePlanSettings; } /** Returns the object with the settings used for calls to createRestorePlan. */ public OperationCallSettings createRestorePlanOperationSettings() { return createRestorePlanOperationSettings; } /** Returns the object with the settings used for calls to listRestorePlans. */ public PagedCallSettings< ListRestorePlansRequest, ListRestorePlansResponse, ListRestorePlansPagedResponse> listRestorePlansSettings() { return listRestorePlansSettings; } /** Returns the object with the settings used for calls to getRestorePlan. */ public UnaryCallSettings getRestorePlanSettings() { return getRestorePlanSettings; } /** Returns the object with the settings used for calls to updateRestorePlan. */ public UnaryCallSettings updateRestorePlanSettings() { return updateRestorePlanSettings; } /** Returns the object with the settings used for calls to updateRestorePlan. */ public OperationCallSettings updateRestorePlanOperationSettings() { return updateRestorePlanOperationSettings; } /** Returns the object with the settings used for calls to deleteRestorePlan. */ public UnaryCallSettings deleteRestorePlanSettings() { return deleteRestorePlanSettings; } /** Returns the object with the settings used for calls to deleteRestorePlan. */ public OperationCallSettings deleteRestorePlanOperationSettings() { return deleteRestorePlanOperationSettings; } /** Returns the object with the settings used for calls to createRestore. */ public UnaryCallSettings createRestoreSettings() { return createRestoreSettings; } /** Returns the object with the settings used for calls to createRestore. */ public OperationCallSettings createRestoreOperationSettings() { return createRestoreOperationSettings; } /** Returns the object with the settings used for calls to listRestores. */ public PagedCallSettings listRestoresSettings() { return listRestoresSettings; } /** Returns the object with the settings used for calls to getRestore. */ public UnaryCallSettings getRestoreSettings() { return getRestoreSettings; } /** Returns the object with the settings used for calls to updateRestore. */ public UnaryCallSettings updateRestoreSettings() { return updateRestoreSettings; } /** Returns the object with the settings used for calls to updateRestore. */ public OperationCallSettings updateRestoreOperationSettings() { return updateRestoreOperationSettings; } /** Returns the object with the settings used for calls to deleteRestore. */ public UnaryCallSettings deleteRestoreSettings() { return deleteRestoreSettings; } /** Returns the object with the settings used for calls to deleteRestore. */ public OperationCallSettings deleteRestoreOperationSettings() { return deleteRestoreOperationSettings; } /** Returns the object with the settings used for calls to listVolumeRestores. */ public PagedCallSettings< ListVolumeRestoresRequest, ListVolumeRestoresResponse, ListVolumeRestoresPagedResponse> listVolumeRestoresSettings() { return listVolumeRestoresSettings; } /** Returns the object with the settings used for calls to getVolumeRestore. */ public UnaryCallSettings getVolumeRestoreSettings() { return getVolumeRestoreSettings; } /** Returns the object with the settings used for calls to getBackupIndexDownloadUrl. */ public UnaryCallSettings getBackupIndexDownloadUrlSettings() { return getBackupIndexDownloadUrlSettings; } /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { return listLocationsSettings; } /** Returns the object with the settings used for calls to getLocation. */ public UnaryCallSettings getLocationSettings() { return getLocationSettings; } /** Returns the object with the settings used for calls to setIamPolicy. */ public UnaryCallSettings setIamPolicySettings() { return setIamPolicySettings; } /** Returns the object with the settings used for calls to getIamPolicy. */ public UnaryCallSettings getIamPolicySettings() { return getIamPolicySettings; } /** Returns the object with the settings used for calls to testIamPermissions. */ public UnaryCallSettings testIamPermissionsSettings() { return testIamPermissionsSettings; } public BackupForGKEStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcBackupForGKEStub.create(this); } if (getTransportChannelProvider() .getTransportName() .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { return HttpJsonBackupForGKEStub.create(this); } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } /** Returns the default service name. */ @Override public String getServiceName() { return "gkebackup"; } /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); } /** Returns the default service endpoint. */ @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "gkebackup.googleapis.com:443"; } /** Returns the default mTLS service endpoint. */ public static String getDefaultMtlsEndpoint() { return "gkebackup.mtls.googleapis.com:443"; } /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; } /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { return GoogleCredentialsProvider.newBuilder() .setScopesToApply(DEFAULT_SERVICE_SCOPES) .setUseJwtAccessWithScope(true); } /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } /** Returns a builder for the default REST ChannelProvider for this service. */ @BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder() { return InstantiatingHttpJsonChannelProvider.newBuilder(); } public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(BackupForGKEStubSettings.class)) .setTransportToken( GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(BackupForGKEStubSettings.class)) .setTransportToken( GaxHttpJsonProperties.getHttpJsonTokenName(), GaxHttpJsonProperties.getHttpJsonVersion()); } public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return BackupForGKEStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); } /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } /** Returns a new REST builder for this class. */ public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); } /** Returns a builder containing all the values of this settings class. */ public Builder toBuilder() { return new Builder(this); } protected BackupForGKEStubSettings(Builder settingsBuilder) throws IOException { super(settingsBuilder); createBackupPlanSettings = settingsBuilder.createBackupPlanSettings().build(); createBackupPlanOperationSettings = settingsBuilder.createBackupPlanOperationSettings().build(); listBackupPlansSettings = settingsBuilder.listBackupPlansSettings().build(); getBackupPlanSettings = settingsBuilder.getBackupPlanSettings().build(); updateBackupPlanSettings = settingsBuilder.updateBackupPlanSettings().build(); updateBackupPlanOperationSettings = settingsBuilder.updateBackupPlanOperationSettings().build(); deleteBackupPlanSettings = settingsBuilder.deleteBackupPlanSettings().build(); deleteBackupPlanOperationSettings = settingsBuilder.deleteBackupPlanOperationSettings().build(); createBackupSettings = settingsBuilder.createBackupSettings().build(); createBackupOperationSettings = settingsBuilder.createBackupOperationSettings().build(); listBackupsSettings = settingsBuilder.listBackupsSettings().build(); getBackupSettings = settingsBuilder.getBackupSettings().build(); updateBackupSettings = settingsBuilder.updateBackupSettings().build(); updateBackupOperationSettings = settingsBuilder.updateBackupOperationSettings().build(); deleteBackupSettings = settingsBuilder.deleteBackupSettings().build(); deleteBackupOperationSettings = settingsBuilder.deleteBackupOperationSettings().build(); listVolumeBackupsSettings = settingsBuilder.listVolumeBackupsSettings().build(); getVolumeBackupSettings = settingsBuilder.getVolumeBackupSettings().build(); createRestorePlanSettings = settingsBuilder.createRestorePlanSettings().build(); createRestorePlanOperationSettings = settingsBuilder.createRestorePlanOperationSettings().build(); listRestorePlansSettings = settingsBuilder.listRestorePlansSettings().build(); getRestorePlanSettings = settingsBuilder.getRestorePlanSettings().build(); updateRestorePlanSettings = settingsBuilder.updateRestorePlanSettings().build(); updateRestorePlanOperationSettings = settingsBuilder.updateRestorePlanOperationSettings().build(); deleteRestorePlanSettings = settingsBuilder.deleteRestorePlanSettings().build(); deleteRestorePlanOperationSettings = settingsBuilder.deleteRestorePlanOperationSettings().build(); createRestoreSettings = settingsBuilder.createRestoreSettings().build(); createRestoreOperationSettings = settingsBuilder.createRestoreOperationSettings().build(); listRestoresSettings = settingsBuilder.listRestoresSettings().build(); getRestoreSettings = settingsBuilder.getRestoreSettings().build(); updateRestoreSettings = settingsBuilder.updateRestoreSettings().build(); updateRestoreOperationSettings = settingsBuilder.updateRestoreOperationSettings().build(); deleteRestoreSettings = settingsBuilder.deleteRestoreSettings().build(); deleteRestoreOperationSettings = settingsBuilder.deleteRestoreOperationSettings().build(); listVolumeRestoresSettings = settingsBuilder.listVolumeRestoresSettings().build(); getVolumeRestoreSettings = settingsBuilder.getVolumeRestoreSettings().build(); getBackupIndexDownloadUrlSettings = settingsBuilder.getBackupIndexDownloadUrlSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); } /** Builder for BackupForGKEStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; private final UnaryCallSettings.Builder createBackupPlanSettings; private final OperationCallSettings.Builder< CreateBackupPlanRequest, BackupPlan, OperationMetadata> createBackupPlanOperationSettings; private final PagedCallSettings.Builder< ListBackupPlansRequest, ListBackupPlansResponse, ListBackupPlansPagedResponse> listBackupPlansSettings; private final UnaryCallSettings.Builder getBackupPlanSettings; private final UnaryCallSettings.Builder updateBackupPlanSettings; private final OperationCallSettings.Builder< UpdateBackupPlanRequest, BackupPlan, OperationMetadata> updateBackupPlanOperationSettings; private final UnaryCallSettings.Builder deleteBackupPlanSettings; private final OperationCallSettings.Builder deleteBackupPlanOperationSettings; private final UnaryCallSettings.Builder createBackupSettings; private final OperationCallSettings.Builder createBackupOperationSettings; private final PagedCallSettings.Builder< ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> listBackupsSettings; private final UnaryCallSettings.Builder getBackupSettings; private final UnaryCallSettings.Builder updateBackupSettings; private final OperationCallSettings.Builder updateBackupOperationSettings; private final UnaryCallSettings.Builder deleteBackupSettings; private final OperationCallSettings.Builder deleteBackupOperationSettings; private final PagedCallSettings.Builder< ListVolumeBackupsRequest, ListVolumeBackupsResponse, ListVolumeBackupsPagedResponse> listVolumeBackupsSettings; private final UnaryCallSettings.Builder getVolumeBackupSettings; private final UnaryCallSettings.Builder createRestorePlanSettings; private final OperationCallSettings.Builder< CreateRestorePlanRequest, RestorePlan, OperationMetadata> createRestorePlanOperationSettings; private final PagedCallSettings.Builder< ListRestorePlansRequest, ListRestorePlansResponse, ListRestorePlansPagedResponse> listRestorePlansSettings; private final UnaryCallSettings.Builder getRestorePlanSettings; private final UnaryCallSettings.Builder updateRestorePlanSettings; private final OperationCallSettings.Builder< UpdateRestorePlanRequest, RestorePlan, OperationMetadata> updateRestorePlanOperationSettings; private final UnaryCallSettings.Builder deleteRestorePlanSettings; private final OperationCallSettings.Builder deleteRestorePlanOperationSettings; private final UnaryCallSettings.Builder createRestoreSettings; private final OperationCallSettings.Builder createRestoreOperationSettings; private final PagedCallSettings.Builder< ListRestoresRequest, ListRestoresResponse, ListRestoresPagedResponse> listRestoresSettings; private final UnaryCallSettings.Builder getRestoreSettings; private final UnaryCallSettings.Builder updateRestoreSettings; private final OperationCallSettings.Builder updateRestoreOperationSettings; private final UnaryCallSettings.Builder deleteRestoreSettings; private final OperationCallSettings.Builder deleteRestoreOperationSettings; private final PagedCallSettings.Builder< ListVolumeRestoresRequest, ListVolumeRestoresResponse, ListVolumeRestoresPagedResponse> listVolumeRestoresSettings; private final UnaryCallSettings.Builder getVolumeRestoreSettings; private final UnaryCallSettings.Builder< GetBackupIndexDownloadUrlRequest, GetBackupIndexDownloadUrlResponse> getBackupIndexDownloadUrlSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; private final UnaryCallSettings.Builder getLocationSettings; private final UnaryCallSettings.Builder setIamPolicySettings; private final UnaryCallSettings.Builder getIamPolicySettings; private final UnaryCallSettings.Builder testIamPermissionsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; static { ImmutableMap.Builder> definitions = ImmutableMap.builder(); definitions.put( "no_retry_3_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "retry_policy_0_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "no_retry_2_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } private static final ImmutableMap RETRY_PARAM_DEFINITIONS; static { ImmutableMap.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; settings = RetrySettings.newBuilder() .setInitialRpcTimeout(Duration.ofMillis(300000L)) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ofMillis(300000L)) .setTotalTimeout(Duration.ofMillis(300000L)) .build(); definitions.put("no_retry_3_params", settings); settings = RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(1.3) .setMaxRetryDelay(Duration.ofMillis(60000L)) .setInitialRpcTimeout(Duration.ofMillis(60000L)) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ofMillis(60000L)) .setTotalTimeout(Duration.ofMillis(60000L)) .build(); definitions.put("retry_policy_0_params", settings); settings = RetrySettings.newBuilder() .setInitialRpcTimeout(Duration.ofMillis(60000L)) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ofMillis(60000L)) .setTotalTimeout(Duration.ofMillis(60000L)) .build(); definitions.put("no_retry_1_params", settings); settings = RetrySettings.newBuilder() .setInitialRpcTimeout(Duration.ofMillis(120000L)) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ofMillis(120000L)) .setTotalTimeout(Duration.ofMillis(120000L)) .build(); definitions.put("no_retry_2_params", settings); settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); definitions.put("no_retry_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } protected Builder() { this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(clientContext); createBackupPlanSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createBackupPlanOperationSettings = OperationCallSettings.newBuilder(); listBackupPlansSettings = PagedCallSettings.newBuilder(LIST_BACKUP_PLANS_PAGE_STR_FACT); getBackupPlanSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateBackupPlanSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateBackupPlanOperationSettings = OperationCallSettings.newBuilder(); deleteBackupPlanSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteBackupPlanOperationSettings = OperationCallSettings.newBuilder(); createBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createBackupOperationSettings = OperationCallSettings.newBuilder(); listBackupsSettings = PagedCallSettings.newBuilder(LIST_BACKUPS_PAGE_STR_FACT); getBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateBackupOperationSettings = OperationCallSettings.newBuilder(); deleteBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteBackupOperationSettings = OperationCallSettings.newBuilder(); listVolumeBackupsSettings = PagedCallSettings.newBuilder(LIST_VOLUME_BACKUPS_PAGE_STR_FACT); getVolumeBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createRestorePlanSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createRestorePlanOperationSettings = OperationCallSettings.newBuilder(); listRestorePlansSettings = PagedCallSettings.newBuilder(LIST_RESTORE_PLANS_PAGE_STR_FACT); getRestorePlanSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateRestorePlanSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateRestorePlanOperationSettings = OperationCallSettings.newBuilder(); deleteRestorePlanSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteRestorePlanOperationSettings = OperationCallSettings.newBuilder(); createRestoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createRestoreOperationSettings = OperationCallSettings.newBuilder(); listRestoresSettings = PagedCallSettings.newBuilder(LIST_RESTORES_PAGE_STR_FACT); getRestoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateRestoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateRestoreOperationSettings = OperationCallSettings.newBuilder(); deleteRestoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteRestoreOperationSettings = OperationCallSettings.newBuilder(); listVolumeRestoresSettings = PagedCallSettings.newBuilder(LIST_VOLUME_RESTORES_PAGE_STR_FACT); getVolumeRestoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getBackupIndexDownloadUrlSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( createBackupPlanSettings, listBackupPlansSettings, getBackupPlanSettings, updateBackupPlanSettings, deleteBackupPlanSettings, createBackupSettings, listBackupsSettings, getBackupSettings, updateBackupSettings, deleteBackupSettings, listVolumeBackupsSettings, getVolumeBackupSettings, createRestorePlanSettings, listRestorePlansSettings, getRestorePlanSettings, updateRestorePlanSettings, deleteRestorePlanSettings, createRestoreSettings, listRestoresSettings, getRestoreSettings, updateRestoreSettings, deleteRestoreSettings, listVolumeRestoresSettings, getVolumeRestoreSettings, getBackupIndexDownloadUrlSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, getIamPolicySettings, testIamPermissionsSettings); initDefaults(this); } protected Builder(BackupForGKEStubSettings settings) { super(settings); createBackupPlanSettings = settings.createBackupPlanSettings.toBuilder(); createBackupPlanOperationSettings = settings.createBackupPlanOperationSettings.toBuilder(); listBackupPlansSettings = settings.listBackupPlansSettings.toBuilder(); getBackupPlanSettings = settings.getBackupPlanSettings.toBuilder(); updateBackupPlanSettings = settings.updateBackupPlanSettings.toBuilder(); updateBackupPlanOperationSettings = settings.updateBackupPlanOperationSettings.toBuilder(); deleteBackupPlanSettings = settings.deleteBackupPlanSettings.toBuilder(); deleteBackupPlanOperationSettings = settings.deleteBackupPlanOperationSettings.toBuilder(); createBackupSettings = settings.createBackupSettings.toBuilder(); createBackupOperationSettings = settings.createBackupOperationSettings.toBuilder(); listBackupsSettings = settings.listBackupsSettings.toBuilder(); getBackupSettings = settings.getBackupSettings.toBuilder(); updateBackupSettings = settings.updateBackupSettings.toBuilder(); updateBackupOperationSettings = settings.updateBackupOperationSettings.toBuilder(); deleteBackupSettings = settings.deleteBackupSettings.toBuilder(); deleteBackupOperationSettings = settings.deleteBackupOperationSettings.toBuilder(); listVolumeBackupsSettings = settings.listVolumeBackupsSettings.toBuilder(); getVolumeBackupSettings = settings.getVolumeBackupSettings.toBuilder(); createRestorePlanSettings = settings.createRestorePlanSettings.toBuilder(); createRestorePlanOperationSettings = settings.createRestorePlanOperationSettings.toBuilder(); listRestorePlansSettings = settings.listRestorePlansSettings.toBuilder(); getRestorePlanSettings = settings.getRestorePlanSettings.toBuilder(); updateRestorePlanSettings = settings.updateRestorePlanSettings.toBuilder(); updateRestorePlanOperationSettings = settings.updateRestorePlanOperationSettings.toBuilder(); deleteRestorePlanSettings = settings.deleteRestorePlanSettings.toBuilder(); deleteRestorePlanOperationSettings = settings.deleteRestorePlanOperationSettings.toBuilder(); createRestoreSettings = settings.createRestoreSettings.toBuilder(); createRestoreOperationSettings = settings.createRestoreOperationSettings.toBuilder(); listRestoresSettings = settings.listRestoresSettings.toBuilder(); getRestoreSettings = settings.getRestoreSettings.toBuilder(); updateRestoreSettings = settings.updateRestoreSettings.toBuilder(); updateRestoreOperationSettings = settings.updateRestoreOperationSettings.toBuilder(); deleteRestoreSettings = settings.deleteRestoreSettings.toBuilder(); deleteRestoreOperationSettings = settings.deleteRestoreOperationSettings.toBuilder(); listVolumeRestoresSettings = settings.listVolumeRestoresSettings.toBuilder(); getVolumeRestoreSettings = settings.getVolumeRestoreSettings.toBuilder(); getBackupIndexDownloadUrlSettings = settings.getBackupIndexDownloadUrlSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( createBackupPlanSettings, listBackupPlansSettings, getBackupPlanSettings, updateBackupPlanSettings, deleteBackupPlanSettings, createBackupSettings, listBackupsSettings, getBackupSettings, updateBackupSettings, deleteBackupSettings, listVolumeBackupsSettings, getVolumeBackupSettings, createRestorePlanSettings, listRestorePlansSettings, getRestorePlanSettings, updateRestorePlanSettings, deleteRestorePlanSettings, createRestoreSettings, listRestoresSettings, getRestoreSettings, updateRestoreSettings, deleteRestoreSettings, listVolumeRestoresSettings, getVolumeRestoreSettings, getBackupIndexDownloadUrlSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, getIamPolicySettings, testIamPermissionsSettings); } private static Builder createDefault() { Builder builder = new Builder(((ClientContext) null)); builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } private static Builder createHttpJsonDefault() { Builder builder = new Builder(((ClientContext) null)); builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } private static Builder initDefaults(Builder builder) { builder .createBackupPlanSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); builder .listBackupPlansSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getBackupPlanSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updateBackupPlanSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .deleteBackupPlanSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .createBackupSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .listBackupsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getBackupSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updateBackupSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .deleteBackupSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")); builder .listVolumeBackupsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getVolumeBackupSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .createRestorePlanSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .listRestorePlansSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getRestorePlanSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updateRestorePlanSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .deleteRestorePlanSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .createRestoreSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); builder .listRestoresSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getRestoreSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updateRestoreSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .deleteRestoreSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); builder .listVolumeRestoresSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getVolumeRestoreSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getBackupIndexDownloadUrlSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder .getLocationSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder .setIamPolicySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder .getIamPolicySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder .testIamPermissionsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); builder .createBackupPlanOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(BackupPlan.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .updateBackupPlanOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(BackupPlan.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .deleteBackupPlanOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .createBackupOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Backup.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .updateBackupOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Backup.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .deleteBackupOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .createRestorePlanOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(RestorePlan.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .updateRestorePlanOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(RestorePlan.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .deleteRestorePlanOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .createRestoreOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Restore.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .updateRestoreOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Restore.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); builder .deleteRestoreOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) .setMetadataTransformer( ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelay(Duration.ofMillis(45000L)) .setInitialRpcTimeout(Duration.ZERO) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); return builder; } /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } public ImmutableList> unaryMethodSettingsBuilders() { return unaryMethodSettingsBuilders; } /** Returns the builder for the settings used for calls to createBackupPlan. */ public UnaryCallSettings.Builder createBackupPlanSettings() { return createBackupPlanSettings; } /** Returns the builder for the settings used for calls to createBackupPlan. */ public OperationCallSettings.Builder createBackupPlanOperationSettings() { return createBackupPlanOperationSettings; } /** Returns the builder for the settings used for calls to listBackupPlans. */ public PagedCallSettings.Builder< ListBackupPlansRequest, ListBackupPlansResponse, ListBackupPlansPagedResponse> listBackupPlansSettings() { return listBackupPlansSettings; } /** Returns the builder for the settings used for calls to getBackupPlan. */ public UnaryCallSettings.Builder getBackupPlanSettings() { return getBackupPlanSettings; } /** Returns the builder for the settings used for calls to updateBackupPlan. */ public UnaryCallSettings.Builder updateBackupPlanSettings() { return updateBackupPlanSettings; } /** Returns the builder for the settings used for calls to updateBackupPlan. */ public OperationCallSettings.Builder updateBackupPlanOperationSettings() { return updateBackupPlanOperationSettings; } /** Returns the builder for the settings used for calls to deleteBackupPlan. */ public UnaryCallSettings.Builder deleteBackupPlanSettings() { return deleteBackupPlanSettings; } /** Returns the builder for the settings used for calls to deleteBackupPlan. */ public OperationCallSettings.Builder deleteBackupPlanOperationSettings() { return deleteBackupPlanOperationSettings; } /** Returns the builder for the settings used for calls to createBackup. */ public UnaryCallSettings.Builder createBackupSettings() { return createBackupSettings; } /** Returns the builder for the settings used for calls to createBackup. */ public OperationCallSettings.Builder createBackupOperationSettings() { return createBackupOperationSettings; } /** Returns the builder for the settings used for calls to listBackups. */ public PagedCallSettings.Builder< ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> listBackupsSettings() { return listBackupsSettings; } /** Returns the builder for the settings used for calls to getBackup. */ public UnaryCallSettings.Builder getBackupSettings() { return getBackupSettings; } /** Returns the builder for the settings used for calls to updateBackup. */ public UnaryCallSettings.Builder updateBackupSettings() { return updateBackupSettings; } /** Returns the builder for the settings used for calls to updateBackup. */ public OperationCallSettings.Builder updateBackupOperationSettings() { return updateBackupOperationSettings; } /** Returns the builder for the settings used for calls to deleteBackup. */ public UnaryCallSettings.Builder deleteBackupSettings() { return deleteBackupSettings; } /** Returns the builder for the settings used for calls to deleteBackup. */ public OperationCallSettings.Builder deleteBackupOperationSettings() { return deleteBackupOperationSettings; } /** Returns the builder for the settings used for calls to listVolumeBackups. */ public PagedCallSettings.Builder< ListVolumeBackupsRequest, ListVolumeBackupsResponse, ListVolumeBackupsPagedResponse> listVolumeBackupsSettings() { return listVolumeBackupsSettings; } /** Returns the builder for the settings used for calls to getVolumeBackup. */ public UnaryCallSettings.Builder getVolumeBackupSettings() { return getVolumeBackupSettings; } /** Returns the builder for the settings used for calls to createRestorePlan. */ public UnaryCallSettings.Builder createRestorePlanSettings() { return createRestorePlanSettings; } /** Returns the builder for the settings used for calls to createRestorePlan. */ public OperationCallSettings.Builder createRestorePlanOperationSettings() { return createRestorePlanOperationSettings; } /** Returns the builder for the settings used for calls to listRestorePlans. */ public PagedCallSettings.Builder< ListRestorePlansRequest, ListRestorePlansResponse, ListRestorePlansPagedResponse> listRestorePlansSettings() { return listRestorePlansSettings; } /** Returns the builder for the settings used for calls to getRestorePlan. */ public UnaryCallSettings.Builder getRestorePlanSettings() { return getRestorePlanSettings; } /** Returns the builder for the settings used for calls to updateRestorePlan. */ public UnaryCallSettings.Builder updateRestorePlanSettings() { return updateRestorePlanSettings; } /** Returns the builder for the settings used for calls to updateRestorePlan. */ public OperationCallSettings.Builder updateRestorePlanOperationSettings() { return updateRestorePlanOperationSettings; } /** Returns the builder for the settings used for calls to deleteRestorePlan. */ public UnaryCallSettings.Builder deleteRestorePlanSettings() { return deleteRestorePlanSettings; } /** Returns the builder for the settings used for calls to deleteRestorePlan. */ public OperationCallSettings.Builder deleteRestorePlanOperationSettings() { return deleteRestorePlanOperationSettings; } /** Returns the builder for the settings used for calls to createRestore. */ public UnaryCallSettings.Builder createRestoreSettings() { return createRestoreSettings; } /** Returns the builder for the settings used for calls to createRestore. */ public OperationCallSettings.Builder createRestoreOperationSettings() { return createRestoreOperationSettings; } /** Returns the builder for the settings used for calls to listRestores. */ public PagedCallSettings.Builder< ListRestoresRequest, ListRestoresResponse, ListRestoresPagedResponse> listRestoresSettings() { return listRestoresSettings; } /** Returns the builder for the settings used for calls to getRestore. */ public UnaryCallSettings.Builder getRestoreSettings() { return getRestoreSettings; } /** Returns the builder for the settings used for calls to updateRestore. */ public UnaryCallSettings.Builder updateRestoreSettings() { return updateRestoreSettings; } /** Returns the builder for the settings used for calls to updateRestore. */ public OperationCallSettings.Builder updateRestoreOperationSettings() { return updateRestoreOperationSettings; } /** Returns the builder for the settings used for calls to deleteRestore. */ public UnaryCallSettings.Builder deleteRestoreSettings() { return deleteRestoreSettings; } /** Returns the builder for the settings used for calls to deleteRestore. */ public OperationCallSettings.Builder deleteRestoreOperationSettings() { return deleteRestoreOperationSettings; } /** Returns the builder for the settings used for calls to listVolumeRestores. */ public PagedCallSettings.Builder< ListVolumeRestoresRequest, ListVolumeRestoresResponse, ListVolumeRestoresPagedResponse> listVolumeRestoresSettings() { return listVolumeRestoresSettings; } /** Returns the builder for the settings used for calls to getVolumeRestore. */ public UnaryCallSettings.Builder getVolumeRestoreSettings() { return getVolumeRestoreSettings; } /** Returns the builder for the settings used for calls to getBackupIndexDownloadUrl. */ public UnaryCallSettings.Builder< GetBackupIndexDownloadUrlRequest, GetBackupIndexDownloadUrlResponse> getBackupIndexDownloadUrlSettings() { return getBackupIndexDownloadUrlSettings; } /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings() { return listLocationsSettings; } /** Returns the builder for the settings used for calls to getLocation. */ public UnaryCallSettings.Builder getLocationSettings() { return getLocationSettings; } /** Returns the builder for the settings used for calls to setIamPolicy. */ public UnaryCallSettings.Builder setIamPolicySettings() { return setIamPolicySettings; } /** Returns the builder for the settings used for calls to getIamPolicy. */ public UnaryCallSettings.Builder getIamPolicySettings() { return getIamPolicySettings; } /** Returns the builder for the settings used for calls to testIamPermissions. */ public UnaryCallSettings.Builder testIamPermissionsSettings() { return testIamPermissionsSettings; } @Override public BackupForGKEStubSettings build() throws IOException { return new BackupForGKEStubSettings(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy