}
}
@Override
public void read(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, LockRequest struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
{
com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TList _list407 = new com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TList(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.component = new ArrayList<LockComponent>(_list407.size);
for (int _i408 = 0; _i408 < _list407.size; ++_i408)
{
LockComponent _elem409; // required
_elem409 = new LockComponent();
_elem409.read(iprot);
struct.component.add(_elem409);
}
}
struct.setComponentIsSet(true);
struct.user = iprot.readString();
struct.setUserIsSet(true);
struct.hostname = iprot.readString();
struct.setHostnameIsSet(true);
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.txnid = iprot.readI64();
struct.setTxnidIsSet(true);
}
}