Class DataProfileJobConfig.Builder (3.58.0)

public static final class DataProfileJobConfig.Builder extends GeneratedMessageV3.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.

Protobuf type google.privacy.dlp.v2.DataProfileJobConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDataProfileActions(Iterable<? extends DataProfileAction> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.DataProfileAction>
Returns
Type Description
DataProfileJobConfig.Builder

addAllInspectTemplates(Iterable<String> values)

public DataProfileJobConfig.Builder addAllInspectTemplates(Iterable<String> values)

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;

Parameter
Name Description
values Iterable<String>

The inspectTemplates to add.

Returns
Type Description
DataProfileJobConfig.Builder

This builder for chaining.

addDataProfileActions(DataProfileAction value)

public DataProfileJobConfig.Builder addDataProfileActions(DataProfileAction value)

Actions to execute at the completion of the job.

repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;

Parameter
Name Description
value DataProfileAction
Returns
Type Description
DataProfileJobConfig.Builder

addDataProfileActions(DataProfileAction.Builder builderForValue)

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;

Parameter
Name Description
builderForValue DataProfileAction.Builder
Returns
Type Description
DataProfileJobConfig.Builder

addDataProfileActions(int index, DataProfileAction value)

public DataProfileJobConfig.Builder addDataProfileActions(int index, DataProfileAction value)

Actions to execute at the completion of the job.

repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;

Parameters
Name Description
index int
value DataProfileAction
Returns
Type Description
DataProfileJobConfig.Builder

addDataProfileActions(int index, DataProfileAction.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue DataProfileAction.Builder
Returns
Type Description
DataProfileJobConfig.Builder

addDataProfileActionsBuilder()

public DataProfileAction.Builder addDataProfileActionsBuilder()

Actions to execute at the completion of the job.

repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;

Returns
Type Description
DataProfileAction.Builder

addDataProfileActionsBuilder(int index)

public DataProfileAction.Builder addDataProfileActionsBuilder(int index)

Actions to execute at the completion of the job.

repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;

Parameter
Name Description
index int
Returns
Type Description
DataProfileAction.Builder

addInspectTemplates(String value)

public DataProfileJobConfig.Builder addInspectTemplates(String value)

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;

Parameter
Name Description
value String

The inspectTemplates to add.

Returns
Type Description
DataProfileJobConfig.Builder

This builder for chaining.

addInspectTemplatesBytes(ByteString value)

public DataProfileJobConfig.Builder addInspectTemplatesBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes of the inspectTemplates to add.

Returns
Type Description
DataProfileJobConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataProfileJobConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataProfileJobConfig.Builder
Overrides

build()

public DataProfileJobConfig build()
Returns
Type Description
DataProfileJobConfig

buildPartial()

public DataProfileJobConfig buildPartial()
Returns
Type Description
DataProfileJobConfig

clear()

public DataProfileJobConfig.Builder clear()
Returns
Type Description
DataProfileJobConfig.Builder
Overrides

clearDataProfileActions()

public DataProfileJobConfig.Builder clearDataProfileActions()

Actions to execute at the completion of the job.

repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;

Returns
Type Description
DataProfileJobConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public DataProfileJobConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataProfileJobConfig.Builder
Overrides

clearInspectTemplates()

public DataProfileJobConfig.Builder 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
Type Description
DataProfileJobConfig.Builder

This builder for chaining.

clearLocation()

public DataProfileJobConfig.Builder clearLocation()

The data to scan.

.google.privacy.dlp.v2.DataProfileLocation location = 1;

Returns
Type Description
DataProfileJobConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DataProfileJobConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataProfileJobConfig.Builder
Overrides

clearOtherCloudStartingLocation()

public DataProfileJobConfig.Builder clearOtherCloudStartingLocation()

Must be set only when scanning other clouds.

.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8;

Returns
Type Description
DataProfileJobConfig.Builder

clearProjectId()

public DataProfileJobConfig.Builder 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 Cloud DLP API must be enabled.

string project_id = 5;

Returns
Type Description
DataProfileJobConfig.Builder

This builder for chaining.

clone()

public DataProfileJobConfig.Builder clone()
Returns
Type Description
DataProfileJobConfig.Builder
Overrides

getDataProfileActions(int index)

public DataProfileAction getDataProfileActions(int index)

Actions to execute at the completion of the job.

repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;

Parameter
Name Description
index int
Returns
Type Description
DataProfileAction

getDataProfileActionsBuilder(int index)

public DataProfileAction.Builder getDataProfileActionsBuilder(int index)

Actions to execute at the completion of the job.

repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;

Parameter
Name Description
index int
Returns
Type Description
DataProfileAction.Builder

getDataProfileActionsBuilderList()

public List<DataProfileAction.Builder> getDataProfileActionsBuilderList()

Actions to execute at the completion of the job.

repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;

Returns
Type Description
List<Builder>

getDataProfileActionsCount()

public int getDataProfileActionsCount()

Actions to execute at the completion of the job.

repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;

Returns
Type Description
int

getDataProfileActionsList()

public List<DataProfileAction> getDataProfileActionsList()

Actions to execute at the completion of the job.

repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;

Returns
Type Description
List<DataProfileAction>

getDataProfileActionsOrBuilder(int index)

public DataProfileActionOrBuilder getDataProfileActionsOrBuilder(int index)

Actions to execute at the completion of the job.

repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;

Parameter
Name Description
index int
Returns
Type Description
DataProfileActionOrBuilder

getDataProfileActionsOrBuilderList()

public List<? extends DataProfileActionOrBuilder> getDataProfileActionsOrBuilderList()

Actions to execute at the completion of the job.

repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.DataProfileActionOrBuilder>

getDefaultInstanceForType()

public DataProfileJobConfig getDefaultInstanceForType()
Returns
Type Description
DataProfileJobConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInspectTemplates(int index)

public String getInspectTemplates(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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The inspectTemplates at the given index.

getInspectTemplatesBytes(int index)

public 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;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the inspectTemplates at the given index.

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;

Returns
Type Description
int

The count of inspectTemplates.

getInspectTemplatesList()

public 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;

Returns
Type Description
ProtocolStringList

A list containing the inspectTemplates.

getLocation()

public DataProfileLocation getLocation()

The data to scan.

.google.privacy.dlp.v2.DataProfileLocation location = 1;

Returns
Type Description
DataProfileLocation

The location.

getLocationBuilder()

public DataProfileLocation.Builder getLocationBuilder()

The data to scan.

.google.privacy.dlp.v2.DataProfileLocation location = 1;

Returns
Type Description
DataProfileLocation.Builder

getLocationOrBuilder()

public DataProfileLocationOrBuilder getLocationOrBuilder()

The data to scan.

.google.privacy.dlp.v2.DataProfileLocation location = 1;

Returns
Type Description
DataProfileLocationOrBuilder

getOtherCloudStartingLocation()

public OtherCloudDiscoveryStartingLocation getOtherCloudStartingLocation()

Must be set only when scanning other clouds.

.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8;

Returns
Type Description
OtherCloudDiscoveryStartingLocation

The otherCloudStartingLocation.

getOtherCloudStartingLocationBuilder()

public OtherCloudDiscoveryStartingLocation.Builder getOtherCloudStartingLocationBuilder()

Must be set only when scanning other clouds.

.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8;

Returns
Type Description
OtherCloudDiscoveryStartingLocation.Builder

getOtherCloudStartingLocationOrBuilder()

public OtherCloudDiscoveryStartingLocationOrBuilder getOtherCloudStartingLocationOrBuilder()

Must be set only when scanning other clouds.

.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8;

Returns
Type Description
OtherCloudDiscoveryStartingLocationOrBuilder

getProjectId()

public String 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 Cloud DLP API must be enabled.

string project_id = 5;

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public 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 Cloud DLP API must be enabled.

string project_id = 5;

Returns
Type Description
ByteString

The bytes for projectId.

hasLocation()

public boolean hasLocation()

The data to scan.

.google.privacy.dlp.v2.DataProfileLocation location = 1;

Returns
Type Description
boolean

Whether the location field is set.

hasOtherCloudStartingLocation()

public boolean hasOtherCloudStartingLocation()

Must be set only when scanning other clouds.

.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8;

Returns
Type Description
boolean

Whether the otherCloudStartingLocation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataProfileJobConfig other)

public DataProfileJobConfig.Builder mergeFrom(DataProfileJobConfig other)
Parameter
Name Description
other DataProfileJobConfig
Returns
Type Description
DataProfileJobConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataProfileJobConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataProfileJobConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataProfileJobConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataProfileJobConfig.Builder
Overrides

mergeLocation(DataProfileLocation value)

public DataProfileJobConfig.Builder mergeLocation(DataProfileLocation value)

The data to scan.

.google.privacy.dlp.v2.DataProfileLocation location = 1;

Parameter
Name Description
value DataProfileLocation
Returns
Type Description
DataProfileJobConfig.Builder

mergeOtherCloudStartingLocation(OtherCloudDiscoveryStartingLocation value)

public DataProfileJobConfig.Builder mergeOtherCloudStartingLocation(OtherCloudDiscoveryStartingLocation value)

Must be set only when scanning other clouds.

.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8;

Parameter
Name Description
value OtherCloudDiscoveryStartingLocation
Returns
Type Description
DataProfileJobConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataProfileJobConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataProfileJobConfig.Builder
Overrides

removeDataProfileActions(int index)

public DataProfileJobConfig.Builder removeDataProfileActions(int index)

Actions to execute at the completion of the job.

repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;

Parameter
Name Description
index int
Returns
Type Description
DataProfileJobConfig.Builder

setDataProfileActions(int index, DataProfileAction value)

public DataProfileJobConfig.Builder setDataProfileActions(int index, DataProfileAction value)

Actions to execute at the completion of the job.

repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;

Parameters
Name Description
index int
value DataProfileAction
Returns
Type Description
DataProfileJobConfig.Builder

setDataProfileActions(int index, DataProfileAction.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue DataProfileAction.Builder
Returns
Type Description
DataProfileJobConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DataProfileJobConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataProfileJobConfig.Builder
Overrides

setInspectTemplates(int index, String value)

public DataProfileJobConfig.Builder setInspectTemplates(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The inspectTemplates to set.

Returns
Type Description
DataProfileJobConfig.Builder

This builder for chaining.

setLocation(DataProfileLocation value)

public DataProfileJobConfig.Builder setLocation(DataProfileLocation value)

The data to scan.

.google.privacy.dlp.v2.DataProfileLocation location = 1;

Parameter
Name Description
value DataProfileLocation
Returns
Type Description
DataProfileJobConfig.Builder

setLocation(DataProfileLocation.Builder builderForValue)

public DataProfileJobConfig.Builder setLocation(DataProfileLocation.Builder builderForValue)

The data to scan.

.google.privacy.dlp.v2.DataProfileLocation location = 1;

Parameter
Name Description
builderForValue DataProfileLocation.Builder
Returns
Type Description
DataProfileJobConfig.Builder

setOtherCloudStartingLocation(OtherCloudDiscoveryStartingLocation value)

public DataProfileJobConfig.Builder setOtherCloudStartingLocation(OtherCloudDiscoveryStartingLocation value)

Must be set only when scanning other clouds.

.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8;

Parameter
Name Description
value OtherCloudDiscoveryStartingLocation
Returns
Type Description
DataProfileJobConfig.Builder

setOtherCloudStartingLocation(OtherCloudDiscoveryStartingLocation.Builder builderForValue)

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;

Parameter
Name Description
builderForValue OtherCloudDiscoveryStartingLocation.Builder
Returns
Type Description
DataProfileJobConfig.Builder

setProjectId(String value)

public DataProfileJobConfig.Builder setProjectId(String value)

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 Cloud DLP API must be enabled.

string project_id = 5;

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
DataProfileJobConfig.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public DataProfileJobConfig.Builder setProjectIdBytes(ByteString value)

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 Cloud DLP API must be enabled.

string project_id = 5;

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
DataProfileJobConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataProfileJobConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataProfileJobConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DataProfileJobConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataProfileJobConfig.Builder
Overrides