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

    switch (field) {
    case DBNAME:
      return isSetDbname();
    case TABLENAME:
      return isSetTablename();
    case PARTITIONNAME:
      return isSetPartitionname();
    case TYPE:
      return isSetType();
    case RUNAS:
      return isSetRunas();
    case PROPERTIES:
      return isSetProperties();
    case INITIATOR_ID:
      return isSetInitiatorId();
    case INITIATOR_VERSION:
      return isSetInitiatorVersion();
    case POOL_NAME:
      return isSetPoolName();
    case NUMBER_OF_BUCKETS:
      return isSetNumberOfBuckets();
    case ORDER_BY_CLAUSE:
      return isSetOrderByClause();
    }
    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/CompactionRequest.java