Class DataProfilePubSubCondition.PubSubCondition.Builder (3.32.0)

public static final class DataProfilePubSubCondition.PubSubCondition.Builder extends GeneratedMessageV3.Builder<DataProfilePubSubCondition.PubSubCondition.Builder> implements DataProfilePubSubCondition.PubSubConditionOrBuilder

A condition consisting of a value.

Protobuf type google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataProfilePubSubCondition.PubSubCondition build()
Returns
TypeDescription
DataProfilePubSubCondition.PubSubCondition

buildPartial()

public DataProfilePubSubCondition.PubSubCondition buildPartial()
Returns
TypeDescription
DataProfilePubSubCondition.PubSubCondition

clear()

public DataProfilePubSubCondition.PubSubCondition.Builder clear()
Returns
TypeDescription
DataProfilePubSubCondition.PubSubCondition.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearMinimumRiskScore()

public DataProfilePubSubCondition.PubSubCondition.Builder clearMinimumRiskScore()

The minimum data risk score that triggers the condition.

.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;

Returns
TypeDescription
DataProfilePubSubCondition.PubSubCondition.Builder

This builder for chaining.

clearMinimumSensitivityScore()

public DataProfilePubSubCondition.PubSubCondition.Builder clearMinimumSensitivityScore()

The minimum sensitivity level that triggers the condition.

.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;

Returns
TypeDescription
DataProfilePubSubCondition.PubSubCondition.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValue()

public DataProfilePubSubCondition.PubSubCondition.Builder clearValue()
Returns
TypeDescription
DataProfilePubSubCondition.PubSubCondition.Builder

clone()

public DataProfilePubSubCondition.PubSubCondition.Builder clone()
Returns
TypeDescription
DataProfilePubSubCondition.PubSubCondition.Builder
Overrides

getDefaultInstanceForType()

public DataProfilePubSubCondition.PubSubCondition getDefaultInstanceForType()
Returns
TypeDescription
DataProfilePubSubCondition.PubSubCondition

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMinimumRiskScore()

public DataProfilePubSubCondition.ProfileScoreBucket getMinimumRiskScore()

The minimum data risk score that triggers the condition.

.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;

Returns
TypeDescription
DataProfilePubSubCondition.ProfileScoreBucket

The minimumRiskScore.

getMinimumRiskScoreValue()

public int getMinimumRiskScoreValue()

The minimum data risk score that triggers the condition.

.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for minimumRiskScore.

getMinimumSensitivityScore()

public DataProfilePubSubCondition.ProfileScoreBucket getMinimumSensitivityScore()

The minimum sensitivity level that triggers the condition.

.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;

Returns
TypeDescription
DataProfilePubSubCondition.ProfileScoreBucket

The minimumSensitivityScore.

getMinimumSensitivityScoreValue()

public int getMinimumSensitivityScoreValue()

The minimum sensitivity level that triggers the condition.

.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for minimumSensitivityScore.

getValueCase()

public DataProfilePubSubCondition.PubSubCondition.ValueCase getValueCase()
Returns
TypeDescription
DataProfilePubSubCondition.PubSubCondition.ValueCase

hasMinimumRiskScore()

public boolean hasMinimumRiskScore()

The minimum data risk score that triggers the condition.

.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;

Returns
TypeDescription
boolean

Whether the minimumRiskScore field is set.

hasMinimumSensitivityScore()

public boolean hasMinimumSensitivityScore()

The minimum sensitivity level that triggers the condition.

.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;

Returns
TypeDescription
boolean

Whether the minimumSensitivityScore field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DataProfilePubSubCondition.PubSubCondition other)

public DataProfilePubSubCondition.PubSubCondition.Builder mergeFrom(DataProfilePubSubCondition.PubSubCondition other)
Parameter
NameDescription
otherDataProfilePubSubCondition.PubSubCondition
Returns
TypeDescription
DataProfilePubSubCondition.PubSubCondition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMinimumRiskScore(DataProfilePubSubCondition.ProfileScoreBucket value)

public DataProfilePubSubCondition.PubSubCondition.Builder setMinimumRiskScore(DataProfilePubSubCondition.ProfileScoreBucket value)

The minimum data risk score that triggers the condition.

.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;

Parameter
NameDescription
valueDataProfilePubSubCondition.ProfileScoreBucket

The minimumRiskScore to set.

Returns
TypeDescription
DataProfilePubSubCondition.PubSubCondition.Builder

This builder for chaining.

setMinimumRiskScoreValue(int value)

public DataProfilePubSubCondition.PubSubCondition.Builder setMinimumRiskScoreValue(int value)

The minimum data risk score that triggers the condition.

.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
DataProfilePubSubCondition.PubSubCondition.Builder

This builder for chaining.

setMinimumSensitivityScore(DataProfilePubSubCondition.ProfileScoreBucket value)

public DataProfilePubSubCondition.PubSubCondition.Builder setMinimumSensitivityScore(DataProfilePubSubCondition.ProfileScoreBucket value)

The minimum sensitivity level that triggers the condition.

.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;

Parameter
NameDescription
valueDataProfilePubSubCondition.ProfileScoreBucket

The minimumSensitivityScore to set.

Returns
TypeDescription
DataProfilePubSubCondition.PubSubCondition.Builder

This builder for chaining.

setMinimumSensitivityScoreValue(int value)

public DataProfilePubSubCondition.PubSubCondition.Builder setMinimumSensitivityScoreValue(int value)

The minimum sensitivity level that triggers the condition.

.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
DataProfilePubSubCondition.PubSubCondition.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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