Class DiscoveryCloudSqlFilter

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.privacy.dlp.v2.DiscoveryCloudSqlFilter
All Implemented Interfaces:
DiscoveryCloudSqlFilterOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class DiscoveryCloudSqlFilter extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • COLLECTION_FIELD_NUMBER

      public static final int COLLECTION_FIELD_NUMBER
      See Also:
    • OTHERS_FIELD_NUMBER

      public static final int OTHERS_FIELD_NUMBER
      See Also:
    • DATABASE_RESOURCE_REFERENCE_FIELD_NUMBER

      public static final int DATABASE_RESOURCE_REFERENCE_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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getFilterCase

      public DiscoveryCloudSqlFilter.FilterCase getFilterCase()
      Specified by:
      getFilterCase in interface DiscoveryCloudSqlFilterOrBuilder
    • hasCollection

      public boolean hasCollection()
       A specific set of database resources for this filter to apply to.
       
      .google.privacy.dlp.v2.DatabaseResourceCollection collection = 1;
      Specified by:
      hasCollection in interface DiscoveryCloudSqlFilterOrBuilder
      Returns:
      Whether the collection field is set.
    • getCollection

      public DatabaseResourceCollection getCollection()
       A specific set of database resources for this filter to apply to.
       
      .google.privacy.dlp.v2.DatabaseResourceCollection collection = 1;
      Specified by:
      getCollection in interface DiscoveryCloudSqlFilterOrBuilder
      Returns:
      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;
      Specified by:
      getCollectionOrBuilder in interface DiscoveryCloudSqlFilterOrBuilder
    • 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;
      Specified by:
      hasOthers in interface DiscoveryCloudSqlFilterOrBuilder
      Returns:
      Whether the others field is set.
    • 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;
      Specified by:
      getOthers in interface DiscoveryCloudSqlFilterOrBuilder
      Returns:
      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;
      Specified by:
      getOthersOrBuilder in interface DiscoveryCloudSqlFilterOrBuilder
    • 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;
      Specified by:
      hasDatabaseResourceReference in interface DiscoveryCloudSqlFilterOrBuilder
      Returns:
      Whether the databaseResourceReference field is set.
    • 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;
      Specified by:
      getDatabaseResourceReference in interface DiscoveryCloudSqlFilterOrBuilder
      Returns:
      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;
      Specified by:
      getDatabaseResourceReferenceOrBuilder in interface DiscoveryCloudSqlFilterOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static DiscoveryCloudSqlFilter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DiscoveryCloudSqlFilter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DiscoveryCloudSqlFilter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DiscoveryCloudSqlFilter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DiscoveryCloudSqlFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DiscoveryCloudSqlFilter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DiscoveryCloudSqlFilter parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DiscoveryCloudSqlFilter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DiscoveryCloudSqlFilter parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DiscoveryCloudSqlFilter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DiscoveryCloudSqlFilter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DiscoveryCloudSqlFilter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public DiscoveryCloudSqlFilter.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static DiscoveryCloudSqlFilter.Builder newBuilder()
    • newBuilder

      public static DiscoveryCloudSqlFilter.Builder newBuilder(DiscoveryCloudSqlFilter prototype)
    • toBuilder

      public DiscoveryCloudSqlFilter.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected DiscoveryCloudSqlFilter.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static DiscoveryCloudSqlFilter getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DiscoveryCloudSqlFilter> parser()
    • getParserForType

      public com.google.protobuf.Parser<DiscoveryCloudSqlFilter> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public DiscoveryCloudSqlFilter getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder