@Override
    public void write(org.apache.thrift.protocol.TProtocol prot, ShowLocksRequest struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetDbname()) {
        optionals.set(0);
      }
      if (struct.isSetTablename()) {
        optionals.set(1);
      }
      if (struct.isSetPartname()) {
        optionals.set(2);
      }
      if (struct.isSetIsExtended()) {
        optionals.set(3);
      }
      if (struct.isSetTxnid()) {
        optionals.set(4);
      }
      oprot.writeBitSet(optionals, 5);
      if (struct.isSetDbname()) {
        oprot.writeString(struct.dbname);
      }
      if (struct.isSetTablename()) {
        oprot.writeString(struct.tablename);
      }
      if (struct.isSetPartname()) {
        oprot.writeString(struct.partname);
      }
      if (struct.isSetIsExtended()) {
        oprot.writeBool(struct.isExtended);
      }
      if (struct.isSetTxnid()) {
        oprot.writeI64(struct.txnid);
      }
    }
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/ShowLocksRequest.java