Class PrivacyMetric.LDiversityConfig.Builder (3.39.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.FieldId>
Returns
TypeDescription
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
NameDescription
valueFieldId
Returns
TypeDescription
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
NameDescription
builderForValueFieldId.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueFieldId
Returns
TypeDescription
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
NameDescription
indexint
builderForValueFieldId.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
FieldId.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PrivacyMetric.LDiversityConfig build()
Returns
TypeDescription
PrivacyMetric.LDiversityConfig

buildPartial()

public PrivacyMetric.LDiversityConfig buildPartial()
Returns
TypeDescription
PrivacyMetric.LDiversityConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public PrivacyMetric.LDiversityConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PrivacyMetric.LDiversityConfig.Builder

clone()

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

getDefaultInstanceForType()

public PrivacyMetric.LDiversityConfig getDefaultInstanceForType()
Returns
TypeDescription
PrivacyMetric.LDiversityConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
FieldId

The sensitiveAttribute.

getSensitiveAttributeBuilder()

public FieldId.Builder getSensitiveAttributeBuilder()

Sensitive field for computing the l-value.

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

Returns
TypeDescription
FieldId.Builder

getSensitiveAttributeOrBuilder()

public FieldIdOrBuilder getSensitiveAttributeOrBuilder()

Sensitive field for computing the l-value.

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

Returns
TypeDescription
FieldIdOrBuilder

hasSensitiveAttribute()

public boolean hasSensitiveAttribute()

Sensitive field for computing the l-value.

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

Returns
TypeDescription
boolean

Whether the sensitiveAttribute field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PrivacyMetric.LDiversityConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrivacyMetric.LDiversityConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PrivacyMetric.LDiversityConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PrivacyMetric.LDiversityConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueFieldId
Returns
TypeDescription
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
NameDescription
indexint
builderForValueFieldId.Builder
Returns
TypeDescription
PrivacyMetric.LDiversityConfig.Builder

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

public PrivacyMetric.LDiversityConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueFieldId
Returns
TypeDescription
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
NameDescription
builderForValueFieldId.Builder
Returns
TypeDescription
PrivacyMetric.LDiversityConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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