public final class DiscoveryConfig extends GeneratedMessageV3 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
ACTIONS_FIELD_NUMBER
public static final int ACTIONS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ERRORS_FIELD_NUMBER
public static final int ERRORS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
INSPECT_TEMPLATES_FIELD_NUMBER
public static final int INSPECT_TEMPLATES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LAST_RUN_TIME_FIELD_NUMBER
public static final int LAST_RUN_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ORG_CONFIG_FIELD_NUMBER
public static final int ORG_CONFIG_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TARGETS_FIELD_NUMBER
public static final int TARGETS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static DiscoveryConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static DiscoveryConfig.Builder newBuilder()
newBuilder(DiscoveryConfig prototype)
public static DiscoveryConfig.Builder newBuilder(DiscoveryConfig prototype)
public static DiscoveryConfig parseDelimitedFrom(InputStream input)
public static DiscoveryConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static DiscoveryConfig parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DiscoveryConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static DiscoveryConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DiscoveryConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DiscoveryConfig parseFrom(CodedInputStream input)
public static DiscoveryConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DiscoveryConfig parseFrom(InputStream input)
public static DiscoveryConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static DiscoveryConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DiscoveryConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<DiscoveryConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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 |
---|
Name | Description |
index | int
|
getActionsCount()
public int getActionsCount()
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
Returns |
---|
Type | Description |
int | |
getActionsList()
public List<DataProfileAction> getActionsList()
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
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 |
---|
Name | Description |
index | int
|
getActionsOrBuilderList()
public List<? extends DataProfileActionOrBuilder> getActionsOrBuilderList()
Actions to execute at the completion of scanning.
repeated .google.privacy.dlp.v2.DataProfileAction actions = 4;
Returns |
---|
Type | Description |
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 |
---|
Type | Description |
Timestamp | The createTime.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The creation timestamp of a DiscoveryConfig.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public DiscoveryConfig getDefaultInstanceForType()
getDisplayName()
public String getDisplayName()
Display name (max 100 chars)
string display_name = 11;
Returns |
---|
Type | Description |
String | The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Display name (max 100 chars)
string display_name = 11;
Returns |
---|
Type | Description |
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 |
---|
Name | Description |
index | int
|
Returns |
---|
Type | Description |
Error | |
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 |
---|
Type | Description |
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];
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
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/dlp/docs/data-profiles#data-residency.
repeated string inspect_templates = 3;
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 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/dlp/docs/data-profiles#data-residency.
repeated string inspect_templates = 3;
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 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/dlp/docs/data-profiles#data-residency.
repeated string inspect_templates = 3;
Returns |
---|
Type | Description |
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/dlp/docs/data-profiles#data-residency.
repeated string inspect_templates = 3;
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 |
---|
Type | Description |
Timestamp | The lastRunTime.
|
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];
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 |
---|
Type | Description |
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 |
---|
Type | Description |
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;
getOrgConfigOrBuilder()
public DiscoveryConfig.OrgConfigOrBuilder getOrgConfigOrBuilder()
Only set when the parent is an org.
.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2;
getParserForType()
public Parser<DiscoveryConfig> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getStatus()
public DiscoveryConfig.Status getStatus()
Required. A status for this configuration.
.google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED];
getStatusValue()
public int getStatusValue()
Required. A status for this configuration.
.google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
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;
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
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 |
---|
Type | Description |
Timestamp | The updateTime.
|
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];
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 |
---|
Type | Description |
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 |
---|
Type | Description |
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 |
---|
Type | Description |
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 |
---|
Type | Description |
boolean | Whether the updateTime field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public DiscoveryConfig.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DiscoveryConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public DiscoveryConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides