struct.setDbnameIsSet(true);
struct.state = LockState.findByValue(iprot.readI32());
struct.setStateIsSet(true);
struct.type = 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);