public void write(org.apache.thrift.protocol.TProtocol oprot, CommitTxnRequest struct) throws org.apache.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      oprot.writeFieldBegin(TXNID_FIELD_DESC);
      oprot.writeI64(struct.txnid);
      oprot.writeFieldEnd();
      if (struct.replPolicy != null) {
        if (struct.isSetReplPolicy()) {
          oprot.writeFieldBegin(REPL_POLICY_FIELD_DESC);
          oprot.writeString(struct.replPolicy);
          oprot.writeFieldEnd();
        }
      }
      if (struct.writeEventInfos != null) {
        if (struct.isSetWriteEventInfos()) {
          oprot.writeFieldBegin(WRITE_EVENT_INFOS_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.writeEventInfos.size()));
            for (WriteEventInfo _iter831 : struct.writeEventInfos)
            {
              _iter831.write(oprot);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.replLastIdInfo != null) {
        if (struct.isSetReplLastIdInfo()) {
          oprot.writeFieldBegin(REPL_LAST_ID_INFO_FIELD_DESC);
          struct.replLastIdInfo.write(oprot);
          oprot.writeFieldEnd();
        }
      }
      if (struct.keyValue != null) {
        if (struct.isSetKeyValue()) {
          oprot.writeFieldBegin(KEY_VALUE_FIELD_DESC);
          struct.keyValue.write(oprot);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetExclWriteEnabled()) {
        oprot.writeFieldBegin(EXCL_WRITE_ENABLED_FIELD_DESC);
        oprot.writeBool(struct.exclWriteEnabled);
        oprot.writeFieldEnd();
      }
      if (struct.txn_type != null) {
        if (struct.isSetTxn_type()) {
          oprot.writeFieldBegin(TXN_TYPE_FIELD_DESC);
          oprot.writeI32(struct.txn_type.getValue());
          oprot.writeFieldEnd();
        }
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }
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