Class DiscoveryCloudSqlConditions.Builder

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

public static final class DiscoveryCloudSqlConditions.Builder extends com.google.protobuf.GeneratedMessage.Builder<DiscoveryCloudSqlConditions.Builder> implements DiscoveryCloudSqlConditionsOrBuilder
 Requirements that must be true before a table is profiled for the
 first time.
 
Protobuf type google.privacy.dlp.v2.DiscoveryCloudSqlConditions
  • 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<DiscoveryCloudSqlConditions.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<DiscoveryCloudSqlConditions.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<DiscoveryCloudSqlConditions.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public DiscoveryCloudSqlConditions.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<DiscoveryCloudSqlConditions.Builder>
      Throws:
      IOException
    • getDatabaseEnginesList

      public List<DiscoveryCloudSqlConditions.DatabaseEngine> getDatabaseEnginesList()
       Optional. Database engines that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDatabaseEnginesList in interface DiscoveryCloudSqlConditionsOrBuilder
      Returns:
      A list containing the databaseEngines.
    • getDatabaseEnginesCount

      public int getDatabaseEnginesCount()
       Optional. Database engines that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDatabaseEnginesCount in interface DiscoveryCloudSqlConditionsOrBuilder
      Returns:
      The count of databaseEngines.
    • getDatabaseEngines

      public DiscoveryCloudSqlConditions.DatabaseEngine getDatabaseEngines(int index)
       Optional. Database engines that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDatabaseEngines in interface DiscoveryCloudSqlConditionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The databaseEngines at the given index.
    • setDatabaseEngines

       Optional. Database engines that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The databaseEngines to set.
      Returns:
      This builder for chaining.
    • addDatabaseEngines

       Optional. Database engines that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The databaseEngines to add.
      Returns:
      This builder for chaining.
    • addAllDatabaseEngines

       Optional. Database engines that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The databaseEngines to add.
      Returns:
      This builder for chaining.
    • clearDatabaseEngines

      public DiscoveryCloudSqlConditions.Builder clearDatabaseEngines()
       Optional. Database engines that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getDatabaseEnginesValueList

      public List<Integer> getDatabaseEnginesValueList()
       Optional. Database engines that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDatabaseEnginesValueList in interface DiscoveryCloudSqlConditionsOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for databaseEngines.
    • getDatabaseEnginesValue

      public int getDatabaseEnginesValue(int index)
       Optional. Database engines that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDatabaseEnginesValue in interface DiscoveryCloudSqlConditionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of databaseEngines at the given index.
    • setDatabaseEnginesValue

      public DiscoveryCloudSqlConditions.Builder setDatabaseEnginesValue(int index, int value)
       Optional. Database engines that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for databaseEngines to set.
      Returns:
      This builder for chaining.
    • addDatabaseEnginesValue

      public DiscoveryCloudSqlConditions.Builder addDatabaseEnginesValue(int value)
       Optional. Database engines that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for databaseEngines to add.
      Returns:
      This builder for chaining.
    • addAllDatabaseEnginesValue

      public DiscoveryCloudSqlConditions.Builder addAllDatabaseEnginesValue(Iterable<Integer> values)
       Optional. Database engines that should be profiled.
       Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified.
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The enum numeric values on the wire for databaseEngines to add.
      Returns:
      This builder for chaining.
    • getTypesList

       Data profiles will only be generated for the database resource types
       specified in this field.
       If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3;
      Specified by:
      getTypesList in interface DiscoveryCloudSqlConditionsOrBuilder
      Returns:
      A list containing the types.
    • getTypesCount

      public int getTypesCount()
       Data profiles will only be generated for the database resource types
       specified in this field.
       If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3;
      Specified by:
      getTypesCount in interface DiscoveryCloudSqlConditionsOrBuilder
      Returns:
      The count of types.
    • getTypes

       Data profiles will only be generated for the database resource types
       specified in this field.
       If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3;
      Specified by:
      getTypes in interface DiscoveryCloudSqlConditionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The types at the given index.
    • setTypes

       Data profiles will only be generated for the database resource types
       specified in this field.
       If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3;
      Parameters:
      index - The index to set the value at.
      value - The types to set.
      Returns:
      This builder for chaining.
    • addTypes

       Data profiles will only be generated for the database resource types
       specified in this field.
       If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3;
      Parameters:
      value - The types to add.
      Returns:
      This builder for chaining.
    • addAllTypes

       Data profiles will only be generated for the database resource types
       specified in this field.
       If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3;
      Parameters:
      values - The types to add.
      Returns:
      This builder for chaining.
    • clearTypes

       Data profiles will only be generated for the database resource types
       specified in this field.
       If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3;
      Returns:
      This builder for chaining.
    • getTypesValueList

      public List<Integer> getTypesValueList()
       Data profiles will only be generated for the database resource types
       specified in this field.
       If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3;
      Specified by:
      getTypesValueList in interface DiscoveryCloudSqlConditionsOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for types.
    • getTypesValue

      public int getTypesValue(int index)
       Data profiles will only be generated for the database resource types
       specified in this field.
       If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3;
      Specified by:
      getTypesValue in interface DiscoveryCloudSqlConditionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of types at the given index.
    • setTypesValue

      public DiscoveryCloudSqlConditions.Builder setTypesValue(int index, int value)
       Data profiles will only be generated for the database resource types
       specified in this field.
       If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for types to set.
      Returns:
      This builder for chaining.
    • addTypesValue

      public DiscoveryCloudSqlConditions.Builder addTypesValue(int value)
       Data profiles will only be generated for the database resource types
       specified in this field.
       If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3;
      Parameters:
      value - The enum numeric value on the wire for types to add.
      Returns:
      This builder for chaining.
    • addAllTypesValue

      public DiscoveryCloudSqlConditions.Builder addAllTypesValue(Iterable<Integer> values)
       Data profiles will only be generated for the database resource types
       specified in this field.
       If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES].
       
      repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3;
      Parameters:
      values - The enum numeric values on the wire for types to add.
      Returns:
      This builder for chaining.