Class BucketingConfig.Bucket.Builder (3.3.2)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BucketingConfig.Bucket build()
Returns
TypeDescription
BucketingConfig.Bucket

buildPartial()

public BucketingConfig.Bucket buildPartial()
Returns
TypeDescription
BucketingConfig.Bucket

clear()

public BucketingConfig.Bucket.Builder clear()
Returns
TypeDescription
BucketingConfig.Bucket.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BucketingConfig.Bucket.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
BucketingConfig.Bucket.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BucketingConfig.Bucket.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
BucketingConfig.Bucket.Builder

clone()

public BucketingConfig.Bucket.Builder clone()
Returns
TypeDescription
BucketingConfig.Bucket.Builder
Overrides

getDefaultInstanceForType()

public BucketingConfig.Bucket getDefaultInstanceForType()
Returns
TypeDescription
BucketingConfig.Bucket

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMax()

public Value getMax()

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

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

Returns
TypeDescription
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
TypeDescription
Value.Builder

getMaxOrBuilder()

public ValueOrBuilder getMaxOrBuilder()

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ValueOrBuilder

hasMax()

public boolean hasMax()

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the replacementValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BucketingConfig.Bucket other)

public BucketingConfig.Bucket.Builder mergeFrom(BucketingConfig.Bucket other)
Parameter
NameDescription
otherBucketingConfig.Bucket
Returns
TypeDescription
BucketingConfig.Bucket.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public BucketingConfig.Bucket.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueValue
Returns
TypeDescription
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
NameDescription
valueValue
Returns
TypeDescription
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
NameDescription
valueValue
Returns
TypeDescription
BucketingConfig.Bucket.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public BucketingConfig.Bucket.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueValue
Returns
TypeDescription
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
NameDescription
builderForValueValue.Builder
Returns
TypeDescription
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
NameDescription
valueValue
Returns
TypeDescription
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
NameDescription
builderForValueValue.Builder
Returns
TypeDescription
BucketingConfig.Bucket.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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