Package com.google.privacy.dlp.v2
Class CloudStorageOptions
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.privacy.dlp.v2.CloudStorageOptions
-
- All Implemented Interfaces:
CloudStorageOptionsOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
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 typegoogle.privacy.dlp.v2.CloudStorageOptions
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field 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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
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(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 CloudStorageOptions
parseFrom(ByteBuffer data)
static CloudStorageOptions
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<CloudStorageOptions>
parser()
CloudStorageOptions.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
FILE_SET_FIELD_NUMBER
public static final int FILE_SET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BYTES_LIMIT_PER_FILE_FIELD_NUMBER
public static final int BYTES_LIMIT_PER_FILE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BYTES_LIMIT_PER_FILE_PERCENT_FIELD_NUMBER
public static final int BYTES_LIMIT_PER_FILE_PERCENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILE_TYPES_FIELD_NUMBER
public static final int FILE_TYPES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SAMPLE_METHOD_FIELD_NUMBER
public static final int SAMPLE_METHOD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILES_LIMIT_PERCENT_FIELD_NUMBER
public static final int FILES_LIMIT_PERCENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
getSampleMethod
public CloudStorageOptions.SampleMethod getSampleMethod()
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;
- Specified by:
getSampleMethod
in interfaceCloudStorageOptionsOrBuilder
- Returns:
- The sampleMethod.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CloudStorageOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudStorageOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudStorageOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudStorageOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudStorageOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudStorageOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudStorageOptions parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CloudStorageOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CloudStorageOptions parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CloudStorageOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static CloudStorageOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CloudStorageOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public CloudStorageOptions.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CloudStorageOptions.Builder newBuilder()
-
newBuilder
public static CloudStorageOptions.Builder newBuilder(CloudStorageOptions prototype)
-
toBuilder
public CloudStorageOptions.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CloudStorageOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static CloudStorageOptions getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CloudStorageOptions> parser()
-
getParserForType
public com.google.protobuf.Parser<CloudStorageOptions> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public CloudStorageOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-