Class DatabaseResourceRegex.Builder

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

public static final class DatabaseResourceRegex.Builder extends com.google.protobuf.GeneratedMessage.Builder<DatabaseResourceRegex.Builder> implements DatabaseResourceRegexOrBuilder
 A pattern to match against one or more database resources. At least one
 pattern must be specified. Regular expressions use RE2
 [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
 under the google/re2 repository on GitHub.
 
Protobuf type google.privacy.dlp.v2.DatabaseResourceRegex
  • 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<DatabaseResourceRegex.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<DatabaseResourceRegex.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<DatabaseResourceRegex.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DatabaseResourceRegex.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<DatabaseResourceRegex.Builder>
      Throws:
      IOException
    • getProjectIdRegex

      public String getProjectIdRegex()
       For organizations, if unset, will match all projects. Has no effect
       for configurations created within a project.
       
      string project_id_regex = 1;
      Specified by:
      getProjectIdRegex in interface DatabaseResourceRegexOrBuilder
      Returns:
      The projectIdRegex.
    • getProjectIdRegexBytes

      public com.google.protobuf.ByteString getProjectIdRegexBytes()
       For organizations, if unset, will match all projects. Has no effect
       for configurations created within a project.
       
      string project_id_regex = 1;
      Specified by:
      getProjectIdRegexBytes in interface DatabaseResourceRegexOrBuilder
      Returns:
      The bytes for projectIdRegex.
    • setProjectIdRegex

      public DatabaseResourceRegex.Builder setProjectIdRegex(String value)
       For organizations, if unset, will match all projects. Has no effect
       for configurations created within a project.
       
      string project_id_regex = 1;
      Parameters:
      value - The projectIdRegex to set.
      Returns:
      This builder for chaining.
    • clearProjectIdRegex

      public DatabaseResourceRegex.Builder clearProjectIdRegex()
       For organizations, if unset, will match all projects. Has no effect
       for configurations created within a project.
       
      string project_id_regex = 1;
      Returns:
      This builder for chaining.
    • setProjectIdRegexBytes

      public DatabaseResourceRegex.Builder setProjectIdRegexBytes(com.google.protobuf.ByteString value)
       For organizations, if unset, will match all projects. Has no effect
       for configurations created within a project.
       
      string project_id_regex = 1;
      Parameters:
      value - The bytes for projectIdRegex to set.
      Returns:
      This builder for chaining.
    • getInstanceRegex

      public String getInstanceRegex()
       Regex to test the instance name against. If empty, all instances match.
       
      string instance_regex = 2;
      Specified by:
      getInstanceRegex in interface DatabaseResourceRegexOrBuilder
      Returns:
      The instanceRegex.
    • getInstanceRegexBytes

      public com.google.protobuf.ByteString getInstanceRegexBytes()
       Regex to test the instance name against. If empty, all instances match.
       
      string instance_regex = 2;
      Specified by:
      getInstanceRegexBytes in interface DatabaseResourceRegexOrBuilder
      Returns:
      The bytes for instanceRegex.
    • setInstanceRegex

      public DatabaseResourceRegex.Builder setInstanceRegex(String value)
       Regex to test the instance name against. If empty, all instances match.
       
      string instance_regex = 2;
      Parameters:
      value - The instanceRegex to set.
      Returns:
      This builder for chaining.
    • clearInstanceRegex

      public DatabaseResourceRegex.Builder clearInstanceRegex()
       Regex to test the instance name against. If empty, all instances match.
       
      string instance_regex = 2;
      Returns:
      This builder for chaining.
    • setInstanceRegexBytes

      public DatabaseResourceRegex.Builder setInstanceRegexBytes(com.google.protobuf.ByteString value)
       Regex to test the instance name against. If empty, all instances match.
       
      string instance_regex = 2;
      Parameters:
      value - The bytes for instanceRegex to set.
      Returns:
      This builder for chaining.
    • getDatabaseRegex

      public String getDatabaseRegex()
       Regex to test the database name against. If empty, all databases match.
       
      string database_regex = 3;
      Specified by:
      getDatabaseRegex in interface DatabaseResourceRegexOrBuilder
      Returns:
      The databaseRegex.
    • getDatabaseRegexBytes

      public com.google.protobuf.ByteString getDatabaseRegexBytes()
       Regex to test the database name against. If empty, all databases match.
       
      string database_regex = 3;
      Specified by:
      getDatabaseRegexBytes in interface DatabaseResourceRegexOrBuilder
      Returns:
      The bytes for databaseRegex.
    • setDatabaseRegex

      public DatabaseResourceRegex.Builder setDatabaseRegex(String value)
       Regex to test the database name against. If empty, all databases match.
       
      string database_regex = 3;
      Parameters:
      value - The databaseRegex to set.
      Returns:
      This builder for chaining.
    • clearDatabaseRegex

      public DatabaseResourceRegex.Builder clearDatabaseRegex()
       Regex to test the database name against. If empty, all databases match.
       
      string database_regex = 3;
      Returns:
      This builder for chaining.
    • setDatabaseRegexBytes

      public DatabaseResourceRegex.Builder setDatabaseRegexBytes(com.google.protobuf.ByteString value)
       Regex to test the database name against. If empty, all databases match.
       
      string database_regex = 3;
      Parameters:
      value - The bytes for databaseRegex to set.
      Returns:
      This builder for chaining.
    • getDatabaseResourceNameRegex

      public String getDatabaseResourceNameRegex()
       Regex to test the database resource's name against. An example of a
       database resource name is a table's name. Other database resource names
       like view names could be included in the future. If empty, all database
       resources match.
       
      string database_resource_name_regex = 4;
      Specified by:
      getDatabaseResourceNameRegex in interface DatabaseResourceRegexOrBuilder
      Returns:
      The databaseResourceNameRegex.
    • getDatabaseResourceNameRegexBytes

      public com.google.protobuf.ByteString getDatabaseResourceNameRegexBytes()
       Regex to test the database resource's name against. An example of a
       database resource name is a table's name. Other database resource names
       like view names could be included in the future. If empty, all database
       resources match.
       
      string database_resource_name_regex = 4;
      Specified by:
      getDatabaseResourceNameRegexBytes in interface DatabaseResourceRegexOrBuilder
      Returns:
      The bytes for databaseResourceNameRegex.
    • setDatabaseResourceNameRegex

      public DatabaseResourceRegex.Builder setDatabaseResourceNameRegex(String value)
       Regex to test the database resource's name against. An example of a
       database resource name is a table's name. Other database resource names
       like view names could be included in the future. If empty, all database
       resources match.
       
      string database_resource_name_regex = 4;
      Parameters:
      value - The databaseResourceNameRegex to set.
      Returns:
      This builder for chaining.
    • clearDatabaseResourceNameRegex

      public DatabaseResourceRegex.Builder clearDatabaseResourceNameRegex()
       Regex to test the database resource's name against. An example of a
       database resource name is a table's name. Other database resource names
       like view names could be included in the future. If empty, all database
       resources match.
       
      string database_resource_name_regex = 4;
      Returns:
      This builder for chaining.
    • setDatabaseResourceNameRegexBytes

      public DatabaseResourceRegex.Builder setDatabaseResourceNameRegexBytes(com.google.protobuf.ByteString value)
       Regex to test the database resource's name against. An example of a
       database resource name is a table's name. Other database resource names
       like view names could be included in the future. If empty, all database
       resources match.
       
      string database_resource_name_regex = 4;
      Parameters:
      value - The bytes for databaseResourceNameRegex to set.
      Returns:
      This builder for chaining.