Class PrivacyMetric.DeltaPresenceEstimationConfig.Builder

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

public static final class PrivacyMetric.DeltaPresenceEstimationConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<PrivacyMetric.DeltaPresenceEstimationConfig.Builder> implements PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder
 δ-presence metric, used to estimate how likely it is for an attacker to
 figure out that one given individual appears in a de-identified dataset.
 Similarly to the k-map metric, we cannot compute δ-presence exactly without
 knowing the attack dataset, so we use a statistical model instead.
 
Protobuf type google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig
  • 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.DeltaPresenceEstimationConfig.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.DeltaPresenceEstimationConfig.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.DeltaPresenceEstimationConfig.Builder>
    • getDefaultInstanceForType

      public PrivacyMetric.DeltaPresenceEstimationConfig 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

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

      public PrivacyMetric.DeltaPresenceEstimationConfig.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.DeltaPresenceEstimationConfig.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.DeltaPresenceEstimationConfig.Builder>
    • mergeFrom

      public PrivacyMetric.DeltaPresenceEstimationConfig.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.DeltaPresenceEstimationConfig.Builder>
      Throws:
      IOException
    • getQuasiIdsList

      public List<QuasiId> getQuasiIdsList()
       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuasiIdsList in interface PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder
    • getQuasiIdsCount

      public int getQuasiIdsCount()
       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuasiIdsCount in interface PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder
    • getQuasiIds

      public QuasiId getQuasiIds(int index)
       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuasiIds in interface PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder
    • setQuasiIds

      public PrivacyMetric.DeltaPresenceEstimationConfig.Builder setQuasiIds(int index, QuasiId value)
       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
    • setQuasiIds

      public PrivacyMetric.DeltaPresenceEstimationConfig.Builder setQuasiIds(int index, QuasiId.Builder builderForValue)
       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
    • addQuasiIds

       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
    • addQuasiIds

      public PrivacyMetric.DeltaPresenceEstimationConfig.Builder addQuasiIds(int index, QuasiId value)
       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
    • addQuasiIds

       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
    • addQuasiIds

      public PrivacyMetric.DeltaPresenceEstimationConfig.Builder addQuasiIds(int index, QuasiId.Builder builderForValue)
       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
    • addAllQuasiIds

      public PrivacyMetric.DeltaPresenceEstimationConfig.Builder addAllQuasiIds(Iterable<? extends QuasiId> values)
       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearQuasiIds

       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
    • removeQuasiIds

      public PrivacyMetric.DeltaPresenceEstimationConfig.Builder removeQuasiIds(int index)
       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
    • getQuasiIdsBuilder

      public QuasiId.Builder getQuasiIdsBuilder(int index)
       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
    • getQuasiIdsOrBuilder

      public QuasiIdOrBuilder getQuasiIdsOrBuilder(int index)
       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuasiIdsOrBuilder in interface PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder
    • getQuasiIdsOrBuilderList

      public List<? extends QuasiIdOrBuilder> getQuasiIdsOrBuilderList()
       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuasiIdsOrBuilderList in interface PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder
    • addQuasiIdsBuilder

      public QuasiId.Builder addQuasiIdsBuilder()
       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
    • addQuasiIdsBuilder

      public QuasiId.Builder addQuasiIdsBuilder(int index)
       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
    • getQuasiIdsBuilderList

      public List<QuasiId.Builder> getQuasiIdsBuilderList()
       Required. Fields considered to be quasi-identifiers. No two fields can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
    • getRegionCode

      public String getRegionCode()
       ISO 3166-1 alpha-2 region code to use in the statistical modeling.
       Set if no column is tagged with a region-specific InfoType (like
       US_ZIP_5) or a region code.
       
      string region_code = 2;
      Specified by:
      getRegionCode in interface PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder
      Returns:
      The regionCode.
    • getRegionCodeBytes

      public com.google.protobuf.ByteString getRegionCodeBytes()
       ISO 3166-1 alpha-2 region code to use in the statistical modeling.
       Set if no column is tagged with a region-specific InfoType (like
       US_ZIP_5) or a region code.
       
      string region_code = 2;
      Specified by:
      getRegionCodeBytes in interface PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder
      Returns:
      The bytes for regionCode.
    • setRegionCode

       ISO 3166-1 alpha-2 region code to use in the statistical modeling.
       Set if no column is tagged with a region-specific InfoType (like
       US_ZIP_5) or a region code.
       
      string region_code = 2;
      Parameters:
      value - The regionCode to set.
      Returns:
      This builder for chaining.
    • clearRegionCode

       ISO 3166-1 alpha-2 region code to use in the statistical modeling.
       Set if no column is tagged with a region-specific InfoType (like
       US_ZIP_5) or a region code.
       
      string region_code = 2;
      Returns:
      This builder for chaining.
    • setRegionCodeBytes

      public PrivacyMetric.DeltaPresenceEstimationConfig.Builder setRegionCodeBytes(com.google.protobuf.ByteString value)
       ISO 3166-1 alpha-2 region code to use in the statistical modeling.
       Set if no column is tagged with a region-specific InfoType (like
       US_ZIP_5) or a region code.
       
      string region_code = 2;
      Parameters:
      value - The bytes for regionCode to set.
      Returns:
      This builder for chaining.
    • getAuxiliaryTablesList

      public List<StatisticalTable> getAuxiliaryTablesList()
       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
      Specified by:
      getAuxiliaryTablesList in interface PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder
    • getAuxiliaryTablesCount

      public int getAuxiliaryTablesCount()
       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
      Specified by:
      getAuxiliaryTablesCount in interface PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder
    • getAuxiliaryTables

      public StatisticalTable getAuxiliaryTables(int index)
       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
      Specified by:
      getAuxiliaryTables in interface PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder
    • setAuxiliaryTables

      public PrivacyMetric.DeltaPresenceEstimationConfig.Builder setAuxiliaryTables(int index, StatisticalTable value)
       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
    • setAuxiliaryTables

      public PrivacyMetric.DeltaPresenceEstimationConfig.Builder setAuxiliaryTables(int index, StatisticalTable.Builder builderForValue)
       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
    • addAuxiliaryTables

       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
    • addAuxiliaryTables

      public PrivacyMetric.DeltaPresenceEstimationConfig.Builder addAuxiliaryTables(int index, StatisticalTable value)
       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
    • addAuxiliaryTables

       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
    • addAuxiliaryTables

      public PrivacyMetric.DeltaPresenceEstimationConfig.Builder addAuxiliaryTables(int index, StatisticalTable.Builder builderForValue)
       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
    • addAllAuxiliaryTables

      public PrivacyMetric.DeltaPresenceEstimationConfig.Builder addAllAuxiliaryTables(Iterable<? extends StatisticalTable> values)
       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
    • clearAuxiliaryTables

       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
    • removeAuxiliaryTables

      public PrivacyMetric.DeltaPresenceEstimationConfig.Builder removeAuxiliaryTables(int index)
       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
    • getAuxiliaryTablesBuilder

      public StatisticalTable.Builder getAuxiliaryTablesBuilder(int index)
       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
    • getAuxiliaryTablesOrBuilder

      public StatisticalTableOrBuilder getAuxiliaryTablesOrBuilder(int index)
       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
      Specified by:
      getAuxiliaryTablesOrBuilder in interface PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder
    • getAuxiliaryTablesOrBuilderList

      public List<? extends StatisticalTableOrBuilder> getAuxiliaryTablesOrBuilderList()
       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
      Specified by:
      getAuxiliaryTablesOrBuilderList in interface PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder
    • addAuxiliaryTablesBuilder

      public StatisticalTable.Builder addAuxiliaryTablesBuilder()
       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
    • addAuxiliaryTablesBuilder

      public StatisticalTable.Builder addAuxiliaryTablesBuilder(int index)
       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
    • getAuxiliaryTablesBuilderList

      public List<StatisticalTable.Builder> getAuxiliaryTablesBuilderList()
       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers field must appear in exactly one
       field of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;