Package com.google.privacy.dlp.v2
Class CloudStorageOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
- com.google.privacy.dlp.v2.CloudStorageOptions.Builder
-
- All Implemented Interfaces:
CloudStorageOptionsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CloudStorageOptions
public static final class CloudStorageOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder> implements CloudStorageOptionsOrBuilder
Options defining a file or a set of files within a Cloud Storage bucket.
Protobuf typegoogle.privacy.dlp.v2.CloudStorageOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudStorageOptions.BuilderaddAllFileTypes(Iterable<? extends FileType> values)List of file type groups to include in the scan.CloudStorageOptions.BuilderaddAllFileTypesValue(Iterable<Integer> values)List of file type groups to include in the scan.CloudStorageOptions.BuilderaddFileTypes(FileType value)List of file type groups to include in the scan.CloudStorageOptions.BuilderaddFileTypesValue(int value)List of file type groups to include in the scan.CloudStorageOptions.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CloudStorageOptionsbuild()CloudStorageOptionsbuildPartial()CloudStorageOptions.Builderclear()CloudStorageOptions.BuilderclearBytesLimitPerFile()Max number of bytes to scan from a file.CloudStorageOptions.BuilderclearBytesLimitPerFilePercent()Max percentage of bytes to scan from a file.CloudStorageOptions.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CloudStorageOptions.BuilderclearFileSet()The set of one or more files to scan.CloudStorageOptions.BuilderclearFilesLimitPercent()Limits the number of files to scan to this percentage of the input FileSet.CloudStorageOptions.BuilderclearFileTypes()List of file type groups to include in the scan.CloudStorageOptions.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CloudStorageOptions.BuilderclearSampleMethod().google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;CloudStorageOptions.Builderclone()longgetBytesLimitPerFile()Max number of bytes to scan from a file.intgetBytesLimitPerFilePercent()Max percentage of bytes to scan from a file.CloudStorageOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()CloudStorageOptions.FileSetgetFileSet()The set of one or more files to scan.CloudStorageOptions.FileSet.BuildergetFileSetBuilder()The set of one or more files to scan.CloudStorageOptions.FileSetOrBuildergetFileSetOrBuilder()The set of one or more files to scan.intgetFilesLimitPercent()Limits the number of files to scan to this percentage of the input FileSet.FileTypegetFileTypes(int index)List of file type groups to include in the scan.intgetFileTypesCount()List of file type groups to include in the scan.List<FileType>getFileTypesList()List of file type groups to include in the scan.intgetFileTypesValue(int index)List of file type groups to include in the scan.List<Integer>getFileTypesValueList()List of file type groups to include in the scan.CloudStorageOptions.SampleMethodgetSampleMethod().google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;intgetSampleMethodValue().google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;booleanhasFileSet()The set of one or more files to scan.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CloudStorageOptions.BuildermergeFileSet(CloudStorageOptions.FileSet value)The set of one or more files to scan.CloudStorageOptions.BuildermergeFrom(CloudStorageOptions other)CloudStorageOptions.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CloudStorageOptions.BuildermergeFrom(com.google.protobuf.Message other)CloudStorageOptions.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CloudStorageOptions.BuildersetBytesLimitPerFile(long value)Max number of bytes to scan from a file.CloudStorageOptions.BuildersetBytesLimitPerFilePercent(int value)Max percentage of bytes to scan from a file.CloudStorageOptions.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CloudStorageOptions.BuildersetFileSet(CloudStorageOptions.FileSet value)The set of one or more files to scan.CloudStorageOptions.BuildersetFileSet(CloudStorageOptions.FileSet.Builder builderForValue)The set of one or more files to scan.CloudStorageOptions.BuildersetFilesLimitPercent(int value)Limits the number of files to scan to this percentage of the input FileSet.CloudStorageOptions.BuildersetFileTypes(int index, FileType value)List of file type groups to include in the scan.CloudStorageOptions.BuildersetFileTypesValue(int index, int value)List of file type groups to include in the scan.CloudStorageOptions.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CloudStorageOptions.BuildersetSampleMethod(CloudStorageOptions.SampleMethod value).google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;CloudStorageOptions.BuildersetSampleMethodValue(int value).google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;CloudStorageOptions.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
clear
public CloudStorageOptions.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
getDefaultInstanceForType
public CloudStorageOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CloudStorageOptions build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CloudStorageOptions buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CloudStorageOptions.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
setField
public CloudStorageOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
clearField
public CloudStorageOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
clearOneof
public CloudStorageOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
setRepeatedField
public CloudStorageOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
addRepeatedField
public CloudStorageOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
mergeFrom
public CloudStorageOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CloudStorageOptions.Builder>
-
mergeFrom
public CloudStorageOptions.Builder mergeFrom(CloudStorageOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
mergeFrom
public CloudStorageOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CloudStorageOptions.Builder>- Throws:
IOException
-
hasFileSet
public boolean hasFileSet()
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1;- Specified by:
hasFileSetin interfaceCloudStorageOptionsOrBuilder- Returns:
- Whether the fileSet field is set.
-
getFileSet
public CloudStorageOptions.FileSet getFileSet()
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1;- Specified by:
getFileSetin interfaceCloudStorageOptionsOrBuilder- Returns:
- The fileSet.
-
setFileSet
public CloudStorageOptions.Builder setFileSet(CloudStorageOptions.FileSet value)
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1;
-
setFileSet
public CloudStorageOptions.Builder setFileSet(CloudStorageOptions.FileSet.Builder builderForValue)
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1;
-
mergeFileSet
public CloudStorageOptions.Builder mergeFileSet(CloudStorageOptions.FileSet value)
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1;
-
clearFileSet
public CloudStorageOptions.Builder clearFileSet()
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1;
-
getFileSetBuilder
public CloudStorageOptions.FileSet.Builder getFileSetBuilder()
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1;
-
getFileSetOrBuilder
public CloudStorageOptions.FileSetOrBuilder getFileSetOrBuilder()
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1;- Specified by:
getFileSetOrBuilderin interfaceCloudStorageOptionsOrBuilder
-
getBytesLimitPerFile
public long getBytesLimitPerFile()
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. Cannot be set if de-identification is requested.
int64 bytes_limit_per_file = 4;- Specified by:
getBytesLimitPerFilein interfaceCloudStorageOptionsOrBuilder- Returns:
- The bytesLimitPerFile.
-
setBytesLimitPerFile
public CloudStorageOptions.Builder setBytesLimitPerFile(long value)
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. Cannot be set if de-identification is requested.
int64 bytes_limit_per_file = 4;- Parameters:
value- The bytesLimitPerFile to set.- Returns:
- This builder for chaining.
-
clearBytesLimitPerFile
public CloudStorageOptions.Builder clearBytesLimitPerFile()
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. Cannot be set if de-identification is requested.
int64 bytes_limit_per_file = 4;- Returns:
- This builder for chaining.
-
getBytesLimitPerFilePercent
public int getBytesLimitPerFilePercent()
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. Cannot be set if de-identification is requested.
int32 bytes_limit_per_file_percent = 8;- Specified by:
getBytesLimitPerFilePercentin interfaceCloudStorageOptionsOrBuilder- Returns:
- The bytesLimitPerFilePercent.
-
setBytesLimitPerFilePercent
public CloudStorageOptions.Builder setBytesLimitPerFilePercent(int value)
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. Cannot be set if de-identification is requested.
int32 bytes_limit_per_file_percent = 8;- Parameters:
value- The bytesLimitPerFilePercent to set.- Returns:
- This builder for chaining.
-
clearBytesLimitPerFilePercent
public CloudStorageOptions.Builder clearBytesLimitPerFilePercent()
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. Cannot be set if de-identification is requested.
int32 bytes_limit_per_file_percent = 8;- Returns:
- This builder for chaining.
-
getFileTypesList
public List<FileType> getFileTypesList()
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'.
repeated .google.privacy.dlp.v2.FileType file_types = 5;- Specified by:
getFileTypesListin interfaceCloudStorageOptionsOrBuilder- Returns:
- A list containing the fileTypes.
-
getFileTypesCount
public int getFileTypesCount()
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'.
repeated .google.privacy.dlp.v2.FileType file_types = 5;- Specified by:
getFileTypesCountin interfaceCloudStorageOptionsOrBuilder- Returns:
- The count of fileTypes.
-
getFileTypes
public FileType getFileTypes(int index)
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'.
repeated .google.privacy.dlp.v2.FileType file_types = 5;- Specified by:
getFileTypesin interfaceCloudStorageOptionsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The fileTypes at the given index.
-
setFileTypes
public CloudStorageOptions.Builder setFileTypes(int index, FileType value)
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'.
repeated .google.privacy.dlp.v2.FileType file_types = 5;- Parameters:
index- The index to set the value at.value- The fileTypes to set.- Returns:
- This builder for chaining.
-
addFileTypes
public CloudStorageOptions.Builder addFileTypes(FileType value)
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'.
repeated .google.privacy.dlp.v2.FileType file_types = 5;- Parameters:
value- The fileTypes to add.- Returns:
- This builder for chaining.
-
addAllFileTypes
public CloudStorageOptions.Builder addAllFileTypes(Iterable<? extends FileType> values)
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'.
repeated .google.privacy.dlp.v2.FileType file_types = 5;- Parameters:
values- The fileTypes to add.- Returns:
- This builder for chaining.
-
clearFileTypes
public CloudStorageOptions.Builder clearFileTypes()
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'.
repeated .google.privacy.dlp.v2.FileType file_types = 5;- Returns:
- This builder for chaining.
-
getFileTypesValueList
public List<Integer> getFileTypesValueList()
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'.
repeated .google.privacy.dlp.v2.FileType file_types = 5;- Specified by:
getFileTypesValueListin interfaceCloudStorageOptionsOrBuilder- Returns:
- A list containing the enum numeric values on the wire for fileTypes.
-
getFileTypesValue
public int getFileTypesValue(int index)
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'.
repeated .google.privacy.dlp.v2.FileType file_types = 5;- Specified by:
getFileTypesValuein interfaceCloudStorageOptionsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of fileTypes at the given index.
-
setFileTypesValue
public CloudStorageOptions.Builder setFileTypesValue(int index, int value)
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'.
repeated .google.privacy.dlp.v2.FileType file_types = 5;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for fileTypes to set.- Returns:
- This builder for chaining.
-
addFileTypesValue
public CloudStorageOptions.Builder addFileTypesValue(int value)
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'.
repeated .google.privacy.dlp.v2.FileType file_types = 5;- Parameters:
value- The enum numeric value on the wire for fileTypes to add.- Returns:
- This builder for chaining.
-
addAllFileTypesValue
public CloudStorageOptions.Builder addAllFileTypesValue(Iterable<Integer> values)
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'.
repeated .google.privacy.dlp.v2.FileType file_types = 5;- Parameters:
values- The enum numeric values on the wire for fileTypes to add.- Returns:
- This builder for chaining.
-
getSampleMethodValue
public int getSampleMethodValue()
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;- Specified by:
getSampleMethodValuein interfaceCloudStorageOptionsOrBuilder- Returns:
- The enum numeric value on the wire for sampleMethod.
-
setSampleMethodValue
public CloudStorageOptions.Builder setSampleMethodValue(int value)
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;- Parameters:
value- The enum numeric value on the wire for sampleMethod to set.- Returns:
- This builder for chaining.
-
getSampleMethod
public CloudStorageOptions.SampleMethod getSampleMethod()
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;- Specified by:
getSampleMethodin interfaceCloudStorageOptionsOrBuilder- Returns:
- The sampleMethod.
-
setSampleMethod
public CloudStorageOptions.Builder setSampleMethod(CloudStorageOptions.SampleMethod value)
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;- Parameters:
value- The sampleMethod to set.- Returns:
- This builder for chaining.
-
clearSampleMethod
public CloudStorageOptions.Builder clearSampleMethod()
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;- Returns:
- This builder for chaining.
-
getFilesLimitPercent
public int getFilesLimitPercent()
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.
int32 files_limit_percent = 7;- Specified by:
getFilesLimitPercentin interfaceCloudStorageOptionsOrBuilder- Returns:
- The filesLimitPercent.
-
setFilesLimitPercent
public CloudStorageOptions.Builder setFilesLimitPercent(int value)
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.
int32 files_limit_percent = 7;- Parameters:
value- The filesLimitPercent to set.- Returns:
- This builder for chaining.
-
clearFilesLimitPercent
public CloudStorageOptions.Builder clearFilesLimitPercent()
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.
int32 files_limit_percent = 7;- Returns:
- This builder for chaining.
-
setUnknownFields
public final CloudStorageOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
mergeUnknownFields
public final CloudStorageOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
-