Class PrivacyMetric.KAnonymityConfig (3.25.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
TypeDescription
int

QUASI_IDS_FIELD_NUMBER

public static final int QUASI_IDS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PrivacyMetric.KAnonymityConfig getDefaultInstance()
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PrivacyMetric.KAnonymityConfig.Builder newBuilder()
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder

newBuilder(PrivacyMetric.KAnonymityConfig prototype)

public static PrivacyMetric.KAnonymityConfig.Builder newBuilder(PrivacyMetric.KAnonymityConfig prototype)
Parameter
NameDescription
prototypePrivacyMetric.KAnonymityConfig
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder

parseDelimitedFrom(InputStream input)

public static PrivacyMetric.KAnonymityConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivacyMetric.KAnonymityConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PrivacyMetric.KAnonymityConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PrivacyMetric.KAnonymityConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PrivacyMetric.KAnonymityConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PrivacyMetric.KAnonymityConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PrivacyMetric.KAnonymityConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivacyMetric.KAnonymityConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PrivacyMetric.KAnonymityConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivacyMetric.KAnonymityConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PrivacyMetric.KAnonymityConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PrivacyMetric.KAnonymityConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<PrivacyMetric.KAnonymityConfig> getParserForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
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>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the entityId field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PrivacyMetric.KAnonymityConfig.Builder newBuilderForType()
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PrivacyMetric.KAnonymityConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PrivacyMetric.KAnonymityConfig.Builder toBuilder()
Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException