public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
    switch (field) {
    case PKTABLE_DB:
      if (value == null) {
        unsetPktable_db();
      } else {
        setPktable_db((java.lang.String)value);
      }
      break;

    case PKTABLE_NAME:
      if (value == null) {
        unsetPktable_name();
      } else {
        setPktable_name((java.lang.String)value);
      }
      break;

    case PKCOLUMN_NAME:
      if (value == null) {
        unsetPkcolumn_name();
      } else {
        setPkcolumn_name((java.lang.String)value);
      }
      break;

    case FKTABLE_DB:
      if (value == null) {
        unsetFktable_db();
      } else {
        setFktable_db((java.lang.String)value);
      }
      break;

    case FKTABLE_NAME:
      if (value == null) {
        unsetFktable_name();
      } else {
        setFktable_name((java.lang.String)value);
      }
      break;

    case FKCOLUMN_NAME:
      if (value == null) {
        unsetFkcolumn_name();
      } else {
        setFkcolumn_name((java.lang.String)value);
      }
      break;

    case KEY_SEQ:
      if (value == null) {
        unsetKey_seq();
      } else {
        setKey_seq((java.lang.Integer)value);
      }
      break;

    case UPDATE_RULE:
      if (value == null) {
        unsetUpdate_rule();
      } else {
        setUpdate_rule((java.lang.Integer)value);
      }
      break;

    case DELETE_RULE:
      if (value == null) {
        unsetDelete_rule();
      } else {
        setDelete_rule((java.lang.Integer)value);
      }
      break;

    case FK_NAME:
      if (value == null) {
        unsetFk_name();
      } else {
        setFk_name((java.lang.String)value);
      }
      break;

    case PK_NAME:
      if (value == null) {
        unsetPk_name();
      } else {
        setPk_name((java.lang.String)value);
      }
      break;

    case ENABLE_CSTR:
      if (value == null) {
        unsetEnable_cstr();
      } else {
        setEnable_cstr((java.lang.Boolean)value);
      }
      break;

    case VALIDATE_CSTR:
      if (value == null) {
        unsetValidate_cstr();
      } else {
        setValidate_cstr((java.lang.Boolean)value);
      }
      break;

    case RELY_CSTR:
      if (value == null) {
        unsetRely_cstr();
      } else {
        setRely_cstr((java.lang.Boolean)value);
      }
      break;

    case CAT_NAME:
      if (value == null) {
        unsetCatName();
      } else {
        setCatName((java.lang.String)value);
      }
      break;

    }
  }
Returns true if field catName 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