@Override
    public void read(org.apache.thrift.protocol.TProtocol prot, ShowLocksResponseElement struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      struct.lockid = iprot.readI64();
      struct.setLockidIsSet(true);
      struct.dbname = iprot.readString();
      struct.setDbnameIsSet(true);
      struct.state = org.apache.hadoop.hive.metastore.api.LockState.findByValue(iprot.readI32());
      struct.setStateIsSet(true);
      struct.type = org.apache.hadoop.hive.metastore.api.LockType.findByValue(iprot.readI32());
      struct.setTypeIsSet(true);
      struct.lastheartbeat = iprot.readI64();
      struct.setLastheartbeatIsSet(true);
      struct.user = iprot.readString();
      struct.setUserIsSet(true);
      struct.hostname = iprot.readString();
      struct.setHostnameIsSet(true);
      java.util.BitSet incoming = iprot.readBitSet(9);
      if (incoming.get(0)) {
        struct.tablename = iprot.readString();
        struct.setTablenameIsSet(true);
      }
      if (incoming.get(1)) {
        struct.partname = iprot.readString();
        struct.setPartnameIsSet(true);
      }
      if (incoming.get(2)) {
        struct.txnid = iprot.readI64();
        struct.setTxnidIsSet(true);
      }
      if (incoming.get(3)) {
        struct.acquiredat = iprot.readI64();
        struct.setAcquiredatIsSet(true);
      }
      if (incoming.get(4)) {
        struct.heartbeatCount = iprot.readI32();
        struct.setHeartbeatCountIsSet(true);
      }
      if (incoming.get(5)) {
        struct.agentInfo = iprot.readString();
        struct.setAgentInfoIsSet(true);
      }
      if (incoming.get(6)) {
        struct.blockedByExtId = iprot.readI64();
        struct.setBlockedByExtIdIsSet(true);
      }
      if (incoming.get(7)) {
        struct.blockedByIntId = iprot.readI64();
        struct.setBlockedByIntIdIsSet(true);
      }
      if (incoming.get(8)) {
        struct.lockIdInternal = iprot.readI64();
        struct.setLockIdInternalIsSet(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/ShowLocksResponseElement.java