public final class CloudStorageOptions extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
CloudStorageOptions.Builder
Options defining a file or a set of files within a Cloud Storage
bucket.
|
static class |
CloudStorageOptions.FileSet
Set of files to scan.
|
static interface |
CloudStorageOptions.FileSetOrBuilder |
static class |
CloudStorageOptions.SampleMethod
How to sample bytes if not all bytes are scanned.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BYTES_LIMIT_PER_FILE_FIELD_NUMBER |
static int |
BYTES_LIMIT_PER_FILE_PERCENT_FIELD_NUMBER |
static int |
FILE_SET_FIELD_NUMBER |
static int |
FILE_TYPES_FIELD_NUMBER |
static int |
FILES_LIMIT_PERCENT_FIELD_NUMBER |
static int |
SAMPLE_METHOD_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getBytesLimitPerFile()
Max number of bytes to scan from a file.
|
int |
getBytesLimitPerFilePercent()
Max percentage of bytes to scan from a file.
|
static CloudStorageOptions |
getDefaultInstance() |
CloudStorageOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
CloudStorageOptions.FileSet |
getFileSet()
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.
|
com.google.protobuf.Parser<CloudStorageOptions> |
getParserForType() |
CloudStorageOptions.SampleMethod |
getSampleMethod()
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; |
int |
getSampleMethodValue()
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasFileSet()
The set of one or more files to scan.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static CloudStorageOptions.Builder |
newBuilder() |
static CloudStorageOptions.Builder |
newBuilder(CloudStorageOptions prototype) |
CloudStorageOptions.Builder |
newBuilderForType() |
protected CloudStorageOptions.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CloudStorageOptions |
parseDelimitedFrom(InputStream input) |
static CloudStorageOptions |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CloudStorageOptions |
parseFrom(byte[] data) |
static CloudStorageOptions |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CloudStorageOptions |
parseFrom(ByteBuffer data) |
static CloudStorageOptions |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CloudStorageOptions |
parseFrom(com.google.protobuf.ByteString data) |
static CloudStorageOptions |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CloudStorageOptions |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CloudStorageOptions |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CloudStorageOptions |
parseFrom(InputStream input) |
static CloudStorageOptions |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CloudStorageOptions> |
parser() |
CloudStorageOptions.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int FILE_SET_FIELD_NUMBER
public static final int BYTES_LIMIT_PER_FILE_FIELD_NUMBER
public static final int BYTES_LIMIT_PER_FILE_PERCENT_FIELD_NUMBER
public static final int FILE_TYPES_FIELD_NUMBER
public static final int SAMPLE_METHOD_FIELD_NUMBER
public static final int FILES_LIMIT_PERCENT_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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.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 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 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 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 int getSampleMethodValue()
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;getSampleMethodValue in interface CloudStorageOptionsOrBuilderpublic CloudStorageOptions.SampleMethod getSampleMethod()
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;getSampleMethod in interface CloudStorageOptionsOrBuilderpublic 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static CloudStorageOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CloudStorageOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CloudStorageOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CloudStorageOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CloudStorageOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CloudStorageOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CloudStorageOptions parseFrom(InputStream input) throws IOException
IOExceptionpublic static CloudStorageOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CloudStorageOptions parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CloudStorageOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CloudStorageOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CloudStorageOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CloudStorageOptions.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CloudStorageOptions.Builder newBuilder()
public static CloudStorageOptions.Builder newBuilder(CloudStorageOptions prototype)
public CloudStorageOptions.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CloudStorageOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CloudStorageOptions getDefaultInstance()
public static com.google.protobuf.Parser<CloudStorageOptions> parser()
public com.google.protobuf.Parser<CloudStorageOptions> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CloudStorageOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.