@java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj
            instanceof
            com.google.cloud.storageinsights.v1.DatasetConfig.CloudStorageBuckets
                .CloudStorageBucket)) {
          return super.equals(obj);
        }
        com.google.cloud.storageinsights.v1.DatasetConfig.CloudStorageBuckets.CloudStorageBucket
            other =
                (com.google.cloud.storageinsights.v1.DatasetConfig.CloudStorageBuckets
                        .CloudStorageBucket)
                    obj;

        if (!getCloudStorageBucketCase().equals(other.getCloudStorageBucketCase())) return false;
        switch (cloudStorageBucketCase_) {
          case 1:
            if (!getBucketName().equals(other.getBucketName())) return false;
            break;
          case 2:
            if (!getBucketPrefixRegex().equals(other.getBucketPrefixRegex())) return false;
            break;
          case 0:
          default:
        }
        if (!getUnknownFields().equals(other.getUnknownFields())) return false;
        return true;
      }
<pre>
A regex pattern for bucket names matching the regex. Regex should
follow the syntax specified in `google/re2` on GitHub.
</pre>

<code>string bucket_prefix_regex = 2;</code>

@return The bytes for bucketPrefixRegex.
java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/DatasetConfig.java