Struct google_api_proto::google::cloud::bigquery::v2::DifferentialPrivacyPolicy
source · pub struct DifferentialPrivacyPolicy {
pub max_epsilon_per_query: Option<f64>,
pub delta_per_query: Option<f64>,
pub max_groups_contributed: Option<i64>,
pub privacy_unit_column: Option<String>,
pub epsilon_budget: Option<f64>,
pub delta_budget: Option<f64>,
pub epsilon_budget_remaining: Option<f64>,
pub delta_budget_remaining: Option<f64>,
}
Expand description
Represents privacy policy associated with “differential privacy” method.
Fields§
§max_epsilon_per_query: Option<f64>
Optional. The maximum epsilon value that a query can consume. If the subscriber specifies epsilon as a parameter in a SELECT query, it must be less than or equal to this value. The epsilon parameter controls the amount of noise that is added to the groups — a higher epsilon means less noise.
delta_per_query: Option<f64>
Optional. The delta value that is used per query. Delta represents the probability that any row will fail to be epsilon differentially private. Indicates the risk associated with exposing aggregate rows in the result of a query.
max_groups_contributed: Option<i64>
Optional. The maximum groups contributed value that is used per query. Represents the maximum number of groups to which each protected entity can contribute. Changing this value does not improve or worsen privacy. The best value for accuracy and utility depends on the query and data.
privacy_unit_column: Option<String>
Optional. The privacy unit column associated with this policy. Differential privacy policies can only have one privacy unit column per data source object (table, view).
epsilon_budget: Option<f64>
Optional. The total epsilon budget for all queries against the privacy-protected view. Each subscriber query against this view charges the amount of epsilon they request in their query. If there is sufficient budget, then the subscriber query attempts to complete. It might still fail due to other reasons, in which case the charge is refunded. If there is insufficient budget the query is rejected. There might be multiple charge attempts if a single query references multiple views. In this case there must be sufficient budget for all charges or the query is rejected and charges are refunded in best effort. The budget does not have a refresh policy and can only be updated via ALTER VIEW or circumvented by creating a new view that can be queried with a fresh budget.
delta_budget: Option<f64>
Optional. The total delta budget for all queries against the privacy-protected view. Each subscriber query against this view charges the amount of delta that is pre-defined by the contributor through the privacy policy delta_per_query field. If there is sufficient budget, then the subscriber query attempts to complete. It might still fail due to other reasons, in which case the charge is refunded. If there is insufficient budget the query is rejected. There might be multiple charge attempts if a single query references multiple views. In this case there must be sufficient budget for all charges or the query is rejected and charges are refunded in best effort. The budget does not have a refresh policy and can only be updated via ALTER VIEW or circumvented by creating a new view that can be queried with a fresh budget.
epsilon_budget_remaining: Option<f64>
Output only. The epsilon budget remaining. If budget is exhausted, no more queries are allowed. Note that the budget for queries that are in progress is deducted before the query executes. If the query fails or is cancelled then the budget is refunded. In this case the amount of budget remaining can increase.
delta_budget_remaining: Option<f64>
Output only. The delta budget remaining. If budget is exhausted, no more queries are allowed. Note that the budget for queries that are in progress is deducted before the query executes. If the query fails or is cancelled then the budget is refunded. In this case the amount of budget remaining can increase.
Implementations§
source§impl DifferentialPrivacyPolicy
impl DifferentialPrivacyPolicy
sourcepub fn max_epsilon_per_query(&self) -> f64
pub fn max_epsilon_per_query(&self) -> f64
Returns the value of max_epsilon_per_query
, or the default value if max_epsilon_per_query
is unset.
sourcepub fn delta_per_query(&self) -> f64
pub fn delta_per_query(&self) -> f64
Returns the value of delta_per_query
, or the default value if delta_per_query
is unset.
sourcepub fn max_groups_contributed(&self) -> i64
pub fn max_groups_contributed(&self) -> i64
Returns the value of max_groups_contributed
, or the default value if max_groups_contributed
is unset.
sourcepub fn privacy_unit_column(&self) -> &str
pub fn privacy_unit_column(&self) -> &str
Returns the value of privacy_unit_column
, or the default value if privacy_unit_column
is unset.
sourcepub fn epsilon_budget(&self) -> f64
pub fn epsilon_budget(&self) -> f64
Returns the value of epsilon_budget
, or the default value if epsilon_budget
is unset.
sourcepub fn delta_budget(&self) -> f64
pub fn delta_budget(&self) -> f64
Returns the value of delta_budget
, or the default value if delta_budget
is unset.
sourcepub fn epsilon_budget_remaining(&self) -> f64
pub fn epsilon_budget_remaining(&self) -> f64
Returns the value of epsilon_budget_remaining
, or the default value if epsilon_budget_remaining
is unset.
sourcepub fn delta_budget_remaining(&self) -> f64
pub fn delta_budget_remaining(&self) -> f64
Returns the value of delta_budget_remaining
, or the default value if delta_budget_remaining
is unset.
Trait Implementations§
source§impl Clone for DifferentialPrivacyPolicy
impl Clone for DifferentialPrivacyPolicy
source§fn clone(&self) -> DifferentialPrivacyPolicy
fn clone(&self) -> DifferentialPrivacyPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DifferentialPrivacyPolicy
impl Debug for DifferentialPrivacyPolicy
source§impl Default for DifferentialPrivacyPolicy
impl Default for DifferentialPrivacyPolicy
source§impl Message for DifferentialPrivacyPolicy
impl Message for DifferentialPrivacyPolicy
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 DifferentialPrivacyPolicy
impl PartialEq for DifferentialPrivacyPolicy
source§fn eq(&self, other: &DifferentialPrivacyPolicy) -> bool
fn eq(&self, other: &DifferentialPrivacyPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DifferentialPrivacyPolicy
Auto Trait Implementations§
impl Freeze for DifferentialPrivacyPolicy
impl RefUnwindSafe for DifferentialPrivacyPolicy
impl Send for DifferentialPrivacyPolicy
impl Sync for DifferentialPrivacyPolicy
impl Unpin for DifferentialPrivacyPolicy
impl UnwindSafe for DifferentialPrivacyPolicy
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