public static ModelType forNumber(int value) {
    switch (value) {
      case 0:
        return MODEL_TYPE_UNSPECIFIED;
      case 1:
        return IMAGE_CLASSIFICATION;
      case 2:
        return OBJECT_DETECTION;
      case 3:
        return VIDEO_CLASSIFICATION;
      case 4:
        return VIDEO_OBJECT_TRACKING;
      case 5:
        return VIDEO_ACTION_RECOGNITION;
      case 6:
        return OCCUPANCY_COUNTING;
      case 7:
        return PERSON_BLUR;
      case 8:
        return VERTEX_CUSTOM;
      case 9:
        return PRODUCT_RECOGNIZER;
      case 10:
        return TAG_RECOGNIZER;
      case 15:
        return SYNTH_ID;
      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-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ModelType.java