Struct google_api_proto::google::privacy::dlp::v2::FixedSizeBucketingConfig
source · pub struct FixedSizeBucketingConfig {
pub lower_bound: Option<Value>,
pub upper_bound: Option<Value>,
pub bucket_size: f64,
}
Expand description
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}. 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.
Fields§
§lower_bound: Option<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”.
upper_bound: Option<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+”.
bucket_size: f64
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.
Trait Implementations§
source§impl Clone for FixedSizeBucketingConfig
impl Clone for FixedSizeBucketingConfig
source§fn clone(&self) -> FixedSizeBucketingConfig
fn clone(&self) -> FixedSizeBucketingConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FixedSizeBucketingConfig
impl Debug for FixedSizeBucketingConfig
source§impl Default for FixedSizeBucketingConfig
impl Default for FixedSizeBucketingConfig
source§impl Message for FixedSizeBucketingConfig
impl Message for FixedSizeBucketingConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for FixedSizeBucketingConfig
impl PartialEq for FixedSizeBucketingConfig
source§fn eq(&self, other: &FixedSizeBucketingConfig) -> bool
fn eq(&self, other: &FixedSizeBucketingConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FixedSizeBucketingConfig
Auto Trait Implementations§
impl Freeze for FixedSizeBucketingConfig
impl RefUnwindSafe for FixedSizeBucketingConfig
impl Send for FixedSizeBucketingConfig
impl Sync for FixedSizeBucketingConfig
impl Unpin for FixedSizeBucketingConfig
impl UnwindSafe for FixedSizeBucketingConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request