public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
    switch (field) {
    case CATALOG_NAME:
      if (value == null) {
        unsetCatalogName();
      } else {
        setCatalogName((java.lang.String)value);
      }
      break;

    case DB_NAME:
      if (value == null) {
        unsetDbName();
      } else {
        setDbName((java.lang.String)value);
      }
      break;

    case TABLE_NAME:
      if (value == null) {
        unsetTableName();
      } else {
        setTableName((java.lang.String)value);
      }
      break;

    case DELETE_DATA:
      if (value == null) {
        unsetDeleteData();
      } else {
        setDeleteData((java.lang.Boolean)value);
      }
      break;

    case ENV_CONTEXT:
      if (value == null) {
        unsetEnvContext();
      } else {
        setEnvContext((EnvironmentContext)value);
      }
      break;

    case DROP_PARTITIONS:
      if (value == null) {
        unsetDropPartitions();
      } else {
        setDropPartitions((java.lang.Boolean)value);
      }
      break;

    }
  }
Returns true if field dropPartitions 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/DropTableRequest.java