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 total timeout of inspectContent 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
DlpServiceStubSettings.Builder dlpServiceSettingsBuilder = DlpServiceStubSettings.newBuilder();
dlpServiceSettingsBuilder
.inspectContentSettings()
.setRetrySettings(
dlpServiceSettingsBuilder
.inspectContentSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
DlpServiceStubSettings dlpServiceSettings = dlpServiceSettingsBuilder.build();
Static Methods
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
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.
newBuilder()
public static DlpServiceStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static DlpServiceStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
newHttpJsonBuilder()
public static DlpServiceStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Constructors
DlpServiceStubSettings(DlpServiceStubSettings.Builder settingsBuilder)
protected DlpServiceStubSettings(DlpServiceStubSettings.Builder settingsBuilder)
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.
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.
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()
deidentifyContentSettings()
public UnaryCallSettings<DeidentifyContentRequest,DeidentifyContentResponse> deidentifyContentSettings()
Returns the object with the settings used for calls to deidentifyContent.
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.
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.
deleteStoredInfoTypeSettings()
public UnaryCallSettings<DeleteStoredInfoTypeRequest,Empty> deleteStoredInfoTypeSettings()
Returns the object with the settings used for calls to deleteStoredInfoType.
finishDlpJobSettings()
public UnaryCallSettings<FinishDlpJobRequest,Empty> finishDlpJobSettings()
Returns the object with the settings used for calls to finishDlpJob.
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.
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.
getStoredInfoTypeSettings()
public UnaryCallSettings<GetStoredInfoTypeRequest,StoredInfoType> getStoredInfoTypeSettings()
Returns the object with the settings used for calls to getStoredInfoType.
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.
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.
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.
public PagedCallSettings<ListJobTriggersRequest,ListJobTriggersResponse,DlpServiceClient.ListJobTriggersPagedResponse> listJobTriggersSettings()
Returns the object with the settings used for calls to listJobTriggers.
listStoredInfoTypesSettings()
public PagedCallSettings<ListStoredInfoTypesRequest,ListStoredInfoTypesResponse,DlpServiceClient.ListStoredInfoTypesPagedResponse> listStoredInfoTypesSettings()
Returns the object with the settings used for calls to listStoredInfoTypes.
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.
toBuilder()
public DlpServiceStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Overrides
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.