@Override
    public void write(org.apache.thrift.protocol.TProtocol prot, DropDatabaseRequest struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      oprot.writeString(struct.name);
      oprot.writeBool(struct.ignoreUnknownDb);
      oprot.writeBool(struct.deleteData);
      oprot.writeBool(struct.cascade);
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetCatalogName()) {
        optionals.set(0);
      }
      if (struct.isSetSoftDelete()) {
        optionals.set(1);
      }
      if (struct.isSetTxnId()) {
        optionals.set(2);
      }
      if (struct.isSetDeleteManagedDir()) {
        optionals.set(3);
      }
      oprot.writeBitSet(optionals, 4);
      if (struct.isSetCatalogName()) {
        oprot.writeString(struct.catalogName);
      }
      if (struct.isSetSoftDelete()) {
        oprot.writeBool(struct.softDelete);
      }
      if (struct.isSetTxnId()) {
        oprot.writeI64(struct.txnId);
      }
      if (struct.isSetDeleteManagedDir()) {
        oprot.writeBool(struct.deleteManagedDir);
      }
    }
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/DropDatabaseRequest.java