Class PrivacyMetric.KAnonymityConfig.Builder (3.37.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.FieldId>
Returns
TypeDescription
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
NameDescription
valueFieldId
Returns
TypeDescription
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
NameDescription
builderForValueFieldId.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueFieldId
Returns
TypeDescription
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
NameDescription
indexint
builderForValueFieldId.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
FieldId.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PrivacyMetric.KAnonymityConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder
Overrides

build()

public PrivacyMetric.KAnonymityConfig build()
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig

buildPartial()

public PrivacyMetric.KAnonymityConfig buildPartial()
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig

clear()

public PrivacyMetric.KAnonymityConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public PrivacyMetric.KAnonymityConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PrivacyMetric.KAnonymityConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder

clone()

public PrivacyMetric.KAnonymityConfig.Builder clone()
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder
Overrides

getDefaultInstanceForType()

public PrivacyMetric.KAnonymityConfig getDefaultInstanceForType()
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the entityId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueEntityId
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder

mergeFrom(PrivacyMetric.KAnonymityConfig other)

public PrivacyMetric.KAnonymityConfig.Builder mergeFrom(PrivacyMetric.KAnonymityConfig other)
Parameter
NameDescription
otherPrivacyMetric.KAnonymityConfig
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PrivacyMetric.KAnonymityConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PrivacyMetric.KAnonymityConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrivacyMetric.KAnonymityConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueEntityId
Returns
TypeDescription
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
NameDescription
builderForValueEntityId.Builder
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PrivacyMetric.KAnonymityConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueFieldId
Returns
TypeDescription
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
NameDescription
indexint
builderForValueFieldId.Builder
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder

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

public PrivacyMetric.KAnonymityConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PrivacyMetric.KAnonymityConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder
Overrides