public static final class BucketingConfig.Builder extends GeneratedMessageV3.Builder<BucketingConfig.Builder> implements BucketingConfigOrBuilder
Generalization function that buckets values based on ranges. The ranges and
replacement values are dynamically provided by the user for custom behavior,
such as 1-30 -> LOW 31-65 -> MEDIUM 66-100 -> HIGH
This can be used on
data of type: number, long, string, timestamp.
If the bound Value
type differs from the type of data being transformed, we
will first attempt converting the type of the data to be transformed to match
the type of the bound before comparing.
See
https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to
learn more.
Protobuf type google.privacy.dlp.v2.BucketingConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllBuckets(Iterable<? extends BucketingConfig.Bucket> values)
public BucketingConfig.Builder addAllBuckets(Iterable<? extends BucketingConfig.Bucket> values)
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.privacy.dlp.v2.BucketingConfig.Bucket>
|
addBuckets(BucketingConfig.Bucket value)
public BucketingConfig.Builder addBuckets(BucketingConfig.Bucket value)
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
addBuckets(BucketingConfig.Bucket.Builder builderForValue)
public BucketingConfig.Builder addBuckets(BucketingConfig.Bucket.Builder builderForValue)
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
addBuckets(int index, BucketingConfig.Bucket value)
public BucketingConfig.Builder addBuckets(int index, BucketingConfig.Bucket value)
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
addBuckets(int index, BucketingConfig.Bucket.Builder builderForValue)
public BucketingConfig.Builder addBuckets(int index, BucketingConfig.Bucket.Builder builderForValue)
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
addBucketsBuilder()
public BucketingConfig.Bucket.Builder addBucketsBuilder()
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
addBucketsBuilder(int index)
public BucketingConfig.Bucket.Builder addBucketsBuilder(int index)
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BucketingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public BucketingConfig build()
buildPartial()
public BucketingConfig buildPartial()
clear()
public BucketingConfig.Builder clear()
Overrides
clearBuckets()
public BucketingConfig.Builder clearBuckets()
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
clearField(Descriptors.FieldDescriptor field)
public BucketingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BucketingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public BucketingConfig.Builder clone()
Overrides
getBuckets(int index)
public BucketingConfig.Bucket getBuckets(int index)
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
Parameter |
---|
Name | Description |
index | int
|
getBucketsBuilder(int index)
public BucketingConfig.Bucket.Builder getBucketsBuilder(int index)
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
Parameter |
---|
Name | Description |
index | int
|
getBucketsBuilderList()
public List<BucketingConfig.Bucket.Builder> getBucketsBuilderList()
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
getBucketsCount()
public int getBucketsCount()
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
Returns |
---|
Type | Description |
int | |
getBucketsList()
public List<BucketingConfig.Bucket> getBucketsList()
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
getBucketsOrBuilder(int index)
public BucketingConfig.BucketOrBuilder getBucketsOrBuilder(int index)
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
Parameter |
---|
Name | Description |
index | int
|
getBucketsOrBuilderList()
public List<? extends BucketingConfig.BucketOrBuilder> getBucketsOrBuilderList()
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
Returns |
---|
Type | Description |
List<? extends com.google.privacy.dlp.v2.BucketingConfig.BucketOrBuilder> | |
getDefaultInstanceForType()
public BucketingConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(BucketingConfig other)
public BucketingConfig.Builder mergeFrom(BucketingConfig other)
public BucketingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BucketingConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BucketingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeBuckets(int index)
public BucketingConfig.Builder removeBuckets(int index)
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
Parameter |
---|
Name | Description |
index | int
|
setBuckets(int index, BucketingConfig.Bucket value)
public BucketingConfig.Builder setBuckets(int index, BucketingConfig.Bucket value)
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
setBuckets(int index, BucketingConfig.Bucket.Builder builderForValue)
public BucketingConfig.Builder setBuckets(int index, BucketingConfig.Bucket.Builder builderForValue)
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public BucketingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BucketingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BucketingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides