Class BucketingConfig.Builder (3.32.0)

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

Static Methods

getDescriptor()

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

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
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.BucketingConfig.Bucket>
Returns
TypeDescription
BucketingConfig.Builder

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
NameDescription
valueBucketingConfig.Bucket
Returns
TypeDescription
BucketingConfig.Builder

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
NameDescription
builderForValueBucketingConfig.Bucket.Builder
Returns
TypeDescription
BucketingConfig.Builder

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
NameDescription
indexint
valueBucketingConfig.Bucket
Returns
TypeDescription
BucketingConfig.Builder

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
NameDescription
indexint
builderForValueBucketingConfig.Bucket.Builder
Returns
TypeDescription
BucketingConfig.Builder

addBucketsBuilder()

public BucketingConfig.Bucket.Builder addBucketsBuilder()

Set of buckets. Ranges must be non-overlapping.

repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;

Returns
TypeDescription
BucketingConfig.Bucket.Builder

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
NameDescription
indexint
Returns
TypeDescription
BucketingConfig.Bucket.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BucketingConfig build()
Returns
TypeDescription
BucketingConfig

buildPartial()

public BucketingConfig buildPartial()
Returns
TypeDescription
BucketingConfig

clear()

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

clearBuckets()

public BucketingConfig.Builder clearBuckets()

Set of buckets. Ranges must be non-overlapping.

repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;

Returns
TypeDescription
BucketingConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public BucketingConfig.Builder clone()
Returns
TypeDescription
BucketingConfig.Builder
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
NameDescription
indexint
Returns
TypeDescription
BucketingConfig.Bucket

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
NameDescription
indexint
Returns
TypeDescription
BucketingConfig.Bucket.Builder

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
TypeDescription
List<Builder>

getBucketsCount()

public int getBucketsCount()

Set of buckets. Ranges must be non-overlapping.

repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;

Returns
TypeDescription
int

getBucketsList()

public List<BucketingConfig.Bucket> getBucketsList()

Set of buckets. Ranges must be non-overlapping.

repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;

Returns
TypeDescription
List<Bucket>

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
NameDescription
indexint
Returns
TypeDescription
BucketingConfig.BucketOrBuilder

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
TypeDescription
List<? extends com.google.privacy.dlp.v2.BucketingConfig.BucketOrBuilder>

getDefaultInstanceForType()

public BucketingConfig getDefaultInstanceForType()
Returns
TypeDescription
BucketingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BucketingConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BucketingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BucketingConfig.Builder
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
NameDescription
indexint
Returns
TypeDescription
BucketingConfig.Builder

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
NameDescription
indexint
valueBucketingConfig.Bucket
Returns
TypeDescription
BucketingConfig.Builder

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
NameDescription
indexint
builderForValueBucketingConfig.Bucket.Builder
Returns
TypeDescription
BucketingConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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