code: public FileIndexBuilder putMetadata(String key, String value) {
          checkIfDestroyed();
          metadata.put(key, value);
          return this;
      }
docs: Puts metadata.
  
  @param key   metadata key
  @param value metadata value
  @return this