code: public void writeTo(final OutputStream output) throws IOException {
      final CodedOutputStream codedOutput = CodedOutputStream.newInstance(output);
      writeTo(codedOutput);
      codedOutput.flush();
    }
docs: Serializes the message and writes it to {@code output}.  This is just a
  trivial wrapper around {@link #writeTo(CodedOutputStream)}.