Class MigrationCenterSettings


  • @Generated("by gapic-generator-java")
    public class MigrationCenterSettings
    extends com.google.api.gax.rpc.ClientSettings<MigrationCenterSettings>
    Settings class to configure an instance of MigrationCenterClient.

    The default instance has everything set to sensible defaults:

    • The default service address (migrationcenter.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 getAsset 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
     MigrationCenterSettings.Builder migrationCenterSettingsBuilder =
         MigrationCenterSettings.newBuilder();
     migrationCenterSettingsBuilder
         .getAssetSettings()
         .setRetrySettings(
             migrationCenterSettingsBuilder
                 .getAssetSettings()
                 .getRetrySettings()
                 .toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     MigrationCenterSettings migrationCenterSettings = migrationCenterSettingsBuilder.build();
     
    • Method Detail

      • getAssetSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetAssetRequest,​Asset> getAssetSettings()
        Returns the object with the settings used for calls to getAsset.
      • updateAssetSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateAssetRequest,​Asset> updateAssetSettings()
        Returns the object with the settings used for calls to updateAsset.
      • deleteAssetSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteAssetRequest,​com.google.protobuf.Empty> deleteAssetSettings()
        Returns the object with the settings used for calls to deleteAsset.
      • batchDeleteAssetsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<BatchDeleteAssetsRequest,​com.google.protobuf.Empty> batchDeleteAssetsSettings()
        Returns the object with the settings used for calls to batchDeleteAssets.
      • createImportJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateImportJobRequest,​com.google.longrunning.Operation> createImportJobSettings()
        Returns the object with the settings used for calls to createImportJob.
      • createImportJobOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<CreateImportJobRequest,​ImportJob,​OperationMetadata> createImportJobOperationSettings()
        Returns the object with the settings used for calls to createImportJob.
      • getImportJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetImportJobRequest,​ImportJob> getImportJobSettings()
        Returns the object with the settings used for calls to getImportJob.
      • deleteImportJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteImportJobRequest,​com.google.longrunning.Operation> deleteImportJobSettings()
        Returns the object with the settings used for calls to deleteImportJob.
      • deleteImportJobOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteImportJobRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteImportJobOperationSettings()
        Returns the object with the settings used for calls to deleteImportJob.
      • updateImportJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateImportJobRequest,​com.google.longrunning.Operation> updateImportJobSettings()
        Returns the object with the settings used for calls to updateImportJob.
      • updateImportJobOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateImportJobRequest,​ImportJob,​OperationMetadata> updateImportJobOperationSettings()
        Returns the object with the settings used for calls to updateImportJob.
      • validateImportJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ValidateImportJobRequest,​com.google.longrunning.Operation> validateImportJobSettings()
        Returns the object with the settings used for calls to validateImportJob.
      • validateImportJobOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<ValidateImportJobRequest,​com.google.protobuf.Empty,​OperationMetadata> validateImportJobOperationSettings()
        Returns the object with the settings used for calls to validateImportJob.
      • runImportJobSettings

        public com.google.api.gax.rpc.UnaryCallSettings<RunImportJobRequest,​com.google.longrunning.Operation> runImportJobSettings()
        Returns the object with the settings used for calls to runImportJob.
      • runImportJobOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<RunImportJobRequest,​com.google.protobuf.Empty,​OperationMetadata> runImportJobOperationSettings()
        Returns the object with the settings used for calls to runImportJob.
      • getImportDataFileSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetImportDataFileRequest,​ImportDataFile> getImportDataFileSettings()
        Returns the object with the settings used for calls to getImportDataFile.
      • createImportDataFileSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateImportDataFileRequest,​com.google.longrunning.Operation> createImportDataFileSettings()
        Returns the object with the settings used for calls to createImportDataFile.
      • deleteImportDataFileSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteImportDataFileRequest,​com.google.longrunning.Operation> deleteImportDataFileSettings()
        Returns the object with the settings used for calls to deleteImportDataFile.
      • deleteImportDataFileOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteImportDataFileRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteImportDataFileOperationSettings()
        Returns the object with the settings used for calls to deleteImportDataFile.
      • getGroupSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetGroupRequest,​Group> getGroupSettings()
        Returns the object with the settings used for calls to getGroup.
      • createGroupSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateGroupRequest,​com.google.longrunning.Operation> createGroupSettings()
        Returns the object with the settings used for calls to createGroup.
      • createGroupOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<CreateGroupRequest,​Group,​OperationMetadata> createGroupOperationSettings()
        Returns the object with the settings used for calls to createGroup.
      • updateGroupSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateGroupRequest,​com.google.longrunning.Operation> updateGroupSettings()
        Returns the object with the settings used for calls to updateGroup.
      • updateGroupOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateGroupRequest,​Group,​OperationMetadata> updateGroupOperationSettings()
        Returns the object with the settings used for calls to updateGroup.
      • deleteGroupSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteGroupRequest,​com.google.longrunning.Operation> deleteGroupSettings()
        Returns the object with the settings used for calls to deleteGroup.
      • deleteGroupOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteGroupRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteGroupOperationSettings()
        Returns the object with the settings used for calls to deleteGroup.
      • addAssetsToGroupSettings

        public com.google.api.gax.rpc.UnaryCallSettings<AddAssetsToGroupRequest,​com.google.longrunning.Operation> addAssetsToGroupSettings()
        Returns the object with the settings used for calls to addAssetsToGroup.
      • addAssetsToGroupOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<AddAssetsToGroupRequest,​Group,​OperationMetadata> addAssetsToGroupOperationSettings()
        Returns the object with the settings used for calls to addAssetsToGroup.
      • removeAssetsFromGroupSettings

        public com.google.api.gax.rpc.UnaryCallSettings<RemoveAssetsFromGroupRequest,​com.google.longrunning.Operation> removeAssetsFromGroupSettings()
        Returns the object with the settings used for calls to removeAssetsFromGroup.
      • removeAssetsFromGroupOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<RemoveAssetsFromGroupRequest,​Group,​OperationMetadata> removeAssetsFromGroupOperationSettings()
        Returns the object with the settings used for calls to removeAssetsFromGroup.
      • getErrorFrameSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetErrorFrameRequest,​ErrorFrame> getErrorFrameSettings()
        Returns the object with the settings used for calls to getErrorFrame.
      • getSourceSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetSourceRequest,​Source> getSourceSettings()
        Returns the object with the settings used for calls to getSource.
      • createSourceSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateSourceRequest,​com.google.longrunning.Operation> createSourceSettings()
        Returns the object with the settings used for calls to createSource.
      • createSourceOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<CreateSourceRequest,​Source,​OperationMetadata> createSourceOperationSettings()
        Returns the object with the settings used for calls to createSource.
      • updateSourceSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateSourceRequest,​com.google.longrunning.Operation> updateSourceSettings()
        Returns the object with the settings used for calls to updateSource.
      • updateSourceOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateSourceRequest,​Source,​OperationMetadata> updateSourceOperationSettings()
        Returns the object with the settings used for calls to updateSource.
      • deleteSourceSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteSourceRequest,​com.google.longrunning.Operation> deleteSourceSettings()
        Returns the object with the settings used for calls to deleteSource.
      • deleteSourceOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteSourceRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteSourceOperationSettings()
        Returns the object with the settings used for calls to deleteSource.
      • getPreferenceSetSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetPreferenceSetRequest,​PreferenceSet> getPreferenceSetSettings()
        Returns the object with the settings used for calls to getPreferenceSet.
      • createPreferenceSetSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreatePreferenceSetRequest,​com.google.longrunning.Operation> createPreferenceSetSettings()
        Returns the object with the settings used for calls to createPreferenceSet.
      • updatePreferenceSetSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdatePreferenceSetRequest,​com.google.longrunning.Operation> updatePreferenceSetSettings()
        Returns the object with the settings used for calls to updatePreferenceSet.
      • deletePreferenceSetSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeletePreferenceSetRequest,​com.google.longrunning.Operation> deletePreferenceSetSettings()
        Returns the object with the settings used for calls to deletePreferenceSet.
      • deletePreferenceSetOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeletePreferenceSetRequest,​com.google.protobuf.Empty,​OperationMetadata> deletePreferenceSetOperationSettings()
        Returns the object with the settings used for calls to deletePreferenceSet.
      • getSettingsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetSettingsRequest,​Settings> getSettingsSettings()
        Returns the object with the settings used for calls to getSettings.
      • updateSettingsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateSettingsRequest,​com.google.longrunning.Operation> updateSettingsSettings()
        Returns the object with the settings used for calls to updateSettings.
      • updateSettingsOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<UpdateSettingsRequest,​Settings,​OperationMetadata> updateSettingsOperationSettings()
        Returns the object with the settings used for calls to updateSettings.
      • createReportConfigSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateReportConfigRequest,​com.google.longrunning.Operation> createReportConfigSettings()
        Returns the object with the settings used for calls to createReportConfig.
      • getReportConfigSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetReportConfigRequest,​ReportConfig> getReportConfigSettings()
        Returns the object with the settings used for calls to getReportConfig.
      • deleteReportConfigSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteReportConfigRequest,​com.google.longrunning.Operation> deleteReportConfigSettings()
        Returns the object with the settings used for calls to deleteReportConfig.
      • deleteReportConfigOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteReportConfigRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteReportConfigOperationSettings()
        Returns the object with the settings used for calls to deleteReportConfig.
      • createReportSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateReportRequest,​com.google.longrunning.Operation> createReportSettings()
        Returns the object with the settings used for calls to createReport.
      • createReportOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<CreateReportRequest,​Report,​OperationMetadata> createReportOperationSettings()
        Returns the object with the settings used for calls to createReport.
      • getReportSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetReportRequest,​Report> getReportSettings()
        Returns the object with the settings used for calls to getReport.
      • deleteReportSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteReportRequest,​com.google.longrunning.Operation> deleteReportSettings()
        Returns the object with the settings used for calls to deleteReport.
      • deleteReportOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteReportRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteReportOperationSettings()
        Returns the object with the settings used for calls to deleteReport.
      • listLocationsSettings

        public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,​com.google.cloud.location.ListLocationsResponse,​MigrationCenterClient.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.
      • 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.
      • 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()
      • defaultApiClientHeaderProviderBuilder

        @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 defaultApiClientHeaderProviderBuilder()
      • newBuilder

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