Class DiscoveryConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DiscoveryConfig.Builder>
com.google.privacy.dlp.v2.DiscoveryConfig.Builder
All Implemented Interfaces:
DiscoveryConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DiscoveryConfig

public static final class DiscoveryConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<DiscoveryConfig.Builder> implements DiscoveryConfigOrBuilder
 Configuration for discovery to scan resources for profile generation.
 Only one discovery configuration may exist per organization, folder,
 or project.

 The generated data profiles are retained according to the
 [data retention policy]
 (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention).
 
Protobuf type google.privacy.dlp.v2.DiscoveryConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DiscoveryConfig.Builder>
    • clear

      public DiscoveryConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DiscoveryConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DiscoveryConfig.Builder>
    • getDefaultInstanceForType

      public DiscoveryConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DiscoveryConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DiscoveryConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DiscoveryConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DiscoveryConfig.Builder>
    • mergeFrom

      public DiscoveryConfig.Builder mergeFrom(DiscoveryConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DiscoveryConfig.Builder>
    • mergeFrom

      public DiscoveryConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DiscoveryConfig.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Unique resource name for the DiscoveryConfig, assigned by the service when
       the DiscoveryConfig is created, for example
       `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`.
       
      string name = 1;
      Specified by:
      getName in interface DiscoveryConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Unique resource name for the DiscoveryConfig, assigned by the service when
       the DiscoveryConfig is created, for example
       `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`.
       
      string name = 1;
      Specified by:
      getNameBytes in interface DiscoveryConfigOrBuilder
      Returns:
      The bytes for name.
    • setName

      public DiscoveryConfig.Builder setName(String value)
       Unique resource name for the DiscoveryConfig, assigned by the service when
       the DiscoveryConfig is created, for example
       `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public DiscoveryConfig.Builder clearName()
       Unique resource name for the DiscoveryConfig, assigned by the service when
       the DiscoveryConfig is created, for example
       `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public DiscoveryConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       Unique resource name for the DiscoveryConfig, assigned by the service when
       the DiscoveryConfig is created, for example
       `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Display name (max 100 chars)
       
      string display_name = 11;
      Specified by:
      getDisplayName in interface DiscoveryConfigOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Display name (max 100 chars)
       
      string display_name = 11;
      Specified by:
      getDisplayNameBytes in interface DiscoveryConfigOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public DiscoveryConfig.Builder setDisplayName(String value)
       Display name (max 100 chars)
       
      string display_name = 11;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public DiscoveryConfig.Builder clearDisplayName()
       Display name (max 100 chars)
       
      string display_name = 11;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public DiscoveryConfig.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Display name (max 100 chars)
       
      string display_name = 11;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasOrgConfig

      public boolean hasOrgConfig()
       Only set when the parent is an org.
       
      .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;
      Specified by:
      hasOrgConfig in interface DiscoveryConfigOrBuilder
      Returns:
      Whether the orgConfig field is set.
    • getOrgConfig

      public DiscoveryConfig.OrgConfig getOrgConfig()
       Only set when the parent is an org.
       
      .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;
      Specified by:
      getOrgConfig in interface DiscoveryConfigOrBuilder
      Returns:
      The orgConfig.
    • setOrgConfig

       Only set when the parent is an org.
       
      .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;
    • setOrgConfig

      public DiscoveryConfig.Builder setOrgConfig(DiscoveryConfig.OrgConfig.Builder builderForValue)
       Only set when the parent is an org.
       
      .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;
    • mergeOrgConfig

      public DiscoveryConfig.Builder mergeOrgConfig(DiscoveryConfig.OrgConfig value)
       Only set when the parent is an org.
       
      .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;
    • clearOrgConfig

      public DiscoveryConfig.Builder clearOrgConfig()
       Only set when the parent is an org.
       
      .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;
    • getOrgConfigBuilder

      public DiscoveryConfig.OrgConfig.Builder getOrgConfigBuilder()
       Only set when the parent is an org.
       
      .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;
    • getOrgConfigOrBuilder

      public DiscoveryConfig.OrgConfigOrBuilder getOrgConfigOrBuilder()
       Only set when the parent is an org.
       
      .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;
      Specified by:
      getOrgConfigOrBuilder in interface DiscoveryConfigOrBuilder
    • hasOtherCloudStartingLocation

      public boolean hasOtherCloudStartingLocation()
       Must be set only when scanning other clouds.
       
      .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12;
      Specified by:
      hasOtherCloudStartingLocation in interface DiscoveryConfigOrBuilder
      Returns:
      Whether the otherCloudStartingLocation field is set.
    • getOtherCloudStartingLocation

      public OtherCloudDiscoveryStartingLocation getOtherCloudStartingLocation()
       Must be set only when scanning other clouds.
       
      .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12;
      Specified by:
      getOtherCloudStartingLocation in interface DiscoveryConfigOrBuilder
      Returns:
      The otherCloudStartingLocation.
    • setOtherCloudStartingLocation

      public DiscoveryConfig.Builder setOtherCloudStartingLocation(OtherCloudDiscoveryStartingLocation value)
       Must be set only when scanning other clouds.
       
      .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12;
    • setOtherCloudStartingLocation

      public DiscoveryConfig.Builder setOtherCloudStartingLocation(OtherCloudDiscoveryStartingLocation.Builder builderForValue)
       Must be set only when scanning other clouds.
       
      .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12;
    • mergeOtherCloudStartingLocation

      public DiscoveryConfig.Builder mergeOtherCloudStartingLocation(OtherCloudDiscoveryStartingLocation value)
       Must be set only when scanning other clouds.
       
      .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12;
    • clearOtherCloudStartingLocation

      public DiscoveryConfig.Builder clearOtherCloudStartingLocation()
       Must be set only when scanning other clouds.
       
      .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12;
    • getOtherCloudStartingLocationBuilder

      public OtherCloudDiscoveryStartingLocation.Builder getOtherCloudStartingLocationBuilder()
       Must be set only when scanning other clouds.
       
      .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12;
    • getOtherCloudStartingLocationOrBuilder

      public OtherCloudDiscoveryStartingLocationOrBuilder getOtherCloudStartingLocationOrBuilder()
       Must be set only when scanning other clouds.
       
      .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12;
      Specified by:
      getOtherCloudStartingLocationOrBuilder in interface DiscoveryConfigOrBuilder
    • getInspectTemplatesList

      public com.google.protobuf.ProtocolStringList getInspectTemplatesList()
       Detection logic for profile generation.
      
       Not all template features are used by Discovery. FindingLimits,
       include_quote and exclude_info_types have no impact on
       Discovery.
      
       Multiple templates may be provided if there is data in multiple regions.
       At most one template must be specified per-region (including "global").
       Each region is scanned using the applicable template. If no region-specific
       template is specified, but a "global" template is specified, it will be
       copied to that region and used instead. If no global or region-specific
       template is provided for a region with data, that region's data will not be
       scanned.
      
       For more information, see
       https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
       
      repeated string inspect_templates = 3;
      Specified by:
      getInspectTemplatesList in interface DiscoveryConfigOrBuilder
      Returns:
      A list containing the inspectTemplates.
    • getInspectTemplatesCount

      public int getInspectTemplatesCount()
       Detection logic for profile generation.
      
       Not all template features are used by Discovery. FindingLimits,
       include_quote and exclude_info_types have no impact on
       Discovery.
      
       Multiple templates may be provided if there is data in multiple regions.
       At most one template must be specified per-region (including "global").
       Each region is scanned using the applicable template. If no region-specific
       template is specified, but a "global" template is specified, it will be
       copied to that region and used instead. If no global or region-specific
       template is provided for a region with data, that region's data will not be
       scanned.
      
       For more information, see
       https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
       
      repeated string inspect_templates = 3;
      Specified by:
      getInspectTemplatesCount in interface DiscoveryConfigOrBuilder
      Returns:
      The count of inspectTemplates.
    • getInspectTemplates

      public String getInspectTemplates(int index)
       Detection logic for profile generation.
      
       Not all template features are used by Discovery. FindingLimits,
       include_quote and exclude_info_types have no impact on
       Discovery.
      
       Multiple templates may be provided if there is data in multiple regions.
       At most one template must be specified per-region (including "global").
       Each region is scanned using the applicable template. If no region-specific
       template is specified, but a "global" template is specified, it will be
       copied to that region and used instead. If no global or region-specific
       template is provided for a region with data, that region's data will not be
       scanned.
      
       For more information, see
       https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
       
      repeated string inspect_templates = 3;
      Specified by:
      getInspectTemplates in interface DiscoveryConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The inspectTemplates at the given index.
    • getInspectTemplatesBytes

      public com.google.protobuf.ByteString getInspectTemplatesBytes(int index)
       Detection logic for profile generation.
      
       Not all template features are used by Discovery. FindingLimits,
       include_quote and exclude_info_types have no impact on
       Discovery.
      
       Multiple templates may be provided if there is data in multiple regions.
       At most one template must be specified per-region (including "global").
       Each region is scanned using the applicable template. If no region-specific
       template is specified, but a "global" template is specified, it will be
       copied to that region and used instead. If no global or region-specific
       template is provided for a region with data, that region's data will not be
       scanned.
      
       For more information, see
       https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
       
      repeated string inspect_templates = 3;
      Specified by:
      getInspectTemplatesBytes in interface DiscoveryConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the inspectTemplates at the given index.
    • setInspectTemplates

      public DiscoveryConfig.Builder setInspectTemplates(int index, String value)
       Detection logic for profile generation.
      
       Not all template features are used by Discovery. FindingLimits,
       include_quote and exclude_info_types have no impact on
       Discovery.
      
       Multiple templates may be provided if there is data in multiple regions.
       At most one template must be specified per-region (including "global").
       Each region is scanned using the applicable template. If no region-specific
       template is specified, but a "global" template is specified, it will be
       copied to that region and used instead. If no global or region-specific
       template is provided for a region with data, that region's data will not be
       scanned.
      
       For more information, see
       https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
       
      repeated string inspect_templates = 3;
      Parameters:
      index - The index to set the value at.
      value - The inspectTemplates to set.
      Returns:
      This builder for chaining.
    • addInspectTemplates

      public DiscoveryConfig.Builder addInspectTemplates(String value)
       Detection logic for profile generation.
      
       Not all template features are used by Discovery. FindingLimits,
       include_quote and exclude_info_types have no impact on
       Discovery.
      
       Multiple templates may be provided if there is data in multiple regions.
       At most one template must be specified per-region (including "global").
       Each region is scanned using the applicable template. If no region-specific
       template is specified, but a "global" template is specified, it will be
       copied to that region and used instead. If no global or region-specific
       template is provided for a region with data, that region's data will not be
       scanned.
      
       For more information, see
       https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
       
      repeated string inspect_templates = 3;
      Parameters:
      value - The inspectTemplates to add.
      Returns:
      This builder for chaining.
    • addAllInspectTemplates

      public DiscoveryConfig.Builder addAllInspectTemplates(Iterable<String> values)
       Detection logic for profile generation.
      
       Not all template features are used by Discovery. FindingLimits,
       include_quote and exclude_info_types have no impact on
       Discovery.
      
       Multiple templates may be provided if there is data in multiple regions.
       At most one template must be specified per-region (including "global").
       Each region is scanned using the applicable template. If no region-specific
       template is specified, but a "global" template is specified, it will be
       copied to that region and used instead. If no global or region-specific
       template is provided for a region with data, that region's data will not be
       scanned.
      
       For more information, see
       https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
       
      repeated string inspect_templates = 3;
      Parameters:
      values - The inspectTemplates to add.
      Returns:
      This builder for chaining.
    • clearInspectTemplates

      public DiscoveryConfig.Builder clearInspectTemplates()
       Detection logic for profile generation.
      
       Not all template features are used by Discovery. FindingLimits,
       include_quote and exclude_info_types have no impact on
       Discovery.
      
       Multiple templates may be provided if there is data in multiple regions.
       At most one template must be specified per-region (including "global").
       Each region is scanned using the applicable template. If no region-specific
       template is specified, but a "global" template is specified, it will be
       copied to that region and used instead. If no global or region-specific
       template is provided for a region with data, that region's data will not be
       scanned.
      
       For more information, see
       https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
       
      repeated string inspect_templates = 3;
      Returns:
      This builder for chaining.
    • addInspectTemplatesBytes

      public DiscoveryConfig.Builder addInspectTemplatesBytes(com.google.protobuf.ByteString value)
       Detection logic for profile generation.
      
       Not all template features are used by Discovery. FindingLimits,
       include_quote and exclude_info_types have no impact on
       Discovery.
      
       Multiple templates may be provided if there is data in multiple regions.
       At most one template must be specified per-region (including "global").
       Each region is scanned using the applicable template. If no region-specific
       template is specified, but a "global" template is specified, it will be
       copied to that region and used instead. If no global or region-specific
       template is provided for a region with data, that region's data will not be
       scanned.
      
       For more information, see
       https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.
       
      repeated string inspect_templates = 3;
      Parameters:
      value - The bytes of the inspectTemplates to add.
      Returns:
      This builder for chaining.
    • getActionsList

      public List<DataProfileAction> getActionsList()
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
      Specified by:
      getActionsList in interface DiscoveryConfigOrBuilder
    • getActionsCount

      public int getActionsCount()
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
      Specified by:
      getActionsCount in interface DiscoveryConfigOrBuilder
    • getActions

      public DataProfileAction getActions(int index)
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
      Specified by:
      getActions in interface DiscoveryConfigOrBuilder
    • setActions

      public DiscoveryConfig.Builder setActions(int index, DataProfileAction value)
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
    • setActions

      public DiscoveryConfig.Builder setActions(int index, DataProfileAction.Builder builderForValue)
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
    • addActions

      public DiscoveryConfig.Builder addActions(DataProfileAction value)
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
    • addActions

      public DiscoveryConfig.Builder addActions(int index, DataProfileAction value)
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
    • addActions

      public DiscoveryConfig.Builder addActions(DataProfileAction.Builder builderForValue)
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
    • addActions

      public DiscoveryConfig.Builder addActions(int index, DataProfileAction.Builder builderForValue)
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
    • addAllActions

      public DiscoveryConfig.Builder addAllActions(Iterable<? extends DataProfileAction> values)
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
    • clearActions

      public DiscoveryConfig.Builder clearActions()
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
    • removeActions

      public DiscoveryConfig.Builder removeActions(int index)
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
    • getActionsBuilder

      public DataProfileAction.Builder getActionsBuilder(int index)
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
    • getActionsOrBuilder

      public DataProfileActionOrBuilder getActionsOrBuilder(int index)
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
      Specified by:
      getActionsOrBuilder in interface DiscoveryConfigOrBuilder
    • getActionsOrBuilderList

      public List<? extends DataProfileActionOrBuilder> getActionsOrBuilderList()
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
      Specified by:
      getActionsOrBuilderList in interface DiscoveryConfigOrBuilder
    • addActionsBuilder

      public DataProfileAction.Builder addActionsBuilder()
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
    • addActionsBuilder

      public DataProfileAction.Builder addActionsBuilder(int index)
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
    • getActionsBuilderList

      public List<DataProfileAction.Builder> getActionsBuilderList()
       Actions to execute at the completion of scanning.
       
      repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
    • getTargetsList

      public List<DiscoveryTarget> getTargetsList()
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
      Specified by:
      getTargetsList in interface DiscoveryConfigOrBuilder
    • getTargetsCount

      public int getTargetsCount()
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
      Specified by:
      getTargetsCount in interface DiscoveryConfigOrBuilder
    • getTargets

      public DiscoveryTarget getTargets(int index)
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
      Specified by:
      getTargets in interface DiscoveryConfigOrBuilder
    • setTargets

      public DiscoveryConfig.Builder setTargets(int index, DiscoveryTarget value)
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
    • setTargets

      public DiscoveryConfig.Builder setTargets(int index, DiscoveryTarget.Builder builderForValue)
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
    • addTargets

      public DiscoveryConfig.Builder addTargets(DiscoveryTarget value)
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
    • addTargets

      public DiscoveryConfig.Builder addTargets(int index, DiscoveryTarget value)
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
    • addTargets

      public DiscoveryConfig.Builder addTargets(DiscoveryTarget.Builder builderForValue)
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
    • addTargets

      public DiscoveryConfig.Builder addTargets(int index, DiscoveryTarget.Builder builderForValue)
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
    • addAllTargets

      public DiscoveryConfig.Builder addAllTargets(Iterable<? extends DiscoveryTarget> values)
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
    • clearTargets

      public DiscoveryConfig.Builder clearTargets()
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
    • removeTargets

      public DiscoveryConfig.Builder removeTargets(int index)
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
    • getTargetsBuilder

      public DiscoveryTarget.Builder getTargetsBuilder(int index)
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
    • getTargetsOrBuilder

      public DiscoveryTargetOrBuilder getTargetsOrBuilder(int index)
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
      Specified by:
      getTargetsOrBuilder in interface DiscoveryConfigOrBuilder
    • getTargetsOrBuilderList

      public List<? extends DiscoveryTargetOrBuilder> getTargetsOrBuilderList()
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
      Specified by:
      getTargetsOrBuilderList in interface DiscoveryConfigOrBuilder
    • addTargetsBuilder

      public DiscoveryTarget.Builder addTargetsBuilder()
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
    • addTargetsBuilder

      public DiscoveryTarget.Builder addTargetsBuilder(int index)
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
    • getTargetsBuilderList

      public List<DiscoveryTarget.Builder> getTargetsBuilderList()
       Target to match against for determining what to scan and how frequently.
       
      repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;
    • getErrorsList

      public List<Error> getErrorsList()
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorsList in interface DiscoveryConfigOrBuilder
    • getErrorsCount

      public int getErrorsCount()
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorsCount in interface DiscoveryConfigOrBuilder
    • getErrors

      public Error getErrors(int index)
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrors in interface DiscoveryConfigOrBuilder
    • setErrors

      public DiscoveryConfig.Builder setErrors(int index, Error value)
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setErrors

      public DiscoveryConfig.Builder setErrors(int index, Error.Builder builderForValue)
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addErrors

      public DiscoveryConfig.Builder addErrors(Error value)
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addErrors

      public DiscoveryConfig.Builder addErrors(int index, Error value)
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addErrors

      public DiscoveryConfig.Builder addErrors(Error.Builder builderForValue)
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addErrors

      public DiscoveryConfig.Builder addErrors(int index, Error.Builder builderForValue)
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllErrors

      public DiscoveryConfig.Builder addAllErrors(Iterable<? extends Error> values)
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearErrors

      public DiscoveryConfig.Builder clearErrors()
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeErrors

      public DiscoveryConfig.Builder removeErrors(int index)
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getErrorsBuilder

      public Error.Builder getErrorsBuilder(int index)
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getErrorsOrBuilder

      public ErrorOrBuilder getErrorsOrBuilder(int index)
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorsOrBuilder in interface DiscoveryConfigOrBuilder
    • getErrorsOrBuilderList

      public List<? extends ErrorOrBuilder> getErrorsOrBuilderList()
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorsOrBuilderList in interface DiscoveryConfigOrBuilder
    • addErrorsBuilder

      public Error.Builder addErrorsBuilder()
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addErrorsBuilder

      public Error.Builder addErrorsBuilder(int index)
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getErrorsBuilderList

      public List<Error.Builder> getErrorsBuilderList()
       Output only. A stream of errors encountered when the config was activated.
       Repeated errors may result in the config automatically being paused. Output
       only field. Will return the last 100 errors. Whenever the config is
       modified this list will be cleared.
       
      repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The creation timestamp of a DiscoveryConfig.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface DiscoveryConfigOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The creation timestamp of a DiscoveryConfig.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface DiscoveryConfigOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public DiscoveryConfig.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation timestamp of a DiscoveryConfig.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public DiscoveryConfig.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The creation timestamp of a DiscoveryConfig.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public DiscoveryConfig.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation timestamp of a DiscoveryConfig.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public DiscoveryConfig.Builder clearCreateTime()
       Output only. The creation timestamp of a DiscoveryConfig.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The creation timestamp of a DiscoveryConfig.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The creation timestamp of a DiscoveryConfig.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface DiscoveryConfigOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The last update timestamp of a DiscoveryConfig.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface DiscoveryConfigOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The last update timestamp of a DiscoveryConfig.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface DiscoveryConfigOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public DiscoveryConfig.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last update timestamp of a DiscoveryConfig.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public DiscoveryConfig.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The last update timestamp of a DiscoveryConfig.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public DiscoveryConfig.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last update timestamp of a DiscoveryConfig.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public DiscoveryConfig.Builder clearUpdateTime()
       Output only. The last update timestamp of a DiscoveryConfig.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The last update timestamp of a DiscoveryConfig.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The last update timestamp of a DiscoveryConfig.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface DiscoveryConfigOrBuilder
    • hasLastRunTime

      public boolean hasLastRunTime()
       Output only. The timestamp of the last time this config was executed.
       
      .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLastRunTime in interface DiscoveryConfigOrBuilder
      Returns:
      Whether the lastRunTime field is set.
    • getLastRunTime

      public com.google.protobuf.Timestamp getLastRunTime()
       Output only. The timestamp of the last time this config was executed.
       
      .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastRunTime in interface DiscoveryConfigOrBuilder
      Returns:
      The lastRunTime.
    • setLastRunTime

      public DiscoveryConfig.Builder setLastRunTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp of the last time this config was executed.
       
      .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setLastRunTime

      public DiscoveryConfig.Builder setLastRunTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp of the last time this config was executed.
       
      .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeLastRunTime

      public DiscoveryConfig.Builder mergeLastRunTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp of the last time this config was executed.
       
      .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearLastRunTime

      public DiscoveryConfig.Builder clearLastRunTime()
       Output only. The timestamp of the last time this config was executed.
       
      .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastRunTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastRunTimeBuilder()
       Output only. The timestamp of the last time this config was executed.
       
      .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastRunTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastRunTimeOrBuilder()
       Output only. The timestamp of the last time this config was executed.
       
      .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastRunTimeOrBuilder in interface DiscoveryConfigOrBuilder
    • getStatusValue

      public int getStatusValue()
       Required. A status for this configuration.
       
      .google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStatusValue in interface DiscoveryConfigOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public DiscoveryConfig.Builder setStatusValue(int value)
       Required. A status for this configuration.
       
      .google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

      public DiscoveryConfig.Status getStatus()
       Required. A status for this configuration.
       
      .google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStatus in interface DiscoveryConfigOrBuilder
      Returns:
      The status.
    • setStatus

       Required. A status for this configuration.
       
      .google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public DiscoveryConfig.Builder clearStatus()
       Required. A status for this configuration.
       
      .google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasProcessingLocation

      public boolean hasProcessingLocation()
       Optional. Processing location configuration. Vertex AI dataset scanning
       will set processing_location.image_fallback_type to MultiRegionProcessing
       by default.
       
      .google.privacy.dlp.v2.ProcessingLocation processing_location = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasProcessingLocation in interface DiscoveryConfigOrBuilder
      Returns:
      Whether the processingLocation field is set.
    • getProcessingLocation

      public ProcessingLocation getProcessingLocation()
       Optional. Processing location configuration. Vertex AI dataset scanning
       will set processing_location.image_fallback_type to MultiRegionProcessing
       by default.
       
      .google.privacy.dlp.v2.ProcessingLocation processing_location = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProcessingLocation in interface DiscoveryConfigOrBuilder
      Returns:
      The processingLocation.
    • setProcessingLocation

      public DiscoveryConfig.Builder setProcessingLocation(ProcessingLocation value)
       Optional. Processing location configuration. Vertex AI dataset scanning
       will set processing_location.image_fallback_type to MultiRegionProcessing
       by default.
       
      .google.privacy.dlp.v2.ProcessingLocation processing_location = 13 [(.google.api.field_behavior) = OPTIONAL];
    • setProcessingLocation

      public DiscoveryConfig.Builder setProcessingLocation(ProcessingLocation.Builder builderForValue)
       Optional. Processing location configuration. Vertex AI dataset scanning
       will set processing_location.image_fallback_type to MultiRegionProcessing
       by default.
       
      .google.privacy.dlp.v2.ProcessingLocation processing_location = 13 [(.google.api.field_behavior) = OPTIONAL];
    • mergeProcessingLocation

      public DiscoveryConfig.Builder mergeProcessingLocation(ProcessingLocation value)
       Optional. Processing location configuration. Vertex AI dataset scanning
       will set processing_location.image_fallback_type to MultiRegionProcessing
       by default.
       
      .google.privacy.dlp.v2.ProcessingLocation processing_location = 13 [(.google.api.field_behavior) = OPTIONAL];
    • clearProcessingLocation

      public DiscoveryConfig.Builder clearProcessingLocation()
       Optional. Processing location configuration. Vertex AI dataset scanning
       will set processing_location.image_fallback_type to MultiRegionProcessing
       by default.
       
      .google.privacy.dlp.v2.ProcessingLocation processing_location = 13 [(.google.api.field_behavior) = OPTIONAL];
    • getProcessingLocationBuilder

      public ProcessingLocation.Builder getProcessingLocationBuilder()
       Optional. Processing location configuration. Vertex AI dataset scanning
       will set processing_location.image_fallback_type to MultiRegionProcessing
       by default.
       
      .google.privacy.dlp.v2.ProcessingLocation processing_location = 13 [(.google.api.field_behavior) = OPTIONAL];
    • getProcessingLocationOrBuilder

      public ProcessingLocationOrBuilder getProcessingLocationOrBuilder()
       Optional. Processing location configuration. Vertex AI dataset scanning
       will set processing_location.image_fallback_type to MultiRegionProcessing
       by default.
       
      .google.privacy.dlp.v2.ProcessingLocation processing_location = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProcessingLocationOrBuilder in interface DiscoveryConfigOrBuilder