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/dlp/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.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()
Returns
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>
|
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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;
Parameters
Returns
addBucketsBuilder()
public BucketingConfig.Bucket.Builder addBucketsBuilder()
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BucketingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public BucketingConfig build()
Returns
buildPartial()
public BucketingConfig buildPartial()
Returns
clear()
public BucketingConfig.Builder clear()
Returns
Overrides
clearBuckets()
public BucketingConfig.Builder clearBuckets()
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public BucketingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BucketingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public BucketingConfig.Builder clone()
Returns
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
Returns
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
Returns
getBucketsBuilderList()
public List<BucketingConfig.Bucket.Builder> getBucketsBuilderList()
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
Returns
getBucketsCount()
public int getBucketsCount()
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
Returns
getBucketsList()
public List<BucketingConfig.Bucket> getBucketsList()
Set of buckets. Ranges must be non-overlapping.
repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
Returns
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
Returns
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()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(BucketingConfig other)
public BucketingConfig.Builder mergeFrom(BucketingConfig other)
Parameter
Returns
public BucketingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BucketingConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BucketingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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;
Parameters
Returns
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;
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public BucketingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BucketingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BucketingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides