public static Type forNumber(int value) {
      switch (value) {
        case 0:
          return TYPE_UNSPECIFIED;
        case 1:
          return FACE_DETECTION;
        case 2:
          return LANDMARK_DETECTION;
        case 3:
          return LOGO_DETECTION;
        case 4:
          return LABEL_DETECTION;
        case 5:
          return TEXT_DETECTION;
        case 11:
          return DOCUMENT_TEXT_DETECTION;
        case 6:
          return SAFE_SEARCH_DETECTION;
        case 7:
          return IMAGE_PROPERTIES;
        case 9:
          return CROP_HINTS;
        case 10:
          return WEB_DETECTION;
        case 12:
          return PRODUCT_SEARCH;
        case 19:
          return OBJECT_LOCALIZATION;
        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-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/Feature.java