Class PrivacyMetric.Builder (3.25.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PrivacyMetric.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PrivacyMetric.Builder
Overrides

build()

public PrivacyMetric build()
Returns
TypeDescription
PrivacyMetric

buildPartial()

public PrivacyMetric buildPartial()
Returns
TypeDescription
PrivacyMetric

clear()

public PrivacyMetric.Builder clear()
Returns
TypeDescription
PrivacyMetric.Builder
Overrides

clearCategoricalStatsConfig()

public PrivacyMetric.Builder clearCategoricalStatsConfig()

Categorical stats

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

Returns
TypeDescription
PrivacyMetric.Builder

clearDeltaPresenceEstimationConfig()

public PrivacyMetric.Builder clearDeltaPresenceEstimationConfig()

delta-presence

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

Returns
TypeDescription
PrivacyMetric.Builder

clearField(Descriptors.FieldDescriptor field)

public PrivacyMetric.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PrivacyMetric.Builder
Overrides

clearKAnonymityConfig()

public PrivacyMetric.Builder clearKAnonymityConfig()

K-anonymity

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

Returns
TypeDescription
PrivacyMetric.Builder

clearKMapEstimationConfig()

public PrivacyMetric.Builder clearKMapEstimationConfig()

k-map

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

Returns
TypeDescription
PrivacyMetric.Builder

clearLDiversityConfig()

public PrivacyMetric.Builder clearLDiversityConfig()

l-diversity

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

Returns
TypeDescription
PrivacyMetric.Builder

clearNumericalStatsConfig()

public PrivacyMetric.Builder clearNumericalStatsConfig()

Numerical stats

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

Returns
TypeDescription
PrivacyMetric.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public PrivacyMetric.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PrivacyMetric.Builder
Overrides

clearType()

public PrivacyMetric.Builder clearType()
Returns
TypeDescription
PrivacyMetric.Builder

clone()

public PrivacyMetric.Builder clone()
Returns
TypeDescription
PrivacyMetric.Builder
Overrides

getCategoricalStatsConfig()

public PrivacyMetric.CategoricalStatsConfig getCategoricalStatsConfig()

Categorical stats

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

Returns
TypeDescription
PrivacyMetric.CategoricalStatsConfig

The categoricalStatsConfig.

getCategoricalStatsConfigBuilder()

public PrivacyMetric.CategoricalStatsConfig.Builder getCategoricalStatsConfigBuilder()

Categorical stats

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

Returns
TypeDescription
PrivacyMetric.CategoricalStatsConfig.Builder

getCategoricalStatsConfigOrBuilder()

public PrivacyMetric.CategoricalStatsConfigOrBuilder getCategoricalStatsConfigOrBuilder()

Categorical stats

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

Returns
TypeDescription
PrivacyMetric.CategoricalStatsConfigOrBuilder

getDefaultInstanceForType()

public PrivacyMetric getDefaultInstanceForType()
Returns
TypeDescription
PrivacyMetric

getDeltaPresenceEstimationConfig()

public PrivacyMetric.DeltaPresenceEstimationConfig getDeltaPresenceEstimationConfig()

delta-presence

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

Returns
TypeDescription
PrivacyMetric.DeltaPresenceEstimationConfig

The deltaPresenceEstimationConfig.

getDeltaPresenceEstimationConfigBuilder()

public PrivacyMetric.DeltaPresenceEstimationConfig.Builder getDeltaPresenceEstimationConfigBuilder()

delta-presence

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

Returns
TypeDescription
PrivacyMetric.DeltaPresenceEstimationConfig.Builder

getDeltaPresenceEstimationConfigOrBuilder()

public PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder getDeltaPresenceEstimationConfigOrBuilder()

delta-presence

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

Returns
TypeDescription
PrivacyMetric.DeltaPresenceEstimationConfigOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKAnonymityConfig()

public PrivacyMetric.KAnonymityConfig getKAnonymityConfig()

K-anonymity

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

Returns
TypeDescription
PrivacyMetric.KAnonymityConfig

The kAnonymityConfig.

getKAnonymityConfigBuilder()

public PrivacyMetric.KAnonymityConfig.Builder getKAnonymityConfigBuilder()

K-anonymity

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

Returns
TypeDescription
PrivacyMetric.KAnonymityConfig.Builder

getKAnonymityConfigOrBuilder()

public PrivacyMetric.KAnonymityConfigOrBuilder getKAnonymityConfigOrBuilder()

K-anonymity

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

Returns
TypeDescription
PrivacyMetric.KAnonymityConfigOrBuilder

getKMapEstimationConfig()

public PrivacyMetric.KMapEstimationConfig getKMapEstimationConfig()

k-map

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

Returns
TypeDescription
PrivacyMetric.KMapEstimationConfig

The kMapEstimationConfig.

getKMapEstimationConfigBuilder()

public PrivacyMetric.KMapEstimationConfig.Builder getKMapEstimationConfigBuilder()

k-map

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

Returns
TypeDescription
PrivacyMetric.KMapEstimationConfig.Builder

getKMapEstimationConfigOrBuilder()

public PrivacyMetric.KMapEstimationConfigOrBuilder getKMapEstimationConfigOrBuilder()

k-map

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

Returns
TypeDescription
PrivacyMetric.KMapEstimationConfigOrBuilder

getLDiversityConfig()

public PrivacyMetric.LDiversityConfig getLDiversityConfig()

l-diversity

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

Returns
TypeDescription
PrivacyMetric.LDiversityConfig

The lDiversityConfig.

getLDiversityConfigBuilder()

public PrivacyMetric.LDiversityConfig.Builder getLDiversityConfigBuilder()

l-diversity

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

Returns
TypeDescription
PrivacyMetric.LDiversityConfig.Builder

getLDiversityConfigOrBuilder()

public PrivacyMetric.LDiversityConfigOrBuilder getLDiversityConfigOrBuilder()

l-diversity

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

Returns
TypeDescription
PrivacyMetric.LDiversityConfigOrBuilder

getNumericalStatsConfig()

public PrivacyMetric.NumericalStatsConfig getNumericalStatsConfig()

Numerical stats

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

Returns
TypeDescription
PrivacyMetric.NumericalStatsConfig

The numericalStatsConfig.

getNumericalStatsConfigBuilder()

public PrivacyMetric.NumericalStatsConfig.Builder getNumericalStatsConfigBuilder()

Numerical stats

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

Returns
TypeDescription
PrivacyMetric.NumericalStatsConfig.Builder

getNumericalStatsConfigOrBuilder()

public PrivacyMetric.NumericalStatsConfigOrBuilder getNumericalStatsConfigOrBuilder()

Numerical stats

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

Returns
TypeDescription
PrivacyMetric.NumericalStatsConfigOrBuilder

getTypeCase()

public PrivacyMetric.TypeCase getTypeCase()
Returns
TypeDescription
PrivacyMetric.TypeCase

hasCategoricalStatsConfig()

public boolean hasCategoricalStatsConfig()

Categorical stats

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the deltaPresenceEstimationConfig field is set.

hasKAnonymityConfig()

public boolean hasKAnonymityConfig()

K-anonymity

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the kMapEstimationConfig field is set.

hasLDiversityConfig()

public boolean hasLDiversityConfig()

l-diversity

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

Returns
TypeDescription
boolean

Whether the lDiversityConfig field is set.

hasNumericalStatsConfig()

public boolean hasNumericalStatsConfig()

Numerical stats

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

Returns
TypeDescription
boolean

Whether the numericalStatsConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valuePrivacyMetric.CategoricalStatsConfig
Returns
TypeDescription
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
NameDescription
valuePrivacyMetric.DeltaPresenceEstimationConfig
Returns
TypeDescription
PrivacyMetric.Builder

mergeFrom(PrivacyMetric other)

public PrivacyMetric.Builder mergeFrom(PrivacyMetric other)
Parameter
NameDescription
otherPrivacyMetric
Returns
TypeDescription
PrivacyMetric.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PrivacyMetric.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivacyMetric.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PrivacyMetric.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePrivacyMetric.KAnonymityConfig
Returns
TypeDescription
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
NameDescription
valuePrivacyMetric.KMapEstimationConfig
Returns
TypeDescription
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
NameDescription
valuePrivacyMetric.LDiversityConfig
Returns
TypeDescription
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
NameDescription
valuePrivacyMetric.NumericalStatsConfig
Returns
TypeDescription
PrivacyMetric.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrivacyMetric.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuePrivacyMetric.CategoricalStatsConfig
Returns
TypeDescription
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
NameDescription
builderForValuePrivacyMetric.CategoricalStatsConfig.Builder
Returns
TypeDescription
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
NameDescription
valuePrivacyMetric.DeltaPresenceEstimationConfig
Returns
TypeDescription
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
NameDescription
builderForValuePrivacyMetric.DeltaPresenceEstimationConfig.Builder
Returns
TypeDescription
PrivacyMetric.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PrivacyMetric.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuePrivacyMetric.KAnonymityConfig
Returns
TypeDescription
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
NameDescription
builderForValuePrivacyMetric.KAnonymityConfig.Builder
Returns
TypeDescription
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
NameDescription
valuePrivacyMetric.KMapEstimationConfig
Returns
TypeDescription
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
NameDescription
builderForValuePrivacyMetric.KMapEstimationConfig.Builder
Returns
TypeDescription
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
NameDescription
valuePrivacyMetric.LDiversityConfig
Returns
TypeDescription
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
NameDescription
builderForValuePrivacyMetric.LDiversityConfig.Builder
Returns
TypeDescription
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
NameDescription
valuePrivacyMetric.NumericalStatsConfig
Returns
TypeDescription
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
NameDescription
builderForValuePrivacyMetric.NumericalStatsConfig.Builder
Returns
TypeDescription
PrivacyMetric.Builder

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

public PrivacyMetric.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PrivacyMetric.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PrivacyMetric.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PrivacyMetric.Builder
Overrides