@java.lang.Override
      public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1) return size;

        size = 0;
        if (cloudStorageBucketCase_ == 1) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cloudStorageBucket_);
        }
        if (cloudStorageBucketCase_ == 2) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cloudStorageBucket_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }
<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