Class DatabaseResourceRegex

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

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

    • PROJECT_ID_REGEX_FIELD_NUMBER

      public static final int PROJECT_ID_REGEX_FIELD_NUMBER
      See Also:
    • INSTANCE_REGEX_FIELD_NUMBER

      public static final int INSTANCE_REGEX_FIELD_NUMBER
      See Also:
    • DATABASE_REGEX_FIELD_NUMBER

      public static final int DATABASE_REGEX_FIELD_NUMBER
      See Also:
    • DATABASE_RESOURCE_NAME_REGEX_FIELD_NUMBER

      public static final int DATABASE_RESOURCE_NAME_REGEX_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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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 DatabaseResourceRegex parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static DatabaseResourceRegex.Builder newBuilder()
    • newBuilder

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

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

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

      public static DatabaseResourceRegex getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<DatabaseResourceRegex> 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 DatabaseResourceRegex getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder