Class SecretsDiscoveryTarget.Builder (3.87.0)

public static final class SecretsDiscoveryTarget.Builder extends GeneratedMessage.Builder<SecretsDiscoveryTarget.Builder> implements SecretsDiscoveryTargetOrBuilder

Discovery target for credentials and secrets in cloud resource metadata.

This target does not include any filtering or frequency controls. Cloud DLP will scan cloud resource metadata for secrets daily.

No inspect template should be included in the discovery config for a security benchmarks scan. Instead, the built-in list of secrets and credentials infoTypes will be used (see https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#credentials_and_secrets).

Credentials and secrets discovered will be reported as vulnerabilities to Security Command Center.

Protobuf type google.privacy.dlp.v2.SecretsDiscoveryTarget

Static Methods

getDescriptor()

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

Methods

build()

public SecretsDiscoveryTarget build()
Returns
Type Description
SecretsDiscoveryTarget

buildPartial()

public SecretsDiscoveryTarget buildPartial()
Returns
Type Description
SecretsDiscoveryTarget

clear()

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

getDefaultInstanceForType()

public SecretsDiscoveryTarget getDefaultInstanceForType()
Returns
Type Description
SecretsDiscoveryTarget

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SecretsDiscoveryTarget other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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