@java.lang.Override
        public java.lang.String getBucketPrefixRegex() {
          java.lang.Object ref = "";
          if (cloudStorageBucketCase_ == 2) {
            ref = cloudStorageBucket_;
          }
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            if (cloudStorageBucketCase_ == 2) {
              cloudStorageBucket_ = s;
            }
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
<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 bucketPrefixRegex.
java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/DatasetConfig.java