Class BucketingConfig.Bucket.Builder (3.53.0)

public static final class BucketingConfig.Bucket.Builder extends GeneratedMessageV3.Builder<BucketingConfig.Bucket.Builder> implements BucketingConfig.BucketOrBuilder

Bucket is represented as a range, along with replacement values.

Protobuf type google.privacy.dlp.v2.BucketingConfig.Bucket

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BucketingConfig.Bucket build()
Returns
Type Description
BucketingConfig.Bucket

buildPartial()

public BucketingConfig.Bucket buildPartial()
Returns
Type Description
BucketingConfig.Bucket

clear()

public BucketingConfig.Bucket.Builder clear()
Returns
Type Description
BucketingConfig.Bucket.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearMax()

public BucketingConfig.Bucket.Builder clearMax()

Upper bound of the range, exclusive; type must match min.

.google.privacy.dlp.v2.Value max = 2;

Returns
Type Description
BucketingConfig.Bucket.Builder

clearMin()

public BucketingConfig.Bucket.Builder clearMin()

Lower bound of the range, inclusive. Type should be the same as max if used.

.google.privacy.dlp.v2.Value min = 1;

Returns
Type Description
BucketingConfig.Bucket.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReplacementValue()

public BucketingConfig.Bucket.Builder clearReplacementValue()

Required. Replacement value for this bucket.

.google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BucketingConfig.Bucket.Builder

clone()

public BucketingConfig.Bucket.Builder clone()
Returns
Type Description
BucketingConfig.Bucket.Builder
Overrides

getDefaultInstanceForType()

public BucketingConfig.Bucket getDefaultInstanceForType()
Returns
Type Description
BucketingConfig.Bucket

getDescriptorForType()

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

getMax()

public Value getMax()

Upper bound of the range, exclusive; type must match min.

.google.privacy.dlp.v2.Value max = 2;

Returns
Type Description
Value

The max.

getMaxBuilder()

public Value.Builder getMaxBuilder()

Upper bound of the range, exclusive; type must match min.

.google.privacy.dlp.v2.Value max = 2;

Returns
Type Description
Value.Builder

getMaxOrBuilder()

public ValueOrBuilder getMaxOrBuilder()

Upper bound of the range, exclusive; type must match min.

.google.privacy.dlp.v2.Value max = 2;

Returns
Type Description
ValueOrBuilder

getMin()

public Value getMin()

Lower bound of the range, inclusive. Type should be the same as max if used.

.google.privacy.dlp.v2.Value min = 1;

Returns
Type Description
Value

The min.

getMinBuilder()

public Value.Builder getMinBuilder()

Lower bound of the range, inclusive. Type should be the same as max if used.

.google.privacy.dlp.v2.Value min = 1;

Returns
Type Description
Value.Builder

getMinOrBuilder()

public ValueOrBuilder getMinOrBuilder()

Lower bound of the range, inclusive. Type should be the same as max if used.

.google.privacy.dlp.v2.Value min = 1;

Returns
Type Description
ValueOrBuilder

getReplacementValue()

public Value getReplacementValue()

Required. Replacement value for this bucket.

.google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Value

The replacementValue.

getReplacementValueBuilder()

public Value.Builder getReplacementValueBuilder()

Required. Replacement value for this bucket.

.google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Value.Builder

getReplacementValueOrBuilder()

public ValueOrBuilder getReplacementValueOrBuilder()

Required. Replacement value for this bucket.

.google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ValueOrBuilder

hasMax()

public boolean hasMax()

Upper bound of the range, exclusive; type must match min.

.google.privacy.dlp.v2.Value max = 2;

Returns
Type Description
boolean

Whether the max field is set.

hasMin()

public boolean hasMin()

Lower bound of the range, inclusive. Type should be the same as max if used.

.google.privacy.dlp.v2.Value min = 1;

Returns
Type Description
boolean

Whether the min field is set.

hasReplacementValue()

public boolean hasReplacementValue()

Required. Replacement value for this bucket.

.google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the replacementValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BucketingConfig.Bucket other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMax(Value value)

public BucketingConfig.Bucket.Builder mergeMax(Value value)

Upper bound of the range, exclusive; type must match min.

.google.privacy.dlp.v2.Value max = 2;

Parameter
Name Description
value Value
Returns
Type Description
BucketingConfig.Bucket.Builder

mergeMin(Value value)

public BucketingConfig.Bucket.Builder mergeMin(Value value)

Lower bound of the range, inclusive. Type should be the same as max if used.

.google.privacy.dlp.v2.Value min = 1;

Parameter
Name Description
value Value
Returns
Type Description
BucketingConfig.Bucket.Builder

mergeReplacementValue(Value value)

public BucketingConfig.Bucket.Builder mergeReplacementValue(Value value)

Required. Replacement value for this bucket.

.google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Value
Returns
Type Description
BucketingConfig.Bucket.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMax(Value value)

public BucketingConfig.Bucket.Builder setMax(Value value)

Upper bound of the range, exclusive; type must match min.

.google.privacy.dlp.v2.Value max = 2;

Parameter
Name Description
value Value
Returns
Type Description
BucketingConfig.Bucket.Builder

setMax(Value.Builder builderForValue)

public BucketingConfig.Bucket.Builder setMax(Value.Builder builderForValue)

Upper bound of the range, exclusive; type must match min.

.google.privacy.dlp.v2.Value max = 2;

Parameter
Name Description
builderForValue Value.Builder
Returns
Type Description
BucketingConfig.Bucket.Builder

setMin(Value value)

public BucketingConfig.Bucket.Builder setMin(Value value)

Lower bound of the range, inclusive. Type should be the same as max if used.

.google.privacy.dlp.v2.Value min = 1;

Parameter
Name Description
value Value
Returns
Type Description
BucketingConfig.Bucket.Builder

setMin(Value.Builder builderForValue)

public BucketingConfig.Bucket.Builder setMin(Value.Builder builderForValue)

Lower bound of the range, inclusive. Type should be the same as max if used.

.google.privacy.dlp.v2.Value min = 1;

Parameter
Name Description
builderForValue Value.Builder
Returns
Type Description
BucketingConfig.Bucket.Builder

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

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

setReplacementValue(Value value)

public BucketingConfig.Bucket.Builder setReplacementValue(Value value)

Required. Replacement value for this bucket.

.google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Value
Returns
Type Description
BucketingConfig.Bucket.Builder

setReplacementValue(Value.Builder builderForValue)

public BucketingConfig.Bucket.Builder setReplacementValue(Value.Builder builderForValue)

Required. Replacement value for this bucket.

.google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Value.Builder
Returns
Type Description
BucketingConfig.Bucket.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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