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.GeneratedMessage.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.GeneratedMessage.Builder<CloudStorageOptions.Builder>
implements CloudStorageOptionsOrBuilder
Options defining a file or a set of files within a Cloud Storage bucket.Protobuf type
google.privacy.dlp.v2.CloudStorageOptions-
Method Summary
Modifier and TypeMethodDescriptionaddAllFileTypes(Iterable<? extends FileType> values) List of file type groups to include in the scan.addAllFileTypesValue(Iterable<Integer> values) List of file type groups to include in the scan.addFileTypes(FileType value) List of file type groups to include in the scan.addFileTypesValue(int value) List of file type groups to include in the scan.build()clear()Max number of bytes to scan from a file.Max percentage of bytes to scan from a file.The set of one or more files to scan.Limits the number of files to scan to this percentage of the input FileSet.List of file type groups to include in the scan.How to sample the data.longMax number of bytes to scan from a file.intMax percentage of bytes to scan from a file.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe set of one or more files to scan.The set of one or more files to scan.The set of one or more files to scan.intLimits the number of files to scan to this percentage of the input FileSet.getFileTypes(int index) List of file type groups to include in the scan.intList of file type groups to include in the scan.List of file type groups to include in the scan.intgetFileTypesValue(int index) List of file type groups to include in the scan.List of file type groups to include in the scan.How to sample the data.intHow to sample the data.booleanThe set of one or more files to scan.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe set of one or more files to scan.mergeFrom(CloudStorageOptions other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setBytesLimitPerFile(long value) Max number of bytes to scan from a file.setBytesLimitPerFilePercent(int value) Max percentage of bytes to scan from a file.The set of one or more files to scan.setFileSet(CloudStorageOptions.FileSet.Builder builderForValue) The set of one or more files to scan.setFilesLimitPercent(int value) Limits the number of files to scan to this percentage of the input FileSet.setFileTypes(int index, FileType value) List of file type groups to include in the scan.setFileTypesValue(int index, int value) List of file type groups to include in the scan.How to sample the data.setSampleMethodValue(int value) How to sample the data.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CloudStorageOptions.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<CloudStorageOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CloudStorageOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; -
setFileSet
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; -
mergeFileSet
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; -
clearFileSet
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; -
getFileSetBuilder
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; -
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. 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).
int64 bytes_limit_per_file = 4;- Specified by:
getBytesLimitPerFilein interfaceCloudStorageOptionsOrBuilder- Returns:
- The bytesLimitPerFile.
-
setBytesLimitPerFile
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](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file).
int64 bytes_limit_per_file = 4;- Parameters:
value- The bytesLimitPerFile to set.- Returns:
- This builder for chaining.
-
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. 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).
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. 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).
int32 bytes_limit_per_file_percent = 8;- Specified by:
getBytesLimitPerFilePercentin interfaceCloudStorageOptionsOrBuilder- Returns:
- The bytesLimitPerFilePercent.
-
setBytesLimitPerFilePercent
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).
int32 bytes_limit_per_file_percent = 8;- Parameters:
value- The bytesLimitPerFilePercent to set.- Returns:
- This builder for chaining.
-
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. 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).
int32 bytes_limit_per_file_percent = 8;- Returns:
- This builder for chaining.
-
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
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
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
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
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
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
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
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
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
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()How to sample the data.
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;- Specified by:
getSampleMethodValuein interfaceCloudStorageOptionsOrBuilder- Returns:
- The enum numeric value on the wire for sampleMethod.
-
setSampleMethodValue
How to sample the data.
.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
How to sample the data.
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;- Specified by:
getSampleMethodin interfaceCloudStorageOptionsOrBuilder- Returns:
- The sampleMethod.
-
setSampleMethod
How to sample the data.
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;- Parameters:
value- The sampleMethod to set.- Returns:
- This builder for chaining.
-
clearSampleMethod
How to sample the data.
.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
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
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.
-