code: public void set(EditLogLedgerMetadata metadata) {
      logVersion = metadata.getLogVersion();
      ledgerId = metadata.getLedgerId();
      firstTxId = metadata.getFirstTxId();
      lastTxId = metadata.getLastTxId();
    }
docs: Update internal state with a specified EditLogLedgerMetadata before
  serializing with {@link #write(DataOutput)}
  @param metadata The metadata to serialize to a byte array