Class DiscoveryCloudStorageFilter (3.51.0)

public final class DiscoveryCloudStorageFilter extends GeneratedMessageV3 implements DiscoveryCloudStorageFilterOrBuilder

Determines which buckets will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID and bucket name.

Protobuf type google.privacy.dlp.v2.DiscoveryCloudStorageFilter

Static Fields

CLOUD_STORAGE_RESOURCE_REFERENCE_FIELD_NUMBER

public static final int CLOUD_STORAGE_RESOURCE_REFERENCE_FIELD_NUMBER
Field Value
Type Description
int

COLLECTION_FIELD_NUMBER

public static final int COLLECTION_FIELD_NUMBER
Field Value
Type Description
int

OTHERS_FIELD_NUMBER

public static final int OTHERS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DiscoveryCloudStorageFilter getDefaultInstance()
Returns
Type Description
DiscoveryCloudStorageFilter

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static DiscoveryCloudStorageFilter.Builder newBuilder()
Returns
Type Description
DiscoveryCloudStorageFilter.Builder

newBuilder(DiscoveryCloudStorageFilter prototype)

public static DiscoveryCloudStorageFilter.Builder newBuilder(DiscoveryCloudStorageFilter prototype)
Parameter
Name Description
prototype DiscoveryCloudStorageFilter
Returns
Type Description
DiscoveryCloudStorageFilter.Builder

parseDelimitedFrom(InputStream input)

public static DiscoveryCloudStorageFilter parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DiscoveryCloudStorageFilter
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiscoveryCloudStorageFilter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryCloudStorageFilter
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DiscoveryCloudStorageFilter parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DiscoveryCloudStorageFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DiscoveryCloudStorageFilter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryCloudStorageFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DiscoveryCloudStorageFilter parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DiscoveryCloudStorageFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DiscoveryCloudStorageFilter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryCloudStorageFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DiscoveryCloudStorageFilter parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DiscoveryCloudStorageFilter
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DiscoveryCloudStorageFilter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryCloudStorageFilter
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DiscoveryCloudStorageFilter parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DiscoveryCloudStorageFilter
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiscoveryCloudStorageFilter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryCloudStorageFilter
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DiscoveryCloudStorageFilter parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DiscoveryCloudStorageFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DiscoveryCloudStorageFilter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryCloudStorageFilter
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DiscoveryCloudStorageFilter> parser()
Returns
Type Description
Parser<DiscoveryCloudStorageFilter>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCloudStorageResourceReference()

public CloudStorageResourceReference getCloudStorageResourceReference()

Optional. The bucket to scan. Targets including this can only include one target (the target with this bucket). This enables profiling the contents of a single bucket, while the other options allow for easy profiling of many bucets within a project or an organization.

.google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CloudStorageResourceReference

The cloudStorageResourceReference.

getCloudStorageResourceReferenceOrBuilder()

public CloudStorageResourceReferenceOrBuilder getCloudStorageResourceReferenceOrBuilder()

Optional. The bucket to scan. Targets including this can only include one target (the target with this bucket). This enables profiling the contents of a single bucket, while the other options allow for easy profiling of many bucets within a project or an organization.

.google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CloudStorageResourceReferenceOrBuilder

getCollection()

public FileStoreCollection getCollection()

Optional. A specific set of buckets for this filter to apply to.

.google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FileStoreCollection

The collection.

getCollectionOrBuilder()

public FileStoreCollectionOrBuilder getCollectionOrBuilder()

Optional. A specific set of buckets for this filter to apply to.

.google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FileStoreCollectionOrBuilder

getDefaultInstanceForType()

public DiscoveryCloudStorageFilter getDefaultInstanceForType()
Returns
Type Description
DiscoveryCloudStorageFilter

getFilterCase()

public DiscoveryCloudStorageFilter.FilterCase getFilterCase()
Returns
Type Description
DiscoveryCloudStorageFilter.FilterCase

getOthers()

public AllOtherResources getOthers()

Optional. Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically.

.google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AllOtherResources

The others.

getOthersOrBuilder()

public AllOtherResourcesOrBuilder getOthersOrBuilder()

Optional. Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically.

.google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AllOtherResourcesOrBuilder

getParserForType()

public Parser<DiscoveryCloudStorageFilter> getParserForType()
Returns
Type Description
Parser<DiscoveryCloudStorageFilter>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCloudStorageResourceReference()

public boolean hasCloudStorageResourceReference()

Optional. The bucket to scan. Targets including this can only include one target (the target with this bucket). This enables profiling the contents of a single bucket, while the other options allow for easy profiling of many bucets within a project or an organization.

.google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the cloudStorageResourceReference field is set.

hasCollection()

public boolean hasCollection()

Optional. A specific set of buckets for this filter to apply to.

.google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the collection field is set.

hasOthers()

public boolean hasOthers()

Optional. Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically.

.google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the others field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DiscoveryCloudStorageFilter.Builder newBuilderForType()
Returns
Type Description
DiscoveryCloudStorageFilter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DiscoveryCloudStorageFilter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DiscoveryCloudStorageFilter.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DiscoveryCloudStorageFilter.Builder toBuilder()
Returns
Type Description
DiscoveryCloudStorageFilter.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException