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

    switch (field) {
    case ID:
      return isSetId();
    case STATE:
      return isSetState();
    case USER:
      return isSetUser();
    case HOSTNAME:
      return isSetHostname();
    case AGENT_INFO:
      return isSetAgentInfo();
    case HEARTBEAT_COUNT:
      return isSetHeartbeatCount();
    case META_INFO:
      return isSetMetaInfo();
    case STARTED_TIME:
      return isSetStartedTime();
    case LAST_HEARTBEAT_TIME:
      return isSetLastHeartbeatTime();
    }
    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/TxnInfo.java