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 for illustrative purposes only.
// It may require modifications to work in your environment.
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()
Returns
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
Returns
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
Returns
public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
Returns
public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Returns
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
Returns
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
Returns
getDefaultEndpoint()
public static String getDefaultEndpoint()
Returns the default service endpoint.
Returns
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
Returns
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
Returns
newBuilder()
public static DlpServiceStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
Returns
newBuilder(ClientContext clientContext)
public static DlpServiceStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
Parameter
Returns
newHttpJsonBuilder()
public static DlpServiceStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Returns
Constructors
DlpServiceStubSettings(DlpServiceStubSettings.Builder settingsBuilder)
protected DlpServiceStubSettings(DlpServiceStubSettings.Builder settingsBuilder)
Parameter
Methods
activateJobTriggerSettings()
public UnaryCallSettings<ActivateJobTriggerRequest,DlpJob> activateJobTriggerSettings()
Returns the object with the settings used for calls to activateJobTrigger.
Returns
cancelDlpJobSettings()
public UnaryCallSettings<CancelDlpJobRequest,Empty> cancelDlpJobSettings()
Returns the object with the settings used for calls to cancelDlpJob.
Returns
createDeidentifyTemplateSettings()
public UnaryCallSettings<CreateDeidentifyTemplateRequest,DeidentifyTemplate> createDeidentifyTemplateSettings()
Returns the object with the settings used for calls to createDeidentifyTemplate.
Returns
createDlpJobSettings()
public UnaryCallSettings<CreateDlpJobRequest,DlpJob> createDlpJobSettings()
Returns the object with the settings used for calls to createDlpJob.
Returns
createInspectTemplateSettings()
public UnaryCallSettings<CreateInspectTemplateRequest,InspectTemplate> createInspectTemplateSettings()
Returns the object with the settings used for calls to createInspectTemplate.
Returns
createJobTriggerSettings()
public UnaryCallSettings<CreateJobTriggerRequest,JobTrigger> createJobTriggerSettings()
Returns the object with the settings used for calls to createJobTrigger.
Returns
createStoredInfoTypeSettings()
public UnaryCallSettings<CreateStoredInfoTypeRequest,StoredInfoType> createStoredInfoTypeSettings()
Returns the object with the settings used for calls to createStoredInfoType.
Returns
createStub()
public DlpServiceStub createStub()
Returns
Exceptions
deidentifyContentSettings()
public UnaryCallSettings<DeidentifyContentRequest,DeidentifyContentResponse> deidentifyContentSettings()
Returns the object with the settings used for calls to deidentifyContent.
Returns
deleteDeidentifyTemplateSettings()
public UnaryCallSettings<DeleteDeidentifyTemplateRequest,Empty> deleteDeidentifyTemplateSettings()
Returns the object with the settings used for calls to deleteDeidentifyTemplate.
Returns
deleteDlpJobSettings()
public UnaryCallSettings<DeleteDlpJobRequest,Empty> deleteDlpJobSettings()
Returns the object with the settings used for calls to deleteDlpJob.
Returns
deleteInspectTemplateSettings()
public UnaryCallSettings<DeleteInspectTemplateRequest,Empty> deleteInspectTemplateSettings()
Returns the object with the settings used for calls to deleteInspectTemplate.
Returns
deleteJobTriggerSettings()
public UnaryCallSettings<DeleteJobTriggerRequest,Empty> deleteJobTriggerSettings()
Returns the object with the settings used for calls to deleteJobTrigger.
Returns
deleteStoredInfoTypeSettings()
public UnaryCallSettings<DeleteStoredInfoTypeRequest,Empty> deleteStoredInfoTypeSettings()
Returns the object with the settings used for calls to deleteStoredInfoType.
Returns
finishDlpJobSettings()
public UnaryCallSettings<FinishDlpJobRequest,Empty> finishDlpJobSettings()
Returns the object with the settings used for calls to finishDlpJob.
Returns
getDeidentifyTemplateSettings()
public UnaryCallSettings<GetDeidentifyTemplateRequest,DeidentifyTemplate> getDeidentifyTemplateSettings()
Returns the object with the settings used for calls to getDeidentifyTemplate.
Returns
getDlpJobSettings()
public UnaryCallSettings<GetDlpJobRequest,DlpJob> getDlpJobSettings()
Returns the object with the settings used for calls to getDlpJob.
Returns
getInspectTemplateSettings()
public UnaryCallSettings<GetInspectTemplateRequest,InspectTemplate> getInspectTemplateSettings()
Returns the object with the settings used for calls to getInspectTemplate.
Returns
getJobTriggerSettings()
public UnaryCallSettings<GetJobTriggerRequest,JobTrigger> getJobTriggerSettings()
Returns the object with the settings used for calls to getJobTrigger.
Returns
getStoredInfoTypeSettings()
public UnaryCallSettings<GetStoredInfoTypeRequest,StoredInfoType> getStoredInfoTypeSettings()
Returns the object with the settings used for calls to getStoredInfoType.
Returns
hybridInspectDlpJobSettings()
public UnaryCallSettings<HybridInspectDlpJobRequest,HybridInspectResponse> hybridInspectDlpJobSettings()
Returns the object with the settings used for calls to hybridInspectDlpJob.
Returns
hybridInspectJobTriggerSettings()
public UnaryCallSettings<HybridInspectJobTriggerRequest,HybridInspectResponse> hybridInspectJobTriggerSettings()
Returns the object with the settings used for calls to hybridInspectJobTrigger.
Returns
inspectContentSettings()
public UnaryCallSettings<InspectContentRequest,InspectContentResponse> inspectContentSettings()
Returns the object with the settings used for calls to inspectContent.
Returns
listDeidentifyTemplatesSettings()
public PagedCallSettings<ListDeidentifyTemplatesRequest,ListDeidentifyTemplatesResponse,DlpServiceClient.ListDeidentifyTemplatesPagedResponse> listDeidentifyTemplatesSettings()
Returns the object with the settings used for calls to listDeidentifyTemplates.
Returns
listDlpJobsSettings()
public PagedCallSettings<ListDlpJobsRequest,ListDlpJobsResponse,DlpServiceClient.ListDlpJobsPagedResponse> listDlpJobsSettings()
Returns the object with the settings used for calls to listDlpJobs.
Returns
listInfoTypesSettings()
public UnaryCallSettings<ListInfoTypesRequest,ListInfoTypesResponse> listInfoTypesSettings()
Returns the object with the settings used for calls to listInfoTypes.
Returns
listInspectTemplatesSettings()
public PagedCallSettings<ListInspectTemplatesRequest,ListInspectTemplatesResponse,DlpServiceClient.ListInspectTemplatesPagedResponse> listInspectTemplatesSettings()
Returns the object with the settings used for calls to listInspectTemplates.
Returns
public PagedCallSettings<ListJobTriggersRequest,ListJobTriggersResponse,DlpServiceClient.ListJobTriggersPagedResponse> listJobTriggersSettings()
Returns the object with the settings used for calls to listJobTriggers.
Returns
listStoredInfoTypesSettings()
public PagedCallSettings<ListStoredInfoTypesRequest,ListStoredInfoTypesResponse,DlpServiceClient.ListStoredInfoTypesPagedResponse> listStoredInfoTypesSettings()
Returns the object with the settings used for calls to listStoredInfoTypes.
Returns
redactImageSettings()
public UnaryCallSettings<RedactImageRequest,RedactImageResponse> redactImageSettings()
Returns the object with the settings used for calls to redactImage.
Returns
reidentifyContentSettings()
public UnaryCallSettings<ReidentifyContentRequest,ReidentifyContentResponse> reidentifyContentSettings()
Returns the object with the settings used for calls to reidentifyContent.
Returns
toBuilder()
public DlpServiceStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Returns
Overrides
updateDeidentifyTemplateSettings()
public UnaryCallSettings<UpdateDeidentifyTemplateRequest,DeidentifyTemplate> updateDeidentifyTemplateSettings()
Returns the object with the settings used for calls to updateDeidentifyTemplate.
Returns
updateInspectTemplateSettings()
public UnaryCallSettings<UpdateInspectTemplateRequest,InspectTemplate> updateInspectTemplateSettings()
Returns the object with the settings used for calls to updateInspectTemplate.
Returns
updateJobTriggerSettings()
public UnaryCallSettings<UpdateJobTriggerRequest,JobTrigger> updateJobTriggerSettings()
Returns the object with the settings used for calls to updateJobTrigger.
Returns
updateStoredInfoTypeSettings()
public UnaryCallSettings<UpdateStoredInfoTypeRequest,StoredInfoType> updateStoredInfoTypeSettings()
Returns the object with the settings used for calls to updateStoredInfoType.
Returns