@Override
    public void read(org.apache.thrift.protocol.TProtocol prot, CommitTxnRequest struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      struct.txnid = iprot.readI64();
      struct.setTxnidIsSet(true);
      java.util.BitSet incoming = iprot.readBitSet(6);
      if (incoming.get(0)) {
        struct.replPolicy = iprot.readString();
        struct.setReplPolicyIsSet(true);
      }
      if (incoming.get(1)) {
        {
          org.apache.thrift.protocol.TList _list833 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
          struct.writeEventInfos = new java.util.ArrayList<WriteEventInfo>(_list833.size);
          @org.apache.thrift.annotation.Nullable WriteEventInfo _elem834;
          for (int _i835 = 0; _i835 < _list833.size; ++_i835)
          {
            _elem834 = new WriteEventInfo();
            _elem834.read(iprot);
            struct.writeEventInfos.add(_elem834);
          }
        }
        struct.setWriteEventInfosIsSet(true);
      }
      if (incoming.get(2)) {
        struct.replLastIdInfo = new ReplLastIdInfo();
        struct.replLastIdInfo.read(iprot);
        struct.setReplLastIdInfoIsSet(true);
      }
      if (incoming.get(3)) {
        struct.keyValue = new CommitTxnKeyValue();
        struct.keyValue.read(iprot);
        struct.setKeyValueIsSet(true);
      }
      if (incoming.get(4)) {
        struct.exclWriteEnabled = iprot.readBool();
        struct.setExclWriteEnabledIsSet(true);
      }
      if (incoming.get(5)) {
        struct.txn_type = org.apache.hadoop.hive.metastore.api.TxnType.findByValue(iprot.readI32());
        struct.setTxn_typeIsSet(true);
      }
    }
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