Class PrivacyMetric.LDiversityConfig.Builder (3.51.0)

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
Type Description
Descriptor

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
Type Description
PrivacyMetric.LDiversityConfig.Builder

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
Name Description
value FieldId
Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder

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
Name Description
builderForValue FieldId.Builder
Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder

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
Name Description
index int
value FieldId
Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder

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
Name Description
index int
builderForValue FieldId.Builder
Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder

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
Type Description
FieldId.Builder

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
Name Description
index int
Returns
Type Description
FieldId.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PrivacyMetric.LDiversityConfig build()
Returns
Type Description
PrivacyMetric.LDiversityConfig

buildPartial()

public PrivacyMetric.LDiversityConfig buildPartial()
Returns
Type Description
PrivacyMetric.LDiversityConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public PrivacyMetric.LDiversityConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder
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
Type Description
PrivacyMetric.LDiversityConfig.Builder

clearSensitiveAttribute()

public PrivacyMetric.LDiversityConfig.Builder clearSensitiveAttribute()

Sensitive field for computing the l-value.

.google.privacy.dlp.v2.FieldId sensitive_attribute = 2;

Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder

clone()

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

getDefaultInstanceForType()

public PrivacyMetric.LDiversityConfig getDefaultInstanceForType()
Returns
Type Description
PrivacyMetric.LDiversityConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Name Description
index int
Returns
Type Description
FieldId

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
Name Description
index int
Returns
Type Description
FieldId.Builder

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
Type Description
List<Builder>

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
Type Description
int

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
Type Description
List<FieldId>

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
Name Description
index int
Returns
Type Description
FieldIdOrBuilder

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
Type Description
FieldId.Builder

getSensitiveAttributeOrBuilder()

public FieldIdOrBuilder getSensitiveAttributeOrBuilder()

Sensitive field for computing the l-value.

.google.privacy.dlp.v2.FieldId sensitive_attribute = 2;

Returns
Type Description
FieldIdOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PrivacyMetric.LDiversityConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PrivacyMetric.LDiversityConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder
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
Name Description
value FieldId
Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrivacyMetric.LDiversityConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder
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
Name Description
index int
Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PrivacyMetric.LDiversityConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder
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
Name Description
index int
value FieldId
Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder

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
Name Description
index int
builderForValue FieldId.Builder
Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder

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

public PrivacyMetric.LDiversityConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder
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
Name Description
value FieldId
Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder

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
Name Description
builderForValue FieldId.Builder
Returns
Type Description
PrivacyMetric.LDiversityConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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