public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
    switch (field) {
    case TXNID:
      if (value == null) {
        unsetTxnid();
      } else {
        setTxnid((java.lang.Long)value);
      }
      break;

    case REPL_POLICY:
      if (value == null) {
        unsetReplPolicy();
      } else {
        setReplPolicy((java.lang.String)value);
      }
      break;

    case WRITE_EVENT_INFOS:
      if (value == null) {
        unsetWriteEventInfos();
      } else {
        setWriteEventInfos((java.util.List<WriteEventInfo>)value);
      }
      break;

    case REPL_LAST_ID_INFO:
      if (value == null) {
        unsetReplLastIdInfo();
      } else {
        setReplLastIdInfo((ReplLastIdInfo)value);
      }
      break;

    case KEY_VALUE:
      if (value == null) {
        unsetKeyValue();
      } else {
        setKeyValue((CommitTxnKeyValue)value);
      }
      break;

    case EXCL_WRITE_ENABLED:
      if (value == null) {
        unsetExclWriteEnabled();
      } else {
        setExclWriteEnabled((java.lang.Boolean)value);
      }
      break;

    case TXN_TYPE:
      if (value == null) {
        unsetTxn_type();
      } else {
        setTxn_type((TxnType)value);
      }
      break;

    }
  }
Returns true if field txn_type 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