Class DiscoveryCloudSqlFilter (3.59.0)

public final class DiscoveryCloudSqlFilter extends GeneratedMessageV3 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 Fields

COLLECTION_FIELD_NUMBER

public static final int COLLECTION_FIELD_NUMBER
Field Value
Type Description
int

DATABASE_RESOURCE_REFERENCE_FIELD_NUMBER

public static final int DATABASE_RESOURCE_REFERENCE_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 DiscoveryCloudSqlFilter getDefaultInstance()
Returns
Type Description
DiscoveryCloudSqlFilter

getDescriptor()

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

newBuilder()

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

newBuilder(DiscoveryCloudSqlFilter prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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.

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

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.

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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 DiscoveryCloudSqlFilter.Builder newBuilderForType()
Returns
Type Description
DiscoveryCloudSqlFilter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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