Class DlpServiceStubSettings (3.58.0)

public class DlpServiceStubSettings extends StubSettings<DlpServiceStubSettings>

Settings class to configure an instance of DlpServiceStub.

The default instance has everything set to sensible defaults:

  • The default service address (dlp.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 RetrySettings of inspectContent:


 // 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
 DlpServiceStubSettings.Builder dlpServiceSettingsBuilder = DlpServiceStubSettings.newBuilder();
 dlpServiceSettingsBuilder
     .inspectContentSettings()
     .setRetrySettings(
         dlpServiceSettingsBuilder
             .inspectContentSettings()
             .getRetrySettings()
             .toBuilder()
             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
             .setMaxAttempts(5)
             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
             .setRetryDelayMultiplier(1.3)
             .setRpcTimeoutMultiplier(1.5)
             .setTotalTimeoutDuration(Duration.ofSeconds(300))
             .build());
 DlpServiceStubSettings dlpServiceSettings = dlpServiceSettingsBuilder.build();
 

Please refer to the Client Side Retry Guide for additional support in setting retries.

Inheritance

java.lang.Object > StubSettings > DlpServiceStubSettings

Static Methods

defaultApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultCredentialsProviderBuilder()

public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
Type Description
Builder

defaultExecutorProviderBuilder()

public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
Type Description
Builder

defaultGrpcApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

Returns a builder for the default gRPC ChannelProvider for this service.

Returns
Type Description
Builder

defaultHttpJsonApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultHttpJsonTransportProviderBuilder()

public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()

Returns a builder for the default REST ChannelProvider for this service.

Returns
Type Description
Builder

defaultTransportChannelProvider()

public static TransportChannelProvider defaultTransportChannelProvider()
Returns
Type Description
TransportChannelProvider

getDefaultEndpoint()

public static String getDefaultEndpoint()

Returns the default service endpoint.

Returns
Type Description
String

getDefaultMtlsEndpoint()

public static String getDefaultMtlsEndpoint()

Returns the default mTLS service endpoint.

Returns
Type Description
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
Type Description
List<String>

newBuilder()

public static DlpServiceStubSettings.Builder newBuilder()

Returns a new gRPC builder for this class.

Returns
Type Description
DlpServiceStubSettings.Builder

newBuilder(ClientContext clientContext)

public static DlpServiceStubSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
Name Description
clientContext ClientContext
Returns
Type Description
DlpServiceStubSettings.Builder

newHttpJsonBuilder()

public static DlpServiceStubSettings.Builder newHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
Type Description
DlpServiceStubSettings.Builder

Constructors

DlpServiceStubSettings(DlpServiceStubSettings.Builder settingsBuilder)

protected DlpServiceStubSettings(DlpServiceStubSettings.Builder settingsBuilder)
Parameter
Name Description
settingsBuilder DlpServiceStubSettings.Builder

Methods

activateJobTriggerSettings()

public UnaryCallSettings<ActivateJobTriggerRequest,DlpJob> activateJobTriggerSettings()

Returns the object with the settings used for calls to activateJobTrigger.

cancelDlpJobSettings()

public UnaryCallSettings<CancelDlpJobRequest,Empty> cancelDlpJobSettings()

Returns the object with the settings used for calls to cancelDlpJob.

Returns
Type Description
UnaryCallSettings<CancelDlpJobRequest,Empty>

createConnectionSettings()

public UnaryCallSettings<CreateConnectionRequest,Connection> createConnectionSettings()

Returns the object with the settings used for calls to createConnection.

createDeidentifyTemplateSettings()

public UnaryCallSettings<CreateDeidentifyTemplateRequest,DeidentifyTemplate> createDeidentifyTemplateSettings()

Returns the object with the settings used for calls to createDeidentifyTemplate.

createDiscoveryConfigSettings()

public UnaryCallSettings<CreateDiscoveryConfigRequest,DiscoveryConfig> createDiscoveryConfigSettings()

Returns the object with the settings used for calls to createDiscoveryConfig.

createDlpJobSettings()

public UnaryCallSettings<CreateDlpJobRequest,DlpJob> createDlpJobSettings()

Returns the object with the settings used for calls to createDlpJob.

Returns
Type Description
UnaryCallSettings<CreateDlpJobRequest,DlpJob>

createInspectTemplateSettings()

public UnaryCallSettings<CreateInspectTemplateRequest,InspectTemplate> createInspectTemplateSettings()

Returns the object with the settings used for calls to createInspectTemplate.

createJobTriggerSettings()

public UnaryCallSettings<CreateJobTriggerRequest,JobTrigger> createJobTriggerSettings()

Returns the object with the settings used for calls to createJobTrigger.

createStoredInfoTypeSettings()

public UnaryCallSettings<CreateStoredInfoTypeRequest,StoredInfoType> createStoredInfoTypeSettings()

Returns the object with the settings used for calls to createStoredInfoType.

createStub()

public DlpServiceStub createStub()
Returns
Type Description
DlpServiceStub
Exceptions
Type Description
IOException

deidentifyContentSettings()

public UnaryCallSettings<DeidentifyContentRequest,DeidentifyContentResponse> deidentifyContentSettings()

Returns the object with the settings used for calls to deidentifyContent.

deleteConnectionSettings()

public UnaryCallSettings<DeleteConnectionRequest,Empty> deleteConnectionSettings()

Returns the object with the settings used for calls to deleteConnection.

Returns
Type Description
UnaryCallSettings<DeleteConnectionRequest,Empty>

deleteDeidentifyTemplateSettings()

public UnaryCallSettings<DeleteDeidentifyTemplateRequest,Empty> deleteDeidentifyTemplateSettings()

Returns the object with the settings used for calls to deleteDeidentifyTemplate.

deleteDiscoveryConfigSettings()

public UnaryCallSettings<DeleteDiscoveryConfigRequest,Empty> deleteDiscoveryConfigSettings()

Returns the object with the settings used for calls to deleteDiscoveryConfig.

deleteDlpJobSettings()

public UnaryCallSettings<DeleteDlpJobRequest,Empty> deleteDlpJobSettings()

Returns the object with the settings used for calls to deleteDlpJob.

Returns
Type Description
UnaryCallSettings<DeleteDlpJobRequest,Empty>

deleteFileStoreDataProfileSettings()

public UnaryCallSettings<DeleteFileStoreDataProfileRequest,Empty> deleteFileStoreDataProfileSettings()

Returns the object with the settings used for calls to deleteFileStoreDataProfile.

deleteInspectTemplateSettings()

public UnaryCallSettings<DeleteInspectTemplateRequest,Empty> deleteInspectTemplateSettings()

Returns the object with the settings used for calls to deleteInspectTemplate.

deleteJobTriggerSettings()

public UnaryCallSettings<DeleteJobTriggerRequest,Empty> deleteJobTriggerSettings()

Returns the object with the settings used for calls to deleteJobTrigger.

Returns
Type Description
UnaryCallSettings<DeleteJobTriggerRequest,Empty>

deleteStoredInfoTypeSettings()

public UnaryCallSettings<DeleteStoredInfoTypeRequest,Empty> deleteStoredInfoTypeSettings()

Returns the object with the settings used for calls to deleteStoredInfoType.

deleteTableDataProfileSettings()

public UnaryCallSettings<DeleteTableDataProfileRequest,Empty> deleteTableDataProfileSettings()

Returns the object with the settings used for calls to deleteTableDataProfile.

finishDlpJobSettings()

public UnaryCallSettings<FinishDlpJobRequest,Empty> finishDlpJobSettings()

Returns the object with the settings used for calls to finishDlpJob.

Returns
Type Description
UnaryCallSettings<FinishDlpJobRequest,Empty>

getColumnDataProfileSettings()

public UnaryCallSettings<GetColumnDataProfileRequest,ColumnDataProfile> getColumnDataProfileSettings()

Returns the object with the settings used for calls to getColumnDataProfile.

getConnectionSettings()

public UnaryCallSettings<GetConnectionRequest,Connection> getConnectionSettings()

Returns the object with the settings used for calls to getConnection.

getDeidentifyTemplateSettings()

public UnaryCallSettings<GetDeidentifyTemplateRequest,DeidentifyTemplate> getDeidentifyTemplateSettings()

Returns the object with the settings used for calls to getDeidentifyTemplate.

getDiscoveryConfigSettings()

public UnaryCallSettings<GetDiscoveryConfigRequest,DiscoveryConfig> getDiscoveryConfigSettings()

Returns the object with the settings used for calls to getDiscoveryConfig.

getDlpJobSettings()

public UnaryCallSettings<GetDlpJobRequest,DlpJob> getDlpJobSettings()

Returns the object with the settings used for calls to getDlpJob.

Returns
Type Description
UnaryCallSettings<GetDlpJobRequest,DlpJob>

getFileStoreDataProfileSettings()

public UnaryCallSettings<GetFileStoreDataProfileRequest,FileStoreDataProfile> getFileStoreDataProfileSettings()

Returns the object with the settings used for calls to getFileStoreDataProfile.

getInspectTemplateSettings()

public UnaryCallSettings<GetInspectTemplateRequest,InspectTemplate> getInspectTemplateSettings()

Returns the object with the settings used for calls to getInspectTemplate.

getJobTriggerSettings()

public UnaryCallSettings<GetJobTriggerRequest,JobTrigger> getJobTriggerSettings()

Returns the object with the settings used for calls to getJobTrigger.

getProjectDataProfileSettings()

public UnaryCallSettings<GetProjectDataProfileRequest,ProjectDataProfile> getProjectDataProfileSettings()

Returns the object with the settings used for calls to getProjectDataProfile.

getServiceName()

public String getServiceName()

Returns the default service name.

Returns
Type Description
String
Overrides

getStoredInfoTypeSettings()

public UnaryCallSettings<GetStoredInfoTypeRequest,StoredInfoType> getStoredInfoTypeSettings()

Returns the object with the settings used for calls to getStoredInfoType.

getTableDataProfileSettings()

public UnaryCallSettings<GetTableDataProfileRequest,TableDataProfile> getTableDataProfileSettings()

Returns the object with the settings used for calls to getTableDataProfile.

hybridInspectDlpJobSettings()

public UnaryCallSettings<HybridInspectDlpJobRequest,HybridInspectResponse> hybridInspectDlpJobSettings()

Returns the object with the settings used for calls to hybridInspectDlpJob.

hybridInspectJobTriggerSettings()

public UnaryCallSettings<HybridInspectJobTriggerRequest,HybridInspectResponse> hybridInspectJobTriggerSettings()

Returns the object with the settings used for calls to hybridInspectJobTrigger.

inspectContentSettings()

public UnaryCallSettings<InspectContentRequest,InspectContentResponse> inspectContentSettings()

Returns the object with the settings used for calls to inspectContent.

listColumnDataProfilesSettings()

public PagedCallSettings<ListColumnDataProfilesRequest,ListColumnDataProfilesResponse,DlpServiceClient.ListColumnDataProfilesPagedResponse> listColumnDataProfilesSettings()

Returns the object with the settings used for calls to listColumnDataProfiles.

listConnectionsSettings()

public PagedCallSettings<ListConnectionsRequest,ListConnectionsResponse,DlpServiceClient.ListConnectionsPagedResponse> listConnectionsSettings()

Returns the object with the settings used for calls to listConnections.

listDeidentifyTemplatesSettings()

public PagedCallSettings<ListDeidentifyTemplatesRequest,ListDeidentifyTemplatesResponse,DlpServiceClient.ListDeidentifyTemplatesPagedResponse> listDeidentifyTemplatesSettings()

Returns the object with the settings used for calls to listDeidentifyTemplates.

listDiscoveryConfigsSettings()

public PagedCallSettings<ListDiscoveryConfigsRequest,ListDiscoveryConfigsResponse,DlpServiceClient.ListDiscoveryConfigsPagedResponse> listDiscoveryConfigsSettings()

Returns the object with the settings used for calls to listDiscoveryConfigs.

listDlpJobsSettings()

public PagedCallSettings<ListDlpJobsRequest,ListDlpJobsResponse,DlpServiceClient.ListDlpJobsPagedResponse> listDlpJobsSettings()

Returns the object with the settings used for calls to listDlpJobs.

listFileStoreDataProfilesSettings()

public PagedCallSettings<ListFileStoreDataProfilesRequest,ListFileStoreDataProfilesResponse,DlpServiceClient.ListFileStoreDataProfilesPagedResponse> listFileStoreDataProfilesSettings()

Returns the object with the settings used for calls to listFileStoreDataProfiles.

listInfoTypesSettings()

public UnaryCallSettings<ListInfoTypesRequest,ListInfoTypesResponse> listInfoTypesSettings()

Returns the object with the settings used for calls to listInfoTypes.

listInspectTemplatesSettings()

public PagedCallSettings<ListInspectTemplatesRequest,ListInspectTemplatesResponse,DlpServiceClient.ListInspectTemplatesPagedResponse> listInspectTemplatesSettings()

Returns the object with the settings used for calls to listInspectTemplates.

listJobTriggersSettings()

public PagedCallSettings<ListJobTriggersRequest,ListJobTriggersResponse,DlpServiceClient.ListJobTriggersPagedResponse> listJobTriggersSettings()

Returns the object with the settings used for calls to listJobTriggers.

listProjectDataProfilesSettings()

public PagedCallSettings<ListProjectDataProfilesRequest,ListProjectDataProfilesResponse,DlpServiceClient.ListProjectDataProfilesPagedResponse> listProjectDataProfilesSettings()

Returns the object with the settings used for calls to listProjectDataProfiles.

listStoredInfoTypesSettings()

public PagedCallSettings<ListStoredInfoTypesRequest,ListStoredInfoTypesResponse,DlpServiceClient.ListStoredInfoTypesPagedResponse> listStoredInfoTypesSettings()

Returns the object with the settings used for calls to listStoredInfoTypes.

listTableDataProfilesSettings()

public PagedCallSettings<ListTableDataProfilesRequest,ListTableDataProfilesResponse,DlpServiceClient.ListTableDataProfilesPagedResponse> listTableDataProfilesSettings()

Returns the object with the settings used for calls to listTableDataProfiles.

redactImageSettings()

public UnaryCallSettings<RedactImageRequest,RedactImageResponse> redactImageSettings()

Returns the object with the settings used for calls to redactImage.

reidentifyContentSettings()

public UnaryCallSettings<ReidentifyContentRequest,ReidentifyContentResponse> reidentifyContentSettings()

Returns the object with the settings used for calls to reidentifyContent.

searchConnectionsSettings()

public PagedCallSettings<SearchConnectionsRequest,SearchConnectionsResponse,DlpServiceClient.SearchConnectionsPagedResponse> searchConnectionsSettings()

Returns the object with the settings used for calls to searchConnections.

toBuilder()

public DlpServiceStubSettings.Builder toBuilder()

Returns a builder containing all the values of this settings class.

Returns
Type Description
DlpServiceStubSettings.Builder
Overrides

updateConnectionSettings()

public UnaryCallSettings<UpdateConnectionRequest,Connection> updateConnectionSettings()

Returns the object with the settings used for calls to updateConnection.

updateDeidentifyTemplateSettings()

public UnaryCallSettings<UpdateDeidentifyTemplateRequest,DeidentifyTemplate> updateDeidentifyTemplateSettings()

Returns the object with the settings used for calls to updateDeidentifyTemplate.

updateDiscoveryConfigSettings()

public UnaryCallSettings<UpdateDiscoveryConfigRequest,DiscoveryConfig> updateDiscoveryConfigSettings()

Returns the object with the settings used for calls to updateDiscoveryConfig.

updateInspectTemplateSettings()

public UnaryCallSettings<UpdateInspectTemplateRequest,InspectTemplate> updateInspectTemplateSettings()

Returns the object with the settings used for calls to updateInspectTemplate.

updateJobTriggerSettings()

public UnaryCallSettings<UpdateJobTriggerRequest,JobTrigger> updateJobTriggerSettings()

Returns the object with the settings used for calls to updateJobTrigger.

updateStoredInfoTypeSettings()

public UnaryCallSettings<UpdateStoredInfoTypeRequest,StoredInfoType> updateStoredInfoTypeSettings()

Returns the object with the settings used for calls to updateStoredInfoType.