bytesLimitPerFile = $bytesLimitPerFile; } /** * @return string */ public function getBytesLimitPerFile() { return $this->bytesLimitPerFile; } /** * 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](https://cloud.google.com/sensitive-data- * protection/docs/supported-file-types#max-byte-size-per-file). * * @param int $bytesLimitPerFilePercent */ public function setBytesLimitPerFilePercent($bytesLimitPerFilePercent) { $this->bytesLimitPerFilePercent = $bytesLimitPerFilePercent; } /** * @return int */ public function getBytesLimitPerFilePercent() { return $this->bytesLimitPerFilePercent; } /** * The set of one or more files to scan. * * @param GooglePrivacyDlpV2FileSet $fileSet */ public function setFileSet(GooglePrivacyDlpV2FileSet $fileSet) { $this->fileSet = $fileSet; } /** * @return GooglePrivacyDlpV2FileSet */ public function getFileSet() { return $this->fileSet; } /** * 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'. * * @param string[] $fileTypes */ public function setFileTypes($fileTypes) { $this->fileTypes = $fileTypes; } /** * @return string[] */ public function getFileTypes() { return $this->fileTypes; } /** * 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. * * @param int $filesLimitPercent */ public function setFilesLimitPercent($filesLimitPercent) { $this->filesLimitPercent = $filesLimitPercent; } /** * @return int */ public function getFilesLimitPercent() { return $this->filesLimitPercent; } /** * How to sample the data. * * Accepted values: SAMPLE_METHOD_UNSPECIFIED, TOP, RANDOM_START * * @param self::SAMPLE_METHOD_* $sampleMethod */ public function setSampleMethod($sampleMethod) { $this->sampleMethod = $sampleMethod; } /** * @return self::SAMPLE_METHOD_* */ public function getSampleMethod() { return $this->sampleMethod; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GooglePrivacyDlpV2CloudStorageOptions::class, 'Google_Service_DLP_GooglePrivacyDlpV2CloudStorageOptions');