Skip to content

Commit eb21796

Browse files
chore: generated code for commit 07c169f. [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 07c169f commit eb21796

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+551
-78
lines changed

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/recommend/BaseSearchResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public BaseSearchResponse setExhaustiveTypo(Boolean exhaustiveTypo) {
190190
*
191191
* @return exhaustiveTypo
192192
*/
193-
@javax.annotation.Nonnull
193+
@javax.annotation.Nullable
194194
public Boolean getExhaustiveTypo() {
195195
return exhaustiveTypo;
196196
}

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/recommend/IndexSettingsAsSearchParams.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ public class IndexSettingsAsSearchParams {
116116
@JsonProperty("distinct")
117117
private Distinct distinct;
118118

119+
@JsonProperty("attributeForDistinct")
120+
private String attributeForDistinct;
121+
119122
@JsonProperty("synonyms")
120123
private Boolean synonyms;
121124

@@ -779,6 +782,21 @@ public Distinct getDistinct() {
779782
return distinct;
780783
}
781784

785+
public IndexSettingsAsSearchParams setAttributeForDistinct(String attributeForDistinct) {
786+
this.attributeForDistinct = attributeForDistinct;
787+
return this;
788+
}
789+
790+
/**
791+
* Name of the de-duplication attribute to be used with the distinct feature.
792+
*
793+
* @return attributeForDistinct
794+
*/
795+
@javax.annotation.Nullable
796+
public String getAttributeForDistinct() {
797+
return attributeForDistinct;
798+
}
799+
782800
public IndexSettingsAsSearchParams setSynonyms(Boolean synonyms) {
783801
this.synonyms = synonyms;
784802
return this;
@@ -941,6 +959,7 @@ public boolean equals(Object o) {
941959
Objects.equals(this.alternativesAsExact, indexSettingsAsSearchParams.alternativesAsExact) &&
942960
Objects.equals(this.advancedSyntaxFeatures, indexSettingsAsSearchParams.advancedSyntaxFeatures) &&
943961
Objects.equals(this.distinct, indexSettingsAsSearchParams.distinct) &&
962+
Objects.equals(this.attributeForDistinct, indexSettingsAsSearchParams.attributeForDistinct) &&
944963
Objects.equals(this.synonyms, indexSettingsAsSearchParams.synonyms) &&
945964
Objects.equals(this.replaceSynonymsInHighlight, indexSettingsAsSearchParams.replaceSynonymsInHighlight) &&
946965
Objects.equals(this.minProximity, indexSettingsAsSearchParams.minProximity) &&
@@ -989,6 +1008,7 @@ public int hashCode() {
9891008
alternativesAsExact,
9901009
advancedSyntaxFeatures,
9911010
distinct,
1011+
attributeForDistinct,
9921012
synonyms,
9931013
replaceSynonymsInHighlight,
9941014
minProximity,
@@ -1038,6 +1058,7 @@ public String toString() {
10381058
sb.append(" alternativesAsExact: ").append(toIndentedString(alternativesAsExact)).append("\n");
10391059
sb.append(" advancedSyntaxFeatures: ").append(toIndentedString(advancedSyntaxFeatures)).append("\n");
10401060
sb.append(" distinct: ").append(toIndentedString(distinct)).append("\n");
1061+
sb.append(" attributeForDistinct: ").append(toIndentedString(attributeForDistinct)).append("\n");
10411062
sb.append(" synonyms: ").append(toIndentedString(synonyms)).append("\n");
10421063
sb.append(" replaceSynonymsInHighlight: ").append(toIndentedString(replaceSynonymsInHighlight)).append("\n");
10431064
sb.append(" minProximity: ").append(toIndentedString(minProximity)).append("\n");

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/recommend/RecommendationsResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public RecommendationsResponse setExhaustiveTypo(Boolean exhaustiveTypo) {
195195
*
196196
* @return exhaustiveTypo
197197
*/
198-
@javax.annotation.Nonnull
198+
@javax.annotation.Nullable
199199
public Boolean getExhaustiveTypo() {
200200
return exhaustiveTypo;
201201
}

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/recommend/SearchParamsObject.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ public class SearchParamsObject {
218218
@JsonProperty("distinct")
219219
private Distinct distinct;
220220

221+
@JsonProperty("attributeForDistinct")
222+
private String attributeForDistinct;
223+
221224
@JsonProperty("synonyms")
222225
private Boolean synonyms;
223226

@@ -1445,6 +1448,21 @@ public Distinct getDistinct() {
14451448
return distinct;
14461449
}
14471450

1451+
public SearchParamsObject setAttributeForDistinct(String attributeForDistinct) {
1452+
this.attributeForDistinct = attributeForDistinct;
1453+
return this;
1454+
}
1455+
1456+
/**
1457+
* Name of the de-duplication attribute to be used with the distinct feature.
1458+
*
1459+
* @return attributeForDistinct
1460+
*/
1461+
@javax.annotation.Nullable
1462+
public String getAttributeForDistinct() {
1463+
return attributeForDistinct;
1464+
}
1465+
14481466
public SearchParamsObject setSynonyms(Boolean synonyms) {
14491467
this.synonyms = synonyms;
14501468
return this;
@@ -1641,6 +1659,7 @@ public boolean equals(Object o) {
16411659
Objects.equals(this.alternativesAsExact, searchParamsObject.alternativesAsExact) &&
16421660
Objects.equals(this.advancedSyntaxFeatures, searchParamsObject.advancedSyntaxFeatures) &&
16431661
Objects.equals(this.distinct, searchParamsObject.distinct) &&
1662+
Objects.equals(this.attributeForDistinct, searchParamsObject.attributeForDistinct) &&
16441663
Objects.equals(this.synonyms, searchParamsObject.synonyms) &&
16451664
Objects.equals(this.replaceSynonymsInHighlight, searchParamsObject.replaceSynonymsInHighlight) &&
16461665
Objects.equals(this.minProximity, searchParamsObject.minProximity) &&
@@ -1723,6 +1742,7 @@ public int hashCode() {
17231742
alternativesAsExact,
17241743
advancedSyntaxFeatures,
17251744
distinct,
1745+
attributeForDistinct,
17261746
synonyms,
17271747
replaceSynonymsInHighlight,
17281748
minProximity,
@@ -1806,6 +1826,7 @@ public String toString() {
18061826
sb.append(" alternativesAsExact: ").append(toIndentedString(alternativesAsExact)).append("\n");
18071827
sb.append(" advancedSyntaxFeatures: ").append(toIndentedString(advancedSyntaxFeatures)).append("\n");
18081828
sb.append(" distinct: ").append(toIndentedString(distinct)).append("\n");
1829+
sb.append(" attributeForDistinct: ").append(toIndentedString(attributeForDistinct)).append("\n");
18091830
sb.append(" synonyms: ").append(toIndentedString(synonyms)).append("\n");
18101831
sb.append(" replaceSynonymsInHighlight: ").append(toIndentedString(replaceSynonymsInHighlight)).append("\n");
18111832
sb.append(" minProximity: ").append(toIndentedString(minProximity)).append("\n");

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/search/BaseBrowseResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public BaseBrowseResponse setCursor(String cursor) {
2323
*
2424
* @return cursor
2525
*/
26-
@javax.annotation.Nonnull
26+
@javax.annotation.Nullable
2727
public String getCursor() {
2828
return cursor;
2929
}

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/search/BaseSearchResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public BaseSearchResponse setExhaustiveTypo(Boolean exhaustiveTypo) {
190190
*
191191
* @return exhaustiveTypo
192192
*/
193-
@javax.annotation.Nonnull
193+
@javax.annotation.Nullable
194194
public Boolean getExhaustiveTypo() {
195195
return exhaustiveTypo;
196196
}

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/search/BrowseResponse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public BrowseResponse setExhaustiveTypo(Boolean exhaustiveTypo) {
198198
*
199199
* @return exhaustiveTypo
200200
*/
201-
@javax.annotation.Nonnull
201+
@javax.annotation.Nullable
202202
public Boolean getExhaustiveTypo() {
203203
return exhaustiveTypo;
204204
}
@@ -522,7 +522,7 @@ public BrowseResponse setCursor(String cursor) {
522522
*
523523
* @return cursor
524524
*/
525-
@javax.annotation.Nonnull
525+
@javax.annotation.Nullable
526526
public String getCursor() {
527527
return cursor;
528528
}

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/search/ConsequenceParams.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ public class ConsequenceParams {
215215
@JsonProperty("distinct")
216216
private Distinct distinct;
217217

218+
@JsonProperty("attributeForDistinct")
219+
private String attributeForDistinct;
220+
218221
@JsonProperty("synonyms")
219222
private Boolean synonyms;
220223

@@ -1436,6 +1439,21 @@ public Distinct getDistinct() {
14361439
return distinct;
14371440
}
14381441

1442+
public ConsequenceParams setAttributeForDistinct(String attributeForDistinct) {
1443+
this.attributeForDistinct = attributeForDistinct;
1444+
return this;
1445+
}
1446+
1447+
/**
1448+
* Name of the de-duplication attribute to be used with the distinct feature.
1449+
*
1450+
* @return attributeForDistinct
1451+
*/
1452+
@javax.annotation.Nullable
1453+
public String getAttributeForDistinct() {
1454+
return attributeForDistinct;
1455+
}
1456+
14391457
public ConsequenceParams setSynonyms(Boolean synonyms) {
14401458
this.synonyms = synonyms;
14411459
return this;
@@ -1676,6 +1694,7 @@ public boolean equals(Object o) {
16761694
Objects.equals(this.alternativesAsExact, consequenceParams.alternativesAsExact) &&
16771695
Objects.equals(this.advancedSyntaxFeatures, consequenceParams.advancedSyntaxFeatures) &&
16781696
Objects.equals(this.distinct, consequenceParams.distinct) &&
1697+
Objects.equals(this.attributeForDistinct, consequenceParams.attributeForDistinct) &&
16791698
Objects.equals(this.synonyms, consequenceParams.synonyms) &&
16801699
Objects.equals(this.replaceSynonymsInHighlight, consequenceParams.replaceSynonymsInHighlight) &&
16811700
Objects.equals(this.minProximity, consequenceParams.minProximity) &&
@@ -1760,6 +1779,7 @@ public int hashCode() {
17601779
alternativesAsExact,
17611780
advancedSyntaxFeatures,
17621781
distinct,
1782+
attributeForDistinct,
17631783
synonyms,
17641784
replaceSynonymsInHighlight,
17651785
minProximity,
@@ -1845,6 +1865,7 @@ public String toString() {
18451865
sb.append(" alternativesAsExact: ").append(toIndentedString(alternativesAsExact)).append("\n");
18461866
sb.append(" advancedSyntaxFeatures: ").append(toIndentedString(advancedSyntaxFeatures)).append("\n");
18471867
sb.append(" distinct: ").append(toIndentedString(distinct)).append("\n");
1868+
sb.append(" attributeForDistinct: ").append(toIndentedString(attributeForDistinct)).append("\n");
18481869
sb.append(" synonyms: ").append(toIndentedString(synonyms)).append("\n");
18491870
sb.append(" replaceSynonymsInHighlight: ").append(toIndentedString(replaceSynonymsInHighlight)).append("\n");
18501871
sb.append(" minProximity: ").append(toIndentedString(minProximity)).append("\n");

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/search/IndexSettings.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ public class IndexSettings {
160160
@JsonProperty("distinct")
161161
private Distinct distinct;
162162

163+
@JsonProperty("attributeForDistinct")
164+
private String attributeForDistinct;
165+
163166
@JsonProperty("synonyms")
164167
private Boolean synonyms;
165168

@@ -1108,6 +1111,21 @@ public Distinct getDistinct() {
11081111
return distinct;
11091112
}
11101113

1114+
public IndexSettings setAttributeForDistinct(String attributeForDistinct) {
1115+
this.attributeForDistinct = attributeForDistinct;
1116+
return this;
1117+
}
1118+
1119+
/**
1120+
* Name of the de-duplication attribute to be used with the distinct feature.
1121+
*
1122+
* @return attributeForDistinct
1123+
*/
1124+
@javax.annotation.Nullable
1125+
public String getAttributeForDistinct() {
1126+
return attributeForDistinct;
1127+
}
1128+
11111129
public IndexSettings setSynonyms(Boolean synonyms) {
11121130
this.synonyms = synonyms;
11131131
return this;
@@ -1284,6 +1302,7 @@ public boolean equals(Object o) {
12841302
Objects.equals(this.alternativesAsExact, indexSettings.alternativesAsExact) &&
12851303
Objects.equals(this.advancedSyntaxFeatures, indexSettings.advancedSyntaxFeatures) &&
12861304
Objects.equals(this.distinct, indexSettings.distinct) &&
1305+
Objects.equals(this.attributeForDistinct, indexSettings.attributeForDistinct) &&
12871306
Objects.equals(this.synonyms, indexSettings.synonyms) &&
12881307
Objects.equals(this.replaceSynonymsInHighlight, indexSettings.replaceSynonymsInHighlight) &&
12891308
Objects.equals(this.minProximity, indexSettings.minProximity) &&
@@ -1346,6 +1365,7 @@ public int hashCode() {
13461365
alternativesAsExact,
13471366
advancedSyntaxFeatures,
13481367
distinct,
1368+
attributeForDistinct,
13491369
synonyms,
13501370
replaceSynonymsInHighlight,
13511371
minProximity,
@@ -1409,6 +1429,7 @@ public String toString() {
14091429
sb.append(" alternativesAsExact: ").append(toIndentedString(alternativesAsExact)).append("\n");
14101430
sb.append(" advancedSyntaxFeatures: ").append(toIndentedString(advancedSyntaxFeatures)).append("\n");
14111431
sb.append(" distinct: ").append(toIndentedString(distinct)).append("\n");
1432+
sb.append(" attributeForDistinct: ").append(toIndentedString(attributeForDistinct)).append("\n");
14121433
sb.append(" synonyms: ").append(toIndentedString(synonyms)).append("\n");
14131434
sb.append(" replaceSynonymsInHighlight: ").append(toIndentedString(replaceSynonymsInHighlight)).append("\n");
14141435
sb.append(" minProximity: ").append(toIndentedString(minProximity)).append("\n");

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/search/IndexSettingsAsSearchParams.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ public class IndexSettingsAsSearchParams {
116116
@JsonProperty("distinct")
117117
private Distinct distinct;
118118

119+
@JsonProperty("attributeForDistinct")
120+
private String attributeForDistinct;
121+
119122
@JsonProperty("synonyms")
120123
private Boolean synonyms;
121124

@@ -779,6 +782,21 @@ public Distinct getDistinct() {
779782
return distinct;
780783
}
781784

785+
public IndexSettingsAsSearchParams setAttributeForDistinct(String attributeForDistinct) {
786+
this.attributeForDistinct = attributeForDistinct;
787+
return this;
788+
}
789+
790+
/**
791+
* Name of the de-duplication attribute to be used with the distinct feature.
792+
*
793+
* @return attributeForDistinct
794+
*/
795+
@javax.annotation.Nullable
796+
public String getAttributeForDistinct() {
797+
return attributeForDistinct;
798+
}
799+
782800
public IndexSettingsAsSearchParams setSynonyms(Boolean synonyms) {
783801
this.synonyms = synonyms;
784802
return this;
@@ -941,6 +959,7 @@ public boolean equals(Object o) {
941959
Objects.equals(this.alternativesAsExact, indexSettingsAsSearchParams.alternativesAsExact) &&
942960
Objects.equals(this.advancedSyntaxFeatures, indexSettingsAsSearchParams.advancedSyntaxFeatures) &&
943961
Objects.equals(this.distinct, indexSettingsAsSearchParams.distinct) &&
962+
Objects.equals(this.attributeForDistinct, indexSettingsAsSearchParams.attributeForDistinct) &&
944963
Objects.equals(this.synonyms, indexSettingsAsSearchParams.synonyms) &&
945964
Objects.equals(this.replaceSynonymsInHighlight, indexSettingsAsSearchParams.replaceSynonymsInHighlight) &&
946965
Objects.equals(this.minProximity, indexSettingsAsSearchParams.minProximity) &&
@@ -989,6 +1008,7 @@ public int hashCode() {
9891008
alternativesAsExact,
9901009
advancedSyntaxFeatures,
9911010
distinct,
1011+
attributeForDistinct,
9921012
synonyms,
9931013
replaceSynonymsInHighlight,
9941014
minProximity,
@@ -1038,6 +1058,7 @@ public String toString() {
10381058
sb.append(" alternativesAsExact: ").append(toIndentedString(alternativesAsExact)).append("\n");
10391059
sb.append(" advancedSyntaxFeatures: ").append(toIndentedString(advancedSyntaxFeatures)).append("\n");
10401060
sb.append(" distinct: ").append(toIndentedString(distinct)).append("\n");
1061+
sb.append(" attributeForDistinct: ").append(toIndentedString(attributeForDistinct)).append("\n");
10411062
sb.append(" synonyms: ").append(toIndentedString(synonyms)).append("\n");
10421063
sb.append(" replaceSynonymsInHighlight: ").append(toIndentedString(replaceSynonymsInHighlight)).append("\n");
10431064
sb.append(" minProximity: ").append(toIndentedString(minProximity)).append("\n");

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/search/SearchForFacets.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ public class SearchForFacets {
221221
@JsonProperty("distinct")
222222
private Distinct distinct;
223223

224+
@JsonProperty("attributeForDistinct")
225+
private String attributeForDistinct;
226+
224227
@JsonProperty("synonyms")
225228
private Boolean synonyms;
226229

@@ -1475,6 +1478,21 @@ public Distinct getDistinct() {
14751478
return distinct;
14761479
}
14771480

1481+
public SearchForFacets setAttributeForDistinct(String attributeForDistinct) {
1482+
this.attributeForDistinct = attributeForDistinct;
1483+
return this;
1484+
}
1485+
1486+
/**
1487+
* Name of the de-duplication attribute to be used with the distinct feature.
1488+
*
1489+
* @return attributeForDistinct
1490+
*/
1491+
@javax.annotation.Nullable
1492+
public String getAttributeForDistinct() {
1493+
return attributeForDistinct;
1494+
}
1495+
14781496
public SearchForFacets setSynonyms(Boolean synonyms) {
14791497
this.synonyms = synonyms;
14801498
return this;
@@ -1732,6 +1750,7 @@ public boolean equals(Object o) {
17321750
Objects.equals(this.alternativesAsExact, searchForFacets.alternativesAsExact) &&
17331751
Objects.equals(this.advancedSyntaxFeatures, searchForFacets.advancedSyntaxFeatures) &&
17341752
Objects.equals(this.distinct, searchForFacets.distinct) &&
1753+
Objects.equals(this.attributeForDistinct, searchForFacets.attributeForDistinct) &&
17351754
Objects.equals(this.synonyms, searchForFacets.synonyms) &&
17361755
Objects.equals(this.replaceSynonymsInHighlight, searchForFacets.replaceSynonymsInHighlight) &&
17371756
Objects.equals(this.minProximity, searchForFacets.minProximity) &&
@@ -1819,6 +1838,7 @@ public int hashCode() {
18191838
alternativesAsExact,
18201839
advancedSyntaxFeatures,
18211840
distinct,
1841+
attributeForDistinct,
18221842
synonyms,
18231843
replaceSynonymsInHighlight,
18241844
minProximity,
@@ -1907,6 +1927,7 @@ public String toString() {
19071927
sb.append(" alternativesAsExact: ").append(toIndentedString(alternativesAsExact)).append("\n");
19081928
sb.append(" advancedSyntaxFeatures: ").append(toIndentedString(advancedSyntaxFeatures)).append("\n");
19091929
sb.append(" distinct: ").append(toIndentedString(distinct)).append("\n");
1930+
sb.append(" attributeForDistinct: ").append(toIndentedString(attributeForDistinct)).append("\n");
19101931
sb.append(" synonyms: ").append(toIndentedString(synonyms)).append("\n");
19111932
sb.append(" replaceSynonymsInHighlight: ").append(toIndentedString(replaceSynonymsInHighlight)).append("\n");
19121933
sb.append(" minProximity: ").append(toIndentedString(minProximity)).append("\n");

0 commit comments

Comments
 (0)