- 3.87.0 (latest)
- 3.86.0
- 3.85.0
- 3.84.0
- 3.82.0
- 3.80.0
- 3.79.0
- 3.78.0
- 3.77.0
- 3.76.0
- 3.74.0
- 3.72.0
- 3.71.0
- 3.68.0
- 3.67.0
- 3.66.0
- 3.64.0
- 3.63.0
- 3.62.0
- 3.61.0
- 3.60.0
- 3.59.0
- 3.58.0
- 3.57.0
- 3.56.0
- 3.55.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.6
- 3.6.7
- 3.5.0
- 3.4.0
- 3.3.2
- 3.2.1
- 3.1.4
public static final class FixedSizeBucketingConfig.Builder extends GeneratedMessage.Builder<FixedSizeBucketingConfig.Builder> implements FixedSizeBucketingConfigOrBuilderBuckets 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}. For example, 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.
See https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to learn more.
Protobuf type google.privacy.dlp.v2.FixedSizeBucketingConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > FixedSizeBucketingConfig.BuilderImplements
FixedSizeBucketingConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public FixedSizeBucketingConfig build()| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig |
|
buildPartial()
public FixedSizeBucketingConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig |
|
clear()
public FixedSizeBucketingConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig.Builder |
|
clearBucketSize()
public FixedSizeBucketingConfig.Builder clearBucketSize() Required. 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.
double bucket_size = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig.Builder |
This builder for chaining. |
clearLowerBound()
public FixedSizeBucketingConfig.Builder clearLowerBound() Required. 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".
.google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig.Builder |
|
clearUpperBound()
public FixedSizeBucketingConfig.Builder clearUpperBound() Required. 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+".
.google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig.Builder |
|
getBucketSize()
public double getBucketSize() Required. 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.
double bucket_size = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
double |
The bucketSize. |
getDefaultInstanceForType()
public FixedSizeBucketingConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLowerBound()
public Value getLowerBound() Required. 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".
.google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Value |
The lowerBound. |
getLowerBoundBuilder()
public Value.Builder getLowerBoundBuilder() Required. 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".
.google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Value.Builder |
|
getLowerBoundOrBuilder()
public ValueOrBuilder getLowerBoundOrBuilder() Required. 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".
.google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ValueOrBuilder |
|
getUpperBound()
public Value getUpperBound() Required. 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+".
.google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Value |
The upperBound. |
getUpperBoundBuilder()
public Value.Builder getUpperBoundBuilder() Required. 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+".
.google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Value.Builder |
|
getUpperBoundOrBuilder()
public ValueOrBuilder getUpperBoundOrBuilder() Required. 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+".
.google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ValueOrBuilder |
|
hasLowerBound()
public boolean hasLowerBound() Required. 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".
.google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the lowerBound field is set. |
hasUpperBound()
public boolean hasUpperBound() Required. 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+".
.google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the upperBound field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(FixedSizeBucketingConfig other)
public FixedSizeBucketingConfig.Builder mergeFrom(FixedSizeBucketingConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
FixedSizeBucketingConfig |
| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FixedSizeBucketingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public FixedSizeBucketingConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig.Builder |
|
mergeLowerBound(Value value)
public FixedSizeBucketingConfig.Builder mergeLowerBound(Value value) Required. 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".
.google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Value |
| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig.Builder |
|
mergeUpperBound(Value value)
public FixedSizeBucketingConfig.Builder mergeUpperBound(Value value) Required. 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+".
.google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Value |
| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig.Builder |
|
setBucketSize(double value)
public FixedSizeBucketingConfig.Builder setBucketSize(double value) Required. 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.
double bucket_size = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe bucketSize to set. |
| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig.Builder |
This builder for chaining. |
setLowerBound(Value value)
public FixedSizeBucketingConfig.Builder setLowerBound(Value value) Required. 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".
.google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Value |
| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig.Builder |
|
setLowerBound(Value.Builder builderForValue)
public FixedSizeBucketingConfig.Builder setLowerBound(Value.Builder builderForValue) Required. 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".
.google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Value.Builder |
| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig.Builder |
|
setUpperBound(Value value)
public FixedSizeBucketingConfig.Builder setUpperBound(Value value) Required. 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+".
.google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Value |
| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig.Builder |
|
setUpperBound(Value.Builder builderForValue)
public FixedSizeBucketingConfig.Builder setUpperBound(Value.Builder builderForValue) Required. 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+".
.google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Value.Builder |
| Returns | |
|---|---|
| Type | Description |
FixedSizeBucketingConfig.Builder |
|