@Override
    public void write(org.apache.thrift.protocol.TProtocol prot, CommitTxnRequest struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      oprot.writeI64(struct.txnid);
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetReplPolicy()) {
        optionals.set(0);
      }
      if (struct.isSetWriteEventInfos()) {
        optionals.set(1);
      }
      if (struct.isSetReplLastIdInfo()) {
        optionals.set(2);
      }
      if (struct.isSetKeyValue()) {
        optionals.set(3);
      }
      if (struct.isSetExclWriteEnabled()) {
        optionals.set(4);
      }
      if (struct.isSetTxn_type()) {
        optionals.set(5);
      }
      oprot.writeBitSet(optionals, 6);
      if (struct.isSetReplPolicy()) {
        oprot.writeString(struct.replPolicy);
      }
      if (struct.isSetWriteEventInfos()) {
        {
          oprot.writeI32(struct.writeEventInfos.size());
          for (WriteEventInfo _iter832 : struct.writeEventInfos)
          {
            _iter832.write(oprot);
          }
        }
      }
      if (struct.isSetReplLastIdInfo()) {
        struct.replLastIdInfo.write(oprot);
      }
      if (struct.isSetKeyValue()) {
        struct.keyValue.write(oprot);
      }
      if (struct.isSetExclWriteEnabled()) {
        oprot.writeBool(struct.exclWriteEnabled);
      }
      if (struct.isSetTxn_type()) {
        oprot.writeI32(struct.txn_type.getValue());
      }
    }
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