Class SecretsDiscoveryTarget.Builder (3.56.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SecretsDiscoveryTarget.Builder clone()
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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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