Class BackupForGKEStubSettings


  • @Generated("by gapic-generator-java")
    public class BackupForGKEStubSettings
    extends com.google.api.gax.rpc.StubSettings<BackupForGKEStubSettings>
    Settings class to configure an instance of 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:

    
     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require 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();
     
    • Method Detail

      • createBackupPlanSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateBackupPlanRequest,​com.google.longrunning.Operation> createBackupPlanSettings()
        Returns the object with the settings used for calls to createBackupPlan.
      • createBackupPlanOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<CreateBackupPlanRequest,​BackupPlan,​OperationMetadata> createBackupPlanOperationSettings()
        Returns the object with the settings used for calls to createBackupPlan.
      • getBackupPlanSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetBackupPlanRequest,​BackupPlan> getBackupPlanSettings()
        Returns the object with the settings used for calls to getBackupPlan.
      • updateBackupPlanSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateBackupPlanRequest,​com.google.longrunning.Operation> updateBackupPlanSettings()
        Returns the object with the settings used for calls to updateBackupPlan.
      • updateBackupPlanOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateBackupPlanRequest,​BackupPlan,​OperationMetadata> updateBackupPlanOperationSettings()
        Returns the object with the settings used for calls to updateBackupPlan.
      • deleteBackupPlanSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteBackupPlanRequest,​com.google.longrunning.Operation> deleteBackupPlanSettings()
        Returns the object with the settings used for calls to deleteBackupPlan.
      • deleteBackupPlanOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteBackupPlanRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteBackupPlanOperationSettings()
        Returns the object with the settings used for calls to deleteBackupPlan.
      • createBackupSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateBackupRequest,​com.google.longrunning.Operation> createBackupSettings()
        Returns the object with the settings used for calls to createBackup.
      • createBackupOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<CreateBackupRequest,​Backup,​OperationMetadata> createBackupOperationSettings()
        Returns the object with the settings used for calls to createBackup.
      • getBackupSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetBackupRequest,​Backup> getBackupSettings()
        Returns the object with the settings used for calls to getBackup.
      • updateBackupSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateBackupRequest,​com.google.longrunning.Operation> updateBackupSettings()
        Returns the object with the settings used for calls to updateBackup.
      • updateBackupOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateBackupRequest,​Backup,​OperationMetadata> updateBackupOperationSettings()
        Returns the object with the settings used for calls to updateBackup.
      • deleteBackupSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteBackupRequest,​com.google.longrunning.Operation> deleteBackupSettings()
        Returns the object with the settings used for calls to deleteBackup.
      • deleteBackupOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteBackupRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteBackupOperationSettings()
        Returns the object with the settings used for calls to deleteBackup.
      • getVolumeBackupSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetVolumeBackupRequest,​VolumeBackup> getVolumeBackupSettings()
        Returns the object with the settings used for calls to getVolumeBackup.
      • createRestorePlanSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateRestorePlanRequest,​com.google.longrunning.Operation> createRestorePlanSettings()
        Returns the object with the settings used for calls to createRestorePlan.
      • createRestorePlanOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<CreateRestorePlanRequest,​RestorePlan,​OperationMetadata> createRestorePlanOperationSettings()
        Returns the object with the settings used for calls to createRestorePlan.
      • getRestorePlanSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetRestorePlanRequest,​RestorePlan> getRestorePlanSettings()
        Returns the object with the settings used for calls to getRestorePlan.
      • updateRestorePlanSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateRestorePlanRequest,​com.google.longrunning.Operation> updateRestorePlanSettings()
        Returns the object with the settings used for calls to updateRestorePlan.
      • updateRestorePlanOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateRestorePlanRequest,​RestorePlan,​OperationMetadata> updateRestorePlanOperationSettings()
        Returns the object with the settings used for calls to updateRestorePlan.
      • deleteRestorePlanSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteRestorePlanRequest,​com.google.longrunning.Operation> deleteRestorePlanSettings()
        Returns the object with the settings used for calls to deleteRestorePlan.
      • deleteRestorePlanOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteRestorePlanRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteRestorePlanOperationSettings()
        Returns the object with the settings used for calls to deleteRestorePlan.
      • createRestoreSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateRestoreRequest,​com.google.longrunning.Operation> createRestoreSettings()
        Returns the object with the settings used for calls to createRestore.
      • createRestoreOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<CreateRestoreRequest,​Restore,​OperationMetadata> createRestoreOperationSettings()
        Returns the object with the settings used for calls to createRestore.
      • getRestoreSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetRestoreRequest,​Restore> getRestoreSettings()
        Returns the object with the settings used for calls to getRestore.
      • updateRestoreSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateRestoreRequest,​com.google.longrunning.Operation> updateRestoreSettings()
        Returns the object with the settings used for calls to updateRestore.
      • updateRestoreOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateRestoreRequest,​Restore,​OperationMetadata> updateRestoreOperationSettings()
        Returns the object with the settings used for calls to updateRestore.
      • deleteRestoreSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteRestoreRequest,​com.google.longrunning.Operation> deleteRestoreSettings()
        Returns the object with the settings used for calls to deleteRestore.
      • deleteRestoreOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteRestoreRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteRestoreOperationSettings()
        Returns the object with the settings used for calls to deleteRestore.
      • getVolumeRestoreSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetVolumeRestoreRequest,​VolumeRestore> getVolumeRestoreSettings()
        Returns the object with the settings used for calls to getVolumeRestore.
      • listLocationsSettings

        public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,​com.google.cloud.location.ListLocationsResponse,​BackupForGKEClient.ListLocationsPagedResponse> listLocationsSettings()
        Returns the object with the settings used for calls to listLocations.
      • getLocationSettings

        public com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,​com.google.cloud.location.Location> getLocationSettings()
        Returns the object with the settings used for calls to getLocation.
      • setIamPolicySettings

        public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,​com.google.iam.v1.Policy> setIamPolicySettings()
        Returns the object with the settings used for calls to setIamPolicy.
      • getIamPolicySettings

        public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,​com.google.iam.v1.Policy> getIamPolicySettings()
        Returns the object with the settings used for calls to getIamPolicy.
      • testIamPermissionsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,​com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
        Returns the object with the settings used for calls to testIamPermissions.
      • defaultExecutorProviderBuilder

        public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
        Returns a builder for the default ExecutorProvider for this service.
      • getDefaultEndpoint

        public static String getDefaultEndpoint()
        Returns the default service endpoint.
      • getDefaultMtlsEndpoint

        public static String getDefaultMtlsEndpoint()
        Returns the default mTLS service endpoint.
      • getDefaultServiceScopes

        public static List<String> getDefaultServiceScopes()
        Returns the default service scopes.
      • defaultCredentialsProviderBuilder

        public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
        Returns a builder for the default credentials for this service.
      • defaultGrpcTransportProviderBuilder

        public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
        Returns a builder for the default gRPC ChannelProvider for this service.
      • defaultHttpJsonTransportProviderBuilder

        @BetaApi
        public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
        Returns a builder for the default REST ChannelProvider for this service.
      • defaultTransportChannelProvider

        public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
      • defaultGrpcApiClientHeaderProviderBuilder

        @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
        public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
      • defaultHttpJsonApiClientHeaderProviderBuilder

        @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
        public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
      • defaultApiClientHeaderProviderBuilder

        public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
      • newBuilder

        public static BackupForGKEStubSettings.Builder newBuilder​(com.google.api.gax.rpc.ClientContext clientContext)
        Returns a new builder for this class.