Struct gapi_grpc::google::privacy::dlp::v2::CloudStorageOptions[][src]

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,
}

Options defining a file or a set of files within a Google 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.

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.

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: i32files_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

impl CloudStorageOptions[src]

pub fn file_types(
    &self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<FileType>>
[src]

Returns an iterator which yields the valid enum values contained in file_types.

pub fn push_file_types(&mut self, value: FileType)[src]

Appends the provided enum value to file_types.

pub fn sample_method(&self) -> SampleMethod[src]

Returns the enum value of sample_method, or the default if the field is set to an invalid enum value.

pub fn set_sample_method(&mut self, value: SampleMethod)[src]

Sets sample_method to the provided enum value.

Trait Implementations

impl Clone for CloudStorageOptions[src]

impl Debug for CloudStorageOptions[src]

impl Default for CloudStorageOptions[src]

impl Message for CloudStorageOptions[src]

impl PartialEq<CloudStorageOptions> for CloudStorageOptions[src]

impl StructuralPartialEq for CloudStorageOptions[src]

Auto Trait Implementations

impl RefUnwindSafe for CloudStorageOptions

impl Send for CloudStorageOptions

impl Sync for CloudStorageOptions

impl Unpin for CloudStorageOptions

impl UnwindSafe for CloudStorageOptions

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]