code: public void setContents(ByteArraySegment contents) {
          Preconditions.checkNotNull(contents, "contents");
          Preconditions.checkState(this.contents == null, "This operation has already had its contents set.");
          this.contents = contents;
      }
docs: Sets the Contents of this MetadataCheckpointOperation.
  
  @param contents The contents to set.