Class SensitivityScore.Builder (3.45.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SensitivityScore build()
Returns
TypeDescription
SensitivityScore

buildPartial()

public SensitivityScore buildPartial()
Returns
TypeDescription
SensitivityScore

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearScore()

public SensitivityScore.Builder clearScore()

The sensitivity score applied to the resource.

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

Returns
TypeDescription
SensitivityScore.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SensitivityScore getDefaultInstanceForType()
Returns
TypeDescription
SensitivityScore

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getScore()

public SensitivityScore.SensitivityScoreLevel getScore()

The sensitivity score applied to the resource.

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

Returns
TypeDescription
SensitivityScore.SensitivityScoreLevel

The score.

getScoreValue()

public int getScoreValue()

The sensitivity score applied to the resource.

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

Returns
TypeDescription
int

The enum numeric value on the wire for score.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SensitivityScore other)

public SensitivityScore.Builder mergeFrom(SensitivityScore other)
Parameter
NameDescription
otherSensitivityScore
Returns
TypeDescription
SensitivityScore.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SensitivityScore.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SensitivityScore.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SensitivityScore.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SensitivityScore.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

The score to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
SensitivityScore.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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