Class PrivacyMetric.KMapEstimationConfig.Builder

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

public static final class PrivacyMetric.KMapEstimationConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<PrivacyMetric.KMapEstimationConfig.Builder> implements PrivacyMetric.KMapEstimationConfigOrBuilder
 Reidentifiability metric. This corresponds to a risk model similar to what
 is called "journalist risk" in the literature, except the attack dataset is
 statistically modeled instead of being perfectly known. This can be done
 using publicly available data (like the US Census), or using a custom
 statistical model (indicated as one or several BigQuery tables), or by
 extrapolating from the distribution of values in the input dataset.
 
Protobuf type google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig
  • 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.KMapEstimationConfig.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.KMapEstimationConfig.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.KMapEstimationConfig.Builder>
    • getDefaultInstanceForType

      public PrivacyMetric.KMapEstimationConfig 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.KMapEstimationConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

       Required. Fields considered to be quasi-identifiers. No two columns can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuasiIdsList in interface PrivacyMetric.KMapEstimationConfigOrBuilder
    • getQuasiIdsCount

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

       Required. Fields considered to be quasi-identifiers. No two columns can
       have the same tag.
       
      repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField 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.KMapEstimationConfigOrBuilder
      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.KMapEstimationConfigOrBuilder
      Returns:
      The bytes for regionCode.
    • setRegionCode

      public PrivacyMetric.KMapEstimationConfig.Builder setRegionCode(String 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 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.KMapEstimationConfig.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<PrivacyMetric.KMapEstimationConfig.AuxiliaryTable> getAuxiliaryTablesList()
       Several auxiliary tables can be used in the analysis. Each custom_tag
       used to tag a quasi-identifiers column must appear in exactly one column
       of one auxiliary table.
       
      repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable auxiliary_tables = 3;
      Specified by:
      getAuxiliaryTablesList in interface PrivacyMetric.KMapEstimationConfigOrBuilder
    • getAuxiliaryTablesCount

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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