/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import { SearchSearchQueryFromJSON, SearchSearchQueryToJSON, } from './SearchSearchQuery';
/**
 * @export
 */
export const SearchIndexQueryConcreteTypeEnum = {
    org_sagebionetworks_repo_model_search_table_SearchIndexQuery: 'org.sagebionetworks.repo.model.search.table.SearchIndexQuery'
};
/**
 * @export
 */
export const SearchIndexQueryResponsePartsEnum = {
    HITS: 'HITS',
    TOTAL_HITS: 'TOTAL_HITS',
    SELECT_COLUMNS: 'SELECT_COLUMNS'
};
/**
 * Check if a given object implements the SearchIndexQuery interface.
 */
export function instanceOfSearchIndexQuery(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(SearchIndexQueryConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function SearchIndexQueryFromJSON(json) {
    return SearchIndexQueryFromJSONTyped(json, false);
}
export function SearchIndexQueryFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'searchIndexId': json['searchIndexId'] == null ? undefined : json['searchIndexId'],
        'searchQuery': json['searchQuery'] == null ? undefined : SearchSearchQueryFromJSON(json['searchQuery']),
        'responseParts': json['responseParts'] == null ? undefined : new Set(json['responseParts']),
    };
}
export function SearchIndexQueryToJSON(json) {
    return SearchIndexQueryToJSONTyped(json, false);
}
export function SearchIndexQueryToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'searchIndexId': value['searchIndexId'],
        'searchQuery': SearchSearchQueryToJSON(value['searchQuery']),
        'responseParts': value['responseParts'] == null ? undefined : Array.from(value['responseParts']),
    };
}
//# sourceMappingURL=SearchIndexQuery.js.map