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

    switch (field) {
    case TXNID:
      return isSetTxnid();
    case REPL_POLICY:
      return isSetReplPolicy();
    case WRITE_EVENT_INFOS:
      return isSetWriteEventInfos();
    case REPL_LAST_ID_INFO:
      return isSetReplLastIdInfo();
    case KEY_VALUE:
      return isSetKeyValue();
    case EXCL_WRITE_ENABLED:
      return isSetExclWriteEnabled();
    case TXN_TYPE:
      return isSetTxn_type();
    }
    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/CommitTxnRequest.java