@Override
    public int hashCode() {
        return Objects.hash(segmentId, startOffset, endOffset, maxTimestampMs, segmentLeaderEpochs, segmentSizeInBytes, customMetadata, state);
    }
Returns the current state of this remote log segment. It can be any of the below
<ul>
    {@link RemoteLogSegmentState#COPY_SEGMENT_STARTED}
    {@link RemoteLogSegmentState#COPY_SEGMENT_FINISHED}
    {@link RemoteLogSegmentState#DELETE_SEGMENT_STARTED}
    {@link RemoteLogSegmentState#DELETE_SEGMENT_FINISHED}
</ul>
storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/RemoteLogSegmentMetadataSnapshot.java