private static class LockComponentTupleScheme extends TupleScheme<LockComponent> {
@Override
public void write(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, LockComponent struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
oprot.writeI32(struct.type.getValue());
oprot.writeI32(struct.level.getValue());
oprot.writeString(struct.dbname);
BitSet optionals = new BitSet();
if (struct.isSetTablename()) {
optionals.set(0);