Class DiscoveryCloudStorageFilter.Builder (3.51.0)

public static final class DiscoveryCloudStorageFilter.Builder extends GeneratedMessageV3.Builder<DiscoveryCloudStorageFilter.Builder> 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 Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryCloudStorageFilter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiscoveryCloudStorageFilter.Builder
Overrides

build()

public DiscoveryCloudStorageFilter build()
Returns
Type Description
DiscoveryCloudStorageFilter

buildPartial()

public DiscoveryCloudStorageFilter buildPartial()
Returns
Type Description
DiscoveryCloudStorageFilter

clear()

public DiscoveryCloudStorageFilter.Builder clear()
Returns
Type Description
DiscoveryCloudStorageFilter.Builder
Overrides

clearCloudStorageResourceReference()

public DiscoveryCloudStorageFilter.Builder clearCloudStorageResourceReference()

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
DiscoveryCloudStorageFilter.Builder

clearCollection()

public DiscoveryCloudStorageFilter.Builder clearCollection()

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
DiscoveryCloudStorageFilter.Builder

clearField(Descriptors.FieldDescriptor field)

public DiscoveryCloudStorageFilter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DiscoveryCloudStorageFilter.Builder
Overrides

clearFilter()

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

clearOneof(Descriptors.OneofDescriptor oneof)

public DiscoveryCloudStorageFilter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DiscoveryCloudStorageFilter.Builder
Overrides

clearOthers()

public DiscoveryCloudStorageFilter.Builder clearOthers()

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
DiscoveryCloudStorageFilter.Builder

clone()

public DiscoveryCloudStorageFilter.Builder clone()
Returns
Type Description
DiscoveryCloudStorageFilter.Builder
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.

getCloudStorageResourceReferenceBuilder()

public CloudStorageResourceReference.Builder getCloudStorageResourceReferenceBuilder()

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.Builder

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.

getCollectionBuilder()

public FileStoreCollection.Builder getCollectionBuilder()

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.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getOthersBuilder()

public AllOtherResources.Builder getOthersBuilder()

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.Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCloudStorageResourceReference(CloudStorageResourceReference value)

public DiscoveryCloudStorageFilter.Builder mergeCloudStorageResourceReference(CloudStorageResourceReference value)

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];

Parameter
Name Description
value CloudStorageResourceReference
Returns
Type Description
DiscoveryCloudStorageFilter.Builder

mergeCollection(FileStoreCollection value)

public DiscoveryCloudStorageFilter.Builder mergeCollection(FileStoreCollection value)

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

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

Parameter
Name Description
value FileStoreCollection
Returns
Type Description
DiscoveryCloudStorageFilter.Builder

mergeFrom(DiscoveryCloudStorageFilter other)

public DiscoveryCloudStorageFilter.Builder mergeFrom(DiscoveryCloudStorageFilter other)
Parameter
Name Description
other DiscoveryCloudStorageFilter
Returns
Type Description
DiscoveryCloudStorageFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DiscoveryCloudStorageFilter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryCloudStorageFilter.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DiscoveryCloudStorageFilter.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DiscoveryCloudStorageFilter.Builder
Overrides

mergeOthers(AllOtherResources value)

public DiscoveryCloudStorageFilter.Builder mergeOthers(AllOtherResources value)

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];

Parameter
Name Description
value AllOtherResources
Returns
Type Description
DiscoveryCloudStorageFilter.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryCloudStorageFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiscoveryCloudStorageFilter.Builder
Overrides

setCloudStorageResourceReference(CloudStorageResourceReference value)

public DiscoveryCloudStorageFilter.Builder setCloudStorageResourceReference(CloudStorageResourceReference value)

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];

Parameter
Name Description
value CloudStorageResourceReference
Returns
Type Description
DiscoveryCloudStorageFilter.Builder

setCloudStorageResourceReference(CloudStorageResourceReference.Builder builderForValue)

public DiscoveryCloudStorageFilter.Builder setCloudStorageResourceReference(CloudStorageResourceReference.Builder builderForValue)

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];

Parameter
Name Description
builderForValue CloudStorageResourceReference.Builder
Returns
Type Description
DiscoveryCloudStorageFilter.Builder

setCollection(FileStoreCollection value)

public DiscoveryCloudStorageFilter.Builder setCollection(FileStoreCollection value)

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

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

Parameter
Name Description
value FileStoreCollection
Returns
Type Description
DiscoveryCloudStorageFilter.Builder

setCollection(FileStoreCollection.Builder builderForValue)

public DiscoveryCloudStorageFilter.Builder setCollection(FileStoreCollection.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue FileStoreCollection.Builder
Returns
Type Description
DiscoveryCloudStorageFilter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryCloudStorageFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiscoveryCloudStorageFilter.Builder
Overrides

setOthers(AllOtherResources value)

public DiscoveryCloudStorageFilter.Builder setOthers(AllOtherResources value)

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];

Parameter
Name Description
value AllOtherResources
Returns
Type Description
DiscoveryCloudStorageFilter.Builder

setOthers(AllOtherResources.Builder builderForValue)

public DiscoveryCloudStorageFilter.Builder setOthers(AllOtherResources.Builder builderForValue)

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];

Parameter
Name Description
builderForValue AllOtherResources.Builder
Returns
Type Description
DiscoveryCloudStorageFilter.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DiscoveryCloudStorageFilter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DiscoveryCloudStorageFilter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryCloudStorageFilter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiscoveryCloudStorageFilter.Builder
Overrides