From 48bfc4b70b8688fcbb6ab4c65cae5680733b8117 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Thu, 7 Apr 2022 09:05:15 +0000 Subject: [PATCH] Generated code for commit 34ad2c1f37aa31258bf9ca11f95a7415b9148166. Co-authored-by: Pierre Millot --- .../algoliasearch-core/com/algolia/JSON.java | 90 +- .../com/algolia/model/search/Acl.java | 14 +- .../com/algolia/model/search/Action.java | 12 +- .../model/search/AddApiKeyResponse.java | 12 +- .../com/algolia/model/search/Anchoring.java | 6 +- .../com/algolia/model/search/ApiKey.java | 48 +- .../algolia/model/search/AroundRadius.java | 2 - .../model/search/AroundRadiusOneOf.java | 2 +- .../model/search/AssignUserIdParams.java | 6 +- .../search/AttributeOrBuiltInOperation.java | 2 - .../model/search/AutomaticFacetFilter.java | 18 +- .../model/search/BaseBrowseResponse.java | 6 +- .../model/search/BaseIndexSettings.java | 82 +- .../model/search/BaseSearchParams.java | 198 +-- .../model/search/BaseSearchResponse.java | 146 +-- .../search/BaseSearchResponseFacetsStats.java | 24 +- .../search/BatchAssignUserIdsParams.java | 12 +- .../search/BatchDictionaryEntriesParams.java | 14 +- .../search/BatchDictionaryEntriesRequest.java | 12 +- .../algolia/model/search/BatchOperation.java | 12 +- .../com/algolia/model/search/BatchParams.java | 6 +- .../algolia/model/search/BatchResponse.java | 12 +- .../model/search/BatchWriteParams.java | 6 +- .../algolia/model/search/BrowseRequest.java | 12 +- .../algolia/model/search/BrowseResponse.java | 160 +-- .../model/search/BuiltInOperation.java | 12 +- .../model/search/BuiltInOperationType.java | 8 +- .../com/algolia/model/search/Condition.java | 24 +- .../com/algolia/model/search/Consequence.java | 30 +- .../algolia/model/search/ConsequenceHide.java | 6 +- .../model/search/ConsequenceParams.java | 525 ++------ .../algolia/model/search/CreatedAtObject.java | 6 +- .../model/search/CreatedAtResponse.java | 6 +- .../model/search/DeleteApiKeyResponse.java | 6 +- .../model/search/DeleteSourceResponse.java | 6 +- .../model/search/DeletedAtResponse.java | 12 +- .../model/search/DictionaryAction.java | 6 +- .../algolia/model/search/DictionaryEntry.java | 36 +- .../model/search/DictionaryEntryState.java | 2 +- .../model/search/DictionaryLanguage.java | 6 +- .../search/DictionarySettingsParams.java | 8 +- .../algolia/model/search/DictionaryType.java | 2 +- .../com/algolia/model/search/ErrorBase.java | 6 +- .../search/GetDictionarySettingsResponse.java | 8 +- .../algolia/model/search/GetLogsResponse.java | 6 +- .../search/GetLogsResponseInnerQueries.java | 18 +- .../model/search/GetLogsResponseLogs.java | 90 +- .../model/search/GetObjectsParams.java | 6 +- .../model/search/GetObjectsResponse.java | 6 +- .../algolia/model/search/GetTaskResponse.java | 8 +- .../model/search/GetTopUserIdsResponse.java | 6 +- .../algolia/model/search/HighlightResult.java | 24 +- .../com/algolia/model/search/Hit.java | 30 +- .../algolia/model/search/IndexSettings.java | 399 ++---- .../search/IndexSettingsAsSearchParams.java | 321 +---- .../com/algolia/model/search/Indice.java | 66 +- .../com/algolia/model/search/Key.java | 54 +- .../com/algolia/model/search/Languages.java | 18 +- .../model/search/ListApiKeysResponse.java | 6 +- .../model/search/ListClustersResponse.java | 6 +- .../model/search/ListIndicesResponse.java | 12 +- .../model/search/ListUserIdsResponse.java | 6 +- .../com/algolia/model/search/LogType.java | 2 +- .../model/search/MultipleBatchOperation.java | 18 +- .../model/search/MultipleBatchResponse.java | 12 +- .../search/MultipleGetObjectsParams.java | 18 +- .../algolia/model/search/MultipleQueries.java | 30 +- .../model/search/MultipleQueriesParams.java | 12 +- .../model/search/MultipleQueriesResponse.java | 6 +- .../model/search/MultipleQueriesStrategy.java | 4 +- .../model/search/MultipleQueriesType.java | 2 +- .../model/search/OperationIndexParams.java | 18 +- .../algolia/model/search/OperationType.java | 2 +- .../com/algolia/model/search/Params.java | 22 +- .../com/algolia/model/search/Promote.java | 18 +- .../com/algolia/model/search/RankingInfo.java | 68 +- .../search/RankingInfoMatchedGeoLocation.java | 18 +- .../model/search/RemoveUserIdResponse.java | 6 +- .../model/search/ReplaceSourceResponse.java | 6 +- .../model/search/RequiredSearchParams.java | 6 +- .../com/algolia/model/search/Rule.java | 36 +- .../model/search/SaveObjectResponse.java | 18 +- .../model/search/SaveSynonymResponse.java | 18 +- .../com/algolia/model/search/ScopeType.java | 2 +- .../search/SearchDictionaryEntriesParams.java | 24 +- .../search/SearchForFacetValuesRequest.java | 18 +- .../search/SearchForFacetValuesResponse.java | 8 +- ...SearchForFacetValuesResponseFacetHits.java | 20 +- .../com/algolia/model/search/SearchHits.java | 6 +- .../algolia/model/search/SearchParams.java | 2 - .../model/search/SearchParamsObject.java | 515 ++------ .../model/search/SearchParamsString.java | 6 +- .../algolia/model/search/SearchResponse.java | 154 +-- .../model/search/SearchRulesParams.java | 42 +- .../model/search/SearchRulesResponse.java | 24 +- .../model/search/SearchSynonymsResponse.java | 12 +- .../model/search/SearchUserIdsParams.java | 24 +- .../model/search/SearchUserIdsResponse.java | 30 +- .../SearchUserIdsResponseHighlightResult.java | 14 +- .../search/SearchUserIdsResponseHits.java | 38 +- .../algolia/model/search/SnippetResult.java | 12 +- .../com/algolia/model/search/Source.java | 12 +- .../algolia/model/search/StandardEntries.java | 18 +- .../com/algolia/model/search/SynonymHit.java | 56 +- .../search/SynonymHitHighlightResult.java | 12 +- .../com/algolia/model/search/SynonymType.java | 6 +- .../com/algolia/model/search/TimeRange.java | 12 +- .../model/search/UpdateApiKeyResponse.java | 12 +- .../model/search/UpdatedAtResponse.java | 12 +- .../search/UpdatedAtWithObjectIdResponse.java | 18 +- .../model/search/UpdatedRuleResponse.java | 18 +- .../com/algolia/model/search/UserId.java | 24 +- .../com/algolia/search/SearchApi.java | 1118 ++++++++--------- .../algoliasearch-client-java-2/build.gradle | 6 +- 114 files changed, 1328 insertions(+), 3998 deletions(-) diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/JSON.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/JSON.java index dc22036834..a924c616e8 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/JSON.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/JSON.java @@ -17,7 +17,6 @@ import com.google.gson.internal.ObjectConstructor; import com.google.gson.internal.Primitives; import com.google.gson.internal.bind.MapTypeAdapterFactory; -import com.google.gson.internal.bind.util.ISO8601Utils; import com.google.gson.reflect.TypeToken; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonToken; @@ -28,11 +27,7 @@ import java.lang.reflect.Field; import java.lang.reflect.Type; import java.lang.reflect.TypeVariable; -import java.text.DateFormat; -import java.text.ParseException; -import java.text.ParsePosition; import java.util.Collections; -import java.util.Date; import java.util.EnumMap; import java.util.HashMap; import java.util.Hashtable; @@ -47,14 +42,12 @@ public class JSON { private static Gson gson; - private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); - private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); - private static RetainFieldMapFactory mapAdapter = new RetainFieldMapFactory(); + private static final ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); + private static final RetainFieldMapFactory mapAdapter = new RetainFieldMapFactory(); static { gson = createGson() - .registerTypeAdapter(Date.class, dateTypeAdapter) .registerTypeAdapter(byte[].class, byteArrayAdapter) .registerTypeAdapterFactory(mapAdapter) .create(); @@ -65,6 +58,11 @@ public static GsonBuilder createGson() { return fireBuilder.createGsonBuilder(); } + // Suppress default constructor for noninstantiability + private JSON() { + throw new AssertionError(); + } + /** * Get Gson. * @@ -115,10 +113,6 @@ public static T deserialize(String body, Type returnType) { } } } - - public static void setDateFormat(DateFormat dateFormat) { - dateTypeAdapter.setFormat(dateFormat); - } } /** Gson TypeAdapter for Byte Array type */ @@ -135,71 +129,13 @@ public void write(JsonWriter out, byte[] value) throws IOException { @Override public byte[] read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String bytesAsBase64 = in.nextString(); - ByteString byteString = ByteString.decodeBase64(bytesAsBase64); - return byteString.toByteArray(); - } - } -} - -/** - * Gson TypeAdapter for java.util.Date type If the dateFormat is null, ISO8601Utils will be used. - */ -class DateTypeAdapter extends TypeAdapter { - - private DateFormat dateFormat; - - public DateTypeAdapter() {} - - public DateTypeAdapter(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } - - public void setFormat(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } - - @Override - public void write(JsonWriter out, Date date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - String value; - if (dateFormat != null) { - value = dateFormat.format(date); - } else { - value = ISO8601Utils.format(date, true); - } - out.value(value); - } - } - - @Override - public Date read(JsonReader in) throws IOException { - try { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - try { - if (dateFormat != null) { - return dateFormat.parse(date); - } - return ISO8601Utils.parse(date, new ParsePosition(0)); - } catch (ParseException e) { - throw new JsonParseException(e); - } - } - } catch (IllegalArgumentException e) { - throw new JsonParseException(e); + if (in.peek() == JsonToken.NULL) { + in.nextNull(); + return null; } + String bytesAsBase64 = in.nextString(); + ByteString byteString = ByteString.decodeBase64(bytesAsBase64); + return byteString != null ? byteString.toByteArray() : new byte[0]; } } diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Acl.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Acl.java index 72da04d5af..4cc1b90f1c 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Acl.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Acl.java @@ -9,19 +9,19 @@ /** Gets or Sets acl */ @JsonAdapter(Acl.Adapter.class) public enum Acl { - ADDOBJECT("addObject"), + ADD_OBJECT("addObject"), ANALYTICS("analytics"), BROWSE("browse"), - DELETEOBJECT("deleteObject"), + DELETE_OBJECT("deleteObject"), - DELETEINDEX("deleteIndex"), + DELETE_INDEX("deleteIndex"), - EDITSETTINGS("editSettings"), + EDIT_SETTINGS("editSettings"), - LISTINDEXES("listIndexes"), + LIST_INDEXES("listIndexes"), LOGS("logs"), @@ -31,13 +31,13 @@ public enum Acl { SEARCH("search"), - SEEUNRETRIEVABLEATTRIBUTES("seeUnretrievableAttributes"), + SEE_UNRETRIEVABLE_ATTRIBUTES("seeUnretrievableAttributes"), SETTINGS("settings"), USAGE("usage"); - private String value; + private final String value; Acl(String value) { this.value = value; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Action.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Action.java index da4800fcc0..1bae1e7f40 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Action.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Action.java @@ -9,21 +9,21 @@ /** type of operation. */ @JsonAdapter(Action.Adapter.class) public enum Action { - ADDOBJECT("addObject"), + ADD_OBJECT("addObject"), - UPDATEOBJECT("updateObject"), + UPDATE_OBJECT("updateObject"), - PARTIALUPDATEOBJECT("partialUpdateObject"), + PARTIAL_UPDATE_OBJECT("partialUpdateObject"), - PARTIALUPDATEOBJECTNOCREATE("partialUpdateObjectNoCreate"), + PARTIAL_UPDATE_OBJECT_NO_CREATE("partialUpdateObjectNoCreate"), - DELETEOBJECT("deleteObject"), + DELETE_OBJECT("deleteObject"), DELETE("delete"), CLEAR("clear"); - private String value; + private final String value; Action(String value) { this.value = value; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AddApiKeyResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AddApiKeyResponse.java index d36d2d2217..c46eee60a1 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AddApiKeyResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AddApiKeyResponse.java @@ -12,7 +12,7 @@ public class AddApiKeyResponse { @SerializedName("createdAt") private String createdAt; - public AddApiKeyResponse key(String key) { + public AddApiKeyResponse setKey(String key) { this.key = key; return this; } @@ -27,11 +27,7 @@ public String getKey() { return key; } - public void setKey(String key) { - this.key = key; - } - - public AddApiKeyResponse createdAt(String createdAt) { + public AddApiKeyResponse setCreatedAt(String createdAt) { this.createdAt = createdAt; return this; } @@ -46,10 +42,6 @@ public String getCreatedAt() { return createdAt; } - public void setCreatedAt(String createdAt) { - this.createdAt = createdAt; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Anchoring.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Anchoring.java index a9bb880aef..41b0ea04e0 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Anchoring.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Anchoring.java @@ -14,13 +14,13 @@ public enum Anchoring { IS("is"), - STARTSWITH("startsWith"), + STARTS_WITH("startsWith"), - ENDSWITH("endsWith"), + ENDS_WITH("endsWith"), CONTAINS("contains"); - private String value; + private final String value; Anchoring(String value) { this.value = value; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ApiKey.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ApiKey.java index 4a460828f4..c0bece5115 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ApiKey.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ApiKey.java @@ -32,7 +32,7 @@ public class ApiKey { @SerializedName("validity") private Integer validity = 0; - public ApiKey acl(List acl) { + public ApiKey setAcl(List acl) { this.acl = acl; return this; } @@ -52,11 +52,7 @@ public List getAcl() { return acl; } - public void setAcl(List acl) { - this.acl = acl; - } - - public ApiKey description(String description) { + public ApiKey setDescription(String description) { this.description = description; return this; } @@ -72,11 +68,7 @@ public String getDescription() { return description; } - public void setDescription(String description) { - this.description = description; - } - - public ApiKey indexes(List indexes) { + public ApiKey setIndexes(List indexes) { this.indexes = indexes; return this; } @@ -100,11 +92,7 @@ public List getIndexes() { return indexes; } - public void setIndexes(List indexes) { - this.indexes = indexes; - } - - public ApiKey maxHitsPerQuery(Integer maxHitsPerQuery) { + public ApiKey setMaxHitsPerQuery(Integer maxHitsPerQuery) { this.maxHitsPerQuery = maxHitsPerQuery; return this; } @@ -119,11 +107,7 @@ public Integer getMaxHitsPerQuery() { return maxHitsPerQuery; } - public void setMaxHitsPerQuery(Integer maxHitsPerQuery) { - this.maxHitsPerQuery = maxHitsPerQuery; - } - - public ApiKey maxQueriesPerIPPerHour(Integer maxQueriesPerIPPerHour) { + public ApiKey setMaxQueriesPerIPPerHour(Integer maxQueriesPerIPPerHour) { this.maxQueriesPerIPPerHour = maxQueriesPerIPPerHour; return this; } @@ -138,11 +122,7 @@ public Integer getMaxQueriesPerIPPerHour() { return maxQueriesPerIPPerHour; } - public void setMaxQueriesPerIPPerHour(Integer maxQueriesPerIPPerHour) { - this.maxQueriesPerIPPerHour = maxQueriesPerIPPerHour; - } - - public ApiKey queryParameters(String queryParameters) { + public ApiKey setQueryParameters(String queryParameters) { this.queryParameters = queryParameters; return this; } @@ -158,11 +138,7 @@ public String getQueryParameters() { return queryParameters; } - public void setQueryParameters(String queryParameters) { - this.queryParameters = queryParameters; - } - - public ApiKey referers(List referers) { + public ApiKey setReferers(List referers) { this.referers = referers; return this; } @@ -185,11 +161,7 @@ public List getReferers() { return referers; } - public void setReferers(List referers) { - this.referers = referers; - } - - public ApiKey validity(Integer validity) { + public ApiKey setValidity(Integer validity) { this.validity = validity; return this; } @@ -205,10 +177,6 @@ public Integer getValidity() { return validity; } - public void setValidity(Integer validity) { - this.validity = validity; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AroundRadius.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AroundRadius.java index 4da7acaaf5..8ea8a83f20 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AroundRadius.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AroundRadius.java @@ -20,8 +20,6 @@ public static AroundRadius ofInteger(Integer inside) { return new AroundRadiusInteger(inside); } - public abstract Object getInsideValue(); - public static class Adapter extends TypeAdapter { @Override diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AroundRadiusOneOf.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AroundRadiusOneOf.java index caab5fafb0..af3c0c7a14 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AroundRadiusOneOf.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AroundRadiusOneOf.java @@ -11,7 +11,7 @@ public enum AroundRadiusOneOf { ALL("all"); - private String value; + private final String value; AroundRadiusOneOf(String value) { this.value = value; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AssignUserIdParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AssignUserIdParams.java index 182336d7bf..4d7de5dc38 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AssignUserIdParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AssignUserIdParams.java @@ -9,7 +9,7 @@ public class AssignUserIdParams { @SerializedName("cluster") private String cluster; - public AssignUserIdParams cluster(String cluster) { + public AssignUserIdParams setCluster(String cluster) { this.cluster = cluster; return this; } @@ -24,10 +24,6 @@ public String getCluster() { return cluster; } - public void setCluster(String cluster) { - this.cluster = cluster; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AttributeOrBuiltInOperation.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AttributeOrBuiltInOperation.java index eace6e1ace..f7e9425de8 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AttributeOrBuiltInOperation.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AttributeOrBuiltInOperation.java @@ -22,8 +22,6 @@ public static AttributeOrBuiltInOperation ofString(String inside) { return new AttributeOrBuiltInOperationString(inside); } - public abstract Object getInsideValue(); - public static class Adapter extends TypeAdapter { @Override diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AutomaticFacetFilter.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AutomaticFacetFilter.java index d27ec0edd3..885a75045d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AutomaticFacetFilter.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AutomaticFacetFilter.java @@ -15,7 +15,7 @@ public class AutomaticFacetFilter { @SerializedName("disjunctive") private Boolean disjunctive = false; - public AutomaticFacetFilter facet(String facet) { + public AutomaticFacetFilter setFacet(String facet) { this.facet = facet; return this; } @@ -30,11 +30,7 @@ public String getFacet() { return facet; } - public void setFacet(String facet) { - this.facet = facet; - } - - public AutomaticFacetFilter score(Integer score) { + public AutomaticFacetFilter setScore(Integer score) { this.score = score; return this; } @@ -49,11 +45,7 @@ public Integer getScore() { return score; } - public void setScore(Integer score) { - this.score = score; - } - - public AutomaticFacetFilter disjunctive(Boolean disjunctive) { + public AutomaticFacetFilter setDisjunctive(Boolean disjunctive) { this.disjunctive = disjunctive; return this; } @@ -68,10 +60,6 @@ public Boolean getDisjunctive() { return disjunctive; } - public void setDisjunctive(Boolean disjunctive) { - this.disjunctive = disjunctive; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseBrowseResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseBrowseResponse.java index ecdb9c24af..0ffa084657 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseBrowseResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseBrowseResponse.java @@ -9,7 +9,7 @@ public class BaseBrowseResponse { @SerializedName("cursor") private String cursor; - public BaseBrowseResponse cursor(String cursor) { + public BaseBrowseResponse setCursor(String cursor) { this.cursor = cursor; return this; } @@ -25,10 +25,6 @@ public String getCursor() { return cursor; } - public void setCursor(String cursor) { - this.cursor = cursor; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseIndexSettings.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseIndexSettings.java index ad165f12a8..0dcafaa01a 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseIndexSettings.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseIndexSettings.java @@ -44,7 +44,7 @@ public class BaseIndexSettings { @SerializedName("userData") private Object userData = new Object(); - public BaseIndexSettings replicas(List replicas) { + public BaseIndexSettings setReplicas(List replicas) { this.replicas = replicas; return this; } @@ -67,11 +67,7 @@ public List getReplicas() { return replicas; } - public void setReplicas(List replicas) { - this.replicas = replicas; - } - - public BaseIndexSettings paginationLimitedTo(Integer paginationLimitedTo) { + public BaseIndexSettings setPaginationLimitedTo(Integer paginationLimitedTo) { this.paginationLimitedTo = paginationLimitedTo; return this; } @@ -86,11 +82,7 @@ public Integer getPaginationLimitedTo() { return paginationLimitedTo; } - public void setPaginationLimitedTo(Integer paginationLimitedTo) { - this.paginationLimitedTo = paginationLimitedTo; - } - - public BaseIndexSettings disableTypoToleranceOnWords( + public BaseIndexSettings setDisableTypoToleranceOnWords( List disableTypoToleranceOnWords ) { this.disableTypoToleranceOnWords = disableTypoToleranceOnWords; @@ -117,13 +109,7 @@ public List getDisableTypoToleranceOnWords() { return disableTypoToleranceOnWords; } - public void setDisableTypoToleranceOnWords( - List disableTypoToleranceOnWords - ) { - this.disableTypoToleranceOnWords = disableTypoToleranceOnWords; - } - - public BaseIndexSettings attributesToTransliterate( + public BaseIndexSettings setAttributesToTransliterate( List attributesToTransliterate ) { this.attributesToTransliterate = attributesToTransliterate; @@ -150,13 +136,7 @@ public List getAttributesToTransliterate() { return attributesToTransliterate; } - public void setAttributesToTransliterate( - List attributesToTransliterate - ) { - this.attributesToTransliterate = attributesToTransliterate; - } - - public BaseIndexSettings camelCaseAttributes( + public BaseIndexSettings setCamelCaseAttributes( List camelCaseAttributes ) { this.camelCaseAttributes = camelCaseAttributes; @@ -183,11 +163,7 @@ public List getCamelCaseAttributes() { return camelCaseAttributes; } - public void setCamelCaseAttributes(List camelCaseAttributes) { - this.camelCaseAttributes = camelCaseAttributes; - } - - public BaseIndexSettings decompoundedAttributes( + public BaseIndexSettings setDecompoundedAttributes( Object decompoundedAttributes ) { this.decompoundedAttributes = decompoundedAttributes; @@ -205,11 +181,7 @@ public Object getDecompoundedAttributes() { return decompoundedAttributes; } - public void setDecompoundedAttributes(Object decompoundedAttributes) { - this.decompoundedAttributes = decompoundedAttributes; - } - - public BaseIndexSettings indexLanguages(List indexLanguages) { + public BaseIndexSettings setIndexLanguages(List indexLanguages) { this.indexLanguages = indexLanguages; return this; } @@ -233,11 +205,7 @@ public List getIndexLanguages() { return indexLanguages; } - public void setIndexLanguages(List indexLanguages) { - this.indexLanguages = indexLanguages; - } - - public BaseIndexSettings filterPromotes(Boolean filterPromotes) { + public BaseIndexSettings setFilterPromotes(Boolean filterPromotes) { this.filterPromotes = filterPromotes; return this; } @@ -253,11 +221,7 @@ public Boolean getFilterPromotes() { return filterPromotes; } - public void setFilterPromotes(Boolean filterPromotes) { - this.filterPromotes = filterPromotes; - } - - public BaseIndexSettings disablePrefixOnAttributes( + public BaseIndexSettings setDisablePrefixOnAttributes( List disablePrefixOnAttributes ) { this.disablePrefixOnAttributes = disablePrefixOnAttributes; @@ -284,13 +248,7 @@ public List getDisablePrefixOnAttributes() { return disablePrefixOnAttributes; } - public void setDisablePrefixOnAttributes( - List disablePrefixOnAttributes - ) { - this.disablePrefixOnAttributes = disablePrefixOnAttributes; - } - - public BaseIndexSettings allowCompressionOfIntegerArray( + public BaseIndexSettings setAllowCompressionOfIntegerArray( Boolean allowCompressionOfIntegerArray ) { this.allowCompressionOfIntegerArray = allowCompressionOfIntegerArray; @@ -307,13 +265,7 @@ public Boolean getAllowCompressionOfIntegerArray() { return allowCompressionOfIntegerArray; } - public void setAllowCompressionOfIntegerArray( - Boolean allowCompressionOfIntegerArray - ) { - this.allowCompressionOfIntegerArray = allowCompressionOfIntegerArray; - } - - public BaseIndexSettings numericAttributesForFiltering( + public BaseIndexSettings setNumericAttributesForFiltering( List numericAttributesForFiltering ) { this.numericAttributesForFiltering = numericAttributesForFiltering; @@ -340,13 +292,7 @@ public List getNumericAttributesForFiltering() { return numericAttributesForFiltering; } - public void setNumericAttributesForFiltering( - List numericAttributesForFiltering - ) { - this.numericAttributesForFiltering = numericAttributesForFiltering; - } - - public BaseIndexSettings userData(Object userData) { + public BaseIndexSettings setUserData(Object userData) { this.userData = userData; return this; } @@ -361,10 +307,6 @@ public Object getUserData() { return userData; } - public void setUserData(Object userData) { - this.userData = userData; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchParams.java index 4c254e5948..b22685a098 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchParams.java @@ -105,7 +105,7 @@ public class BaseSearchParams { @SerializedName("enableReRanking") private Boolean enableReRanking = true; - public BaseSearchParams similarQuery(String similarQuery) { + public BaseSearchParams setSimilarQuery(String similarQuery) { this.similarQuery = similarQuery; return this; } @@ -121,11 +121,7 @@ public String getSimilarQuery() { return similarQuery; } - public void setSimilarQuery(String similarQuery) { - this.similarQuery = similarQuery; - } - - public BaseSearchParams filters(String filters) { + public BaseSearchParams setFilters(String filters) { this.filters = filters; return this; } @@ -140,11 +136,7 @@ public String getFilters() { return filters; } - public void setFilters(String filters) { - this.filters = filters; - } - - public BaseSearchParams facetFilters(List facetFilters) { + public BaseSearchParams setFacetFilters(List facetFilters) { this.facetFilters = facetFilters; return this; } @@ -167,11 +159,7 @@ public List getFacetFilters() { return facetFilters; } - public void setFacetFilters(List facetFilters) { - this.facetFilters = facetFilters; - } - - public BaseSearchParams optionalFilters(List optionalFilters) { + public BaseSearchParams setOptionalFilters(List optionalFilters) { this.optionalFilters = optionalFilters; return this; } @@ -195,11 +183,7 @@ public List getOptionalFilters() { return optionalFilters; } - public void setOptionalFilters(List optionalFilters) { - this.optionalFilters = optionalFilters; - } - - public BaseSearchParams numericFilters(List numericFilters) { + public BaseSearchParams setNumericFilters(List numericFilters) { this.numericFilters = numericFilters; return this; } @@ -222,11 +206,7 @@ public List getNumericFilters() { return numericFilters; } - public void setNumericFilters(List numericFilters) { - this.numericFilters = numericFilters; - } - - public BaseSearchParams tagFilters(List tagFilters) { + public BaseSearchParams setTagFilters(List tagFilters) { this.tagFilters = tagFilters; return this; } @@ -249,11 +229,7 @@ public List getTagFilters() { return tagFilters; } - public void setTagFilters(List tagFilters) { - this.tagFilters = tagFilters; - } - - public BaseSearchParams sumOrFiltersScores(Boolean sumOrFiltersScores) { + public BaseSearchParams setSumOrFiltersScores(Boolean sumOrFiltersScores) { this.sumOrFiltersScores = sumOrFiltersScores; return this; } @@ -268,11 +244,7 @@ public Boolean getSumOrFiltersScores() { return sumOrFiltersScores; } - public void setSumOrFiltersScores(Boolean sumOrFiltersScores) { - this.sumOrFiltersScores = sumOrFiltersScores; - } - - public BaseSearchParams facets(List facets) { + public BaseSearchParams setFacets(List facets) { this.facets = facets; return this; } @@ -295,11 +267,7 @@ public List getFacets() { return facets; } - public void setFacets(List facets) { - this.facets = facets; - } - - public BaseSearchParams maxValuesPerFacet(Integer maxValuesPerFacet) { + public BaseSearchParams setMaxValuesPerFacet(Integer maxValuesPerFacet) { this.maxValuesPerFacet = maxValuesPerFacet; return this; } @@ -314,11 +282,9 @@ public Integer getMaxValuesPerFacet() { return maxValuesPerFacet; } - public void setMaxValuesPerFacet(Integer maxValuesPerFacet) { - this.maxValuesPerFacet = maxValuesPerFacet; - } - - public BaseSearchParams facetingAfterDistinct(Boolean facetingAfterDistinct) { + public BaseSearchParams setFacetingAfterDistinct( + Boolean facetingAfterDistinct + ) { this.facetingAfterDistinct = facetingAfterDistinct; return this; } @@ -333,11 +299,7 @@ public Boolean getFacetingAfterDistinct() { return facetingAfterDistinct; } - public void setFacetingAfterDistinct(Boolean facetingAfterDistinct) { - this.facetingAfterDistinct = facetingAfterDistinct; - } - - public BaseSearchParams sortFacetValuesBy(String sortFacetValuesBy) { + public BaseSearchParams setSortFacetValuesBy(String sortFacetValuesBy) { this.sortFacetValuesBy = sortFacetValuesBy; return this; } @@ -352,11 +314,7 @@ public String getSortFacetValuesBy() { return sortFacetValuesBy; } - public void setSortFacetValuesBy(String sortFacetValuesBy) { - this.sortFacetValuesBy = sortFacetValuesBy; - } - - public BaseSearchParams page(Integer page) { + public BaseSearchParams setPage(Integer page) { this.page = page; return this; } @@ -371,11 +329,7 @@ public Integer getPage() { return page; } - public void setPage(Integer page) { - this.page = page; - } - - public BaseSearchParams offset(Integer offset) { + public BaseSearchParams setOffset(Integer offset) { this.offset = offset; return this; } @@ -390,11 +344,7 @@ public Integer getOffset() { return offset; } - public void setOffset(Integer offset) { - this.offset = offset; - } - - public BaseSearchParams length(Integer length) { + public BaseSearchParams setLength(Integer length) { this.length = length; return this; } @@ -409,11 +359,7 @@ public Integer getLength() { return length; } - public void setLength(Integer length) { - this.length = length; - } - - public BaseSearchParams aroundLatLng(String aroundLatLng) { + public BaseSearchParams setAroundLatLng(String aroundLatLng) { this.aroundLatLng = aroundLatLng; return this; } @@ -428,11 +374,7 @@ public String getAroundLatLng() { return aroundLatLng; } - public void setAroundLatLng(String aroundLatLng) { - this.aroundLatLng = aroundLatLng; - } - - public BaseSearchParams aroundLatLngViaIP(Boolean aroundLatLngViaIP) { + public BaseSearchParams setAroundLatLngViaIP(Boolean aroundLatLngViaIP) { this.aroundLatLngViaIP = aroundLatLngViaIP; return this; } @@ -448,11 +390,7 @@ public Boolean getAroundLatLngViaIP() { return aroundLatLngViaIP; } - public void setAroundLatLngViaIP(Boolean aroundLatLngViaIP) { - this.aroundLatLngViaIP = aroundLatLngViaIP; - } - - public BaseSearchParams aroundRadius(AroundRadius aroundRadius) { + public BaseSearchParams setAroundRadius(AroundRadius aroundRadius) { this.aroundRadius = aroundRadius; return this; } @@ -467,11 +405,7 @@ public AroundRadius getAroundRadius() { return aroundRadius; } - public void setAroundRadius(AroundRadius aroundRadius) { - this.aroundRadius = aroundRadius; - } - - public BaseSearchParams aroundPrecision(Integer aroundPrecision) { + public BaseSearchParams setAroundPrecision(Integer aroundPrecision) { this.aroundPrecision = aroundPrecision; return this; } @@ -486,11 +420,7 @@ public Integer getAroundPrecision() { return aroundPrecision; } - public void setAroundPrecision(Integer aroundPrecision) { - this.aroundPrecision = aroundPrecision; - } - - public BaseSearchParams minimumAroundRadius(Integer minimumAroundRadius) { + public BaseSearchParams setMinimumAroundRadius(Integer minimumAroundRadius) { this.minimumAroundRadius = minimumAroundRadius; return this; } @@ -505,11 +435,7 @@ public Integer getMinimumAroundRadius() { return minimumAroundRadius; } - public void setMinimumAroundRadius(Integer minimumAroundRadius) { - this.minimumAroundRadius = minimumAroundRadius; - } - - public BaseSearchParams insideBoundingBox( + public BaseSearchParams setInsideBoundingBox( List insideBoundingBox ) { this.insideBoundingBox = insideBoundingBox; @@ -536,11 +462,7 @@ public List getInsideBoundingBox() { return insideBoundingBox; } - public void setInsideBoundingBox(List insideBoundingBox) { - this.insideBoundingBox = insideBoundingBox; - } - - public BaseSearchParams insidePolygon(List insidePolygon) { + public BaseSearchParams setInsidePolygon(List insidePolygon) { this.insidePolygon = insidePolygon; return this; } @@ -563,11 +485,7 @@ public List getInsidePolygon() { return insidePolygon; } - public void setInsidePolygon(List insidePolygon) { - this.insidePolygon = insidePolygon; - } - - public BaseSearchParams naturalLanguages(List naturalLanguages) { + public BaseSearchParams setNaturalLanguages(List naturalLanguages) { this.naturalLanguages = naturalLanguages; return this; } @@ -594,11 +512,7 @@ public List getNaturalLanguages() { return naturalLanguages; } - public void setNaturalLanguages(List naturalLanguages) { - this.naturalLanguages = naturalLanguages; - } - - public BaseSearchParams ruleContexts(List ruleContexts) { + public BaseSearchParams setRuleContexts(List ruleContexts) { this.ruleContexts = ruleContexts; return this; } @@ -621,11 +535,9 @@ public List getRuleContexts() { return ruleContexts; } - public void setRuleContexts(List ruleContexts) { - this.ruleContexts = ruleContexts; - } - - public BaseSearchParams personalizationImpact(Integer personalizationImpact) { + public BaseSearchParams setPersonalizationImpact( + Integer personalizationImpact + ) { this.personalizationImpact = personalizationImpact; return this; } @@ -640,11 +552,7 @@ public Integer getPersonalizationImpact() { return personalizationImpact; } - public void setPersonalizationImpact(Integer personalizationImpact) { - this.personalizationImpact = personalizationImpact; - } - - public BaseSearchParams userToken(String userToken) { + public BaseSearchParams setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -659,11 +567,7 @@ public String getUserToken() { return userToken; } - public void setUserToken(String userToken) { - this.userToken = userToken; - } - - public BaseSearchParams getRankingInfo(Boolean getRankingInfo) { + public BaseSearchParams setGetRankingInfo(Boolean getRankingInfo) { this.getRankingInfo = getRankingInfo; return this; } @@ -678,11 +582,7 @@ public Boolean getGetRankingInfo() { return getRankingInfo; } - public void setGetRankingInfo(Boolean getRankingInfo) { - this.getRankingInfo = getRankingInfo; - } - - public BaseSearchParams clickAnalytics(Boolean clickAnalytics) { + public BaseSearchParams setClickAnalytics(Boolean clickAnalytics) { this.clickAnalytics = clickAnalytics; return this; } @@ -697,11 +597,7 @@ public Boolean getClickAnalytics() { return clickAnalytics; } - public void setClickAnalytics(Boolean clickAnalytics) { - this.clickAnalytics = clickAnalytics; - } - - public BaseSearchParams analytics(Boolean analytics) { + public BaseSearchParams setAnalytics(Boolean analytics) { this.analytics = analytics; return this; } @@ -716,11 +612,7 @@ public Boolean getAnalytics() { return analytics; } - public void setAnalytics(Boolean analytics) { - this.analytics = analytics; - } - - public BaseSearchParams analyticsTags(List analyticsTags) { + public BaseSearchParams setAnalyticsTags(List analyticsTags) { this.analyticsTags = analyticsTags; return this; } @@ -743,11 +635,9 @@ public List getAnalyticsTags() { return analyticsTags; } - public void setAnalyticsTags(List analyticsTags) { - this.analyticsTags = analyticsTags; - } - - public BaseSearchParams percentileComputation(Boolean percentileComputation) { + public BaseSearchParams setPercentileComputation( + Boolean percentileComputation + ) { this.percentileComputation = percentileComputation; return this; } @@ -762,11 +652,7 @@ public Boolean getPercentileComputation() { return percentileComputation; } - public void setPercentileComputation(Boolean percentileComputation) { - this.percentileComputation = percentileComputation; - } - - public BaseSearchParams enableABTest(Boolean enableABTest) { + public BaseSearchParams setEnableABTest(Boolean enableABTest) { this.enableABTest = enableABTest; return this; } @@ -781,11 +667,7 @@ public Boolean getEnableABTest() { return enableABTest; } - public void setEnableABTest(Boolean enableABTest) { - this.enableABTest = enableABTest; - } - - public BaseSearchParams enableReRanking(Boolean enableReRanking) { + public BaseSearchParams setEnableReRanking(Boolean enableReRanking) { this.enableReRanking = enableReRanking; return this; } @@ -800,10 +682,6 @@ public Boolean getEnableReRanking() { return enableReRanking; } - public void setEnableReRanking(Boolean enableReRanking) { - this.enableReRanking = enableReRanking; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchResponse.java index c720c009d8..827f154967 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchResponse.java @@ -80,7 +80,7 @@ public class BaseSearchResponse { @SerializedName("userData") private Object userData = new Object(); - public BaseSearchResponse abTestID(Integer abTestID) { + public BaseSearchResponse setAbTestID(Integer abTestID) { this.abTestID = abTestID; return this; } @@ -96,11 +96,7 @@ public Integer getAbTestID() { return abTestID; } - public void setAbTestID(Integer abTestID) { - this.abTestID = abTestID; - } - - public BaseSearchResponse abTestVariantID(Integer abTestVariantID) { + public BaseSearchResponse setAbTestVariantID(Integer abTestVariantID) { this.abTestVariantID = abTestVariantID; return this; } @@ -116,11 +112,7 @@ public Integer getAbTestVariantID() { return abTestVariantID; } - public void setAbTestVariantID(Integer abTestVariantID) { - this.abTestVariantID = abTestVariantID; - } - - public BaseSearchResponse aroundLatLng(String aroundLatLng) { + public BaseSearchResponse setAroundLatLng(String aroundLatLng) { this.aroundLatLng = aroundLatLng; return this; } @@ -135,11 +127,7 @@ public String getAroundLatLng() { return aroundLatLng; } - public void setAroundLatLng(String aroundLatLng) { - this.aroundLatLng = aroundLatLng; - } - - public BaseSearchResponse automaticRadius(String automaticRadius) { + public BaseSearchResponse setAutomaticRadius(String automaticRadius) { this.automaticRadius = automaticRadius; return this; } @@ -155,11 +143,7 @@ public String getAutomaticRadius() { return automaticRadius; } - public void setAutomaticRadius(String automaticRadius) { - this.automaticRadius = automaticRadius; - } - - public BaseSearchResponse exhaustiveFacetsCount( + public BaseSearchResponse setExhaustiveFacetsCount( Boolean exhaustiveFacetsCount ) { this.exhaustiveFacetsCount = exhaustiveFacetsCount; @@ -176,11 +160,7 @@ public Boolean getExhaustiveFacetsCount() { return exhaustiveFacetsCount; } - public void setExhaustiveFacetsCount(Boolean exhaustiveFacetsCount) { - this.exhaustiveFacetsCount = exhaustiveFacetsCount; - } - - public BaseSearchResponse exhaustiveNbHits(Boolean exhaustiveNbHits) { + public BaseSearchResponse setExhaustiveNbHits(Boolean exhaustiveNbHits) { this.exhaustiveNbHits = exhaustiveNbHits; return this; } @@ -195,11 +175,7 @@ public Boolean getExhaustiveNbHits() { return exhaustiveNbHits; } - public void setExhaustiveNbHits(Boolean exhaustiveNbHits) { - this.exhaustiveNbHits = exhaustiveNbHits; - } - - public BaseSearchResponse exhaustiveTypo(Boolean exhaustiveTypo) { + public BaseSearchResponse setExhaustiveTypo(Boolean exhaustiveTypo) { this.exhaustiveTypo = exhaustiveTypo; return this; } @@ -215,11 +191,7 @@ public Boolean getExhaustiveTypo() { return exhaustiveTypo; } - public void setExhaustiveTypo(Boolean exhaustiveTypo) { - this.exhaustiveTypo = exhaustiveTypo; - } - - public BaseSearchResponse facets(Map> facets) { + public BaseSearchResponse setFacets(Map> facets) { this.facets = facets; return this; } @@ -245,11 +217,7 @@ public Map> getFacets() { return facets; } - public void setFacets(Map> facets) { - this.facets = facets; - } - - public BaseSearchResponse facetsStats( + public BaseSearchResponse setFacetsStats( Map facetsStats ) { this.facetsStats = facetsStats; @@ -277,13 +245,7 @@ public Map getFacetsStats() { return facetsStats; } - public void setFacetsStats( - Map facetsStats - ) { - this.facetsStats = facetsStats; - } - - public BaseSearchResponse hitsPerPage(Integer hitsPerPage) { + public BaseSearchResponse setHitsPerPage(Integer hitsPerPage) { this.hitsPerPage = hitsPerPage; return this; } @@ -298,11 +260,7 @@ public Integer getHitsPerPage() { return hitsPerPage; } - public void setHitsPerPage(Integer hitsPerPage) { - this.hitsPerPage = hitsPerPage; - } - - public BaseSearchResponse index(String index) { + public BaseSearchResponse setIndex(String index) { this.index = index; return this; } @@ -317,11 +275,7 @@ public String getIndex() { return index; } - public void setIndex(String index) { - this.index = index; - } - - public BaseSearchResponse indexUsed(String indexUsed) { + public BaseSearchResponse setIndexUsed(String indexUsed) { this.indexUsed = indexUsed; return this; } @@ -337,11 +291,7 @@ public String getIndexUsed() { return indexUsed; } - public void setIndexUsed(String indexUsed) { - this.indexUsed = indexUsed; - } - - public BaseSearchResponse message(String message) { + public BaseSearchResponse setMessage(String message) { this.message = message; return this; } @@ -356,11 +306,7 @@ public String getMessage() { return message; } - public void setMessage(String message) { - this.message = message; - } - - public BaseSearchResponse nbHits(Integer nbHits) { + public BaseSearchResponse setNbHits(Integer nbHits) { this.nbHits = nbHits; return this; } @@ -375,11 +321,7 @@ public Integer getNbHits() { return nbHits; } - public void setNbHits(Integer nbHits) { - this.nbHits = nbHits; - } - - public BaseSearchResponse nbPages(Integer nbPages) { + public BaseSearchResponse setNbPages(Integer nbPages) { this.nbPages = nbPages; return this; } @@ -394,11 +336,7 @@ public Integer getNbPages() { return nbPages; } - public void setNbPages(Integer nbPages) { - this.nbPages = nbPages; - } - - public BaseSearchResponse nbSortedHits(Integer nbSortedHits) { + public BaseSearchResponse setNbSortedHits(Integer nbSortedHits) { this.nbSortedHits = nbSortedHits; return this; } @@ -413,11 +351,7 @@ public Integer getNbSortedHits() { return nbSortedHits; } - public void setNbSortedHits(Integer nbSortedHits) { - this.nbSortedHits = nbSortedHits; - } - - public BaseSearchResponse page(Integer page) { + public BaseSearchResponse setPage(Integer page) { this.page = page; return this; } @@ -432,11 +366,7 @@ public Integer getPage() { return page; } - public void setPage(Integer page) { - this.page = page; - } - - public BaseSearchResponse params(String params) { + public BaseSearchResponse setParams(String params) { this.params = params; return this; } @@ -451,11 +381,7 @@ public String getParams() { return params; } - public void setParams(String params) { - this.params = params; - } - - public BaseSearchResponse parsedQuery(String parsedQuery) { + public BaseSearchResponse setParsedQuery(String parsedQuery) { this.parsedQuery = parsedQuery; return this; } @@ -470,11 +396,7 @@ public String getParsedQuery() { return parsedQuery; } - public void setParsedQuery(String parsedQuery) { - this.parsedQuery = parsedQuery; - } - - public BaseSearchResponse processingTimeMS(Integer processingTimeMS) { + public BaseSearchResponse setProcessingTimeMS(Integer processingTimeMS) { this.processingTimeMS = processingTimeMS; return this; } @@ -489,11 +411,7 @@ public Integer getProcessingTimeMS() { return processingTimeMS; } - public void setProcessingTimeMS(Integer processingTimeMS) { - this.processingTimeMS = processingTimeMS; - } - - public BaseSearchResponse query(String query) { + public BaseSearchResponse setQuery(String query) { this.query = query; return this; } @@ -508,11 +426,7 @@ public String getQuery() { return query; } - public void setQuery(String query) { - this.query = query; - } - - public BaseSearchResponse queryAfterRemoval(String queryAfterRemoval) { + public BaseSearchResponse setQueryAfterRemoval(String queryAfterRemoval) { this.queryAfterRemoval = queryAfterRemoval; return this; } @@ -528,11 +442,7 @@ public String getQueryAfterRemoval() { return queryAfterRemoval; } - public void setQueryAfterRemoval(String queryAfterRemoval) { - this.queryAfterRemoval = queryAfterRemoval; - } - - public BaseSearchResponse serverUsed(String serverUsed) { + public BaseSearchResponse setServerUsed(String serverUsed) { this.serverUsed = serverUsed; return this; } @@ -547,11 +457,7 @@ public String getServerUsed() { return serverUsed; } - public void setServerUsed(String serverUsed) { - this.serverUsed = serverUsed; - } - - public BaseSearchResponse userData(Object userData) { + public BaseSearchResponse setUserData(Object userData) { this.userData = userData; return this; } @@ -566,10 +472,6 @@ public Object getUserData() { return userData; } - public void setUserData(Object userData) { - this.userData = userData; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchResponseFacetsStats.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchResponseFacetsStats.java index 610cfc0507..89b2fac1d1 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchResponseFacetsStats.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BaseSearchResponseFacetsStats.java @@ -18,7 +18,7 @@ public class BaseSearchResponseFacetsStats { @SerializedName("sum") private Integer sum; - public BaseSearchResponseFacetsStats min(Integer min) { + public BaseSearchResponseFacetsStats setMin(Integer min) { this.min = min; return this; } @@ -33,11 +33,7 @@ public Integer getMin() { return min; } - public void setMin(Integer min) { - this.min = min; - } - - public BaseSearchResponseFacetsStats max(Integer max) { + public BaseSearchResponseFacetsStats setMax(Integer max) { this.max = max; return this; } @@ -52,11 +48,7 @@ public Integer getMax() { return max; } - public void setMax(Integer max) { - this.max = max; - } - - public BaseSearchResponseFacetsStats avg(Integer avg) { + public BaseSearchResponseFacetsStats setAvg(Integer avg) { this.avg = avg; return this; } @@ -71,11 +63,7 @@ public Integer getAvg() { return avg; } - public void setAvg(Integer avg) { - this.avg = avg; - } - - public BaseSearchResponseFacetsStats sum(Integer sum) { + public BaseSearchResponseFacetsStats setSum(Integer sum) { this.sum = sum; return this; } @@ -90,10 +78,6 @@ public Integer getSum() { return sum; } - public void setSum(Integer sum) { - this.sum = sum; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchAssignUserIdsParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchAssignUserIdsParams.java index 2943280c9f..b97bbf69c3 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchAssignUserIdsParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchAssignUserIdsParams.java @@ -14,7 +14,7 @@ public class BatchAssignUserIdsParams { @SerializedName("users") private List users = new ArrayList<>(); - public BatchAssignUserIdsParams cluster(String cluster) { + public BatchAssignUserIdsParams setCluster(String cluster) { this.cluster = cluster; return this; } @@ -29,11 +29,7 @@ public String getCluster() { return cluster; } - public void setCluster(String cluster) { - this.cluster = cluster; - } - - public BatchAssignUserIdsParams users(List users) { + public BatchAssignUserIdsParams setUsers(List users) { this.users = users; return this; } @@ -53,10 +49,6 @@ public List getUsers() { return users; } - public void setUsers(List users) { - this.users = users; - } - @Override public boolean equals(Object o) { if (this == o) { 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 index 7ae9e55e18..a73cd685ae 100644 --- 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 @@ -14,7 +14,7 @@ public class BatchDictionaryEntriesParams { @SerializedName("requests") private List requests = new ArrayList<>(); - public BatchDictionaryEntriesParams clearExistingDictionaryEntries( + public BatchDictionaryEntriesParams setClearExistingDictionaryEntries( Boolean clearExistingDictionaryEntries ) { this.clearExistingDictionaryEntries = clearExistingDictionaryEntries; @@ -31,13 +31,7 @@ public Boolean getClearExistingDictionaryEntries() { return clearExistingDictionaryEntries; } - public void setClearExistingDictionaryEntries( - Boolean clearExistingDictionaryEntries - ) { - this.clearExistingDictionaryEntries = clearExistingDictionaryEntries; - } - - public BatchDictionaryEntriesParams requests( + public BatchDictionaryEntriesParams setRequests( List requests ) { this.requests = requests; @@ -61,10 +55,6 @@ public List getRequests() { return requests; } - public void setRequests(List requests) { - this.requests = requests; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntriesRequest.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntriesRequest.java index 42018176a6..a4e9bc44fc 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntriesRequest.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntriesRequest.java @@ -12,7 +12,7 @@ public class BatchDictionaryEntriesRequest { @SerializedName("body") private DictionaryEntry body; - public BatchDictionaryEntriesRequest action(DictionaryAction action) { + public BatchDictionaryEntriesRequest setAction(DictionaryAction action) { this.action = action; return this; } @@ -27,11 +27,7 @@ public DictionaryAction getAction() { return action; } - public void setAction(DictionaryAction action) { - this.action = action; - } - - public BatchDictionaryEntriesRequest body(DictionaryEntry body) { + public BatchDictionaryEntriesRequest setBody(DictionaryEntry body) { this.body = body; return this; } @@ -46,10 +42,6 @@ public DictionaryEntry getBody() { return body; } - public void setBody(DictionaryEntry body) { - this.body = body; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchOperation.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchOperation.java index e9cbbe1b16..c36647e97d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchOperation.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchOperation.java @@ -12,7 +12,7 @@ public class BatchOperation { @SerializedName("body") private Object body; - public BatchOperation action(Action action) { + public BatchOperation setAction(Action action) { this.action = action; return this; } @@ -27,11 +27,7 @@ public Action getAction() { return action; } - public void setAction(Action action) { - this.action = action; - } - - public BatchOperation body(Object body) { + public BatchOperation setBody(Object body) { this.body = body; return this; } @@ -46,10 +42,6 @@ public Object getBody() { return body; } - public void setBody(Object body) { - this.body = body; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchParams.java index fc9cec877a..c68ce9e5dd 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchParams.java @@ -11,7 +11,7 @@ public class BatchParams { @SerializedName("requests") private List requests = null; - public BatchParams requests(List requests) { + public BatchParams setRequests(List requests) { this.requests = requests; return this; } @@ -34,10 +34,6 @@ public List getRequests() { return requests; } - public void setRequests(List requests) { - this.requests = requests; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchResponse.java index d7bec1cb98..7fc6d4873d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchResponse.java @@ -14,7 +14,7 @@ public class BatchResponse { @SerializedName("objectIDs") private List objectIDs = null; - public BatchResponse taskID(Integer taskID) { + public BatchResponse setTaskID(Integer taskID) { this.taskID = taskID; return this; } @@ -29,11 +29,7 @@ public Integer getTaskID() { return taskID; } - public void setTaskID(Integer taskID) { - this.taskID = taskID; - } - - public BatchResponse objectIDs(List objectIDs) { + public BatchResponse setObjectIDs(List objectIDs) { this.objectIDs = objectIDs; return this; } @@ -56,10 +52,6 @@ public List getObjectIDs() { return objectIDs; } - public void setObjectIDs(List objectIDs) { - this.objectIDs = objectIDs; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchWriteParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchWriteParams.java index d513c21860..7fb8cf631a 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchWriteParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchWriteParams.java @@ -11,7 +11,7 @@ public class BatchWriteParams { @SerializedName("requests") private List requests = null; - public BatchWriteParams requests(List requests) { + public BatchWriteParams setRequests(List requests) { this.requests = requests; return this; } @@ -34,10 +34,6 @@ public List getRequests() { return requests; } - public void setRequests(List requests) { - this.requests = requests; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BrowseRequest.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BrowseRequest.java index af3ec60a4a..869ec5bc81 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BrowseRequest.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BrowseRequest.java @@ -12,7 +12,7 @@ public class BrowseRequest { @SerializedName("cursor") private String cursor; - public BrowseRequest params(String params) { + public BrowseRequest setParams(String params) { this.params = params; return this; } @@ -27,11 +27,7 @@ public String getParams() { return params; } - public void setParams(String params) { - this.params = params; - } - - public BrowseRequest cursor(String cursor) { + public BrowseRequest setCursor(String cursor) { this.cursor = cursor; return this; } @@ -47,10 +43,6 @@ public String getCursor() { return cursor; } - public void setCursor(String cursor) { - this.cursor = cursor; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BrowseResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BrowseResponse.java index 222718665f..4b8592d883 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BrowseResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BrowseResponse.java @@ -88,7 +88,7 @@ public class BrowseResponse { @SerializedName("cursor") private String cursor; - public BrowseResponse abTestID(Integer abTestID) { + public BrowseResponse setAbTestID(Integer abTestID) { this.abTestID = abTestID; return this; } @@ -104,11 +104,7 @@ public Integer getAbTestID() { return abTestID; } - public void setAbTestID(Integer abTestID) { - this.abTestID = abTestID; - } - - public BrowseResponse abTestVariantID(Integer abTestVariantID) { + public BrowseResponse setAbTestVariantID(Integer abTestVariantID) { this.abTestVariantID = abTestVariantID; return this; } @@ -124,11 +120,7 @@ public Integer getAbTestVariantID() { return abTestVariantID; } - public void setAbTestVariantID(Integer abTestVariantID) { - this.abTestVariantID = abTestVariantID; - } - - public BrowseResponse aroundLatLng(String aroundLatLng) { + public BrowseResponse setAroundLatLng(String aroundLatLng) { this.aroundLatLng = aroundLatLng; return this; } @@ -143,11 +135,7 @@ public String getAroundLatLng() { return aroundLatLng; } - public void setAroundLatLng(String aroundLatLng) { - this.aroundLatLng = aroundLatLng; - } - - public BrowseResponse automaticRadius(String automaticRadius) { + public BrowseResponse setAutomaticRadius(String automaticRadius) { this.automaticRadius = automaticRadius; return this; } @@ -163,11 +151,9 @@ public String getAutomaticRadius() { return automaticRadius; } - public void setAutomaticRadius(String automaticRadius) { - this.automaticRadius = automaticRadius; - } - - public BrowseResponse exhaustiveFacetsCount(Boolean exhaustiveFacetsCount) { + public BrowseResponse setExhaustiveFacetsCount( + Boolean exhaustiveFacetsCount + ) { this.exhaustiveFacetsCount = exhaustiveFacetsCount; return this; } @@ -182,11 +168,7 @@ public Boolean getExhaustiveFacetsCount() { return exhaustiveFacetsCount; } - public void setExhaustiveFacetsCount(Boolean exhaustiveFacetsCount) { - this.exhaustiveFacetsCount = exhaustiveFacetsCount; - } - - public BrowseResponse exhaustiveNbHits(Boolean exhaustiveNbHits) { + public BrowseResponse setExhaustiveNbHits(Boolean exhaustiveNbHits) { this.exhaustiveNbHits = exhaustiveNbHits; return this; } @@ -201,11 +183,7 @@ public Boolean getExhaustiveNbHits() { return exhaustiveNbHits; } - public void setExhaustiveNbHits(Boolean exhaustiveNbHits) { - this.exhaustiveNbHits = exhaustiveNbHits; - } - - public BrowseResponse exhaustiveTypo(Boolean exhaustiveTypo) { + public BrowseResponse setExhaustiveTypo(Boolean exhaustiveTypo) { this.exhaustiveTypo = exhaustiveTypo; return this; } @@ -221,11 +199,7 @@ public Boolean getExhaustiveTypo() { return exhaustiveTypo; } - public void setExhaustiveTypo(Boolean exhaustiveTypo) { - this.exhaustiveTypo = exhaustiveTypo; - } - - public BrowseResponse facets(Map> facets) { + public BrowseResponse setFacets(Map> facets) { this.facets = facets; return this; } @@ -251,11 +225,7 @@ public Map> getFacets() { return facets; } - public void setFacets(Map> facets) { - this.facets = facets; - } - - public BrowseResponse facetsStats( + public BrowseResponse setFacetsStats( Map facetsStats ) { this.facetsStats = facetsStats; @@ -283,13 +253,7 @@ public Map getFacetsStats() { return facetsStats; } - public void setFacetsStats( - Map facetsStats - ) { - this.facetsStats = facetsStats; - } - - public BrowseResponse hitsPerPage(Integer hitsPerPage) { + public BrowseResponse setHitsPerPage(Integer hitsPerPage) { this.hitsPerPage = hitsPerPage; return this; } @@ -304,11 +268,7 @@ public Integer getHitsPerPage() { return hitsPerPage; } - public void setHitsPerPage(Integer hitsPerPage) { - this.hitsPerPage = hitsPerPage; - } - - public BrowseResponse index(String index) { + public BrowseResponse setIndex(String index) { this.index = index; return this; } @@ -323,11 +283,7 @@ public String getIndex() { return index; } - public void setIndex(String index) { - this.index = index; - } - - public BrowseResponse indexUsed(String indexUsed) { + public BrowseResponse setIndexUsed(String indexUsed) { this.indexUsed = indexUsed; return this; } @@ -343,11 +299,7 @@ public String getIndexUsed() { return indexUsed; } - public void setIndexUsed(String indexUsed) { - this.indexUsed = indexUsed; - } - - public BrowseResponse message(String message) { + public BrowseResponse setMessage(String message) { this.message = message; return this; } @@ -362,11 +314,7 @@ public String getMessage() { return message; } - public void setMessage(String message) { - this.message = message; - } - - public BrowseResponse nbHits(Integer nbHits) { + public BrowseResponse setNbHits(Integer nbHits) { this.nbHits = nbHits; return this; } @@ -381,11 +329,7 @@ public Integer getNbHits() { return nbHits; } - public void setNbHits(Integer nbHits) { - this.nbHits = nbHits; - } - - public BrowseResponse nbPages(Integer nbPages) { + public BrowseResponse setNbPages(Integer nbPages) { this.nbPages = nbPages; return this; } @@ -400,11 +344,7 @@ public Integer getNbPages() { return nbPages; } - public void setNbPages(Integer nbPages) { - this.nbPages = nbPages; - } - - public BrowseResponse nbSortedHits(Integer nbSortedHits) { + public BrowseResponse setNbSortedHits(Integer nbSortedHits) { this.nbSortedHits = nbSortedHits; return this; } @@ -419,11 +359,7 @@ public Integer getNbSortedHits() { return nbSortedHits; } - public void setNbSortedHits(Integer nbSortedHits) { - this.nbSortedHits = nbSortedHits; - } - - public BrowseResponse page(Integer page) { + public BrowseResponse setPage(Integer page) { this.page = page; return this; } @@ -438,11 +374,7 @@ public Integer getPage() { return page; } - public void setPage(Integer page) { - this.page = page; - } - - public BrowseResponse params(String params) { + public BrowseResponse setParams(String params) { this.params = params; return this; } @@ -457,11 +389,7 @@ public String getParams() { return params; } - public void setParams(String params) { - this.params = params; - } - - public BrowseResponse parsedQuery(String parsedQuery) { + public BrowseResponse setParsedQuery(String parsedQuery) { this.parsedQuery = parsedQuery; return this; } @@ -476,11 +404,7 @@ public String getParsedQuery() { return parsedQuery; } - public void setParsedQuery(String parsedQuery) { - this.parsedQuery = parsedQuery; - } - - public BrowseResponse processingTimeMS(Integer processingTimeMS) { + public BrowseResponse setProcessingTimeMS(Integer processingTimeMS) { this.processingTimeMS = processingTimeMS; return this; } @@ -495,11 +419,7 @@ public Integer getProcessingTimeMS() { return processingTimeMS; } - public void setProcessingTimeMS(Integer processingTimeMS) { - this.processingTimeMS = processingTimeMS; - } - - public BrowseResponse query(String query) { + public BrowseResponse setQuery(String query) { this.query = query; return this; } @@ -514,11 +434,7 @@ public String getQuery() { return query; } - public void setQuery(String query) { - this.query = query; - } - - public BrowseResponse queryAfterRemoval(String queryAfterRemoval) { + public BrowseResponse setQueryAfterRemoval(String queryAfterRemoval) { this.queryAfterRemoval = queryAfterRemoval; return this; } @@ -534,11 +450,7 @@ public String getQueryAfterRemoval() { return queryAfterRemoval; } - public void setQueryAfterRemoval(String queryAfterRemoval) { - this.queryAfterRemoval = queryAfterRemoval; - } - - public BrowseResponse serverUsed(String serverUsed) { + public BrowseResponse setServerUsed(String serverUsed) { this.serverUsed = serverUsed; return this; } @@ -553,11 +465,7 @@ public String getServerUsed() { return serverUsed; } - public void setServerUsed(String serverUsed) { - this.serverUsed = serverUsed; - } - - public BrowseResponse userData(Object userData) { + public BrowseResponse setUserData(Object userData) { this.userData = userData; return this; } @@ -572,11 +480,7 @@ public Object getUserData() { return userData; } - public void setUserData(Object userData) { - this.userData = userData; - } - - public BrowseResponse hits(List hits) { + public BrowseResponse setHits(List hits) { this.hits = hits; return this; } @@ -596,11 +500,7 @@ public List getHits() { return hits; } - public void setHits(List hits) { - this.hits = hits; - } - - public BrowseResponse cursor(String cursor) { + public BrowseResponse setCursor(String cursor) { this.cursor = cursor; return this; } @@ -616,10 +516,6 @@ public String getCursor() { return cursor; } - public void setCursor(String cursor) { - this.cursor = cursor; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BuiltInOperation.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BuiltInOperation.java index b81e35f8c0..854894e792 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BuiltInOperation.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BuiltInOperation.java @@ -14,7 +14,7 @@ public class BuiltInOperation { @SerializedName("value") private String value; - public BuiltInOperation operation(BuiltInOperationType operation) { + public BuiltInOperation setOperation(BuiltInOperationType operation) { this.operation = operation; return this; } @@ -29,11 +29,7 @@ public BuiltInOperationType getOperation() { return operation; } - public void setOperation(BuiltInOperationType operation) { - this.operation = operation; - } - - public BuiltInOperation value(String value) { + public BuiltInOperation setValue(String value) { this.value = value; return this; } @@ -49,10 +45,6 @@ public String getValue() { return value; } - public void setValue(String value) { - this.value = value; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BuiltInOperationType.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BuiltInOperationType.java index 3e4cf35099..5321d0c9f7 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BuiltInOperationType.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/BuiltInOperationType.java @@ -17,13 +17,13 @@ public enum BuiltInOperationType { REMOVE("Remove"), - ADDUNIQUE("AddUnique"), + ADD_UNIQUE("AddUnique"), - INCREMENTFROM("IncrementFrom"), + INCREMENT_FROM("IncrementFrom"), - INCREMENTSET("IncrementSet"); + INCREMENT_SET("IncrementSet"); - private String value; + private final String value; BuiltInOperationType(String value) { this.value = value; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Condition.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Condition.java index 126a641508..2cc78647d9 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Condition.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Condition.java @@ -18,7 +18,7 @@ public class Condition { @SerializedName("context") private String context; - public Condition pattern(String pattern) { + public Condition setPattern(String pattern) { this.pattern = pattern; return this; } @@ -33,11 +33,7 @@ public String getPattern() { return pattern; } - public void setPattern(String pattern) { - this.pattern = pattern; - } - - public Condition anchoring(Anchoring anchoring) { + public Condition setAnchoring(Anchoring anchoring) { this.anchoring = anchoring; return this; } @@ -52,11 +48,7 @@ public Anchoring getAnchoring() { return anchoring; } - public void setAnchoring(Anchoring anchoring) { - this.anchoring = anchoring; - } - - public Condition alternatives(Boolean alternatives) { + public Condition setAlternatives(Boolean alternatives) { this.alternatives = alternatives; return this; } @@ -71,11 +63,7 @@ public Boolean getAlternatives() { return alternatives; } - public void setAlternatives(Boolean alternatives) { - this.alternatives = alternatives; - } - - public Condition context(String context) { + public Condition setContext(String context) { this.context = context; return this; } @@ -90,10 +78,6 @@ public String getContext() { return context; } - public void setContext(String context) { - this.context = context; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Consequence.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Consequence.java index ff276df1cf..015dd27a8e 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Consequence.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Consequence.java @@ -23,7 +23,7 @@ public class Consequence { @SerializedName("userData") private Object userData; - public Consequence params(ConsequenceParams params) { + public Consequence setParams(ConsequenceParams params) { this.params = params; return this; } @@ -38,11 +38,7 @@ public ConsequenceParams getParams() { return params; } - public void setParams(ConsequenceParams params) { - this.params = params; - } - - public Consequence promote(List promote) { + public Consequence setPromote(List promote) { this.promote = promote; return this; } @@ -65,11 +61,7 @@ public List getPromote() { return promote; } - public void setPromote(List promote) { - this.promote = promote; - } - - public Consequence filterPromotes(Boolean filterPromotes) { + public Consequence setFilterPromotes(Boolean filterPromotes) { this.filterPromotes = filterPromotes; return this; } @@ -86,11 +78,7 @@ public Boolean getFilterPromotes() { return filterPromotes; } - public void setFilterPromotes(Boolean filterPromotes) { - this.filterPromotes = filterPromotes; - } - - public Consequence hide(List hide) { + public Consequence setHide(List hide) { this.hide = hide; return this; } @@ -114,11 +102,7 @@ public List getHide() { return hide; } - public void setHide(List hide) { - this.hide = hide; - } - - public Consequence userData(Object userData) { + public Consequence setUserData(Object userData) { this.userData = userData; return this; } @@ -134,10 +118,6 @@ public Object getUserData() { return userData; } - public void setUserData(Object userData) { - this.userData = userData; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ConsequenceHide.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ConsequenceHide.java index 9a84c36268..a0767116c4 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ConsequenceHide.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ConsequenceHide.java @@ -9,7 +9,7 @@ public class ConsequenceHide { @SerializedName("objectID") private String objectID; - public ConsequenceHide objectID(String objectID) { + public ConsequenceHide setObjectID(String objectID) { this.objectID = objectID; return this; } @@ -24,10 +24,6 @@ public String getObjectID() { return objectID; } - public void setObjectID(String objectID) { - this.objectID = objectID; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ConsequenceParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ConsequenceParams.java index fd40be3b14..2bc7ace051 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ConsequenceParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ConsequenceParams.java @@ -260,11 +260,11 @@ public TypoToleranceEnum read(final JsonReader jsonReader) /** Controls if and how query words are interpreted as prefixes. */ @JsonAdapter(QueryTypeEnum.Adapter.class) public enum QueryTypeEnum { - PREFIXLAST("prefixLast"), + PREFIX_LAST("prefixLast"), - PREFIXALL("prefixAll"), + PREFIX_ALL("prefixAll"), - PREFIXNONE("prefixNone"); + PREFIX_NONE("prefixNone"); private String value; @@ -310,18 +310,18 @@ public QueryTypeEnum read(final JsonReader jsonReader) } @SerializedName("queryType") - private QueryTypeEnum queryType = QueryTypeEnum.PREFIXLAST; + private QueryTypeEnum queryType = QueryTypeEnum.PREFIX_LAST; /** Selects a strategy to remove words from the query when it doesn't match any hits. */ @JsonAdapter(RemoveWordsIfNoResultsEnum.Adapter.class) public enum RemoveWordsIfNoResultsEnum { NONE("none"), - LASTWORDS("lastWords"), + LAST_WORDS("lastWords"), - FIRSTWORDS("firstWords"), + FIRST_WORDS("firstWords"), - ALLOPTIONAL("allOptional"); + ALL_OPTIONAL("allOptional"); private String value; @@ -440,11 +440,11 @@ public ExactOnSingleWordQueryEnum read(final JsonReader jsonReader) /** Gets or Sets alternativesAsExact */ @JsonAdapter(AlternativesAsExactEnum.Adapter.class) public enum AlternativesAsExactEnum { - IGNOREPLURALS("ignorePlurals"), + IGNORE_PLURALS("ignorePlurals"), - SINGLEWORDSYNONYM("singleWordSynonym"), + SINGLE_WORD_SYNONYM("singleWordSynonym"), - MULTIWORDSSYNONYM("multiWordsSynonym"); + MULTI_WORDS_SYNONYM("multiWordsSynonym"); private String value; @@ -495,9 +495,9 @@ public AlternativesAsExactEnum read(final JsonReader jsonReader) /** Gets or Sets advancedSyntaxFeatures */ @JsonAdapter(AdvancedSyntaxFeaturesEnum.Adapter.class) public enum AdvancedSyntaxFeaturesEnum { - EXACTPHRASE("exactPhrase"), + EXACT_PHRASE("exactPhrase"), - EXCLUDEWORDS("excludeWords"); + EXCLUDE_WORDS("excludeWords"); private String value; @@ -570,7 +570,7 @@ public AdvancedSyntaxFeaturesEnum read(final JsonReader jsonReader) @SerializedName("renderingContent") private Object renderingContent = new Object(); - public ConsequenceParams query(String query) { + public ConsequenceParams setQuery(String query) { this.query = query; return this; } @@ -585,11 +585,7 @@ public String getQuery() { return query; } - public void setQuery(String query) { - this.query = query; - } - - public ConsequenceParams automaticFacetFilters( + public ConsequenceParams setAutomaticFacetFilters( List automaticFacetFilters ) { this.automaticFacetFilters = automaticFacetFilters; @@ -617,13 +613,7 @@ public List getAutomaticFacetFilters() { return automaticFacetFilters; } - public void setAutomaticFacetFilters( - List automaticFacetFilters - ) { - this.automaticFacetFilters = automaticFacetFilters; - } - - public ConsequenceParams automaticOptionalFacetFilters( + public ConsequenceParams setAutomaticOptionalFacetFilters( List automaticOptionalFacetFilters ) { this.automaticOptionalFacetFilters = automaticOptionalFacetFilters; @@ -650,13 +640,7 @@ public List getAutomaticOptionalFacetFilters() { return automaticOptionalFacetFilters; } - public void setAutomaticOptionalFacetFilters( - List automaticOptionalFacetFilters - ) { - this.automaticOptionalFacetFilters = automaticOptionalFacetFilters; - } - - public ConsequenceParams similarQuery(String similarQuery) { + public ConsequenceParams setSimilarQuery(String similarQuery) { this.similarQuery = similarQuery; return this; } @@ -672,11 +656,7 @@ public String getSimilarQuery() { return similarQuery; } - public void setSimilarQuery(String similarQuery) { - this.similarQuery = similarQuery; - } - - public ConsequenceParams filters(String filters) { + public ConsequenceParams setFilters(String filters) { this.filters = filters; return this; } @@ -691,11 +671,7 @@ public String getFilters() { return filters; } - public void setFilters(String filters) { - this.filters = filters; - } - - public ConsequenceParams facetFilters(List facetFilters) { + public ConsequenceParams setFacetFilters(List facetFilters) { this.facetFilters = facetFilters; return this; } @@ -718,11 +694,7 @@ public List getFacetFilters() { return facetFilters; } - public void setFacetFilters(List facetFilters) { - this.facetFilters = facetFilters; - } - - public ConsequenceParams optionalFilters(List optionalFilters) { + public ConsequenceParams setOptionalFilters(List optionalFilters) { this.optionalFilters = optionalFilters; return this; } @@ -746,11 +718,7 @@ public List getOptionalFilters() { return optionalFilters; } - public void setOptionalFilters(List optionalFilters) { - this.optionalFilters = optionalFilters; - } - - public ConsequenceParams numericFilters(List numericFilters) { + public ConsequenceParams setNumericFilters(List numericFilters) { this.numericFilters = numericFilters; return this; } @@ -773,11 +741,7 @@ public List getNumericFilters() { return numericFilters; } - public void setNumericFilters(List numericFilters) { - this.numericFilters = numericFilters; - } - - public ConsequenceParams tagFilters(List tagFilters) { + public ConsequenceParams setTagFilters(List tagFilters) { this.tagFilters = tagFilters; return this; } @@ -800,11 +764,7 @@ public List getTagFilters() { return tagFilters; } - public void setTagFilters(List tagFilters) { - this.tagFilters = tagFilters; - } - - public ConsequenceParams sumOrFiltersScores(Boolean sumOrFiltersScores) { + public ConsequenceParams setSumOrFiltersScores(Boolean sumOrFiltersScores) { this.sumOrFiltersScores = sumOrFiltersScores; return this; } @@ -819,11 +779,7 @@ public Boolean getSumOrFiltersScores() { return sumOrFiltersScores; } - public void setSumOrFiltersScores(Boolean sumOrFiltersScores) { - this.sumOrFiltersScores = sumOrFiltersScores; - } - - public ConsequenceParams facets(List facets) { + public ConsequenceParams setFacets(List facets) { this.facets = facets; return this; } @@ -846,11 +802,7 @@ public List getFacets() { return facets; } - public void setFacets(List facets) { - this.facets = facets; - } - - public ConsequenceParams maxValuesPerFacet(Integer maxValuesPerFacet) { + public ConsequenceParams setMaxValuesPerFacet(Integer maxValuesPerFacet) { this.maxValuesPerFacet = maxValuesPerFacet; return this; } @@ -865,11 +817,7 @@ public Integer getMaxValuesPerFacet() { return maxValuesPerFacet; } - public void setMaxValuesPerFacet(Integer maxValuesPerFacet) { - this.maxValuesPerFacet = maxValuesPerFacet; - } - - public ConsequenceParams facetingAfterDistinct( + public ConsequenceParams setFacetingAfterDistinct( Boolean facetingAfterDistinct ) { this.facetingAfterDistinct = facetingAfterDistinct; @@ -886,11 +834,7 @@ public Boolean getFacetingAfterDistinct() { return facetingAfterDistinct; } - public void setFacetingAfterDistinct(Boolean facetingAfterDistinct) { - this.facetingAfterDistinct = facetingAfterDistinct; - } - - public ConsequenceParams sortFacetValuesBy(String sortFacetValuesBy) { + public ConsequenceParams setSortFacetValuesBy(String sortFacetValuesBy) { this.sortFacetValuesBy = sortFacetValuesBy; return this; } @@ -905,11 +849,7 @@ public String getSortFacetValuesBy() { return sortFacetValuesBy; } - public void setSortFacetValuesBy(String sortFacetValuesBy) { - this.sortFacetValuesBy = sortFacetValuesBy; - } - - public ConsequenceParams page(Integer page) { + public ConsequenceParams setPage(Integer page) { this.page = page; return this; } @@ -924,11 +864,7 @@ public Integer getPage() { return page; } - public void setPage(Integer page) { - this.page = page; - } - - public ConsequenceParams offset(Integer offset) { + public ConsequenceParams setOffset(Integer offset) { this.offset = offset; return this; } @@ -943,11 +879,7 @@ public Integer getOffset() { return offset; } - public void setOffset(Integer offset) { - this.offset = offset; - } - - public ConsequenceParams length(Integer length) { + public ConsequenceParams setLength(Integer length) { this.length = length; return this; } @@ -962,11 +894,7 @@ public Integer getLength() { return length; } - public void setLength(Integer length) { - this.length = length; - } - - public ConsequenceParams aroundLatLng(String aroundLatLng) { + public ConsequenceParams setAroundLatLng(String aroundLatLng) { this.aroundLatLng = aroundLatLng; return this; } @@ -981,11 +909,7 @@ public String getAroundLatLng() { return aroundLatLng; } - public void setAroundLatLng(String aroundLatLng) { - this.aroundLatLng = aroundLatLng; - } - - public ConsequenceParams aroundLatLngViaIP(Boolean aroundLatLngViaIP) { + public ConsequenceParams setAroundLatLngViaIP(Boolean aroundLatLngViaIP) { this.aroundLatLngViaIP = aroundLatLngViaIP; return this; } @@ -1001,11 +925,7 @@ public Boolean getAroundLatLngViaIP() { return aroundLatLngViaIP; } - public void setAroundLatLngViaIP(Boolean aroundLatLngViaIP) { - this.aroundLatLngViaIP = aroundLatLngViaIP; - } - - public ConsequenceParams aroundRadius(AroundRadius aroundRadius) { + public ConsequenceParams setAroundRadius(AroundRadius aroundRadius) { this.aroundRadius = aroundRadius; return this; } @@ -1020,11 +940,7 @@ public AroundRadius getAroundRadius() { return aroundRadius; } - public void setAroundRadius(AroundRadius aroundRadius) { - this.aroundRadius = aroundRadius; - } - - public ConsequenceParams aroundPrecision(Integer aroundPrecision) { + public ConsequenceParams setAroundPrecision(Integer aroundPrecision) { this.aroundPrecision = aroundPrecision; return this; } @@ -1039,11 +955,7 @@ public Integer getAroundPrecision() { return aroundPrecision; } - public void setAroundPrecision(Integer aroundPrecision) { - this.aroundPrecision = aroundPrecision; - } - - public ConsequenceParams minimumAroundRadius(Integer minimumAroundRadius) { + public ConsequenceParams setMinimumAroundRadius(Integer minimumAroundRadius) { this.minimumAroundRadius = minimumAroundRadius; return this; } @@ -1058,11 +970,7 @@ public Integer getMinimumAroundRadius() { return minimumAroundRadius; } - public void setMinimumAroundRadius(Integer minimumAroundRadius) { - this.minimumAroundRadius = minimumAroundRadius; - } - - public ConsequenceParams insideBoundingBox( + public ConsequenceParams setInsideBoundingBox( List insideBoundingBox ) { this.insideBoundingBox = insideBoundingBox; @@ -1089,11 +997,7 @@ public List getInsideBoundingBox() { return insideBoundingBox; } - public void setInsideBoundingBox(List insideBoundingBox) { - this.insideBoundingBox = insideBoundingBox; - } - - public ConsequenceParams insidePolygon(List insidePolygon) { + public ConsequenceParams setInsidePolygon(List insidePolygon) { this.insidePolygon = insidePolygon; return this; } @@ -1116,11 +1020,7 @@ public List getInsidePolygon() { return insidePolygon; } - public void setInsidePolygon(List insidePolygon) { - this.insidePolygon = insidePolygon; - } - - public ConsequenceParams naturalLanguages(List naturalLanguages) { + public ConsequenceParams setNaturalLanguages(List naturalLanguages) { this.naturalLanguages = naturalLanguages; return this; } @@ -1149,11 +1049,7 @@ public List getNaturalLanguages() { return naturalLanguages; } - public void setNaturalLanguages(List naturalLanguages) { - this.naturalLanguages = naturalLanguages; - } - - public ConsequenceParams ruleContexts(List ruleContexts) { + public ConsequenceParams setRuleContexts(List ruleContexts) { this.ruleContexts = ruleContexts; return this; } @@ -1176,11 +1072,7 @@ public List getRuleContexts() { return ruleContexts; } - public void setRuleContexts(List ruleContexts) { - this.ruleContexts = ruleContexts; - } - - public ConsequenceParams personalizationImpact( + public ConsequenceParams setPersonalizationImpact( Integer personalizationImpact ) { this.personalizationImpact = personalizationImpact; @@ -1197,11 +1089,7 @@ public Integer getPersonalizationImpact() { return personalizationImpact; } - public void setPersonalizationImpact(Integer personalizationImpact) { - this.personalizationImpact = personalizationImpact; - } - - public ConsequenceParams userToken(String userToken) { + public ConsequenceParams setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -1216,11 +1104,7 @@ public String getUserToken() { return userToken; } - public void setUserToken(String userToken) { - this.userToken = userToken; - } - - public ConsequenceParams getRankingInfo(Boolean getRankingInfo) { + public ConsequenceParams setGetRankingInfo(Boolean getRankingInfo) { this.getRankingInfo = getRankingInfo; return this; } @@ -1235,11 +1119,7 @@ public Boolean getGetRankingInfo() { return getRankingInfo; } - public void setGetRankingInfo(Boolean getRankingInfo) { - this.getRankingInfo = getRankingInfo; - } - - public ConsequenceParams clickAnalytics(Boolean clickAnalytics) { + public ConsequenceParams setClickAnalytics(Boolean clickAnalytics) { this.clickAnalytics = clickAnalytics; return this; } @@ -1254,11 +1134,7 @@ public Boolean getClickAnalytics() { return clickAnalytics; } - public void setClickAnalytics(Boolean clickAnalytics) { - this.clickAnalytics = clickAnalytics; - } - - public ConsequenceParams analytics(Boolean analytics) { + public ConsequenceParams setAnalytics(Boolean analytics) { this.analytics = analytics; return this; } @@ -1273,11 +1149,7 @@ public Boolean getAnalytics() { return analytics; } - public void setAnalytics(Boolean analytics) { - this.analytics = analytics; - } - - public ConsequenceParams analyticsTags(List analyticsTags) { + public ConsequenceParams setAnalyticsTags(List analyticsTags) { this.analyticsTags = analyticsTags; return this; } @@ -1300,11 +1172,7 @@ public List getAnalyticsTags() { return analyticsTags; } - public void setAnalyticsTags(List analyticsTags) { - this.analyticsTags = analyticsTags; - } - - public ConsequenceParams percentileComputation( + public ConsequenceParams setPercentileComputation( Boolean percentileComputation ) { this.percentileComputation = percentileComputation; @@ -1321,11 +1189,7 @@ public Boolean getPercentileComputation() { return percentileComputation; } - public void setPercentileComputation(Boolean percentileComputation) { - this.percentileComputation = percentileComputation; - } - - public ConsequenceParams enableABTest(Boolean enableABTest) { + public ConsequenceParams setEnableABTest(Boolean enableABTest) { this.enableABTest = enableABTest; return this; } @@ -1340,11 +1204,7 @@ public Boolean getEnableABTest() { return enableABTest; } - public void setEnableABTest(Boolean enableABTest) { - this.enableABTest = enableABTest; - } - - public ConsequenceParams enableReRanking(Boolean enableReRanking) { + public ConsequenceParams setEnableReRanking(Boolean enableReRanking) { this.enableReRanking = enableReRanking; return this; } @@ -1359,11 +1219,7 @@ public Boolean getEnableReRanking() { return enableReRanking; } - public void setEnableReRanking(Boolean enableReRanking) { - this.enableReRanking = enableReRanking; - } - - public ConsequenceParams searchableAttributes( + public ConsequenceParams setSearchableAttributes( List searchableAttributes ) { this.searchableAttributes = searchableAttributes; @@ -1390,11 +1246,7 @@ public List getSearchableAttributes() { return searchableAttributes; } - public void setSearchableAttributes(List searchableAttributes) { - this.searchableAttributes = searchableAttributes; - } - - public ConsequenceParams attributesForFaceting( + public ConsequenceParams setAttributesForFaceting( List attributesForFaceting ) { this.attributesForFaceting = attributesForFaceting; @@ -1421,11 +1273,7 @@ public List getAttributesForFaceting() { return attributesForFaceting; } - public void setAttributesForFaceting(List attributesForFaceting) { - this.attributesForFaceting = attributesForFaceting; - } - - public ConsequenceParams unretrievableAttributes( + public ConsequenceParams setUnretrievableAttributes( List unretrievableAttributes ) { this.unretrievableAttributes = unretrievableAttributes; @@ -1452,11 +1300,7 @@ public List getUnretrievableAttributes() { return unretrievableAttributes; } - public void setUnretrievableAttributes(List unretrievableAttributes) { - this.unretrievableAttributes = unretrievableAttributes; - } - - public ConsequenceParams attributesToRetrieve( + public ConsequenceParams setAttributesToRetrieve( List attributesToRetrieve ) { this.attributesToRetrieve = attributesToRetrieve; @@ -1483,11 +1327,7 @@ public List getAttributesToRetrieve() { return attributesToRetrieve; } - public void setAttributesToRetrieve(List attributesToRetrieve) { - this.attributesToRetrieve = attributesToRetrieve; - } - - public ConsequenceParams restrictSearchableAttributes( + public ConsequenceParams setRestrictSearchableAttributes( List restrictSearchableAttributes ) { this.restrictSearchableAttributes = restrictSearchableAttributes; @@ -1514,13 +1354,7 @@ public List getRestrictSearchableAttributes() { return restrictSearchableAttributes; } - public void setRestrictSearchableAttributes( - List restrictSearchableAttributes - ) { - this.restrictSearchableAttributes = restrictSearchableAttributes; - } - - public ConsequenceParams ranking(List ranking) { + public ConsequenceParams setRanking(List ranking) { this.ranking = ranking; return this; } @@ -1543,11 +1377,7 @@ public List getRanking() { return ranking; } - public void setRanking(List ranking) { - this.ranking = ranking; - } - - public ConsequenceParams customRanking(List customRanking) { + public ConsequenceParams setCustomRanking(List customRanking) { this.customRanking = customRanking; return this; } @@ -1570,11 +1400,7 @@ public List getCustomRanking() { return customRanking; } - public void setCustomRanking(List customRanking) { - this.customRanking = customRanking; - } - - public ConsequenceParams relevancyStrictness(Integer relevancyStrictness) { + public ConsequenceParams setRelevancyStrictness(Integer relevancyStrictness) { this.relevancyStrictness = relevancyStrictness; return this; } @@ -1590,11 +1416,7 @@ public Integer getRelevancyStrictness() { return relevancyStrictness; } - public void setRelevancyStrictness(Integer relevancyStrictness) { - this.relevancyStrictness = relevancyStrictness; - } - - public ConsequenceParams attributesToHighlight( + public ConsequenceParams setAttributesToHighlight( List attributesToHighlight ) { this.attributesToHighlight = attributesToHighlight; @@ -1621,11 +1443,7 @@ public List getAttributesToHighlight() { return attributesToHighlight; } - public void setAttributesToHighlight(List attributesToHighlight) { - this.attributesToHighlight = attributesToHighlight; - } - - public ConsequenceParams attributesToSnippet( + public ConsequenceParams setAttributesToSnippet( List attributesToSnippet ) { this.attributesToSnippet = attributesToSnippet; @@ -1652,11 +1470,7 @@ public List getAttributesToSnippet() { return attributesToSnippet; } - public void setAttributesToSnippet(List attributesToSnippet) { - this.attributesToSnippet = attributesToSnippet; - } - - public ConsequenceParams highlightPreTag(String highlightPreTag) { + public ConsequenceParams setHighlightPreTag(String highlightPreTag) { this.highlightPreTag = highlightPreTag; return this; } @@ -1671,11 +1485,7 @@ public String getHighlightPreTag() { return highlightPreTag; } - public void setHighlightPreTag(String highlightPreTag) { - this.highlightPreTag = highlightPreTag; - } - - public ConsequenceParams highlightPostTag(String highlightPostTag) { + public ConsequenceParams setHighlightPostTag(String highlightPostTag) { this.highlightPostTag = highlightPostTag; return this; } @@ -1690,11 +1500,7 @@ public String getHighlightPostTag() { return highlightPostTag; } - public void setHighlightPostTag(String highlightPostTag) { - this.highlightPostTag = highlightPostTag; - } - - public ConsequenceParams snippetEllipsisText(String snippetEllipsisText) { + public ConsequenceParams setSnippetEllipsisText(String snippetEllipsisText) { this.snippetEllipsisText = snippetEllipsisText; return this; } @@ -1709,11 +1515,7 @@ public String getSnippetEllipsisText() { return snippetEllipsisText; } - public void setSnippetEllipsisText(String snippetEllipsisText) { - this.snippetEllipsisText = snippetEllipsisText; - } - - public ConsequenceParams restrictHighlightAndSnippetArrays( + public ConsequenceParams setRestrictHighlightAndSnippetArrays( Boolean restrictHighlightAndSnippetArrays ) { this.restrictHighlightAndSnippetArrays = restrictHighlightAndSnippetArrays; @@ -1730,13 +1532,7 @@ public Boolean getRestrictHighlightAndSnippetArrays() { return restrictHighlightAndSnippetArrays; } - public void setRestrictHighlightAndSnippetArrays( - Boolean restrictHighlightAndSnippetArrays - ) { - this.restrictHighlightAndSnippetArrays = restrictHighlightAndSnippetArrays; - } - - public ConsequenceParams hitsPerPage(Integer hitsPerPage) { + public ConsequenceParams setHitsPerPage(Integer hitsPerPage) { this.hitsPerPage = hitsPerPage; return this; } @@ -1751,11 +1547,7 @@ public Integer getHitsPerPage() { return hitsPerPage; } - public void setHitsPerPage(Integer hitsPerPage) { - this.hitsPerPage = hitsPerPage; - } - - public ConsequenceParams minWordSizefor1Typo(Integer minWordSizefor1Typo) { + public ConsequenceParams setMinWordSizefor1Typo(Integer minWordSizefor1Typo) { this.minWordSizefor1Typo = minWordSizefor1Typo; return this; } @@ -1771,11 +1563,9 @@ public Integer getMinWordSizefor1Typo() { return minWordSizefor1Typo; } - public void setMinWordSizefor1Typo(Integer minWordSizefor1Typo) { - this.minWordSizefor1Typo = minWordSizefor1Typo; - } - - public ConsequenceParams minWordSizefor2Typos(Integer minWordSizefor2Typos) { + public ConsequenceParams setMinWordSizefor2Typos( + Integer minWordSizefor2Typos + ) { this.minWordSizefor2Typos = minWordSizefor2Typos; return this; } @@ -1791,11 +1581,7 @@ public Integer getMinWordSizefor2Typos() { return minWordSizefor2Typos; } - public void setMinWordSizefor2Typos(Integer minWordSizefor2Typos) { - this.minWordSizefor2Typos = minWordSizefor2Typos; - } - - public ConsequenceParams typoTolerance(TypoToleranceEnum typoTolerance) { + public ConsequenceParams setTypoTolerance(TypoToleranceEnum typoTolerance) { this.typoTolerance = typoTolerance; return this; } @@ -1810,11 +1596,7 @@ public TypoToleranceEnum getTypoTolerance() { return typoTolerance; } - public void setTypoTolerance(TypoToleranceEnum typoTolerance) { - this.typoTolerance = typoTolerance; - } - - public ConsequenceParams allowTyposOnNumericTokens( + public ConsequenceParams setAllowTyposOnNumericTokens( Boolean allowTyposOnNumericTokens ) { this.allowTyposOnNumericTokens = allowTyposOnNumericTokens; @@ -1831,11 +1613,7 @@ public Boolean getAllowTyposOnNumericTokens() { return allowTyposOnNumericTokens; } - public void setAllowTyposOnNumericTokens(Boolean allowTyposOnNumericTokens) { - this.allowTyposOnNumericTokens = allowTyposOnNumericTokens; - } - - public ConsequenceParams disableTypoToleranceOnAttributes( + public ConsequenceParams setDisableTypoToleranceOnAttributes( List disableTypoToleranceOnAttributes ) { this.disableTypoToleranceOnAttributes = disableTypoToleranceOnAttributes; @@ -1864,13 +1642,7 @@ public List getDisableTypoToleranceOnAttributes() { return disableTypoToleranceOnAttributes; } - public void setDisableTypoToleranceOnAttributes( - List disableTypoToleranceOnAttributes - ) { - this.disableTypoToleranceOnAttributes = disableTypoToleranceOnAttributes; - } - - public ConsequenceParams separatorsToIndex(String separatorsToIndex) { + public ConsequenceParams setSeparatorsToIndex(String separatorsToIndex) { this.separatorsToIndex = separatorsToIndex; return this; } @@ -1885,11 +1657,7 @@ public String getSeparatorsToIndex() { return separatorsToIndex; } - public void setSeparatorsToIndex(String separatorsToIndex) { - this.separatorsToIndex = separatorsToIndex; - } - - public ConsequenceParams ignorePlurals(String ignorePlurals) { + public ConsequenceParams setIgnorePlurals(String ignorePlurals) { this.ignorePlurals = ignorePlurals; return this; } @@ -1904,11 +1672,7 @@ public String getIgnorePlurals() { return ignorePlurals; } - public void setIgnorePlurals(String ignorePlurals) { - this.ignorePlurals = ignorePlurals; - } - - public ConsequenceParams removeStopWords(String removeStopWords) { + public ConsequenceParams setRemoveStopWords(String removeStopWords) { this.removeStopWords = removeStopWords; return this; } @@ -1923,11 +1687,7 @@ public String getRemoveStopWords() { return removeStopWords; } - public void setRemoveStopWords(String removeStopWords) { - this.removeStopWords = removeStopWords; - } - - public ConsequenceParams keepDiacriticsOnCharacters( + public ConsequenceParams setKeepDiacriticsOnCharacters( String keepDiacriticsOnCharacters ) { this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; @@ -1944,11 +1704,7 @@ public String getKeepDiacriticsOnCharacters() { return keepDiacriticsOnCharacters; } - public void setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) { - this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; - } - - public ConsequenceParams queryLanguages(List queryLanguages) { + public ConsequenceParams setQueryLanguages(List queryLanguages) { this.queryLanguages = queryLanguages; return this; } @@ -1972,11 +1728,7 @@ public List getQueryLanguages() { return queryLanguages; } - public void setQueryLanguages(List queryLanguages) { - this.queryLanguages = queryLanguages; - } - - public ConsequenceParams decompoundQuery(Boolean decompoundQuery) { + public ConsequenceParams setDecompoundQuery(Boolean decompoundQuery) { this.decompoundQuery = decompoundQuery; return this; } @@ -1991,11 +1743,7 @@ public Boolean getDecompoundQuery() { return decompoundQuery; } - public void setDecompoundQuery(Boolean decompoundQuery) { - this.decompoundQuery = decompoundQuery; - } - - public ConsequenceParams enableRules(Boolean enableRules) { + public ConsequenceParams setEnableRules(Boolean enableRules) { this.enableRules = enableRules; return this; } @@ -2010,11 +1758,7 @@ public Boolean getEnableRules() { return enableRules; } - public void setEnableRules(Boolean enableRules) { - this.enableRules = enableRules; - } - - public ConsequenceParams enablePersonalization( + public ConsequenceParams setEnablePersonalization( Boolean enablePersonalization ) { this.enablePersonalization = enablePersonalization; @@ -2031,11 +1775,7 @@ public Boolean getEnablePersonalization() { return enablePersonalization; } - public void setEnablePersonalization(Boolean enablePersonalization) { - this.enablePersonalization = enablePersonalization; - } - - public ConsequenceParams queryType(QueryTypeEnum queryType) { + public ConsequenceParams setQueryType(QueryTypeEnum queryType) { this.queryType = queryType; return this; } @@ -2050,11 +1790,7 @@ public QueryTypeEnum getQueryType() { return queryType; } - public void setQueryType(QueryTypeEnum queryType) { - this.queryType = queryType; - } - - public ConsequenceParams removeWordsIfNoResults( + public ConsequenceParams setRemoveWordsIfNoResults( RemoveWordsIfNoResultsEnum removeWordsIfNoResults ) { this.removeWordsIfNoResults = removeWordsIfNoResults; @@ -2071,13 +1807,7 @@ public RemoveWordsIfNoResultsEnum getRemoveWordsIfNoResults() { return removeWordsIfNoResults; } - public void setRemoveWordsIfNoResults( - RemoveWordsIfNoResultsEnum removeWordsIfNoResults - ) { - this.removeWordsIfNoResults = removeWordsIfNoResults; - } - - public ConsequenceParams advancedSyntax(Boolean advancedSyntax) { + public ConsequenceParams setAdvancedSyntax(Boolean advancedSyntax) { this.advancedSyntax = advancedSyntax; return this; } @@ -2092,11 +1822,7 @@ public Boolean getAdvancedSyntax() { return advancedSyntax; } - public void setAdvancedSyntax(Boolean advancedSyntax) { - this.advancedSyntax = advancedSyntax; - } - - public ConsequenceParams optionalWords(List optionalWords) { + public ConsequenceParams setOptionalWords(List optionalWords) { this.optionalWords = optionalWords; return this; } @@ -2119,11 +1845,7 @@ public List getOptionalWords() { return optionalWords; } - public void setOptionalWords(List optionalWords) { - this.optionalWords = optionalWords; - } - - public ConsequenceParams disableExactOnAttributes( + public ConsequenceParams setDisableExactOnAttributes( List disableExactOnAttributes ) { this.disableExactOnAttributes = disableExactOnAttributes; @@ -2150,13 +1872,7 @@ public List getDisableExactOnAttributes() { return disableExactOnAttributes; } - public void setDisableExactOnAttributes( - List disableExactOnAttributes - ) { - this.disableExactOnAttributes = disableExactOnAttributes; - } - - public ConsequenceParams exactOnSingleWordQuery( + public ConsequenceParams setExactOnSingleWordQuery( ExactOnSingleWordQueryEnum exactOnSingleWordQuery ) { this.exactOnSingleWordQuery = exactOnSingleWordQuery; @@ -2173,13 +1889,7 @@ public ExactOnSingleWordQueryEnum getExactOnSingleWordQuery() { return exactOnSingleWordQuery; } - public void setExactOnSingleWordQuery( - ExactOnSingleWordQueryEnum exactOnSingleWordQuery - ) { - this.exactOnSingleWordQuery = exactOnSingleWordQuery; - } - - public ConsequenceParams alternativesAsExact( + public ConsequenceParams setAlternativesAsExact( List alternativesAsExact ) { this.alternativesAsExact = alternativesAsExact; @@ -2206,13 +1916,7 @@ public List getAlternativesAsExact() { return alternativesAsExact; } - public void setAlternativesAsExact( - List alternativesAsExact - ) { - this.alternativesAsExact = alternativesAsExact; - } - - public ConsequenceParams advancedSyntaxFeatures( + public ConsequenceParams setAdvancedSyntaxFeatures( List advancedSyntaxFeatures ) { this.advancedSyntaxFeatures = advancedSyntaxFeatures; @@ -2240,13 +1944,7 @@ public List getAdvancedSyntaxFeatures() { return advancedSyntaxFeatures; } - public void setAdvancedSyntaxFeatures( - List advancedSyntaxFeatures - ) { - this.advancedSyntaxFeatures = advancedSyntaxFeatures; - } - - public ConsequenceParams distinct(Integer distinct) { + public ConsequenceParams setDistinct(Integer distinct) { this.distinct = distinct; return this; } @@ -2261,11 +1959,7 @@ public Integer getDistinct() { return distinct; } - public void setDistinct(Integer distinct) { - this.distinct = distinct; - } - - public ConsequenceParams synonyms(Boolean synonyms) { + public ConsequenceParams setSynonyms(Boolean synonyms) { this.synonyms = synonyms; return this; } @@ -2280,11 +1974,7 @@ public Boolean getSynonyms() { return synonyms; } - public void setSynonyms(Boolean synonyms) { - this.synonyms = synonyms; - } - - public ConsequenceParams replaceSynonymsInHighlight( + public ConsequenceParams setReplaceSynonymsInHighlight( Boolean replaceSynonymsInHighlight ) { this.replaceSynonymsInHighlight = replaceSynonymsInHighlight; @@ -2302,13 +1992,7 @@ public Boolean getReplaceSynonymsInHighlight() { return replaceSynonymsInHighlight; } - public void setReplaceSynonymsInHighlight( - Boolean replaceSynonymsInHighlight - ) { - this.replaceSynonymsInHighlight = replaceSynonymsInHighlight; - } - - public ConsequenceParams minProximity(Integer minProximity) { + public ConsequenceParams setMinProximity(Integer minProximity) { this.minProximity = minProximity; return this; } @@ -2323,11 +2007,7 @@ public Integer getMinProximity() { return minProximity; } - public void setMinProximity(Integer minProximity) { - this.minProximity = minProximity; - } - - public ConsequenceParams responseFields(List responseFields) { + public ConsequenceParams setResponseFields(List responseFields) { this.responseFields = responseFields; return this; } @@ -2351,11 +2031,7 @@ public List getResponseFields() { return responseFields; } - public void setResponseFields(List responseFields) { - this.responseFields = responseFields; - } - - public ConsequenceParams maxFacetHits(Integer maxFacetHits) { + public ConsequenceParams setMaxFacetHits(Integer maxFacetHits) { this.maxFacetHits = maxFacetHits; return this; } @@ -2371,11 +2047,7 @@ public Integer getMaxFacetHits() { return maxFacetHits; } - public void setMaxFacetHits(Integer maxFacetHits) { - this.maxFacetHits = maxFacetHits; - } - - public ConsequenceParams attributeCriteriaComputedByMinProximity( + public ConsequenceParams setAttributeCriteriaComputedByMinProximity( Boolean attributeCriteriaComputedByMinProximity ) { this.attributeCriteriaComputedByMinProximity = @@ -2394,14 +2066,7 @@ public Boolean getAttributeCriteriaComputedByMinProximity() { return attributeCriteriaComputedByMinProximity; } - public void setAttributeCriteriaComputedByMinProximity( - Boolean attributeCriteriaComputedByMinProximity - ) { - this.attributeCriteriaComputedByMinProximity = - attributeCriteriaComputedByMinProximity; - } - - public ConsequenceParams renderingContent(Object renderingContent) { + public ConsequenceParams setRenderingContent(Object renderingContent) { this.renderingContent = renderingContent; return this; } @@ -2417,10 +2082,6 @@ public Object getRenderingContent() { return renderingContent; } - public void setRenderingContent(Object renderingContent) { - this.renderingContent = renderingContent; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/CreatedAtObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/CreatedAtObject.java index d25d205fc1..8f43783f41 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/CreatedAtObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/CreatedAtObject.java @@ -9,7 +9,7 @@ public class CreatedAtObject { @SerializedName("createdAt") private String createdAt; - public CreatedAtObject createdAt(String createdAt) { + public CreatedAtObject setCreatedAt(String createdAt) { this.createdAt = createdAt; return this; } @@ -24,10 +24,6 @@ public String getCreatedAt() { return createdAt; } - public void setCreatedAt(String createdAt) { - this.createdAt = createdAt; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/CreatedAtResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/CreatedAtResponse.java index b11faa775e..4d84990028 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/CreatedAtResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/CreatedAtResponse.java @@ -9,7 +9,7 @@ public class CreatedAtResponse { @SerializedName("createdAt") private String createdAt; - public CreatedAtResponse createdAt(String createdAt) { + public CreatedAtResponse setCreatedAt(String createdAt) { this.createdAt = createdAt; return this; } @@ -24,10 +24,6 @@ public String getCreatedAt() { return createdAt; } - public void setCreatedAt(String createdAt) { - this.createdAt = createdAt; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeleteApiKeyResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeleteApiKeyResponse.java index 58ceadffd4..7c1e1d05aa 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeleteApiKeyResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeleteApiKeyResponse.java @@ -9,7 +9,7 @@ public class DeleteApiKeyResponse { @SerializedName("deletedAt") private String deletedAt; - public DeleteApiKeyResponse deletedAt(String deletedAt) { + public DeleteApiKeyResponse setDeletedAt(String deletedAt) { this.deletedAt = deletedAt; return this; } @@ -24,10 +24,6 @@ public String getDeletedAt() { return deletedAt; } - public void setDeletedAt(String deletedAt) { - this.deletedAt = deletedAt; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeleteSourceResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeleteSourceResponse.java index c41117d65b..9e5ba6850b 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeleteSourceResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeleteSourceResponse.java @@ -9,7 +9,7 @@ public class DeleteSourceResponse { @SerializedName("deletedAt") private String deletedAt; - public DeleteSourceResponse deletedAt(String deletedAt) { + public DeleteSourceResponse setDeletedAt(String deletedAt) { this.deletedAt = deletedAt; return this; } @@ -24,10 +24,6 @@ public String getDeletedAt() { return deletedAt; } - public void setDeletedAt(String deletedAt) { - this.deletedAt = deletedAt; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeletedAtResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeletedAtResponse.java index 43032c5c4f..518a964e93 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeletedAtResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DeletedAtResponse.java @@ -12,7 +12,7 @@ public class DeletedAtResponse { @SerializedName("deletedAt") private String deletedAt; - public DeletedAtResponse taskID(Integer taskID) { + public DeletedAtResponse setTaskID(Integer taskID) { this.taskID = taskID; return this; } @@ -27,11 +27,7 @@ public Integer getTaskID() { return taskID; } - public void setTaskID(Integer taskID) { - this.taskID = taskID; - } - - public DeletedAtResponse deletedAt(String deletedAt) { + public DeletedAtResponse setDeletedAt(String deletedAt) { this.deletedAt = deletedAt; return this; } @@ -46,10 +42,6 @@ public String getDeletedAt() { return deletedAt; } - public void setDeletedAt(String deletedAt) { - this.deletedAt = deletedAt; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryAction.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryAction.java index 2b7625364d..e7eae1baee 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryAction.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryAction.java @@ -9,11 +9,11 @@ /** Actions to perform. */ @JsonAdapter(DictionaryAction.Adapter.class) public enum DictionaryAction { - ADDENTRY("addEntry"), + ADD_ENTRY("addEntry"), - DELETEENTRY("deleteEntry"); + DELETE_ENTRY("deleteEntry"); - private String value; + private final String value; DictionaryAction(String value) { this.value = value; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryEntry.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryEntry.java index f5abe556dc..956bfc42a0 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryEntry.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryEntry.java @@ -27,7 +27,7 @@ public class DictionaryEntry extends HashMap { @SerializedName("state") private DictionaryEntryState state = DictionaryEntryState.ENABLED; - public DictionaryEntry objectID(String objectID) { + public DictionaryEntry setObjectID(String objectID) { this.objectID = objectID; return this; } @@ -42,11 +42,7 @@ public String getObjectID() { return objectID; } - public void setObjectID(String objectID) { - this.objectID = objectID; - } - - public DictionaryEntry language(String language) { + public DictionaryEntry setLanguage(String language) { this.language = language; return this; } @@ -61,11 +57,7 @@ public String getLanguage() { return language; } - public void setLanguage(String language) { - this.language = language; - } - - public DictionaryEntry word(String word) { + public DictionaryEntry setWord(String word) { this.word = word; return this; } @@ -80,11 +72,7 @@ public String getWord() { return word; } - public void setWord(String word) { - this.word = word; - } - - public DictionaryEntry words(List words) { + public DictionaryEntry setWords(List words) { this.words = words; return this; } @@ -107,11 +95,7 @@ public List getWords() { return words; } - public void setWords(List words) { - this.words = words; - } - - public DictionaryEntry decomposition(List decomposition) { + public DictionaryEntry setDecomposition(List decomposition) { this.decomposition = decomposition; return this; } @@ -134,11 +118,7 @@ public List getDecomposition() { return decomposition; } - public void setDecomposition(List decomposition) { - this.decomposition = decomposition; - } - - public DictionaryEntry state(DictionaryEntryState state) { + public DictionaryEntry setState(DictionaryEntryState state) { this.state = state; return this; } @@ -153,10 +133,6 @@ public DictionaryEntryState getState() { return state; } - public void setState(DictionaryEntryState state) { - this.state = state; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryEntryState.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryEntryState.java index 97d34d295a..de26607de0 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryEntryState.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryEntryState.java @@ -13,7 +13,7 @@ public enum DictionaryEntryState { DISABLED("disabled"); - private String value; + private final String value; DictionaryEntryState(String value) { this.value = value; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryLanguage.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryLanguage.java index 913822b4af..a6e35b3fd3 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryLanguage.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryLanguage.java @@ -9,7 +9,7 @@ public class DictionaryLanguage { @SerializedName("nbCustomEntires") private Integer nbCustomEntires; - public DictionaryLanguage nbCustomEntires(Integer nbCustomEntires) { + public DictionaryLanguage setNbCustomEntires(Integer nbCustomEntires) { this.nbCustomEntires = nbCustomEntires; return this; } @@ -25,10 +25,6 @@ public Integer getNbCustomEntires() { return nbCustomEntires; } - public void setNbCustomEntires(Integer nbCustomEntires) { - this.nbCustomEntires = nbCustomEntires; - } - @Override public boolean equals(Object o) { if (this == o) { 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 index f825ad4dbc..ced3966af1 100644 --- 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 @@ -9,7 +9,7 @@ public class DictionarySettingsParams { @SerializedName("disableStandardEntries") private StandardEntries disableStandardEntries; - public DictionarySettingsParams disableStandardEntries( + public DictionarySettingsParams setDisableStandardEntries( StandardEntries disableStandardEntries ) { this.disableStandardEntries = disableStandardEntries; @@ -26,12 +26,6 @@ public StandardEntries getDisableStandardEntries() { return disableStandardEntries; } - public void setDisableStandardEntries( - StandardEntries disableStandardEntries - ) { - this.disableStandardEntries = disableStandardEntries; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryType.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryType.java index 08d9ce4d48..13b7bb6aaa 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryType.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/DictionaryType.java @@ -15,7 +15,7 @@ public enum DictionaryType { COMPOUNDS("compounds"); - private String value; + private final String value; DictionaryType(String value) { this.value = value; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ErrorBase.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ErrorBase.java index feb45d7650..dd47341ff3 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ErrorBase.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ErrorBase.java @@ -10,7 +10,7 @@ public class ErrorBase extends HashMap { @SerializedName("message") private String message; - public ErrorBase message(String message) { + public ErrorBase setMessage(String message) { this.message = message; return this; } @@ -25,10 +25,6 @@ public String getMessage() { return message; } - public void setMessage(String message) { - this.message = message; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetDictionarySettingsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetDictionarySettingsResponse.java index 13f35b112a..b76797396d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetDictionarySettingsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetDictionarySettingsResponse.java @@ -9,7 +9,7 @@ public class GetDictionarySettingsResponse { @SerializedName("disableStandardEntries") private StandardEntries disableStandardEntries; - public GetDictionarySettingsResponse disableStandardEntries( + public GetDictionarySettingsResponse setDisableStandardEntries( StandardEntries disableStandardEntries ) { this.disableStandardEntries = disableStandardEntries; @@ -26,12 +26,6 @@ public StandardEntries getDisableStandardEntries() { return disableStandardEntries; } - public void setDisableStandardEntries( - StandardEntries disableStandardEntries - ) { - this.disableStandardEntries = disableStandardEntries; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponse.java index b12282a108..f33e61659f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponse.java @@ -11,7 +11,7 @@ public class GetLogsResponse { @SerializedName("logs") private List logs = new ArrayList<>(); - public GetLogsResponse logs(List logs) { + public GetLogsResponse setLogs(List logs) { this.logs = logs; return this; } @@ -31,10 +31,6 @@ public List getLogs() { return logs; } - public void setLogs(List logs) { - this.logs = logs; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponseInnerQueries.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponseInnerQueries.java index 98bfa42f4e..587b73d7bf 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponseInnerQueries.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponseInnerQueries.java @@ -15,7 +15,7 @@ public class GetLogsResponseInnerQueries { @SerializedName("query_id") private String queryId; - public GetLogsResponseInnerQueries indexName(String indexName) { + public GetLogsResponseInnerQueries setIndexName(String indexName) { this.indexName = indexName; return this; } @@ -30,11 +30,7 @@ public String getIndexName() { return indexName; } - public void setIndexName(String indexName) { - this.indexName = indexName; - } - - public GetLogsResponseInnerQueries userToken(String userToken) { + public GetLogsResponseInnerQueries setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -49,11 +45,7 @@ public String getUserToken() { return userToken; } - public void setUserToken(String userToken) { - this.userToken = userToken; - } - - public GetLogsResponseInnerQueries queryId(String queryId) { + public GetLogsResponseInnerQueries setQueryId(String queryId) { this.queryId = queryId; return this; } @@ -68,10 +60,6 @@ public String getQueryId() { return queryId; } - public void setQueryId(String queryId) { - this.queryId = queryId; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponseLogs.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponseLogs.java index 3fd1605864..511c8a39a3 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponseLogs.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetLogsResponseLogs.java @@ -53,7 +53,7 @@ public class GetLogsResponseLogs { @SerializedName("inner_queries") private List innerQueries = null; - public GetLogsResponseLogs timestamp(String timestamp) { + public GetLogsResponseLogs setTimestamp(String timestamp) { this.timestamp = timestamp; return this; } @@ -68,11 +68,7 @@ public String getTimestamp() { return timestamp; } - public void setTimestamp(String timestamp) { - this.timestamp = timestamp; - } - - public GetLogsResponseLogs method(String method) { + public GetLogsResponseLogs setMethod(String method) { this.method = method; return this; } @@ -87,11 +83,7 @@ public String getMethod() { return method; } - public void setMethod(String method) { - this.method = method; - } - - public GetLogsResponseLogs answerCode(String answerCode) { + public GetLogsResponseLogs setAnswerCode(String answerCode) { this.answerCode = answerCode; return this; } @@ -106,11 +98,7 @@ public String getAnswerCode() { return answerCode; } - public void setAnswerCode(String answerCode) { - this.answerCode = answerCode; - } - - public GetLogsResponseLogs queryBody(String queryBody) { + public GetLogsResponseLogs setQueryBody(String queryBody) { this.queryBody = queryBody; return this; } @@ -125,11 +113,7 @@ public String getQueryBody() { return queryBody; } - public void setQueryBody(String queryBody) { - this.queryBody = queryBody; - } - - public GetLogsResponseLogs answer(String answer) { + public GetLogsResponseLogs setAnswer(String answer) { this.answer = answer; return this; } @@ -144,11 +128,7 @@ public String getAnswer() { return answer; } - public void setAnswer(String answer) { - this.answer = answer; - } - - public GetLogsResponseLogs url(String url) { + public GetLogsResponseLogs setUrl(String url) { this.url = url; return this; } @@ -163,11 +143,7 @@ public String getUrl() { return url; } - public void setUrl(String url) { - this.url = url; - } - - public GetLogsResponseLogs ip(String ip) { + public GetLogsResponseLogs setIp(String ip) { this.ip = ip; return this; } @@ -182,11 +158,7 @@ public String getIp() { return ip; } - public void setIp(String ip) { - this.ip = ip; - } - - public GetLogsResponseLogs queryHeaders(String queryHeaders) { + public GetLogsResponseLogs setQueryHeaders(String queryHeaders) { this.queryHeaders = queryHeaders; return this; } @@ -201,11 +173,7 @@ public String getQueryHeaders() { return queryHeaders; } - public void setQueryHeaders(String queryHeaders) { - this.queryHeaders = queryHeaders; - } - - public GetLogsResponseLogs sha1(String sha1) { + public GetLogsResponseLogs setSha1(String sha1) { this.sha1 = sha1; return this; } @@ -220,11 +188,7 @@ public String getSha1() { return sha1; } - public void setSha1(String sha1) { - this.sha1 = sha1; - } - - public GetLogsResponseLogs nbApiCalls(String nbApiCalls) { + public GetLogsResponseLogs setNbApiCalls(String nbApiCalls) { this.nbApiCalls = nbApiCalls; return this; } @@ -239,11 +203,7 @@ public String getNbApiCalls() { return nbApiCalls; } - public void setNbApiCalls(String nbApiCalls) { - this.nbApiCalls = nbApiCalls; - } - - public GetLogsResponseLogs processingTimeMs(String processingTimeMs) { + public GetLogsResponseLogs setProcessingTimeMs(String processingTimeMs) { this.processingTimeMs = processingTimeMs; return this; } @@ -258,11 +218,7 @@ public String getProcessingTimeMs() { return processingTimeMs; } - public void setProcessingTimeMs(String processingTimeMs) { - this.processingTimeMs = processingTimeMs; - } - - public GetLogsResponseLogs index(String index) { + public GetLogsResponseLogs setIndex(String index) { this.index = index; return this; } @@ -277,11 +233,7 @@ public String getIndex() { return index; } - public void setIndex(String index) { - this.index = index; - } - - public GetLogsResponseLogs queryParams(String queryParams) { + public GetLogsResponseLogs setQueryParams(String queryParams) { this.queryParams = queryParams; return this; } @@ -296,11 +248,7 @@ public String getQueryParams() { return queryParams; } - public void setQueryParams(String queryParams) { - this.queryParams = queryParams; - } - - public GetLogsResponseLogs queryNbHits(String queryNbHits) { + public GetLogsResponseLogs setQueryNbHits(String queryNbHits) { this.queryNbHits = queryNbHits; return this; } @@ -315,11 +263,7 @@ public String getQueryNbHits() { return queryNbHits; } - public void setQueryNbHits(String queryNbHits) { - this.queryNbHits = queryNbHits; - } - - public GetLogsResponseLogs innerQueries( + public GetLogsResponseLogs setInnerQueries( List innerQueries ) { this.innerQueries = innerQueries; @@ -346,10 +290,6 @@ public List getInnerQueries() { return innerQueries; } - public void setInnerQueries(List innerQueries) { - this.innerQueries = innerQueries; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetObjectsParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetObjectsParams.java index 9f88642115..4538aa5761 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetObjectsParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetObjectsParams.java @@ -11,7 +11,7 @@ public class GetObjectsParams { @SerializedName("requests") private List requests = null; - public GetObjectsParams requests(List requests) { + public GetObjectsParams setRequests(List requests) { this.requests = requests; return this; } @@ -36,10 +36,6 @@ public List getRequests() { return requests; } - public void setRequests(List requests) { - this.requests = requests; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetObjectsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetObjectsResponse.java index ae06326d62..845517e2ac 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetObjectsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetObjectsResponse.java @@ -11,7 +11,7 @@ public class GetObjectsResponse { @SerializedName("results") private List results = null; - public GetObjectsResponse results(List results) { + public GetObjectsResponse setResults(List results) { this.results = results; return this; } @@ -34,10 +34,6 @@ public List getResults() { return results; } - public void setResults(List results) { - this.results = results; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetTaskResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetTaskResponse.java index 8ceffd1c68..666a207453 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetTaskResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetTaskResponse.java @@ -16,7 +16,7 @@ public class GetTaskResponse { public enum StatusEnum { PUBLISHED("published"), - NOTPUBLISHED("notPublished"); + NOT_PUBLISHED("notPublished"); private String value; @@ -63,7 +63,7 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("status") private StatusEnum status; - public GetTaskResponse status(StatusEnum status) { + public GetTaskResponse setStatus(StatusEnum status) { this.status = status; return this; } @@ -78,10 +78,6 @@ public StatusEnum getStatus() { return status; } - public void setStatus(StatusEnum status) { - this.status = status; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetTopUserIdsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetTopUserIdsResponse.java index 9d01ede70c..49a7fa83e5 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetTopUserIdsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/GetTopUserIdsResponse.java @@ -12,7 +12,7 @@ public class GetTopUserIdsResponse { @SerializedName("topUsers") private List>> topUsers = new ArrayList<>(); - public GetTopUserIdsResponse topUsers( + public GetTopUserIdsResponse setTopUsers( List>> topUsers ) { this.topUsers = topUsers; @@ -36,10 +36,6 @@ public List>> getTopUsers() { return topUsers; } - public void setTopUsers(List>> topUsers) { - this.topUsers = topUsers; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/HighlightResult.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/HighlightResult.java index 2e2e7da29f..9d606ace5d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/HighlightResult.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/HighlightResult.java @@ -77,7 +77,7 @@ public MatchLevelEnum read(final JsonReader jsonReader) @SerializedName("fullyHighlighted") private Boolean fullyHighlighted; - public HighlightResult value(String value) { + public HighlightResult setValue(String value) { this.value = value; return this; } @@ -92,11 +92,7 @@ public String getValue() { return value; } - public void setValue(String value) { - this.value = value; - } - - public HighlightResult matchLevel(MatchLevelEnum matchLevel) { + public HighlightResult setMatchLevel(MatchLevelEnum matchLevel) { this.matchLevel = matchLevel; return this; } @@ -111,11 +107,7 @@ public MatchLevelEnum getMatchLevel() { return matchLevel; } - public void setMatchLevel(MatchLevelEnum matchLevel) { - this.matchLevel = matchLevel; - } - - public HighlightResult matchedWords(List matchedWords) { + public HighlightResult setMatchedWords(List matchedWords) { this.matchedWords = matchedWords; return this; } @@ -138,11 +130,7 @@ public List getMatchedWords() { return matchedWords; } - public void setMatchedWords(List matchedWords) { - this.matchedWords = matchedWords; - } - - public HighlightResult fullyHighlighted(Boolean fullyHighlighted) { + public HighlightResult setFullyHighlighted(Boolean fullyHighlighted) { this.fullyHighlighted = fullyHighlighted; return this; } @@ -157,10 +145,6 @@ public Boolean getFullyHighlighted() { return fullyHighlighted; } - public void setFullyHighlighted(Boolean fullyHighlighted) { - this.fullyHighlighted = fullyHighlighted; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Hit.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Hit.java index 2cbd620539..6bc78136d1 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Hit.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Hit.java @@ -22,7 +22,7 @@ public class Hit extends HashMap { @SerializedName("_distinctSeqID") private Integer distinctSeqID; - public Hit objectID(String objectID) { + public Hit setObjectID(String objectID) { this.objectID = objectID; return this; } @@ -37,11 +37,7 @@ public String getObjectID() { return objectID; } - public void setObjectID(String objectID) { - this.objectID = objectID; - } - - public Hit highlightResult(HighlightResult highlightResult) { + public Hit setHighlightResult(HighlightResult highlightResult) { this.highlightResult = highlightResult; return this; } @@ -56,11 +52,7 @@ public HighlightResult getHighlightResult() { return highlightResult; } - public void setHighlightResult(HighlightResult highlightResult) { - this.highlightResult = highlightResult; - } - - public Hit snippetResult(SnippetResult snippetResult) { + public Hit setSnippetResult(SnippetResult snippetResult) { this.snippetResult = snippetResult; return this; } @@ -75,11 +67,7 @@ public SnippetResult getSnippetResult() { return snippetResult; } - public void setSnippetResult(SnippetResult snippetResult) { - this.snippetResult = snippetResult; - } - - public Hit rankingInfo(RankingInfo rankingInfo) { + public Hit setRankingInfo(RankingInfo rankingInfo) { this.rankingInfo = rankingInfo; return this; } @@ -94,11 +82,7 @@ public RankingInfo getRankingInfo() { return rankingInfo; } - public void setRankingInfo(RankingInfo rankingInfo) { - this.rankingInfo = rankingInfo; - } - - public Hit distinctSeqID(Integer distinctSeqID) { + public Hit setDistinctSeqID(Integer distinctSeqID) { this.distinctSeqID = distinctSeqID; return this; } @@ -113,10 +97,6 @@ public Integer getDistinctSeqID() { return distinctSeqID; } - public void setDistinctSeqID(Integer distinctSeqID) { - this.distinctSeqID = distinctSeqID; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/IndexSettings.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/IndexSettings.java index 371607be76..700ba78dec 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/IndexSettings.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/IndexSettings.java @@ -190,11 +190,11 @@ public TypoToleranceEnum read(final JsonReader jsonReader) /** Controls if and how query words are interpreted as prefixes. */ @JsonAdapter(QueryTypeEnum.Adapter.class) public enum QueryTypeEnum { - PREFIXLAST("prefixLast"), + PREFIX_LAST("prefixLast"), - PREFIXALL("prefixAll"), + PREFIX_ALL("prefixAll"), - PREFIXNONE("prefixNone"); + PREFIX_NONE("prefixNone"); private String value; @@ -240,18 +240,18 @@ public QueryTypeEnum read(final JsonReader jsonReader) } @SerializedName("queryType") - private QueryTypeEnum queryType = QueryTypeEnum.PREFIXLAST; + private QueryTypeEnum queryType = QueryTypeEnum.PREFIX_LAST; /** Selects a strategy to remove words from the query when it doesn't match any hits. */ @JsonAdapter(RemoveWordsIfNoResultsEnum.Adapter.class) public enum RemoveWordsIfNoResultsEnum { NONE("none"), - LASTWORDS("lastWords"), + LAST_WORDS("lastWords"), - FIRSTWORDS("firstWords"), + FIRST_WORDS("firstWords"), - ALLOPTIONAL("allOptional"); + ALL_OPTIONAL("allOptional"); private String value; @@ -370,11 +370,11 @@ public ExactOnSingleWordQueryEnum read(final JsonReader jsonReader) /** Gets or Sets alternativesAsExact */ @JsonAdapter(AlternativesAsExactEnum.Adapter.class) public enum AlternativesAsExactEnum { - IGNOREPLURALS("ignorePlurals"), + IGNORE_PLURALS("ignorePlurals"), - SINGLEWORDSYNONYM("singleWordSynonym"), + SINGLE_WORD_SYNONYM("singleWordSynonym"), - MULTIWORDSSYNONYM("multiWordsSynonym"); + MULTI_WORDS_SYNONYM("multiWordsSynonym"); private String value; @@ -425,9 +425,9 @@ public AlternativesAsExactEnum read(final JsonReader jsonReader) /** Gets or Sets advancedSyntaxFeatures */ @JsonAdapter(AdvancedSyntaxFeaturesEnum.Adapter.class) public enum AdvancedSyntaxFeaturesEnum { - EXACTPHRASE("exactPhrase"), + EXACT_PHRASE("exactPhrase"), - EXCLUDEWORDS("excludeWords"); + EXCLUDE_WORDS("excludeWords"); private String value; @@ -500,7 +500,7 @@ public AdvancedSyntaxFeaturesEnum read(final JsonReader jsonReader) @SerializedName("renderingContent") private Object renderingContent = new Object(); - public IndexSettings replicas(List replicas) { + public IndexSettings setReplicas(List replicas) { this.replicas = replicas; return this; } @@ -523,11 +523,7 @@ public List getReplicas() { return replicas; } - public void setReplicas(List replicas) { - this.replicas = replicas; - } - - public IndexSettings paginationLimitedTo(Integer paginationLimitedTo) { + public IndexSettings setPaginationLimitedTo(Integer paginationLimitedTo) { this.paginationLimitedTo = paginationLimitedTo; return this; } @@ -542,11 +538,7 @@ public Integer getPaginationLimitedTo() { return paginationLimitedTo; } - public void setPaginationLimitedTo(Integer paginationLimitedTo) { - this.paginationLimitedTo = paginationLimitedTo; - } - - public IndexSettings disableTypoToleranceOnWords( + public IndexSettings setDisableTypoToleranceOnWords( List disableTypoToleranceOnWords ) { this.disableTypoToleranceOnWords = disableTypoToleranceOnWords; @@ -573,13 +565,7 @@ public List getDisableTypoToleranceOnWords() { return disableTypoToleranceOnWords; } - public void setDisableTypoToleranceOnWords( - List disableTypoToleranceOnWords - ) { - this.disableTypoToleranceOnWords = disableTypoToleranceOnWords; - } - - public IndexSettings attributesToTransliterate( + public IndexSettings setAttributesToTransliterate( List attributesToTransliterate ) { this.attributesToTransliterate = attributesToTransliterate; @@ -606,13 +592,9 @@ public List getAttributesToTransliterate() { return attributesToTransliterate; } - public void setAttributesToTransliterate( - List attributesToTransliterate + public IndexSettings setCamelCaseAttributes( + List camelCaseAttributes ) { - this.attributesToTransliterate = attributesToTransliterate; - } - - public IndexSettings camelCaseAttributes(List camelCaseAttributes) { this.camelCaseAttributes = camelCaseAttributes; return this; } @@ -637,11 +619,9 @@ public List getCamelCaseAttributes() { return camelCaseAttributes; } - public void setCamelCaseAttributes(List camelCaseAttributes) { - this.camelCaseAttributes = camelCaseAttributes; - } - - public IndexSettings decompoundedAttributes(Object decompoundedAttributes) { + public IndexSettings setDecompoundedAttributes( + Object decompoundedAttributes + ) { this.decompoundedAttributes = decompoundedAttributes; return this; } @@ -657,11 +637,7 @@ public Object getDecompoundedAttributes() { return decompoundedAttributes; } - public void setDecompoundedAttributes(Object decompoundedAttributes) { - this.decompoundedAttributes = decompoundedAttributes; - } - - public IndexSettings indexLanguages(List indexLanguages) { + public IndexSettings setIndexLanguages(List indexLanguages) { this.indexLanguages = indexLanguages; return this; } @@ -685,11 +661,7 @@ public List getIndexLanguages() { return indexLanguages; } - public void setIndexLanguages(List indexLanguages) { - this.indexLanguages = indexLanguages; - } - - public IndexSettings filterPromotes(Boolean filterPromotes) { + public IndexSettings setFilterPromotes(Boolean filterPromotes) { this.filterPromotes = filterPromotes; return this; } @@ -705,11 +677,7 @@ public Boolean getFilterPromotes() { return filterPromotes; } - public void setFilterPromotes(Boolean filterPromotes) { - this.filterPromotes = filterPromotes; - } - - public IndexSettings disablePrefixOnAttributes( + public IndexSettings setDisablePrefixOnAttributes( List disablePrefixOnAttributes ) { this.disablePrefixOnAttributes = disablePrefixOnAttributes; @@ -736,13 +704,7 @@ public List getDisablePrefixOnAttributes() { return disablePrefixOnAttributes; } - public void setDisablePrefixOnAttributes( - List disablePrefixOnAttributes - ) { - this.disablePrefixOnAttributes = disablePrefixOnAttributes; - } - - public IndexSettings allowCompressionOfIntegerArray( + public IndexSettings setAllowCompressionOfIntegerArray( Boolean allowCompressionOfIntegerArray ) { this.allowCompressionOfIntegerArray = allowCompressionOfIntegerArray; @@ -759,13 +721,7 @@ public Boolean getAllowCompressionOfIntegerArray() { return allowCompressionOfIntegerArray; } - public void setAllowCompressionOfIntegerArray( - Boolean allowCompressionOfIntegerArray - ) { - this.allowCompressionOfIntegerArray = allowCompressionOfIntegerArray; - } - - public IndexSettings numericAttributesForFiltering( + public IndexSettings setNumericAttributesForFiltering( List numericAttributesForFiltering ) { this.numericAttributesForFiltering = numericAttributesForFiltering; @@ -792,13 +748,7 @@ public List getNumericAttributesForFiltering() { return numericAttributesForFiltering; } - public void setNumericAttributesForFiltering( - List numericAttributesForFiltering - ) { - this.numericAttributesForFiltering = numericAttributesForFiltering; - } - - public IndexSettings userData(Object userData) { + public IndexSettings setUserData(Object userData) { this.userData = userData; return this; } @@ -813,11 +763,9 @@ public Object getUserData() { return userData; } - public void setUserData(Object userData) { - this.userData = userData; - } - - public IndexSettings searchableAttributes(List searchableAttributes) { + public IndexSettings setSearchableAttributes( + List searchableAttributes + ) { this.searchableAttributes = searchableAttributes; return this; } @@ -842,11 +790,7 @@ public List getSearchableAttributes() { return searchableAttributes; } - public void setSearchableAttributes(List searchableAttributes) { - this.searchableAttributes = searchableAttributes; - } - - public IndexSettings attributesForFaceting( + public IndexSettings setAttributesForFaceting( List attributesForFaceting ) { this.attributesForFaceting = attributesForFaceting; @@ -873,11 +817,7 @@ public List getAttributesForFaceting() { return attributesForFaceting; } - public void setAttributesForFaceting(List attributesForFaceting) { - this.attributesForFaceting = attributesForFaceting; - } - - public IndexSettings unretrievableAttributes( + public IndexSettings setUnretrievableAttributes( List unretrievableAttributes ) { this.unretrievableAttributes = unretrievableAttributes; @@ -904,11 +844,9 @@ public List getUnretrievableAttributes() { return unretrievableAttributes; } - public void setUnretrievableAttributes(List unretrievableAttributes) { - this.unretrievableAttributes = unretrievableAttributes; - } - - public IndexSettings attributesToRetrieve(List attributesToRetrieve) { + public IndexSettings setAttributesToRetrieve( + List attributesToRetrieve + ) { this.attributesToRetrieve = attributesToRetrieve; return this; } @@ -933,11 +871,7 @@ public List getAttributesToRetrieve() { return attributesToRetrieve; } - public void setAttributesToRetrieve(List attributesToRetrieve) { - this.attributesToRetrieve = attributesToRetrieve; - } - - public IndexSettings restrictSearchableAttributes( + public IndexSettings setRestrictSearchableAttributes( List restrictSearchableAttributes ) { this.restrictSearchableAttributes = restrictSearchableAttributes; @@ -964,13 +898,7 @@ public List getRestrictSearchableAttributes() { return restrictSearchableAttributes; } - public void setRestrictSearchableAttributes( - List restrictSearchableAttributes - ) { - this.restrictSearchableAttributes = restrictSearchableAttributes; - } - - public IndexSettings ranking(List ranking) { + public IndexSettings setRanking(List ranking) { this.ranking = ranking; return this; } @@ -993,11 +921,7 @@ public List getRanking() { return ranking; } - public void setRanking(List ranking) { - this.ranking = ranking; - } - - public IndexSettings customRanking(List customRanking) { + public IndexSettings setCustomRanking(List customRanking) { this.customRanking = customRanking; return this; } @@ -1020,11 +944,7 @@ public List getCustomRanking() { return customRanking; } - public void setCustomRanking(List customRanking) { - this.customRanking = customRanking; - } - - public IndexSettings relevancyStrictness(Integer relevancyStrictness) { + public IndexSettings setRelevancyStrictness(Integer relevancyStrictness) { this.relevancyStrictness = relevancyStrictness; return this; } @@ -1040,11 +960,7 @@ public Integer getRelevancyStrictness() { return relevancyStrictness; } - public void setRelevancyStrictness(Integer relevancyStrictness) { - this.relevancyStrictness = relevancyStrictness; - } - - public IndexSettings attributesToHighlight( + public IndexSettings setAttributesToHighlight( List attributesToHighlight ) { this.attributesToHighlight = attributesToHighlight; @@ -1071,11 +987,9 @@ public List getAttributesToHighlight() { return attributesToHighlight; } - public void setAttributesToHighlight(List attributesToHighlight) { - this.attributesToHighlight = attributesToHighlight; - } - - public IndexSettings attributesToSnippet(List attributesToSnippet) { + public IndexSettings setAttributesToSnippet( + List attributesToSnippet + ) { this.attributesToSnippet = attributesToSnippet; return this; } @@ -1100,11 +1014,7 @@ public List getAttributesToSnippet() { return attributesToSnippet; } - public void setAttributesToSnippet(List attributesToSnippet) { - this.attributesToSnippet = attributesToSnippet; - } - - public IndexSettings highlightPreTag(String highlightPreTag) { + public IndexSettings setHighlightPreTag(String highlightPreTag) { this.highlightPreTag = highlightPreTag; return this; } @@ -1119,11 +1029,7 @@ public String getHighlightPreTag() { return highlightPreTag; } - public void setHighlightPreTag(String highlightPreTag) { - this.highlightPreTag = highlightPreTag; - } - - public IndexSettings highlightPostTag(String highlightPostTag) { + public IndexSettings setHighlightPostTag(String highlightPostTag) { this.highlightPostTag = highlightPostTag; return this; } @@ -1138,11 +1044,7 @@ public String getHighlightPostTag() { return highlightPostTag; } - public void setHighlightPostTag(String highlightPostTag) { - this.highlightPostTag = highlightPostTag; - } - - public IndexSettings snippetEllipsisText(String snippetEllipsisText) { + public IndexSettings setSnippetEllipsisText(String snippetEllipsisText) { this.snippetEllipsisText = snippetEllipsisText; return this; } @@ -1157,11 +1059,7 @@ public String getSnippetEllipsisText() { return snippetEllipsisText; } - public void setSnippetEllipsisText(String snippetEllipsisText) { - this.snippetEllipsisText = snippetEllipsisText; - } - - public IndexSettings restrictHighlightAndSnippetArrays( + public IndexSettings setRestrictHighlightAndSnippetArrays( Boolean restrictHighlightAndSnippetArrays ) { this.restrictHighlightAndSnippetArrays = restrictHighlightAndSnippetArrays; @@ -1178,13 +1076,7 @@ public Boolean getRestrictHighlightAndSnippetArrays() { return restrictHighlightAndSnippetArrays; } - public void setRestrictHighlightAndSnippetArrays( - Boolean restrictHighlightAndSnippetArrays - ) { - this.restrictHighlightAndSnippetArrays = restrictHighlightAndSnippetArrays; - } - - public IndexSettings hitsPerPage(Integer hitsPerPage) { + public IndexSettings setHitsPerPage(Integer hitsPerPage) { this.hitsPerPage = hitsPerPage; return this; } @@ -1199,11 +1091,7 @@ public Integer getHitsPerPage() { return hitsPerPage; } - public void setHitsPerPage(Integer hitsPerPage) { - this.hitsPerPage = hitsPerPage; - } - - public IndexSettings minWordSizefor1Typo(Integer minWordSizefor1Typo) { + public IndexSettings setMinWordSizefor1Typo(Integer minWordSizefor1Typo) { this.minWordSizefor1Typo = minWordSizefor1Typo; return this; } @@ -1219,11 +1107,7 @@ public Integer getMinWordSizefor1Typo() { return minWordSizefor1Typo; } - public void setMinWordSizefor1Typo(Integer minWordSizefor1Typo) { - this.minWordSizefor1Typo = minWordSizefor1Typo; - } - - public IndexSettings minWordSizefor2Typos(Integer minWordSizefor2Typos) { + public IndexSettings setMinWordSizefor2Typos(Integer minWordSizefor2Typos) { this.minWordSizefor2Typos = minWordSizefor2Typos; return this; } @@ -1239,11 +1123,7 @@ public Integer getMinWordSizefor2Typos() { return minWordSizefor2Typos; } - public void setMinWordSizefor2Typos(Integer minWordSizefor2Typos) { - this.minWordSizefor2Typos = minWordSizefor2Typos; - } - - public IndexSettings typoTolerance(TypoToleranceEnum typoTolerance) { + public IndexSettings setTypoTolerance(TypoToleranceEnum typoTolerance) { this.typoTolerance = typoTolerance; return this; } @@ -1258,11 +1138,7 @@ public TypoToleranceEnum getTypoTolerance() { return typoTolerance; } - public void setTypoTolerance(TypoToleranceEnum typoTolerance) { - this.typoTolerance = typoTolerance; - } - - public IndexSettings allowTyposOnNumericTokens( + public IndexSettings setAllowTyposOnNumericTokens( Boolean allowTyposOnNumericTokens ) { this.allowTyposOnNumericTokens = allowTyposOnNumericTokens; @@ -1279,11 +1155,7 @@ public Boolean getAllowTyposOnNumericTokens() { return allowTyposOnNumericTokens; } - public void setAllowTyposOnNumericTokens(Boolean allowTyposOnNumericTokens) { - this.allowTyposOnNumericTokens = allowTyposOnNumericTokens; - } - - public IndexSettings disableTypoToleranceOnAttributes( + public IndexSettings setDisableTypoToleranceOnAttributes( List disableTypoToleranceOnAttributes ) { this.disableTypoToleranceOnAttributes = disableTypoToleranceOnAttributes; @@ -1312,13 +1184,7 @@ public List getDisableTypoToleranceOnAttributes() { return disableTypoToleranceOnAttributes; } - public void setDisableTypoToleranceOnAttributes( - List disableTypoToleranceOnAttributes - ) { - this.disableTypoToleranceOnAttributes = disableTypoToleranceOnAttributes; - } - - public IndexSettings separatorsToIndex(String separatorsToIndex) { + public IndexSettings setSeparatorsToIndex(String separatorsToIndex) { this.separatorsToIndex = separatorsToIndex; return this; } @@ -1333,11 +1199,7 @@ public String getSeparatorsToIndex() { return separatorsToIndex; } - public void setSeparatorsToIndex(String separatorsToIndex) { - this.separatorsToIndex = separatorsToIndex; - } - - public IndexSettings ignorePlurals(String ignorePlurals) { + public IndexSettings setIgnorePlurals(String ignorePlurals) { this.ignorePlurals = ignorePlurals; return this; } @@ -1352,11 +1214,7 @@ public String getIgnorePlurals() { return ignorePlurals; } - public void setIgnorePlurals(String ignorePlurals) { - this.ignorePlurals = ignorePlurals; - } - - public IndexSettings removeStopWords(String removeStopWords) { + public IndexSettings setRemoveStopWords(String removeStopWords) { this.removeStopWords = removeStopWords; return this; } @@ -1371,11 +1229,7 @@ public String getRemoveStopWords() { return removeStopWords; } - public void setRemoveStopWords(String removeStopWords) { - this.removeStopWords = removeStopWords; - } - - public IndexSettings keepDiacriticsOnCharacters( + public IndexSettings setKeepDiacriticsOnCharacters( String keepDiacriticsOnCharacters ) { this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; @@ -1392,11 +1246,7 @@ public String getKeepDiacriticsOnCharacters() { return keepDiacriticsOnCharacters; } - public void setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) { - this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; - } - - public IndexSettings queryLanguages(List queryLanguages) { + public IndexSettings setQueryLanguages(List queryLanguages) { this.queryLanguages = queryLanguages; return this; } @@ -1420,11 +1270,7 @@ public List getQueryLanguages() { return queryLanguages; } - public void setQueryLanguages(List queryLanguages) { - this.queryLanguages = queryLanguages; - } - - public IndexSettings decompoundQuery(Boolean decompoundQuery) { + public IndexSettings setDecompoundQuery(Boolean decompoundQuery) { this.decompoundQuery = decompoundQuery; return this; } @@ -1439,11 +1285,7 @@ public Boolean getDecompoundQuery() { return decompoundQuery; } - public void setDecompoundQuery(Boolean decompoundQuery) { - this.decompoundQuery = decompoundQuery; - } - - public IndexSettings enableRules(Boolean enableRules) { + public IndexSettings setEnableRules(Boolean enableRules) { this.enableRules = enableRules; return this; } @@ -1458,11 +1300,7 @@ public Boolean getEnableRules() { return enableRules; } - public void setEnableRules(Boolean enableRules) { - this.enableRules = enableRules; - } - - public IndexSettings enablePersonalization(Boolean enablePersonalization) { + public IndexSettings setEnablePersonalization(Boolean enablePersonalization) { this.enablePersonalization = enablePersonalization; return this; } @@ -1477,11 +1315,7 @@ public Boolean getEnablePersonalization() { return enablePersonalization; } - public void setEnablePersonalization(Boolean enablePersonalization) { - this.enablePersonalization = enablePersonalization; - } - - public IndexSettings queryType(QueryTypeEnum queryType) { + public IndexSettings setQueryType(QueryTypeEnum queryType) { this.queryType = queryType; return this; } @@ -1496,11 +1330,7 @@ public QueryTypeEnum getQueryType() { return queryType; } - public void setQueryType(QueryTypeEnum queryType) { - this.queryType = queryType; - } - - public IndexSettings removeWordsIfNoResults( + public IndexSettings setRemoveWordsIfNoResults( RemoveWordsIfNoResultsEnum removeWordsIfNoResults ) { this.removeWordsIfNoResults = removeWordsIfNoResults; @@ -1517,13 +1347,7 @@ public RemoveWordsIfNoResultsEnum getRemoveWordsIfNoResults() { return removeWordsIfNoResults; } - public void setRemoveWordsIfNoResults( - RemoveWordsIfNoResultsEnum removeWordsIfNoResults - ) { - this.removeWordsIfNoResults = removeWordsIfNoResults; - } - - public IndexSettings advancedSyntax(Boolean advancedSyntax) { + public IndexSettings setAdvancedSyntax(Boolean advancedSyntax) { this.advancedSyntax = advancedSyntax; return this; } @@ -1538,11 +1362,7 @@ public Boolean getAdvancedSyntax() { return advancedSyntax; } - public void setAdvancedSyntax(Boolean advancedSyntax) { - this.advancedSyntax = advancedSyntax; - } - - public IndexSettings optionalWords(List optionalWords) { + public IndexSettings setOptionalWords(List optionalWords) { this.optionalWords = optionalWords; return this; } @@ -1565,11 +1385,7 @@ public List getOptionalWords() { return optionalWords; } - public void setOptionalWords(List optionalWords) { - this.optionalWords = optionalWords; - } - - public IndexSettings disableExactOnAttributes( + public IndexSettings setDisableExactOnAttributes( List disableExactOnAttributes ) { this.disableExactOnAttributes = disableExactOnAttributes; @@ -1596,13 +1412,7 @@ public List getDisableExactOnAttributes() { return disableExactOnAttributes; } - public void setDisableExactOnAttributes( - List disableExactOnAttributes - ) { - this.disableExactOnAttributes = disableExactOnAttributes; - } - - public IndexSettings exactOnSingleWordQuery( + public IndexSettings setExactOnSingleWordQuery( ExactOnSingleWordQueryEnum exactOnSingleWordQuery ) { this.exactOnSingleWordQuery = exactOnSingleWordQuery; @@ -1619,13 +1429,7 @@ public ExactOnSingleWordQueryEnum getExactOnSingleWordQuery() { return exactOnSingleWordQuery; } - public void setExactOnSingleWordQuery( - ExactOnSingleWordQueryEnum exactOnSingleWordQuery - ) { - this.exactOnSingleWordQuery = exactOnSingleWordQuery; - } - - public IndexSettings alternativesAsExact( + public IndexSettings setAlternativesAsExact( List alternativesAsExact ) { this.alternativesAsExact = alternativesAsExact; @@ -1652,13 +1456,7 @@ public List getAlternativesAsExact() { return alternativesAsExact; } - public void setAlternativesAsExact( - List alternativesAsExact - ) { - this.alternativesAsExact = alternativesAsExact; - } - - public IndexSettings advancedSyntaxFeatures( + public IndexSettings setAdvancedSyntaxFeatures( List advancedSyntaxFeatures ) { this.advancedSyntaxFeatures = advancedSyntaxFeatures; @@ -1686,13 +1484,7 @@ public List getAdvancedSyntaxFeatures() { return advancedSyntaxFeatures; } - public void setAdvancedSyntaxFeatures( - List advancedSyntaxFeatures - ) { - this.advancedSyntaxFeatures = advancedSyntaxFeatures; - } - - public IndexSettings distinct(Integer distinct) { + public IndexSettings setDistinct(Integer distinct) { this.distinct = distinct; return this; } @@ -1707,11 +1499,7 @@ public Integer getDistinct() { return distinct; } - public void setDistinct(Integer distinct) { - this.distinct = distinct; - } - - public IndexSettings synonyms(Boolean synonyms) { + public IndexSettings setSynonyms(Boolean synonyms) { this.synonyms = synonyms; return this; } @@ -1726,11 +1514,7 @@ public Boolean getSynonyms() { return synonyms; } - public void setSynonyms(Boolean synonyms) { - this.synonyms = synonyms; - } - - public IndexSettings replaceSynonymsInHighlight( + public IndexSettings setReplaceSynonymsInHighlight( Boolean replaceSynonymsInHighlight ) { this.replaceSynonymsInHighlight = replaceSynonymsInHighlight; @@ -1748,13 +1532,7 @@ public Boolean getReplaceSynonymsInHighlight() { return replaceSynonymsInHighlight; } - public void setReplaceSynonymsInHighlight( - Boolean replaceSynonymsInHighlight - ) { - this.replaceSynonymsInHighlight = replaceSynonymsInHighlight; - } - - public IndexSettings minProximity(Integer minProximity) { + public IndexSettings setMinProximity(Integer minProximity) { this.minProximity = minProximity; return this; } @@ -1769,11 +1547,7 @@ public Integer getMinProximity() { return minProximity; } - public void setMinProximity(Integer minProximity) { - this.minProximity = minProximity; - } - - public IndexSettings responseFields(List responseFields) { + public IndexSettings setResponseFields(List responseFields) { this.responseFields = responseFields; return this; } @@ -1797,11 +1571,7 @@ public List getResponseFields() { return responseFields; } - public void setResponseFields(List responseFields) { - this.responseFields = responseFields; - } - - public IndexSettings maxFacetHits(Integer maxFacetHits) { + public IndexSettings setMaxFacetHits(Integer maxFacetHits) { this.maxFacetHits = maxFacetHits; return this; } @@ -1817,11 +1587,7 @@ public Integer getMaxFacetHits() { return maxFacetHits; } - public void setMaxFacetHits(Integer maxFacetHits) { - this.maxFacetHits = maxFacetHits; - } - - public IndexSettings attributeCriteriaComputedByMinProximity( + public IndexSettings setAttributeCriteriaComputedByMinProximity( Boolean attributeCriteriaComputedByMinProximity ) { this.attributeCriteriaComputedByMinProximity = @@ -1840,14 +1606,7 @@ public Boolean getAttributeCriteriaComputedByMinProximity() { return attributeCriteriaComputedByMinProximity; } - public void setAttributeCriteriaComputedByMinProximity( - Boolean attributeCriteriaComputedByMinProximity - ) { - this.attributeCriteriaComputedByMinProximity = - attributeCriteriaComputedByMinProximity; - } - - public IndexSettings renderingContent(Object renderingContent) { + public IndexSettings setRenderingContent(Object renderingContent) { this.renderingContent = renderingContent; return this; } @@ -1863,10 +1622,6 @@ public Object getRenderingContent() { return renderingContent; } - public void setRenderingContent(Object renderingContent) { - this.renderingContent = renderingContent; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/IndexSettingsAsSearchParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/IndexSettingsAsSearchParams.java index 7ba2433793..feffde2103 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/IndexSettingsAsSearchParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/IndexSettingsAsSearchParams.java @@ -154,11 +154,11 @@ public TypoToleranceEnum read(final JsonReader jsonReader) /** Controls if and how query words are interpreted as prefixes. */ @JsonAdapter(QueryTypeEnum.Adapter.class) public enum QueryTypeEnum { - PREFIXLAST("prefixLast"), + PREFIX_LAST("prefixLast"), - PREFIXALL("prefixAll"), + PREFIX_ALL("prefixAll"), - PREFIXNONE("prefixNone"); + PREFIX_NONE("prefixNone"); private String value; @@ -204,18 +204,18 @@ public QueryTypeEnum read(final JsonReader jsonReader) } @SerializedName("queryType") - private QueryTypeEnum queryType = QueryTypeEnum.PREFIXLAST; + private QueryTypeEnum queryType = QueryTypeEnum.PREFIX_LAST; /** Selects a strategy to remove words from the query when it doesn't match any hits. */ @JsonAdapter(RemoveWordsIfNoResultsEnum.Adapter.class) public enum RemoveWordsIfNoResultsEnum { NONE("none"), - LASTWORDS("lastWords"), + LAST_WORDS("lastWords"), - FIRSTWORDS("firstWords"), + FIRST_WORDS("firstWords"), - ALLOPTIONAL("allOptional"); + ALL_OPTIONAL("allOptional"); private String value; @@ -334,11 +334,11 @@ public ExactOnSingleWordQueryEnum read(final JsonReader jsonReader) /** Gets or Sets alternativesAsExact */ @JsonAdapter(AlternativesAsExactEnum.Adapter.class) public enum AlternativesAsExactEnum { - IGNOREPLURALS("ignorePlurals"), + IGNORE_PLURALS("ignorePlurals"), - SINGLEWORDSYNONYM("singleWordSynonym"), + SINGLE_WORD_SYNONYM("singleWordSynonym"), - MULTIWORDSSYNONYM("multiWordsSynonym"); + MULTI_WORDS_SYNONYM("multiWordsSynonym"); private String value; @@ -389,9 +389,9 @@ public AlternativesAsExactEnum read(final JsonReader jsonReader) /** Gets or Sets advancedSyntaxFeatures */ @JsonAdapter(AdvancedSyntaxFeaturesEnum.Adapter.class) public enum AdvancedSyntaxFeaturesEnum { - EXACTPHRASE("exactPhrase"), + EXACT_PHRASE("exactPhrase"), - EXCLUDEWORDS("excludeWords"); + EXCLUDE_WORDS("excludeWords"); private String value; @@ -464,7 +464,7 @@ public AdvancedSyntaxFeaturesEnum read(final JsonReader jsonReader) @SerializedName("renderingContent") private Object renderingContent = new Object(); - public IndexSettingsAsSearchParams searchableAttributes( + public IndexSettingsAsSearchParams setSearchableAttributes( List searchableAttributes ) { this.searchableAttributes = searchableAttributes; @@ -491,11 +491,7 @@ public List getSearchableAttributes() { return searchableAttributes; } - public void setSearchableAttributes(List searchableAttributes) { - this.searchableAttributes = searchableAttributes; - } - - public IndexSettingsAsSearchParams attributesForFaceting( + public IndexSettingsAsSearchParams setAttributesForFaceting( List attributesForFaceting ) { this.attributesForFaceting = attributesForFaceting; @@ -522,11 +518,7 @@ public List getAttributesForFaceting() { return attributesForFaceting; } - public void setAttributesForFaceting(List attributesForFaceting) { - this.attributesForFaceting = attributesForFaceting; - } - - public IndexSettingsAsSearchParams unretrievableAttributes( + public IndexSettingsAsSearchParams setUnretrievableAttributes( List unretrievableAttributes ) { this.unretrievableAttributes = unretrievableAttributes; @@ -553,11 +545,7 @@ public List getUnretrievableAttributes() { return unretrievableAttributes; } - public void setUnretrievableAttributes(List unretrievableAttributes) { - this.unretrievableAttributes = unretrievableAttributes; - } - - public IndexSettingsAsSearchParams attributesToRetrieve( + public IndexSettingsAsSearchParams setAttributesToRetrieve( List attributesToRetrieve ) { this.attributesToRetrieve = attributesToRetrieve; @@ -584,11 +572,7 @@ public List getAttributesToRetrieve() { return attributesToRetrieve; } - public void setAttributesToRetrieve(List attributesToRetrieve) { - this.attributesToRetrieve = attributesToRetrieve; - } - - public IndexSettingsAsSearchParams restrictSearchableAttributes( + public IndexSettingsAsSearchParams setRestrictSearchableAttributes( List restrictSearchableAttributes ) { this.restrictSearchableAttributes = restrictSearchableAttributes; @@ -615,13 +599,7 @@ public List getRestrictSearchableAttributes() { return restrictSearchableAttributes; } - public void setRestrictSearchableAttributes( - List restrictSearchableAttributes - ) { - this.restrictSearchableAttributes = restrictSearchableAttributes; - } - - public IndexSettingsAsSearchParams ranking(List ranking) { + public IndexSettingsAsSearchParams setRanking(List ranking) { this.ranking = ranking; return this; } @@ -644,11 +622,9 @@ public List getRanking() { return ranking; } - public void setRanking(List ranking) { - this.ranking = ranking; - } - - public IndexSettingsAsSearchParams customRanking(List customRanking) { + public IndexSettingsAsSearchParams setCustomRanking( + List customRanking + ) { this.customRanking = customRanking; return this; } @@ -673,11 +649,7 @@ public List getCustomRanking() { return customRanking; } - public void setCustomRanking(List customRanking) { - this.customRanking = customRanking; - } - - public IndexSettingsAsSearchParams relevancyStrictness( + public IndexSettingsAsSearchParams setRelevancyStrictness( Integer relevancyStrictness ) { this.relevancyStrictness = relevancyStrictness; @@ -695,11 +667,7 @@ public Integer getRelevancyStrictness() { return relevancyStrictness; } - public void setRelevancyStrictness(Integer relevancyStrictness) { - this.relevancyStrictness = relevancyStrictness; - } - - public IndexSettingsAsSearchParams attributesToHighlight( + public IndexSettingsAsSearchParams setAttributesToHighlight( List attributesToHighlight ) { this.attributesToHighlight = attributesToHighlight; @@ -726,11 +694,7 @@ public List getAttributesToHighlight() { return attributesToHighlight; } - public void setAttributesToHighlight(List attributesToHighlight) { - this.attributesToHighlight = attributesToHighlight; - } - - public IndexSettingsAsSearchParams attributesToSnippet( + public IndexSettingsAsSearchParams setAttributesToSnippet( List attributesToSnippet ) { this.attributesToSnippet = attributesToSnippet; @@ -757,11 +721,9 @@ public List getAttributesToSnippet() { return attributesToSnippet; } - public void setAttributesToSnippet(List attributesToSnippet) { - this.attributesToSnippet = attributesToSnippet; - } - - public IndexSettingsAsSearchParams highlightPreTag(String highlightPreTag) { + public IndexSettingsAsSearchParams setHighlightPreTag( + String highlightPreTag + ) { this.highlightPreTag = highlightPreTag; return this; } @@ -776,11 +738,9 @@ public String getHighlightPreTag() { return highlightPreTag; } - public void setHighlightPreTag(String highlightPreTag) { - this.highlightPreTag = highlightPreTag; - } - - public IndexSettingsAsSearchParams highlightPostTag(String highlightPostTag) { + public IndexSettingsAsSearchParams setHighlightPostTag( + String highlightPostTag + ) { this.highlightPostTag = highlightPostTag; return this; } @@ -795,11 +755,7 @@ public String getHighlightPostTag() { return highlightPostTag; } - public void setHighlightPostTag(String highlightPostTag) { - this.highlightPostTag = highlightPostTag; - } - - public IndexSettingsAsSearchParams snippetEllipsisText( + public IndexSettingsAsSearchParams setSnippetEllipsisText( String snippetEllipsisText ) { this.snippetEllipsisText = snippetEllipsisText; @@ -816,11 +772,7 @@ public String getSnippetEllipsisText() { return snippetEllipsisText; } - public void setSnippetEllipsisText(String snippetEllipsisText) { - this.snippetEllipsisText = snippetEllipsisText; - } - - public IndexSettingsAsSearchParams restrictHighlightAndSnippetArrays( + public IndexSettingsAsSearchParams setRestrictHighlightAndSnippetArrays( Boolean restrictHighlightAndSnippetArrays ) { this.restrictHighlightAndSnippetArrays = restrictHighlightAndSnippetArrays; @@ -837,13 +789,7 @@ public Boolean getRestrictHighlightAndSnippetArrays() { return restrictHighlightAndSnippetArrays; } - public void setRestrictHighlightAndSnippetArrays( - Boolean restrictHighlightAndSnippetArrays - ) { - this.restrictHighlightAndSnippetArrays = restrictHighlightAndSnippetArrays; - } - - public IndexSettingsAsSearchParams hitsPerPage(Integer hitsPerPage) { + public IndexSettingsAsSearchParams setHitsPerPage(Integer hitsPerPage) { this.hitsPerPage = hitsPerPage; return this; } @@ -858,11 +804,7 @@ public Integer getHitsPerPage() { return hitsPerPage; } - public void setHitsPerPage(Integer hitsPerPage) { - this.hitsPerPage = hitsPerPage; - } - - public IndexSettingsAsSearchParams minWordSizefor1Typo( + public IndexSettingsAsSearchParams setMinWordSizefor1Typo( Integer minWordSizefor1Typo ) { this.minWordSizefor1Typo = minWordSizefor1Typo; @@ -880,11 +822,7 @@ public Integer getMinWordSizefor1Typo() { return minWordSizefor1Typo; } - public void setMinWordSizefor1Typo(Integer minWordSizefor1Typo) { - this.minWordSizefor1Typo = minWordSizefor1Typo; - } - - public IndexSettingsAsSearchParams minWordSizefor2Typos( + public IndexSettingsAsSearchParams setMinWordSizefor2Typos( Integer minWordSizefor2Typos ) { this.minWordSizefor2Typos = minWordSizefor2Typos; @@ -902,11 +840,7 @@ public Integer getMinWordSizefor2Typos() { return minWordSizefor2Typos; } - public void setMinWordSizefor2Typos(Integer minWordSizefor2Typos) { - this.minWordSizefor2Typos = minWordSizefor2Typos; - } - - public IndexSettingsAsSearchParams typoTolerance( + public IndexSettingsAsSearchParams setTypoTolerance( TypoToleranceEnum typoTolerance ) { this.typoTolerance = typoTolerance; @@ -923,11 +857,7 @@ public TypoToleranceEnum getTypoTolerance() { return typoTolerance; } - public void setTypoTolerance(TypoToleranceEnum typoTolerance) { - this.typoTolerance = typoTolerance; - } - - public IndexSettingsAsSearchParams allowTyposOnNumericTokens( + public IndexSettingsAsSearchParams setAllowTyposOnNumericTokens( Boolean allowTyposOnNumericTokens ) { this.allowTyposOnNumericTokens = allowTyposOnNumericTokens; @@ -944,11 +874,7 @@ public Boolean getAllowTyposOnNumericTokens() { return allowTyposOnNumericTokens; } - public void setAllowTyposOnNumericTokens(Boolean allowTyposOnNumericTokens) { - this.allowTyposOnNumericTokens = allowTyposOnNumericTokens; - } - - public IndexSettingsAsSearchParams disableTypoToleranceOnAttributes( + public IndexSettingsAsSearchParams setDisableTypoToleranceOnAttributes( List disableTypoToleranceOnAttributes ) { this.disableTypoToleranceOnAttributes = disableTypoToleranceOnAttributes; @@ -977,13 +903,7 @@ public List getDisableTypoToleranceOnAttributes() { return disableTypoToleranceOnAttributes; } - public void setDisableTypoToleranceOnAttributes( - List disableTypoToleranceOnAttributes - ) { - this.disableTypoToleranceOnAttributes = disableTypoToleranceOnAttributes; - } - - public IndexSettingsAsSearchParams separatorsToIndex( + public IndexSettingsAsSearchParams setSeparatorsToIndex( String separatorsToIndex ) { this.separatorsToIndex = separatorsToIndex; @@ -1000,11 +920,7 @@ public String getSeparatorsToIndex() { return separatorsToIndex; } - public void setSeparatorsToIndex(String separatorsToIndex) { - this.separatorsToIndex = separatorsToIndex; - } - - public IndexSettingsAsSearchParams ignorePlurals(String ignorePlurals) { + public IndexSettingsAsSearchParams setIgnorePlurals(String ignorePlurals) { this.ignorePlurals = ignorePlurals; return this; } @@ -1019,11 +935,9 @@ public String getIgnorePlurals() { return ignorePlurals; } - public void setIgnorePlurals(String ignorePlurals) { - this.ignorePlurals = ignorePlurals; - } - - public IndexSettingsAsSearchParams removeStopWords(String removeStopWords) { + public IndexSettingsAsSearchParams setRemoveStopWords( + String removeStopWords + ) { this.removeStopWords = removeStopWords; return this; } @@ -1038,11 +952,7 @@ public String getRemoveStopWords() { return removeStopWords; } - public void setRemoveStopWords(String removeStopWords) { - this.removeStopWords = removeStopWords; - } - - public IndexSettingsAsSearchParams keepDiacriticsOnCharacters( + public IndexSettingsAsSearchParams setKeepDiacriticsOnCharacters( String keepDiacriticsOnCharacters ) { this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; @@ -1059,11 +969,7 @@ public String getKeepDiacriticsOnCharacters() { return keepDiacriticsOnCharacters; } - public void setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) { - this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; - } - - public IndexSettingsAsSearchParams queryLanguages( + public IndexSettingsAsSearchParams setQueryLanguages( List queryLanguages ) { this.queryLanguages = queryLanguages; @@ -1091,11 +997,9 @@ public List getQueryLanguages() { return queryLanguages; } - public void setQueryLanguages(List queryLanguages) { - this.queryLanguages = queryLanguages; - } - - public IndexSettingsAsSearchParams decompoundQuery(Boolean decompoundQuery) { + public IndexSettingsAsSearchParams setDecompoundQuery( + Boolean decompoundQuery + ) { this.decompoundQuery = decompoundQuery; return this; } @@ -1110,11 +1014,7 @@ public Boolean getDecompoundQuery() { return decompoundQuery; } - public void setDecompoundQuery(Boolean decompoundQuery) { - this.decompoundQuery = decompoundQuery; - } - - public IndexSettingsAsSearchParams enableRules(Boolean enableRules) { + public IndexSettingsAsSearchParams setEnableRules(Boolean enableRules) { this.enableRules = enableRules; return this; } @@ -1129,11 +1029,7 @@ public Boolean getEnableRules() { return enableRules; } - public void setEnableRules(Boolean enableRules) { - this.enableRules = enableRules; - } - - public IndexSettingsAsSearchParams enablePersonalization( + public IndexSettingsAsSearchParams setEnablePersonalization( Boolean enablePersonalization ) { this.enablePersonalization = enablePersonalization; @@ -1150,11 +1046,7 @@ public Boolean getEnablePersonalization() { return enablePersonalization; } - public void setEnablePersonalization(Boolean enablePersonalization) { - this.enablePersonalization = enablePersonalization; - } - - public IndexSettingsAsSearchParams queryType(QueryTypeEnum queryType) { + public IndexSettingsAsSearchParams setQueryType(QueryTypeEnum queryType) { this.queryType = queryType; return this; } @@ -1169,11 +1061,7 @@ public QueryTypeEnum getQueryType() { return queryType; } - public void setQueryType(QueryTypeEnum queryType) { - this.queryType = queryType; - } - - public IndexSettingsAsSearchParams removeWordsIfNoResults( + public IndexSettingsAsSearchParams setRemoveWordsIfNoResults( RemoveWordsIfNoResultsEnum removeWordsIfNoResults ) { this.removeWordsIfNoResults = removeWordsIfNoResults; @@ -1190,13 +1078,7 @@ public RemoveWordsIfNoResultsEnum getRemoveWordsIfNoResults() { return removeWordsIfNoResults; } - public void setRemoveWordsIfNoResults( - RemoveWordsIfNoResultsEnum removeWordsIfNoResults - ) { - this.removeWordsIfNoResults = removeWordsIfNoResults; - } - - public IndexSettingsAsSearchParams advancedSyntax(Boolean advancedSyntax) { + public IndexSettingsAsSearchParams setAdvancedSyntax(Boolean advancedSyntax) { this.advancedSyntax = advancedSyntax; return this; } @@ -1211,11 +1093,9 @@ public Boolean getAdvancedSyntax() { return advancedSyntax; } - public void setAdvancedSyntax(Boolean advancedSyntax) { - this.advancedSyntax = advancedSyntax; - } - - public IndexSettingsAsSearchParams optionalWords(List optionalWords) { + public IndexSettingsAsSearchParams setOptionalWords( + List optionalWords + ) { this.optionalWords = optionalWords; return this; } @@ -1240,11 +1120,7 @@ public List getOptionalWords() { return optionalWords; } - public void setOptionalWords(List optionalWords) { - this.optionalWords = optionalWords; - } - - public IndexSettingsAsSearchParams disableExactOnAttributes( + public IndexSettingsAsSearchParams setDisableExactOnAttributes( List disableExactOnAttributes ) { this.disableExactOnAttributes = disableExactOnAttributes; @@ -1271,13 +1147,7 @@ public List getDisableExactOnAttributes() { return disableExactOnAttributes; } - public void setDisableExactOnAttributes( - List disableExactOnAttributes - ) { - this.disableExactOnAttributes = disableExactOnAttributes; - } - - public IndexSettingsAsSearchParams exactOnSingleWordQuery( + public IndexSettingsAsSearchParams setExactOnSingleWordQuery( ExactOnSingleWordQueryEnum exactOnSingleWordQuery ) { this.exactOnSingleWordQuery = exactOnSingleWordQuery; @@ -1294,13 +1164,7 @@ public ExactOnSingleWordQueryEnum getExactOnSingleWordQuery() { return exactOnSingleWordQuery; } - public void setExactOnSingleWordQuery( - ExactOnSingleWordQueryEnum exactOnSingleWordQuery - ) { - this.exactOnSingleWordQuery = exactOnSingleWordQuery; - } - - public IndexSettingsAsSearchParams alternativesAsExact( + public IndexSettingsAsSearchParams setAlternativesAsExact( List alternativesAsExact ) { this.alternativesAsExact = alternativesAsExact; @@ -1327,13 +1191,7 @@ public List getAlternativesAsExact() { return alternativesAsExact; } - public void setAlternativesAsExact( - List alternativesAsExact - ) { - this.alternativesAsExact = alternativesAsExact; - } - - public IndexSettingsAsSearchParams advancedSyntaxFeatures( + public IndexSettingsAsSearchParams setAdvancedSyntaxFeatures( List advancedSyntaxFeatures ) { this.advancedSyntaxFeatures = advancedSyntaxFeatures; @@ -1361,13 +1219,7 @@ public List getAdvancedSyntaxFeatures() { return advancedSyntaxFeatures; } - public void setAdvancedSyntaxFeatures( - List advancedSyntaxFeatures - ) { - this.advancedSyntaxFeatures = advancedSyntaxFeatures; - } - - public IndexSettingsAsSearchParams distinct(Integer distinct) { + public IndexSettingsAsSearchParams setDistinct(Integer distinct) { this.distinct = distinct; return this; } @@ -1382,11 +1234,7 @@ public Integer getDistinct() { return distinct; } - public void setDistinct(Integer distinct) { - this.distinct = distinct; - } - - public IndexSettingsAsSearchParams synonyms(Boolean synonyms) { + public IndexSettingsAsSearchParams setSynonyms(Boolean synonyms) { this.synonyms = synonyms; return this; } @@ -1401,11 +1249,7 @@ public Boolean getSynonyms() { return synonyms; } - public void setSynonyms(Boolean synonyms) { - this.synonyms = synonyms; - } - - public IndexSettingsAsSearchParams replaceSynonymsInHighlight( + public IndexSettingsAsSearchParams setReplaceSynonymsInHighlight( Boolean replaceSynonymsInHighlight ) { this.replaceSynonymsInHighlight = replaceSynonymsInHighlight; @@ -1423,13 +1267,7 @@ public Boolean getReplaceSynonymsInHighlight() { return replaceSynonymsInHighlight; } - public void setReplaceSynonymsInHighlight( - Boolean replaceSynonymsInHighlight - ) { - this.replaceSynonymsInHighlight = replaceSynonymsInHighlight; - } - - public IndexSettingsAsSearchParams minProximity(Integer minProximity) { + public IndexSettingsAsSearchParams setMinProximity(Integer minProximity) { this.minProximity = minProximity; return this; } @@ -1444,11 +1282,7 @@ public Integer getMinProximity() { return minProximity; } - public void setMinProximity(Integer minProximity) { - this.minProximity = minProximity; - } - - public IndexSettingsAsSearchParams responseFields( + public IndexSettingsAsSearchParams setResponseFields( List responseFields ) { this.responseFields = responseFields; @@ -1476,11 +1310,7 @@ public List getResponseFields() { return responseFields; } - public void setResponseFields(List responseFields) { - this.responseFields = responseFields; - } - - public IndexSettingsAsSearchParams maxFacetHits(Integer maxFacetHits) { + public IndexSettingsAsSearchParams setMaxFacetHits(Integer maxFacetHits) { this.maxFacetHits = maxFacetHits; return this; } @@ -1496,11 +1326,7 @@ public Integer getMaxFacetHits() { return maxFacetHits; } - public void setMaxFacetHits(Integer maxFacetHits) { - this.maxFacetHits = maxFacetHits; - } - - public IndexSettingsAsSearchParams attributeCriteriaComputedByMinProximity( + public IndexSettingsAsSearchParams setAttributeCriteriaComputedByMinProximity( Boolean attributeCriteriaComputedByMinProximity ) { this.attributeCriteriaComputedByMinProximity = @@ -1519,14 +1345,9 @@ public Boolean getAttributeCriteriaComputedByMinProximity() { return attributeCriteriaComputedByMinProximity; } - public void setAttributeCriteriaComputedByMinProximity( - Boolean attributeCriteriaComputedByMinProximity + public IndexSettingsAsSearchParams setRenderingContent( + Object renderingContent ) { - this.attributeCriteriaComputedByMinProximity = - attributeCriteriaComputedByMinProximity; - } - - public IndexSettingsAsSearchParams renderingContent(Object renderingContent) { this.renderingContent = renderingContent; return this; } @@ -1542,10 +1363,6 @@ public Object getRenderingContent() { return renderingContent; } - public void setRenderingContent(Object renderingContent) { - this.renderingContent = renderingContent; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Indice.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Indice.java index e2b6dc3ac6..841134bea0 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Indice.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Indice.java @@ -41,7 +41,7 @@ public class Indice { @SerializedName("replicas") private List replicas = null; - public Indice name(String name) { + public Indice setName(String name) { this.name = name; return this; } @@ -56,11 +56,7 @@ public String getName() { return name; } - public void setName(String name) { - this.name = name; - } - - public Indice createdAt(String createdAt) { + public Indice setCreatedAt(String createdAt) { this.createdAt = createdAt; return this; } @@ -75,11 +71,7 @@ public String getCreatedAt() { return createdAt; } - public void setCreatedAt(String createdAt) { - this.createdAt = createdAt; - } - - public Indice updatedAt(String updatedAt) { + public Indice setUpdatedAt(String updatedAt) { this.updatedAt = updatedAt; return this; } @@ -94,11 +86,7 @@ public String getUpdatedAt() { return updatedAt; } - public void setUpdatedAt(String updatedAt) { - this.updatedAt = updatedAt; - } - - public Indice entries(Integer entries) { + public Indice setEntries(Integer entries) { this.entries = entries; return this; } @@ -113,11 +101,7 @@ public Integer getEntries() { return entries; } - public void setEntries(Integer entries) { - this.entries = entries; - } - - public Indice dataSize(Integer dataSize) { + public Indice setDataSize(Integer dataSize) { this.dataSize = dataSize; return this; } @@ -132,11 +116,7 @@ public Integer getDataSize() { return dataSize; } - public void setDataSize(Integer dataSize) { - this.dataSize = dataSize; - } - - public Indice fileSize(Integer fileSize) { + public Indice setFileSize(Integer fileSize) { this.fileSize = fileSize; return this; } @@ -151,11 +131,7 @@ public Integer getFileSize() { return fileSize; } - public void setFileSize(Integer fileSize) { - this.fileSize = fileSize; - } - - public Indice lastBuildTimeS(Integer lastBuildTimeS) { + public Indice setLastBuildTimeS(Integer lastBuildTimeS) { this.lastBuildTimeS = lastBuildTimeS; return this; } @@ -170,11 +146,7 @@ public Integer getLastBuildTimeS() { return lastBuildTimeS; } - public void setLastBuildTimeS(Integer lastBuildTimeS) { - this.lastBuildTimeS = lastBuildTimeS; - } - - public Indice numberOfPendingTask(Integer numberOfPendingTask) { + public Indice setNumberOfPendingTask(Integer numberOfPendingTask) { this.numberOfPendingTask = numberOfPendingTask; return this; } @@ -189,11 +161,7 @@ public Integer getNumberOfPendingTask() { return numberOfPendingTask; } - public void setNumberOfPendingTask(Integer numberOfPendingTask) { - this.numberOfPendingTask = numberOfPendingTask; - } - - public Indice pendingTask(Boolean pendingTask) { + public Indice setPendingTask(Boolean pendingTask) { this.pendingTask = pendingTask; return this; } @@ -209,11 +177,7 @@ public Boolean getPendingTask() { return pendingTask; } - public void setPendingTask(Boolean pendingTask) { - this.pendingTask = pendingTask; - } - - public Indice primary(String primary) { + public Indice setPrimary(String primary) { this.primary = primary; return this; } @@ -228,11 +192,7 @@ public String getPrimary() { return primary; } - public void setPrimary(String primary) { - this.primary = primary; - } - - public Indice replicas(List replicas) { + public Indice setReplicas(List replicas) { this.replicas = replicas; return this; } @@ -256,10 +216,6 @@ public List getReplicas() { return replicas; } - public void setReplicas(List replicas) { - this.replicas = replicas; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Key.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Key.java index 508663e5be..294884bd8e 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Key.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Key.java @@ -35,7 +35,7 @@ public class Key { @SerializedName("createdAt") private String createdAt; - public Key acl(List acl) { + public Key setAcl(List acl) { this.acl = acl; return this; } @@ -55,11 +55,7 @@ public List getAcl() { return acl; } - public void setAcl(List acl) { - this.acl = acl; - } - - public Key description(String description) { + public Key setDescription(String description) { this.description = description; return this; } @@ -75,11 +71,7 @@ public String getDescription() { return description; } - public void setDescription(String description) { - this.description = description; - } - - public Key indexes(List indexes) { + public Key setIndexes(List indexes) { this.indexes = indexes; return this; } @@ -103,11 +95,7 @@ public List getIndexes() { return indexes; } - public void setIndexes(List indexes) { - this.indexes = indexes; - } - - public Key maxHitsPerQuery(Integer maxHitsPerQuery) { + public Key setMaxHitsPerQuery(Integer maxHitsPerQuery) { this.maxHitsPerQuery = maxHitsPerQuery; return this; } @@ -122,11 +110,7 @@ public Integer getMaxHitsPerQuery() { return maxHitsPerQuery; } - public void setMaxHitsPerQuery(Integer maxHitsPerQuery) { - this.maxHitsPerQuery = maxHitsPerQuery; - } - - public Key maxQueriesPerIPPerHour(Integer maxQueriesPerIPPerHour) { + public Key setMaxQueriesPerIPPerHour(Integer maxQueriesPerIPPerHour) { this.maxQueriesPerIPPerHour = maxQueriesPerIPPerHour; return this; } @@ -141,11 +125,7 @@ public Integer getMaxQueriesPerIPPerHour() { return maxQueriesPerIPPerHour; } - public void setMaxQueriesPerIPPerHour(Integer maxQueriesPerIPPerHour) { - this.maxQueriesPerIPPerHour = maxQueriesPerIPPerHour; - } - - public Key queryParameters(String queryParameters) { + public Key setQueryParameters(String queryParameters) { this.queryParameters = queryParameters; return this; } @@ -161,11 +141,7 @@ public String getQueryParameters() { return queryParameters; } - public void setQueryParameters(String queryParameters) { - this.queryParameters = queryParameters; - } - - public Key referers(List referers) { + public Key setReferers(List referers) { this.referers = referers; return this; } @@ -188,11 +164,7 @@ public List getReferers() { return referers; } - public void setReferers(List referers) { - this.referers = referers; - } - - public Key validity(Integer validity) { + public Key setValidity(Integer validity) { this.validity = validity; return this; } @@ -208,11 +180,7 @@ public Integer getValidity() { return validity; } - public void setValidity(Integer validity) { - this.validity = validity; - } - - public Key createdAt(String createdAt) { + public Key setCreatedAt(String createdAt) { this.createdAt = createdAt; return this; } @@ -227,10 +195,6 @@ public String getCreatedAt() { return createdAt; } - public void setCreatedAt(String createdAt) { - this.createdAt = createdAt; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Languages.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Languages.java index 5a1438475e..d08143f1a9 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Languages.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Languages.java @@ -15,7 +15,7 @@ public class Languages { @SerializedName("compounds") private DictionaryLanguage compounds; - public Languages plurals(DictionaryLanguage plurals) { + public Languages setPlurals(DictionaryLanguage plurals) { this.plurals = plurals; return this; } @@ -30,11 +30,7 @@ public DictionaryLanguage getPlurals() { return plurals; } - public void setPlurals(DictionaryLanguage plurals) { - this.plurals = plurals; - } - - public Languages stopwords(DictionaryLanguage stopwords) { + public Languages setStopwords(DictionaryLanguage stopwords) { this.stopwords = stopwords; return this; } @@ -49,11 +45,7 @@ public DictionaryLanguage getStopwords() { return stopwords; } - public void setStopwords(DictionaryLanguage stopwords) { - this.stopwords = stopwords; - } - - public Languages compounds(DictionaryLanguage compounds) { + public Languages setCompounds(DictionaryLanguage compounds) { this.compounds = compounds; return this; } @@ -68,10 +60,6 @@ public DictionaryLanguage getCompounds() { return compounds; } - public void setCompounds(DictionaryLanguage compounds) { - this.compounds = compounds; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListApiKeysResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListApiKeysResponse.java index b1f9eb0187..3ba82480b5 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListApiKeysResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListApiKeysResponse.java @@ -11,7 +11,7 @@ public class ListApiKeysResponse { @SerializedName("keys") private List keys = new ArrayList<>(); - public ListApiKeysResponse keys(List keys) { + public ListApiKeysResponse setKeys(List keys) { this.keys = keys; return this; } @@ -31,10 +31,6 @@ public List getKeys() { return keys; } - public void setKeys(List keys) { - this.keys = keys; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListClustersResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListClustersResponse.java index 43c055d1c0..eea56c45cd 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListClustersResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListClustersResponse.java @@ -11,7 +11,7 @@ public class ListClustersResponse { @SerializedName("topUsers") private List topUsers = new ArrayList<>(); - public ListClustersResponse topUsers(List topUsers) { + public ListClustersResponse setTopUsers(List topUsers) { this.topUsers = topUsers; return this; } @@ -31,10 +31,6 @@ public List getTopUsers() { return topUsers; } - public void setTopUsers(List topUsers) { - this.topUsers = topUsers; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListIndicesResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListIndicesResponse.java index e7cfa1ec21..e23b0c96a3 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListIndicesResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListIndicesResponse.java @@ -14,7 +14,7 @@ public class ListIndicesResponse { @SerializedName("nbPages") private Integer nbPages; - public ListIndicesResponse items(List items) { + public ListIndicesResponse setItems(List items) { this.items = items; return this; } @@ -37,11 +37,7 @@ public List getItems() { return items; } - public void setItems(List items) { - this.items = items; - } - - public ListIndicesResponse nbPages(Integer nbPages) { + public ListIndicesResponse setNbPages(Integer nbPages) { this.nbPages = nbPages; return this; } @@ -56,10 +52,6 @@ public Integer getNbPages() { return nbPages; } - public void setNbPages(Integer nbPages) { - this.nbPages = nbPages; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListUserIdsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListUserIdsResponse.java index 1be32195a6..fa3527911d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListUserIdsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ListUserIdsResponse.java @@ -11,7 +11,7 @@ public class ListUserIdsResponse { @SerializedName("userIDs") private List userIDs = new ArrayList<>(); - public ListUserIdsResponse userIDs(List userIDs) { + public ListUserIdsResponse setUserIDs(List userIDs) { this.userIDs = userIDs; return this; } @@ -31,10 +31,6 @@ public List getUserIDs() { return userIDs; } - public void setUserIDs(List userIDs) { - this.userIDs = userIDs; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/LogType.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/LogType.java index 96fe00f6c6..e976127236 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/LogType.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/LogType.java @@ -17,7 +17,7 @@ public enum LogType { ERROR("error"); - private String value; + private final String value; LogType(String value) { this.value = value; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleBatchOperation.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleBatchOperation.java index 997a616d5c..9b8b99ac8d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleBatchOperation.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleBatchOperation.java @@ -15,7 +15,7 @@ public class MultipleBatchOperation { @SerializedName("indexName") private String indexName; - public MultipleBatchOperation action(Action action) { + public MultipleBatchOperation setAction(Action action) { this.action = action; return this; } @@ -30,11 +30,7 @@ public Action getAction() { return action; } - public void setAction(Action action) { - this.action = action; - } - - public MultipleBatchOperation body(Object body) { + public MultipleBatchOperation setBody(Object body) { this.body = body; return this; } @@ -49,11 +45,7 @@ public Object getBody() { return body; } - public void setBody(Object body) { - this.body = body; - } - - public MultipleBatchOperation indexName(String indexName) { + public MultipleBatchOperation setIndexName(String indexName) { this.indexName = indexName; return this; } @@ -68,10 +60,6 @@ public String getIndexName() { return indexName; } - public void setIndexName(String indexName) { - this.indexName = indexName; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleBatchResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleBatchResponse.java index d2a2e05c94..3413419a2d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleBatchResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleBatchResponse.java @@ -14,7 +14,7 @@ public class MultipleBatchResponse { @SerializedName("objectIDs") private List objectIDs = null; - public MultipleBatchResponse taskID(Object taskID) { + public MultipleBatchResponse setTaskID(Object taskID) { this.taskID = taskID; return this; } @@ -29,11 +29,7 @@ public Object getTaskID() { return taskID; } - public void setTaskID(Object taskID) { - this.taskID = taskID; - } - - public MultipleBatchResponse objectIDs(List objectIDs) { + public MultipleBatchResponse setObjectIDs(List objectIDs) { this.objectIDs = objectIDs; return this; } @@ -56,10 +52,6 @@ public List getObjectIDs() { return objectIDs; } - public void setObjectIDs(List objectIDs) { - this.objectIDs = objectIDs; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleGetObjectsParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleGetObjectsParams.java index ad5e1fac79..696bc9ee41 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleGetObjectsParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleGetObjectsParams.java @@ -17,7 +17,7 @@ public class MultipleGetObjectsParams { @SerializedName("indexName") private String indexName; - public MultipleGetObjectsParams attributesToRetrieve( + public MultipleGetObjectsParams setAttributesToRetrieve( List attributesToRetrieve ) { this.attributesToRetrieve = attributesToRetrieve; @@ -44,11 +44,7 @@ public List getAttributesToRetrieve() { return attributesToRetrieve; } - public void setAttributesToRetrieve(List attributesToRetrieve) { - this.attributesToRetrieve = attributesToRetrieve; - } - - public MultipleGetObjectsParams objectID(String objectID) { + public MultipleGetObjectsParams setObjectID(String objectID) { this.objectID = objectID; return this; } @@ -63,11 +59,7 @@ public String getObjectID() { return objectID; } - public void setObjectID(String objectID) { - this.objectID = objectID; - } - - public MultipleGetObjectsParams indexName(String indexName) { + public MultipleGetObjectsParams setIndexName(String indexName) { this.indexName = indexName; return this; } @@ -82,10 +74,6 @@ public String getIndexName() { return indexName; } - public void setIndexName(String indexName) { - this.indexName = indexName; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueries.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueries.java index feadb8e9f2..a9b60e02a6 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueries.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueries.java @@ -21,7 +21,7 @@ public class MultipleQueries { @SerializedName("params") private String params; - public MultipleQueries indexName(String indexName) { + public MultipleQueries setIndexName(String indexName) { this.indexName = indexName; return this; } @@ -36,11 +36,7 @@ public String getIndexName() { return indexName; } - public void setIndexName(String indexName) { - this.indexName = indexName; - } - - public MultipleQueries query(String query) { + public MultipleQueries setQuery(String query) { this.query = query; return this; } @@ -55,11 +51,7 @@ public String getQuery() { return query; } - public void setQuery(String query) { - this.query = query; - } - - public MultipleQueries type(MultipleQueriesType type) { + public MultipleQueries setType(MultipleQueriesType type) { this.type = type; return this; } @@ -74,11 +66,7 @@ public MultipleQueriesType getType() { return type; } - public void setType(MultipleQueriesType type) { - this.type = type; - } - - public MultipleQueries facet(String facet) { + public MultipleQueries setFacet(String facet) { this.facet = facet; return this; } @@ -93,11 +81,7 @@ public String getFacet() { return facet; } - public void setFacet(String facet) { - this.facet = facet; - } - - public MultipleQueries params(String params) { + public MultipleQueries setParams(String params) { this.params = params; return this; } @@ -112,10 +96,6 @@ public String getParams() { return params; } - public void setParams(String params) { - this.params = params; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesParams.java index 9cc7e3bfc5..21d0950e5c 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesParams.java @@ -14,7 +14,7 @@ public class MultipleQueriesParams { @SerializedName("strategy") private MultipleQueriesStrategy strategy; - public MultipleQueriesParams requests(List requests) { + public MultipleQueriesParams setRequests(List requests) { this.requests = requests; return this; } @@ -34,11 +34,7 @@ public List getRequests() { return requests; } - public void setRequests(List requests) { - this.requests = requests; - } - - public MultipleQueriesParams strategy(MultipleQueriesStrategy strategy) { + public MultipleQueriesParams setStrategy(MultipleQueriesStrategy strategy) { this.strategy = strategy; return this; } @@ -53,10 +49,6 @@ public MultipleQueriesStrategy getStrategy() { return strategy; } - public void setStrategy(MultipleQueriesStrategy strategy) { - this.strategy = strategy; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesResponse.java index 624095671a..baccb911e2 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesResponse.java @@ -11,7 +11,7 @@ public class MultipleQueriesResponse { @SerializedName("results") private List results = null; - public MultipleQueriesResponse results(List results) { + public MultipleQueriesResponse setResults(List results) { this.results = results; return this; } @@ -34,10 +34,6 @@ public List getResults() { return results; } - public void setResults(List results) { - this.results = results; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesStrategy.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesStrategy.java index aa07f9e984..446e340f26 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesStrategy.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesStrategy.java @@ -11,9 +11,9 @@ public enum MultipleQueriesStrategy { NONE("none"), - STOPIFENOUGHMATCHES("stopIfEnoughMatches"); + STOP_IF_ENOUGH_MATCHES("stopIfEnoughMatches"); - private String value; + private final String value; MultipleQueriesStrategy(String value) { this.value = value; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesType.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesType.java index 8f499686c5..c08f3139f0 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesType.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/MultipleQueriesType.java @@ -13,7 +13,7 @@ public enum MultipleQueriesType { FACET("facet"); - private String value; + private final String value; MultipleQueriesType(String value) { this.value = value; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OperationIndexParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OperationIndexParams.java index 0fae16ad74..7794287186 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OperationIndexParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OperationIndexParams.java @@ -17,7 +17,7 @@ public class OperationIndexParams { @SerializedName("scope") private List scope = null; - public OperationIndexParams operation(OperationType operation) { + public OperationIndexParams setOperation(OperationType operation) { this.operation = operation; return this; } @@ -32,11 +32,7 @@ public OperationType getOperation() { return operation; } - public void setOperation(OperationType operation) { - this.operation = operation; - } - - public OperationIndexParams destination(String destination) { + public OperationIndexParams setDestination(String destination) { this.destination = destination; return this; } @@ -51,11 +47,7 @@ public String getDestination() { return destination; } - public void setDestination(String destination) { - this.destination = destination; - } - - public OperationIndexParams scope(List scope) { + public OperationIndexParams setScope(List scope) { this.scope = scope; return this; } @@ -79,10 +71,6 @@ public List getScope() { return scope; } - public void setScope(List scope) { - this.scope = scope; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OperationType.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OperationType.java index b1845ebca0..afe5fe5826 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OperationType.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/OperationType.java @@ -13,7 +13,7 @@ public enum OperationType { COPY("copy"); - private String value; + private final String value; OperationType(String value) { this.value = value; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Params.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Params.java index 404cbfc225..fa1bc35feb 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Params.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Params.java @@ -17,7 +17,7 @@ public class Params { @SerializedName("automaticOptionalFacetFilters") private List automaticOptionalFacetFilters = null; - public Params query(String query) { + public Params setQuery(String query) { this.query = query; return this; } @@ -32,11 +32,7 @@ public String getQuery() { return query; } - public void setQuery(String query) { - this.query = query; - } - - public Params automaticFacetFilters( + public Params setAutomaticFacetFilters( List automaticFacetFilters ) { this.automaticFacetFilters = automaticFacetFilters; @@ -64,13 +60,7 @@ public List getAutomaticFacetFilters() { return automaticFacetFilters; } - public void setAutomaticFacetFilters( - List automaticFacetFilters - ) { - this.automaticFacetFilters = automaticFacetFilters; - } - - public Params automaticOptionalFacetFilters( + public Params setAutomaticOptionalFacetFilters( List automaticOptionalFacetFilters ) { this.automaticOptionalFacetFilters = automaticOptionalFacetFilters; @@ -97,12 +87,6 @@ public List getAutomaticOptionalFacetFilters() { return automaticOptionalFacetFilters; } - public void setAutomaticOptionalFacetFilters( - List automaticOptionalFacetFilters - ) { - this.automaticOptionalFacetFilters = automaticOptionalFacetFilters; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Promote.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Promote.java index cb2a107534..3e21f9e8ac 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Promote.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Promote.java @@ -17,7 +17,7 @@ public class Promote { @SerializedName("position") private Integer position; - public Promote objectID(String objectID) { + public Promote setObjectID(String objectID) { this.objectID = objectID; return this; } @@ -32,11 +32,7 @@ public String getObjectID() { return objectID; } - public void setObjectID(String objectID) { - this.objectID = objectID; - } - - public Promote objectIDs(List objectIDs) { + public Promote setObjectIDs(List objectIDs) { this.objectIDs = objectIDs; return this; } @@ -59,11 +55,7 @@ public List getObjectIDs() { return objectIDs; } - public void setObjectIDs(List objectIDs) { - this.objectIDs = objectIDs; - } - - public Promote position(Integer position) { + public Promote setPosition(Integer position) { this.position = position; return this; } @@ -80,10 +72,6 @@ public Integer getPosition() { return position; } - public void setPosition(Integer position) { - this.position = position; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RankingInfo.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RankingInfo.java index efbfb24790..f536c4cc11 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RankingInfo.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RankingInfo.java @@ -41,7 +41,7 @@ public class RankingInfo { @SerializedName("word") private Integer word; - public RankingInfo filters(Integer filters) { + public RankingInfo setFilters(Integer filters) { this.filters = filters; return this; } @@ -56,11 +56,7 @@ public Integer getFilters() { return filters; } - public void setFilters(Integer filters) { - this.filters = filters; - } - - public RankingInfo firstMatchedWord(Integer firstMatchedWord) { + public RankingInfo setFirstMatchedWord(Integer firstMatchedWord) { this.firstMatchedWord = firstMatchedWord; return this; } @@ -75,11 +71,7 @@ public Integer getFirstMatchedWord() { return firstMatchedWord; } - public void setFirstMatchedWord(Integer firstMatchedWord) { - this.firstMatchedWord = firstMatchedWord; - } - - public RankingInfo geoDistance(Integer geoDistance) { + public RankingInfo setGeoDistance(Integer geoDistance) { this.geoDistance = geoDistance; return this; } @@ -95,11 +87,7 @@ public Integer getGeoDistance() { return geoDistance; } - public void setGeoDistance(Integer geoDistance) { - this.geoDistance = geoDistance; - } - - public RankingInfo geoPrecision(Integer geoPrecision) { + public RankingInfo setGeoPrecision(Integer geoPrecision) { this.geoPrecision = geoPrecision; return this; } @@ -114,11 +102,7 @@ public Integer getGeoPrecision() { return geoPrecision; } - public void setGeoPrecision(Integer geoPrecision) { - this.geoPrecision = geoPrecision; - } - - public RankingInfo matchedGeoLocation( + public RankingInfo setMatchedGeoLocation( Map matchedGeoLocation ) { this.matchedGeoLocation = matchedGeoLocation; @@ -146,13 +130,7 @@ public Map getMatchedGeoLocation() { return matchedGeoLocation; } - public void setMatchedGeoLocation( - Map matchedGeoLocation - ) { - this.matchedGeoLocation = matchedGeoLocation; - } - - public RankingInfo nbExactWords(Integer nbExactWords) { + public RankingInfo setNbExactWords(Integer nbExactWords) { this.nbExactWords = nbExactWords; return this; } @@ -167,11 +145,7 @@ public Integer getNbExactWords() { return nbExactWords; } - public void setNbExactWords(Integer nbExactWords) { - this.nbExactWords = nbExactWords; - } - - public RankingInfo nbTypos(Integer nbTypos) { + public RankingInfo setNbTypos(Integer nbTypos) { this.nbTypos = nbTypos; return this; } @@ -186,11 +160,7 @@ public Integer getNbTypos() { return nbTypos; } - public void setNbTypos(Integer nbTypos) { - this.nbTypos = nbTypos; - } - - public RankingInfo promoted(Boolean promoted) { + public RankingInfo setPromoted(Boolean promoted) { this.promoted = promoted; return this; } @@ -205,11 +175,7 @@ public Boolean getPromoted() { return promoted; } - public void setPromoted(Boolean promoted) { - this.promoted = promoted; - } - - public RankingInfo proximityDistance(Integer proximityDistance) { + public RankingInfo setProximityDistance(Integer proximityDistance) { this.proximityDistance = proximityDistance; return this; } @@ -225,11 +191,7 @@ public Integer getProximityDistance() { return proximityDistance; } - public void setProximityDistance(Integer proximityDistance) { - this.proximityDistance = proximityDistance; - } - - public RankingInfo userScore(Integer userScore) { + public RankingInfo setUserScore(Integer userScore) { this.userScore = userScore; return this; } @@ -244,11 +206,7 @@ public Integer getUserScore() { return userScore; } - public void setUserScore(Integer userScore) { - this.userScore = userScore; - } - - public RankingInfo word(Integer word) { + public RankingInfo setWord(Integer word) { this.word = word; return this; } @@ -263,10 +221,6 @@ public Integer getWord() { return word; } - public void setWord(Integer word) { - this.word = word; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RankingInfoMatchedGeoLocation.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RankingInfoMatchedGeoLocation.java index 0820899781..dceff6ab07 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RankingInfoMatchedGeoLocation.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RankingInfoMatchedGeoLocation.java @@ -15,7 +15,7 @@ public class RankingInfoMatchedGeoLocation { @SerializedName("distance") private Integer distance; - public RankingInfoMatchedGeoLocation lat(Double lat) { + public RankingInfoMatchedGeoLocation setLat(Double lat) { this.lat = lat; return this; } @@ -30,11 +30,7 @@ public Double getLat() { return lat; } - public void setLat(Double lat) { - this.lat = lat; - } - - public RankingInfoMatchedGeoLocation lng(Double lng) { + public RankingInfoMatchedGeoLocation setLng(Double lng) { this.lng = lng; return this; } @@ -49,11 +45,7 @@ public Double getLng() { return lng; } - public void setLng(Double lng) { - this.lng = lng; - } - - public RankingInfoMatchedGeoLocation distance(Integer distance) { + public RankingInfoMatchedGeoLocation setDistance(Integer distance) { this.distance = distance; return this; } @@ -68,10 +60,6 @@ public Integer getDistance() { return distance; } - public void setDistance(Integer distance) { - this.distance = distance; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RemoveUserIdResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RemoveUserIdResponse.java index 6e150ab5ef..eb2a14b2d9 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RemoveUserIdResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RemoveUserIdResponse.java @@ -9,7 +9,7 @@ public class RemoveUserIdResponse { @SerializedName("deletedAt") private String deletedAt; - public RemoveUserIdResponse deletedAt(String deletedAt) { + public RemoveUserIdResponse setDeletedAt(String deletedAt) { this.deletedAt = deletedAt; return this; } @@ -24,10 +24,6 @@ public String getDeletedAt() { return deletedAt; } - public void setDeletedAt(String deletedAt) { - this.deletedAt = deletedAt; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ReplaceSourceResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ReplaceSourceResponse.java index d8858970bf..92b3a93df4 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ReplaceSourceResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ReplaceSourceResponse.java @@ -9,7 +9,7 @@ public class ReplaceSourceResponse { @SerializedName("updatedAt") private String updatedAt; - public ReplaceSourceResponse updatedAt(String updatedAt) { + public ReplaceSourceResponse setUpdatedAt(String updatedAt) { this.updatedAt = updatedAt; return this; } @@ -24,10 +24,6 @@ public String getUpdatedAt() { return updatedAt; } - public void setUpdatedAt(String updatedAt) { - this.updatedAt = updatedAt; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RequiredSearchParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RequiredSearchParams.java index 0da9be0c8f..d94b3d223f 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RequiredSearchParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/RequiredSearchParams.java @@ -9,7 +9,7 @@ public class RequiredSearchParams { @SerializedName("query") private String query = ""; - public RequiredSearchParams query(String query) { + public RequiredSearchParams setQuery(String query) { this.query = query; return this; } @@ -24,10 +24,6 @@ public String getQuery() { return query; } - public void setQuery(String query) { - this.query = query; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Rule.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Rule.java index acb75dfa16..cf25857283 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Rule.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Rule.java @@ -26,7 +26,7 @@ public class Rule { @SerializedName("validity") private List validity = null; - public Rule objectID(String objectID) { + public Rule setObjectID(String objectID) { this.objectID = objectID; return this; } @@ -41,11 +41,7 @@ public String getObjectID() { return objectID; } - public void setObjectID(String objectID) { - this.objectID = objectID; - } - - public Rule conditions(List conditions) { + public Rule setConditions(List conditions) { this.conditions = conditions; return this; } @@ -69,11 +65,7 @@ public List getConditions() { return conditions; } - public void setConditions(List conditions) { - this.conditions = conditions; - } - - public Rule consequence(Consequence consequence) { + public Rule setConsequence(Consequence consequence) { this.consequence = consequence; return this; } @@ -88,11 +80,7 @@ public Consequence getConsequence() { return consequence; } - public void setConsequence(Consequence consequence) { - this.consequence = consequence; - } - - public Rule description(String description) { + public Rule setDescription(String description) { this.description = description; return this; } @@ -108,11 +96,7 @@ public String getDescription() { return description; } - public void setDescription(String description) { - this.description = description; - } - - public Rule enabled(Boolean enabled) { + public Rule setEnabled(Boolean enabled) { this.enabled = enabled; return this; } @@ -128,11 +112,7 @@ public Boolean getEnabled() { return enabled; } - public void setEnabled(Boolean enabled) { - this.enabled = enabled; - } - - public Rule validity(List validity) { + public Rule setValidity(List validity) { this.validity = validity; return this; } @@ -156,10 +136,6 @@ public List getValidity() { return validity; } - public void setValidity(List validity) { - this.validity = validity; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SaveObjectResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SaveObjectResponse.java index 20d0206a30..01b69445ef 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SaveObjectResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SaveObjectResponse.java @@ -15,7 +15,7 @@ public class SaveObjectResponse { @SerializedName("objectID") private String objectID; - public SaveObjectResponse createdAt(String createdAt) { + public SaveObjectResponse setCreatedAt(String createdAt) { this.createdAt = createdAt; return this; } @@ -30,11 +30,7 @@ public String getCreatedAt() { return createdAt; } - public void setCreatedAt(String createdAt) { - this.createdAt = createdAt; - } - - public SaveObjectResponse taskID(Integer taskID) { + public SaveObjectResponse setTaskID(Integer taskID) { this.taskID = taskID; return this; } @@ -49,11 +45,7 @@ public Integer getTaskID() { return taskID; } - public void setTaskID(Integer taskID) { - this.taskID = taskID; - } - - public SaveObjectResponse objectID(String objectID) { + public SaveObjectResponse setObjectID(String objectID) { this.objectID = objectID; return this; } @@ -68,10 +60,6 @@ public String getObjectID() { return objectID; } - public void setObjectID(String objectID) { - this.objectID = objectID; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SaveSynonymResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SaveSynonymResponse.java index 9b9a1645d5..59901f7a43 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SaveSynonymResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SaveSynonymResponse.java @@ -15,7 +15,7 @@ public class SaveSynonymResponse { @SerializedName("id") private String id; - public SaveSynonymResponse taskID(Integer taskID) { + public SaveSynonymResponse setTaskID(Integer taskID) { this.taskID = taskID; return this; } @@ -30,11 +30,7 @@ public Integer getTaskID() { return taskID; } - public void setTaskID(Integer taskID) { - this.taskID = taskID; - } - - public SaveSynonymResponse updatedAt(String updatedAt) { + public SaveSynonymResponse setUpdatedAt(String updatedAt) { this.updatedAt = updatedAt; return this; } @@ -49,11 +45,7 @@ public String getUpdatedAt() { return updatedAt; } - public void setUpdatedAt(String updatedAt) { - this.updatedAt = updatedAt; - } - - public SaveSynonymResponse id(String id) { + public SaveSynonymResponse setId(String id) { this.id = id; return this; } @@ -68,10 +60,6 @@ public String getId() { return id; } - public void setId(String id) { - this.id = id; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ScopeType.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ScopeType.java index fa70a58861..6f6730837e 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ScopeType.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/ScopeType.java @@ -15,7 +15,7 @@ public enum ScopeType { RULES("rules"); - private String value; + private final String value; ScopeType(String value) { this.value = value; 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 index 3aee13fa8a..8266397f0c 100644 --- 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 @@ -18,7 +18,7 @@ public class SearchDictionaryEntriesParams { @SerializedName("language") private String language; - public SearchDictionaryEntriesParams query(String query) { + public SearchDictionaryEntriesParams setQuery(String query) { this.query = query; return this; } @@ -33,11 +33,7 @@ public String getQuery() { return query; } - public void setQuery(String query) { - this.query = query; - } - - public SearchDictionaryEntriesParams page(Integer page) { + public SearchDictionaryEntriesParams setPage(Integer page) { this.page = page; return this; } @@ -52,11 +48,7 @@ public Integer getPage() { return page; } - public void setPage(Integer page) { - this.page = page; - } - - public SearchDictionaryEntriesParams hitsPerPage(Integer hitsPerPage) { + public SearchDictionaryEntriesParams setHitsPerPage(Integer hitsPerPage) { this.hitsPerPage = hitsPerPage; return this; } @@ -71,11 +63,7 @@ public Integer getHitsPerPage() { return hitsPerPage; } - public void setHitsPerPage(Integer hitsPerPage) { - this.hitsPerPage = hitsPerPage; - } - - public SearchDictionaryEntriesParams language(String language) { + public SearchDictionaryEntriesParams setLanguage(String language) { this.language = language; return this; } @@ -90,10 +78,6 @@ public String getLanguage() { return language; } - public void setLanguage(String language) { - this.language = language; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesRequest.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesRequest.java index 42d4bcf4e8..4c8f2c10d4 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesRequest.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesRequest.java @@ -15,7 +15,7 @@ public class SearchForFacetValuesRequest { @SerializedName("maxFacetHits") private Integer maxFacetHits = 10; - public SearchForFacetValuesRequest params(String params) { + public SearchForFacetValuesRequest setParams(String params) { this.params = params; return this; } @@ -30,11 +30,7 @@ public String getParams() { return params; } - public void setParams(String params) { - this.params = params; - } - - public SearchForFacetValuesRequest facetQuery(String facetQuery) { + public SearchForFacetValuesRequest setFacetQuery(String facetQuery) { this.facetQuery = facetQuery; return this; } @@ -49,11 +45,7 @@ public String getFacetQuery() { return facetQuery; } - public void setFacetQuery(String facetQuery) { - this.facetQuery = facetQuery; - } - - public SearchForFacetValuesRequest maxFacetHits(Integer maxFacetHits) { + public SearchForFacetValuesRequest setMaxFacetHits(Integer maxFacetHits) { this.maxFacetHits = maxFacetHits; return this; } @@ -69,10 +61,6 @@ public Integer getMaxFacetHits() { return maxFacetHits; } - public void setMaxFacetHits(Integer maxFacetHits) { - this.maxFacetHits = maxFacetHits; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesResponse.java index eb8ea7ebef..22eb0acdf8 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesResponse.java @@ -11,7 +11,7 @@ public class SearchForFacetValuesResponse { @SerializedName("facetHits") private List facetHits = new ArrayList<>(); - public SearchForFacetValuesResponse facetHits( + public SearchForFacetValuesResponse setFacetHits( List facetHits ) { this.facetHits = facetHits; @@ -35,12 +35,6 @@ public List getFacetHits() { return facetHits; } - public void setFacetHits( - List facetHits - ) { - this.facetHits = facetHits; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesResponseFacetHits.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesResponseFacetHits.java index f7f095a939..e8e0224b5a 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesResponseFacetHits.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchForFacetValuesResponseFacetHits.java @@ -15,7 +15,7 @@ public class SearchForFacetValuesResponseFacetHits { @SerializedName("count") private Integer count; - public SearchForFacetValuesResponseFacetHits value(String value) { + public SearchForFacetValuesResponseFacetHits setValue(String value) { this.value = value; return this; } @@ -30,11 +30,9 @@ public String getValue() { return value; } - public void setValue(String value) { - this.value = value; - } - - public SearchForFacetValuesResponseFacetHits highlighted(String highlighted) { + public SearchForFacetValuesResponseFacetHits setHighlighted( + String highlighted + ) { this.highlighted = highlighted; return this; } @@ -49,11 +47,7 @@ public String getHighlighted() { return highlighted; } - public void setHighlighted(String highlighted) { - this.highlighted = highlighted; - } - - public SearchForFacetValuesResponseFacetHits count(Integer count) { + public SearchForFacetValuesResponseFacetHits setCount(Integer count) { this.count = count; return this; } @@ -69,10 +63,6 @@ public Integer getCount() { return count; } - public void setCount(Integer count) { - this.count = count; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchHits.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchHits.java index 0718b4d5be..3ec0269a05 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchHits.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchHits.java @@ -11,7 +11,7 @@ public class SearchHits { @SerializedName("hits") private List hits = null; - public SearchHits hits(List hits) { + public SearchHits setHits(List hits) { this.hits = hits; return this; } @@ -34,10 +34,6 @@ public List getHits() { return hits; } - public void setHits(List hits) { - this.hits = hits; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParams.java index e58a7f0fdd..b599945f2e 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParams.java @@ -20,8 +20,6 @@ public static SearchParams ofSearchParamsString(SearchParamsString inside) { return new SearchParamsSearchParamsString(inside); } - public abstract Object getInsideValue(); - public static class Adapter extends TypeAdapter { @Override diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParamsObject.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParamsObject.java index 1e47d48f10..3f160f4dc4 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParamsObject.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParamsObject.java @@ -254,11 +254,11 @@ public TypoToleranceEnum read(final JsonReader jsonReader) /** Controls if and how query words are interpreted as prefixes. */ @JsonAdapter(QueryTypeEnum.Adapter.class) public enum QueryTypeEnum { - PREFIXLAST("prefixLast"), + PREFIX_LAST("prefixLast"), - PREFIXALL("prefixAll"), + PREFIX_ALL("prefixAll"), - PREFIXNONE("prefixNone"); + PREFIX_NONE("prefixNone"); private String value; @@ -304,18 +304,18 @@ public QueryTypeEnum read(final JsonReader jsonReader) } @SerializedName("queryType") - private QueryTypeEnum queryType = QueryTypeEnum.PREFIXLAST; + private QueryTypeEnum queryType = QueryTypeEnum.PREFIX_LAST; /** Selects a strategy to remove words from the query when it doesn't match any hits. */ @JsonAdapter(RemoveWordsIfNoResultsEnum.Adapter.class) public enum RemoveWordsIfNoResultsEnum { NONE("none"), - LASTWORDS("lastWords"), + LAST_WORDS("lastWords"), - FIRSTWORDS("firstWords"), + FIRST_WORDS("firstWords"), - ALLOPTIONAL("allOptional"); + ALL_OPTIONAL("allOptional"); private String value; @@ -434,11 +434,11 @@ public ExactOnSingleWordQueryEnum read(final JsonReader jsonReader) /** Gets or Sets alternativesAsExact */ @JsonAdapter(AlternativesAsExactEnum.Adapter.class) public enum AlternativesAsExactEnum { - IGNOREPLURALS("ignorePlurals"), + IGNORE_PLURALS("ignorePlurals"), - SINGLEWORDSYNONYM("singleWordSynonym"), + SINGLE_WORD_SYNONYM("singleWordSynonym"), - MULTIWORDSSYNONYM("multiWordsSynonym"); + MULTI_WORDS_SYNONYM("multiWordsSynonym"); private String value; @@ -489,9 +489,9 @@ public AlternativesAsExactEnum read(final JsonReader jsonReader) /** Gets or Sets advancedSyntaxFeatures */ @JsonAdapter(AdvancedSyntaxFeaturesEnum.Adapter.class) public enum AdvancedSyntaxFeaturesEnum { - EXACTPHRASE("exactPhrase"), + EXACT_PHRASE("exactPhrase"), - EXCLUDEWORDS("excludeWords"); + EXCLUDE_WORDS("excludeWords"); private String value; @@ -564,7 +564,7 @@ public AdvancedSyntaxFeaturesEnum read(final JsonReader jsonReader) @SerializedName("renderingContent") private Object renderingContent = new Object(); - public SearchParamsObject similarQuery(String similarQuery) { + public SearchParamsObject setSimilarQuery(String similarQuery) { this.similarQuery = similarQuery; return this; } @@ -580,11 +580,7 @@ public String getSimilarQuery() { return similarQuery; } - public void setSimilarQuery(String similarQuery) { - this.similarQuery = similarQuery; - } - - public SearchParamsObject filters(String filters) { + public SearchParamsObject setFilters(String filters) { this.filters = filters; return this; } @@ -599,11 +595,7 @@ public String getFilters() { return filters; } - public void setFilters(String filters) { - this.filters = filters; - } - - public SearchParamsObject facetFilters(List facetFilters) { + public SearchParamsObject setFacetFilters(List facetFilters) { this.facetFilters = facetFilters; return this; } @@ -626,11 +618,7 @@ public List getFacetFilters() { return facetFilters; } - public void setFacetFilters(List facetFilters) { - this.facetFilters = facetFilters; - } - - public SearchParamsObject optionalFilters(List optionalFilters) { + public SearchParamsObject setOptionalFilters(List optionalFilters) { this.optionalFilters = optionalFilters; return this; } @@ -654,11 +642,7 @@ public List getOptionalFilters() { return optionalFilters; } - public void setOptionalFilters(List optionalFilters) { - this.optionalFilters = optionalFilters; - } - - public SearchParamsObject numericFilters(List numericFilters) { + public SearchParamsObject setNumericFilters(List numericFilters) { this.numericFilters = numericFilters; return this; } @@ -681,11 +665,7 @@ public List getNumericFilters() { return numericFilters; } - public void setNumericFilters(List numericFilters) { - this.numericFilters = numericFilters; - } - - public SearchParamsObject tagFilters(List tagFilters) { + public SearchParamsObject setTagFilters(List tagFilters) { this.tagFilters = tagFilters; return this; } @@ -708,11 +688,7 @@ public List getTagFilters() { return tagFilters; } - public void setTagFilters(List tagFilters) { - this.tagFilters = tagFilters; - } - - public SearchParamsObject sumOrFiltersScores(Boolean sumOrFiltersScores) { + public SearchParamsObject setSumOrFiltersScores(Boolean sumOrFiltersScores) { this.sumOrFiltersScores = sumOrFiltersScores; return this; } @@ -727,11 +703,7 @@ public Boolean getSumOrFiltersScores() { return sumOrFiltersScores; } - public void setSumOrFiltersScores(Boolean sumOrFiltersScores) { - this.sumOrFiltersScores = sumOrFiltersScores; - } - - public SearchParamsObject facets(List facets) { + public SearchParamsObject setFacets(List facets) { this.facets = facets; return this; } @@ -754,11 +726,7 @@ public List getFacets() { return facets; } - public void setFacets(List facets) { - this.facets = facets; - } - - public SearchParamsObject maxValuesPerFacet(Integer maxValuesPerFacet) { + public SearchParamsObject setMaxValuesPerFacet(Integer maxValuesPerFacet) { this.maxValuesPerFacet = maxValuesPerFacet; return this; } @@ -773,11 +741,7 @@ public Integer getMaxValuesPerFacet() { return maxValuesPerFacet; } - public void setMaxValuesPerFacet(Integer maxValuesPerFacet) { - this.maxValuesPerFacet = maxValuesPerFacet; - } - - public SearchParamsObject facetingAfterDistinct( + public SearchParamsObject setFacetingAfterDistinct( Boolean facetingAfterDistinct ) { this.facetingAfterDistinct = facetingAfterDistinct; @@ -794,11 +758,7 @@ public Boolean getFacetingAfterDistinct() { return facetingAfterDistinct; } - public void setFacetingAfterDistinct(Boolean facetingAfterDistinct) { - this.facetingAfterDistinct = facetingAfterDistinct; - } - - public SearchParamsObject sortFacetValuesBy(String sortFacetValuesBy) { + public SearchParamsObject setSortFacetValuesBy(String sortFacetValuesBy) { this.sortFacetValuesBy = sortFacetValuesBy; return this; } @@ -813,11 +773,7 @@ public String getSortFacetValuesBy() { return sortFacetValuesBy; } - public void setSortFacetValuesBy(String sortFacetValuesBy) { - this.sortFacetValuesBy = sortFacetValuesBy; - } - - public SearchParamsObject page(Integer page) { + public SearchParamsObject setPage(Integer page) { this.page = page; return this; } @@ -832,11 +788,7 @@ public Integer getPage() { return page; } - public void setPage(Integer page) { - this.page = page; - } - - public SearchParamsObject offset(Integer offset) { + public SearchParamsObject setOffset(Integer offset) { this.offset = offset; return this; } @@ -851,11 +803,7 @@ public Integer getOffset() { return offset; } - public void setOffset(Integer offset) { - this.offset = offset; - } - - public SearchParamsObject length(Integer length) { + public SearchParamsObject setLength(Integer length) { this.length = length; return this; } @@ -870,11 +818,7 @@ public Integer getLength() { return length; } - public void setLength(Integer length) { - this.length = length; - } - - public SearchParamsObject aroundLatLng(String aroundLatLng) { + public SearchParamsObject setAroundLatLng(String aroundLatLng) { this.aroundLatLng = aroundLatLng; return this; } @@ -889,11 +833,7 @@ public String getAroundLatLng() { return aroundLatLng; } - public void setAroundLatLng(String aroundLatLng) { - this.aroundLatLng = aroundLatLng; - } - - public SearchParamsObject aroundLatLngViaIP(Boolean aroundLatLngViaIP) { + public SearchParamsObject setAroundLatLngViaIP(Boolean aroundLatLngViaIP) { this.aroundLatLngViaIP = aroundLatLngViaIP; return this; } @@ -909,11 +849,7 @@ public Boolean getAroundLatLngViaIP() { return aroundLatLngViaIP; } - public void setAroundLatLngViaIP(Boolean aroundLatLngViaIP) { - this.aroundLatLngViaIP = aroundLatLngViaIP; - } - - public SearchParamsObject aroundRadius(AroundRadius aroundRadius) { + public SearchParamsObject setAroundRadius(AroundRadius aroundRadius) { this.aroundRadius = aroundRadius; return this; } @@ -928,11 +864,7 @@ public AroundRadius getAroundRadius() { return aroundRadius; } - public void setAroundRadius(AroundRadius aroundRadius) { - this.aroundRadius = aroundRadius; - } - - public SearchParamsObject aroundPrecision(Integer aroundPrecision) { + public SearchParamsObject setAroundPrecision(Integer aroundPrecision) { this.aroundPrecision = aroundPrecision; return this; } @@ -947,11 +879,9 @@ public Integer getAroundPrecision() { return aroundPrecision; } - public void setAroundPrecision(Integer aroundPrecision) { - this.aroundPrecision = aroundPrecision; - } - - public SearchParamsObject minimumAroundRadius(Integer minimumAroundRadius) { + public SearchParamsObject setMinimumAroundRadius( + Integer minimumAroundRadius + ) { this.minimumAroundRadius = minimumAroundRadius; return this; } @@ -966,11 +896,7 @@ public Integer getMinimumAroundRadius() { return minimumAroundRadius; } - public void setMinimumAroundRadius(Integer minimumAroundRadius) { - this.minimumAroundRadius = minimumAroundRadius; - } - - public SearchParamsObject insideBoundingBox( + public SearchParamsObject setInsideBoundingBox( List insideBoundingBox ) { this.insideBoundingBox = insideBoundingBox; @@ -997,11 +923,7 @@ public List getInsideBoundingBox() { return insideBoundingBox; } - public void setInsideBoundingBox(List insideBoundingBox) { - this.insideBoundingBox = insideBoundingBox; - } - - public SearchParamsObject insidePolygon(List insidePolygon) { + public SearchParamsObject setInsidePolygon(List insidePolygon) { this.insidePolygon = insidePolygon; return this; } @@ -1024,11 +946,7 @@ public List getInsidePolygon() { return insidePolygon; } - public void setInsidePolygon(List insidePolygon) { - this.insidePolygon = insidePolygon; - } - - public SearchParamsObject naturalLanguages(List naturalLanguages) { + public SearchParamsObject setNaturalLanguages(List naturalLanguages) { this.naturalLanguages = naturalLanguages; return this; } @@ -1057,11 +975,7 @@ public List getNaturalLanguages() { return naturalLanguages; } - public void setNaturalLanguages(List naturalLanguages) { - this.naturalLanguages = naturalLanguages; - } - - public SearchParamsObject ruleContexts(List ruleContexts) { + public SearchParamsObject setRuleContexts(List ruleContexts) { this.ruleContexts = ruleContexts; return this; } @@ -1084,11 +998,7 @@ public List getRuleContexts() { return ruleContexts; } - public void setRuleContexts(List ruleContexts) { - this.ruleContexts = ruleContexts; - } - - public SearchParamsObject personalizationImpact( + public SearchParamsObject setPersonalizationImpact( Integer personalizationImpact ) { this.personalizationImpact = personalizationImpact; @@ -1105,11 +1015,7 @@ public Integer getPersonalizationImpact() { return personalizationImpact; } - public void setPersonalizationImpact(Integer personalizationImpact) { - this.personalizationImpact = personalizationImpact; - } - - public SearchParamsObject userToken(String userToken) { + public SearchParamsObject setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -1124,11 +1030,7 @@ public String getUserToken() { return userToken; } - public void setUserToken(String userToken) { - this.userToken = userToken; - } - - public SearchParamsObject getRankingInfo(Boolean getRankingInfo) { + public SearchParamsObject setGetRankingInfo(Boolean getRankingInfo) { this.getRankingInfo = getRankingInfo; return this; } @@ -1143,11 +1045,7 @@ public Boolean getGetRankingInfo() { return getRankingInfo; } - public void setGetRankingInfo(Boolean getRankingInfo) { - this.getRankingInfo = getRankingInfo; - } - - public SearchParamsObject clickAnalytics(Boolean clickAnalytics) { + public SearchParamsObject setClickAnalytics(Boolean clickAnalytics) { this.clickAnalytics = clickAnalytics; return this; } @@ -1162,11 +1060,7 @@ public Boolean getClickAnalytics() { return clickAnalytics; } - public void setClickAnalytics(Boolean clickAnalytics) { - this.clickAnalytics = clickAnalytics; - } - - public SearchParamsObject analytics(Boolean analytics) { + public SearchParamsObject setAnalytics(Boolean analytics) { this.analytics = analytics; return this; } @@ -1181,11 +1075,7 @@ public Boolean getAnalytics() { return analytics; } - public void setAnalytics(Boolean analytics) { - this.analytics = analytics; - } - - public SearchParamsObject analyticsTags(List analyticsTags) { + public SearchParamsObject setAnalyticsTags(List analyticsTags) { this.analyticsTags = analyticsTags; return this; } @@ -1208,11 +1098,7 @@ public List getAnalyticsTags() { return analyticsTags; } - public void setAnalyticsTags(List analyticsTags) { - this.analyticsTags = analyticsTags; - } - - public SearchParamsObject percentileComputation( + public SearchParamsObject setPercentileComputation( Boolean percentileComputation ) { this.percentileComputation = percentileComputation; @@ -1229,11 +1115,7 @@ public Boolean getPercentileComputation() { return percentileComputation; } - public void setPercentileComputation(Boolean percentileComputation) { - this.percentileComputation = percentileComputation; - } - - public SearchParamsObject enableABTest(Boolean enableABTest) { + public SearchParamsObject setEnableABTest(Boolean enableABTest) { this.enableABTest = enableABTest; return this; } @@ -1248,11 +1130,7 @@ public Boolean getEnableABTest() { return enableABTest; } - public void setEnableABTest(Boolean enableABTest) { - this.enableABTest = enableABTest; - } - - public SearchParamsObject enableReRanking(Boolean enableReRanking) { + public SearchParamsObject setEnableReRanking(Boolean enableReRanking) { this.enableReRanking = enableReRanking; return this; } @@ -1267,11 +1145,7 @@ public Boolean getEnableReRanking() { return enableReRanking; } - public void setEnableReRanking(Boolean enableReRanking) { - this.enableReRanking = enableReRanking; - } - - public SearchParamsObject query(String query) { + public SearchParamsObject setQuery(String query) { this.query = query; return this; } @@ -1286,11 +1160,7 @@ public String getQuery() { return query; } - public void setQuery(String query) { - this.query = query; - } - - public SearchParamsObject searchableAttributes( + public SearchParamsObject setSearchableAttributes( List searchableAttributes ) { this.searchableAttributes = searchableAttributes; @@ -1317,11 +1187,7 @@ public List getSearchableAttributes() { return searchableAttributes; } - public void setSearchableAttributes(List searchableAttributes) { - this.searchableAttributes = searchableAttributes; - } - - public SearchParamsObject attributesForFaceting( + public SearchParamsObject setAttributesForFaceting( List attributesForFaceting ) { this.attributesForFaceting = attributesForFaceting; @@ -1348,11 +1214,7 @@ public List getAttributesForFaceting() { return attributesForFaceting; } - public void setAttributesForFaceting(List attributesForFaceting) { - this.attributesForFaceting = attributesForFaceting; - } - - public SearchParamsObject unretrievableAttributes( + public SearchParamsObject setUnretrievableAttributes( List unretrievableAttributes ) { this.unretrievableAttributes = unretrievableAttributes; @@ -1379,11 +1241,7 @@ public List getUnretrievableAttributes() { return unretrievableAttributes; } - public void setUnretrievableAttributes(List unretrievableAttributes) { - this.unretrievableAttributes = unretrievableAttributes; - } - - public SearchParamsObject attributesToRetrieve( + public SearchParamsObject setAttributesToRetrieve( List attributesToRetrieve ) { this.attributesToRetrieve = attributesToRetrieve; @@ -1410,11 +1268,7 @@ public List getAttributesToRetrieve() { return attributesToRetrieve; } - public void setAttributesToRetrieve(List attributesToRetrieve) { - this.attributesToRetrieve = attributesToRetrieve; - } - - public SearchParamsObject restrictSearchableAttributes( + public SearchParamsObject setRestrictSearchableAttributes( List restrictSearchableAttributes ) { this.restrictSearchableAttributes = restrictSearchableAttributes; @@ -1441,13 +1295,7 @@ public List getRestrictSearchableAttributes() { return restrictSearchableAttributes; } - public void setRestrictSearchableAttributes( - List restrictSearchableAttributes - ) { - this.restrictSearchableAttributes = restrictSearchableAttributes; - } - - public SearchParamsObject ranking(List ranking) { + public SearchParamsObject setRanking(List ranking) { this.ranking = ranking; return this; } @@ -1470,11 +1318,7 @@ public List getRanking() { return ranking; } - public void setRanking(List ranking) { - this.ranking = ranking; - } - - public SearchParamsObject customRanking(List customRanking) { + public SearchParamsObject setCustomRanking(List customRanking) { this.customRanking = customRanking; return this; } @@ -1497,11 +1341,9 @@ public List getCustomRanking() { return customRanking; } - public void setCustomRanking(List customRanking) { - this.customRanking = customRanking; - } - - public SearchParamsObject relevancyStrictness(Integer relevancyStrictness) { + public SearchParamsObject setRelevancyStrictness( + Integer relevancyStrictness + ) { this.relevancyStrictness = relevancyStrictness; return this; } @@ -1517,11 +1359,7 @@ public Integer getRelevancyStrictness() { return relevancyStrictness; } - public void setRelevancyStrictness(Integer relevancyStrictness) { - this.relevancyStrictness = relevancyStrictness; - } - - public SearchParamsObject attributesToHighlight( + public SearchParamsObject setAttributesToHighlight( List attributesToHighlight ) { this.attributesToHighlight = attributesToHighlight; @@ -1548,11 +1386,7 @@ public List getAttributesToHighlight() { return attributesToHighlight; } - public void setAttributesToHighlight(List attributesToHighlight) { - this.attributesToHighlight = attributesToHighlight; - } - - public SearchParamsObject attributesToSnippet( + public SearchParamsObject setAttributesToSnippet( List attributesToSnippet ) { this.attributesToSnippet = attributesToSnippet; @@ -1579,11 +1413,7 @@ public List getAttributesToSnippet() { return attributesToSnippet; } - public void setAttributesToSnippet(List attributesToSnippet) { - this.attributesToSnippet = attributesToSnippet; - } - - public SearchParamsObject highlightPreTag(String highlightPreTag) { + public SearchParamsObject setHighlightPreTag(String highlightPreTag) { this.highlightPreTag = highlightPreTag; return this; } @@ -1598,11 +1428,7 @@ public String getHighlightPreTag() { return highlightPreTag; } - public void setHighlightPreTag(String highlightPreTag) { - this.highlightPreTag = highlightPreTag; - } - - public SearchParamsObject highlightPostTag(String highlightPostTag) { + public SearchParamsObject setHighlightPostTag(String highlightPostTag) { this.highlightPostTag = highlightPostTag; return this; } @@ -1617,11 +1443,7 @@ public String getHighlightPostTag() { return highlightPostTag; } - public void setHighlightPostTag(String highlightPostTag) { - this.highlightPostTag = highlightPostTag; - } - - public SearchParamsObject snippetEllipsisText(String snippetEllipsisText) { + public SearchParamsObject setSnippetEllipsisText(String snippetEllipsisText) { this.snippetEllipsisText = snippetEllipsisText; return this; } @@ -1636,11 +1458,7 @@ public String getSnippetEllipsisText() { return snippetEllipsisText; } - public void setSnippetEllipsisText(String snippetEllipsisText) { - this.snippetEllipsisText = snippetEllipsisText; - } - - public SearchParamsObject restrictHighlightAndSnippetArrays( + public SearchParamsObject setRestrictHighlightAndSnippetArrays( Boolean restrictHighlightAndSnippetArrays ) { this.restrictHighlightAndSnippetArrays = restrictHighlightAndSnippetArrays; @@ -1657,13 +1475,7 @@ public Boolean getRestrictHighlightAndSnippetArrays() { return restrictHighlightAndSnippetArrays; } - public void setRestrictHighlightAndSnippetArrays( - Boolean restrictHighlightAndSnippetArrays - ) { - this.restrictHighlightAndSnippetArrays = restrictHighlightAndSnippetArrays; - } - - public SearchParamsObject hitsPerPage(Integer hitsPerPage) { + public SearchParamsObject setHitsPerPage(Integer hitsPerPage) { this.hitsPerPage = hitsPerPage; return this; } @@ -1678,11 +1490,9 @@ public Integer getHitsPerPage() { return hitsPerPage; } - public void setHitsPerPage(Integer hitsPerPage) { - this.hitsPerPage = hitsPerPage; - } - - public SearchParamsObject minWordSizefor1Typo(Integer minWordSizefor1Typo) { + public SearchParamsObject setMinWordSizefor1Typo( + Integer minWordSizefor1Typo + ) { this.minWordSizefor1Typo = minWordSizefor1Typo; return this; } @@ -1698,11 +1508,9 @@ public Integer getMinWordSizefor1Typo() { return minWordSizefor1Typo; } - public void setMinWordSizefor1Typo(Integer minWordSizefor1Typo) { - this.minWordSizefor1Typo = minWordSizefor1Typo; - } - - public SearchParamsObject minWordSizefor2Typos(Integer minWordSizefor2Typos) { + public SearchParamsObject setMinWordSizefor2Typos( + Integer minWordSizefor2Typos + ) { this.minWordSizefor2Typos = minWordSizefor2Typos; return this; } @@ -1718,11 +1526,7 @@ public Integer getMinWordSizefor2Typos() { return minWordSizefor2Typos; } - public void setMinWordSizefor2Typos(Integer minWordSizefor2Typos) { - this.minWordSizefor2Typos = minWordSizefor2Typos; - } - - public SearchParamsObject typoTolerance(TypoToleranceEnum typoTolerance) { + public SearchParamsObject setTypoTolerance(TypoToleranceEnum typoTolerance) { this.typoTolerance = typoTolerance; return this; } @@ -1737,11 +1541,7 @@ public TypoToleranceEnum getTypoTolerance() { return typoTolerance; } - public void setTypoTolerance(TypoToleranceEnum typoTolerance) { - this.typoTolerance = typoTolerance; - } - - public SearchParamsObject allowTyposOnNumericTokens( + public SearchParamsObject setAllowTyposOnNumericTokens( Boolean allowTyposOnNumericTokens ) { this.allowTyposOnNumericTokens = allowTyposOnNumericTokens; @@ -1758,11 +1558,7 @@ public Boolean getAllowTyposOnNumericTokens() { return allowTyposOnNumericTokens; } - public void setAllowTyposOnNumericTokens(Boolean allowTyposOnNumericTokens) { - this.allowTyposOnNumericTokens = allowTyposOnNumericTokens; - } - - public SearchParamsObject disableTypoToleranceOnAttributes( + public SearchParamsObject setDisableTypoToleranceOnAttributes( List disableTypoToleranceOnAttributes ) { this.disableTypoToleranceOnAttributes = disableTypoToleranceOnAttributes; @@ -1791,13 +1587,7 @@ public List getDisableTypoToleranceOnAttributes() { return disableTypoToleranceOnAttributes; } - public void setDisableTypoToleranceOnAttributes( - List disableTypoToleranceOnAttributes - ) { - this.disableTypoToleranceOnAttributes = disableTypoToleranceOnAttributes; - } - - public SearchParamsObject separatorsToIndex(String separatorsToIndex) { + public SearchParamsObject setSeparatorsToIndex(String separatorsToIndex) { this.separatorsToIndex = separatorsToIndex; return this; } @@ -1812,11 +1602,7 @@ public String getSeparatorsToIndex() { return separatorsToIndex; } - public void setSeparatorsToIndex(String separatorsToIndex) { - this.separatorsToIndex = separatorsToIndex; - } - - public SearchParamsObject ignorePlurals(String ignorePlurals) { + public SearchParamsObject setIgnorePlurals(String ignorePlurals) { this.ignorePlurals = ignorePlurals; return this; } @@ -1831,11 +1617,7 @@ public String getIgnorePlurals() { return ignorePlurals; } - public void setIgnorePlurals(String ignorePlurals) { - this.ignorePlurals = ignorePlurals; - } - - public SearchParamsObject removeStopWords(String removeStopWords) { + public SearchParamsObject setRemoveStopWords(String removeStopWords) { this.removeStopWords = removeStopWords; return this; } @@ -1850,11 +1632,7 @@ public String getRemoveStopWords() { return removeStopWords; } - public void setRemoveStopWords(String removeStopWords) { - this.removeStopWords = removeStopWords; - } - - public SearchParamsObject keepDiacriticsOnCharacters( + public SearchParamsObject setKeepDiacriticsOnCharacters( String keepDiacriticsOnCharacters ) { this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; @@ -1871,11 +1649,7 @@ public String getKeepDiacriticsOnCharacters() { return keepDiacriticsOnCharacters; } - public void setKeepDiacriticsOnCharacters(String keepDiacriticsOnCharacters) { - this.keepDiacriticsOnCharacters = keepDiacriticsOnCharacters; - } - - public SearchParamsObject queryLanguages(List queryLanguages) { + public SearchParamsObject setQueryLanguages(List queryLanguages) { this.queryLanguages = queryLanguages; return this; } @@ -1899,11 +1673,7 @@ public List getQueryLanguages() { return queryLanguages; } - public void setQueryLanguages(List queryLanguages) { - this.queryLanguages = queryLanguages; - } - - public SearchParamsObject decompoundQuery(Boolean decompoundQuery) { + public SearchParamsObject setDecompoundQuery(Boolean decompoundQuery) { this.decompoundQuery = decompoundQuery; return this; } @@ -1918,11 +1688,7 @@ public Boolean getDecompoundQuery() { return decompoundQuery; } - public void setDecompoundQuery(Boolean decompoundQuery) { - this.decompoundQuery = decompoundQuery; - } - - public SearchParamsObject enableRules(Boolean enableRules) { + public SearchParamsObject setEnableRules(Boolean enableRules) { this.enableRules = enableRules; return this; } @@ -1937,11 +1703,7 @@ public Boolean getEnableRules() { return enableRules; } - public void setEnableRules(Boolean enableRules) { - this.enableRules = enableRules; - } - - public SearchParamsObject enablePersonalization( + public SearchParamsObject setEnablePersonalization( Boolean enablePersonalization ) { this.enablePersonalization = enablePersonalization; @@ -1958,11 +1720,7 @@ public Boolean getEnablePersonalization() { return enablePersonalization; } - public void setEnablePersonalization(Boolean enablePersonalization) { - this.enablePersonalization = enablePersonalization; - } - - public SearchParamsObject queryType(QueryTypeEnum queryType) { + public SearchParamsObject setQueryType(QueryTypeEnum queryType) { this.queryType = queryType; return this; } @@ -1977,11 +1735,7 @@ public QueryTypeEnum getQueryType() { return queryType; } - public void setQueryType(QueryTypeEnum queryType) { - this.queryType = queryType; - } - - public SearchParamsObject removeWordsIfNoResults( + public SearchParamsObject setRemoveWordsIfNoResults( RemoveWordsIfNoResultsEnum removeWordsIfNoResults ) { this.removeWordsIfNoResults = removeWordsIfNoResults; @@ -1998,13 +1752,7 @@ public RemoveWordsIfNoResultsEnum getRemoveWordsIfNoResults() { return removeWordsIfNoResults; } - public void setRemoveWordsIfNoResults( - RemoveWordsIfNoResultsEnum removeWordsIfNoResults - ) { - this.removeWordsIfNoResults = removeWordsIfNoResults; - } - - public SearchParamsObject advancedSyntax(Boolean advancedSyntax) { + public SearchParamsObject setAdvancedSyntax(Boolean advancedSyntax) { this.advancedSyntax = advancedSyntax; return this; } @@ -2019,11 +1767,7 @@ public Boolean getAdvancedSyntax() { return advancedSyntax; } - public void setAdvancedSyntax(Boolean advancedSyntax) { - this.advancedSyntax = advancedSyntax; - } - - public SearchParamsObject optionalWords(List optionalWords) { + public SearchParamsObject setOptionalWords(List optionalWords) { this.optionalWords = optionalWords; return this; } @@ -2046,11 +1790,7 @@ public List getOptionalWords() { return optionalWords; } - public void setOptionalWords(List optionalWords) { - this.optionalWords = optionalWords; - } - - public SearchParamsObject disableExactOnAttributes( + public SearchParamsObject setDisableExactOnAttributes( List disableExactOnAttributes ) { this.disableExactOnAttributes = disableExactOnAttributes; @@ -2077,13 +1817,7 @@ public List getDisableExactOnAttributes() { return disableExactOnAttributes; } - public void setDisableExactOnAttributes( - List disableExactOnAttributes - ) { - this.disableExactOnAttributes = disableExactOnAttributes; - } - - public SearchParamsObject exactOnSingleWordQuery( + public SearchParamsObject setExactOnSingleWordQuery( ExactOnSingleWordQueryEnum exactOnSingleWordQuery ) { this.exactOnSingleWordQuery = exactOnSingleWordQuery; @@ -2100,13 +1834,7 @@ public ExactOnSingleWordQueryEnum getExactOnSingleWordQuery() { return exactOnSingleWordQuery; } - public void setExactOnSingleWordQuery( - ExactOnSingleWordQueryEnum exactOnSingleWordQuery - ) { - this.exactOnSingleWordQuery = exactOnSingleWordQuery; - } - - public SearchParamsObject alternativesAsExact( + public SearchParamsObject setAlternativesAsExact( List alternativesAsExact ) { this.alternativesAsExact = alternativesAsExact; @@ -2133,13 +1861,7 @@ public List getAlternativesAsExact() { return alternativesAsExact; } - public void setAlternativesAsExact( - List alternativesAsExact - ) { - this.alternativesAsExact = alternativesAsExact; - } - - public SearchParamsObject advancedSyntaxFeatures( + public SearchParamsObject setAdvancedSyntaxFeatures( List advancedSyntaxFeatures ) { this.advancedSyntaxFeatures = advancedSyntaxFeatures; @@ -2167,13 +1889,7 @@ public List getAdvancedSyntaxFeatures() { return advancedSyntaxFeatures; } - public void setAdvancedSyntaxFeatures( - List advancedSyntaxFeatures - ) { - this.advancedSyntaxFeatures = advancedSyntaxFeatures; - } - - public SearchParamsObject distinct(Integer distinct) { + public SearchParamsObject setDistinct(Integer distinct) { this.distinct = distinct; return this; } @@ -2188,11 +1904,7 @@ public Integer getDistinct() { return distinct; } - public void setDistinct(Integer distinct) { - this.distinct = distinct; - } - - public SearchParamsObject synonyms(Boolean synonyms) { + public SearchParamsObject setSynonyms(Boolean synonyms) { this.synonyms = synonyms; return this; } @@ -2207,11 +1919,7 @@ public Boolean getSynonyms() { return synonyms; } - public void setSynonyms(Boolean synonyms) { - this.synonyms = synonyms; - } - - public SearchParamsObject replaceSynonymsInHighlight( + public SearchParamsObject setReplaceSynonymsInHighlight( Boolean replaceSynonymsInHighlight ) { this.replaceSynonymsInHighlight = replaceSynonymsInHighlight; @@ -2229,13 +1937,7 @@ public Boolean getReplaceSynonymsInHighlight() { return replaceSynonymsInHighlight; } - public void setReplaceSynonymsInHighlight( - Boolean replaceSynonymsInHighlight - ) { - this.replaceSynonymsInHighlight = replaceSynonymsInHighlight; - } - - public SearchParamsObject minProximity(Integer minProximity) { + public SearchParamsObject setMinProximity(Integer minProximity) { this.minProximity = minProximity; return this; } @@ -2250,11 +1952,7 @@ public Integer getMinProximity() { return minProximity; } - public void setMinProximity(Integer minProximity) { - this.minProximity = minProximity; - } - - public SearchParamsObject responseFields(List responseFields) { + public SearchParamsObject setResponseFields(List responseFields) { this.responseFields = responseFields; return this; } @@ -2278,11 +1976,7 @@ public List getResponseFields() { return responseFields; } - public void setResponseFields(List responseFields) { - this.responseFields = responseFields; - } - - public SearchParamsObject maxFacetHits(Integer maxFacetHits) { + public SearchParamsObject setMaxFacetHits(Integer maxFacetHits) { this.maxFacetHits = maxFacetHits; return this; } @@ -2298,11 +1992,7 @@ public Integer getMaxFacetHits() { return maxFacetHits; } - public void setMaxFacetHits(Integer maxFacetHits) { - this.maxFacetHits = maxFacetHits; - } - - public SearchParamsObject attributeCriteriaComputedByMinProximity( + public SearchParamsObject setAttributeCriteriaComputedByMinProximity( Boolean attributeCriteriaComputedByMinProximity ) { this.attributeCriteriaComputedByMinProximity = @@ -2321,14 +2011,7 @@ public Boolean getAttributeCriteriaComputedByMinProximity() { return attributeCriteriaComputedByMinProximity; } - public void setAttributeCriteriaComputedByMinProximity( - Boolean attributeCriteriaComputedByMinProximity - ) { - this.attributeCriteriaComputedByMinProximity = - attributeCriteriaComputedByMinProximity; - } - - public SearchParamsObject renderingContent(Object renderingContent) { + public SearchParamsObject setRenderingContent(Object renderingContent) { this.renderingContent = renderingContent; return this; } @@ -2344,10 +2027,6 @@ public Object getRenderingContent() { return renderingContent; } - public void setRenderingContent(Object renderingContent) { - this.renderingContent = renderingContent; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParamsString.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParamsString.java index 0419f69d76..e0f8df9b24 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParamsString.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchParamsString.java @@ -9,7 +9,7 @@ public class SearchParamsString { @SerializedName("params") private String params = ""; - public SearchParamsString params(String params) { + public SearchParamsString setParams(String params) { this.params = params; return this; } @@ -24,10 +24,6 @@ public String getParams() { return params; } - public void setParams(String params) { - this.params = params; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchResponse.java index a9d1a10625..ff12e495a1 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchResponse.java @@ -85,7 +85,7 @@ public class SearchResponse { @SerializedName("hits") private List hits = new ArrayList<>(); - public SearchResponse abTestID(Integer abTestID) { + public SearchResponse setAbTestID(Integer abTestID) { this.abTestID = abTestID; return this; } @@ -101,11 +101,7 @@ public Integer getAbTestID() { return abTestID; } - public void setAbTestID(Integer abTestID) { - this.abTestID = abTestID; - } - - public SearchResponse abTestVariantID(Integer abTestVariantID) { + public SearchResponse setAbTestVariantID(Integer abTestVariantID) { this.abTestVariantID = abTestVariantID; return this; } @@ -121,11 +117,7 @@ public Integer getAbTestVariantID() { return abTestVariantID; } - public void setAbTestVariantID(Integer abTestVariantID) { - this.abTestVariantID = abTestVariantID; - } - - public SearchResponse aroundLatLng(String aroundLatLng) { + public SearchResponse setAroundLatLng(String aroundLatLng) { this.aroundLatLng = aroundLatLng; return this; } @@ -140,11 +132,7 @@ public String getAroundLatLng() { return aroundLatLng; } - public void setAroundLatLng(String aroundLatLng) { - this.aroundLatLng = aroundLatLng; - } - - public SearchResponse automaticRadius(String automaticRadius) { + public SearchResponse setAutomaticRadius(String automaticRadius) { this.automaticRadius = automaticRadius; return this; } @@ -160,11 +148,9 @@ public String getAutomaticRadius() { return automaticRadius; } - public void setAutomaticRadius(String automaticRadius) { - this.automaticRadius = automaticRadius; - } - - public SearchResponse exhaustiveFacetsCount(Boolean exhaustiveFacetsCount) { + public SearchResponse setExhaustiveFacetsCount( + Boolean exhaustiveFacetsCount + ) { this.exhaustiveFacetsCount = exhaustiveFacetsCount; return this; } @@ -179,11 +165,7 @@ public Boolean getExhaustiveFacetsCount() { return exhaustiveFacetsCount; } - public void setExhaustiveFacetsCount(Boolean exhaustiveFacetsCount) { - this.exhaustiveFacetsCount = exhaustiveFacetsCount; - } - - public SearchResponse exhaustiveNbHits(Boolean exhaustiveNbHits) { + public SearchResponse setExhaustiveNbHits(Boolean exhaustiveNbHits) { this.exhaustiveNbHits = exhaustiveNbHits; return this; } @@ -198,11 +180,7 @@ public Boolean getExhaustiveNbHits() { return exhaustiveNbHits; } - public void setExhaustiveNbHits(Boolean exhaustiveNbHits) { - this.exhaustiveNbHits = exhaustiveNbHits; - } - - public SearchResponse exhaustiveTypo(Boolean exhaustiveTypo) { + public SearchResponse setExhaustiveTypo(Boolean exhaustiveTypo) { this.exhaustiveTypo = exhaustiveTypo; return this; } @@ -218,11 +196,7 @@ public Boolean getExhaustiveTypo() { return exhaustiveTypo; } - public void setExhaustiveTypo(Boolean exhaustiveTypo) { - this.exhaustiveTypo = exhaustiveTypo; - } - - public SearchResponse facets(Map> facets) { + public SearchResponse setFacets(Map> facets) { this.facets = facets; return this; } @@ -248,11 +222,7 @@ public Map> getFacets() { return facets; } - public void setFacets(Map> facets) { - this.facets = facets; - } - - public SearchResponse facetsStats( + public SearchResponse setFacetsStats( Map facetsStats ) { this.facetsStats = facetsStats; @@ -280,13 +250,7 @@ public Map getFacetsStats() { return facetsStats; } - public void setFacetsStats( - Map facetsStats - ) { - this.facetsStats = facetsStats; - } - - public SearchResponse hitsPerPage(Integer hitsPerPage) { + public SearchResponse setHitsPerPage(Integer hitsPerPage) { this.hitsPerPage = hitsPerPage; return this; } @@ -301,11 +265,7 @@ public Integer getHitsPerPage() { return hitsPerPage; } - public void setHitsPerPage(Integer hitsPerPage) { - this.hitsPerPage = hitsPerPage; - } - - public SearchResponse index(String index) { + public SearchResponse setIndex(String index) { this.index = index; return this; } @@ -320,11 +280,7 @@ public String getIndex() { return index; } - public void setIndex(String index) { - this.index = index; - } - - public SearchResponse indexUsed(String indexUsed) { + public SearchResponse setIndexUsed(String indexUsed) { this.indexUsed = indexUsed; return this; } @@ -340,11 +296,7 @@ public String getIndexUsed() { return indexUsed; } - public void setIndexUsed(String indexUsed) { - this.indexUsed = indexUsed; - } - - public SearchResponse message(String message) { + public SearchResponse setMessage(String message) { this.message = message; return this; } @@ -359,11 +311,7 @@ public String getMessage() { return message; } - public void setMessage(String message) { - this.message = message; - } - - public SearchResponse nbHits(Integer nbHits) { + public SearchResponse setNbHits(Integer nbHits) { this.nbHits = nbHits; return this; } @@ -378,11 +326,7 @@ public Integer getNbHits() { return nbHits; } - public void setNbHits(Integer nbHits) { - this.nbHits = nbHits; - } - - public SearchResponse nbPages(Integer nbPages) { + public SearchResponse setNbPages(Integer nbPages) { this.nbPages = nbPages; return this; } @@ -397,11 +341,7 @@ public Integer getNbPages() { return nbPages; } - public void setNbPages(Integer nbPages) { - this.nbPages = nbPages; - } - - public SearchResponse nbSortedHits(Integer nbSortedHits) { + public SearchResponse setNbSortedHits(Integer nbSortedHits) { this.nbSortedHits = nbSortedHits; return this; } @@ -416,11 +356,7 @@ public Integer getNbSortedHits() { return nbSortedHits; } - public void setNbSortedHits(Integer nbSortedHits) { - this.nbSortedHits = nbSortedHits; - } - - public SearchResponse page(Integer page) { + public SearchResponse setPage(Integer page) { this.page = page; return this; } @@ -435,11 +371,7 @@ public Integer getPage() { return page; } - public void setPage(Integer page) { - this.page = page; - } - - public SearchResponse params(String params) { + public SearchResponse setParams(String params) { this.params = params; return this; } @@ -454,11 +386,7 @@ public String getParams() { return params; } - public void setParams(String params) { - this.params = params; - } - - public SearchResponse parsedQuery(String parsedQuery) { + public SearchResponse setParsedQuery(String parsedQuery) { this.parsedQuery = parsedQuery; return this; } @@ -473,11 +401,7 @@ public String getParsedQuery() { return parsedQuery; } - public void setParsedQuery(String parsedQuery) { - this.parsedQuery = parsedQuery; - } - - public SearchResponse processingTimeMS(Integer processingTimeMS) { + public SearchResponse setProcessingTimeMS(Integer processingTimeMS) { this.processingTimeMS = processingTimeMS; return this; } @@ -492,11 +416,7 @@ public Integer getProcessingTimeMS() { return processingTimeMS; } - public void setProcessingTimeMS(Integer processingTimeMS) { - this.processingTimeMS = processingTimeMS; - } - - public SearchResponse query(String query) { + public SearchResponse setQuery(String query) { this.query = query; return this; } @@ -511,11 +431,7 @@ public String getQuery() { return query; } - public void setQuery(String query) { - this.query = query; - } - - public SearchResponse queryAfterRemoval(String queryAfterRemoval) { + public SearchResponse setQueryAfterRemoval(String queryAfterRemoval) { this.queryAfterRemoval = queryAfterRemoval; return this; } @@ -531,11 +447,7 @@ public String getQueryAfterRemoval() { return queryAfterRemoval; } - public void setQueryAfterRemoval(String queryAfterRemoval) { - this.queryAfterRemoval = queryAfterRemoval; - } - - public SearchResponse serverUsed(String serverUsed) { + public SearchResponse setServerUsed(String serverUsed) { this.serverUsed = serverUsed; return this; } @@ -550,11 +462,7 @@ public String getServerUsed() { return serverUsed; } - public void setServerUsed(String serverUsed) { - this.serverUsed = serverUsed; - } - - public SearchResponse userData(Object userData) { + public SearchResponse setUserData(Object userData) { this.userData = userData; return this; } @@ -569,11 +477,7 @@ public Object getUserData() { return userData; } - public void setUserData(Object userData) { - this.userData = userData; - } - - public SearchResponse hits(List hits) { + public SearchResponse setHits(List hits) { this.hits = hits; return this; } @@ -593,10 +497,6 @@ public List getHits() { return hits; } - public void setHits(List hits) { - this.hits = hits; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchRulesParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchRulesParams.java index d877c74ae4..ab07030f56 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchRulesParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchRulesParams.java @@ -29,7 +29,7 @@ public class SearchRulesParams { @SerializedName("requestOptions") private List requestOptions = null; - public SearchRulesParams query(String query) { + public SearchRulesParams setQuery(String query) { this.query = query; return this; } @@ -44,11 +44,7 @@ public String getQuery() { return query; } - public void setQuery(String query) { - this.query = query; - } - - public SearchRulesParams anchoring(Anchoring anchoring) { + public SearchRulesParams setAnchoring(Anchoring anchoring) { this.anchoring = anchoring; return this; } @@ -63,11 +59,7 @@ public Anchoring getAnchoring() { return anchoring; } - public void setAnchoring(Anchoring anchoring) { - this.anchoring = anchoring; - } - - public SearchRulesParams context(String context) { + public SearchRulesParams setContext(String context) { this.context = context; return this; } @@ -82,11 +74,7 @@ public String getContext() { return context; } - public void setContext(String context) { - this.context = context; - } - - public SearchRulesParams page(Integer page) { + public SearchRulesParams setPage(Integer page) { this.page = page; return this; } @@ -101,11 +89,7 @@ public Integer getPage() { return page; } - public void setPage(Integer page) { - this.page = page; - } - - public SearchRulesParams hitsPerPage(Integer hitsPerPage) { + public SearchRulesParams setHitsPerPage(Integer hitsPerPage) { this.hitsPerPage = hitsPerPage; return this; } @@ -120,11 +104,7 @@ public Integer getHitsPerPage() { return hitsPerPage; } - public void setHitsPerPage(Integer hitsPerPage) { - this.hitsPerPage = hitsPerPage; - } - - public SearchRulesParams enabled(Boolean enabled) { + public SearchRulesParams setEnabled(Boolean enabled) { this.enabled = enabled; return this; } @@ -140,11 +120,7 @@ public Boolean getEnabled() { return enabled; } - public void setEnabled(Boolean enabled) { - this.enabled = enabled; - } - - public SearchRulesParams requestOptions(List requestOptions) { + public SearchRulesParams setRequestOptions(List requestOptions) { this.requestOptions = requestOptions; return this; } @@ -167,10 +143,6 @@ public List getRequestOptions() { return requestOptions; } - public void setRequestOptions(List requestOptions) { - this.requestOptions = requestOptions; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchRulesResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchRulesResponse.java index 466a313ea9..6546ad43ec 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchRulesResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchRulesResponse.java @@ -20,7 +20,7 @@ public class SearchRulesResponse { @SerializedName("nbPages") private Integer nbPages; - public SearchRulesResponse hits(List hits) { + public SearchRulesResponse setHits(List hits) { this.hits = hits; return this; } @@ -40,11 +40,7 @@ public List getHits() { return hits; } - public void setHits(List hits) { - this.hits = hits; - } - - public SearchRulesResponse nbHits(Integer nbHits) { + public SearchRulesResponse setNbHits(Integer nbHits) { this.nbHits = nbHits; return this; } @@ -59,11 +55,7 @@ public Integer getNbHits() { return nbHits; } - public void setNbHits(Integer nbHits) { - this.nbHits = nbHits; - } - - public SearchRulesResponse page(Integer page) { + public SearchRulesResponse setPage(Integer page) { this.page = page; return this; } @@ -78,11 +70,7 @@ public Integer getPage() { return page; } - public void setPage(Integer page) { - this.page = page; - } - - public SearchRulesResponse nbPages(Integer nbPages) { + public SearchRulesResponse setNbPages(Integer nbPages) { this.nbPages = nbPages; return this; } @@ -97,10 +85,6 @@ public Integer getNbPages() { return nbPages; } - public void setNbPages(Integer nbPages) { - this.nbPages = nbPages; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchSynonymsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchSynonymsResponse.java index 08a6159a4d..9d672590e6 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchSynonymsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchSynonymsResponse.java @@ -15,7 +15,7 @@ public class SearchSynonymsResponse extends HashMap { @SerializedName("nbHits") private Integer nbHits; - public SearchSynonymsResponse hits(List hits) { + public SearchSynonymsResponse setHits(List hits) { this.hits = hits; return this; } @@ -35,11 +35,7 @@ public List getHits() { return hits; } - public void setHits(List hits) { - this.hits = hits; - } - - public SearchSynonymsResponse nbHits(Integer nbHits) { + public SearchSynonymsResponse setNbHits(Integer nbHits) { this.nbHits = nbHits; return this; } @@ -54,10 +50,6 @@ public Integer getNbHits() { return nbHits; } - public void setNbHits(Integer nbHits) { - this.nbHits = nbHits; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsParams.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsParams.java index d3930a0504..4084b38488 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsParams.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsParams.java @@ -18,7 +18,7 @@ public class SearchUserIdsParams { @SerializedName("hitsPerPage") private Integer hitsPerPage = 20; - public SearchUserIdsParams query(String query) { + public SearchUserIdsParams setQuery(String query) { this.query = query; return this; } @@ -34,11 +34,7 @@ public String getQuery() { return query; } - public void setQuery(String query) { - this.query = query; - } - - public SearchUserIdsParams clusterName(String clusterName) { + public SearchUserIdsParams setClusterName(String clusterName) { this.clusterName = clusterName; return this; } @@ -53,11 +49,7 @@ public String getClusterName() { return clusterName; } - public void setClusterName(String clusterName) { - this.clusterName = clusterName; - } - - public SearchUserIdsParams page(Integer page) { + public SearchUserIdsParams setPage(Integer page) { this.page = page; return this; } @@ -72,11 +64,7 @@ public Integer getPage() { return page; } - public void setPage(Integer page) { - this.page = page; - } - - public SearchUserIdsParams hitsPerPage(Integer hitsPerPage) { + public SearchUserIdsParams setHitsPerPage(Integer hitsPerPage) { this.hitsPerPage = hitsPerPage; return this; } @@ -91,10 +79,6 @@ public Integer getHitsPerPage() { return hitsPerPage; } - public void setHitsPerPage(Integer hitsPerPage) { - this.hitsPerPage = hitsPerPage; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponse.java index bb7ad5029b..220a21cfc5 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponse.java @@ -23,7 +23,7 @@ public class SearchUserIdsResponse { @SerializedName("updatedAt") private String updatedAt; - public SearchUserIdsResponse hits(List hits) { + public SearchUserIdsResponse setHits(List hits) { this.hits = hits; return this; } @@ -43,11 +43,7 @@ public List getHits() { return hits; } - public void setHits(List hits) { - this.hits = hits; - } - - public SearchUserIdsResponse nbHits(Integer nbHits) { + public SearchUserIdsResponse setNbHits(Integer nbHits) { this.nbHits = nbHits; return this; } @@ -62,11 +58,7 @@ public Integer getNbHits() { return nbHits; } - public void setNbHits(Integer nbHits) { - this.nbHits = nbHits; - } - - public SearchUserIdsResponse page(Integer page) { + public SearchUserIdsResponse setPage(Integer page) { this.page = page; return this; } @@ -81,11 +73,7 @@ public Integer getPage() { return page; } - public void setPage(Integer page) { - this.page = page; - } - - public SearchUserIdsResponse hitsPerPage(Integer hitsPerPage) { + public SearchUserIdsResponse setHitsPerPage(Integer hitsPerPage) { this.hitsPerPage = hitsPerPage; return this; } @@ -100,11 +88,7 @@ public Integer getHitsPerPage() { return hitsPerPage; } - public void setHitsPerPage(Integer hitsPerPage) { - this.hitsPerPage = hitsPerPage; - } - - public SearchUserIdsResponse updatedAt(String updatedAt) { + public SearchUserIdsResponse setUpdatedAt(String updatedAt) { this.updatedAt = updatedAt; return this; } @@ -119,10 +103,6 @@ public String getUpdatedAt() { return updatedAt; } - public void setUpdatedAt(String updatedAt) { - this.updatedAt = updatedAt; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponseHighlightResult.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponseHighlightResult.java index 0730872cfc..8627c3adf6 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponseHighlightResult.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponseHighlightResult.java @@ -12,7 +12,9 @@ public class SearchUserIdsResponseHighlightResult { @SerializedName("clusterName") private HighlightResult clusterName; - public SearchUserIdsResponseHighlightResult userID(HighlightResult userID) { + public SearchUserIdsResponseHighlightResult setUserID( + HighlightResult userID + ) { this.userID = userID; return this; } @@ -27,11 +29,7 @@ public HighlightResult getUserID() { return userID; } - public void setUserID(HighlightResult userID) { - this.userID = userID; - } - - public SearchUserIdsResponseHighlightResult clusterName( + public SearchUserIdsResponseHighlightResult setClusterName( HighlightResult clusterName ) { this.clusterName = clusterName; @@ -48,10 +46,6 @@ public HighlightResult getClusterName() { return clusterName; } - public void setClusterName(HighlightResult clusterName) { - this.clusterName = clusterName; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponseHits.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponseHits.java index a0c34f5265..32b4dd61a3 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponseHits.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SearchUserIdsResponseHits.java @@ -24,7 +24,7 @@ public class SearchUserIdsResponseHits { @SerializedName("_highlightResult") private SearchUserIdsResponseHighlightResult highlightResult; - public SearchUserIdsResponseHits userID(String userID) { + public SearchUserIdsResponseHits setUserID(String userID) { this.userID = userID; return this; } @@ -39,11 +39,7 @@ public String getUserID() { return userID; } - public void setUserID(String userID) { - this.userID = userID; - } - - public SearchUserIdsResponseHits clusterName(String clusterName) { + public SearchUserIdsResponseHits setClusterName(String clusterName) { this.clusterName = clusterName; return this; } @@ -58,11 +54,7 @@ public String getClusterName() { return clusterName; } - public void setClusterName(String clusterName) { - this.clusterName = clusterName; - } - - public SearchUserIdsResponseHits nbRecords(Integer nbRecords) { + public SearchUserIdsResponseHits setNbRecords(Integer nbRecords) { this.nbRecords = nbRecords; return this; } @@ -77,11 +69,7 @@ public Integer getNbRecords() { return nbRecords; } - public void setNbRecords(Integer nbRecords) { - this.nbRecords = nbRecords; - } - - public SearchUserIdsResponseHits dataSize(Integer dataSize) { + public SearchUserIdsResponseHits setDataSize(Integer dataSize) { this.dataSize = dataSize; return this; } @@ -96,11 +84,7 @@ public Integer getDataSize() { return dataSize; } - public void setDataSize(Integer dataSize) { - this.dataSize = dataSize; - } - - public SearchUserIdsResponseHits objectID(String objectID) { + public SearchUserIdsResponseHits setObjectID(String objectID) { this.objectID = objectID; return this; } @@ -115,11 +99,7 @@ public String getObjectID() { return objectID; } - public void setObjectID(String objectID) { - this.objectID = objectID; - } - - public SearchUserIdsResponseHits highlightResult( + public SearchUserIdsResponseHits setHighlightResult( SearchUserIdsResponseHighlightResult highlightResult ) { this.highlightResult = highlightResult; @@ -136,12 +116,6 @@ public SearchUserIdsResponseHighlightResult getHighlightResult() { return highlightResult; } - public void setHighlightResult( - SearchUserIdsResponseHighlightResult highlightResult - ) { - this.highlightResult = highlightResult; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SnippetResult.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SnippetResult.java index 5dae6f069e..1a677c30dd 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SnippetResult.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SnippetResult.java @@ -69,7 +69,7 @@ public MatchLevelEnum read(final JsonReader jsonReader) @SerializedName("matchLevel") private MatchLevelEnum matchLevel; - public SnippetResult value(String value) { + public SnippetResult setValue(String value) { this.value = value; return this; } @@ -84,11 +84,7 @@ public String getValue() { return value; } - public void setValue(String value) { - this.value = value; - } - - public SnippetResult matchLevel(MatchLevelEnum matchLevel) { + public SnippetResult setMatchLevel(MatchLevelEnum matchLevel) { this.matchLevel = matchLevel; return this; } @@ -103,10 +99,6 @@ public MatchLevelEnum getMatchLevel() { return matchLevel; } - public void setMatchLevel(MatchLevelEnum matchLevel) { - this.matchLevel = matchLevel; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Source.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Source.java index 4418ca33a8..6cf7d5ba51 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Source.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/Source.java @@ -12,7 +12,7 @@ public class Source { @SerializedName("description") private String description; - public Source source(String source) { + public Source setSource(String source) { this.source = source; return this; } @@ -27,11 +27,7 @@ public String getSource() { return source; } - public void setSource(String source) { - this.source = source; - } - - public Source description(String description) { + public Source setDescription(String description) { this.description = description; return this; } @@ -46,10 +42,6 @@ public String getDescription() { return description; } - public void setDescription(String description) { - this.description = description; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/StandardEntries.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/StandardEntries.java index a153c1ed3f..978b8460ad 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/StandardEntries.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/StandardEntries.java @@ -20,7 +20,7 @@ public class StandardEntries { @SerializedName("compounds") private Map compounds = null; - public StandardEntries plurals(Map plurals) { + public StandardEntries setPlurals(Map plurals) { this.plurals = plurals; return this; } @@ -43,11 +43,7 @@ public Map getPlurals() { return plurals; } - public void setPlurals(Map plurals) { - this.plurals = plurals; - } - - public StandardEntries stopwords(Map stopwords) { + public StandardEntries setStopwords(Map stopwords) { this.stopwords = stopwords; return this; } @@ -70,11 +66,7 @@ public Map getStopwords() { return stopwords; } - public void setStopwords(Map stopwords) { - this.stopwords = stopwords; - } - - public StandardEntries compounds(Map compounds) { + public StandardEntries setCompounds(Map compounds) { this.compounds = compounds; return this; } @@ -97,10 +89,6 @@ public Map getCompounds() { return compounds; } - public void setCompounds(Map compounds) { - this.compounds = compounds; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymHit.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymHit.java index d26258da31..68e906c9aa 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymHit.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymHit.java @@ -35,7 +35,7 @@ public class SynonymHit { @SerializedName("_highlightResult") private SynonymHitHighlightResult highlightResult; - public SynonymHit objectID(String objectID) { + public SynonymHit setObjectID(String objectID) { this.objectID = objectID; return this; } @@ -50,11 +50,7 @@ public String getObjectID() { return objectID; } - public void setObjectID(String objectID) { - this.objectID = objectID; - } - - public SynonymHit type(SynonymType type) { + public SynonymHit setType(SynonymType type) { this.type = type; return this; } @@ -69,11 +65,7 @@ public SynonymType getType() { return type; } - public void setType(SynonymType type) { - this.type = type; - } - - public SynonymHit synonyms(List synonyms) { + public SynonymHit setSynonyms(List synonyms) { this.synonyms = synonyms; return this; } @@ -96,11 +88,7 @@ public List getSynonyms() { return synonyms; } - public void setSynonyms(List synonyms) { - this.synonyms = synonyms; - } - - public SynonymHit input(String input) { + public SynonymHit setInput(String input) { this.input = input; return this; } @@ -115,11 +103,7 @@ public String getInput() { return input; } - public void setInput(String input) { - this.input = input; - } - - public SynonymHit word(String word) { + public SynonymHit setWord(String word) { this.word = word; return this; } @@ -134,11 +118,7 @@ public String getWord() { return word; } - public void setWord(String word) { - this.word = word; - } - - public SynonymHit corrections(List corrections) { + public SynonymHit setCorrections(List corrections) { this.corrections = corrections; return this; } @@ -161,11 +141,7 @@ public List getCorrections() { return corrections; } - public void setCorrections(List corrections) { - this.corrections = corrections; - } - - public SynonymHit placeholder(String placeholder) { + public SynonymHit setPlaceholder(String placeholder) { this.placeholder = placeholder; return this; } @@ -180,11 +156,7 @@ public String getPlaceholder() { return placeholder; } - public void setPlaceholder(String placeholder) { - this.placeholder = placeholder; - } - - public SynonymHit replacements(List replacements) { + public SynonymHit setReplacements(List replacements) { this.replacements = replacements; return this; } @@ -207,11 +179,9 @@ public List getReplacements() { return replacements; } - public void setReplacements(List replacements) { - this.replacements = replacements; - } - - public SynonymHit highlightResult(SynonymHitHighlightResult highlightResult) { + public SynonymHit setHighlightResult( + SynonymHitHighlightResult highlightResult + ) { this.highlightResult = highlightResult; return this; } @@ -226,10 +196,6 @@ public SynonymHitHighlightResult getHighlightResult() { return highlightResult; } - public void setHighlightResult(SynonymHitHighlightResult highlightResult) { - this.highlightResult = highlightResult; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymHitHighlightResult.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymHitHighlightResult.java index 3d0a8c9746..bba6f936d3 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymHitHighlightResult.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymHitHighlightResult.java @@ -14,7 +14,7 @@ public class SynonymHitHighlightResult { @SerializedName("synonyms") private List synonyms = null; - public SynonymHitHighlightResult type(HighlightResult type) { + public SynonymHitHighlightResult setType(HighlightResult type) { this.type = type; return this; } @@ -29,11 +29,7 @@ public HighlightResult getType() { return type; } - public void setType(HighlightResult type) { - this.type = type; - } - - public SynonymHitHighlightResult synonyms(List synonyms) { + public SynonymHitHighlightResult setSynonyms(List synonyms) { this.synonyms = synonyms; return this; } @@ -58,10 +54,6 @@ public List getSynonyms() { return synonyms; } - public void setSynonyms(List synonyms) { - this.synonyms = synonyms; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymType.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymType.java index a3a9ba6f87..267f02b57a 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymType.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/SynonymType.java @@ -13,13 +13,13 @@ public enum SynonymType { ONEWAYSYNONYM("onewaysynonym"), - ALTCORRECTION1("altcorrection1"), + ALTCORRECTION_1("altcorrection1"), - ALTCORRECTION2("altcorrection2"), + ALTCORRECTION_2("altcorrection2"), PLACEHOLDER("placeholder"); - private String value; + private final String value; SynonymType(String value) { this.value = value; diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/TimeRange.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/TimeRange.java index 1ca35a2a3a..90771512d2 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/TimeRange.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/TimeRange.java @@ -12,7 +12,7 @@ public class TimeRange { @SerializedName("until") private Integer until; - public TimeRange from(Integer from) { + public TimeRange setFrom(Integer from) { this.from = from; return this; } @@ -27,11 +27,7 @@ public Integer getFrom() { return from; } - public void setFrom(Integer from) { - this.from = from; - } - - public TimeRange until(Integer until) { + public TimeRange setUntil(Integer until) { this.until = until; return this; } @@ -46,10 +42,6 @@ public Integer getUntil() { return until; } - public void setUntil(Integer until) { - this.until = until; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdateApiKeyResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdateApiKeyResponse.java index 7eaa1af920..3938a8e3a0 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdateApiKeyResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdateApiKeyResponse.java @@ -12,7 +12,7 @@ public class UpdateApiKeyResponse { @SerializedName("updatedAt") private String updatedAt; - public UpdateApiKeyResponse key(String key) { + public UpdateApiKeyResponse setKey(String key) { this.key = key; return this; } @@ -27,11 +27,7 @@ public String getKey() { return key; } - public void setKey(String key) { - this.key = key; - } - - public UpdateApiKeyResponse updatedAt(String updatedAt) { + public UpdateApiKeyResponse setUpdatedAt(String updatedAt) { this.updatedAt = updatedAt; return this; } @@ -46,10 +42,6 @@ public String getUpdatedAt() { return updatedAt; } - public void setUpdatedAt(String updatedAt) { - this.updatedAt = updatedAt; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedAtResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedAtResponse.java index a0ea0262d5..04f1d9a3b8 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedAtResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedAtResponse.java @@ -12,7 +12,7 @@ public class UpdatedAtResponse { @SerializedName("updatedAt") private String updatedAt; - public UpdatedAtResponse taskID(Integer taskID) { + public UpdatedAtResponse setTaskID(Integer taskID) { this.taskID = taskID; return this; } @@ -27,11 +27,7 @@ public Integer getTaskID() { return taskID; } - public void setTaskID(Integer taskID) { - this.taskID = taskID; - } - - public UpdatedAtResponse updatedAt(String updatedAt) { + public UpdatedAtResponse setUpdatedAt(String updatedAt) { this.updatedAt = updatedAt; return this; } @@ -46,10 +42,6 @@ public String getUpdatedAt() { return updatedAt; } - public void setUpdatedAt(String updatedAt) { - this.updatedAt = updatedAt; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedAtWithObjectIdResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedAtWithObjectIdResponse.java index 539fb76dcf..7a8d766b7d 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedAtWithObjectIdResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedAtWithObjectIdResponse.java @@ -15,7 +15,7 @@ public class UpdatedAtWithObjectIdResponse { @SerializedName("objectID") private String objectID; - public UpdatedAtWithObjectIdResponse taskID(Integer taskID) { + public UpdatedAtWithObjectIdResponse setTaskID(Integer taskID) { this.taskID = taskID; return this; } @@ -30,11 +30,7 @@ public Integer getTaskID() { return taskID; } - public void setTaskID(Integer taskID) { - this.taskID = taskID; - } - - public UpdatedAtWithObjectIdResponse updatedAt(String updatedAt) { + public UpdatedAtWithObjectIdResponse setUpdatedAt(String updatedAt) { this.updatedAt = updatedAt; return this; } @@ -49,11 +45,7 @@ public String getUpdatedAt() { return updatedAt; } - public void setUpdatedAt(String updatedAt) { - this.updatedAt = updatedAt; - } - - public UpdatedAtWithObjectIdResponse objectID(String objectID) { + public UpdatedAtWithObjectIdResponse setObjectID(String objectID) { this.objectID = objectID; return this; } @@ -68,10 +60,6 @@ public String getObjectID() { return objectID; } - public void setObjectID(String objectID) { - this.objectID = objectID; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedRuleResponse.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedRuleResponse.java index 117cbd6f78..2019ba2907 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedRuleResponse.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UpdatedRuleResponse.java @@ -15,7 +15,7 @@ public class UpdatedRuleResponse { @SerializedName("taskID") private Integer taskID; - public UpdatedRuleResponse objectID(String objectID) { + public UpdatedRuleResponse setObjectID(String objectID) { this.objectID = objectID; return this; } @@ -30,11 +30,7 @@ public String getObjectID() { return objectID; } - public void setObjectID(String objectID) { - this.objectID = objectID; - } - - public UpdatedRuleResponse updatedAt(String updatedAt) { + public UpdatedRuleResponse setUpdatedAt(String updatedAt) { this.updatedAt = updatedAt; return this; } @@ -49,11 +45,7 @@ public String getUpdatedAt() { return updatedAt; } - public void setUpdatedAt(String updatedAt) { - this.updatedAt = updatedAt; - } - - public UpdatedRuleResponse taskID(Integer taskID) { + public UpdatedRuleResponse setTaskID(Integer taskID) { this.taskID = taskID; return this; } @@ -68,10 +60,6 @@ public Integer getTaskID() { return taskID; } - public void setTaskID(Integer taskID) { - this.taskID = taskID; - } - @Override public boolean equals(Object o) { if (this == o) { diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UserId.java b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UserId.java index dbf67b1229..587899122b 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UserId.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/UserId.java @@ -18,7 +18,7 @@ public class UserId { @SerializedName("dataSize") private Integer dataSize; - public UserId userID(String userID) { + public UserId setUserID(String userID) { this.userID = userID; return this; } @@ -33,11 +33,7 @@ public String getUserID() { return userID; } - public void setUserID(String userID) { - this.userID = userID; - } - - public UserId clusterName(String clusterName) { + public UserId setClusterName(String clusterName) { this.clusterName = clusterName; return this; } @@ -52,11 +48,7 @@ public String getClusterName() { return clusterName; } - public void setClusterName(String clusterName) { - this.clusterName = clusterName; - } - - public UserId nbRecords(Integer nbRecords) { + public UserId setNbRecords(Integer nbRecords) { this.nbRecords = nbRecords; return this; } @@ -71,11 +63,7 @@ public Integer getNbRecords() { return nbRecords; } - public void setNbRecords(Integer nbRecords) { - this.nbRecords = nbRecords; - } - - public UserId dataSize(Integer dataSize) { + public UserId setDataSize(Integer dataSize) { this.dataSize = dataSize; return this; } @@ -90,10 +78,6 @@ public Integer getDataSize() { return dataSize; } - public void setDataSize(Integer dataSize) { - this.dataSize = dataSize; - } - @Override public boolean equals(Object o) { if (this == o) { 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 fb2c3272a7..6f79f3077f 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 @@ -83,13 +83,13 @@ private static List getDefaultHosts(String appId) { /** * Build call for addApiKey * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call addApiKeyCall( ApiKey apiKey, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = apiKey; @@ -108,13 +108,13 @@ private Call addApiKeyCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call addApiKeyValidateBeforeCall( ApiKey apiKey, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'apiKey' is set if (apiKey == null) { @@ -123,7 +123,7 @@ private Call addApiKeyValidateBeforeCall( ); } - return addApiKeyCall(apiKey, _callback); + return addApiKeyCall(apiKey, callback); } /** @@ -150,25 +150,25 @@ public AddApiKeyResponse addApiKey(ApiKey apiKey) * (asynchronously) Add a new API Key with specific permissions/restrictions. * * @param apiKey (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call addApiKeyAsync( ApiKey apiKey, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = addApiKeyValidateBeforeCall(apiKey, _callback); + Call call = addApiKeyValidateBeforeCall(apiKey, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for addOrUpdateObject * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ @@ -176,7 +176,7 @@ private Call addOrUpdateObjectCall( String indexName, String objectID, Object body, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = body; @@ -200,7 +200,7 @@ private Call addOrUpdateObjectCall( queryParams, bodyObj, headers, - _callback + callback ); } @@ -208,7 +208,7 @@ private Call addOrUpdateObjectValidateBeforeCall( String indexName, String objectID, Object body, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -231,7 +231,7 @@ private Call addOrUpdateObjectValidateBeforeCall( ); } - return addOrUpdateObjectCall(indexName, objectID, body, _callback); + return addOrUpdateObjectCall(indexName, objectID, body, callback); } /** @@ -276,7 +276,7 @@ public UpdatedAtWithObjectIdResponse addOrUpdateObject( * @param indexName The index in which to perform the request. (required) * @param objectID Unique identifier of an object. (required) * @param body The Algolia object. (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -285,30 +285,30 @@ public Call addOrUpdateObjectAsync( String indexName, String objectID, Object body, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = addOrUpdateObjectValidateBeforeCall( indexName, objectID, body, - _callback + callback ); Type returnType = new TypeToken() {} .getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for appendSource * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call appendSourceCall( Source source, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = source; @@ -327,13 +327,13 @@ private Call appendSourceCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call appendSourceValidateBeforeCall( Source source, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'source' is set if (source == null) { @@ -342,7 +342,7 @@ private Call appendSourceValidateBeforeCall( ); } - return appendSourceCall(source, _callback); + return appendSourceCall(source, callback); } /** @@ -371,32 +371,32 @@ public CreatedAtResponse appendSource(Source source) * (asynchronously) Add a single source to the list of allowed sources. * * @param source The source to add. (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call appendSourceAsync( Source source, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = appendSourceValidateBeforeCall(source, _callback); + Call call = appendSourceValidateBeforeCall(source, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for assignUserId * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call assignUserIdCall( String xAlgoliaUserID, AssignUserIdParams assignUserIdParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = assignUserIdParams; @@ -421,14 +421,14 @@ private Call assignUserIdCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call assignUserIdValidateBeforeCall( String xAlgoliaUserID, AssignUserIdParams assignUserIdParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'xAlgoliaUserID' is set if (xAlgoliaUserID == null) { @@ -444,7 +444,7 @@ private Call assignUserIdValidateBeforeCall( ); } - return assignUserIdCall(xAlgoliaUserID, assignUserIdParams, _callback); + return assignUserIdCall(xAlgoliaUserID, assignUserIdParams, callback); } /** @@ -487,7 +487,7 @@ public CreatedAtResponse assignUserId( * * @param xAlgoliaUserID userID to assign. (required) * @param assignUserIdParams (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -495,29 +495,29 @@ public CreatedAtResponse assignUserId( public Call assignUserIdAsync( String xAlgoliaUserID, AssignUserIdParams assignUserIdParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = assignUserIdValidateBeforeCall( xAlgoliaUserID, assignUserIdParams, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for batch * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call batchCall( String indexName, BatchWriteParams batchWriteParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = batchWriteParams; @@ -540,14 +540,14 @@ private Call batchCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call batchValidateBeforeCall( String indexName, BatchWriteParams batchWriteParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -563,7 +563,7 @@ private Call batchValidateBeforeCall( ); } - return batchCall(indexName, batchWriteParams, _callback); + return batchCall(indexName, batchWriteParams, callback); } /** @@ -594,7 +594,7 @@ public BatchResponse batch( * * @param indexName The index in which to perform the request. (required) * @param batchWriteParams (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -602,25 +602,25 @@ public BatchResponse batch( public Call batchAsync( String indexName, BatchWriteParams batchWriteParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = batchValidateBeforeCall(indexName, batchWriteParams, _callback); + Call call = batchValidateBeforeCall(indexName, batchWriteParams, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for batchAssignUserIds * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call batchAssignUserIdsCall( String xAlgoliaUserID, BatchAssignUserIdsParams batchAssignUserIdsParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = batchAssignUserIdsParams; @@ -645,14 +645,14 @@ private Call batchAssignUserIdsCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call batchAssignUserIdsValidateBeforeCall( String xAlgoliaUserID, BatchAssignUserIdsParams batchAssignUserIdsParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'xAlgoliaUserID' is set if (xAlgoliaUserID == null) { @@ -672,7 +672,7 @@ private Call batchAssignUserIdsValidateBeforeCall( return batchAssignUserIdsCall( xAlgoliaUserID, batchAssignUserIdsParams, - _callback + callback ); } @@ -714,7 +714,7 @@ public CreatedAtResponse batchAssignUserIds( * * @param xAlgoliaUserID userID to assign. (required) * @param batchAssignUserIdsParams (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -722,29 +722,29 @@ public CreatedAtResponse batchAssignUserIds( public Call batchAssignUserIdsAsync( String xAlgoliaUserID, BatchAssignUserIdsParams batchAssignUserIdsParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = batchAssignUserIdsValidateBeforeCall( xAlgoliaUserID, batchAssignUserIdsParams, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for batchDictionaryEntries * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call batchDictionaryEntriesCall( DictionaryType dictionaryName, BatchDictionaryEntriesParams batchDictionaryEntriesParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = batchDictionaryEntriesParams; @@ -767,14 +767,14 @@ private Call batchDictionaryEntriesCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call batchDictionaryEntriesValidateBeforeCall( DictionaryType dictionaryName, BatchDictionaryEntriesParams batchDictionaryEntriesParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'dictionaryName' is set if (dictionaryName == null) { @@ -795,7 +795,7 @@ private Call batchDictionaryEntriesValidateBeforeCall( return batchDictionaryEntriesCall( dictionaryName, batchDictionaryEntriesParams, - _callback + callback ); } @@ -833,7 +833,7 @@ public UpdatedAtResponse batchDictionaryEntries( * * @param dictionaryName The dictionary to search in. (required) * @param batchDictionaryEntriesParams (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -841,22 +841,22 @@ public UpdatedAtResponse batchDictionaryEntries( public Call batchDictionaryEntriesAsync( DictionaryType dictionaryName, BatchDictionaryEntriesParams batchDictionaryEntriesParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = batchDictionaryEntriesValidateBeforeCall( dictionaryName, batchDictionaryEntriesParams, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for batchRules * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ @@ -865,7 +865,7 @@ private Call batchRulesCall( List rule, Boolean forwardToReplicas, Boolean clearExistingRules, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = rule; @@ -900,7 +900,7 @@ private Call batchRulesCall( queryParams, bodyObj, headers, - _callback + callback ); } @@ -909,7 +909,7 @@ private Call batchRulesValidateBeforeCall( List rule, Boolean forwardToReplicas, Boolean clearExistingRules, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -930,7 +930,7 @@ private Call batchRulesValidateBeforeCall( rule, forwardToReplicas, clearExistingRules, - _callback + callback ); } @@ -983,7 +983,7 @@ public UpdatedAtResponse batchRules(String indexName, List rule) * indexName. (optional) * @param clearExistingRules When true, existing Rules are cleared before adding this batch. When * false, existing Rules are kept. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -993,31 +993,31 @@ public Call batchRulesAsync( List rule, Boolean forwardToReplicas, Boolean clearExistingRules, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = batchRulesValidateBeforeCall( indexName, rule, forwardToReplicas, clearExistingRules, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for browse * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call browseCall( String indexName, BrowseRequest browseRequest, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = browseRequest; @@ -1040,14 +1040,14 @@ private Call browseCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call browseValidateBeforeCall( String indexName, BrowseRequest browseRequest, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -1056,7 +1056,7 @@ private Call browseValidateBeforeCall( ); } - return browseCall(indexName, browseRequest, _callback); + return browseCall(indexName, browseRequest, callback); } /** @@ -1101,7 +1101,7 @@ public BrowseResponse browse(String indexName) * * @param indexName The index in which to perform the request. (required) * @param browseRequest (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -1109,25 +1109,25 @@ public BrowseResponse browse(String indexName) public Call browseAsync( String indexName, BrowseRequest browseRequest, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = browseValidateBeforeCall(indexName, browseRequest, _callback); + Call call = browseValidateBeforeCall(indexName, browseRequest, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for clearAllSynonyms * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call clearAllSynonymsCall( String indexName, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -1156,14 +1156,14 @@ private Call clearAllSynonymsCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call clearAllSynonymsValidateBeforeCall( String indexName, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -1172,7 +1172,7 @@ private Call clearAllSynonymsValidateBeforeCall( ); } - return clearAllSynonymsCall(indexName, forwardToReplicas, _callback); + return clearAllSynonymsCall(indexName, forwardToReplicas, callback); } /** @@ -1216,7 +1216,7 @@ public UpdatedAtResponse clearAllSynonyms(String indexName) * @param indexName The index in which to perform the request. (required) * @param forwardToReplicas When true, changes are also propagated to replicas of the given * indexName. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -1224,28 +1224,28 @@ public UpdatedAtResponse clearAllSynonyms(String indexName) public Call clearAllSynonymsAsync( String indexName, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = clearAllSynonymsValidateBeforeCall( indexName, forwardToReplicas, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for clearObjects * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call clearObjectsCall( String indexName, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -1268,13 +1268,13 @@ private Call clearObjectsCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call clearObjectsValidateBeforeCall( String indexName, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -1283,7 +1283,7 @@ private Call clearObjectsValidateBeforeCall( ); } - return clearObjectsCall(indexName, _callback); + return clearObjectsCall(indexName, callback); } /** @@ -1313,32 +1313,32 @@ public UpdatedAtResponse clearObjects(String indexName) * untouched. * * @param indexName The index in which to perform the request. (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call clearObjectsAsync( String indexName, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = clearObjectsValidateBeforeCall(indexName, _callback); + Call call = clearObjectsValidateBeforeCall(indexName, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for clearRules * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call clearRulesCall( String indexName, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -1367,14 +1367,14 @@ private Call clearRulesCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call clearRulesValidateBeforeCall( String indexName, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -1383,7 +1383,7 @@ private Call clearRulesValidateBeforeCall( ); } - return clearRulesCall(indexName, forwardToReplicas, _callback); + return clearRulesCall(indexName, forwardToReplicas, callback); } /** @@ -1421,7 +1421,7 @@ public UpdatedAtResponse clearRules(String indexName) * @param indexName The index in which to perform the request. (required) * @param forwardToReplicas When true, changes are also propagated to replicas of the given * indexName. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -1429,22 +1429,22 @@ public UpdatedAtResponse clearRules(String indexName) public Call clearRulesAsync( String indexName, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = clearRulesValidateBeforeCall( indexName, forwardToReplicas, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for del * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ @@ -1452,7 +1452,7 @@ private Call delCall( String path, Map parameters, Object body, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = body; @@ -1482,7 +1482,7 @@ private Call delCall( queryParams, bodyObj, headers, - _callback + callback ); } @@ -1490,7 +1490,7 @@ private Call delValidateBeforeCall( String path, Map parameters, Object body, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'path' is set if (path == null) { @@ -1499,7 +1499,7 @@ private Call delValidateBeforeCall( ); } - return delCall(path, parameters, body, _callback); + return delCall(path, parameters, body, callback); } /** @@ -1536,7 +1536,7 @@ public Object del(String path) throws AlgoliaRuntimeException { * specified. (required) * @param parameters Query parameters to be applied to the current query. (optional) * @param body The parameters to send with the custom request. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -1545,24 +1545,24 @@ public Call delAsync( String path, Map parameters, Object body, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = delValidateBeforeCall(path, parameters, body, _callback); + Call call = delValidateBeforeCall(path, parameters, body, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for deleteApiKey * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call deleteApiKeyCall( String key, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -1585,13 +1585,13 @@ private Call deleteApiKeyCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call deleteApiKeyValidateBeforeCall( String key, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'key' is set if (key == null) { @@ -1600,7 +1600,7 @@ private Call deleteApiKeyValidateBeforeCall( ); } - return deleteApiKeyCall(key, _callback); + return deleteApiKeyCall(key, callback); } /** @@ -1629,32 +1629,32 @@ public DeleteApiKeyResponse deleteApiKey(String key) * (asynchronously) Delete an existing API Key. * * @param key API Key string. (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call deleteApiKeyAsync( String key, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = deleteApiKeyValidateBeforeCall(key, _callback); + Call call = deleteApiKeyValidateBeforeCall(key, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for deleteBy * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call deleteByCall( String indexName, SearchParams searchParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = searchParams; @@ -1677,14 +1677,14 @@ private Call deleteByCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call deleteByValidateBeforeCall( String indexName, SearchParams searchParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -1700,7 +1700,7 @@ private Call deleteByValidateBeforeCall( ); } - return deleteByCall(indexName, searchParams, _callback); + return deleteByCall(indexName, searchParams, callback); } /** @@ -1735,7 +1735,7 @@ public DeletedAtResponse deleteBy( * * @param indexName The index in which to perform the request. (required) * @param searchParams (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -1743,24 +1743,24 @@ public DeletedAtResponse deleteBy( public Call deleteByAsync( String indexName, SearchParams searchParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = deleteByValidateBeforeCall(indexName, searchParams, _callback); + Call call = deleteByValidateBeforeCall(indexName, searchParams, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for deleteIndex * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call deleteIndexCall( String indexName, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -1783,13 +1783,13 @@ private Call deleteIndexCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call deleteIndexValidateBeforeCall( String indexName, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -1798,7 +1798,7 @@ private Call deleteIndexValidateBeforeCall( ); } - return deleteIndexCall(indexName, _callback); + return deleteIndexCall(indexName, callback); } /** @@ -1827,32 +1827,32 @@ public DeletedAtResponse deleteIndex(String indexName) * (asynchronously) Delete an existing index. * * @param indexName The index in which to perform the request. (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call deleteIndexAsync( String indexName, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = deleteIndexValidateBeforeCall(indexName, _callback); + Call call = deleteIndexValidateBeforeCall(indexName, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for deleteObject * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call deleteObjectCall( String indexName, String objectID, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -1876,14 +1876,14 @@ private Call deleteObjectCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call deleteObjectValidateBeforeCall( String indexName, String objectID, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -1899,7 +1899,7 @@ private Call deleteObjectValidateBeforeCall( ); } - return deleteObjectCall(indexName, objectID, _callback); + return deleteObjectCall(indexName, objectID, callback); } /** @@ -1930,7 +1930,7 @@ public DeletedAtResponse deleteObject(String indexName, String objectID) * * @param indexName The index in which to perform the request. (required) * @param objectID Unique identifier of an object. (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -1938,18 +1938,18 @@ public DeletedAtResponse deleteObject(String indexName, String objectID) public Call deleteObjectAsync( String indexName, String objectID, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = deleteObjectValidateBeforeCall(indexName, objectID, _callback); + Call call = deleteObjectValidateBeforeCall(indexName, objectID, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for deleteRule * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ @@ -1957,7 +1957,7 @@ private Call deleteRuleCall( String indexName, String objectID, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -1987,7 +1987,7 @@ private Call deleteRuleCall( queryParams, bodyObj, headers, - _callback + callback ); } @@ -1995,7 +1995,7 @@ private Call deleteRuleValidateBeforeCall( String indexName, String objectID, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -2011,7 +2011,7 @@ private Call deleteRuleValidateBeforeCall( ); } - return deleteRuleCall(indexName, objectID, forwardToReplicas, _callback); + return deleteRuleCall(indexName, objectID, forwardToReplicas, callback); } /** @@ -2057,7 +2057,7 @@ public UpdatedAtResponse deleteRule(String indexName, String objectID) * @param objectID Unique identifier of an object. (required) * @param forwardToReplicas When true, changes are also propagated to replicas of the given * indexName. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -2066,29 +2066,29 @@ public Call deleteRuleAsync( String indexName, String objectID, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = deleteRuleValidateBeforeCall( indexName, objectID, forwardToReplicas, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for deleteSource * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call deleteSourceCall( String source, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -2111,13 +2111,13 @@ private Call deleteSourceCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call deleteSourceValidateBeforeCall( String source, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'source' is set if (source == null) { @@ -2126,7 +2126,7 @@ private Call deleteSourceValidateBeforeCall( ); } - return deleteSourceCall(source, _callback); + return deleteSourceCall(source, callback); } /** @@ -2155,25 +2155,25 @@ public DeleteSourceResponse deleteSource(String source) * (asynchronously) Remove a single source from the list of allowed sources. * * @param source The IP range of the source. (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call deleteSourceAsync( String source, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = deleteSourceValidateBeforeCall(source, _callback); + Call call = deleteSourceValidateBeforeCall(source, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for deleteSynonym * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ @@ -2181,7 +2181,7 @@ private Call deleteSynonymCall( String indexName, String objectID, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -2211,7 +2211,7 @@ private Call deleteSynonymCall( queryParams, bodyObj, headers, - _callback + callback ); } @@ -2219,7 +2219,7 @@ private Call deleteSynonymValidateBeforeCall( String indexName, String objectID, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -2235,7 +2235,7 @@ private Call deleteSynonymValidateBeforeCall( ); } - return deleteSynonymCall(indexName, objectID, forwardToReplicas, _callback); + return deleteSynonymCall(indexName, objectID, forwardToReplicas, callback); } /** @@ -2283,7 +2283,7 @@ public DeletedAtResponse deleteSynonym(String indexName, String objectID) * @param objectID Unique identifier of an object. (required) * @param forwardToReplicas When true, changes are also propagated to replicas of the given * indexName. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -2292,30 +2292,30 @@ public Call deleteSynonymAsync( String indexName, String objectID, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = deleteSynonymValidateBeforeCall( indexName, objectID, forwardToReplicas, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for get * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call getCall( String path, Map parameters, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -2345,14 +2345,14 @@ private Call getCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call getValidateBeforeCall( String path, Map parameters, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'path' is set if (path == null) { @@ -2361,7 +2361,7 @@ private Call getValidateBeforeCall( ); } - return getCall(path, parameters, _callback); + return getCall(path, parameters, callback); } /** @@ -2396,7 +2396,7 @@ public Object get(String path) throws AlgoliaRuntimeException { * @param path The path of the API endpoint to target, anything after the /1 needs to be * specified. (required) * @param parameters Query parameters to be applied to the current query. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -2404,22 +2404,22 @@ public Object get(String path) throws AlgoliaRuntimeException { public Call getAsync( String path, Map parameters, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = getValidateBeforeCall(path, parameters, _callback); + Call call = getValidateBeforeCall(path, parameters, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for getApiKey * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ - private Call getApiKeyCall(String key, final ApiCallback _callback) + private Call getApiKeyCall(String key, final ApiCallback callback) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -2442,13 +2442,13 @@ private Call getApiKeyCall(String key, final ApiCallback _callback) queryParams, bodyObj, headers, - _callback + callback ); } private Call getApiKeyValidateBeforeCall( String key, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'key' is set if (key == null) { @@ -2457,7 +2457,7 @@ private Call getApiKeyValidateBeforeCall( ); } - return getApiKeyCall(key, _callback); + return getApiKeyCall(key, callback); } /** @@ -2483,28 +2483,28 @@ public Key getApiKey(String key) throws AlgoliaRuntimeException { * (asynchronously) Get the permissions of an API key. * * @param key API Key string. (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ - public Call getApiKeyAsync(String key, final ApiCallback _callback) + public Call getApiKeyAsync(String key, final ApiCallback callback) throws AlgoliaRuntimeException { - Call call = getApiKeyValidateBeforeCall(key, _callback); + Call call = getApiKeyValidateBeforeCall(key, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for getDictionaryLanguages * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call getDictionaryLanguagesCall( - final ApiCallback> _callback + final ApiCallback> callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -2523,14 +2523,14 @@ private Call getDictionaryLanguagesCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call getDictionaryLanguagesValidateBeforeCall( - final ApiCallback> _callback + final ApiCallback> callback ) throws AlgoliaRuntimeException { - return getDictionaryLanguagesCall(_callback); + return getDictionaryLanguagesCall(callback); } /** @@ -2557,29 +2557,29 @@ public Map getDictionaryLanguages() /** * (asynchronously) List dictionaries supported per language. * - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call getDictionaryLanguagesAsync( - final ApiCallback> _callback + final ApiCallback> callback ) throws AlgoliaRuntimeException { - Call call = getDictionaryLanguagesValidateBeforeCall(_callback); + Call call = getDictionaryLanguagesValidateBeforeCall(callback); Type returnType = new TypeToken>() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for getDictionarySettings * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call getDictionarySettingsCall( - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -2598,14 +2598,14 @@ private Call getDictionarySettingsCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call getDictionarySettingsValidateBeforeCall( - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - return getDictionarySettingsCall(_callback); + return getDictionarySettingsCall(callback); } /** @@ -2634,25 +2634,25 @@ public GetDictionarySettingsResponse getDictionarySettings() /** * (asynchronously) Retrieve dictionaries settings. * - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call getDictionarySettingsAsync( - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = getDictionarySettingsValidateBeforeCall(_callback); + Call call = getDictionarySettingsValidateBeforeCall(callback); Type returnType = new TypeToken() {} .getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for getLogs * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ @@ -2661,7 +2661,7 @@ private Call getLogsCall( Integer length, String indexName, LogType type, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -2696,7 +2696,7 @@ private Call getLogsCall( queryParams, bodyObj, headers, - _callback + callback ); } @@ -2705,9 +2705,9 @@ private Call getLogsValidateBeforeCall( Integer length, String indexName, LogType type, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - return getLogsCall(offset, length, indexName, type, _callback); + return getLogsCall(offset, length, indexName, type, callback); } /** @@ -2756,7 +2756,7 @@ public GetLogsResponse getLogs() throws AlgoliaRuntimeException { * retrieved across all indices. (optional) * @param type Type of log entries to retrieve. When omitted, all log entries are retrieved. * (optional, default to all) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -2766,24 +2766,24 @@ public Call getLogsAsync( Integer length, String indexName, LogType type, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = getLogsValidateBeforeCall( offset, length, indexName, type, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for getObject * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ @@ -2791,7 +2791,7 @@ private Call getObjectCall( String indexName, String objectID, List attributesToRetrieve, - final ApiCallback> _callback + final ApiCallback> callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -2821,7 +2821,7 @@ private Call getObjectCall( queryParams, bodyObj, headers, - _callback + callback ); } @@ -2829,7 +2829,7 @@ private Call getObjectValidateBeforeCall( String indexName, String objectID, List attributesToRetrieve, - final ApiCallback> _callback + final ApiCallback> callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -2845,7 +2845,7 @@ private Call getObjectValidateBeforeCall( ); } - return getObjectCall(indexName, objectID, attributesToRetrieve, _callback); + return getObjectCall(indexName, objectID, attributesToRetrieve, callback); } /** @@ -2891,7 +2891,7 @@ public Map getObject(String indexName, String objectID) * @param objectID Unique identifier of an object. (required) * @param attributesToRetrieve List of attributes to retrieve. If not specified, all retrievable * attributes are returned. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -2900,29 +2900,29 @@ public Call getObjectAsync( String indexName, String objectID, List attributesToRetrieve, - final ApiCallback> _callback + final ApiCallback> callback ) throws AlgoliaRuntimeException { Call call = getObjectValidateBeforeCall( indexName, objectID, attributesToRetrieve, - _callback + callback ); Type returnType = new TypeToken>() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for getObjects * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call getObjectsCall( GetObjectsParams getObjectsParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = getObjectsParams; @@ -2941,13 +2941,13 @@ private Call getObjectsCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call getObjectsValidateBeforeCall( GetObjectsParams getObjectsParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'getObjectsParams' is set if (getObjectsParams == null) { @@ -2956,7 +2956,7 @@ private Call getObjectsValidateBeforeCall( ); } - return getObjectsCall(getObjectsParams, _callback); + return getObjectsCall(getObjectsParams, callback); } /** @@ -2984,32 +2984,32 @@ public GetObjectsResponse getObjects(GetObjectsParams getObjectsParams) * API call. * * @param getObjectsParams (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call getObjectsAsync( GetObjectsParams getObjectsParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = getObjectsValidateBeforeCall(getObjectsParams, _callback); + Call call = getObjectsValidateBeforeCall(getObjectsParams, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for getRule * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call getRuleCall( String indexName, String objectID, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -3033,14 +3033,14 @@ private Call getRuleCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call getRuleValidateBeforeCall( String indexName, String objectID, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -3056,7 +3056,7 @@ private Call getRuleValidateBeforeCall( ); } - return getRuleCall(indexName, objectID, _callback); + return getRuleCall(indexName, objectID, callback); } /** @@ -3085,7 +3085,7 @@ public Rule getRule(String indexName, String objectID) * * @param indexName The index in which to perform the request. (required) * @param objectID Unique identifier of an object. (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -3093,24 +3093,24 @@ public Rule getRule(String indexName, String objectID) public Call getRuleAsync( String indexName, String objectID, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = getRuleValidateBeforeCall(indexName, objectID, _callback); + Call call = getRuleValidateBeforeCall(indexName, objectID, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for getSettings * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call getSettingsCall( String indexName, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -3133,13 +3133,13 @@ private Call getSettingsCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call getSettingsValidateBeforeCall( String indexName, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -3148,7 +3148,7 @@ private Call getSettingsValidateBeforeCall( ); } - return getSettingsCall(indexName, _callback); + return getSettingsCall(indexName, callback); } /** @@ -3177,29 +3177,29 @@ public IndexSettings getSettings(String indexName) * (asynchronously) Retrieve settings of a given indexName. * * @param indexName The index in which to perform the request. (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call getSettingsAsync( String indexName, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = getSettingsValidateBeforeCall(indexName, _callback); + Call call = getSettingsValidateBeforeCall(indexName, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for getSources * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ - private Call getSourcesCall(final ApiCallback> _callback) + private Call getSourcesCall(final ApiCallback> callback) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -3218,14 +3218,14 @@ private Call getSourcesCall(final ApiCallback> _callback) queryParams, bodyObj, headers, - _callback + callback ); } private Call getSourcesValidateBeforeCall( - final ApiCallback> _callback + final ApiCallback> callback ) throws AlgoliaRuntimeException { - return getSourcesCall(_callback); + return getSourcesCall(callback); } /** @@ -3249,30 +3249,30 @@ public List getSources() throws AlgoliaRuntimeException { /** * (asynchronously) List all allowed sources. * - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ - public Call getSourcesAsync(final ApiCallback> _callback) + public Call getSourcesAsync(final ApiCallback> callback) throws AlgoliaRuntimeException { - Call call = getSourcesValidateBeforeCall(_callback); + Call call = getSourcesValidateBeforeCall(callback); Type returnType = new TypeToken>() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for getSynonym * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call getSynonymCall( String indexName, String objectID, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -3296,14 +3296,14 @@ private Call getSynonymCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call getSynonymValidateBeforeCall( String indexName, String objectID, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -3319,7 +3319,7 @@ private Call getSynonymValidateBeforeCall( ); } - return getSynonymCall(indexName, objectID, _callback); + return getSynonymCall(indexName, objectID, callback); } /** @@ -3348,7 +3348,7 @@ public SynonymHit getSynonym(String indexName, String objectID) * * @param indexName The index in which to perform the request. (required) * @param objectID Unique identifier of an object. (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -3356,25 +3356,25 @@ public SynonymHit getSynonym(String indexName, String objectID) public Call getSynonymAsync( String indexName, String objectID, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = getSynonymValidateBeforeCall(indexName, objectID, _callback); + Call call = getSynonymValidateBeforeCall(indexName, objectID, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for getTask * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call getTaskCall( String indexName, Integer taskID, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -3398,14 +3398,14 @@ private Call getTaskCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call getTaskValidateBeforeCall( String indexName, Integer taskID, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -3421,7 +3421,7 @@ private Call getTaskValidateBeforeCall( ); } - return getTaskCall(indexName, taskID, _callback); + return getTaskCall(indexName, taskID, callback); } /** @@ -3450,7 +3450,7 @@ public GetTaskResponse getTask(String indexName, Integer taskID) * * @param indexName The index in which to perform the request. (required) * @param taskID Unique identifier of an task. Numeric value (up to 64bits). (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -3458,23 +3458,23 @@ public GetTaskResponse getTask(String indexName, Integer taskID) public Call getTaskAsync( String indexName, Integer taskID, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = getTaskValidateBeforeCall(indexName, taskID, _callback); + Call call = getTaskValidateBeforeCall(indexName, taskID, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for getTopUserIds * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call getTopUserIdsCall( - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -3493,14 +3493,14 @@ private Call getTopUserIdsCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call getTopUserIdsValidateBeforeCall( - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - return getTopUserIdsCall(_callback); + return getTopUserIdsCall(callback); } /** @@ -3532,31 +3532,29 @@ public GetTopUserIdsResponse getTopUserIds() throws AlgoliaRuntimeException { * to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK * and contains the following array of userIDs and clusters. * - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call getTopUserIdsAsync( - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = getTopUserIdsValidateBeforeCall(_callback); + Call call = getTopUserIdsValidateBeforeCall(callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for getUserId * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ - private Call getUserIdCall( - String userID, - final ApiCallback _callback - ) throws AlgoliaRuntimeException { + private Call getUserIdCall(String userID, final ApiCallback callback) + throws AlgoliaRuntimeException { Object bodyObj = null; // create path and map variables @@ -3578,13 +3576,13 @@ private Call getUserIdCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call getUserIdValidateBeforeCall( String userID, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'userID' is set if (userID == null) { @@ -3593,7 +3591,7 @@ private Call getUserIdValidateBeforeCall( ); } - return getUserIdCall(userID, _callback); + return getUserIdCall(userID, callback); } /** @@ -3625,31 +3623,29 @@ public UserId getUserId(String userID) throws AlgoliaRuntimeException { * following userID data. * * @param userID userID to assign. (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ - public Call getUserIdAsync( - String userID, - final ApiCallback _callback - ) throws AlgoliaRuntimeException { - Call call = getUserIdValidateBeforeCall(userID, _callback); + public Call getUserIdAsync(String userID, final ApiCallback callback) + throws AlgoliaRuntimeException { + Call call = getUserIdValidateBeforeCall(userID, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for hasPendingMappings * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call hasPendingMappingsCall( Boolean getClusters, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -3672,15 +3668,15 @@ private Call hasPendingMappingsCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call hasPendingMappingsValidateBeforeCall( Boolean getClusters, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - return hasPendingMappingsCall(getClusters, _callback); + return hasPendingMappingsCall(getClusters, callback); } /** @@ -3721,31 +3717,30 @@ public CreatedAtResponse hasPendingMappings() throws AlgoliaRuntimeException { * account, and the userIDs are directly usable. * * @param getClusters Whether to get clusters or not. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call hasPendingMappingsAsync( Boolean getClusters, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = hasPendingMappingsValidateBeforeCall(getClusters, _callback); + Call call = hasPendingMappingsValidateBeforeCall(getClusters, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for listApiKeys * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ - private Call listApiKeysCall( - final ApiCallback _callback - ) throws AlgoliaRuntimeException { + private Call listApiKeysCall(final ApiCallback callback) + throws AlgoliaRuntimeException { Object bodyObj = null; // create path and map variables @@ -3763,14 +3758,14 @@ private Call listApiKeysCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call listApiKeysValidateBeforeCall( - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - return listApiKeysCall(_callback); + return listApiKeysCall(callback); } /** @@ -3796,29 +3791,28 @@ public ListApiKeysResponse listApiKeys() throws AlgoliaRuntimeException { /** * (asynchronously) List API keys, along with their associated rights. * - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ - public Call listApiKeysAsync( - final ApiCallback _callback - ) throws AlgoliaRuntimeException { - Call call = listApiKeysValidateBeforeCall(_callback); + public Call listApiKeysAsync(final ApiCallback callback) + throws AlgoliaRuntimeException { + Call call = listApiKeysValidateBeforeCall(callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for listClusters * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call listClustersCall( - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -3837,14 +3831,14 @@ private Call listClustersCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call listClustersValidateBeforeCall( - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - return listClustersCall(_callback); + return listClustersCall(callback); } /** @@ -3872,30 +3866,30 @@ public ListClustersResponse listClusters() throws AlgoliaRuntimeException { * (asynchronously) List the clusters available in a multi-clusters setup for a single appID. Upon * success, the response is 200 OK and contains the following clusters. * - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call listClustersAsync( - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = listClustersValidateBeforeCall(_callback); + Call call = listClustersValidateBeforeCall(callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for listIndices * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call listIndicesCall( Integer page, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -3918,15 +3912,15 @@ private Call listIndicesCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call listIndicesValidateBeforeCall( Integer page, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - return listIndicesCall(page, _callback); + return listIndicesCall(page, callback); } /** @@ -3963,32 +3957,32 @@ public ListIndicesResponse listIndices() throws AlgoliaRuntimeException { * @param page Requested page (zero-based). When specified, will retrieve a specific page; the * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). * (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call listIndicesAsync( Integer page, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = listIndicesValidateBeforeCall(page, _callback); + Call call = listIndicesValidateBeforeCall(page, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for listUserIds * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call listUserIdsCall( Integer page, Integer hitsPerPage, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -4015,16 +4009,16 @@ private Call listUserIdsCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call listUserIdsValidateBeforeCall( Integer page, Integer hitsPerPage, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - return listUserIdsCall(page, hitsPerPage, _callback); + return listUserIdsCall(page, hitsPerPage, callback); } /** @@ -4069,7 +4063,7 @@ public ListUserIdsResponse listUserIds() throws AlgoliaRuntimeException { * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). * (optional) * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -4077,24 +4071,24 @@ public ListUserIdsResponse listUserIds() throws AlgoliaRuntimeException { public Call listUserIdsAsync( Integer page, Integer hitsPerPage, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = listUserIdsValidateBeforeCall(page, hitsPerPage, _callback); + Call call = listUserIdsValidateBeforeCall(page, hitsPerPage, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for multipleBatch * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call multipleBatchCall( BatchParams batchParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = batchParams; @@ -4113,13 +4107,13 @@ private Call multipleBatchCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call multipleBatchValidateBeforeCall( BatchParams batchParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'batchParams' is set if (batchParams == null) { @@ -4128,7 +4122,7 @@ private Call multipleBatchValidateBeforeCall( ); } - return multipleBatchCall(batchParams, _callback); + return multipleBatchCall(batchParams, callback); } /** @@ -4159,31 +4153,31 @@ public MultipleBatchResponse multipleBatch(BatchParams batchParams) * a single API call. * * @param batchParams (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call multipleBatchAsync( BatchParams batchParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = multipleBatchValidateBeforeCall(batchParams, _callback); + Call call = multipleBatchValidateBeforeCall(batchParams, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for multipleQueries * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call multipleQueriesCall( MultipleQueriesParams multipleQueriesParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = multipleQueriesParams; @@ -4202,13 +4196,13 @@ private Call multipleQueriesCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call multipleQueriesValidateBeforeCall( MultipleQueriesParams multipleQueriesParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'multipleQueriesParams' is set if (multipleQueriesParams == null) { @@ -4218,7 +4212,7 @@ private Call multipleQueriesValidateBeforeCall( ); } - return multipleQueriesCall(multipleQueriesParams, _callback); + return multipleQueriesCall(multipleQueriesParams, callback); } /** @@ -4248,35 +4242,35 @@ public MultipleQueriesResponse multipleQueries( * (asynchronously) Get search results for the given requests. * * @param multipleQueriesParams (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call multipleQueriesAsync( MultipleQueriesParams multipleQueriesParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = multipleQueriesValidateBeforeCall( multipleQueriesParams, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for operationIndex * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call operationIndexCall( String indexName, OperationIndexParams operationIndexParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = operationIndexParams; @@ -4299,14 +4293,14 @@ private Call operationIndexCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call operationIndexValidateBeforeCall( String indexName, OperationIndexParams operationIndexParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -4323,7 +4317,7 @@ private Call operationIndexValidateBeforeCall( ); } - return operationIndexCall(indexName, operationIndexParams, _callback); + return operationIndexCall(indexName, operationIndexParams, callback); } /** @@ -4360,7 +4354,7 @@ public UpdatedAtResponse operationIndex( * * @param indexName The index in which to perform the request. (required) * @param operationIndexParams (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -4368,22 +4362,22 @@ public UpdatedAtResponse operationIndex( public Call operationIndexAsync( String indexName, OperationIndexParams operationIndexParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = operationIndexValidateBeforeCall( indexName, operationIndexParams, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for partialUpdateObject * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ @@ -4392,7 +4386,7 @@ private Call partialUpdateObjectCall( String objectID, List> attributeOrBuiltInOperation, Boolean createIfNotExists, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = attributeOrBuiltInOperation; @@ -4422,7 +4416,7 @@ private Call partialUpdateObjectCall( queryParams, bodyObj, headers, - _callback + callback ); } @@ -4431,7 +4425,7 @@ private Call partialUpdateObjectValidateBeforeCall( String objectID, List> attributeOrBuiltInOperation, Boolean createIfNotExists, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -4460,7 +4454,7 @@ private Call partialUpdateObjectValidateBeforeCall( objectID, attributeOrBuiltInOperation, createIfNotExists, - _callback + callback ); } @@ -4529,7 +4523,7 @@ public UpdatedAtWithObjectIdResponse partialUpdateObject( * @param attributeOrBuiltInOperation List of attributes to update. (required) * @param createIfNotExists Creates the record if it does not exist yet. (optional, default to * true) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -4539,25 +4533,25 @@ public Call partialUpdateObjectAsync( String objectID, List> attributeOrBuiltInOperation, Boolean createIfNotExists, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = partialUpdateObjectValidateBeforeCall( indexName, objectID, attributeOrBuiltInOperation, createIfNotExists, - _callback + callback ); Type returnType = new TypeToken() {} .getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for post * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ @@ -4565,7 +4559,7 @@ private Call postCall( String path, Map parameters, Object body, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = body; @@ -4595,7 +4589,7 @@ private Call postCall( queryParams, bodyObj, headers, - _callback + callback ); } @@ -4603,7 +4597,7 @@ private Call postValidateBeforeCall( String path, Map parameters, Object body, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'path' is set if (path == null) { @@ -4612,7 +4606,7 @@ private Call postValidateBeforeCall( ); } - return postCall(path, parameters, body, _callback); + return postCall(path, parameters, body, callback); } /** @@ -4649,7 +4643,7 @@ public Object post(String path) throws AlgoliaRuntimeException { * specified. (required) * @param parameters Query parameters to be applied to the current query. (optional) * @param body The parameters to send with the custom request. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -4658,18 +4652,18 @@ public Call postAsync( String path, Map parameters, Object body, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = postValidateBeforeCall(path, parameters, body, _callback); + Call call = postValidateBeforeCall(path, parameters, body, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for put * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ @@ -4677,7 +4671,7 @@ private Call putCall( String path, Map parameters, Object body, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = body; @@ -4707,7 +4701,7 @@ private Call putCall( queryParams, bodyObj, headers, - _callback + callback ); } @@ -4715,7 +4709,7 @@ private Call putValidateBeforeCall( String path, Map parameters, Object body, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'path' is set if (path == null) { @@ -4724,7 +4718,7 @@ private Call putValidateBeforeCall( ); } - return putCall(path, parameters, body, _callback); + return putCall(path, parameters, body, callback); } /** @@ -4761,7 +4755,7 @@ public Object put(String path) throws AlgoliaRuntimeException { * specified. (required) * @param parameters Query parameters to be applied to the current query. (optional) * @param body The parameters to send with the custom request. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -4770,24 +4764,24 @@ public Call putAsync( String path, Map parameters, Object body, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = putValidateBeforeCall(path, parameters, body, _callback); + Call call = putValidateBeforeCall(path, parameters, body, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for removeUserId * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call removeUserIdCall( String userID, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -4810,13 +4804,13 @@ private Call removeUserIdCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call removeUserIdValidateBeforeCall( String userID, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'userID' is set if (userID == null) { @@ -4825,7 +4819,7 @@ private Call removeUserIdValidateBeforeCall( ); } - return removeUserIdCall(userID, _callback); + return removeUserIdCall(userID, callback); } /** @@ -4856,31 +4850,31 @@ public RemoveUserIdResponse removeUserId(String userID) * the response is 200 OK and a task is created to remove the userID data and mapping. * * @param userID userID to assign. (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call removeUserIdAsync( String userID, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = removeUserIdValidateBeforeCall(userID, _callback); + Call call = removeUserIdValidateBeforeCall(userID, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for replaceSources * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call replaceSourcesCall( List source, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = source; @@ -4899,13 +4893,13 @@ private Call replaceSourcesCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call replaceSourcesValidateBeforeCall( List source, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'source' is set if (source == null) { @@ -4914,7 +4908,7 @@ private Call replaceSourcesValidateBeforeCall( ); } - return replaceSourcesCall(source, _callback); + return replaceSourcesCall(source, callback); } /** @@ -4943,31 +4937,31 @@ public ReplaceSourceResponse replaceSources(List source) * (asynchronously) Replace all allowed sources. * * @param source The sources to allow. (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call replaceSourcesAsync( List source, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = replaceSourcesValidateBeforeCall(source, _callback); + Call call = replaceSourcesValidateBeforeCall(source, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for restoreApiKey * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call restoreApiKeyCall( String key, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -4990,13 +4984,13 @@ private Call restoreApiKeyCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call restoreApiKeyValidateBeforeCall( String key, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'key' is set if (key == null) { @@ -5005,7 +4999,7 @@ private Call restoreApiKeyValidateBeforeCall( ); } - return restoreApiKeyCall(key, _callback); + return restoreApiKeyCall(key, callback); } /** @@ -5034,32 +5028,32 @@ public AddApiKeyResponse restoreApiKey(String key) * (asynchronously) Restore a deleted API key, along with its associated rights. * * @param key API Key string. (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call restoreApiKeyAsync( String key, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = restoreApiKeyValidateBeforeCall(key, _callback); + Call call = restoreApiKeyValidateBeforeCall(key, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for saveObject * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call saveObjectCall( String indexName, Object body, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = body; @@ -5082,14 +5076,14 @@ private Call saveObjectCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call saveObjectValidateBeforeCall( String indexName, Object body, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -5105,7 +5099,7 @@ private Call saveObjectValidateBeforeCall( ); } - return saveObjectCall(indexName, body, _callback); + return saveObjectCall(indexName, body, callback); } /** @@ -5134,7 +5128,7 @@ public SaveObjectResponse saveObject(String indexName, Object body) * * @param indexName The index in which to perform the request. (required) * @param body The Algolia record. (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -5142,18 +5136,18 @@ public SaveObjectResponse saveObject(String indexName, Object body) public Call saveObjectAsync( String indexName, Object body, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = saveObjectValidateBeforeCall(indexName, body, _callback); + Call call = saveObjectValidateBeforeCall(indexName, body, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for saveRule * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ @@ -5162,7 +5156,7 @@ private Call saveRuleCall( String objectID, Rule rule, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = rule; @@ -5192,7 +5186,7 @@ private Call saveRuleCall( queryParams, bodyObj, headers, - _callback + callback ); } @@ -5201,7 +5195,7 @@ private Call saveRuleValidateBeforeCall( String objectID, Rule rule, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -5224,13 +5218,7 @@ private Call saveRuleValidateBeforeCall( ); } - return saveRuleCall( - indexName, - objectID, - rule, - forwardToReplicas, - _callback - ); + return saveRuleCall(indexName, objectID, rule, forwardToReplicas, callback); } /** @@ -5283,7 +5271,7 @@ public UpdatedRuleResponse saveRule( * @param rule (required) * @param forwardToReplicas When true, changes are also propagated to replicas of the given * indexName. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -5293,24 +5281,24 @@ public Call saveRuleAsync( String objectID, Rule rule, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = saveRuleValidateBeforeCall( indexName, objectID, rule, forwardToReplicas, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for saveSynonym * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ @@ -5319,7 +5307,7 @@ private Call saveSynonymCall( String objectID, SynonymHit synonymHit, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = synonymHit; @@ -5349,7 +5337,7 @@ private Call saveSynonymCall( queryParams, bodyObj, headers, - _callback + callback ); } @@ -5358,7 +5346,7 @@ private Call saveSynonymValidateBeforeCall( String objectID, SynonymHit synonymHit, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -5386,7 +5374,7 @@ private Call saveSynonymValidateBeforeCall( objectID, synonymHit, forwardToReplicas, - _callback + callback ); } @@ -5443,7 +5431,7 @@ public SaveSynonymResponse saveSynonym( * @param synonymHit (required) * @param forwardToReplicas When true, changes are also propagated to replicas of the given * indexName. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -5453,24 +5441,24 @@ public Call saveSynonymAsync( String objectID, SynonymHit synonymHit, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = saveSynonymValidateBeforeCall( indexName, objectID, synonymHit, forwardToReplicas, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for saveSynonyms * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ @@ -5479,7 +5467,7 @@ private Call saveSynonymsCall( List synonymHit, Boolean forwardToReplicas, Boolean replaceExistingSynonyms, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = synonymHit; @@ -5514,7 +5502,7 @@ private Call saveSynonymsCall( queryParams, bodyObj, headers, - _callback + callback ); } @@ -5523,7 +5511,7 @@ private Call saveSynonymsValidateBeforeCall( List synonymHit, Boolean forwardToReplicas, Boolean replaceExistingSynonyms, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -5544,7 +5532,7 @@ private Call saveSynonymsValidateBeforeCall( synonymHit, forwardToReplicas, replaceExistingSynonyms, - _callback + callback ); } @@ -5603,7 +5591,7 @@ public UpdatedAtResponse saveSynonyms( * indexName. (optional) * @param replaceExistingSynonyms Replace all synonyms of the index with the ones sent with this * request. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -5613,31 +5601,31 @@ public Call saveSynonymsAsync( List synonymHit, Boolean forwardToReplicas, Boolean replaceExistingSynonyms, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = saveSynonymsValidateBeforeCall( indexName, synonymHit, forwardToReplicas, replaceExistingSynonyms, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for search * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call searchCall( String indexName, SearchParams searchParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = searchParams; @@ -5660,14 +5648,14 @@ private Call searchCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call searchValidateBeforeCall( String indexName, SearchParams searchParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -5683,7 +5671,7 @@ private Call searchValidateBeforeCall( ); } - return searchCall(indexName, searchParams, _callback); + return searchCall(indexName, searchParams, callback); } /** @@ -5712,7 +5700,7 @@ public SearchResponse search(String indexName, SearchParams searchParams) * * @param indexName The index in which to perform the request. (required) * @param searchParams (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -5720,25 +5708,25 @@ public SearchResponse search(String indexName, SearchParams searchParams) public Call searchAsync( String indexName, SearchParams searchParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = searchValidateBeforeCall(indexName, searchParams, _callback); + Call call = searchValidateBeforeCall(indexName, searchParams, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for searchDictionaryEntries * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call searchDictionaryEntriesCall( DictionaryType dictionaryName, SearchDictionaryEntriesParams searchDictionaryEntriesParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = searchDictionaryEntriesParams; @@ -5761,14 +5749,14 @@ private Call searchDictionaryEntriesCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call searchDictionaryEntriesValidateBeforeCall( DictionaryType dictionaryName, SearchDictionaryEntriesParams searchDictionaryEntriesParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'dictionaryName' is set if (dictionaryName == null) { @@ -5789,7 +5777,7 @@ private Call searchDictionaryEntriesValidateBeforeCall( return searchDictionaryEntriesCall( dictionaryName, searchDictionaryEntriesParams, - _callback + callback ); } @@ -5827,7 +5815,7 @@ public UpdatedAtResponse searchDictionaryEntries( * * @param dictionaryName The dictionary to search in. (required) * @param searchDictionaryEntriesParams (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -5835,22 +5823,22 @@ public UpdatedAtResponse searchDictionaryEntries( public Call searchDictionaryEntriesAsync( DictionaryType dictionaryName, SearchDictionaryEntriesParams searchDictionaryEntriesParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = searchDictionaryEntriesValidateBeforeCall( dictionaryName, searchDictionaryEntriesParams, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for searchForFacetValues * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ @@ -5858,7 +5846,7 @@ private Call searchForFacetValuesCall( String indexName, String facetName, SearchForFacetValuesRequest searchForFacetValuesRequest, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = searchForFacetValuesRequest; @@ -5882,7 +5870,7 @@ private Call searchForFacetValuesCall( queryParams, bodyObj, headers, - _callback + callback ); } @@ -5890,7 +5878,7 @@ private Call searchForFacetValuesValidateBeforeCall( String indexName, String facetName, SearchForFacetValuesRequest searchForFacetValuesRequest, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -5910,7 +5898,7 @@ private Call searchForFacetValuesValidateBeforeCall( indexName, facetName, searchForFacetValuesRequest, - _callback + callback ); } @@ -5963,7 +5951,7 @@ public SearchForFacetValuesResponse searchForFacetValues( * @param indexName The index in which to perform the request. (required) * @param facetName The facet name. (required) * @param searchForFacetValuesRequest (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -5972,31 +5960,31 @@ public Call searchForFacetValuesAsync( String indexName, String facetName, SearchForFacetValuesRequest searchForFacetValuesRequest, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = searchForFacetValuesValidateBeforeCall( indexName, facetName, searchForFacetValuesRequest, - _callback + callback ); Type returnType = new TypeToken() {} .getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for searchRules * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call searchRulesCall( String indexName, SearchRulesParams searchRulesParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = searchRulesParams; @@ -6019,14 +6007,14 @@ private Call searchRulesCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call searchRulesValidateBeforeCall( String indexName, SearchRulesParams searchRulesParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -6042,7 +6030,7 @@ private Call searchRulesValidateBeforeCall( ); } - return searchRulesCall(indexName, searchRulesParams, _callback); + return searchRulesCall(indexName, searchRulesParams, callback); } /** @@ -6079,7 +6067,7 @@ public SearchRulesResponse searchRules( * * @param indexName The index in which to perform the request. (required) * @param searchRulesParams (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -6087,22 +6075,22 @@ public SearchRulesResponse searchRules( public Call searchRulesAsync( String indexName, SearchRulesParams searchRulesParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = searchRulesValidateBeforeCall( indexName, searchRulesParams, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for searchSynonyms * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ @@ -6112,7 +6100,7 @@ private Call searchSynonymsCall( SynonymType type, Integer page, Integer hitsPerPage, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = null; @@ -6151,7 +6139,7 @@ private Call searchSynonymsCall( queryParams, bodyObj, headers, - _callback + callback ); } @@ -6161,7 +6149,7 @@ private Call searchSynonymsValidateBeforeCall( SynonymType type, Integer page, Integer hitsPerPage, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -6176,7 +6164,7 @@ private Call searchSynonymsValidateBeforeCall( type, page, hitsPerPage, - _callback + callback ); } @@ -6235,7 +6223,7 @@ public SearchSynonymsResponse searchSynonyms(String indexName) * page size is implicitly set to 100. When null, will retrieve all indices (no pagination). * (optional, default to 0) * @param hitsPerPage Maximum number of objects to retrieve. (optional, default to 100) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -6246,7 +6234,7 @@ public Call searchSynonymsAsync( SynonymType type, Integer page, Integer hitsPerPage, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = searchSynonymsValidateBeforeCall( indexName, @@ -6254,23 +6242,23 @@ public Call searchSynonymsAsync( type, page, hitsPerPage, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for searchUserIds * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call searchUserIdsCall( SearchUserIdsParams searchUserIdsParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = searchUserIdsParams; @@ -6289,13 +6277,13 @@ private Call searchUserIdsCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call searchUserIdsValidateBeforeCall( SearchUserIdsParams searchUserIdsParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'searchUserIdsParams' is set if (searchUserIdsParams == null) { @@ -6304,7 +6292,7 @@ private Call searchUserIdsValidateBeforeCall( ); } - return searchUserIdsCall(searchUserIdsParams, _callback); + return searchUserIdsCall(searchUserIdsParams, callback); } /** @@ -6346,31 +6334,31 @@ public SearchUserIdsResponse searchUserIds( * every 12h. Upon success, the response is 200 OK and contains the following userIDs data. * * @param searchUserIdsParams (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call searchUserIdsAsync( SearchUserIdsParams searchUserIdsParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = searchUserIdsValidateBeforeCall(searchUserIdsParams, _callback); + Call call = searchUserIdsValidateBeforeCall(searchUserIdsParams, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for setDictionarySettings * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call setDictionarySettingsCall( DictionarySettingsParams dictionarySettingsParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = dictionarySettingsParams; @@ -6389,13 +6377,13 @@ private Call setDictionarySettingsCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call setDictionarySettingsValidateBeforeCall( DictionarySettingsParams dictionarySettingsParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'dictionarySettingsParams' is set if (dictionarySettingsParams == null) { @@ -6405,7 +6393,7 @@ private Call setDictionarySettingsValidateBeforeCall( ); } - return setDictionarySettingsCall(dictionarySettingsParams, _callback); + return setDictionarySettingsCall(dictionarySettingsParams, callback); } /** @@ -6438,28 +6426,28 @@ public UpdatedAtResponse setDictionarySettings( * (asynchronously) Set dictionary settings. * * @param dictionarySettingsParams (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object */ public Call setDictionarySettingsAsync( DictionarySettingsParams dictionarySettingsParams, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = setDictionarySettingsValidateBeforeCall( dictionarySettingsParams, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for setSettings * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ @@ -6467,7 +6455,7 @@ private Call setSettingsCall( String indexName, IndexSettings indexSettings, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = indexSettings; @@ -6496,7 +6484,7 @@ private Call setSettingsCall( queryParams, bodyObj, headers, - _callback + callback ); } @@ -6504,7 +6492,7 @@ private Call setSettingsValidateBeforeCall( String indexName, IndexSettings indexSettings, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'indexName' is set if (indexName == null) { @@ -6524,7 +6512,7 @@ private Call setSettingsValidateBeforeCall( indexName, indexSettings, forwardToReplicas, - _callback + callback ); } @@ -6578,7 +6566,7 @@ public UpdatedAtResponse setSettings( * @param indexSettings (required) * @param forwardToReplicas When true, changes are also propagated to replicas of the given * indexName. (optional) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -6587,30 +6575,30 @@ public Call setSettingsAsync( String indexName, IndexSettings indexSettings, Boolean forwardToReplicas, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Call call = setSettingsValidateBeforeCall( indexName, indexSettings, forwardToReplicas, - _callback + callback ); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } /** * Build call for updateApiKey * - * @param _callback Callback for upload/download progress + * @param callback Callback for upload/download progress * @return Call to execute * @throws AlgoliaRuntimeException If fail to serialize the request body object */ private Call updateApiKeyCall( String key, ApiKey apiKey, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { Object bodyObj = apiKey; @@ -6633,14 +6621,14 @@ private Call updateApiKeyCall( queryParams, bodyObj, headers, - _callback + callback ); } private Call updateApiKeyValidateBeforeCall( String key, ApiKey apiKey, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { // verify the required parameter 'key' is set if (key == null) { @@ -6656,7 +6644,7 @@ private Call updateApiKeyValidateBeforeCall( ); } - return updateApiKeyCall(key, apiKey, _callback); + return updateApiKeyCall(key, apiKey, callback); } /** @@ -6687,7 +6675,7 @@ public UpdateApiKeyResponse updateApiKey(String key, ApiKey apiKey) * * @param key API Key string. (required) * @param apiKey (required) - * @param _callback The callback to be executed when the API call finishes + * @param callback The callback to be executed when the API call finishes * @return The request call * @throws AlgoliaRuntimeException If fail to process the API call, e.g. serializing the request * body object @@ -6695,11 +6683,11 @@ public UpdateApiKeyResponse updateApiKey(String key, ApiKey apiKey) public Call updateApiKeyAsync( String key, ApiKey apiKey, - final ApiCallback _callback + final ApiCallback callback ) throws AlgoliaRuntimeException { - Call call = updateApiKeyValidateBeforeCall(key, apiKey, _callback); + Call call = updateApiKeyValidateBeforeCall(key, apiKey, callback); Type returnType = new TypeToken() {}.getType(); - this.executeAsync(call, returnType, _callback); + this.executeAsync(call, returnType, callback); return call; } } diff --git a/clients/algoliasearch-client-java-2/build.gradle b/clients/algoliasearch-client-java-2/build.gradle index 6649f26175..763e609d76 100644 --- a/clients/algoliasearch-client-java-2/build.gradle +++ b/clients/algoliasearch-client-java-2/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'java' + id 'java-library' id 'maven-publish' } @@ -14,9 +14,9 @@ repositories { dependencies { implementation 'com.google.code.findbugs:jsr305:3.0.2' - implementation 'com.squareup.okhttp3:okhttp:4.9.1' + api 'com.squareup.okhttp3:okhttp:4.9.1' implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1' - implementation 'com.google.code.gson:gson:2.8.9' + api 'com.google.code.gson:gson:2.8.9' implementation 'io.gsonfire:gson-fire:1.8.5' }