public void write(org.apache.thrift.protocol.TProtocol oprot, DropDatabaseRequest struct) throws org.apache.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.name != null) {
        oprot.writeFieldBegin(NAME_FIELD_DESC);
        oprot.writeString(struct.name);
        oprot.writeFieldEnd();
      }
      if (struct.catalogName != null) {
        if (struct.isSetCatalogName()) {
          oprot.writeFieldBegin(CATALOG_NAME_FIELD_DESC);
          oprot.writeString(struct.catalogName);
          oprot.writeFieldEnd();
        }
      }
      oprot.writeFieldBegin(IGNORE_UNKNOWN_DB_FIELD_DESC);
      oprot.writeBool(struct.ignoreUnknownDb);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC);
      oprot.writeBool(struct.deleteData);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(CASCADE_FIELD_DESC);
      oprot.writeBool(struct.cascade);
      oprot.writeFieldEnd();
      if (struct.isSetSoftDelete()) {
        oprot.writeFieldBegin(SOFT_DELETE_FIELD_DESC);
        oprot.writeBool(struct.softDelete);
        oprot.writeFieldEnd();
      }
      if (struct.isSetTxnId()) {
        oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
        oprot.writeI64(struct.txnId);
        oprot.writeFieldEnd();
      }
      if (struct.isSetDeleteManagedDir()) {
        oprot.writeFieldBegin(DELETE_MANAGED_DIR_FIELD_DESC);
        oprot.writeBool(struct.deleteManagedDir);
        oprot.writeFieldEnd();
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }
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