public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      for (int i = 0; i < staticMinerals_.size(); i++) {
        output.writeMessage(1, staticMinerals_.get(i));
      }
      for (int i = 0; i < staticGeysers_.size(); i++) {
        output.writeMessage(2, staticGeysers_.get(i));
      }
      for (int i = 0; i < staticNeutralUnits_.size(); i++) {
        output.writeMessage(3, staticNeutralUnits_.get(i));
      }
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt32(4, mapWidth_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeInt32(5, mapHeight_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBytes(6, getMapFilenameBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeBytes(7, getMapNameBytes());
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeBytes(8, getMapHashBytes());
      }
      for (int i = 0; i < walkable_.size(); i++) {
        output.writeFixed32(9, walkable_.get(i));
      }
      for (int i = 0; i < buildable_.size(); i++) {
        output.writeFixed32(10, buildable_.get(i));
      }
      for (int i = 0; i < unitTypes_.size(); i++) {
        output.writeMessage(11, unitTypes_.get(i));
      }
      for (int i = 0; i < weapons_.size(); i++) {
        output.writeMessage(12, weapons_.get(i));
      }
      for (int i = 0; i < upgrades_.size(); i++) {
        output.writeMessage(13, upgrades_.get(i));
      }
      for (int i = 0; i < techs_.size(); i++) {
        output.writeMessage(14, techs_.get(i));
      }
      for (int i = 0; i < colors_.size(); i++) {
        output.writeMessage(15, colors_.get(i));
      }
      for (int i = 0; i < startLocations_.size(); i++) {
        output.writeMessage(16, startLocations_.get(i));
      }
      for (int i = 0; i < groundHeight_.size(); i++) {
        output.writeInt32(17, groundHeight_.get(i));
      }
      for (int i = 0; i < races_.size(); i++) {
        output.writeMessage(18, races_.get(i));
      }
      getUnknownFields().writeTo(output);
    }