code: public void writeEnum(final int fieldNumber, final int value)
                          throws IOException {
      writeTag(fieldNumber, WireFormat.WIRETYPE_VARINT);
      writeEnumNoTag(value);
    }
docs: Write an enum field, including tag, to the stream.  Caller is responsible
  for converting the enum value to its numeric value.