Class SecretsDiscoveryTarget (3.51.0)

public final class SecretsDiscoveryTarget extends GeneratedMessageV3 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

getDefaultInstance()

public static SecretsDiscoveryTarget getDefaultInstance()
Returns
Type Description
SecretsDiscoveryTarget

getDescriptor()

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

newBuilder()

public static SecretsDiscoveryTarget.Builder newBuilder()
Returns
Type Description
SecretsDiscoveryTarget.Builder

newBuilder(SecretsDiscoveryTarget prototype)

public static SecretsDiscoveryTarget.Builder newBuilder(SecretsDiscoveryTarget prototype)
Parameter
Name Description
prototype SecretsDiscoveryTarget
Returns
Type Description
SecretsDiscoveryTarget.Builder

parseDelimitedFrom(InputStream input)

public static SecretsDiscoveryTarget parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SecretsDiscoveryTarget
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SecretsDiscoveryTarget parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecretsDiscoveryTarget
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SecretsDiscoveryTarget parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SecretsDiscoveryTarget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SecretsDiscoveryTarget parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecretsDiscoveryTarget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SecretsDiscoveryTarget parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SecretsDiscoveryTarget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SecretsDiscoveryTarget parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecretsDiscoveryTarget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SecretsDiscoveryTarget parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SecretsDiscoveryTarget
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SecretsDiscoveryTarget parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecretsDiscoveryTarget
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SecretsDiscoveryTarget parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SecretsDiscoveryTarget
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SecretsDiscoveryTarget parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecretsDiscoveryTarget
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SecretsDiscoveryTarget parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SecretsDiscoveryTarget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SecretsDiscoveryTarget parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecretsDiscoveryTarget
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SecretsDiscoveryTarget> parser()
Returns
Type Description
Parser<SecretsDiscoveryTarget>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SecretsDiscoveryTarget getDefaultInstanceForType()
Returns
Type Description
SecretsDiscoveryTarget

getParserForType()

public Parser<SecretsDiscoveryTarget> getParserForType()
Returns
Type Description
Parser<SecretsDiscoveryTarget>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SecretsDiscoveryTarget.Builder newBuilderForType()
Returns
Type Description
SecretsDiscoveryTarget.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SecretsDiscoveryTarget.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SecretsDiscoveryTarget.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SecretsDiscoveryTarget.Builder toBuilder()
Returns
Type Description
SecretsDiscoveryTarget.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException