Class DiscoveryCloudSqlFilter.Builder (3.50.0)

public static final class DiscoveryCloudSqlFilter.Builder extends GeneratedMessageV3.Builder<DiscoveryCloudSqlFilter.Builder> implements DiscoveryCloudSqlFilterOrBuilder

Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name.

Protobuf type google.privacy.dlp.v2.DiscoveryCloudSqlFilter

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiscoveryCloudSqlFilter build()
Returns
Type Description
DiscoveryCloudSqlFilter

buildPartial()

public DiscoveryCloudSqlFilter buildPartial()
Returns
Type Description
DiscoveryCloudSqlFilter

clear()

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

clearCollection()

public DiscoveryCloudSqlFilter.Builder clearCollection()

A specific set of database resources for this filter to apply to.

.google.privacy.dlp.v2.DatabaseResourceCollection collection = 1;

Returns
Type Description
DiscoveryCloudSqlFilter.Builder

clearDatabaseResourceReference()

public DiscoveryCloudSqlFilter.Builder clearDatabaseResourceReference()

The database resource to scan. Targets including this can only include one target (the target with this database resource reference).

.google.privacy.dlp.v2.DatabaseResourceReference database_resource_reference = 3;

Returns
Type Description
DiscoveryCloudSqlFilter.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFilter()

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOthers()

public DiscoveryCloudSqlFilter.Builder clearOthers()

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.AllOtherDatabaseResources others = 2;

Returns
Type Description
DiscoveryCloudSqlFilter.Builder

clone()

public DiscoveryCloudSqlFilter.Builder clone()
Returns
Type Description
DiscoveryCloudSqlFilter.Builder
Overrides

getCollection()

public DatabaseResourceCollection getCollection()

A specific set of database resources for this filter to apply to.

.google.privacy.dlp.v2.DatabaseResourceCollection collection = 1;

Returns
Type Description
DatabaseResourceCollection

The collection.

getCollectionBuilder()

public DatabaseResourceCollection.Builder getCollectionBuilder()

A specific set of database resources for this filter to apply to.

.google.privacy.dlp.v2.DatabaseResourceCollection collection = 1;

Returns
Type Description
DatabaseResourceCollection.Builder

getCollectionOrBuilder()

public DatabaseResourceCollectionOrBuilder getCollectionOrBuilder()

A specific set of database resources for this filter to apply to.

.google.privacy.dlp.v2.DatabaseResourceCollection collection = 1;

Returns
Type Description
DatabaseResourceCollectionOrBuilder

getDatabaseResourceReference()

public DatabaseResourceReference getDatabaseResourceReference()

The database resource to scan. Targets including this can only include one target (the target with this database resource reference).

.google.privacy.dlp.v2.DatabaseResourceReference database_resource_reference = 3;

Returns
Type Description
DatabaseResourceReference

The databaseResourceReference.

getDatabaseResourceReferenceBuilder()

public DatabaseResourceReference.Builder getDatabaseResourceReferenceBuilder()

The database resource to scan. Targets including this can only include one target (the target with this database resource reference).

.google.privacy.dlp.v2.DatabaseResourceReference database_resource_reference = 3;

Returns
Type Description
DatabaseResourceReference.Builder

getDatabaseResourceReferenceOrBuilder()

public DatabaseResourceReferenceOrBuilder getDatabaseResourceReferenceOrBuilder()

The database resource to scan. Targets including this can only include one target (the target with this database resource reference).

.google.privacy.dlp.v2.DatabaseResourceReference database_resource_reference = 3;

Returns
Type Description
DatabaseResourceReferenceOrBuilder

getDefaultInstanceForType()

public DiscoveryCloudSqlFilter getDefaultInstanceForType()
Returns
Type Description
DiscoveryCloudSqlFilter

getDescriptorForType()

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

getFilterCase()

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

getOthers()

public AllOtherDatabaseResources getOthers()

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.AllOtherDatabaseResources others = 2;

Returns
Type Description
AllOtherDatabaseResources

The others.

getOthersBuilder()

public AllOtherDatabaseResources.Builder getOthersBuilder()

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.AllOtherDatabaseResources others = 2;

Returns
Type Description
AllOtherDatabaseResources.Builder

getOthersOrBuilder()

public AllOtherDatabaseResourcesOrBuilder getOthersOrBuilder()

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.AllOtherDatabaseResources others = 2;

Returns
Type Description
AllOtherDatabaseResourcesOrBuilder

hasCollection()

public boolean hasCollection()

A specific set of database resources for this filter to apply to.

.google.privacy.dlp.v2.DatabaseResourceCollection collection = 1;

Returns
Type Description
boolean

Whether the collection field is set.

hasDatabaseResourceReference()

public boolean hasDatabaseResourceReference()

The database resource to scan. Targets including this can only include one target (the target with this database resource reference).

.google.privacy.dlp.v2.DatabaseResourceReference database_resource_reference = 3;

Returns
Type Description
boolean

Whether the databaseResourceReference field is set.

hasOthers()

public boolean hasOthers()

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.AllOtherDatabaseResources others = 2;

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

mergeCollection(DatabaseResourceCollection value)

public DiscoveryCloudSqlFilter.Builder mergeCollection(DatabaseResourceCollection value)

A specific set of database resources for this filter to apply to.

.google.privacy.dlp.v2.DatabaseResourceCollection collection = 1;

Parameter
Name Description
value DatabaseResourceCollection
Returns
Type Description
DiscoveryCloudSqlFilter.Builder

mergeDatabaseResourceReference(DatabaseResourceReference value)

public DiscoveryCloudSqlFilter.Builder mergeDatabaseResourceReference(DatabaseResourceReference value)

The database resource to scan. Targets including this can only include one target (the target with this database resource reference).

.google.privacy.dlp.v2.DatabaseResourceReference database_resource_reference = 3;

Parameter
Name Description
value DatabaseResourceReference
Returns
Type Description
DiscoveryCloudSqlFilter.Builder

mergeFrom(DiscoveryCloudSqlFilter other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOthers(AllOtherDatabaseResources value)

public DiscoveryCloudSqlFilter.Builder mergeOthers(AllOtherDatabaseResources value)

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.AllOtherDatabaseResources others = 2;

Parameter
Name Description
value AllOtherDatabaseResources
Returns
Type Description
DiscoveryCloudSqlFilter.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCollection(DatabaseResourceCollection value)

public DiscoveryCloudSqlFilter.Builder setCollection(DatabaseResourceCollection value)

A specific set of database resources for this filter to apply to.

.google.privacy.dlp.v2.DatabaseResourceCollection collection = 1;

Parameter
Name Description
value DatabaseResourceCollection
Returns
Type Description
DiscoveryCloudSqlFilter.Builder

setCollection(DatabaseResourceCollection.Builder builderForValue)

public DiscoveryCloudSqlFilter.Builder setCollection(DatabaseResourceCollection.Builder builderForValue)

A specific set of database resources for this filter to apply to.

.google.privacy.dlp.v2.DatabaseResourceCollection collection = 1;

Parameter
Name Description
builderForValue DatabaseResourceCollection.Builder
Returns
Type Description
DiscoveryCloudSqlFilter.Builder

setDatabaseResourceReference(DatabaseResourceReference value)

public DiscoveryCloudSqlFilter.Builder setDatabaseResourceReference(DatabaseResourceReference value)

The database resource to scan. Targets including this can only include one target (the target with this database resource reference).

.google.privacy.dlp.v2.DatabaseResourceReference database_resource_reference = 3;

Parameter
Name Description
value DatabaseResourceReference
Returns
Type Description
DiscoveryCloudSqlFilter.Builder

setDatabaseResourceReference(DatabaseResourceReference.Builder builderForValue)

public DiscoveryCloudSqlFilter.Builder setDatabaseResourceReference(DatabaseResourceReference.Builder builderForValue)

The database resource to scan. Targets including this can only include one target (the target with this database resource reference).

.google.privacy.dlp.v2.DatabaseResourceReference database_resource_reference = 3;

Parameter
Name Description
builderForValue DatabaseResourceReference.Builder
Returns
Type Description
DiscoveryCloudSqlFilter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOthers(AllOtherDatabaseResources value)

public DiscoveryCloudSqlFilter.Builder setOthers(AllOtherDatabaseResources value)

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.AllOtherDatabaseResources others = 2;

Parameter
Name Description
value AllOtherDatabaseResources
Returns
Type Description
DiscoveryCloudSqlFilter.Builder

setOthers(AllOtherDatabaseResources.Builder builderForValue)

public DiscoveryCloudSqlFilter.Builder setOthers(AllOtherDatabaseResources.Builder builderForValue)

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.AllOtherDatabaseResources others = 2;

Parameter
Name Description
builderForValue AllOtherDatabaseResources.Builder
Returns
Type Description
DiscoveryCloudSqlFilter.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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