public static BlockType forNumber(int value) {
      switch (value) {
        case 0:
          return UNKNOWN;
        case 1:
          return TEXT;
        case 2:
          return TABLE;
        case 3:
          return PICTURE;
        case 4:
          return RULER;
        case 5:
          return BARCODE;
        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-v1p1beta1/src/main/java/com/google/cloud/vision/v1p1beta1/Block.java