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
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
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PrivacyMetric.KAnonymityConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PrivacyMetric.KAnonymityConfig build()
Returns
buildPartial()
public PrivacyMetric.KAnonymityConfig buildPartial()
Returns
clear()
public PrivacyMetric.KAnonymityConfig.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public PrivacyMetric.KAnonymityConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PrivacyMetric.KAnonymityConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public PrivacyMetric.KAnonymityConfig.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public PrivacyMetric.KAnonymityConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
Returns
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
Returns
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
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
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
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
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(PrivacyMetric.KAnonymityConfig other)
public PrivacyMetric.KAnonymityConfig.Builder mergeFrom(PrivacyMetric.KAnonymityConfig other)
Parameter
Returns
public PrivacyMetric.KAnonymityConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PrivacyMetric.KAnonymityConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PrivacyMetric.KAnonymityConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public PrivacyMetric.KAnonymityConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PrivacyMetric.KAnonymityConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PrivacyMetric.KAnonymityConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides