public static Granularity forNumber(int value) {
        switch (value) {
          case 0:
            return GRANULARITY_UNSPECIFIED;
          case 1:
            return YEAR;
          case 2:
            return MONTH;
          case 3:
            return DAY;
          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/FacetProperty.java