Class PrivacyMetric.KAnonymityConfig.Builder

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

public static final class PrivacyMetric.KAnonymityConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<PrivacyMetric.KAnonymityConfig.Builder> implements PrivacyMetric.KAnonymityConfigOrBuilder
 k-anonymity metric, used for analysis of reidentification risk.
 
Protobuf type google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig
  • 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.Builder<PrivacyMetric.KAnonymityConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PrivacyMetric.KAnonymityConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PrivacyMetric.KAnonymityConfig.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public PrivacyMetric.KAnonymityConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PrivacyMetric.KAnonymityConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PrivacyMetric.KAnonymityConfig.Builder>
    • mergeFrom

      public PrivacyMetric.KAnonymityConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PrivacyMetric.KAnonymityConfig.Builder>
      Throws:
      IOException
    • 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
    • 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
    • setQuasiIds

      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;
    • setQuasiIds

      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;
    • addQuasiIds

      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;
    • addQuasiIds

      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;
    • addQuasiIds

      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;
    • addQuasiIds

      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;
    • addAllQuasiIds

      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;
    • 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;
    • removeQuasiIds

      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;
    • getQuasiIdsBuilder

      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;
    • 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
    • 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
    • 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;
    • addQuasiIdsBuilder

      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;
    • 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;
    • 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.
    • setEntityId

       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;
    • setEntityId

      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;
    • mergeEntityId

      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;
    • 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;
    • 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;
    • 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