Class DlpServiceStubSettings


  • @Generated("by gapic-generator-java")
    public class DlpServiceStubSettings
    extends com.google.api.gax.rpc.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();
     
    • 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.
      • 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.
      • 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.
      • 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.
      • getJobTriggerSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetJobTriggerRequest,​JobTrigger> getJobTriggerSettings()
        Returns the object with the settings used for calls to getJobTrigger.
      • 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.
      • 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.
      • 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.
      • 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.
      • getDefaultMtlsEndpoint

        public static String getDefaultMtlsEndpoint()
        Returns the default mTLS 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()
      • defaultGrpcApiClientHeaderProviderBuilder

        @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 defaultGrpcApiClientHeaderProviderBuilder()
      • defaultHttpJsonApiClientHeaderProviderBuilder

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

        public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
      • newBuilder

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