public static PbBodyType valueOf(int value) {
      switch (value) {
        case 0: return STATIC;
        case 1: return DYNAMIC;
        case 2: return KINEMATIC;
        default: return null;
      }
    }