Struct google_api_proto::google::privacy::dlp::v2::CloudStorageOptions
source · pub struct CloudStorageOptions {
pub file_set: Option<FileSet>,
pub bytes_limit_per_file: i64,
pub bytes_limit_per_file_percent: i32,
pub file_types: Vec<i32>,
pub sample_method: i32,
pub files_limit_percent: i32,
}
Expand description
Options defining a file or a set of files within a Cloud Storage bucket.
Fields§
§file_set: Option<FileSet>
The set of one or more files to scan.
bytes_limit_per_file: i64
Max number of bytes to scan from a file. If a scanned file’s size is bigger
than this value then the rest of the bytes are omitted. Only one of
bytes_limit_per_file
and bytes_limit_per_file_percent
can be specified.
This field can’t be set if de-identification is requested. For certain file
types, setting this field has no effect. For more information, see Limits
on bytes scanned per
file.
bytes_limit_per_file_percent: i32
Max percentage of bytes to scan from a file. The rest are omitted. The number of bytes scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of bytes_limit_per_file and bytes_limit_per_file_percent can be specified. This field can’t be set if de-identification is requested. For certain file types, setting this field has no effect. For more information, see Limits on bytes scanned per file.
file_types: Vec<i32>
List of file type groups to include in the scan. If empty, all files are scanned and available data format processors are applied. In addition, the binary content of the selected files is always scanned as well. Images are scanned only as binary if the specified region does not support image inspection and no file_types were specified. Image inspection is restricted to ‘global’, ‘us’, ‘asia’, and ‘europe’.
sample_method: i32
How to sample the data.
files_limit_percent: i32
Limits the number of files to scan to this percentage of the input FileSet. Number of files scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0.
Implementations§
source§impl CloudStorageOptions
impl CloudStorageOptions
sourcepub fn file_types(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<FileType>>
pub fn file_types( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<FileType>>
Returns an iterator which yields the valid enum values contained in file_types
.
sourcepub fn push_file_types(&mut self, value: FileType)
pub fn push_file_types(&mut self, value: FileType)
Appends the provided enum value to file_types
.
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 CloudStorageOptions
impl Clone for CloudStorageOptions
source§fn clone(&self) -> CloudStorageOptions
fn clone(&self) -> CloudStorageOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CloudStorageOptions
impl Debug for CloudStorageOptions
source§impl Default for CloudStorageOptions
impl Default for CloudStorageOptions
source§impl Message for CloudStorageOptions
impl Message for CloudStorageOptions
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 CloudStorageOptions
impl PartialEq for CloudStorageOptions
source§fn eq(&self, other: &CloudStorageOptions) -> bool
fn eq(&self, other: &CloudStorageOptions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CloudStorageOptions
Auto Trait Implementations§
impl Freeze for CloudStorageOptions
impl RefUnwindSafe for CloudStorageOptions
impl Send for CloudStorageOptions
impl Sync for CloudStorageOptions
impl Unpin for CloudStorageOptions
impl UnwindSafe for CloudStorageOptions
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