public static Likelihood forNumber(int value) {
    switch (value) {
      case 0:
        return UNKNOWN;
      case 1:
        return VERY_UNLIKELY;
      case 2:
        return UNLIKELY;
      case 3:
        return POSSIBLE;
      case 4:
        return LIKELY;
      case 5:
        return VERY_LIKELY;
      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-vision/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Likelihood.java