Class PrivacyMetric.KAnonymityConfig (3.46.0)

public static final class PrivacyMetric.KAnonymityConfig extends GeneratedMessageV3 implements PrivacyMetric.KAnonymityConfigOrBuilder

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

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PrivacyMetric.KAnonymityConfig

Static Fields

ENTITY_ID_FIELD_NUMBER

public static final int ENTITY_ID_FIELD_NUMBER
Field Value
Type Description
int

QUASI_IDS_FIELD_NUMBER

public static final int QUASI_IDS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PrivacyMetric.KAnonymityConfig getDefaultInstance()
Returns
Type Description
PrivacyMetric.KAnonymityConfig

getDescriptor()

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

newBuilder()

public static PrivacyMetric.KAnonymityConfig.Builder newBuilder()
Returns
Type Description
PrivacyMetric.KAnonymityConfig.Builder

newBuilder(PrivacyMetric.KAnonymityConfig prototype)

public static PrivacyMetric.KAnonymityConfig.Builder newBuilder(PrivacyMetric.KAnonymityConfig prototype)
Parameter
Name Description
prototype PrivacyMetric.KAnonymityConfig
Returns
Type Description
PrivacyMetric.KAnonymityConfig.Builder

parseDelimitedFrom(InputStream input)

public static PrivacyMetric.KAnonymityConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PrivacyMetric.KAnonymityConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivacyMetric.KAnonymityConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivacyMetric.KAnonymityConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PrivacyMetric.KAnonymityConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PrivacyMetric.KAnonymityConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PrivacyMetric.KAnonymityConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivacyMetric.KAnonymityConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PrivacyMetric.KAnonymityConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PrivacyMetric.KAnonymityConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PrivacyMetric.KAnonymityConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivacyMetric.KAnonymityConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PrivacyMetric.KAnonymityConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PrivacyMetric.KAnonymityConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivacyMetric.KAnonymityConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivacyMetric.KAnonymityConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PrivacyMetric.KAnonymityConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PrivacyMetric.KAnonymityConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivacyMetric.KAnonymityConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivacyMetric.KAnonymityConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PrivacyMetric.KAnonymityConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PrivacyMetric.KAnonymityConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PrivacyMetric.KAnonymityConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivacyMetric.KAnonymityConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PrivacyMetric.KAnonymityConfig> parser()
Returns
Type Description
Parser<KAnonymityConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

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

getParserForType()

public Parser<PrivacyMetric.KAnonymityConfig> getParserForType()
Returns
Type Description
Parser<KAnonymityConfig>
Overrides

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PrivacyMetric.KAnonymityConfig.Builder newBuilderForType()
Returns
Type Description
PrivacyMetric.KAnonymityConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PrivacyMetric.KAnonymityConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PrivacyMetric.KAnonymityConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PrivacyMetric.KAnonymityConfig.Builder toBuilder()
Returns
Type Description
PrivacyMetric.KAnonymityConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException