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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQuasiIds()

public PrivacyMetric.KAnonymityConfig.Builder clearQuasiIds()

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
PrivacyMetric.KAnonymityConfig.Builder

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getEntityId()

public EntityId getEntityId()

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
EntityId

The entityId.

getEntityIdBuilder()

public EntityId.Builder getEntityIdBuilder()

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
EntityId.Builder

getEntityIdOrBuilder()

public EntityIdOrBuilder getEntityIdOrBuilder()

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
EntityIdOrBuilder

getQuasiIds(int index)

public FieldId getQuasiIds(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

getQuasiIdsBuilder(int index)

public FieldId.Builder getQuasiIdsBuilder(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

getQuasiIdsBuilderList()

public List<FieldId.Builder> getQuasiIdsBuilderList()

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
List<Builder>

getQuasiIdsCount()

public int getQuasiIdsCount()

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
int

getQuasiIdsList()

public List<FieldId> getQuasiIdsList()

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
List<FieldId>

getQuasiIdsOrBuilder(int index)

public FieldIdOrBuilder getQuasiIdsOrBuilder(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
FieldIdOrBuilder

getQuasiIdsOrBuilderList()

public List<? extends FieldIdOrBuilder> getQuasiIdsOrBuilderList()

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
List<? extends com.google.privacy.dlp.v2.FieldIdOrBuilder>

hasEntityId()

public boolean hasEntityId()

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
boolean

Whether the entityId field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEntityId(EntityId value)

public PrivacyMetric.KAnonymityConfig.Builder mergeEntityId(EntityId value)

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;

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

mergeFrom(PrivacyMetric.KAnonymityConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeQuasiIds(int index)

public PrivacyMetric.KAnonymityConfig.Builder removeQuasiIds(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
PrivacyMetric.KAnonymityConfig.Builder

setEntityId(EntityId value)

public PrivacyMetric.KAnonymityConfig.Builder setEntityId(EntityId value)

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;

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

setEntityId(EntityId.Builder builderForValue)

public PrivacyMetric.KAnonymityConfig.Builder setEntityId(EntityId.Builder builderForValue)

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;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setQuasiIds(int index, FieldId value)

public PrivacyMetric.KAnonymityConfig.Builder setQuasiIds(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

setQuasiIds(int index, FieldId.Builder builderForValue)

public PrivacyMetric.KAnonymityConfig.Builder setQuasiIds(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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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