Class PrivacyMetric.KAnonymityConfig.Builder (3.49.0)

public static final class PrivacyMetric.KAnonymityConfig.Builder extends GeneratedMessageV3.Builder<PrivacyMetric.KAnonymityConfig.Builder> implements PrivacyMetric.KAnonymityConfigOrBuilder

k-anonymity metric, used for analysis of reidentification risk.

Protobuf type google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig

Static Methods

getDescriptor()

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

Methods

addAllQuasiIds(Iterable<? extends FieldId> values)

public PrivacyMetric.KAnonymityConfig.Builder addAllQuasiIds(Iterable<? extends FieldId> values)

Set of fields to compute k-anonymity over. When multiple fields are specified, they are considered a single composite key. Structs and repeated data types are not supported; however, nested fields are supported so long as they are not structs themselves or nested within a repeated field.

repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.FieldId>
Returns
Type Description
PrivacyMetric.KAnonymityConfig.Builder

addQuasiIds(FieldId value)

public PrivacyMetric.KAnonymityConfig.Builder addQuasiIds(FieldId value)

Set of fields to compute k-anonymity over. When multiple fields are specified, they are considered a single composite key. Structs and repeated data types are not supported; however, nested fields are supported so long as they are not structs themselves or nested within a repeated field.

repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;

Parameter
Name Description
value FieldId
Returns
Type Description
PrivacyMetric.KAnonymityConfig.Builder

addQuasiIds(FieldId.Builder builderForValue)

public PrivacyMetric.KAnonymityConfig.Builder addQuasiIds(FieldId.Builder builderForValue)

Set of fields to compute k-anonymity over. When multiple fields are specified, they are considered a single composite key. Structs and repeated data types are not supported; however, nested fields are supported so long as they are not structs themselves or nested within a repeated field.

repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;

Parameter
Name Description
builderForValue FieldId.Builder
Returns
Type Description
PrivacyMetric.KAnonymityConfig.Builder

addQuasiIds(int index, FieldId value)

public PrivacyMetric.KAnonymityConfig.Builder addQuasiIds(int index, FieldId value)

Set of fields to compute k-anonymity over. When multiple fields are specified, they are considered a single composite key. Structs and repeated data types are not supported; however, nested fields are supported so long as they are not structs themselves or nested within a repeated field.

repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;

Parameters
Name Description
index int
value FieldId
Returns
Type Description
PrivacyMetric.KAnonymityConfig.Builder

addQuasiIds(int index, FieldId.Builder builderForValue)

public PrivacyMetric.KAnonymityConfig.Builder addQuasiIds(int index, FieldId.Builder builderForValue)

Set of fields to compute k-anonymity over. When multiple fields are specified, they are considered a single composite key. Structs and repeated data types are not supported; however, nested fields are supported so long as they are not structs themselves or nested within a repeated field.

repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;

Parameters
Name Description
index int
builderForValue FieldId.Builder
Returns
Type Description
PrivacyMetric.KAnonymityConfig.Builder

addQuasiIdsBuilder()

public FieldId.Builder addQuasiIdsBuilder()

Set of fields to compute k-anonymity over. When multiple fields are specified, they are considered a single composite key. Structs and repeated data types are not supported; however, nested fields are supported so long as they are not structs themselves or nested within a repeated field.

repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;

Returns
Type Description
FieldId.Builder

addQuasiIdsBuilder(int index)

public FieldId.Builder addQuasiIdsBuilder(int index)

Set of fields to compute k-anonymity over. When multiple fields are specified, they are considered a single composite key. Structs and repeated data types are not supported; however, nested fields are supported so long as they are not structs themselves or nested within a repeated field.

repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;

Parameter
Name Description
index int
Returns
Type Description
FieldId.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PrivacyMetric.KAnonymityConfig build()
Returns
Type Description
PrivacyMetric.KAnonymityConfig

buildPartial()

public PrivacyMetric.KAnonymityConfig buildPartial()
Returns
Type Description
PrivacyMetric.KAnonymityConfig

clear()

public PrivacyMetric.KAnonymityConfig.Builder clear()
Returns
Type Description
PrivacyMetric.KAnonymityConfig.Builder
Overrides

clearEntityId()

public PrivacyMetric.KAnonymityConfig.Builder clearEntityId()

Message indicating that multiple rows might be associated to a single individual. If the same entity_id is associated to multiple quasi-identifier tuples over distinct rows, we consider the entire collection of tuples as the composite quasi-identifier. This collection is a multiset: the order in which the different tuples appear in the dataset is ignored, but their frequency is taken into account.

Important note: a maximum of 1000 rows can be associated to a single entity ID. If more rows are associated with the same entity ID, some might be ignored.

.google.privacy.dlp.v2.EntityId entity_id = 2;

Returns
Type Description
PrivacyMetric.KAnonymityConfig.Builder