private long computeSizeInBytes() {
    // parent size + version size + list length size
    long size = super.sizeInBytes() + Short.BYTES + Integer.BYTES;
    for (String origin : origins) {
      // size of length field
      size += Integer.BYTES;
      // size of the byte representation of the string
      size += origin.getBytes(StandardCharsets.UTF_8).length;
    }
    // enable flag size
    size += Byte.BYTES;
    return size;
  }
@return if replication from {@link #getOrigins()} needs to enabled ({@code true}) or disabled ({@code false}).
ambry-protocol/src/main/java/com/github/ambry/protocol/ReplicationControlAdminRequest.java