public boolean isSet(_Fields field) {
    if (field == null) {
      throw new java.lang.IllegalArgumentException();
    }

    switch (field) {
    case PKTABLE_DB:
      return isSetPktable_db();
    case PKTABLE_NAME:
      return isSetPktable_name();
    case PKCOLUMN_NAME:
      return isSetPkcolumn_name();
    case FKTABLE_DB:
      return isSetFktable_db();
    case FKTABLE_NAME:
      return isSetFktable_name();
    case FKCOLUMN_NAME:
      return isSetFkcolumn_name();
    case KEY_SEQ:
      return isSetKey_seq();
    case UPDATE_RULE:
      return isSetUpdate_rule();
    case DELETE_RULE:
      return isSetDelete_rule();
    case FK_NAME:
      return isSetFk_name();
    case PK_NAME:
      return isSetPk_name();
    case ENABLE_CSTR:
      return isSetEnable_cstr();
    case VALIDATE_CSTR:
      return isSetValidate_cstr();
    case RELY_CSTR:
      return isSetRely_cstr();
    case CAT_NAME:
      return isSetCatName();
    }
    throw new java.lang.IllegalStateException();
  }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLForeignKey.java