Package com.google.privacy.dlp.v2
Class DataProfileJobConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataProfileJobConfig.Builder>
com.google.privacy.dlp.v2.DataProfileJobConfig.Builder
- All Implemented Interfaces:
DataProfileJobConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DataProfileJobConfig
public static final class DataProfileJobConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DataProfileJobConfig.Builder>
implements DataProfileJobConfigOrBuilder
Configuration for setting up a job to scan resources for profile generation. Only one data profile 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.DataProfileJobConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllDataProfileActions(Iterable<? extends DataProfileAction> values) Actions to execute at the completion of the job.addAllInspectTemplates(Iterable<String> values) Detection logic for profile generation.addDataProfileActions(int index, DataProfileAction value) Actions to execute at the completion of the job.addDataProfileActions(int index, DataProfileAction.Builder builderForValue) Actions to execute at the completion of the job.Actions to execute at the completion of the job.addDataProfileActions(DataProfileAction.Builder builderForValue) Actions to execute at the completion of the job.Actions to execute at the completion of the job.addDataProfileActionsBuilder(int index) Actions to execute at the completion of the job.addInspectTemplates(String value) Detection logic for profile generation.addInspectTemplatesBytes(com.google.protobuf.ByteString value) Detection logic for profile generation.build()clear()Actions to execute at the completion of the job.Detection logic for profile generation.The data to scan.Must be set only when scanning other clouds.The project that will run the scan.getDataProfileActions(int index) Actions to execute at the completion of the job.getDataProfileActionsBuilder(int index) Actions to execute at the completion of the job.Actions to execute at the completion of the job.intActions to execute at the completion of the job.Actions to execute at the completion of the job.getDataProfileActionsOrBuilder(int index) Actions to execute at the completion of the job.List<? extends DataProfileActionOrBuilder>Actions to execute at the completion of the job.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetInspectTemplates(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.The data to scan.The data to scan.The data to scan.Must be set only when scanning other clouds.Must be set only when scanning other clouds.Must be set only when scanning other clouds.The project that will run the scan.com.google.protobuf.ByteStringThe project that will run the scan.booleanThe data to scan.booleanMust be set only when scanning other clouds.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DataProfileJobConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLocation(DataProfileLocation value) The data to scan.Must be set only when scanning other clouds.removeDataProfileActions(int index) Actions to execute at the completion of the job.setDataProfileActions(int index, DataProfileAction value) Actions to execute at the completion of the job.setDataProfileActions(int index, DataProfileAction.Builder builderForValue) Actions to execute at the completion of the job.setInspectTemplates(int index, String value) Detection logic for profile generation.setLocation(DataProfileLocation value) The data to scan.setLocation(DataProfileLocation.Builder builderForValue) The data to scan.Must be set only when scanning other clouds.setOtherCloudStartingLocation(OtherCloudDiscoveryStartingLocation.Builder builderForValue) Must be set only when scanning other clouds.setProjectId(String value) The project that will run the scan.setProjectIdBytes(com.google.protobuf.ByteString value) The project that will run the scan.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<DataProfileJobConfig.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<DataProfileJobConfig.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<DataProfileJobConfig.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<DataProfileJobConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DataProfileJobConfig.Builder>
-
mergeFrom
public DataProfileJobConfig.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<DataProfileJobConfig.Builder>- Throws:
IOException
-
hasLocation
public boolean hasLocation()The data to scan.
.google.privacy.dlp.v2.DataProfileLocation location = 1;- Specified by:
hasLocationin interfaceDataProfileJobConfigOrBuilder- Returns:
- Whether the location field is set.
-
getLocation
The data to scan.
.google.privacy.dlp.v2.DataProfileLocation location = 1;- Specified by:
getLocationin interfaceDataProfileJobConfigOrBuilder- Returns:
- The location.
-
setLocation
The data to scan.
.google.privacy.dlp.v2.DataProfileLocation location = 1; -
setLocation
The data to scan.
.google.privacy.dlp.v2.DataProfileLocation location = 1; -
mergeLocation
The data to scan.
.google.privacy.dlp.v2.DataProfileLocation location = 1; -
clearLocation
The data to scan.
.google.privacy.dlp.v2.DataProfileLocation location = 1; -
getLocationBuilder
The data to scan.
.google.privacy.dlp.v2.DataProfileLocation location = 1; -
getLocationOrBuilder
The data to scan.
.google.privacy.dlp.v2.DataProfileLocation location = 1;- Specified by:
getLocationOrBuilderin interfaceDataProfileJobConfigOrBuilder
-
getProjectId
The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the DLP API must be enabled.
string project_id = 5;- Specified by:
getProjectIdin interfaceDataProfileJobConfigOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the DLP API must be enabled.
string project_id = 5;- Specified by:
getProjectIdBytesin interfaceDataProfileJobConfigOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the DLP API must be enabled.
string project_id = 5;- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the DLP API must be enabled.
string project_id = 5;- Returns:
- This builder for chaining.
-
setProjectIdBytes
The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the DLP API must be enabled.
string project_id = 5;- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
hasOtherCloudStartingLocation
public boolean hasOtherCloudStartingLocation()Must be set only when scanning other clouds.
.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8;- Specified by:
hasOtherCloudStartingLocationin interfaceDataProfileJobConfigOrBuilder- 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 = 8;- Specified by:
getOtherCloudStartingLocationin interfaceDataProfileJobConfigOrBuilder- Returns:
- The otherCloudStartingLocation.
-
setOtherCloudStartingLocation
public DataProfileJobConfig.Builder setOtherCloudStartingLocation(OtherCloudDiscoveryStartingLocation value) Must be set only when scanning other clouds.
.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8; -
setOtherCloudStartingLocation
public DataProfileJobConfig.Builder setOtherCloudStartingLocation(OtherCloudDiscoveryStartingLocation.Builder builderForValue) Must be set only when scanning other clouds.
.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8; -
mergeOtherCloudStartingLocation
public DataProfileJobConfig.Builder mergeOtherCloudStartingLocation(OtherCloudDiscoveryStartingLocation value) Must be set only when scanning other clouds.
.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8; -
clearOtherCloudStartingLocation
Must be set only when scanning other clouds.
.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8; -
getOtherCloudStartingLocationBuilder
Must be set only when scanning other clouds.
.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8; -
getOtherCloudStartingLocationOrBuilder
Must be set only when scanning other clouds.
.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8;- Specified by:
getOtherCloudStartingLocationOrBuilderin interfaceDataProfileJobConfigOrBuilder
-
getInspectTemplatesList
public com.google.protobuf.ProtocolStringList getInspectTemplatesList()Detection logic for profile generation. Not all template features are used by profiles. FindingLimits, include_quote and exclude_info_types have no impact on data profiling. 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 = 7;- Specified by:
getInspectTemplatesListin interfaceDataProfileJobConfigOrBuilder- Returns:
- A list containing the inspectTemplates.
-
getInspectTemplatesCount
public int getInspectTemplatesCount()Detection logic for profile generation. Not all template features are used by profiles. FindingLimits, include_quote and exclude_info_types have no impact on data profiling. 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 = 7;- Specified by:
getInspectTemplatesCountin interfaceDataProfileJobConfigOrBuilder- Returns:
- The count of inspectTemplates.
-
getInspectTemplates
Detection logic for profile generation. Not all template features are used by profiles. FindingLimits, include_quote and exclude_info_types have no impact on data profiling. 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 = 7;- Specified by:
getInspectTemplatesin interfaceDataProfileJobConfigOrBuilder- 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 profiles. FindingLimits, include_quote and exclude_info_types have no impact on data profiling. 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 = 7;- Specified by:
getInspectTemplatesBytesin interfaceDataProfileJobConfigOrBuilder- 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 profiles. FindingLimits, include_quote and exclude_info_types have no impact on data profiling. 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 = 7;- 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 profiles. FindingLimits, include_quote and exclude_info_types have no impact on data profiling. 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 = 7;- Parameters:
value- The inspectTemplates to add.- Returns:
- This builder for chaining.
-
addAllInspectTemplates
Detection logic for profile generation. Not all template features are used by profiles. FindingLimits, include_quote and exclude_info_types have no impact on data profiling. 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 = 7;- Parameters:
values- The inspectTemplates to add.- Returns:
- This builder for chaining.
-
clearInspectTemplates
Detection logic for profile generation. Not all template features are used by profiles. FindingLimits, include_quote and exclude_info_types have no impact on data profiling. 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 = 7;- Returns:
- This builder for chaining.
-
addInspectTemplatesBytes
Detection logic for profile generation. Not all template features are used by profiles. FindingLimits, include_quote and exclude_info_types have no impact on data profiling. 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 = 7;- Parameters:
value- The bytes of the inspectTemplates to add.- Returns:
- This builder for chaining.
-
getDataProfileActionsList
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;- Specified by:
getDataProfileActionsListin interfaceDataProfileJobConfigOrBuilder
-
getDataProfileActionsCount
public int getDataProfileActionsCount()Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;- Specified by:
getDataProfileActionsCountin interfaceDataProfileJobConfigOrBuilder
-
getDataProfileActions
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;- Specified by:
getDataProfileActionsin interfaceDataProfileJobConfigOrBuilder
-
setDataProfileActions
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; -
setDataProfileActions
public DataProfileJobConfig.Builder setDataProfileActions(int index, DataProfileAction.Builder builderForValue) Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; -
addDataProfileActions
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; -
addDataProfileActions
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; -
addDataProfileActions
public DataProfileJobConfig.Builder addDataProfileActions(DataProfileAction.Builder builderForValue) Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; -
addDataProfileActions
public DataProfileJobConfig.Builder addDataProfileActions(int index, DataProfileAction.Builder builderForValue) Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; -
addAllDataProfileActions
public DataProfileJobConfig.Builder addAllDataProfileActions(Iterable<? extends DataProfileAction> values) Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; -
clearDataProfileActions
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; -
removeDataProfileActions
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; -
getDataProfileActionsBuilder
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; -
getDataProfileActionsOrBuilder
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;- Specified by:
getDataProfileActionsOrBuilderin interfaceDataProfileJobConfigOrBuilder
-
getDataProfileActionsOrBuilderList
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;- Specified by:
getDataProfileActionsOrBuilderListin interfaceDataProfileJobConfigOrBuilder
-
addDataProfileActionsBuilder
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; -
addDataProfileActionsBuilder
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; -
getDataProfileActionsBuilderList
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
-