Package com.google.privacy.dlp.v2
Class CloudStorageOptions
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class CloudStorageOptions
extends com.google.protobuf.GeneratedMessage
implements CloudStorageOptionsOrBuilder
Options defining a file or a set of files within a Cloud Storage bucket.Protobuf type
google.privacy.dlp.v2.CloudStorageOptions- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOptions defining a file or a set of files within a Cloud Storage bucket.static final classSet of files to scan.static interfacestatic enumHow to sample bytes if not all bytes are scanned.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongMax number of bytes to scan from a file.intMax percentage of bytes to scan from a file.static CloudStorageOptionsstatic final com.google.protobuf.Descriptors.DescriptorThe 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.com.google.protobuf.Parser<CloudStorageOptions>How to sample the data.intHow to sample the data.intbooleanThe set of one or more files to scan.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic CloudStorageOptions.Builderstatic CloudStorageOptions.BuildernewBuilder(CloudStorageOptions prototype) protected CloudStorageOptions.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
FILE_SET_FIELD_NUMBER
public static final int FILE_SET_FIELD_NUMBER- See Also:
-
BYTES_LIMIT_PER_FILE_FIELD_NUMBER
public static final int BYTES_LIMIT_PER_FILE_FIELD_NUMBER- See Also:
-
BYTES_LIMIT_PER_FILE_PERCENT_FIELD_NUMBER
public static final int BYTES_LIMIT_PER_FILE_PERCENT_FIELD_NUMBER- See Also:
-
FILE_TYPES_FIELD_NUMBER
public static final int FILE_TYPES_FIELD_NUMBER- See Also:
-
SAMPLE_METHOD_FIELD_NUMBER
public static final int SAMPLE_METHOD_FIELD_NUMBER- See Also:
-
FILES_LIMIT_PERCENT_FIELD_NUMBER
public static final int FILES_LIMIT_PERCENT_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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()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.
-
getSampleMethod
How to sample the data.
.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.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static CloudStorageOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CloudStorageOptions.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-