public static final class PrivacyMetric.LDiversityConfig.Builder extends GeneratedMessageV3.Builder<PrivacyMetric.LDiversityConfig.Builder> implements PrivacyMetric.LDiversityConfigOrBuilder
l-diversity metric, used for analysis of reidentification risk.
Protobuf type google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllQuasiIds(Iterable<? extends FieldId> values)
public PrivacyMetric.LDiversityConfig.Builder addAllQuasiIds(Iterable<? extends FieldId> values)
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.privacy.dlp.v2.FieldId>
|
Returns
addQuasiIds(FieldId value)
public PrivacyMetric.LDiversityConfig.Builder addQuasiIds(FieldId value)
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Parameter
Returns
addQuasiIds(FieldId.Builder builderForValue)
public PrivacyMetric.LDiversityConfig.Builder addQuasiIds(FieldId.Builder builderForValue)
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Parameter
Returns
addQuasiIds(int index, FieldId value)
public PrivacyMetric.LDiversityConfig.Builder addQuasiIds(int index, FieldId value)
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Parameters
Returns
addQuasiIds(int index, FieldId.Builder builderForValue)
public PrivacyMetric.LDiversityConfig.Builder addQuasiIds(int index, FieldId.Builder builderForValue)
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Parameters
Returns
addQuasiIdsBuilder()
public FieldId.Builder addQuasiIdsBuilder()
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Returns
addQuasiIdsBuilder(int index)
public FieldId.Builder addQuasiIdsBuilder(int index)
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PrivacyMetric.LDiversityConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PrivacyMetric.LDiversityConfig build()
Returns
buildPartial()
public PrivacyMetric.LDiversityConfig buildPartial()
Returns
clear()
public PrivacyMetric.LDiversityConfig.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public PrivacyMetric.LDiversityConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PrivacyMetric.LDiversityConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearQuasiIds()
public PrivacyMetric.LDiversityConfig.Builder clearQuasiIds()
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Returns
clearSensitiveAttribute()
public PrivacyMetric.LDiversityConfig.Builder clearSensitiveAttribute()
Sensitive field for computing the l-value.
.google.privacy.dlp.v2.FieldId sensitive_attribute = 2;
Returns
clone()
public PrivacyMetric.LDiversityConfig.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public PrivacyMetric.LDiversityConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getQuasiIds(int index)
public FieldId getQuasiIds(int index)
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Parameter
Returns
getQuasiIdsBuilder(int index)
public FieldId.Builder getQuasiIdsBuilder(int index)
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Parameter
Returns
getQuasiIdsBuilderList()
public List<FieldId.Builder> getQuasiIdsBuilderList()
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Returns
getQuasiIdsCount()
public int getQuasiIdsCount()
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Returns
getQuasiIdsList()
public List<FieldId> getQuasiIdsList()
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Returns
getQuasiIdsOrBuilder(int index)
public FieldIdOrBuilder getQuasiIdsOrBuilder(int index)
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Parameter
Returns
getQuasiIdsOrBuilderList()
public List<? extends FieldIdOrBuilder> getQuasiIdsOrBuilderList()
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Returns
Type | Description |
List<? extends com.google.privacy.dlp.v2.FieldIdOrBuilder> | |
getSensitiveAttribute()
public FieldId getSensitiveAttribute()
Sensitive field for computing the l-value.
.google.privacy.dlp.v2.FieldId sensitive_attribute = 2;
Returns
Type | Description |
FieldId | The sensitiveAttribute.
|
getSensitiveAttributeBuilder()
public FieldId.Builder getSensitiveAttributeBuilder()
Sensitive field for computing the l-value.
.google.privacy.dlp.v2.FieldId sensitive_attribute = 2;
Returns
getSensitiveAttributeOrBuilder()
public FieldIdOrBuilder getSensitiveAttributeOrBuilder()
Sensitive field for computing the l-value.
.google.privacy.dlp.v2.FieldId sensitive_attribute = 2;
Returns
hasSensitiveAttribute()
public boolean hasSensitiveAttribute()
Sensitive field for computing the l-value.
.google.privacy.dlp.v2.FieldId sensitive_attribute = 2;
Returns
Type | Description |
boolean | Whether the sensitiveAttribute field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(PrivacyMetric.LDiversityConfig other)
public PrivacyMetric.LDiversityConfig.Builder mergeFrom(PrivacyMetric.LDiversityConfig other)
Parameter
Returns
public PrivacyMetric.LDiversityConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PrivacyMetric.LDiversityConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeSensitiveAttribute(FieldId value)
public PrivacyMetric.LDiversityConfig.Builder mergeSensitiveAttribute(FieldId value)
Sensitive field for computing the l-value.
.google.privacy.dlp.v2.FieldId sensitive_attribute = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PrivacyMetric.LDiversityConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeQuasiIds(int index)
public PrivacyMetric.LDiversityConfig.Builder removeQuasiIds(int index)
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public PrivacyMetric.LDiversityConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setQuasiIds(int index, FieldId value)
public PrivacyMetric.LDiversityConfig.Builder setQuasiIds(int index, FieldId value)
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Parameters
Returns
setQuasiIds(int index, FieldId.Builder builderForValue)
public PrivacyMetric.LDiversityConfig.Builder setQuasiIds(int index, FieldId.Builder builderForValue)
Set of quasi-identifiers indicating how equivalence classes are
defined for the l-diversity computation. When multiple fields are
specified, they are considered a single composite key.
repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PrivacyMetric.LDiversityConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSensitiveAttribute(FieldId value)
public PrivacyMetric.LDiversityConfig.Builder setSensitiveAttribute(FieldId value)
Sensitive field for computing the l-value.
.google.privacy.dlp.v2.FieldId sensitive_attribute = 2;
Parameter
Returns
setSensitiveAttribute(FieldId.Builder builderForValue)
public PrivacyMetric.LDiversityConfig.Builder setSensitiveAttribute(FieldId.Builder builderForValue)
Sensitive field for computing the l-value.
.google.privacy.dlp.v2.FieldId sensitive_attribute = 2;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final PrivacyMetric.LDiversityConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides