public boolean isSet(_Fields field) {
    if (field == null) {
      throw new java.lang.IllegalArgumentException();
    }

    switch (field) {
    case CAT_NAME:
      return isSetCatName();
    case DB_NAME:
      return isSetDbName();
    case TABLE_NAME:
      return isSetTableName();
    case PARTITIONS:
      return isSetPartitions();
    case ENVIRONMENT_CONTEXT:
      return isSetEnvironmentContext();
    case WRITE_ID:
      return isSetWriteId();
    case VALID_WRITE_ID_LIST:
      return isSetValidWriteIdList();
    case SKIP_COLUMN_SCHEMA_FOR_PARTITION:
      return isSetSkipColumnSchemaForPartition();
    case PARTITION_COL_SCHEMA:
      return isSetPartitionColSchema();
    }
    throw new java.lang.IllegalStateException();
  }
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/AlterPartitionsRequest.java