Class DiscoveryTarget.Builder (3.51.0)

public static final class DiscoveryTarget.Builder extends GeneratedMessageV3.Builder<DiscoveryTarget.Builder> implements DiscoveryTargetOrBuilder

Target used to match against for Discovery.

Protobuf type google.privacy.dlp.v2.DiscoveryTarget

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiscoveryTarget build()
Returns
Type Description
DiscoveryTarget

buildPartial()

public DiscoveryTarget buildPartial()
Returns
Type Description
DiscoveryTarget

clear()

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

clearBigQueryTarget()

public DiscoveryTarget.Builder clearBigQueryTarget()

BigQuery target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.BigQueryDiscoveryTarget big_query_target = 1;

Returns
Type Description
DiscoveryTarget.Builder

clearCloudSqlTarget()

public DiscoveryTarget.Builder clearCloudSqlTarget()

Cloud SQL target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.CloudSqlDiscoveryTarget cloud_sql_target = 2;

Returns
Type Description
DiscoveryTarget.Builder

clearCloudStorageTarget()

public DiscoveryTarget.Builder clearCloudStorageTarget()

Cloud Storage target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4;

Returns
Type Description
DiscoveryTarget.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSecretsTarget()

public DiscoveryTarget.Builder clearSecretsTarget()

Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed.

.google.privacy.dlp.v2.SecretsDiscoveryTarget secrets_target = 3;

Returns
Type Description
DiscoveryTarget.Builder

clearTarget()

public DiscoveryTarget.Builder clearTarget()
Returns
Type Description
DiscoveryTarget.Builder

clone()

public DiscoveryTarget.Builder clone()
Returns
Type Description
DiscoveryTarget.Builder
Overrides

getBigQueryTarget()

public BigQueryDiscoveryTarget getBigQueryTarget()

BigQuery target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.BigQueryDiscoveryTarget big_query_target = 1;

Returns
Type Description
BigQueryDiscoveryTarget

The bigQueryTarget.

getBigQueryTargetBuilder()

public BigQueryDiscoveryTarget.Builder getBigQueryTargetBuilder()

BigQuery target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.BigQueryDiscoveryTarget big_query_target = 1;

Returns
Type Description
BigQueryDiscoveryTarget.Builder

getBigQueryTargetOrBuilder()

public BigQueryDiscoveryTargetOrBuilder getBigQueryTargetOrBuilder()

BigQuery target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.BigQueryDiscoveryTarget big_query_target = 1;

Returns
Type Description
BigQueryDiscoveryTargetOrBuilder

getCloudSqlTarget()

public CloudSqlDiscoveryTarget getCloudSqlTarget()

Cloud SQL target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.CloudSqlDiscoveryTarget cloud_sql_target = 2;

Returns
Type Description
CloudSqlDiscoveryTarget

The cloudSqlTarget.

getCloudSqlTargetBuilder()

public CloudSqlDiscoveryTarget.Builder getCloudSqlTargetBuilder()

Cloud SQL target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.CloudSqlDiscoveryTarget cloud_sql_target = 2;

Returns
Type Description
CloudSqlDiscoveryTarget.Builder

getCloudSqlTargetOrBuilder()

public CloudSqlDiscoveryTargetOrBuilder getCloudSqlTargetOrBuilder()

Cloud SQL target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.CloudSqlDiscoveryTarget cloud_sql_target = 2;

Returns
Type Description
CloudSqlDiscoveryTargetOrBuilder

getCloudStorageTarget()

public CloudStorageDiscoveryTarget getCloudStorageTarget()

Cloud Storage target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4;

Returns
Type Description
CloudStorageDiscoveryTarget

The cloudStorageTarget.

getCloudStorageTargetBuilder()

public CloudStorageDiscoveryTarget.Builder getCloudStorageTargetBuilder()

Cloud Storage target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4;

Returns
Type Description
CloudStorageDiscoveryTarget.Builder

getCloudStorageTargetOrBuilder()

public CloudStorageDiscoveryTargetOrBuilder getCloudStorageTargetOrBuilder()

Cloud Storage target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4;

Returns
Type Description
CloudStorageDiscoveryTargetOrBuilder

getDefaultInstanceForType()

public DiscoveryTarget getDefaultInstanceForType()
Returns
Type Description
DiscoveryTarget

getDescriptorForType()

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

getSecretsTarget()

public SecretsDiscoveryTarget getSecretsTarget()

Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed.

.google.privacy.dlp.v2.SecretsDiscoveryTarget secrets_target = 3;

Returns
Type Description
SecretsDiscoveryTarget

The secretsTarget.

getSecretsTargetBuilder()

public SecretsDiscoveryTarget.Builder getSecretsTargetBuilder()

Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed.

.google.privacy.dlp.v2.SecretsDiscoveryTarget secrets_target = 3;

Returns
Type Description
SecretsDiscoveryTarget.Builder

getSecretsTargetOrBuilder()

public SecretsDiscoveryTargetOrBuilder getSecretsTargetOrBuilder()

Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed.

.google.privacy.dlp.v2.SecretsDiscoveryTarget secrets_target = 3;

Returns
Type Description
SecretsDiscoveryTargetOrBuilder

getTargetCase()

public DiscoveryTarget.TargetCase getTargetCase()
Returns
Type Description
DiscoveryTarget.TargetCase

hasBigQueryTarget()

public boolean hasBigQueryTarget()

BigQuery target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.BigQueryDiscoveryTarget big_query_target = 1;

Returns
Type Description
boolean

Whether the bigQueryTarget field is set.

hasCloudSqlTarget()

public boolean hasCloudSqlTarget()

Cloud SQL target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.CloudSqlDiscoveryTarget cloud_sql_target = 2;

Returns
Type Description
boolean

Whether the cloudSqlTarget field is set.

hasCloudStorageTarget()

public boolean hasCloudStorageTarget()

Cloud Storage target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4;

Returns
Type Description
boolean

Whether the cloudStorageTarget field is set.

hasSecretsTarget()

public boolean hasSecretsTarget()

Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed.

.google.privacy.dlp.v2.SecretsDiscoveryTarget secrets_target = 3;

Returns
Type Description
boolean

Whether the secretsTarget field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBigQueryTarget(BigQueryDiscoveryTarget value)

public DiscoveryTarget.Builder mergeBigQueryTarget(BigQueryDiscoveryTarget value)

BigQuery target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.BigQueryDiscoveryTarget big_query_target = 1;

Parameter
Name Description
value BigQueryDiscoveryTarget
Returns
Type Description
DiscoveryTarget.Builder

mergeCloudSqlTarget(CloudSqlDiscoveryTarget value)

public DiscoveryTarget.Builder mergeCloudSqlTarget(CloudSqlDiscoveryTarget value)

Cloud SQL target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.CloudSqlDiscoveryTarget cloud_sql_target = 2;

Parameter
Name Description
value CloudSqlDiscoveryTarget
Returns
Type Description
DiscoveryTarget.Builder

mergeCloudStorageTarget(CloudStorageDiscoveryTarget value)

public DiscoveryTarget.Builder mergeCloudStorageTarget(CloudStorageDiscoveryTarget value)

Cloud Storage target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4;

Parameter
Name Description
value CloudStorageDiscoveryTarget
Returns
Type Description
DiscoveryTarget.Builder

mergeFrom(DiscoveryTarget other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSecretsTarget(SecretsDiscoveryTarget value)

public DiscoveryTarget.Builder mergeSecretsTarget(SecretsDiscoveryTarget value)

Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed.

.google.privacy.dlp.v2.SecretsDiscoveryTarget secrets_target = 3;

Parameter
Name Description
value SecretsDiscoveryTarget
Returns
Type Description
DiscoveryTarget.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBigQueryTarget(BigQueryDiscoveryTarget value)

public DiscoveryTarget.Builder setBigQueryTarget(BigQueryDiscoveryTarget value)

BigQuery target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.BigQueryDiscoveryTarget big_query_target = 1;

Parameter
Name Description
value BigQueryDiscoveryTarget
Returns
Type Description
DiscoveryTarget.Builder

setBigQueryTarget(BigQueryDiscoveryTarget.Builder builderForValue)

public DiscoveryTarget.Builder setBigQueryTarget(BigQueryDiscoveryTarget.Builder builderForValue)

BigQuery target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.BigQueryDiscoveryTarget big_query_target = 1;

Parameter
Name Description
builderForValue BigQueryDiscoveryTarget.Builder
Returns
Type Description
DiscoveryTarget.Builder

setCloudSqlTarget(CloudSqlDiscoveryTarget value)

public DiscoveryTarget.Builder setCloudSqlTarget(CloudSqlDiscoveryTarget value)

Cloud SQL target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.CloudSqlDiscoveryTarget cloud_sql_target = 2;

Parameter
Name Description
value CloudSqlDiscoveryTarget
Returns
Type Description
DiscoveryTarget.Builder

setCloudSqlTarget(CloudSqlDiscoveryTarget.Builder builderForValue)

public DiscoveryTarget.Builder setCloudSqlTarget(CloudSqlDiscoveryTarget.Builder builderForValue)

Cloud SQL target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.CloudSqlDiscoveryTarget cloud_sql_target = 2;

Parameter
Name Description
builderForValue CloudSqlDiscoveryTarget.Builder
Returns
Type Description
DiscoveryTarget.Builder

setCloudStorageTarget(CloudStorageDiscoveryTarget value)

public DiscoveryTarget.Builder setCloudStorageTarget(CloudStorageDiscoveryTarget value)

Cloud Storage target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4;

Parameter
Name Description
value CloudStorageDiscoveryTarget
Returns
Type Description
DiscoveryTarget.Builder

setCloudStorageTarget(CloudStorageDiscoveryTarget.Builder builderForValue)

public DiscoveryTarget.Builder setCloudStorageTarget(CloudStorageDiscoveryTarget.Builder builderForValue)

Cloud Storage target for Discovery. The first target to match a table will be the one applied.

.google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4;

Parameter
Name Description
builderForValue CloudStorageDiscoveryTarget.Builder
Returns
Type Description
DiscoveryTarget.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSecretsTarget(SecretsDiscoveryTarget value)

public DiscoveryTarget.Builder setSecretsTarget(SecretsDiscoveryTarget value)

Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed.

.google.privacy.dlp.v2.SecretsDiscoveryTarget secrets_target = 3;

Parameter
Name Description
value SecretsDiscoveryTarget
Returns
Type Description
DiscoveryTarget.Builder

setSecretsTarget(SecretsDiscoveryTarget.Builder builderForValue)

public DiscoveryTarget.Builder setSecretsTarget(SecretsDiscoveryTarget.Builder builderForValue)

Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed.

.google.privacy.dlp.v2.SecretsDiscoveryTarget secrets_target = 3;

Parameter
Name Description
builderForValue SecretsDiscoveryTarget.Builder
Returns
Type Description
DiscoveryTarget.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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