public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeMessage(1, position_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeInt32(2, region_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeInt32(3, numMinerals_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        output.writeInt32(4, numGas_);
      }
      for (int i = 0; i < minerals_.size(); i++) {
        output.writeMessage(5, minerals_.get(i));
      }
      for (int i = 0; i < staticMinerals_.size(); i++) {
        output.writeMessage(6, staticMinerals_.get(i));
      }
      for (int i = 0; i < geysers_.size(); i++) {
        output.writeMessage(7, geysers_.get(i));
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        output.writeBool(8, island_);
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        output.writeBool(10, mineralOnly_);
      }
      if (((bitField0_ & 0x00000100) == 0x00000100)) {
        output.writeBool(11, startLocation_);
      }
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt32(12, id_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeMessage(13, tilePosition_);
      }
      getUnknownFields().writeTo(output);
    }