Class PrivacyMetric.Builder (3.48.0)

public static final class PrivacyMetric.Builder extends GeneratedMessageV3.Builder<PrivacyMetric.Builder> implements PrivacyMetricOrBuilder

Privacy metric to compute for reidentification risk analysis.

Protobuf type google.privacy.dlp.v2.PrivacyMetric

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PrivacyMetric.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PrivacyMetric.Builder
Overrides

build()

public PrivacyMetric build()
Returns
Type Description
PrivacyMetric

buildPartial()

public PrivacyMetric buildPartial()
Returns
Type Description
PrivacyMetric

clear()

public PrivacyMetric.Builder clear()
Returns
Type Description
PrivacyMetric.Builder
Overrides

clearCategoricalStatsConfig()

public PrivacyMetric.Builder clearCategoricalStatsConfig()

Categorical stats

.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig categorical_stats_config = 2;

Returns
Type Description
PrivacyMetric.Builder

clearDeltaPresenceEstimationConfig()

public PrivacyMetric.Builder clearDeltaPresenceEstimationConfig()

delta-presence

.google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig delta_presence_estimation_config = 6;

Returns
Type Description
PrivacyMetric.Builder

clearField(Descriptors.FieldDescriptor field)

public PrivacyMetric.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PrivacyMetric.Builder
Overrides

clearKAnonymityConfig()

public PrivacyMetric.Builder clearKAnonymityConfig()

K-anonymity

.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig k_anonymity_config = 3;

Returns
Type Description
PrivacyMetric.Builder

clearKMapEstimationConfig()

public PrivacyMetric.Builder clearKMapEstimationConfig()

k-map

.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig k_map_estimation_config = 5;

Returns
Type Description
PrivacyMetric.Builder

clearLDiversityConfig()

public PrivacyMetric.Builder clearLDiversityConfig()

l-diversity

.google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig l_diversity_config = 4;

Returns
Type Description
PrivacyMetric.Builder

clearNumericalStatsConfig()

public PrivacyMetric.Builder clearNumericalStatsConfig()

Numerical stats

.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig numerical_stats_config = 1;

Returns
Type Description
PrivacyMetric.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public PrivacyMetric.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PrivacyMetric.Builder
Overrides

clearType()

public PrivacyMetric.Builder clearType()
Returns
Type Description
PrivacyMetric.Builder

clone()

public PrivacyMetric.Builder clone()
Returns
Type Description
PrivacyMetric.Builder
Overrides

getCategoricalStatsConfig()

public PrivacyMetric.CategoricalStatsConfig getCategoricalStatsConfig()

Categorical stats

.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig categorical_stats_config = 2;

Returns
Type Description
PrivacyMetric.CategoricalStatsConfig

The categoricalStatsConfig.

getCategoricalStatsConfigBuilder()

public PrivacyMetric.CategoricalStatsConfig.Builder getCategoricalStatsConfigBuilder()

Categorical stats

.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig categorical_stats_config = 2;

Returns
Type Description
PrivacyMetric.CategoricalStatsConfig.Builder

getCategoricalStatsConfigOrBuilder()

public PrivacyMetric.CategoricalStatsConfigOrBuilder getCategoricalStatsConfigOrBuilder()

Categorical stats

.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig categorical_stats_config = 2;

Returns
Type Description
PrivacyMetric.CategoricalStatsConfigOrBuilder

getDefaultInstanceForType()

public PrivacyMetric getDefaultInstanceForType()
Returns
Type Description
PrivacyMetric

getDeltaPresenceEstimationConfig()

public PrivacyMetric.DeltaPresenceEstimationConfig getDeltaPresenceEstimationConfig()

delta-presence

.google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig delta_presence_estimation_config = 6;

Returns
Type Description
PrivacyMetric.DeltaPresenceEstimationConfig

The deltaPresenceEstimationConfig.

getDeltaPresenceEstimationConfigBuilder()

public PrivacyMetric.DeltaPresenceEstimationConfig.Builder getDeltaPresenceEstimationConfigBuilder()

delta-presence

.google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig delta_presence_estimation_config = 6;

Returns
Type Description
PrivacyMetric.DeltaPresenceEstimationConfig.Builder

getDeltaPresenceEstimationConfigOrBuilder()

public PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder getDeltaPresenceEstimationConfigOrBuilder()

delta-presence

.google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig delta_presence_estimation_config = 6;

Returns
Type Description
PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKAnonymityConfig()

public PrivacyMetric.KAnonymityConfig getKAnonymityConfig()

K-anonymity

.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig k_anonymity_config = 3;

Returns
Type Description
PrivacyMetric.KAnonymityConfig

The kAnonymityConfig.

getKAnonymityConfigBuilder()

public PrivacyMetric.KAnonymityConfig.Builder getKAnonymityConfigBuilder()

K-anonymity

.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig k_anonymity_config = 3;

Returns
Type Description
PrivacyMetric.KAnonymityConfig.Builder

getKAnonymityConfigOrBuilder()

public PrivacyMetric.KAnonymityConfigOrBuilder getKAnonymityConfigOrBuilder()

K-anonymity

.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig k_anonymity_config = 3;

Returns
Type Description
PrivacyMetric.KAnonymityConfigOrBuilder

getKMapEstimationConfig()

public PrivacyMetric.KMapEstimationConfig getKMapEstimationConfig()

k-map

.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig k_map_estimation_config = 5;

Returns
Type Description
PrivacyMetric.KMapEstimationConfig

The kMapEstimationConfig.

getKMapEstimationConfigBuilder()

public PrivacyMetric.KMapEstimationConfig.Builder getKMapEstimationConfigBuilder()

k-map

.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig k_map_estimation_config = 5;

Returns
Type Description
PrivacyMetric.KMapEstimationConfig.Builder

getKMapEstimationConfigOrBuilder()

public PrivacyMetric.KMapEstimationConfigOrBuilder getKMapEstimationConfigOrBuilder()

k-map

.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig k_map_estimation_config = 5;

Returns
Type Description
PrivacyMetric.KMapEstimationConfigOrBuilder

getLDiversityConfig()

public PrivacyMetric.LDiversityConfig getLDiversityConfig()

l-diversity

.google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig l_diversity_config = 4;

Returns
Type Description
PrivacyMetric.LDiversityConfig

The lDiversityConfig.

getLDiversityConfigBuilder()

public PrivacyMetric.LDiversityConfig.Builder getLDiversityConfigBuilder()

l-diversity

.google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig l_diversity_config = 4;

Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder

getLDiversityConfigOrBuilder()

public PrivacyMetric.LDiversityConfigOrBuilder getLDiversityConfigOrBuilder()

l-diversity

.google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig l_diversity_config = 4;

Returns
Type Description
PrivacyMetric.LDiversityConfigOrBuilder

getNumericalStatsConfig()

public PrivacyMetric.NumericalStatsConfig getNumericalStatsConfig()

Numerical stats

.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig numerical_stats_config = 1;

Returns
Type Description
PrivacyMetric.NumericalStatsConfig

The numericalStatsConfig.

getNumericalStatsConfigBuilder()

public PrivacyMetric.NumericalStatsConfig.Builder getNumericalStatsConfigBuilder()

Numerical stats

.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig numerical_stats_config = 1;

Returns
Type Description
PrivacyMetric.NumericalStatsConfig.Builder

getNumericalStatsConfigOrBuilder()

public PrivacyMetric.NumericalStatsConfigOrBuilder getNumericalStatsConfigOrBuilder()

Numerical stats

.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig numerical_stats_config = 1;

Returns
Type Description
PrivacyMetric.NumericalStatsConfigOrBuilder

getTypeCase()

public PrivacyMetric.TypeCase getTypeCase()
Returns
Type Description
PrivacyMetric.TypeCase

hasCategoricalStatsConfig()

public boolean hasCategoricalStatsConfig()

Categorical stats

.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig categorical_stats_config = 2;

Returns
Type Description
boolean

Whether the categoricalStatsConfig field is set.

hasDeltaPresenceEstimationConfig()

public boolean hasDeltaPresenceEstimationConfig()

delta-presence

.google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig delta_presence_estimation_config = 6;

Returns
Type Description
boolean

Whether the deltaPresenceEstimationConfig field is set.

hasKAnonymityConfig()

public boolean hasKAnonymityConfig()

K-anonymity

.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig k_anonymity_config = 3;

Returns
Type Description
boolean

Whether the kAnonymityConfig field is set.

hasKMapEstimationConfig()

public boolean hasKMapEstimationConfig()

k-map

.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig k_map_estimation_config = 5;

Returns
Type Description
boolean

Whether the kMapEstimationConfig field is set.

hasLDiversityConfig()

public boolean hasLDiversityConfig()

l-diversity

.google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig l_diversity_config = 4;

Returns
Type Description
boolean

Whether the lDiversityConfig field is set.

hasNumericalStatsConfig()

public boolean hasNumericalStatsConfig()

Numerical stats

.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig numerical_stats_config = 1;

Returns
Type Description
boolean

Whether the numericalStatsConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCategoricalStatsConfig(PrivacyMetric.CategoricalStatsConfig value)

public PrivacyMetric.Builder mergeCategoricalStatsConfig(PrivacyMetric.CategoricalStatsConfig value)

Categorical stats

.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig categorical_stats_config = 2;

Parameter
Name Description
value PrivacyMetric.CategoricalStatsConfig
Returns
Type Description
PrivacyMetric.Builder

mergeDeltaPresenceEstimationConfig(PrivacyMetric.DeltaPresenceEstimationConfig value)

public PrivacyMetric.Builder mergeDeltaPresenceEstimationConfig(PrivacyMetric.DeltaPresenceEstimationConfig value)

delta-presence

.google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig delta_presence_estimation_config = 6;

Parameter
Name Description
value PrivacyMetric.DeltaPresenceEstimationConfig
Returns
Type Description
PrivacyMetric.Builder

mergeFrom(PrivacyMetric other)

public PrivacyMetric.Builder mergeFrom(PrivacyMetric other)
Parameter
Name Description
other PrivacyMetric
Returns
Type Description
PrivacyMetric.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PrivacyMetric.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivacyMetric.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PrivacyMetric.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PrivacyMetric.Builder
Overrides

mergeKAnonymityConfig(PrivacyMetric.KAnonymityConfig value)

public PrivacyMetric.Builder mergeKAnonymityConfig(PrivacyMetric.KAnonymityConfig value)

K-anonymity

.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig k_anonymity_config = 3;

Parameter
Name Description
value PrivacyMetric.KAnonymityConfig
Returns
Type Description
PrivacyMetric.Builder

mergeKMapEstimationConfig(PrivacyMetric.KMapEstimationConfig value)

public PrivacyMetric.Builder mergeKMapEstimationConfig(PrivacyMetric.KMapEstimationConfig value)

k-map

.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig k_map_estimation_config = 5;

Parameter
Name Description
value PrivacyMetric.KMapEstimationConfig
Returns
Type Description
PrivacyMetric.Builder

mergeLDiversityConfig(PrivacyMetric.LDiversityConfig value)

public PrivacyMetric.Builder mergeLDiversityConfig(PrivacyMetric.LDiversityConfig value)

l-diversity

.google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig l_diversity_config = 4;

Parameter
Name Description
value PrivacyMetric.LDiversityConfig
Returns
Type Description
PrivacyMetric.Builder

mergeNumericalStatsConfig(PrivacyMetric.NumericalStatsConfig value)

public PrivacyMetric.Builder mergeNumericalStatsConfig(PrivacyMetric.NumericalStatsConfig value)

Numerical stats

.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig numerical_stats_config = 1;

Parameter
Name Description
value PrivacyMetric.NumericalStatsConfig
Returns
Type Description
PrivacyMetric.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrivacyMetric.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PrivacyMetric.Builder
Overrides

setCategoricalStatsConfig(PrivacyMetric.CategoricalStatsConfig value)

public PrivacyMetric.Builder setCategoricalStatsConfig(PrivacyMetric.CategoricalStatsConfig value)

Categorical stats

.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig categorical_stats_config = 2;

Parameter
Name Description
value PrivacyMetric.CategoricalStatsConfig
Returns
Type Description
PrivacyMetric.Builder

setCategoricalStatsConfig(PrivacyMetric.CategoricalStatsConfig.Builder builderForValue)

public PrivacyMetric.Builder setCategoricalStatsConfig(PrivacyMetric.CategoricalStatsConfig.Builder builderForValue)

Categorical stats

.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig categorical_stats_config = 2;

Parameter
Name Description
builderForValue PrivacyMetric.CategoricalStatsConfig.Builder
Returns
Type Description
PrivacyMetric.Builder

setDeltaPresenceEstimationConfig(PrivacyMetric.DeltaPresenceEstimationConfig value)

public PrivacyMetric.Builder setDeltaPresenceEstimationConfig(PrivacyMetric.DeltaPresenceEstimationConfig value)

delta-presence

.google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig delta_presence_estimation_config = 6;

Parameter
Name Description
value PrivacyMetric.DeltaPresenceEstimationConfig
Returns
Type Description
PrivacyMetric.Builder

setDeltaPresenceEstimationConfig(PrivacyMetric.DeltaPresenceEstimationConfig.Builder builderForValue)

public PrivacyMetric.Builder setDeltaPresenceEstimationConfig(PrivacyMetric.DeltaPresenceEstimationConfig.Builder builderForValue)

delta-presence

.google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig delta_presence_estimation_config = 6;

Parameter
Name Description
builderForValue PrivacyMetric.DeltaPresenceEstimationConfig.Builder
Returns
Type Description
PrivacyMetric.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PrivacyMetric.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PrivacyMetric.Builder
Overrides

setKAnonymityConfig(PrivacyMetric.KAnonymityConfig value)

public PrivacyMetric.Builder setKAnonymityConfig(PrivacyMetric.KAnonymityConfig value)

K-anonymity

.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig k_anonymity_config = 3;

Parameter
Name Description
value PrivacyMetric.KAnonymityConfig
Returns
Type Description
PrivacyMetric.Builder

setKAnonymityConfig(PrivacyMetric.KAnonymityConfig.Builder builderForValue)

public PrivacyMetric.Builder setKAnonymityConfig(PrivacyMetric.KAnonymityConfig.Builder builderForValue)

K-anonymity

.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig k_anonymity_config = 3;

Parameter
Name Description
builderForValue PrivacyMetric.KAnonymityConfig.Builder
Returns
Type Description
PrivacyMetric.Builder

setKMapEstimationConfig(PrivacyMetric.KMapEstimationConfig value)

public PrivacyMetric.Builder setKMapEstimationConfig(PrivacyMetric.KMapEstimationConfig value)

k-map

.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig k_map_estimation_config = 5;

Parameter
Name Description
value PrivacyMetric.KMapEstimationConfig
Returns
Type Description
PrivacyMetric.Builder

setKMapEstimationConfig(PrivacyMetric.KMapEstimationConfig.Builder builderForValue)

public PrivacyMetric.Builder setKMapEstimationConfig(PrivacyMetric.KMapEstimationConfig.Builder builderForValue)

k-map

.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig k_map_estimation_config = 5;

Parameter
Name Description
builderForValue PrivacyMetric.KMapEstimationConfig.Builder
Returns
Type Description
PrivacyMetric.Builder

setLDiversityConfig(PrivacyMetric.LDiversityConfig value)

public PrivacyMetric.Builder setLDiversityConfig(PrivacyMetric.LDiversityConfig value)

l-diversity

.google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig l_diversity_config = 4;

Parameter
Name Description
value PrivacyMetric.LDiversityConfig
Returns
Type Description
PrivacyMetric.Builder

setLDiversityConfig(PrivacyMetric.LDiversityConfig.Builder builderForValue)

public PrivacyMetric.Builder setLDiversityConfig(PrivacyMetric.LDiversityConfig.Builder builderForValue)

l-diversity

.google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig l_diversity_config = 4;

Parameter
Name Description
builderForValue PrivacyMetric.LDiversityConfig.Builder
Returns
Type Description
PrivacyMetric.Builder

setNumericalStatsConfig(PrivacyMetric.NumericalStatsConfig value)

public PrivacyMetric.Builder setNumericalStatsConfig(PrivacyMetric.NumericalStatsConfig value)

Numerical stats

.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig numerical_stats_config = 1;

Parameter
Name Description
value PrivacyMetric.NumericalStatsConfig
Returns
Type Description
PrivacyMetric.Builder

setNumericalStatsConfig(PrivacyMetric.NumericalStatsConfig.Builder builderForValue)

public PrivacyMetric.Builder setNumericalStatsConfig(PrivacyMetric.NumericalStatsConfig.Builder builderForValue)

Numerical stats

.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig numerical_stats_config = 1;

Parameter
Name Description
builderForValue PrivacyMetric.NumericalStatsConfig.Builder
Returns
Type Description
PrivacyMetric.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PrivacyMetric.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PrivacyMetric.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PrivacyMetric.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PrivacyMetric.Builder
Overrides