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 type
google.privacy.dlp.v2.CloudStorageOptions| Modifier and Type | Method and 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.Builder builderForValue)
The set of one or more files to scan.
|
CloudStorageOptions.Builder |
setFileSet(CloudStorageOptions.FileSet value)
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) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>public CloudStorageOptions.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>public CloudStorageOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CloudStorageOptions build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CloudStorageOptions buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CloudStorageOptions.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>public CloudStorageOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>public CloudStorageOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>public CloudStorageOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>public CloudStorageOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>public CloudStorageOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>public CloudStorageOptions.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudStorageOptions.Builder>public CloudStorageOptions.Builder mergeFrom(CloudStorageOptions other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>public CloudStorageOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudStorageOptions.Builder>IOExceptionpublic boolean hasFileSet()
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1;hasFileSet in interface CloudStorageOptionsOrBuilderpublic CloudStorageOptions.FileSet getFileSet()
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1;getFileSet in interface CloudStorageOptionsOrBuilderpublic CloudStorageOptions.Builder setFileSet(CloudStorageOptions.FileSet value)
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1;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;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;public CloudStorageOptions.Builder clearFileSet()
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1;public CloudStorageOptions.FileSet.Builder getFileSetBuilder()
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1;public CloudStorageOptions.FileSetOrBuilder getFileSetOrBuilder()
The set of one or more files to scan.
.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1;getFileSetOrBuilder in interface CloudStorageOptionsOrBuilderpublic 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;getBytesLimitPerFile in interface CloudStorageOptionsOrBuilderpublic 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;value - The bytesLimitPerFile to set.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;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;getBytesLimitPerFilePercent in interface CloudStorageOptionsOrBuilderpublic 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;value - The bytesLimitPerFilePercent to set.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;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;getFileTypesList in interface CloudStorageOptionsOrBuilderpublic 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;getFileTypesCount in interface CloudStorageOptionsOrBuilderpublic 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;getFileTypes in interface CloudStorageOptionsOrBuilderindex - The index of the element to return.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;index - The index to set the value at.value - The fileTypes to set.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;value - The fileTypes to add.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;values - The fileTypes to add.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;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;getFileTypesValueList in interface CloudStorageOptionsOrBuilderpublic 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;getFileTypesValue in interface CloudStorageOptionsOrBuilderindex - The index of the value to return.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;index - The index to set the value at.value - The enum numeric value on the wire for fileTypes to set.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;value - The enum numeric value on the wire for fileTypes to add.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;values - The enum numeric values on the wire for fileTypes to add.public int getSampleMethodValue()
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;getSampleMethodValue in interface CloudStorageOptionsOrBuilderpublic CloudStorageOptions.Builder setSampleMethodValue(int value)
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;value - The enum numeric value on the wire for sampleMethod to set.public CloudStorageOptions.SampleMethod getSampleMethod()
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;getSampleMethod in interface CloudStorageOptionsOrBuilderpublic CloudStorageOptions.Builder setSampleMethod(CloudStorageOptions.SampleMethod value)
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;value - The sampleMethod to set.public CloudStorageOptions.Builder clearSampleMethod()
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;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;getFilesLimitPercent in interface CloudStorageOptionsOrBuilderpublic 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;value - The filesLimitPercent to set.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;public final CloudStorageOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>public final CloudStorageOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.Builder>Copyright © 2022 Google LLC. All rights reserved.