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.Builder
addAllFileTypes(Iterable<? extends FileType> values)
List of file type groups to include in the scan.CloudStorageOptions.Builder
addAllFileTypesValue(Iterable<Integer> values)
List of file type groups to include in the scan.CloudStorageOptions.Builder
addFileTypes(FileType value)
List of file type groups to include in the scan.CloudStorageOptions.Builder
addFileTypesValue(int value)
List of file type groups to include in the scan.CloudStorageOptions.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CloudStorageOptions
build()
CloudStorageOptions
buildPartial()
CloudStorageOptions.Builder
clear()
CloudStorageOptions.Builder
clearBytesLimitPerFile()
Max number of bytes to scan from a file.CloudStorageOptions.Builder
clearBytesLimitPerFilePercent()
Max percentage of bytes to scan from a file.CloudStorageOptions.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CloudStorageOptions.Builder
clearFileSet()
The set of one or more files to scan.CloudStorageOptions.Builder
clearFilesLimitPercent()
Limits the number of files to scan to this percentage of the input FileSet.CloudStorageOptions.Builder
clearFileTypes()
List of file type groups to include in the scan.CloudStorageOptions.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CloudStorageOptions.Builder
clearSampleMethod()
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;
CloudStorageOptions.Builder
clone()
long
getBytesLimitPerFile()
Max number of bytes to scan from a file.int
getBytesLimitPerFilePercent()
Max percentage of bytes to scan from a file.CloudStorageOptions
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
CloudStorageOptions.FileSet
getFileSet()
The set of one or more files to scan.CloudStorageOptions.FileSet.Builder
getFileSetBuilder()
The set of one or more files to scan.CloudStorageOptions.FileSetOrBuilder
getFileSetOrBuilder()
The set of one or more files to scan.int
getFilesLimitPercent()
Limits the number of files to scan to this percentage of the input FileSet.FileType
getFileTypes(int index)
List of file type groups to include in the scan.int
getFileTypesCount()
List of file type groups to include in the scan.List<FileType>
getFileTypesList()
List of file type groups to include in the scan.int
getFileTypesValue(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.SampleMethod
getSampleMethod()
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;
int
getSampleMethodValue()
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;
boolean
hasFileSet()
The set of one or more files to scan.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CloudStorageOptions.Builder
mergeFileSet(CloudStorageOptions.FileSet value)
The set of one or more files to scan.CloudStorageOptions.Builder
mergeFrom(CloudStorageOptions other)
CloudStorageOptions.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CloudStorageOptions.Builder
mergeFrom(com.google.protobuf.Message other)
CloudStorageOptions.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CloudStorageOptions.Builder
setBytesLimitPerFile(long value)
Max number of bytes to scan from a file.CloudStorageOptions.Builder
setBytesLimitPerFilePercent(int value)
Max percentage of bytes to scan from a file.CloudStorageOptions.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CloudStorageOptions.Builder
setFileSet(CloudStorageOptions.FileSet value)
The set of one or more files to scan.CloudStorageOptions.Builder
setFileSet(CloudStorageOptions.FileSet.Builder builderForValue)
The set of one or more files to scan.CloudStorageOptions.Builder
setFilesLimitPercent(int value)
Limits the number of files to scan to this percentage of the input FileSet.CloudStorageOptions.Builder
setFileTypes(int index, FileType value)
List of file type groups to include in the scan.CloudStorageOptions.Builder
setFileTypesValue(int index, int value)
List of file type groups to include in the scan.CloudStorageOptions.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CloudStorageOptions.Builder
setSampleMethod(CloudStorageOptions.SampleMethod value)
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;
CloudStorageOptions.Builder
setSampleMethodValue(int value)
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;
CloudStorageOptions.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
clear
public CloudStorageOptions.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
getDefaultInstanceForType
public CloudStorageOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CloudStorageOptions build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CloudStorageOptions buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CloudStorageOptions.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
setField
public CloudStorageOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
clearField
public CloudStorageOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
clearOneof
public CloudStorageOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
setRepeatedField
public CloudStorageOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
addRepeatedField
public CloudStorageOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
mergeFrom
public CloudStorageOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CloudStorageOptions.Builder>
-
mergeFrom
public CloudStorageOptions.Builder mergeFrom(CloudStorageOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasFileSet
in 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:
getFileSet
in 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:
getFileSetOrBuilder
in 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:
getBytesLimitPerFile
in 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:
getBytesLimitPerFilePercent
in 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:
getFileTypesList
in 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:
getFileTypesCount
in 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:
getFileTypes
in 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:
getFileTypesValueList
in 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:
getFileTypesValue
in 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:
getSampleMethodValue
in 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:
getSampleMethod
in 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:
getFilesLimitPercent
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
mergeUnknownFields
public final CloudStorageOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>
-
-