private static class ShowLocksResponseElementTupleScheme extends TupleScheme<ShowLocksResponseElement> {
@Override
public void write(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, ShowLocksResponseElement struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
oprot.writeI64(struct.lockid);
oprot.writeString(struct.dbname);
oprot.writeI32(struct.state.getValue());
oprot.writeI32(struct.type.getValue());
oprot.writeI64(struct.lastheartbeat);
oprot.writeString(struct.user);