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

    switch (field) {
    case LOCKID:
      return isSetLockid();
    case DBNAME:
      return isSetDbname();
    case TABLENAME:
      return isSetTablename();
    case PARTNAME:
      return isSetPartname();
    case STATE:
      return isSetState();
    case TYPE:
      return isSetType();
    case TXNID:
      return isSetTxnid();
    case LASTHEARTBEAT:
      return isSetLastheartbeat();
    case ACQUIREDAT:
      return isSetAcquiredat();
    case USER:
      return isSetUser();
    case HOSTNAME:
      return isSetHostname();
    case HEARTBEAT_COUNT:
      return isSetHeartbeatCount();
    case AGENT_INFO:
      return isSetAgentInfo();
    case BLOCKED_BY_EXT_ID:
      return isSetBlockedByExtId();
    case BLOCKED_BY_INT_ID:
      return isSetBlockedByIntId();
    case LOCK_ID_INTERNAL:
      return isSetLockIdInternal();
    }
    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/ShowLocksResponseElement.java