Struct google_api_proto::google::privacy::dlp::v2::BigQueryOptions
source · pub struct BigQueryOptions {
pub table_reference: Option<BigQueryTable>,
pub identifying_fields: Vec<FieldId>,
pub rows_limit: i64,
pub rows_limit_percent: i32,
pub sample_method: i32,
pub excluded_fields: Vec<FieldId>,
pub included_fields: Vec<FieldId>,
}
Expand description
Options defining BigQuery table and row identifiers.
Fields§
§table_reference: Option<BigQueryTable>
Complete BigQuery table reference.
identifying_fields: Vec<FieldId>
Table fields that may uniquely identify a row within the table. When
actions.saveFindings.outputConfig.table
is specified, the values of
columns specified here are available in the output table under
location.content_locations.record_location.record_key.id_values
. Nested
fields such as person.birthdate.year
are allowed.
rows_limit: i64
Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted. If not set, or if set to 0, all rows will be scanned. Only one of rows_limit and rows_limit_percent can be specified. Cannot be used in conjunction with TimespanConfig.
rows_limit_percent: i32
Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of rows_limit and rows_limit_percent can be specified. Cannot be used in conjunction with TimespanConfig.
Caution: A known
issue
is causing the rowsLimitPercent
field to behave unexpectedly. We
recommend using rowsLimit
instead.
sample_method: i32
How to sample the data.
excluded_fields: Vec<FieldId>
References to fields excluded from scanning. This allows you to skip inspection of entire columns which you know have no findings. When inspecting a table, we recommend that you inspect all columns. Otherwise, findings might be affected because hints from excluded columns will not be used.
included_fields: Vec<FieldId>
Limit scanning only to these fields. When inspecting a table, we recommend that you inspect all columns. Otherwise, findings might be affected because hints from excluded columns will not be used.
Implementations§
source§impl BigQueryOptions
impl BigQueryOptions
sourcepub fn sample_method(&self) -> SampleMethod
pub fn sample_method(&self) -> SampleMethod
Returns the enum value of sample_method
, or the default if the field is set to an invalid enum value.
sourcepub fn set_sample_method(&mut self, value: SampleMethod)
pub fn set_sample_method(&mut self, value: SampleMethod)
Sets sample_method
to the provided enum value.
Trait Implementations§
source§impl Clone for BigQueryOptions
impl Clone for BigQueryOptions
source§fn clone(&self) -> BigQueryOptions
fn clone(&self) -> BigQueryOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BigQueryOptions
impl Debug for BigQueryOptions
source§impl Default for BigQueryOptions
impl Default for BigQueryOptions
source§impl Message for BigQueryOptions
impl Message for BigQueryOptions
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 BigQueryOptions
impl PartialEq for BigQueryOptions
source§fn eq(&self, other: &BigQueryOptions) -> bool
fn eq(&self, other: &BigQueryOptions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BigQueryOptions
Auto Trait Implementations§
impl Freeze for BigQueryOptions
impl RefUnwindSafe for BigQueryOptions
impl Send for BigQueryOptions
impl Sync for BigQueryOptions
impl Unpin for BigQueryOptions
impl UnwindSafe for BigQueryOptions
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