Class DiscoveryConfig.Builder (3.44.0)

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

Protobuf type google.privacy.dlp.v2.DiscoveryConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addActions(DataProfileAction value)

public DiscoveryConfig.Builder addActions(DataProfileAction value)

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Parameter
NameDescription
valueDataProfileAction
Returns
TypeDescription
DiscoveryConfig.Builder

addActions(DataProfileAction.Builder builderForValue)

public DiscoveryConfig.Builder addActions(DataProfileAction.Builder builderForValue)

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Parameter
NameDescription
builderForValueDataProfileAction.Builder
Returns
TypeDescription
DiscoveryConfig.Builder

addActions(int index, DataProfileAction value)

public DiscoveryConfig.Builder addActions(int index, DataProfileAction value)

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Parameters
NameDescription
indexint
valueDataProfileAction
Returns
TypeDescription
DiscoveryConfig.Builder

addActions(int index, DataProfileAction.Builder builderForValue)

public DiscoveryConfig.Builder addActions(int index, DataProfileAction.Builder builderForValue)

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Parameters
NameDescription
indexint
builderForValueDataProfileAction.Builder
Returns
TypeDescription
DiscoveryConfig.Builder

addActionsBuilder()

public DataProfileAction.Builder addActionsBuilder()

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Returns
TypeDescription
DataProfileAction.Builder

addActionsBuilder(int index)

public DataProfileAction.Builder addActionsBuilder(int index)

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
DataProfileAction.Builder

addAllActions(Iterable<? extends DataProfileAction> values)

public DiscoveryConfig.Builder addAllActions(Iterable<? extends DataProfileAction> values)

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.DataProfileAction>
Returns
TypeDescription
DiscoveryConfig.Builder

addAllErrors(Iterable<? extends Error> values)

public DiscoveryConfig.Builder addAllErrors(Iterable<? extends Error> values)

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.Error>
Returns
TypeDescription
DiscoveryConfig.Builder

addAllInspectTemplates(Iterable<String> values)

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

Detection logic for profile generation.

Not all template features are used by Discovery. FindingLimits, include_quote and exclude_info_types have no impact on Discovery.

Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned.

For more information, see https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.

repeated string inspect_templates = 3;

Parameter
NameDescription
valuesIterable<String>

The inspectTemplates to add.

Returns
TypeDescription
DiscoveryConfig.Builder

This builder for chaining.

addAllTargets(Iterable<? extends DiscoveryTarget> values)

public DiscoveryConfig.Builder addAllTargets(Iterable<? extends DiscoveryTarget> values)

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.DiscoveryTarget>
Returns
TypeDescription
DiscoveryConfig.Builder

addErrors(Error value)

public DiscoveryConfig.Builder addErrors(Error value)

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueError
Returns
TypeDescription
DiscoveryConfig.Builder

addErrors(Error.Builder builderForValue)

public DiscoveryConfig.Builder addErrors(Error.Builder builderForValue)

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueError.Builder
Returns
TypeDescription
DiscoveryConfig.Builder

addErrors(int index, Error value)

public DiscoveryConfig.Builder addErrors(int index, Error value)

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueError
Returns
TypeDescription
DiscoveryConfig.Builder

addErrors(int index, Error.Builder builderForValue)

public DiscoveryConfig.Builder addErrors(int index, Error.Builder builderForValue)

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueError.Builder
Returns
TypeDescription
DiscoveryConfig.Builder

addErrorsBuilder()

public Error.Builder addErrorsBuilder()

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Error.Builder

addErrorsBuilder(int index)

public Error.Builder addErrorsBuilder(int index)

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Error.Builder

addInspectTemplates(String value)

public DiscoveryConfig.Builder addInspectTemplates(String value)

Detection logic for profile generation.

Not all template features are used by Discovery. FindingLimits, include_quote and exclude_info_types have no impact on Discovery.

Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned.

For more information, see https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.

repeated string inspect_templates = 3;

Parameter
NameDescription
valueString

The inspectTemplates to add.

Returns
TypeDescription
DiscoveryConfig.Builder

This builder for chaining.

addInspectTemplatesBytes(ByteString value)

public DiscoveryConfig.Builder addInspectTemplatesBytes(ByteString value)

Detection logic for profile generation.

Not all template features are used by Discovery. FindingLimits, include_quote and exclude_info_types have no impact on Discovery.

Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned.

For more information, see https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.

repeated string inspect_templates = 3;

Parameter
NameDescription
valueByteString

The bytes of the inspectTemplates to add.

Returns
TypeDescription
DiscoveryConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DiscoveryConfig.Builder
Overrides

addTargets(DiscoveryTarget value)

public DiscoveryConfig.Builder addTargets(DiscoveryTarget value)

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Parameter
NameDescription
valueDiscoveryTarget
Returns
TypeDescription
DiscoveryConfig.Builder

addTargets(DiscoveryTarget.Builder builderForValue)

public DiscoveryConfig.Builder addTargets(DiscoveryTarget.Builder builderForValue)

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Parameter
NameDescription
builderForValueDiscoveryTarget.Builder
Returns
TypeDescription
DiscoveryConfig.Builder

addTargets(int index, DiscoveryTarget value)

public DiscoveryConfig.Builder addTargets(int index, DiscoveryTarget value)

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Parameters
NameDescription
indexint
valueDiscoveryTarget
Returns
TypeDescription
DiscoveryConfig.Builder

addTargets(int index, DiscoveryTarget.Builder builderForValue)

public DiscoveryConfig.Builder addTargets(int index, DiscoveryTarget.Builder builderForValue)

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Parameters
NameDescription
indexint
builderForValueDiscoveryTarget.Builder
Returns
TypeDescription
DiscoveryConfig.Builder

addTargetsBuilder()

public DiscoveryTarget.Builder addTargetsBuilder()

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Returns
TypeDescription
DiscoveryTarget.Builder

addTargetsBuilder(int index)

public DiscoveryTarget.Builder addTargetsBuilder(int index)

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveryTarget.Builder

build()

public DiscoveryConfig build()
Returns
TypeDescription
DiscoveryConfig

buildPartial()

public DiscoveryConfig buildPartial()
Returns
TypeDescription
DiscoveryConfig

clear()

public DiscoveryConfig.Builder clear()
Returns
TypeDescription
DiscoveryConfig.Builder
Overrides

clearActions()

public DiscoveryConfig.Builder clearActions()

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Returns
TypeDescription
DiscoveryConfig.Builder

clearCreateTime()

public DiscoveryConfig.Builder clearCreateTime()

Output only. The creation timestamp of a DiscoveryConfig.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DiscoveryConfig.Builder

clearDisplayName()

public DiscoveryConfig.Builder clearDisplayName()

Display name (max 100 chars)

string display_name = 11;

Returns
TypeDescription
DiscoveryConfig.Builder

This builder for chaining.

clearErrors()

public DiscoveryConfig.Builder clearErrors()

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DiscoveryConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public DiscoveryConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DiscoveryConfig.Builder
Overrides

clearInspectTemplates()

public DiscoveryConfig.Builder clearInspectTemplates()

Detection logic for profile generation.

Not all template features are used by Discovery. FindingLimits, include_quote and exclude_info_types have no impact on Discovery.

Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned.

For more information, see https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.

repeated string inspect_templates = 3;

Returns
TypeDescription
DiscoveryConfig.Builder

This builder for chaining.

clearLastRunTime()

public DiscoveryConfig.Builder clearLastRunTime()

Output only. The timestamp of the last time this config was executed.

.google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DiscoveryConfig.Builder

clearName()

public DiscoveryConfig.Builder clearName()

Unique resource name for the DiscoveryConfig, assigned by the service when the DiscoveryConfig is created, for example projects/dlp-test-project/locations/global/discoveryConfigs/53234423.

string name = 1;

Returns
TypeDescription
DiscoveryConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DiscoveryConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DiscoveryConfig.Builder
Overrides

clearOrgConfig()

public DiscoveryConfig.Builder clearOrgConfig()

Only set when the parent is an org.

.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;

Returns
TypeDescription
DiscoveryConfig.Builder

clearStatus()

public DiscoveryConfig.Builder clearStatus()

Required. A status for this configuration.

.google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DiscoveryConfig.Builder

This builder for chaining.

clearTargets()

public DiscoveryConfig.Builder clearTargets()

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Returns
TypeDescription
DiscoveryConfig.Builder

clearUpdateTime()

public DiscoveryConfig.Builder clearUpdateTime()

Output only. The last update timestamp of a DiscoveryConfig.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DiscoveryConfig.Builder

clone()

public DiscoveryConfig.Builder clone()
Returns
TypeDescription
DiscoveryConfig.Builder
Overrides

getActions(int index)

public DataProfileAction getActions(int index)

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
DataProfileAction

getActionsBuilder(int index)

public DataProfileAction.Builder getActionsBuilder(int index)

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
DataProfileAction.Builder

getActionsBuilderList()

public List<DataProfileAction.Builder> getActionsBuilderList()

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Returns
TypeDescription
List<Builder>

getActionsCount()

public int getActionsCount()

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Returns
TypeDescription
int

getActionsList()

public List<DataProfileAction> getActionsList()

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Returns
TypeDescription
List<DataProfileAction>

getActionsOrBuilder(int index)

public DataProfileActionOrBuilder getActionsOrBuilder(int index)

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
DataProfileActionOrBuilder

getActionsOrBuilderList()

public List<? extends DataProfileActionOrBuilder> getActionsOrBuilderList()

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation timestamp of a DiscoveryConfig.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation timestamp of a DiscoveryConfig.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation timestamp of a DiscoveryConfig.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public DiscoveryConfig getDefaultInstanceForType()
Returns
TypeDescription
DiscoveryConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Display name (max 100 chars)

string display_name = 11;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Display name (max 100 chars)

string display_name = 11;

Returns
TypeDescription
ByteString

The bytes for displayName.

getErrors(int index)

public Error getErrors(int index)

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Error

getErrorsBuilder(int index)

public Error.Builder getErrorsBuilder(int index)

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Error.Builder

getErrorsBuilderList()

public List<Error.Builder> getErrorsBuilderList()

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

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

Returns
TypeDescription
int

getErrorsList()

public List<Error> getErrorsList()

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Error>

getErrorsOrBuilder(int index)

public ErrorOrBuilder getErrorsOrBuilder(int index)

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ErrorOrBuilder

getErrorsOrBuilderList()

public List<? extends ErrorOrBuilder> getErrorsOrBuilderList()

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.privacy.dlp.v2.ErrorOrBuilder>

getInspectTemplates(int index)

public String getInspectTemplates(int index)

Detection logic for profile generation.

Not all template features are used by Discovery. FindingLimits, include_quote and exclude_info_types have no impact on Discovery.

Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned.

For more information, see https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.

repeated string inspect_templates = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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 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
TypeDescription
int

The count of inspectTemplates.

getInspectTemplatesList()

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

Returns
TypeDescription
ProtocolStringList

A list containing the inspectTemplates.

getLastRunTime()

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

Returns
TypeDescription
Timestamp

The lastRunTime.

getLastRunTimeBuilder()

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

Returns
TypeDescription
Builder

getLastRunTimeOrBuilder()

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

Returns
TypeDescription
TimestampOrBuilder

getName()

public String getName()

Unique resource name for the DiscoveryConfig, assigned by the service when the DiscoveryConfig is created, for example projects/dlp-test-project/locations/global/discoveryConfigs/53234423.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

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

Returns
TypeDescription
ByteString

The bytes for name.

getOrgConfig()

public DiscoveryConfig.OrgConfig getOrgConfig()

Only set when the parent is an org.

.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;

Returns
TypeDescription
DiscoveryConfig.OrgConfig

The orgConfig.

getOrgConfigBuilder()

public DiscoveryConfig.OrgConfig.Builder getOrgConfigBuilder()

Only set when the parent is an org.

.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;

Returns
TypeDescription
DiscoveryConfig.OrgConfig.Builder

getOrgConfigOrBuilder()

public DiscoveryConfig.OrgConfigOrBuilder getOrgConfigOrBuilder()

Only set when the parent is an org.

.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;

Returns
TypeDescription
DiscoveryConfig.OrgConfigOrBuilder

getStatus()

public DiscoveryConfig.Status getStatus()

Required. A status for this configuration.

.google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DiscoveryConfig.Status

The status.

getStatusValue()

public int getStatusValue()

Required. A status for this configuration.

.google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for status.

getTargets(int index)

public DiscoveryTarget getTargets(int index)

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveryTarget

getTargetsBuilder(int index)

public DiscoveryTarget.Builder getTargetsBuilder(int index)

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveryTarget.Builder

getTargetsBuilderList()

public List<DiscoveryTarget.Builder> getTargetsBuilderList()

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Returns
TypeDescription
List<Builder>

getTargetsCount()

public int getTargetsCount()

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Returns
TypeDescription
int

getTargetsList()

public List<DiscoveryTarget> getTargetsList()

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Returns
TypeDescription
List<DiscoveryTarget>

getTargetsOrBuilder(int index)

public DiscoveryTargetOrBuilder getTargetsOrBuilder(int index)

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveryTargetOrBuilder

getTargetsOrBuilderList()

public List<? extends DiscoveryTargetOrBuilder> getTargetsOrBuilderList()

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Returns
TypeDescription
List<? extends com.google.privacy.dlp.v2.DiscoveryTargetOrBuilder>

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last update timestamp of a DiscoveryConfig.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last update timestamp of a DiscoveryConfig.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last update timestamp of a DiscoveryConfig.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation timestamp of a DiscoveryConfig.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

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

Returns
TypeDescription
boolean

Whether the lastRunTime field is set.

hasOrgConfig()

public boolean hasOrgConfig()

Only set when the parent is an org.

.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;

Returns
TypeDescription
boolean

Whether the orgConfig field is set.

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

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public DiscoveryConfig.Builder mergeCreateTime(Timestamp value)

Output only. The creation timestamp of a DiscoveryConfig.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DiscoveryConfig.Builder

mergeFrom(DiscoveryConfig other)

public DiscoveryConfig.Builder mergeFrom(DiscoveryConfig other)
Parameter
NameDescription
otherDiscoveryConfig
Returns
TypeDescription
DiscoveryConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DiscoveryConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiscoveryConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DiscoveryConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DiscoveryConfig.Builder
Overrides

mergeLastRunTime(Timestamp value)

public DiscoveryConfig.Builder mergeLastRunTime(Timestamp value)

Output only. The timestamp of the last time this config was executed.

.google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DiscoveryConfig.Builder

mergeOrgConfig(DiscoveryConfig.OrgConfig value)

public DiscoveryConfig.Builder mergeOrgConfig(DiscoveryConfig.OrgConfig value)

Only set when the parent is an org.

.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;

Parameter
NameDescription
valueDiscoveryConfig.OrgConfig
Returns
TypeDescription
DiscoveryConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DiscoveryConfig.Builder
Overrides

mergeUpdateTime(Timestamp value)

public DiscoveryConfig.Builder mergeUpdateTime(Timestamp value)

Output only. The last update timestamp of a DiscoveryConfig.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DiscoveryConfig.Builder

removeActions(int index)

public DiscoveryConfig.Builder removeActions(int index)

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveryConfig.Builder

removeErrors(int index)

public DiscoveryConfig.Builder removeErrors(int index)

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveryConfig.Builder

removeTargets(int index)

public DiscoveryConfig.Builder removeTargets(int index)

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveryConfig.Builder

setActions(int index, DataProfileAction value)

public DiscoveryConfig.Builder setActions(int index, DataProfileAction value)

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Parameters
NameDescription
indexint
valueDataProfileAction
Returns
TypeDescription
DiscoveryConfig.Builder

setActions(int index, DataProfileAction.Builder builderForValue)

public DiscoveryConfig.Builder setActions(int index, DataProfileAction.Builder builderForValue)

Actions to execute at the completion of scanning.

repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;

Parameters
NameDescription
indexint
builderForValueDataProfileAction.Builder
Returns
TypeDescription
DiscoveryConfig.Builder

setCreateTime(Timestamp value)

public DiscoveryConfig.Builder setCreateTime(Timestamp value)

Output only. The creation timestamp of a DiscoveryConfig.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DiscoveryConfig.Builder

setCreateTime(Timestamp.Builder builderForValue)

public DiscoveryConfig.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation timestamp of a DiscoveryConfig.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DiscoveryConfig.Builder

setDisplayName(String value)

public DiscoveryConfig.Builder setDisplayName(String value)

Display name (max 100 chars)

string display_name = 11;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
DiscoveryConfig.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public DiscoveryConfig.Builder setDisplayNameBytes(ByteString value)

Display name (max 100 chars)

string display_name = 11;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
DiscoveryConfig.Builder

This builder for chaining.

setErrors(int index, Error value)

public DiscoveryConfig.Builder setErrors(int index, Error value)

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueError
Returns
TypeDescription
DiscoveryConfig.Builder

setErrors(int index, Error.Builder builderForValue)

public DiscoveryConfig.Builder setErrors(int index, Error.Builder builderForValue)

Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueError.Builder
Returns
TypeDescription
DiscoveryConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DiscoveryConfig.Builder
Overrides

setInspectTemplates(int index, String value)

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

Detection logic for profile generation.

Not all template features are used by Discovery. FindingLimits, include_quote and exclude_info_types have no impact on Discovery.

Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned.

For more information, see https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency.

repeated string inspect_templates = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The inspectTemplates to set.

Returns
TypeDescription
DiscoveryConfig.Builder

This builder for chaining.

setLastRunTime(Timestamp value)

public DiscoveryConfig.Builder setLastRunTime(Timestamp value)

Output only. The timestamp of the last time this config was executed.

.google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DiscoveryConfig.Builder

setLastRunTime(Timestamp.Builder builderForValue)

public DiscoveryConfig.Builder setLastRunTime(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];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DiscoveryConfig.Builder

setName(String value)

public DiscoveryConfig.Builder setName(String value)

Unique resource name for the DiscoveryConfig, assigned by the service when the DiscoveryConfig is created, for example projects/dlp-test-project/locations/global/discoveryConfigs/53234423.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DiscoveryConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DiscoveryConfig.Builder setNameBytes(ByteString value)

Unique resource name for the DiscoveryConfig, assigned by the service when the DiscoveryConfig is created, for example projects/dlp-test-project/locations/global/discoveryConfigs/53234423.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DiscoveryConfig.Builder

This builder for chaining.

setOrgConfig(DiscoveryConfig.OrgConfig value)

public DiscoveryConfig.Builder setOrgConfig(DiscoveryConfig.OrgConfig value)

Only set when the parent is an org.

.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;

Parameter
NameDescription
valueDiscoveryConfig.OrgConfig
Returns
TypeDescription
DiscoveryConfig.Builder

setOrgConfig(DiscoveryConfig.OrgConfig.Builder builderForValue)

public DiscoveryConfig.Builder setOrgConfig(DiscoveryConfig.OrgConfig.Builder builderForValue)

Only set when the parent is an org.

.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;

Parameter
NameDescription
builderForValueDiscoveryConfig.OrgConfig.Builder
Returns
TypeDescription
DiscoveryConfig.Builder

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

public DiscoveryConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DiscoveryConfig.Builder
Overrides

setStatus(DiscoveryConfig.Status value)

public DiscoveryConfig.Builder setStatus(DiscoveryConfig.Status value)

Required. A status for this configuration.

.google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDiscoveryConfig.Status

The status to set.

Returns
TypeDescription
DiscoveryConfig.Builder

This builder for chaining.

setStatusValue(int value)

public DiscoveryConfig.Builder setStatusValue(int value)

Required. A status for this configuration.

.google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The enum numeric value on the wire for status to set.

Returns
TypeDescription
DiscoveryConfig.Builder

This builder for chaining.

setTargets(int index, DiscoveryTarget value)

public DiscoveryConfig.Builder setTargets(int index, DiscoveryTarget value)

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Parameters
NameDescription
indexint
valueDiscoveryTarget
Returns
TypeDescription
DiscoveryConfig.Builder

setTargets(int index, DiscoveryTarget.Builder builderForValue)

public DiscoveryConfig.Builder setTargets(int index, DiscoveryTarget.Builder builderForValue)

Target to match against for determining what to scan and how frequently.

repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5;

Parameters
NameDescription
indexint
builderForValueDiscoveryTarget.Builder
Returns
TypeDescription
DiscoveryConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DiscoveryConfig.Builder
Overrides

setUpdateTime(Timestamp value)

public DiscoveryConfig.Builder setUpdateTime(Timestamp value)

Output only. The last update timestamp of a DiscoveryConfig.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DiscoveryConfig.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public DiscoveryConfig.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last update timestamp of a DiscoveryConfig.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DiscoveryConfig.Builder