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 classCloudStorageOptions.BuilderOptions defining a file or a set of files within a Cloud Storage bucket.static classCloudStorageOptions.FileSetSet of files to scan.static interfaceCloudStorageOptions.FileSetOrBuilderstatic classCloudStorageOptions.SampleMethodHow 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 intBYTES_LIMIT_PER_FILE_FIELD_NUMBERstatic intBYTES_LIMIT_PER_FILE_PERCENT_FIELD_NUMBERstatic intFILE_SET_FIELD_NUMBERstatic intFILE_TYPES_FIELD_NUMBERstatic intFILES_LIMIT_PERCENT_FIELD_NUMBERstatic intSAMPLE_METHOD_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)longgetBytesLimitPerFile()Max number of bytes to scan from a file.intgetBytesLimitPerFilePercent()Max percentage of bytes to scan from a file.static CloudStorageOptionsgetDefaultInstance()CloudStorageOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()CloudStorageOptions.FileSetgetFileSet()The set of one or more files to scan.CloudStorageOptions.FileSetOrBuildergetFileSetOrBuilder()The set of one or more files to scan.intgetFilesLimitPercent()Limits the number of files to scan to this percentage of the input FileSet.FileTypegetFileTypes(int index)List of file type groups to include in the scan.intgetFileTypesCount()List of file type groups to include in the scan.List<FileType>getFileTypesList()List of file type groups to include in the scan.intgetFileTypesValue(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.SampleMethodgetSampleMethod().google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;intgetSampleMethodValue().google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;intgetSerializedSize()booleanhasFileSet()The set of one or more files to scan.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static CloudStorageOptions.BuildernewBuilder()static CloudStorageOptions.BuildernewBuilder(CloudStorageOptions prototype)CloudStorageOptions.BuildernewBuilderForType()protected CloudStorageOptions.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static CloudStorageOptionsparseDelimitedFrom(InputStream input)static CloudStorageOptionsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CloudStorageOptionsparseFrom(byte[] data)static CloudStorageOptionsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CloudStorageOptionsparseFrom(com.google.protobuf.ByteString data)static CloudStorageOptionsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CloudStorageOptionsparseFrom(com.google.protobuf.CodedInputStream input)static CloudStorageOptionsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CloudStorageOptionsparseFrom(InputStream input)static CloudStorageOptionsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CloudStorageOptionsparseFrom(ByteBuffer data)static CloudStorageOptionsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<CloudStorageOptions>parser()CloudStorageOptions.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
hasFileSetin 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:
getFileSetin 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:
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. Cannot be set if de-identification is requested.
int64 bytes_limit_per_file = 4;- Specified by:
getBytesLimitPerFilein 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:
getBytesLimitPerFilePercentin 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:
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
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:
getFileTypesin 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:
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.
-
getSampleMethodValue
public int getSampleMethodValue()
.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6;- Specified by:
getSampleMethodValuein 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:
getSampleMethodin 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:
getFilesLimitPercentin interfaceCloudStorageOptionsOrBuilder- Returns:
- The filesLimitPercent.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CloudStorageOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public CloudStorageOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-