public static DegreeType forNumber(int value) {
    switch (value) {
      case 0:
        return DEGREE_TYPE_UNSPECIFIED;
      case 1:
        return PRIMARY_EDUCATION;
      case 2:
        return LOWER_SECONDARY_EDUCATION;
      case 3:
        return UPPER_SECONDARY_EDUCATION;
      case 4:
        return ADULT_REMEDIAL_EDUCATION;
      case 5:
        return ASSOCIATES_OR_EQUIVALENT;
      case 6:
        return BACHELORS_OR_EQUIVALENT;
      case 7:
        return MASTERS_OR_EQUIVALENT;
      case 8:
        return DOCTORAL_OR_EQUIVALENT;
      default:
        return null;
    }
  }
@param value The numeric wire value of the corresponding enum entry.
@return The enum associated with the given numeric wire value.
java-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/DegreeType.java