Class DiscoveryCloudSqlFilter.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DiscoveryCloudSqlFilter.Builder>
com.google.privacy.dlp.v2.DiscoveryCloudSqlFilter.Builder
All Implemented Interfaces:
DiscoveryCloudSqlFilterOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DiscoveryCloudSqlFilter

public static final class DiscoveryCloudSqlFilter.Builder extends com.google.protobuf.GeneratedMessage.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
  • 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.Builder<DiscoveryCloudSqlFilter.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DiscoveryCloudSqlFilter.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DiscoveryCloudSqlFilter.Builder>
    • getDefaultInstanceForType

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

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

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

      public DiscoveryCloudSqlFilter.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DiscoveryCloudSqlFilter.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DiscoveryCloudSqlFilter.Builder>
    • mergeFrom

      public DiscoveryCloudSqlFilter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DiscoveryCloudSqlFilter.Builder>
      Throws:
      IOException
    • getFilterCase

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

      public DiscoveryCloudSqlFilter.Builder clearFilter()
    • 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.
    • setCollection

       A specific set of database resources for this filter to apply to.
       
      .google.privacy.dlp.v2.DatabaseResourceCollection collection = 1;
    • setCollection

       A specific set of database resources for this filter to apply to.
       
      .google.privacy.dlp.v2.DatabaseResourceCollection collection = 1;
    • mergeCollection

       A specific set of database resources for this filter to apply to.
       
      .google.privacy.dlp.v2.DatabaseResourceCollection collection = 1;
    • clearCollection

      public DiscoveryCloudSqlFilter.Builder clearCollection()
       A specific set of database resources for this filter to apply to.
       
      .google.privacy.dlp.v2.DatabaseResourceCollection collection = 1;
    • getCollectionBuilder

      public DatabaseResourceCollection.Builder getCollectionBuilder()
       A specific set of database resources for this filter to apply to.
       
      .google.privacy.dlp.v2.DatabaseResourceCollection collection = 1;
    • 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.
    • setOthers

       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;
    • setOthers

       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;
    • mergeOthers

       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;
    • 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;
    • 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;
    • 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.
    • setDatabaseResourceReference

      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;
    • setDatabaseResourceReference

      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;
    • mergeDatabaseResourceReference

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