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