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

    switch (field) {
    case DATABASE_NAME:
      return isSetDatabaseName();
    case DESCRIPTION:
      return isSetDescription();
    case LOCATION_URI:
      return isSetLocationUri();
    case PARAMETERS:
      return isSetParameters();
    case PRIVILEGES:
      return isSetPrivileges();
    case OWNER_NAME:
      return isSetOwnerName();
    case OWNER_TYPE:
      return isSetOwnerType();
    case CATALOG_NAME:
      return isSetCatalogName();
    case CREATE_TIME:
      return isSetCreateTime();
    case MANAGED_LOCATION_URI:
      return isSetManagedLocationUri();
    case TYPE:
      return isSetType();
    case DATA_CONNECTOR_NAME:
      return isSetDataConnectorName();
    case REMOTE_DBNAME:
      return isSetRemote_dbname();
    }
    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/CreateDatabaseRequest.java