public static final class FixedSizeBucketingConfig.Builder extends GeneratedMessageV3.Builder<FixedSizeBucketingConfig.Builder> implements FixedSizeBucketingConfigOrBuilder
Buckets values based on fixed size ranges. The Bucketing transformation can provide all of this functionality, but requires more configuration. This message is provided as a convenience to the user for simple bucketing strategies. The transformed value will be a hyphenated string of <lower_bound>-<upper_bound>, i.e if lower_bound = 10 and upper_bound = 20 all values that are within this bucket will be replaced with "10-20". This can be used on data of type: double, long. 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.Protobuf type
google.privacy.dlp.v2.FixedSizeBucketingConfig
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<FixedSizeBucketingConfig.Builder>
public FixedSizeBucketingConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<FixedSizeBucketingConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<FixedSizeBucketingConfig.Builder>
public FixedSizeBucketingConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public FixedSizeBucketingConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public FixedSizeBucketingConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public FixedSizeBucketingConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<FixedSizeBucketingConfig.Builder>
public FixedSizeBucketingConfig.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<FixedSizeBucketingConfig.Builder>
public FixedSizeBucketingConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<FixedSizeBucketingConfig.Builder>
public FixedSizeBucketingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<FixedSizeBucketingConfig.Builder>
public FixedSizeBucketingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<FixedSizeBucketingConfig.Builder>
public FixedSizeBucketingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<FixedSizeBucketingConfig.Builder>
public FixedSizeBucketingConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<FixedSizeBucketingConfig.Builder>
public FixedSizeBucketingConfig.Builder mergeFrom(FixedSizeBucketingConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<FixedSizeBucketingConfig.Builder>
public FixedSizeBucketingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<FixedSizeBucketingConfig.Builder>
java.io.IOException
public boolean hasLowerBound()
Lower bound value of buckets. All values less than `lower_bound` are grouped together into a single bucket; for example if `lower_bound` = 10, then all values less than 10 are replaced with the value “-10”. [Required].
.google.privacy.dlp.v2.Value lower_bound = 1;
hasLowerBound
in interface FixedSizeBucketingConfigOrBuilder
public Value getLowerBound()
Lower bound value of buckets. All values less than `lower_bound` are grouped together into a single bucket; for example if `lower_bound` = 10, then all values less than 10 are replaced with the value “-10”. [Required].
.google.privacy.dlp.v2.Value lower_bound = 1;
getLowerBound
in interface FixedSizeBucketingConfigOrBuilder
public FixedSizeBucketingConfig.Builder setLowerBound(Value value)
Lower bound value of buckets. All values less than `lower_bound` are grouped together into a single bucket; for example if `lower_bound` = 10, then all values less than 10 are replaced with the value “-10”. [Required].
.google.privacy.dlp.v2.Value lower_bound = 1;
public FixedSizeBucketingConfig.Builder setLowerBound(Value.Builder builderForValue)
Lower bound value of buckets. All values less than `lower_bound` are grouped together into a single bucket; for example if `lower_bound` = 10, then all values less than 10 are replaced with the value “-10”. [Required].
.google.privacy.dlp.v2.Value lower_bound = 1;
public FixedSizeBucketingConfig.Builder mergeLowerBound(Value value)
Lower bound value of buckets. All values less than `lower_bound` are grouped together into a single bucket; for example if `lower_bound` = 10, then all values less than 10 are replaced with the value “-10”. [Required].
.google.privacy.dlp.v2.Value lower_bound = 1;
public FixedSizeBucketingConfig.Builder clearLowerBound()
Lower bound value of buckets. All values less than `lower_bound` are grouped together into a single bucket; for example if `lower_bound` = 10, then all values less than 10 are replaced with the value “-10”. [Required].
.google.privacy.dlp.v2.Value lower_bound = 1;
public Value.Builder getLowerBoundBuilder()
Lower bound value of buckets. All values less than `lower_bound` are grouped together into a single bucket; for example if `lower_bound` = 10, then all values less than 10 are replaced with the value “-10”. [Required].
.google.privacy.dlp.v2.Value lower_bound = 1;
public ValueOrBuilder getLowerBoundOrBuilder()
Lower bound value of buckets. All values less than `lower_bound` are grouped together into a single bucket; for example if `lower_bound` = 10, then all values less than 10 are replaced with the value “-10”. [Required].
.google.privacy.dlp.v2.Value lower_bound = 1;
getLowerBoundOrBuilder
in interface FixedSizeBucketingConfigOrBuilder
public boolean hasUpperBound()
Upper bound value of buckets. All values greater than upper_bound are grouped together into a single bucket; for example if `upper_bound` = 89, then all values greater than 89 are replaced with the value “89+”. [Required].
.google.privacy.dlp.v2.Value upper_bound = 2;
hasUpperBound
in interface FixedSizeBucketingConfigOrBuilder
public Value getUpperBound()
Upper bound value of buckets. All values greater than upper_bound are grouped together into a single bucket; for example if `upper_bound` = 89, then all values greater than 89 are replaced with the value “89+”. [Required].
.google.privacy.dlp.v2.Value upper_bound = 2;
getUpperBound
in interface FixedSizeBucketingConfigOrBuilder
public FixedSizeBucketingConfig.Builder setUpperBound(Value value)
Upper bound value of buckets. All values greater than upper_bound are grouped together into a single bucket; for example if `upper_bound` = 89, then all values greater than 89 are replaced with the value “89+”. [Required].
.google.privacy.dlp.v2.Value upper_bound = 2;
public FixedSizeBucketingConfig.Builder setUpperBound(Value.Builder builderForValue)
Upper bound value of buckets. All values greater than upper_bound are grouped together into a single bucket; for example if `upper_bound` = 89, then all values greater than 89 are replaced with the value “89+”. [Required].
.google.privacy.dlp.v2.Value upper_bound = 2;
public FixedSizeBucketingConfig.Builder mergeUpperBound(Value value)
Upper bound value of buckets. All values greater than upper_bound are grouped together into a single bucket; for example if `upper_bound` = 89, then all values greater than 89 are replaced with the value “89+”. [Required].
.google.privacy.dlp.v2.Value upper_bound = 2;
public FixedSizeBucketingConfig.Builder clearUpperBound()
Upper bound value of buckets. All values greater than upper_bound are grouped together into a single bucket; for example if `upper_bound` = 89, then all values greater than 89 are replaced with the value “89+”. [Required].
.google.privacy.dlp.v2.Value upper_bound = 2;
public Value.Builder getUpperBoundBuilder()
Upper bound value of buckets. All values greater than upper_bound are grouped together into a single bucket; for example if `upper_bound` = 89, then all values greater than 89 are replaced with the value “89+”. [Required].
.google.privacy.dlp.v2.Value upper_bound = 2;
public ValueOrBuilder getUpperBoundOrBuilder()
Upper bound value of buckets. All values greater than upper_bound are grouped together into a single bucket; for example if `upper_bound` = 89, then all values greater than 89 are replaced with the value “89+”. [Required].
.google.privacy.dlp.v2.Value upper_bound = 2;
getUpperBoundOrBuilder
in interface FixedSizeBucketingConfigOrBuilder
public double getBucketSize()
Size of each bucket (except for minimum and maximum buckets). So if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. [Required].
double bucket_size = 3;
getBucketSize
in interface FixedSizeBucketingConfigOrBuilder
public FixedSizeBucketingConfig.Builder setBucketSize(double value)
Size of each bucket (except for minimum and maximum buckets). So if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. [Required].
double bucket_size = 3;
public FixedSizeBucketingConfig.Builder clearBucketSize()
Size of each bucket (except for minimum and maximum buckets). So if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. [Required].
double bucket_size = 3;
public final FixedSizeBucketingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<FixedSizeBucketingConfig.Builder>
public final FixedSizeBucketingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<FixedSizeBucketingConfig.Builder>