Class SensitivityScore.Builder (3.49.0)

public static final class SensitivityScore.Builder extends GeneratedMessageV3.Builder<SensitivityScore.Builder> implements SensitivityScoreOrBuilder

Score is calculated from of all elements in the data profile. A higher level means the data is more sensitive.

Protobuf type google.privacy.dlp.v2.SensitivityScore

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SensitivityScore build()
Returns
Type Description
SensitivityScore

buildPartial()

public SensitivityScore buildPartial()
Returns
Type Description
SensitivityScore

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearScore()

public SensitivityScore.Builder clearScore()

The sensitivity score applied to the resource.

.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;

Returns
Type Description
SensitivityScore.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SensitivityScore getDefaultInstanceForType()
Returns
Type Description
SensitivityScore

getDescriptorForType()

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

getScore()

public SensitivityScore.SensitivityScoreLevel getScore()

The sensitivity score applied to the resource.

.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;

Returns
Type Description
SensitivityScore.SensitivityScoreLevel

The score.

getScoreValue()

public int getScoreValue()

The sensitivity score applied to the resource.

.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;

Returns
Type Description
int

The enum numeric value on the wire for score.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SensitivityScore other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setScore(SensitivityScore.SensitivityScoreLevel value)

public SensitivityScore.Builder setScore(SensitivityScore.SensitivityScoreLevel value)

The sensitivity score applied to the resource.

.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;

Parameter
Name Description
value SensitivityScore.SensitivityScoreLevel

The score to set.

Returns
Type Description
SensitivityScore.Builder

This builder for chaining.

setScoreValue(int value)

public SensitivityScore.Builder setScoreValue(int value)

The sensitivity score applied to the resource.

.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for score to set.

Returns
Type Description
SensitivityScore.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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