Package com.google.cloud.dlp.v2
Class DlpServiceSettings
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings<DlpServiceSettings>
-
- com.google.cloud.dlp.v2.DlpServiceSettings
-
@Generated("by gapic-generator-java") public class DlpServiceSettings extends com.google.api.gax.rpc.ClientSettings<DlpServiceSettings>
Settings class to configure an instance ofDlpServiceClient
.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 DlpServiceSettings.Builder dlpServiceSettingsBuilder = DlpServiceSettings.newBuilder(); dlpServiceSettingsBuilder .inspectContentSettings() .setRetrySettings( dlpServiceSettingsBuilder .inspectContentSettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); DlpServiceSettings dlpServiceSettings = dlpServiceSettingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DlpServiceSettings.Builder
Builder for DlpServiceSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
DlpServiceSettings(DlpServiceSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.UnaryCallSettings<ActivateJobTriggerRequest,DlpJob>
activateJobTriggerSettings()
Returns the object with the settings used for calls to activateJobTrigger.com.google.api.gax.rpc.UnaryCallSettings<CancelDlpJobRequest,com.google.protobuf.Empty>
cancelDlpJobSettings()
Returns the object with the settings used for calls to cancelDlpJob.static DlpServiceSettings
create(DlpServiceStubSettings stub)
com.google.api.gax.rpc.UnaryCallSettings<CreateDeidentifyTemplateRequest,DeidentifyTemplate>
createDeidentifyTemplateSettings()
Returns the object with the settings used for calls to createDeidentifyTemplate.com.google.api.gax.rpc.UnaryCallSettings<CreateDlpJobRequest,DlpJob>
createDlpJobSettings()
Returns the object with the settings used for calls to createDlpJob.com.google.api.gax.rpc.UnaryCallSettings<CreateInspectTemplateRequest,InspectTemplate>
createInspectTemplateSettings()
Returns the object with the settings used for calls to createInspectTemplate.com.google.api.gax.rpc.UnaryCallSettings<CreateJobTriggerRequest,JobTrigger>
createJobTriggerSettings()
Returns the object with the settings used for calls to createJobTrigger.com.google.api.gax.rpc.UnaryCallSettings<CreateStoredInfoTypeRequest,StoredInfoType>
createStoredInfoTypeSettings()
Returns the object with the settings used for calls to createStoredInfoType.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultApiClientHeaderProviderBuilder()
static com.google.api.gax.core.GoogleCredentialsProvider.Builder
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.static com.google.api.gax.core.InstantiatingExecutorProvider.Builder
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvider
defaultTransportChannelProvider()
com.google.api.gax.rpc.UnaryCallSettings<DeidentifyContentRequest,DeidentifyContentResponse>
deidentifyContentSettings()
Returns the object with the settings used for calls to deidentifyContent.com.google.api.gax.rpc.UnaryCallSettings<DeleteDeidentifyTemplateRequest,com.google.protobuf.Empty>
deleteDeidentifyTemplateSettings()
Returns the object with the settings used for calls to deleteDeidentifyTemplate.com.google.api.gax.rpc.UnaryCallSettings<DeleteDlpJobRequest,com.google.protobuf.Empty>
deleteDlpJobSettings()
Returns the object with the settings used for calls to deleteDlpJob.com.google.api.gax.rpc.UnaryCallSettings<DeleteInspectTemplateRequest,com.google.protobuf.Empty>
deleteInspectTemplateSettings()
Returns the object with the settings used for calls to deleteInspectTemplate.com.google.api.gax.rpc.UnaryCallSettings<DeleteJobTriggerRequest,com.google.protobuf.Empty>
deleteJobTriggerSettings()
Returns the object with the settings used for calls to deleteJobTrigger.com.google.api.gax.rpc.UnaryCallSettings<DeleteStoredInfoTypeRequest,com.google.protobuf.Empty>
deleteStoredInfoTypeSettings()
Returns the object with the settings used for calls to deleteStoredInfoType.com.google.api.gax.rpc.UnaryCallSettings<FinishDlpJobRequest,com.google.protobuf.Empty>
finishDlpJobSettings()
Returns the object with the settings used for calls to finishDlpJob.static String
getDefaultEndpoint()
Returns the default service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<GetDeidentifyTemplateRequest,DeidentifyTemplate>
getDeidentifyTemplateSettings()
Returns the object with the settings used for calls to getDeidentifyTemplate.com.google.api.gax.rpc.UnaryCallSettings<GetDlpJobRequest,DlpJob>
getDlpJobSettings()
Returns the object with the settings used for calls to getDlpJob.com.google.api.gax.rpc.UnaryCallSettings<GetInspectTemplateRequest,InspectTemplate>
getInspectTemplateSettings()
Returns the object with the settings used for calls to getInspectTemplate.com.google.api.gax.rpc.UnaryCallSettings<GetJobTriggerRequest,JobTrigger>
getJobTriggerSettings()
Returns the object with the settings used for calls to getJobTrigger.com.google.api.gax.rpc.UnaryCallSettings<GetStoredInfoTypeRequest,StoredInfoType>
getStoredInfoTypeSettings()
Returns the object with the settings used for calls to getStoredInfoType.com.google.api.gax.rpc.UnaryCallSettings<HybridInspectDlpJobRequest,HybridInspectResponse>
hybridInspectDlpJobSettings()
Returns the object with the settings used for calls to hybridInspectDlpJob.com.google.api.gax.rpc.UnaryCallSettings<HybridInspectJobTriggerRequest,HybridInspectResponse>
hybridInspectJobTriggerSettings()
Returns the object with the settings used for calls to hybridInspectJobTrigger.com.google.api.gax.rpc.UnaryCallSettings<InspectContentRequest,InspectContentResponse>
inspectContentSettings()
Returns the object with the settings used for calls to inspectContent.com.google.api.gax.rpc.PagedCallSettings<ListDeidentifyTemplatesRequest,ListDeidentifyTemplatesResponse,DlpServiceClient.ListDeidentifyTemplatesPagedResponse>
listDeidentifyTemplatesSettings()
Returns the object with the settings used for calls to listDeidentifyTemplates.com.google.api.gax.rpc.PagedCallSettings<ListDlpJobsRequest,ListDlpJobsResponse,DlpServiceClient.ListDlpJobsPagedResponse>
listDlpJobsSettings()
Returns the object with the settings used for calls to listDlpJobs.com.google.api.gax.rpc.UnaryCallSettings<ListInfoTypesRequest,ListInfoTypesResponse>
listInfoTypesSettings()
Returns the object with the settings used for calls to listInfoTypes.com.google.api.gax.rpc.PagedCallSettings<ListInspectTemplatesRequest,ListInspectTemplatesResponse,DlpServiceClient.ListInspectTemplatesPagedResponse>
listInspectTemplatesSettings()
Returns the object with the settings used for calls to listInspectTemplates.com.google.api.gax.rpc.PagedCallSettings<ListJobTriggersRequest,ListJobTriggersResponse,DlpServiceClient.ListJobTriggersPagedResponse>
listJobTriggersSettings()
Returns the object with the settings used for calls to listJobTriggers.com.google.api.gax.rpc.PagedCallSettings<ListStoredInfoTypesRequest,ListStoredInfoTypesResponse,DlpServiceClient.ListStoredInfoTypesPagedResponse>
listStoredInfoTypesSettings()
Returns the object with the settings used for calls to listStoredInfoTypes.static DlpServiceSettings.Builder
newBuilder()
Returns a new gRPC builder for this class.static DlpServiceSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.static DlpServiceSettings.Builder
newHttpJsonBuilder()
Returns a new REST builder for this class.com.google.api.gax.rpc.UnaryCallSettings<RedactImageRequest,RedactImageResponse>
redactImageSettings()
Returns the object with the settings used for calls to redactImage.com.google.api.gax.rpc.UnaryCallSettings<ReidentifyContentRequest,ReidentifyContentResponse>
reidentifyContentSettings()
Returns the object with the settings used for calls to reidentifyContent.DlpServiceSettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.UnaryCallSettings<UpdateDeidentifyTemplateRequest,DeidentifyTemplate>
updateDeidentifyTemplateSettings()
Returns the object with the settings used for calls to updateDeidentifyTemplate.com.google.api.gax.rpc.UnaryCallSettings<UpdateInspectTemplateRequest,InspectTemplate>
updateInspectTemplateSettings()
Returns the object with the settings used for calls to updateInspectTemplate.com.google.api.gax.rpc.UnaryCallSettings<UpdateJobTriggerRequest,JobTrigger>
updateJobTriggerSettings()
Returns the object with the settings used for calls to updateJobTrigger.com.google.api.gax.rpc.UnaryCallSettings<UpdateStoredInfoTypeRequest,StoredInfoType>
updateStoredInfoTypeSettings()
Returns the object with the settings used for calls to updateStoredInfoType.-
Methods inherited from class com.google.api.gax.rpc.ClientSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
-
-
-
-
Constructor Detail
-
DlpServiceSettings
protected DlpServiceSettings(DlpServiceSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
inspectContentSettings
public com.google.api.gax.rpc.UnaryCallSettings<InspectContentRequest,InspectContentResponse> inspectContentSettings()
Returns the object with the settings used for calls to inspectContent.
-
redactImageSettings
public com.google.api.gax.rpc.UnaryCallSettings<RedactImageRequest,RedactImageResponse> redactImageSettings()
Returns the object with the settings used for calls to redactImage.
-
deidentifyContentSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeidentifyContentRequest,DeidentifyContentResponse> deidentifyContentSettings()
Returns the object with the settings used for calls to deidentifyContent.
-
reidentifyContentSettings
public com.google.api.gax.rpc.UnaryCallSettings<ReidentifyContentRequest,ReidentifyContentResponse> reidentifyContentSettings()
Returns the object with the settings used for calls to reidentifyContent.
-
listInfoTypesSettings
public com.google.api.gax.rpc.UnaryCallSettings<ListInfoTypesRequest,ListInfoTypesResponse> listInfoTypesSettings()
Returns the object with the settings used for calls to listInfoTypes.
-
createInspectTemplateSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateInspectTemplateRequest,InspectTemplate> createInspectTemplateSettings()
Returns the object with the settings used for calls to createInspectTemplate.
-
updateInspectTemplateSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateInspectTemplateRequest,InspectTemplate> updateInspectTemplateSettings()
Returns the object with the settings used for calls to updateInspectTemplate.
-
getInspectTemplateSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetInspectTemplateRequest,InspectTemplate> getInspectTemplateSettings()
Returns the object with the settings used for calls to getInspectTemplate.
-
listInspectTemplatesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListInspectTemplatesRequest,ListInspectTemplatesResponse,DlpServiceClient.ListInspectTemplatesPagedResponse> listInspectTemplatesSettings()
Returns the object with the settings used for calls to listInspectTemplates.
-
deleteInspectTemplateSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteInspectTemplateRequest,com.google.protobuf.Empty> deleteInspectTemplateSettings()
Returns the object with the settings used for calls to deleteInspectTemplate.
-
createDeidentifyTemplateSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateDeidentifyTemplateRequest,DeidentifyTemplate> createDeidentifyTemplateSettings()
Returns the object with the settings used for calls to createDeidentifyTemplate.
-
updateDeidentifyTemplateSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateDeidentifyTemplateRequest,DeidentifyTemplate> updateDeidentifyTemplateSettings()
Returns the object with the settings used for calls to updateDeidentifyTemplate.
-
getDeidentifyTemplateSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetDeidentifyTemplateRequest,DeidentifyTemplate> getDeidentifyTemplateSettings()
Returns the object with the settings used for calls to getDeidentifyTemplate.
-
listDeidentifyTemplatesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListDeidentifyTemplatesRequest,ListDeidentifyTemplatesResponse,DlpServiceClient.ListDeidentifyTemplatesPagedResponse> listDeidentifyTemplatesSettings()
Returns the object with the settings used for calls to listDeidentifyTemplates.
-
deleteDeidentifyTemplateSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteDeidentifyTemplateRequest,com.google.protobuf.Empty> deleteDeidentifyTemplateSettings()
Returns the object with the settings used for calls to deleteDeidentifyTemplate.
-
createJobTriggerSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateJobTriggerRequest,JobTrigger> createJobTriggerSettings()
Returns the object with the settings used for calls to createJobTrigger.
-
updateJobTriggerSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateJobTriggerRequest,JobTrigger> updateJobTriggerSettings()
Returns the object with the settings used for calls to updateJobTrigger.
-
hybridInspectJobTriggerSettings
public com.google.api.gax.rpc.UnaryCallSettings<HybridInspectJobTriggerRequest,HybridInspectResponse> hybridInspectJobTriggerSettings()
Returns the object with the settings used for calls to hybridInspectJobTrigger.
-
getJobTriggerSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetJobTriggerRequest,JobTrigger> getJobTriggerSettings()
Returns the object with the settings used for calls to getJobTrigger.
-
listJobTriggersSettings
public com.google.api.gax.rpc.PagedCallSettings<ListJobTriggersRequest,ListJobTriggersResponse,DlpServiceClient.ListJobTriggersPagedResponse> listJobTriggersSettings()
Returns the object with the settings used for calls to listJobTriggers.
-
deleteJobTriggerSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteJobTriggerRequest,com.google.protobuf.Empty> deleteJobTriggerSettings()
Returns the object with the settings used for calls to deleteJobTrigger.
-
activateJobTriggerSettings
public com.google.api.gax.rpc.UnaryCallSettings<ActivateJobTriggerRequest,DlpJob> activateJobTriggerSettings()
Returns the object with the settings used for calls to activateJobTrigger.
-
createDlpJobSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateDlpJobRequest,DlpJob> createDlpJobSettings()
Returns the object with the settings used for calls to createDlpJob.
-
listDlpJobsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListDlpJobsRequest,ListDlpJobsResponse,DlpServiceClient.ListDlpJobsPagedResponse> listDlpJobsSettings()
Returns the object with the settings used for calls to listDlpJobs.
-
getDlpJobSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetDlpJobRequest,DlpJob> getDlpJobSettings()
Returns the object with the settings used for calls to getDlpJob.
-
deleteDlpJobSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteDlpJobRequest,com.google.protobuf.Empty> deleteDlpJobSettings()
Returns the object with the settings used for calls to deleteDlpJob.
-
cancelDlpJobSettings
public com.google.api.gax.rpc.UnaryCallSettings<CancelDlpJobRequest,com.google.protobuf.Empty> cancelDlpJobSettings()
Returns the object with the settings used for calls to cancelDlpJob.
-
createStoredInfoTypeSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateStoredInfoTypeRequest,StoredInfoType> createStoredInfoTypeSettings()
Returns the object with the settings used for calls to createStoredInfoType.
-
updateStoredInfoTypeSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateStoredInfoTypeRequest,StoredInfoType> updateStoredInfoTypeSettings()
Returns the object with the settings used for calls to updateStoredInfoType.
-
getStoredInfoTypeSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetStoredInfoTypeRequest,StoredInfoType> getStoredInfoTypeSettings()
Returns the object with the settings used for calls to getStoredInfoType.
-
listStoredInfoTypesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListStoredInfoTypesRequest,ListStoredInfoTypesResponse,DlpServiceClient.ListStoredInfoTypesPagedResponse> listStoredInfoTypesSettings()
Returns the object with the settings used for calls to listStoredInfoTypes.
-
deleteStoredInfoTypeSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteStoredInfoTypeRequest,com.google.protobuf.Empty> deleteStoredInfoTypeSettings()
Returns the object with the settings used for calls to deleteStoredInfoType.
-
hybridInspectDlpJobSettings
public com.google.api.gax.rpc.UnaryCallSettings<HybridInspectDlpJobRequest,HybridInspectResponse> hybridInspectDlpJobSettings()
Returns the object with the settings used for calls to hybridInspectDlpJob.
-
finishDlpJobSettings
public com.google.api.gax.rpc.UnaryCallSettings<FinishDlpJobRequest,com.google.protobuf.Empty> finishDlpJobSettings()
Returns the object with the settings used for calls to finishDlpJob.
-
create
public static final DlpServiceSettings create(DlpServiceStubSettings stub) throws IOException
- Throws:
IOException
-
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 DlpServiceSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
-
newHttpJsonBuilder
@BetaApi public static DlpServiceSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
-
newBuilder
public static DlpServiceSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public DlpServiceSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.ClientSettings<DlpServiceSettings>
-
-