Package com.google.privacy.dlp.v2
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 Summary
Modifier and TypeMethodDescriptionaddActions(int index, DataProfileAction value) Actions to execute at the completion of scanning.addActions(int index, DataProfileAction.Builder builderForValue) Actions to execute at the completion of scanning.addActions(DataProfileAction value) Actions to execute at the completion of scanning.addActions(DataProfileAction.Builder builderForValue) Actions to execute at the completion of scanning.Actions to execute at the completion of scanning.addActionsBuilder(int index) Actions to execute at the completion of scanning.addAllActions(Iterable<? extends DataProfileAction> values) Actions to execute at the completion of scanning.addAllErrors(Iterable<? extends Error> values) Output only.addAllInspectTemplates(Iterable<String> values) Detection logic for profile generation.addAllTargets(Iterable<? extends DiscoveryTarget> values) Target to match against for determining what to scan and how frequently.Output only.addErrors(int index, Error.Builder builderForValue) Output only.Output only.addErrors(Error.Builder builderForValue) Output only.Output only.addErrorsBuilder(int index) Output only.addInspectTemplates(String value) Detection logic for profile generation.addInspectTemplatesBytes(com.google.protobuf.ByteString value) Detection logic for profile generation.addTargets(int index, DiscoveryTarget value) Target to match against for determining what to scan and how frequently.addTargets(int index, DiscoveryTarget.Builder builderForValue) Target to match against for determining what to scan and how frequently.addTargets(DiscoveryTarget value) Target to match against for determining what to scan and how frequently.addTargets(DiscoveryTarget.Builder builderForValue) Target to match against for determining what to scan and how frequently.Target to match against for determining what to scan and how frequently.addTargetsBuilder(int index) Target to match against for determining what to scan and how frequently.build()clear()Actions to execute at the completion of scanning.Output only.Display name (max 100 chars)Output only.Detection logic for profile generation.Output only.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`.Only set when the parent is an org.Must be set only when scanning other clouds.Optional.Required.Target to match against for determining what to scan and how frequently.Output only.getActions(int index) Actions to execute at the completion of scanning.getActionsBuilder(int index) Actions to execute at the completion of scanning.Actions to execute at the completion of scanning.intActions to execute at the completion of scanning.Actions to execute at the completion of scanning.getActionsOrBuilder(int index) Actions to execute at the completion of scanning.List<? extends DataProfileActionOrBuilder>Actions to execute at the completion of scanning.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDisplay name (max 100 chars)com.google.protobuf.ByteStringDisplay name (max 100 chars)getErrors(int index) Output only.getErrorsBuilder(int index) Output only.Output only.intOutput only.Output only.getErrorsOrBuilder(int index) Output only.List<? extends ErrorOrBuilder>Output only.getInspectTemplates(int index) Detection logic for profile generation.com.google.protobuf.ByteStringgetInspectTemplatesBytes(int index) Detection logic for profile generation.intDetection logic for profile generation.com.google.protobuf.ProtocolStringListDetection logic for profile generation.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.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`.com.google.protobuf.ByteStringUnique resource name for the DiscoveryConfig, assigned by the service when the DiscoveryConfig is created, for example `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`.Only set when the parent is an org.Only set when the parent is an org.Only set when the parent is an org.Must be set only when scanning other clouds.Must be set only when scanning other clouds.Must be set only when scanning other clouds.Optional.Optional.Optional.Required.intRequired.getTargets(int index) Target to match against for determining what to scan and how frequently.getTargetsBuilder(int index) Target to match against for determining what to scan and how frequently.Target to match against for determining what to scan and how frequently.intTarget to match against for determining what to scan and how frequently.Target to match against for determining what to scan and how frequently.getTargetsOrBuilder(int index) Target to match against for determining what to scan and how frequently.List<? extends DiscoveryTargetOrBuilder>Target to match against for determining what to scan and how frequently.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.booleanOnly set when the parent is an org.booleanMust be set only when scanning other clouds.booleanOptional.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(DiscoveryConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLastRunTime(com.google.protobuf.Timestamp value) Output only.Only set when the parent is an org.Must be set only when scanning other clouds.Optional.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.removeActions(int index) Actions to execute at the completion of scanning.removeErrors(int index) Output only.removeTargets(int index) Target to match against for determining what to scan and how frequently.setActions(int index, DataProfileAction value) Actions to execute at the completion of scanning.setActions(int index, DataProfileAction.Builder builderForValue) Actions to execute at the completion of scanning.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDisplayName(String value) Display name (max 100 chars)setDisplayNameBytes(com.google.protobuf.ByteString value) Display name (max 100 chars)Output only.setErrors(int index, Error.Builder builderForValue) Output only.setInspectTemplates(int index, String value) Detection logic for profile generation.setLastRunTime(com.google.protobuf.Timestamp value) Output only.setLastRunTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.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`.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`.Only set when the parent is an org.setOrgConfig(DiscoveryConfig.OrgConfig.Builder builderForValue) Only set when the parent is an org.Must be set only when scanning other clouds.setOtherCloudStartingLocation(OtherCloudDiscoveryStartingLocation.Builder builderForValue) Must be set only when scanning other clouds.Optional.setProcessingLocation(ProcessingLocation.Builder builderForValue) Optional.setStatus(DiscoveryConfig.Status value) Required.setStatusValue(int value) Required.setTargets(int index, DiscoveryTarget value) Target to match against for determining what to scan and how frequently.setTargets(int index, DiscoveryTarget.Builder builderForValue) Target to match against for determining what to scan and how frequently.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DiscoveryConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DiscoveryConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DiscoveryConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DiscoveryConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DiscoveryConfig.Builder>- Throws:
IOException
-
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:
getNamein interfaceDiscoveryConfigOrBuilder- 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:
getNameBytesin interfaceDiscoveryConfigOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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
Display name (max 100 chars)
string display_name = 11;- Specified by:
getDisplayNamein interfaceDiscoveryConfigOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Display name (max 100 chars)
string display_name = 11;- Specified by:
getDisplayNameBytesin interfaceDiscoveryConfigOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Display name (max 100 chars)
string display_name = 11;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Display name (max 100 chars)
string display_name = 11;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
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:
hasOrgConfigin interfaceDiscoveryConfigOrBuilder- Returns:
- Whether the orgConfig field is set.
-
getOrgConfig
Only set when the parent is an org.
.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;- Specified by:
getOrgConfigin interfaceDiscoveryConfigOrBuilder- Returns:
- The orgConfig.
-
setOrgConfig
Only set when the parent is an org.
.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2; -
setOrgConfig
Only set when the parent is an org.
.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2; -
mergeOrgConfig
Only set when the parent is an org.
.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2; -
clearOrgConfig
Only set when the parent is an org.
.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2; -
getOrgConfigBuilder
Only set when the parent is an org.
.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2; -
getOrgConfigOrBuilder
Only set when the parent is an org.
.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;- Specified by:
getOrgConfigOrBuilderin interfaceDiscoveryConfigOrBuilder
-
hasOtherCloudStartingLocation
public boolean hasOtherCloudStartingLocation()Must be set only when scanning other clouds.
.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12;- Specified by:
hasOtherCloudStartingLocationin interfaceDiscoveryConfigOrBuilder- Returns:
- Whether the otherCloudStartingLocation field is set.
-
getOtherCloudStartingLocation
Must be set only when scanning other clouds.
.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12;- Specified by:
getOtherCloudStartingLocationin interfaceDiscoveryConfigOrBuilder- 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
Must be set only when scanning other clouds.
.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12; -
getOtherCloudStartingLocationBuilder
Must be set only when scanning other clouds.
.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12; -
getOtherCloudStartingLocationOrBuilder
Must be set only when scanning other clouds.
.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12;- Specified by:
getOtherCloudStartingLocationOrBuilderin interfaceDiscoveryConfigOrBuilder
-
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:
getInspectTemplatesListin interfaceDiscoveryConfigOrBuilder- 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:
getInspectTemplatesCountin interfaceDiscoveryConfigOrBuilder- Returns:
- The count of inspectTemplates.
-
getInspectTemplates
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:
getInspectTemplatesin interfaceDiscoveryConfigOrBuilder- 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:
getInspectTemplatesBytesin interfaceDiscoveryConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the inspectTemplates at the given index.
-
setInspectTemplates
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
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
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
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
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
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;- Specified by:
getActionsListin interfaceDiscoveryConfigOrBuilder
-
getActionsCount
public int getActionsCount()Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;- Specified by:
getActionsCountin interfaceDiscoveryConfigOrBuilder
-
getActions
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;- Specified by:
getActionsin interfaceDiscoveryConfigOrBuilder
-
setActions
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; -
setActions
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; -
addActions
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; -
addActions
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; -
addActions
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; -
addActions
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; -
addAllActions
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; -
clearActions
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; -
removeActions
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; -
getActionsBuilder
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; -
getActionsOrBuilder
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;- Specified by:
getActionsOrBuilderin interfaceDiscoveryConfigOrBuilder
-
getActionsOrBuilderList
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;- Specified by:
getActionsOrBuilderListin interfaceDiscoveryConfigOrBuilder
-
addActionsBuilder
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; -
addActionsBuilder
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; -
getActionsBuilderList
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; -
getTargetsList
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;- Specified by:
getTargetsListin interfaceDiscoveryConfigOrBuilder
-
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:
getTargetsCountin interfaceDiscoveryConfigOrBuilder
-
getTargets
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;- Specified by:
getTargetsin interfaceDiscoveryConfigOrBuilder
-
setTargets
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; -
setTargets
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; -
addTargets
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; -
addTargets
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; -
addTargets
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; -
addTargets
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; -
addAllTargets
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; -
clearTargets
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; -
removeTargets
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; -
getTargetsBuilder
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; -
getTargetsOrBuilder
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;- Specified by:
getTargetsOrBuilderin interfaceDiscoveryConfigOrBuilder
-
getTargetsOrBuilderList
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;- Specified by:
getTargetsOrBuilderListin interfaceDiscoveryConfigOrBuilder
-
addTargetsBuilder
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; -
addTargetsBuilder
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; -
getTargetsBuilderList
Target to match against for determining what to scan and how frequently.
repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; -
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:
getErrorsListin interfaceDiscoveryConfigOrBuilder
-
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:
getErrorsCountin interfaceDiscoveryConfigOrBuilder
-
getErrors
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:
getErrorsin interfaceDiscoveryConfigOrBuilder
-
setErrors
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
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
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
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
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
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
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
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
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
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
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:
getErrorsOrBuilderin interfaceDiscoveryConfigOrBuilder
-
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:
getErrorsOrBuilderListin interfaceDiscoveryConfigOrBuilder
-
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
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
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:
hasCreateTimein interfaceDiscoveryConfigOrBuilder- 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:
getCreateTimein interfaceDiscoveryConfigOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The creation timestamp of a DiscoveryConfig.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The creation timestamp of a DiscoveryConfig.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The creation timestamp of a DiscoveryConfig.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getCreateTimeOrBuilderin interfaceDiscoveryConfigOrBuilder
-
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:
hasUpdateTimein interfaceDiscoveryConfigOrBuilder- 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:
getUpdateTimein interfaceDiscoveryConfigOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The last update timestamp of a DiscoveryConfig.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The last update timestamp of a DiscoveryConfig.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The last update timestamp of a DiscoveryConfig.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getUpdateTimeOrBuilderin interfaceDiscoveryConfigOrBuilder
-
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:
hasLastRunTimein interfaceDiscoveryConfigOrBuilder- 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:
getLastRunTimein interfaceDiscoveryConfigOrBuilder- Returns:
- The lastRunTime.
-
setLastRunTime
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
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
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:
getLastRunTimeOrBuilderin interfaceDiscoveryConfigOrBuilder
-
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:
getStatusValuein interfaceDiscoveryConfigOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
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
Required. A status for this configuration.
.google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getStatusin interfaceDiscoveryConfigOrBuilder- 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
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:
hasProcessingLocationin interfaceDiscoveryConfigOrBuilder- Returns:
- Whether the processingLocation field is set.
-
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:
getProcessingLocationin interfaceDiscoveryConfigOrBuilder- Returns:
- The processingLocation.
-
setProcessingLocation
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
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
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
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
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
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:
getProcessingLocationOrBuilderin interfaceDiscoveryConfigOrBuilder
-