Class CloudSqlDiscoveryTarget.Builder

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

public static final class CloudSqlDiscoveryTarget.Builder extends com.google.protobuf.GeneratedMessage.Builder<CloudSqlDiscoveryTarget.Builder> implements CloudSqlDiscoveryTargetOrBuilder
 Target used to match against for discovery with Cloud SQL tables.
 
Protobuf type google.privacy.dlp.v2.CloudSqlDiscoveryTarget
  • 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<CloudSqlDiscoveryTarget.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<CloudSqlDiscoveryTarget.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<CloudSqlDiscoveryTarget.Builder>
    • getDefaultInstanceForType

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

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

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

      public CloudSqlDiscoveryTarget.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<CloudSqlDiscoveryTarget.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<CloudSqlDiscoveryTarget.Builder>
    • mergeFrom

      public CloudSqlDiscoveryTarget.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<CloudSqlDiscoveryTarget.Builder>
      Throws:
      IOException
    • getCadenceCase

      public CloudSqlDiscoveryTarget.CadenceCase getCadenceCase()
      Specified by:
      getCadenceCase in interface CloudSqlDiscoveryTargetOrBuilder
    • clearCadence

      public CloudSqlDiscoveryTarget.Builder clearCadence()
    • hasFilter

      public boolean hasFilter()
       Required. The tables the discovery cadence applies to. The first target
       with a matching filter will be the one to apply to a table.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasFilter in interface CloudSqlDiscoveryTargetOrBuilder
      Returns:
      Whether the filter field is set.
    • getFilter

      public DiscoveryCloudSqlFilter getFilter()
       Required. The tables the discovery cadence applies to. The first target
       with a matching filter will be the one to apply to a table.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFilter in interface CloudSqlDiscoveryTargetOrBuilder
      Returns:
      The filter.
    • setFilter

       Required. The tables the discovery cadence applies to. The first target
       with a matching filter will be the one to apply to a table.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED];
    • setFilter

       Required. The tables the discovery cadence applies to. The first target
       with a matching filter will be the one to apply to a table.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeFilter

       Required. The tables the discovery cadence applies to. The first target
       with a matching filter will be the one to apply to a table.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearFilter

      public CloudSqlDiscoveryTarget.Builder clearFilter()
       Required. The tables the discovery cadence applies to. The first target
       with a matching filter will be the one to apply to a table.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED];
    • getFilterBuilder

      public DiscoveryCloudSqlFilter.Builder getFilterBuilder()
       Required. The tables the discovery cadence applies to. The first target
       with a matching filter will be the one to apply to a table.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED];
    • getFilterOrBuilder

      public DiscoveryCloudSqlFilterOrBuilder getFilterOrBuilder()
       Required. The tables the discovery cadence applies to. The first target
       with a matching filter will be the one to apply to a table.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFilterOrBuilder in interface CloudSqlDiscoveryTargetOrBuilder
    • hasConditions

      public boolean hasConditions()
       In addition to matching the filter, these conditions must be true
       before a profile is generated.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2;
      Specified by:
      hasConditions in interface CloudSqlDiscoveryTargetOrBuilder
      Returns:
      Whether the conditions field is set.
    • getConditions

      public DiscoveryCloudSqlConditions getConditions()
       In addition to matching the filter, these conditions must be true
       before a profile is generated.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2;
      Specified by:
      getConditions in interface CloudSqlDiscoveryTargetOrBuilder
      Returns:
      The conditions.
    • setConditions

       In addition to matching the filter, these conditions must be true
       before a profile is generated.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2;
    • setConditions

       In addition to matching the filter, these conditions must be true
       before a profile is generated.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2;
    • mergeConditions

       In addition to matching the filter, these conditions must be true
       before a profile is generated.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2;
    • clearConditions

      public CloudSqlDiscoveryTarget.Builder clearConditions()
       In addition to matching the filter, these conditions must be true
       before a profile is generated.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2;
    • getConditionsBuilder

      public DiscoveryCloudSqlConditions.Builder getConditionsBuilder()
       In addition to matching the filter, these conditions must be true
       before a profile is generated.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2;
    • getConditionsOrBuilder

      public DiscoveryCloudSqlConditionsOrBuilder getConditionsOrBuilder()
       In addition to matching the filter, these conditions must be true
       before a profile is generated.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2;
      Specified by:
      getConditionsOrBuilder in interface CloudSqlDiscoveryTargetOrBuilder
    • hasGenerationCadence

      public boolean hasGenerationCadence()
       How often and when to update profiles. New tables that match both the
       filter and conditions are scanned as quickly as possible depending on
       system capacity.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence generation_cadence = 3;
      Specified by:
      hasGenerationCadence in interface CloudSqlDiscoveryTargetOrBuilder
      Returns:
      Whether the generationCadence field is set.
    • getGenerationCadence

      public DiscoveryCloudSqlGenerationCadence getGenerationCadence()
       How often and when to update profiles. New tables that match both the
       filter and conditions are scanned as quickly as possible depending on
       system capacity.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence generation_cadence = 3;
      Specified by:
      getGenerationCadence in interface CloudSqlDiscoveryTargetOrBuilder
      Returns:
      The generationCadence.
    • setGenerationCadence

       How often and when to update profiles. New tables that match both the
       filter and conditions are scanned as quickly as possible depending on
       system capacity.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence generation_cadence = 3;
    • setGenerationCadence

      public CloudSqlDiscoveryTarget.Builder setGenerationCadence(DiscoveryCloudSqlGenerationCadence.Builder builderForValue)
       How often and when to update profiles. New tables that match both the
       filter and conditions are scanned as quickly as possible depending on
       system capacity.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence generation_cadence = 3;
    • mergeGenerationCadence

       How often and when to update profiles. New tables that match both the
       filter and conditions are scanned as quickly as possible depending on
       system capacity.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence generation_cadence = 3;
    • clearGenerationCadence

      public CloudSqlDiscoveryTarget.Builder clearGenerationCadence()
       How often and when to update profiles. New tables that match both the
       filter and conditions are scanned as quickly as possible depending on
       system capacity.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence generation_cadence = 3;
    • getGenerationCadenceBuilder

      public DiscoveryCloudSqlGenerationCadence.Builder getGenerationCadenceBuilder()
       How often and when to update profiles. New tables that match both the
       filter and conditions are scanned as quickly as possible depending on
       system capacity.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence generation_cadence = 3;
    • getGenerationCadenceOrBuilder

      public DiscoveryCloudSqlGenerationCadenceOrBuilder getGenerationCadenceOrBuilder()
       How often and when to update profiles. New tables that match both the
       filter and conditions are scanned as quickly as possible depending on
       system capacity.
       
      .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence generation_cadence = 3;
      Specified by:
      getGenerationCadenceOrBuilder in interface CloudSqlDiscoveryTargetOrBuilder
    • hasDisabled

      public boolean hasDisabled()
       Disable profiling for database resources that match this filter.
       
      .google.privacy.dlp.v2.Disabled disabled = 4;
      Specified by:
      hasDisabled in interface CloudSqlDiscoveryTargetOrBuilder
      Returns:
      Whether the disabled field is set.
    • getDisabled

      public Disabled getDisabled()
       Disable profiling for database resources that match this filter.
       
      .google.privacy.dlp.v2.Disabled disabled = 4;
      Specified by:
      getDisabled in interface CloudSqlDiscoveryTargetOrBuilder
      Returns:
      The disabled.
    • setDisabled

      public CloudSqlDiscoveryTarget.Builder setDisabled(Disabled value)
       Disable profiling for database resources that match this filter.
       
      .google.privacy.dlp.v2.Disabled disabled = 4;
    • setDisabled

      public CloudSqlDiscoveryTarget.Builder setDisabled(Disabled.Builder builderForValue)
       Disable profiling for database resources that match this filter.
       
      .google.privacy.dlp.v2.Disabled disabled = 4;
    • mergeDisabled

      public CloudSqlDiscoveryTarget.Builder mergeDisabled(Disabled value)
       Disable profiling for database resources that match this filter.
       
      .google.privacy.dlp.v2.Disabled disabled = 4;
    • clearDisabled

      public CloudSqlDiscoveryTarget.Builder clearDisabled()
       Disable profiling for database resources that match this filter.
       
      .google.privacy.dlp.v2.Disabled disabled = 4;
    • getDisabledBuilder

      public Disabled.Builder getDisabledBuilder()
       Disable profiling for database resources that match this filter.
       
      .google.privacy.dlp.v2.Disabled disabled = 4;
    • getDisabledOrBuilder

      public DisabledOrBuilder getDisabledOrBuilder()
       Disable profiling for database resources that match this filter.
       
      .google.privacy.dlp.v2.Disabled disabled = 4;
      Specified by:
      getDisabledOrBuilder in interface CloudSqlDiscoveryTargetOrBuilder