Class DataRiskLevel.Builder (3.45.0)

public static final class DataRiskLevel.Builder extends GeneratedMessageV3.Builder<DataRiskLevel.Builder> implements DataRiskLevelOrBuilder

Score is a summary of all elements in the data profile. A higher number means more risk.

Protobuf type google.privacy.dlp.v2.DataRiskLevel

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataRiskLevel build()
Returns
TypeDescription
DataRiskLevel

buildPartial()

public DataRiskLevel buildPartial()
Returns
TypeDescription
DataRiskLevel

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearScore()

public DataRiskLevel.Builder clearScore()

The score applied to the resource.

.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1;

Returns
TypeDescription
DataRiskLevel.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DataRiskLevel getDefaultInstanceForType()
Returns
TypeDescription
DataRiskLevel

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getScore()

public DataRiskLevel.DataRiskLevelScore getScore()

The score applied to the resource.

.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1;

Returns
TypeDescription
DataRiskLevel.DataRiskLevelScore

The score.

getScoreValue()

public int getScoreValue()

The score applied to the resource.

.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore 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(DataRiskLevel other)

public DataRiskLevel.Builder mergeFrom(DataRiskLevel other)
Parameter
NameDescription
otherDataRiskLevel
Returns
TypeDescription
DataRiskLevel.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public DataRiskLevel.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DataRiskLevel.Builder
Overrides

setScore(DataRiskLevel.DataRiskLevelScore value)

public DataRiskLevel.Builder setScore(DataRiskLevel.DataRiskLevelScore value)

The score applied to the resource.

.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1;

Parameter
NameDescription
valueDataRiskLevel.DataRiskLevelScore

The score to set.

Returns
TypeDescription
DataRiskLevel.Builder

This builder for chaining.

setScoreValue(int value)

public DataRiskLevel.Builder setScoreValue(int value)

The score applied to the resource.

.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
DataRiskLevel.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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