public static StateOneofCase forNumber(int value) {
      switch (value) {
        case 2: return STATE_NEW;
        case 3: return STATE_ACTIVE;
        case 4: return STATE_EXPIRED;
        case 0: return STATEONEOF_NOT_SET;
        default: return null;
      }
    }
public static StateOneofCase forNumber(int value)