public static DataType forNumber(int value) {
      switch (value) {
        case 0:
          return DATA_TYPE_UNSPECIFIED;
        case 1:
          return INTEGER;
        case 2:
          return FLOAT;
        case 3:
          return STRING;
        case 5:
          return DATETIME;
        case 7:
          return GEO_COORDINATE;
        case 8:
          return PROTO_ANY;
        case 9:
          return BOOLEAN;
        case 10:
          return LIST;
        case 6:
          return CUSTOMIZED_STRUCT;
        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/DataSchemaDetails.java