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

    switch (field) {
    case COMPONENT:
      return isSetComponent();
    case TXNID:
      return isSetTxnid();
    case USER:
      return isSetUser();
    case HOSTNAME:
      return isSetHostname();
    case AGENT_INFO:
      return isSetAgentInfo();
    case ZERO_WAIT_READ_ENABLED:
      return isSetZeroWaitReadEnabled();
    case EXCLUSIVE_CTAS:
      return isSetExclusiveCTAS();
    case LOCKLESS_READS_ENABLED:
      return isSetLocklessReadsEnabled();
    }
    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/LockRequest.java