From 1f79eda843e49ac48b480fe51b855ba2194cb107 Mon Sep 17 00:00:00 2001 From: Pierre Millot Date: Tue, 8 Feb 2022 12:07:40 +0100 Subject: [PATCH] move model to package search --- .../model/BatchDictionaryEntriesParams.java | 2 +- .../model/DictionarySettingsParams.java | 2 +- .../model/SearchDictionaryEntriesParams.java | 2 +- .../algolia/model/{ => search}/Action.java | 2 +- .../model/{ => search}/AddApiKeyResponse.java | 2 +- .../algolia/model/{ => search}/Anchoring.java | 2 +- .../algolia/model/{ => search}/ApiKey.java | 2 +- .../{ => search}/AssignUserIdParams.java | 2 +- .../{ => search}/AutomaticFacetFilter.java | 2 +- .../{ => search}/BaseBrowseResponse.java | 2 +- .../model/{ => search}/BaseIndexSettings.java | 2 +- .../model/{ => search}/BaseSearchParams.java | 2 +- .../{ => search}/BaseSearchResponse.java | 2 +- .../BaseSearchResponseFacetsStats.java | 2 +- .../BatchAssignUserIdsParams.java | 2 +- .../model/search/BatchDictionaryEntries.java | 113 ++++++++++++++ .../search/BatchDictionaryEntriesParams.java | 113 ++++++++++++++ .../BatchDictionaryEntriesRequest.java | 2 +- .../model/{ => search}/BatchParams.java | 2 +- .../model/{ => search}/BatchResponse.java | 2 +- .../model/{ => search}/BatchWriteParams.java | 2 +- .../model/{ => search}/BrowseRequest.java | 2 +- .../model/{ => search}/BrowseResponse.java | 2 +- .../model/{ => search}/BuiltInOperation.java | 2 +- .../algolia/model/{ => search}/Condition.java | 2 +- .../model/{ => search}/Consequence.java | 2 +- .../model/{ => search}/ConsequenceHide.java | 2 +- .../model/{ => search}/ConsequenceParams.java | 2 +- .../model/{ => search}/CreatedAtObject.java | 2 +- .../model/{ => search}/CreatedAtResponse.java | 2 +- .../{ => search}/DeleteApiKeyResponse.java | 2 +- .../{ => search}/DeleteSourceResponse.java | 2 +- .../model/{ => search}/DeletedAtResponse.java | 2 +- .../model/{ => search}/DictionaryAction.java | 2 +- .../model/{ => search}/DictionaryEntry.java | 2 +- .../{ => search}/DictionaryEntryState.java | 2 +- .../{ => search}/DictionaryLanguage.java | 2 +- .../search/DictionarySettingsParams.java | 76 +++++++++ .../search/DictionarySettingsRequest.java | 76 +++++++++ .../algolia/model/{ => search}/ErrorBase.java | 2 +- .../GetDictionarySettingsResponse.java | 2 +- .../model/{ => search}/GetLogsResponse.java | 2 +- .../GetLogsResponseInnerQueries.java | 2 +- .../{ => search}/GetLogsResponseLogs.java | 2 +- .../model/{ => search}/GetObjectsParams.java | 2 +- .../{ => search}/GetObjectsResponse.java | 2 +- .../model/{ => search}/GetTaskResponse.java | 2 +- .../{ => search}/GetTopUserIdsResponse.java | 2 +- .../model/{ => search}/HighlightResult.java | 2 +- .../com/algolia/model/{ => search}/Hit.java | 2 +- .../model/{ => search}/IndexSettings.java | 2 +- .../IndexSettingsAsSearchParams.java | 2 +- .../algolia/model/{ => search}/Indice.java | 2 +- .../com/algolia/model/{ => search}/Key.java | 2 +- .../algolia/model/{ => search}/Languages.java | 2 +- .../{ => search}/ListApiKeysResponse.java | 2 +- .../{ => search}/ListClustersResponse.java | 2 +- .../{ => search}/ListIndicesResponse.java | 2 +- .../{ => search}/ListUserIdsResponse.java | 2 +- .../{ => search}/MultipleBatchResponse.java | 2 +- .../MultipleGetObjectsParams.java | 2 +- .../model/{ => search}/MultipleQueries.java | 2 +- .../{ => search}/MultipleQueriesParams.java | 2 +- .../{ => search}/MultipleQueriesResponse.java | 2 +- .../{ => search}/MultipleQueriesStrategy.java | 2 +- .../{ => search}/MultipleQueriesType.java | 2 +- .../{ => search}/OneOfintegerstring.java | 0 .../OneOfstringbuiltInOperation.java | 0 .../algolia/model/{ => search}/Operation.java | 2 +- .../{ => search}/OperationIndexParams.java | 2 +- .../model/{ => search}/OperationType.java | 2 +- .../algolia/model/{ => search}/Params.java | 2 +- .../algolia/model/{ => search}/Promote.java | 2 +- .../model/{ => search}/RankingInfo.java | 2 +- .../RankingInfoMatchedGeoLocation.java | 2 +- .../{ => search}/RemoveUserIdResponse.java | 2 +- .../{ => search}/ReplaceSourceResponse.java | 2 +- .../{ => search}/RequiredSearchParams.java | 2 +- .../com/algolia/model/{ => search}/Rule.java | 2 +- .../{ => search}/SaveObjectResponse.java | 2 +- .../{ => search}/SaveSynonymResponse.java | 2 +- .../algolia/model/{ => search}/ScopeType.java | 2 +- .../model/search/SearchDictionaryEntries.java | 146 ++++++++++++++++++ .../search/SearchDictionaryEntriesParams.java | 146 ++++++++++++++++++ .../SearchForFacetValuesRequest.java | 2 +- .../SearchForFacetValuesResponse.java | 2 +- ...SearchForFacetValuesResponseFacetHits.java | 2 +- .../model/{ => search}/SearchHits.java | 2 +- .../model/{ => search}/SearchParams.java | 2 +- .../{ => search}/SearchParamsObject.java | 2 +- .../{ => search}/SearchParamsString.java | 2 +- .../model/{ => search}/SearchResponse.java | 2 +- .../model/{ => search}/SearchRulesParams.java | 2 +- .../{ => search}/SearchRulesResponse.java | 2 +- .../{ => search}/SearchSynonymsResponse.java | 2 +- .../{ => search}/SearchUserIdsParams.java | 2 +- .../{ => search}/SearchUserIdsResponse.java | 2 +- .../SearchUserIdsResponseHighlightResult.java | 2 +- .../SearchUserIdsResponseHits.java | 2 +- .../model/{ => search}/SnippetResult.java | 2 +- .../algolia/model/{ => search}/Source.java | 2 +- .../model/{ => search}/StandardEntries.java | 2 +- .../model/{ => search}/SynonymHit.java | 2 +- .../SynonymHitHighlightResult.java | 2 +- .../model/{ => search}/SynonymType.java | 2 +- .../algolia/model/{ => search}/TimeRange.java | 2 +- .../{ => search}/UpdateApiKeyResponse.java | 2 +- .../model/{ => search}/UpdatedAtResponse.java | 2 +- .../UpdatedAtWithObjectIdResponse.java | 2 +- .../{ => search}/UpdatedRuleResponse.java | 2 +- .../algolia/model/{ => search}/UserId.java | 2 +- .../com/algolia/search/SearchApi.java | 2 +- openapitools.json | 2 +- .../main/java/com/algolia/playground/App.java | 2 +- scripts/post-gen/java.sh | 4 +- .../java/libraries/okhttp-gson/api.mustache | 2 +- .../requests/templates/java/requests.mustache | 2 +- 117 files changed, 780 insertions(+), 110 deletions(-) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/Action.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/AddApiKeyResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/Anchoring.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/ApiKey.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/AssignUserIdParams.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/AutomaticFacetFilter.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/BaseBrowseResponse.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/BaseIndexSettings.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/BaseSearchParams.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/BaseSearchResponse.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/BaseSearchResponseFacetsStats.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/BatchAssignUserIdsParams.java (98%) create mode 100644 clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntries.java create mode 100644 clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntriesParams.java rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/BatchDictionaryEntriesRequest.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/BatchParams.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/BatchResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/BatchWriteParams.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/BrowseRequest.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/BrowseResponse.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/BuiltInOperation.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/Condition.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/Consequence.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/ConsequenceHide.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/ConsequenceParams.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/CreatedAtObject.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/CreatedAtResponse.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/DeleteApiKeyResponse.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/DeleteSourceResponse.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/DeletedAtResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/DictionaryAction.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/DictionaryEntry.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/DictionaryEntryState.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/DictionaryLanguage.java (98%) create mode 100644 clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionarySettingsParams.java create mode 100644 clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionarySettingsRequest.java rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/ErrorBase.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/GetDictionarySettingsResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/GetLogsResponse.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/GetLogsResponseInnerQueries.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/GetLogsResponseLogs.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/GetObjectsParams.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/GetObjectsResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/GetTaskResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/GetTopUserIdsResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/HighlightResult.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/Hit.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/IndexSettings.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/IndexSettingsAsSearchParams.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/Indice.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/Key.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/Languages.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/ListApiKeysResponse.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/ListClustersResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/ListIndicesResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/ListUserIdsResponse.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/MultipleBatchResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/MultipleGetObjectsParams.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/MultipleQueries.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/MultipleQueriesParams.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/MultipleQueriesResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/MultipleQueriesStrategy.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/MultipleQueriesType.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/OneOfintegerstring.java (100%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/OneOfstringbuiltInOperation.java (100%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/Operation.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/OperationIndexParams.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/OperationType.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/Params.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/Promote.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/RankingInfo.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/RankingInfoMatchedGeoLocation.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/RemoveUserIdResponse.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/ReplaceSourceResponse.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/RequiredSearchParams.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/Rule.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SaveObjectResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SaveSynonymResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/ScopeType.java (97%) create mode 100644 clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchDictionaryEntries.java create mode 100644 clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchDictionaryEntriesParams.java rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SearchForFacetValuesRequest.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SearchForFacetValuesResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SearchForFacetValuesResponseFacetHits.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SearchHits.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SearchParams.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SearchParamsObject.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SearchParamsString.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SearchResponse.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SearchRulesParams.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SearchRulesResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SearchSynonymsResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SearchUserIdsParams.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SearchUserIdsResponse.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SearchUserIdsResponseHighlightResult.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SearchUserIdsResponseHits.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SnippetResult.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/Source.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/StandardEntries.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SynonymHit.java (99%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SynonymHitHighlightResult.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/SynonymType.java (97%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/TimeRange.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/UpdateApiKeyResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/UpdatedAtResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/UpdatedAtWithObjectIdResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/UpdatedRuleResponse.java (98%) rename clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/{ => search}/UserId.java (98%) diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchDictionaryEntriesParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchDictionaryEntriesParams.java index 41bfc9d320..7ae9e55e18 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchDictionaryEntriesParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchDictionaryEntriesParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionarySettingsParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionarySettingsParams.java index f4ca451420..f825ad4dbc 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionarySettingsParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionarySettingsParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchDictionaryEntriesParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchDictionaryEntriesParams.java index 29fc496bf7..3aee13fa8a 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchDictionaryEntriesParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchDictionaryEntriesParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Action.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Action.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Action.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Action.java index d77747289a..da4800fcc0 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Action.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Action.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AddApiKeyResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AddApiKeyResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AddApiKeyResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AddApiKeyResponse.java index 0de446c362..d36d2d2217 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AddApiKeyResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AddApiKeyResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Anchoring.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Anchoring.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Anchoring.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Anchoring.java index 6f7077ec8f..a9bb880aef 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Anchoring.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Anchoring.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ApiKey.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ApiKey.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ApiKey.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ApiKey.java index 313ed2554a..8e649db35d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ApiKey.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ApiKey.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AssignUserIdParams.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdParams.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AssignUserIdParams.java index 33f6d0cc78..182336d7bf 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AssignUserIdParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AutomaticFacetFilter.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AutomaticFacetFilter.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AutomaticFacetFilter.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AutomaticFacetFilter.java index 0badc11f39..d27ec0edd3 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AutomaticFacetFilter.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AutomaticFacetFilter.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseBrowseResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseBrowseResponse.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseBrowseResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseBrowseResponse.java index 1657eccac5..ecdb9c24af 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseBrowseResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseBrowseResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseIndexSettings.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseIndexSettings.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseIndexSettings.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseIndexSettings.java index 4b83049887..ad165f12a8 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseIndexSettings.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseIndexSettings.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchParams.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchParams.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchParams.java index cbe3be160b..add358c4a8 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.math.BigDecimal; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchResponse.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchResponse.java index b39969cca6..92790e340a 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.HashMap; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponseFacetsStats.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchResponseFacetsStats.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponseFacetsStats.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchResponseFacetsStats.java index ddf47b6774..610cfc0507 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BaseSearchResponseFacetsStats.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchResponseFacetsStats.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchAssignUserIdsParams.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsParams.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchAssignUserIdsParams.java index d2c89235a9..2943280c9f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchAssignUserIdsParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntries.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntries.java new file mode 100644 index 0000000000..7ae9e55e18 --- /dev/null +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntries.java @@ -0,0 +1,113 @@ +package com.algolia.model.search; + +import com.google.gson.annotations.SerializedName; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** The `batchDictionaryEntries` parameters. */ +public class BatchDictionaryEntriesParams { + + @SerializedName("clearExistingDictionaryEntries") + private Boolean clearExistingDictionaryEntries = false; + + @SerializedName("requests") + private List requests = new ArrayList<>(); + + public BatchDictionaryEntriesParams clearExistingDictionaryEntries( + Boolean clearExistingDictionaryEntries + ) { + this.clearExistingDictionaryEntries = clearExistingDictionaryEntries; + return this; + } + + /** + * When `true`, start the batch by removing all the custom entries from the dictionary. + * + * @return clearExistingDictionaryEntries + */ + @javax.annotation.Nullable + public Boolean getClearExistingDictionaryEntries() { + return clearExistingDictionaryEntries; + } + + public void setClearExistingDictionaryEntries( + Boolean clearExistingDictionaryEntries + ) { + this.clearExistingDictionaryEntries = clearExistingDictionaryEntries; + } + + public BatchDictionaryEntriesParams requests( + List requests + ) { + this.requests = requests; + return this; + } + + public BatchDictionaryEntriesParams addRequestsItem( + BatchDictionaryEntriesRequest requestsItem + ) { + this.requests.add(requestsItem); + return this; + } + + /** + * List of operations to batch. Each operation is described by an `action` and a `body`. + * + * @return requests + */ + @javax.annotation.Nonnull + public List getRequests() { + return requests; + } + + public void setRequests(List requests) { + this.requests = requests; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchDictionaryEntriesParams batchDictionaryEntriesParams = (BatchDictionaryEntriesParams) o; + return ( + Objects.equals( + this.clearExistingDictionaryEntries, + batchDictionaryEntriesParams.clearExistingDictionaryEntries + ) && + Objects.equals(this.requests, batchDictionaryEntriesParams.requests) + ); + } + + @Override + public int hashCode() { + return Objects.hash(clearExistingDictionaryEntries, requests); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDictionaryEntriesParams {\n"); + sb + .append(" clearExistingDictionaryEntries: ") + .append(toIndentedString(clearExistingDictionaryEntries)) + .append("\n"); + sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntriesParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntriesParams.java new file mode 100644 index 0000000000..7ae9e55e18 --- /dev/null +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntriesParams.java @@ -0,0 +1,113 @@ +package com.algolia.model.search; + +import com.google.gson.annotations.SerializedName; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** The `batchDictionaryEntries` parameters. */ +public class BatchDictionaryEntriesParams { + + @SerializedName("clearExistingDictionaryEntries") + private Boolean clearExistingDictionaryEntries = false; + + @SerializedName("requests") + private List requests = new ArrayList<>(); + + public BatchDictionaryEntriesParams clearExistingDictionaryEntries( + Boolean clearExistingDictionaryEntries + ) { + this.clearExistingDictionaryEntries = clearExistingDictionaryEntries; + return this; + } + + /** + * When `true`, start the batch by removing all the custom entries from the dictionary. + * + * @return clearExistingDictionaryEntries + */ + @javax.annotation.Nullable + public Boolean getClearExistingDictionaryEntries() { + return clearExistingDictionaryEntries; + } + + public void setClearExistingDictionaryEntries( + Boolean clearExistingDictionaryEntries + ) { + this.clearExistingDictionaryEntries = clearExistingDictionaryEntries; + } + + public BatchDictionaryEntriesParams requests( + List requests + ) { + this.requests = requests; + return this; + } + + public BatchDictionaryEntriesParams addRequestsItem( + BatchDictionaryEntriesRequest requestsItem + ) { + this.requests.add(requestsItem); + return this; + } + + /** + * List of operations to batch. Each operation is described by an `action` and a `body`. + * + * @return requests + */ + @javax.annotation.Nonnull + public List getRequests() { + return requests; + } + + public void setRequests(List requests) { + this.requests = requests; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchDictionaryEntriesParams batchDictionaryEntriesParams = (BatchDictionaryEntriesParams) o; + return ( + Objects.equals( + this.clearExistingDictionaryEntries, + batchDictionaryEntriesParams.clearExistingDictionaryEntries + ) && + Objects.equals(this.requests, batchDictionaryEntriesParams.requests) + ); + } + + @Override + public int hashCode() { + return Objects.hash(clearExistingDictionaryEntries, requests); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDictionaryEntriesParams {\n"); + sb + .append(" clearExistingDictionaryEntries: ") + .append(toIndentedString(clearExistingDictionaryEntries)) + .append("\n"); + sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchDictionaryEntriesRequest.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntriesRequest.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchDictionaryEntriesRequest.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntriesRequest.java index d356b71b3c..42018176a6 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchDictionaryEntriesRequest.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntriesRequest.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchParams.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchParams.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchParams.java index eaff3a9760..631f95af7d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchResponse.java index 80cc720c27..d7bec1cb98 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchWriteParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchWriteParams.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchWriteParams.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchWriteParams.java index 3eace6978b..791a584f76 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchWriteParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchWriteParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BrowseRequest.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BrowseRequest.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BrowseRequest.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BrowseRequest.java index c412ea0fee..af3ec60a4a 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BrowseRequest.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BrowseRequest.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BrowseResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BrowseResponse.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BrowseResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BrowseResponse.java index 17d13c58f0..2ff3d5a492 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BrowseResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BrowseResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BuiltInOperation.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BuiltInOperation.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BuiltInOperation.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BuiltInOperation.java index b9ff646ce2..0c59fc0ef6 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BuiltInOperation.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BuiltInOperation.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Condition.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Condition.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Condition.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Condition.java index c445c6bd59..5ed3ecbc7a 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Condition.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Condition.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Consequence.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Consequence.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Consequence.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Consequence.java index 039564519f..ff276df1cf 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Consequence.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Consequence.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ConsequenceHide.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ConsequenceHide.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ConsequenceHide.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ConsequenceHide.java index eb08e8b59a..9a84c36268 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ConsequenceHide.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ConsequenceHide.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ConsequenceParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ConsequenceParams.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ConsequenceParams.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ConsequenceParams.java index 2fd6c440a6..3241c7516e 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ConsequenceParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ConsequenceParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/CreatedAtObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/CreatedAtObject.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/CreatedAtObject.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/CreatedAtObject.java index f8a04ae4f0..d25d205fc1 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/CreatedAtObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/CreatedAtObject.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/CreatedAtResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/CreatedAtResponse.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/CreatedAtResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/CreatedAtResponse.java index 2dcbfd7c2f..b11faa775e 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/CreatedAtResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/CreatedAtResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteApiKeyResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeleteApiKeyResponse.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteApiKeyResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeleteApiKeyResponse.java index 7f2ce42eff..58ceadffd4 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteApiKeyResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeleteApiKeyResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSourceResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeleteSourceResponse.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSourceResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeleteSourceResponse.java index e68fac932e..c41117d65b 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSourceResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeleteSourceResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeletedAtResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeletedAtResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeletedAtResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeletedAtResponse.java index 352e3f257d..43032c5c4f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeletedAtResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeletedAtResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionaryAction.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryAction.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionaryAction.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryAction.java index e5de49834b..2b7625364d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionaryAction.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryAction.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionaryEntry.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryEntry.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionaryEntry.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryEntry.java index d0b4bb179f..f5abe556dc 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionaryEntry.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryEntry.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionaryEntryState.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryEntryState.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionaryEntryState.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryEntryState.java index 99d55c2bce..97d34d295a 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionaryEntryState.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryEntryState.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionaryLanguage.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryLanguage.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionaryLanguage.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryLanguage.java index fce794e0dc..ef9deb87ed 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionaryLanguage.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryLanguage.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionarySettingsParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionarySettingsParams.java new file mode 100644 index 0000000000..f825ad4dbc --- /dev/null +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionarySettingsParams.java @@ -0,0 +1,76 @@ +package com.algolia.model.search; + +import com.google.gson.annotations.SerializedName; +import java.util.Objects; + +/** Disable the builtin Algolia entries for a type of dictionary per language. */ +public class DictionarySettingsParams { + + @SerializedName("disableStandardEntries") + private StandardEntries disableStandardEntries; + + public DictionarySettingsParams disableStandardEntries( + StandardEntries disableStandardEntries + ) { + this.disableStandardEntries = disableStandardEntries; + return this; + } + + /** + * Get disableStandardEntries + * + * @return disableStandardEntries + */ + @javax.annotation.Nonnull + public StandardEntries getDisableStandardEntries() { + return disableStandardEntries; + } + + public void setDisableStandardEntries( + StandardEntries disableStandardEntries + ) { + this.disableStandardEntries = disableStandardEntries; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DictionarySettingsParams dictionarySettingsParams = (DictionarySettingsParams) o; + return Objects.equals( + this.disableStandardEntries, + dictionarySettingsParams.disableStandardEntries + ); + } + + @Override + public int hashCode() { + return Objects.hash(disableStandardEntries); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DictionarySettingsParams {\n"); + sb + .append(" disableStandardEntries: ") + .append(toIndentedString(disableStandardEntries)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionarySettingsRequest.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionarySettingsRequest.java new file mode 100644 index 0000000000..f825ad4dbc --- /dev/null +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionarySettingsRequest.java @@ -0,0 +1,76 @@ +package com.algolia.model.search; + +import com.google.gson.annotations.SerializedName; +import java.util.Objects; + +/** Disable the builtin Algolia entries for a type of dictionary per language. */ +public class DictionarySettingsParams { + + @SerializedName("disableStandardEntries") + private StandardEntries disableStandardEntries; + + public DictionarySettingsParams disableStandardEntries( + StandardEntries disableStandardEntries + ) { + this.disableStandardEntries = disableStandardEntries; + return this; + } + + /** + * Get disableStandardEntries + * + * @return disableStandardEntries + */ + @javax.annotation.Nonnull + public StandardEntries getDisableStandardEntries() { + return disableStandardEntries; + } + + public void setDisableStandardEntries( + StandardEntries disableStandardEntries + ) { + this.disableStandardEntries = disableStandardEntries; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DictionarySettingsParams dictionarySettingsParams = (DictionarySettingsParams) o; + return Objects.equals( + this.disableStandardEntries, + dictionarySettingsParams.disableStandardEntries + ); + } + + @Override + public int hashCode() { + return Objects.hash(disableStandardEntries); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DictionarySettingsParams {\n"); + sb + .append(" disableStandardEntries: ") + .append(toIndentedString(disableStandardEntries)) + .append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ErrorBase.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ErrorBase.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ErrorBase.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ErrorBase.java index c2828bf5d9..feb45d7650 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ErrorBase.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ErrorBase.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.HashMap; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetDictionarySettingsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetDictionarySettingsResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetDictionarySettingsResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetDictionarySettingsResponse.java index d622f2b32f..13f35b112a 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetDictionarySettingsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetDictionarySettingsResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponse.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponse.java index 346ab735ec..b12282a108 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseInnerQueries.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponseInnerQueries.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseInnerQueries.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponseInnerQueries.java index 31a764dc56..98bfa42f4e 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseInnerQueries.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponseInnerQueries.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseLogs.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponseLogs.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseLogs.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponseLogs.java index 0438a94650..3fd1605864 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetLogsResponseLogs.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponseLogs.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetObjectsParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetObjectsParams.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetObjectsParams.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetObjectsParams.java index f6808cb8f0..9f88642115 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetObjectsParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetObjectsParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetObjectsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetObjectsResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetObjectsResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetObjectsResponse.java index 7a96b37e9a..ae06326d62 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetObjectsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetObjectsResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTaskResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetTaskResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTaskResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetTaskResponse.java index 06fe5e2406..8ceffd1c68 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTaskResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetTaskResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTopUserIdsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetTopUserIdsResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTopUserIdsResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetTopUserIdsResponse.java index 94cf46ab3f..9d01ede70c 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/GetTopUserIdsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetTopUserIdsResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HighlightResult.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/HighlightResult.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HighlightResult.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/HighlightResult.java index 18aea7db1d..2e2e7da29f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/HighlightResult.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/HighlightResult.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Hit.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Hit.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Hit.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Hit.java index 5b6f67f71f..2cbd620539 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Hit.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Hit.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.HashMap; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettings.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/IndexSettings.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettings.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/IndexSettings.java index 7a788bbe3e..371607be76 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettings.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/IndexSettings.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettingsAsSearchParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/IndexSettingsAsSearchParams.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettingsAsSearchParams.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/IndexSettingsAsSearchParams.java index b848b133e3..7ba2433793 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/IndexSettingsAsSearchParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/IndexSettingsAsSearchParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Indice.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Indice.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Indice.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Indice.java index ed64c6978e..6a88592575 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Indice.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Indice.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Key.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Key.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Key.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Key.java index 5b61171f8c..8e2d8da338 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Key.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Key.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Languages.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Languages.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Languages.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Languages.java index 584101dfbf..5a1438475e 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Languages.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Languages.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListApiKeysResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListApiKeysResponse.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListApiKeysResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListApiKeysResponse.java index f85539f5e1..b1f9eb0187 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListApiKeysResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListApiKeysResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListClustersResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListClustersResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListClustersResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListClustersResponse.java index f9a9bdc597..43c055d1c0 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListClustersResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListClustersResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListIndicesResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListIndicesResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListIndicesResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListIndicesResponse.java index 0f4edc5901..e7cfa1ec21 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListIndicesResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListIndicesResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListUserIdsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListUserIdsResponse.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListUserIdsResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListUserIdsResponse.java index 8da966a1fe..1be32195a6 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ListUserIdsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListUserIdsResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleBatchResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleBatchResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleBatchResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleBatchResponse.java index ce068efd40..d2a2e05c94 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleBatchResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleBatchResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleGetObjectsParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleGetObjectsParams.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleGetObjectsParams.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleGetObjectsParams.java index 329bb9f116..ad5e1fac79 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleGetObjectsParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleGetObjectsParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueries.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueries.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueries.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueries.java index a0c2fe6b9c..feadb8e9f2 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueries.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueries.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesParams.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesParams.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesParams.java index 952256492d..9cc7e3bfc5 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesResponse.java index 7b10d4ac69..624095671a 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesStrategy.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesStrategy.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesStrategy.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesStrategy.java index 0fda9238b4..aa07f9e984 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesStrategy.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesStrategy.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesType.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesType.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesType.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesType.java index 266c455b7c..8f499686c5 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/MultipleQueriesType.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesType.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OneOfintegerstring.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OneOfintegerstring.java similarity index 100% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OneOfintegerstring.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OneOfintegerstring.java diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OneOfstringbuiltInOperation.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OneOfstringbuiltInOperation.java similarity index 100% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OneOfstringbuiltInOperation.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OneOfstringbuiltInOperation.java diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Operation.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Operation.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Operation.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Operation.java index 1b7ee98d67..440277f23c 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Operation.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Operation.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OperationIndexParams.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexParams.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OperationIndexParams.java index a048fc5fc3..0fae16ad74 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationIndexParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OperationIndexParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationType.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OperationType.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationType.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OperationType.java index 05336d71f5..b1845ebca0 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/OperationType.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OperationType.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Params.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Params.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Params.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Params.java index 9ff52121fe..404cbfc225 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Params.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Params.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Promote.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Promote.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Promote.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Promote.java index 2ce9a59139..cb2a107534 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Promote.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Promote.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfo.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RankingInfo.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfo.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RankingInfo.java index c6c236cdf3..efbfb24790 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfo.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RankingInfo.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.HashMap; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfoMatchedGeoLocation.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RankingInfoMatchedGeoLocation.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfoMatchedGeoLocation.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RankingInfoMatchedGeoLocation.java index 6ea7de27a8..0820899781 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RankingInfoMatchedGeoLocation.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RankingInfoMatchedGeoLocation.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RemoveUserIdResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RemoveUserIdResponse.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RemoveUserIdResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RemoveUserIdResponse.java index 149e60ba4a..6e150ab5ef 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RemoveUserIdResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RemoveUserIdResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ReplaceSourceResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ReplaceSourceResponse.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ReplaceSourceResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ReplaceSourceResponse.java index 8d119c34ec..d8858970bf 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ReplaceSourceResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ReplaceSourceResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RequiredSearchParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RequiredSearchParams.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RequiredSearchParams.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RequiredSearchParams.java index dd933cb736..0da9be0c8f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/RequiredSearchParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RequiredSearchParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Rule.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Rule.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Rule.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Rule.java index 318057b810..acb75dfa16 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Rule.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Rule.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveObjectResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SaveObjectResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveObjectResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SaveObjectResponse.java index 815d42c278..20d0206a30 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveObjectResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SaveObjectResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SaveSynonymResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SaveSynonymResponse.java index 00dcf13768..9b9a1645d5 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SaveSynonymResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SaveSynonymResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ScopeType.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ScopeType.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ScopeType.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ScopeType.java index cd9de1f61c..fa70a58861 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ScopeType.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ScopeType.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchDictionaryEntries.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchDictionaryEntries.java new file mode 100644 index 0000000000..3aee13fa8a --- /dev/null +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchDictionaryEntries.java @@ -0,0 +1,146 @@ +package com.algolia.model.search; + +import com.google.gson.annotations.SerializedName; +import java.util.Objects; + +/** The `searchDictionaryEntries` parameters. */ +public class SearchDictionaryEntriesParams { + + @SerializedName("query") + private String query = ""; + + @SerializedName("page") + private Integer page = 0; + + @SerializedName("hitsPerPage") + private Integer hitsPerPage = 20; + + @SerializedName("language") + private String language; + + public SearchDictionaryEntriesParams query(String query) { + this.query = query; + return this; + } + + /** + * The text to search in the index. + * + * @return query + */ + @javax.annotation.Nonnull + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + public SearchDictionaryEntriesParams page(Integer page) { + this.page = page; + return this; + } + + /** + * Specify the page to retrieve. + * + * @return page + */ + @javax.annotation.Nullable + public Integer getPage() { + return page; + } + + public void setPage(Integer page) { + this.page = page; + } + + public SearchDictionaryEntriesParams hitsPerPage(Integer hitsPerPage) { + this.hitsPerPage = hitsPerPage; + return this; + } + + /** + * Set the number of hits per page. + * + * @return hitsPerPage + */ + @javax.annotation.Nullable + public Integer getHitsPerPage() { + return hitsPerPage; + } + + public void setHitsPerPage(Integer hitsPerPage) { + this.hitsPerPage = hitsPerPage; + } + + public SearchDictionaryEntriesParams language(String language) { + this.language = language; + return this; + } + + /** + * Language ISO code supported by the dictionary (e.g., \"en\" for English). + * + * @return language + */ + @javax.annotation.Nullable + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SearchDictionaryEntriesParams searchDictionaryEntriesParams = (SearchDictionaryEntriesParams) o; + return ( + Objects.equals(this.query, searchDictionaryEntriesParams.query) && + Objects.equals(this.page, searchDictionaryEntriesParams.page) && + Objects.equals( + this.hitsPerPage, + searchDictionaryEntriesParams.hitsPerPage + ) && + Objects.equals(this.language, searchDictionaryEntriesParams.language) + ); + } + + @Override + public int hashCode() { + return Objects.hash(query, page, hitsPerPage, language); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchDictionaryEntriesParams {\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb + .append(" hitsPerPage: ") + .append(toIndentedString(hitsPerPage)) + .append("\n"); + sb.append(" language: ").append(toIndentedString(language)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchDictionaryEntriesParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchDictionaryEntriesParams.java new file mode 100644 index 0000000000..3aee13fa8a --- /dev/null +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchDictionaryEntriesParams.java @@ -0,0 +1,146 @@ +package com.algolia.model.search; + +import com.google.gson.annotations.SerializedName; +import java.util.Objects; + +/** The `searchDictionaryEntries` parameters. */ +public class SearchDictionaryEntriesParams { + + @SerializedName("query") + private String query = ""; + + @SerializedName("page") + private Integer page = 0; + + @SerializedName("hitsPerPage") + private Integer hitsPerPage = 20; + + @SerializedName("language") + private String language; + + public SearchDictionaryEntriesParams query(String query) { + this.query = query; + return this; + } + + /** + * The text to search in the index. + * + * @return query + */ + @javax.annotation.Nonnull + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + public SearchDictionaryEntriesParams page(Integer page) { + this.page = page; + return this; + } + + /** + * Specify the page to retrieve. + * + * @return page + */ + @javax.annotation.Nullable + public Integer getPage() { + return page; + } + + public void setPage(Integer page) { + this.page = page; + } + + public SearchDictionaryEntriesParams hitsPerPage(Integer hitsPerPage) { + this.hitsPerPage = hitsPerPage; + return this; + } + + /** + * Set the number of hits per page. + * + * @return hitsPerPage + */ + @javax.annotation.Nullable + public Integer getHitsPerPage() { + return hitsPerPage; + } + + public void setHitsPerPage(Integer hitsPerPage) { + this.hitsPerPage = hitsPerPage; + } + + public SearchDictionaryEntriesParams language(String language) { + this.language = language; + return this; + } + + /** + * Language ISO code supported by the dictionary (e.g., \"en\" for English). + * + * @return language + */ + @javax.annotation.Nullable + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SearchDictionaryEntriesParams searchDictionaryEntriesParams = (SearchDictionaryEntriesParams) o; + return ( + Objects.equals(this.query, searchDictionaryEntriesParams.query) && + Objects.equals(this.page, searchDictionaryEntriesParams.page) && + Objects.equals( + this.hitsPerPage, + searchDictionaryEntriesParams.hitsPerPage + ) && + Objects.equals(this.language, searchDictionaryEntriesParams.language) + ); + } + + @Override + public int hashCode() { + return Objects.hash(query, page, hitsPerPage, language); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchDictionaryEntriesParams {\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb + .append(" hitsPerPage: ") + .append(toIndentedString(hitsPerPage)) + .append("\n"); + sb.append(" language: ").append(toIndentedString(language)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchForFacetValuesRequest.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesRequest.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchForFacetValuesRequest.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesRequest.java index 61a4b4bc11..42d4bcf4e8 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchForFacetValuesRequest.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesRequest.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchForFacetValuesResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchForFacetValuesResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesResponse.java index fb9e84ce60..eb8ea7ebef 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchForFacetValuesResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchForFacetValuesResponseFacetHits.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesResponseFacetHits.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchForFacetValuesResponseFacetHits.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesResponseFacetHits.java index 10b39b4fbc..f7f095a939 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchForFacetValuesResponseFacetHits.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesResponseFacetHits.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchHits.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchHits.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchHits.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchHits.java index 54993308f9..0718b4d5be 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchHits.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchHits.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParams.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParams.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParams.java index 8e6606dd8a..76be07a03c 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParamsObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParamsObject.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParamsObject.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParamsObject.java index cd5ed538b5..dcd3f08252 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParamsObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParamsObject.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParamsString.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParamsString.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParamsString.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParamsString.java index 4f34f775f7..0419f69d76 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchParamsString.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParamsString.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchResponse.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchResponse.java index d4df3467a4..062837cf7f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchRulesParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchRulesParams.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchRulesParams.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchRulesParams.java index 0d30a3cea0..d877c74ae4 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchRulesParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchRulesParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchRulesResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchRulesResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchRulesResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchRulesResponse.java index 0d9e1f9cf1..466a313ea9 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchRulesResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchRulesResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchSynonymsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchSynonymsResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchSynonymsResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchSynonymsResponse.java index 49e1f94bf7..08a6159a4d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchSynonymsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchSynonymsResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsParams.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsParams.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsParams.java index b86938a2df..d3930a0504 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsParams.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponse.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponse.java index fa4aba4b7d..bb7ad5029b 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHighlightResult.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponseHighlightResult.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHighlightResult.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponseHighlightResult.java index 0b030d0870..0730872cfc 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHighlightResult.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponseHighlightResult.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHits.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponseHits.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHits.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponseHits.java index 9a948b39fa..a0c34f5265 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SearchUserIdsResponseHits.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponseHits.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SnippetResult.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SnippetResult.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SnippetResult.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SnippetResult.java index 25386fac2d..5dae6f069e 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SnippetResult.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SnippetResult.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Source.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Source.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Source.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Source.java index 3640457e8b..4418ca33a8 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Source.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Source.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/StandardEntries.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/StandardEntries.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/StandardEntries.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/StandardEntries.java index 40de457f3d..a153c1ed3f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/StandardEntries.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/StandardEntries.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.HashMap; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHit.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymHit.java similarity index 99% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHit.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymHit.java index ffa9eaeeb1..d26258da31 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHit.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymHit.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHitHighlightResult.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymHitHighlightResult.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHitHighlightResult.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymHitHighlightResult.java index 83b1986a87..7f21c28517 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymHitHighlightResult.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymHitHighlightResult.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymType.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymType.java similarity index 97% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymType.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymType.java index cd57b50d7a..a3a9ba6f87 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/SynonymType.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymType.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/TimeRange.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/TimeRange.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/TimeRange.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/TimeRange.java index 446c5f6c7d..1ca35a2a3a 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/TimeRange.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/TimeRange.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdateApiKeyResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdateApiKeyResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdateApiKeyResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdateApiKeyResponse.java index 6dd34ac8e0..7eaa1af920 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdateApiKeyResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdateApiKeyResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdatedAtResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedAtResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdatedAtResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedAtResponse.java index acea12958d..a0ea0262d5 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdatedAtResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedAtResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdatedAtWithObjectIdResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedAtWithObjectIdResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdatedAtWithObjectIdResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedAtWithObjectIdResponse.java index c3dcc83580..539fb76dcf 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdatedAtWithObjectIdResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedAtWithObjectIdResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdatedRuleResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedRuleResponse.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdatedRuleResponse.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedRuleResponse.java index b0e87465e2..117cbd6f78 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UpdatedRuleResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedRuleResponse.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UserId.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UserId.java similarity index 98% rename from clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UserId.java rename to clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UserId.java index d5a9994b9e..dbf67b1229 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/UserId.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UserId.java @@ -1,4 +1,4 @@ -package com.algolia.model; +package com.algolia.model.search; import com.google.gson.annotations.SerializedName; import java.util.Objects; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java index 4c9f5f528b..04ef04f457 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/search/SearchApi.java @@ -5,7 +5,7 @@ import com.algolia.ApiException; import com.algolia.ApiResponse; import com.algolia.Pair; -import com.algolia.model.*; +import com.algolia.model.search.*; import com.algolia.utils.*; import com.algolia.utils.echo.*; import com.google.gson.reflect.TypeToken; diff --git a/openapitools.json b/openapitools.json index c7f40ae154..6c5f68e2a4 100644 --- a/openapitools.json +++ b/openapitools.json @@ -231,7 +231,7 @@ "groupId": "com.algolia", "apiPackage": "com.algolia.search", "invokerPackage": "com.algolia", - "modelPackage": "com.algolia.model", + "modelPackage": "com.algolia.model.search", "library": "okhttp-gson", "glob": "specs/bundled/search.yml", "gitHost": "algolia", diff --git a/playground/java/src/main/java/com/algolia/playground/App.java b/playground/java/src/main/java/com/algolia/playground/App.java index 0915b58dee..98baf5765f 100644 --- a/playground/java/src/main/java/com/algolia/playground/App.java +++ b/playground/java/src/main/java/com/algolia/playground/App.java @@ -1,6 +1,6 @@ package com.algolia.playground; -import com.algolia.model.*; +import com.algolia.model.search.*; import com.algolia.search.SearchApi; import com.algolia.ApiException; diff --git a/scripts/post-gen/java.sh b/scripts/post-gen/java.sh index 17f1548a84..49a5bfbe21 100755 --- a/scripts/post-gen/java.sh +++ b/scripts/post-gen/java.sh @@ -18,8 +18,8 @@ mv ./specs/search/paths/objects/partialUpdate.yml.bak ./specs/search/paths/objec find "$FOLDER" -type f -name "*.java" | xargs sed -i -e 's~= {}~= new Object()~g' # Create a special class for the OneOf integer string (not complete yet, juste here for compilation) -echo "package com.algolia.model;public class OneOfintegerstring {}" > $FOLDER/algoliasearch-core/com/algolia/model/OneOfintegerstring.java -echo 'package com.algolia.model;import com.google.gson.annotations.SerializedName;public class OneOfstringbuiltInOperation { @SerializedName("_operation") private String _operation; @SerializedName("value") private String value;public void set_operation(String op){_operation = op;} public void setValue(String value) {this.value=value;} }' > $FOLDER/algoliasearch-core/com/algolia/model/OneOfstringbuiltInOperation.java +echo "package com.algolia.model;public class OneOfintegerstring {}" > $FOLDER/algoliasearch-core/com/algolia/model/search/OneOfintegerstring.java +echo 'package com.algolia.model;import com.google.gson.annotations.SerializedName;public class OneOfstringbuiltInOperation { @SerializedName("_operation") private String _operation; @SerializedName("value") private String value;public void set_operation(String op){_operation = op;} public void setValue(String value) {this.value=value;} }' > $FOLDER/algoliasearch-core/com/algolia/model/search/OneOfstringbuiltInOperation.java # Generate types for the EchoRequester, to be able to keep the correct response type on the API method. diff --git a/templates/java/libraries/okhttp-gson/api.mustache b/templates/java/libraries/okhttp-gson/api.mustache index f942ba9ce5..c11a38d8fc 100644 --- a/templates/java/libraries/okhttp-gson/api.mustache +++ b/templates/java/libraries/okhttp-gson/api.mustache @@ -13,7 +13,7 @@ import okhttp3.Request; import com.algolia.utils.*; import com.algolia.utils.echo.*; -import com.algolia.model.*; +import com.algolia.model.search.*; import java.lang.reflect.Type; {{^fullJavaUtil}} diff --git a/tests/CTS/methods/requests/templates/java/requests.mustache b/tests/CTS/methods/requests/templates/java/requests.mustache index 90f40a10bb..44b719285d 100644 --- a/tests/CTS/methods/requests/templates/java/requests.mustache +++ b/tests/CTS/methods/requests/templates/java/requests.mustache @@ -13,7 +13,7 @@ import com.google.gson.reflect.TypeToken; import com.algolia.JSON; import com.algolia.Pair; -import com.algolia.model.*; +import com.algolia.model.search.*; import com.algolia.search.{{client}}; import com.algolia.utils.echo.*; import org.skyscreamer.jsonassert.JSONAssert;