Class PrivacyMetric.KAnonymityConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig
All Implemented Interfaces:
PrivacyMetric.KAnonymityConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
PrivacyMetric

public static final class PrivacyMetric.KAnonymityConfig extends com.google.protobuf.GeneratedMessage implements PrivacyMetric.KAnonymityConfigOrBuilder
 k-anonymity metric, used for analysis of reidentification risk.
 
Protobuf type google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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;
      Specified by:
      getQuasiIdsList in interface PrivacyMetric.KAnonymityConfigOrBuilder
    • 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;
      Specified by:
      getQuasiIdsOrBuilderList in interface PrivacyMetric.KAnonymityConfigOrBuilder
    • 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;
      Specified by:
      getQuasiIdsCount in interface PrivacyMetric.KAnonymityConfigOrBuilder
    • getQuasiIds

      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;
      Specified by:
      getQuasiIds in interface PrivacyMetric.KAnonymityConfigOrBuilder
    • getQuasiIdsOrBuilder

      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;
      Specified by:
      getQuasiIdsOrBuilder in interface PrivacyMetric.KAnonymityConfigOrBuilder
    • 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;
      Specified by:
      hasEntityId in interface PrivacyMetric.KAnonymityConfigOrBuilder
      Returns:
      Whether the entityId field is set.
    • 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;
      Specified by:
      getEntityId in interface PrivacyMetric.KAnonymityConfigOrBuilder
      Returns:
      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;
      Specified by:
      getEntityIdOrBuilder in interface PrivacyMetric.KAnonymityConfigOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static PrivacyMetric.KAnonymityConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PrivacyMetric.KAnonymityConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PrivacyMetric.KAnonymityConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PrivacyMetric.KAnonymityConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PrivacyMetric.KAnonymityConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PrivacyMetric.KAnonymityConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PrivacyMetric.KAnonymityConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PrivacyMetric.KAnonymityConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PrivacyMetric.KAnonymityConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PrivacyMetric.KAnonymityConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PrivacyMetric.KAnonymityConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PrivacyMetric.KAnonymityConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public PrivacyMetric.KAnonymityConfig.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static PrivacyMetric.KAnonymityConfig.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected PrivacyMetric.KAnonymityConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static PrivacyMetric.KAnonymityConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<PrivacyMetric.KAnonymityConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<PrivacyMetric.KAnonymityConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public PrivacyMetric.KAnonymityConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder