Skip to content

Commit a755bc0

Browse files
committed
fix(specs): multiple clients fixes (generated)
algolia/api-clients-automation#3971 Co-authored-by: algolia-bot <[email protected]>
1 parent 8264c7a commit a755bc0

File tree

7 files changed

+83
-5
lines changed

7 files changed

+83
-5
lines changed

algoliasearch/src/main/java/com/algolia/model/abtesting/ABTestConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public ABTestConfiguration setOutliers(Outliers outliers) {
2525
}
2626

2727
/** Get outliers */
28-
@javax.annotation.Nonnull
28+
@javax.annotation.Nullable
2929
public Outliers getOutliers() {
3030
return outliers;
3131
}

algoliasearch/src/main/java/com/algolia/model/abtesting/Variant.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public Variant setDescription(String description) {
190190
}
191191

192192
/** Description for this variant. */
193-
@javax.annotation.Nonnull
193+
@javax.annotation.Nullable
194194
public String getDescription() {
195195
return description;
196196
}

algoliasearch/src/main/java/com/algolia/model/recommend/RecommendationsResults.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ public class RecommendationsResults {
2929
@JsonProperty("exhaustive")
3030
private Exhaustive exhaustive;
3131

32+
@JsonProperty("appliedRules")
33+
private List<Object> appliedRules;
34+
3235
@JsonProperty("exhaustiveFacetsCount")
3336
private Boolean exhaustiveFacetsCount;
3437

@@ -164,6 +167,25 @@ public Exhaustive getExhaustive() {
164167
return exhaustive;
165168
}
166169

170+
public RecommendationsResults setAppliedRules(List<Object> appliedRules) {
171+
this.appliedRules = appliedRules;
172+
return this;
173+
}
174+
175+
public RecommendationsResults addAppliedRules(Object appliedRulesItem) {
176+
if (this.appliedRules == null) {
177+
this.appliedRules = new ArrayList<>();
178+
}
179+
this.appliedRules.add(appliedRulesItem);
180+
return this;
181+
}
182+
183+
/** Rules applied to the query. */
184+
@javax.annotation.Nullable
185+
public List<Object> getAppliedRules() {
186+
return appliedRules;
187+
}
188+
167189
public RecommendationsResults setExhaustiveFacetsCount(Boolean exhaustiveFacetsCount) {
168190
this.exhaustiveFacetsCount = exhaustiveFacetsCount;
169191
return this;
@@ -505,6 +527,7 @@ public boolean equals(Object o) {
505527
Objects.equals(this.aroundLatLng, recommendationsResults.aroundLatLng) &&
506528
Objects.equals(this.automaticRadius, recommendationsResults.automaticRadius) &&
507529
Objects.equals(this.exhaustive, recommendationsResults.exhaustive) &&
530+
Objects.equals(this.appliedRules, recommendationsResults.appliedRules) &&
508531
Objects.equals(this.exhaustiveFacetsCount, recommendationsResults.exhaustiveFacetsCount) &&
509532
Objects.equals(this.exhaustiveNbHits, recommendationsResults.exhaustiveNbHits) &&
510533
Objects.equals(this.exhaustiveTypo, recommendationsResults.exhaustiveTypo) &&
@@ -541,6 +564,7 @@ public int hashCode() {
541564
aroundLatLng,
542565
automaticRadius,
543566
exhaustive,
567+
appliedRules,
544568
exhaustiveFacetsCount,
545569
exhaustiveNbHits,
546570
exhaustiveTypo,
@@ -578,6 +602,7 @@ public String toString() {
578602
sb.append(" aroundLatLng: ").append(toIndentedString(aroundLatLng)).append("\n");
579603
sb.append(" automaticRadius: ").append(toIndentedString(automaticRadius)).append("\n");
580604
sb.append(" exhaustive: ").append(toIndentedString(exhaustive)).append("\n");
605+
sb.append(" appliedRules: ").append(toIndentedString(appliedRules)).append("\n");
581606
sb.append(" exhaustiveFacetsCount: ").append(toIndentedString(exhaustiveFacetsCount)).append("\n");
582607
sb.append(" exhaustiveNbHits: ").append(toIndentedString(exhaustiveNbHits)).append("\n");
583608
sb.append(" exhaustiveTypo: ").append(toIndentedString(exhaustiveTypo)).append("\n");

algoliasearch/src/main/java/com/algolia/model/search/BrowseResponse.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ public class BrowseResponse<T> {
2929
@JsonProperty("exhaustive")
3030
private Exhaustive exhaustive;
3131

32+
@JsonProperty("appliedRules")
33+
private List<Object> appliedRules;
34+
3235
@JsonProperty("exhaustiveFacetsCount")
3336
private Boolean exhaustiveFacetsCount;
3437

@@ -173,6 +176,25 @@ public Exhaustive getExhaustive() {
173176
return exhaustive;
174177
}
175178

179+
public BrowseResponse<T> setAppliedRules(List<Object> appliedRules) {
180+
this.appliedRules = appliedRules;
181+
return this;
182+
}
183+
184+
public BrowseResponse<T> addAppliedRules(Object appliedRulesItem) {
185+
if (this.appliedRules == null) {
186+
this.appliedRules = new ArrayList<>();
187+
}
188+
this.appliedRules.add(appliedRulesItem);
189+
return this;
190+
}
191+
192+
/** Rules applied to the query. */
193+
@javax.annotation.Nullable
194+
public List<Object> getAppliedRules() {
195+
return appliedRules;
196+
}
197+
176198
public BrowseResponse<T> setExhaustiveFacetsCount(Boolean exhaustiveFacetsCount) {
177199
this.exhaustiveFacetsCount = exhaustiveFacetsCount;
178200
return this;
@@ -554,6 +576,7 @@ public boolean equals(Object o) {
554576
Objects.equals(this.aroundLatLng, browseResponse.aroundLatLng) &&
555577
Objects.equals(this.automaticRadius, browseResponse.automaticRadius) &&
556578
Objects.equals(this.exhaustive, browseResponse.exhaustive) &&
579+
Objects.equals(this.appliedRules, browseResponse.appliedRules) &&
557580
Objects.equals(this.exhaustiveFacetsCount, browseResponse.exhaustiveFacetsCount) &&
558581
Objects.equals(this.exhaustiveNbHits, browseResponse.exhaustiveNbHits) &&
559582
Objects.equals(this.exhaustiveTypo, browseResponse.exhaustiveTypo) &&
@@ -593,6 +616,7 @@ public int hashCode() {
593616
aroundLatLng,
594617
automaticRadius,
595618
exhaustive,
619+
appliedRules,
596620
exhaustiveFacetsCount,
597621
exhaustiveNbHits,
598622
exhaustiveTypo,
@@ -633,6 +657,7 @@ public String toString() {
633657
sb.append(" aroundLatLng: ").append(toIndentedString(aroundLatLng)).append("\n");
634658
sb.append(" automaticRadius: ").append(toIndentedString(automaticRadius)).append("\n");
635659
sb.append(" exhaustive: ").append(toIndentedString(exhaustive)).append("\n");
660+
sb.append(" appliedRules: ").append(toIndentedString(appliedRules)).append("\n");
636661
sb.append(" exhaustiveFacetsCount: ").append(toIndentedString(exhaustiveFacetsCount)).append("\n");
637662
sb.append(" exhaustiveNbHits: ").append(toIndentedString(exhaustiveNbHits)).append("\n");
638663
sb.append(" exhaustiveTypo: ").append(toIndentedString(exhaustiveTypo)).append("\n");

algoliasearch/src/main/java/com/algolia/model/search/GetApiKeyResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public GetApiKeyResponse setValue(String value) {
4848
}
4949

5050
/** API key. */
51-
@javax.annotation.Nullable
51+
@javax.annotation.Nonnull
5252
public String getValue() {
5353
return value;
5454
}

algoliasearch/src/main/java/com/algolia/model/search/GetObjectsResponse.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,23 @@
1313
public class GetObjectsResponse<T> {
1414

1515
@JsonProperty("results")
16-
private List<T> results = new ArrayList<>();
16+
private List<T> results;
1717

1818
public GetObjectsResponse<T> setResults(List<T> results) {
1919
this.results = results;
2020
return this;
2121
}
2222

2323
public GetObjectsResponse<T> addResults(T resultsItem) {
24+
if (this.results == null) {
25+
this.results = new ArrayList<>();
26+
}
2427
this.results.add(resultsItem);
2528
return this;
2629
}
2730

2831
/** Retrieved records. */
29-
@javax.annotation.Nonnull
32+
@javax.annotation.Nullable
3033
public List<T> getResults() {
3134
return results;
3235
}

algoliasearch/src/main/java/com/algolia/model/search/SearchResponse.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ public class SearchResponse<T> implements SearchResult<T> {
3030
@JsonProperty("exhaustive")
3131
private Exhaustive exhaustive;
3232

33+
@JsonProperty("appliedRules")
34+
private List<Object> appliedRules;
35+
3336
@JsonProperty("exhaustiveFacetsCount")
3437
private Boolean exhaustiveFacetsCount;
3538

@@ -184,6 +187,25 @@ public Exhaustive getExhaustive() {
184187
return exhaustive;
185188
}
186189

190+
public SearchResponse<T> setAppliedRules(List<Object> appliedRules) {
191+
this.appliedRules = appliedRules;
192+
return this;
193+
}
194+
195+
public SearchResponse<T> addAppliedRules(Object appliedRulesItem) {
196+
if (this.appliedRules == null) {
197+
this.appliedRules = new ArrayList<>();
198+
}
199+
this.appliedRules.add(appliedRulesItem);
200+
return this;
201+
}
202+
203+
/** Rules applied to the query. */
204+
@javax.annotation.Nullable
205+
public List<Object> getAppliedRules() {
206+
return appliedRules;
207+
}
208+
187209
public SearchResponse<T> setExhaustiveFacetsCount(Boolean exhaustiveFacetsCount) {
188210
this.exhaustiveFacetsCount = exhaustiveFacetsCount;
189211
return this;
@@ -550,6 +572,7 @@ public boolean equals(Object o) {
550572
Objects.equals(this.aroundLatLng, searchResponse.aroundLatLng) &&
551573
Objects.equals(this.automaticRadius, searchResponse.automaticRadius) &&
552574
Objects.equals(this.exhaustive, searchResponse.exhaustive) &&
575+
Objects.equals(this.appliedRules, searchResponse.appliedRules) &&
553576
Objects.equals(this.exhaustiveFacetsCount, searchResponse.exhaustiveFacetsCount) &&
554577
Objects.equals(this.exhaustiveNbHits, searchResponse.exhaustiveNbHits) &&
555578
Objects.equals(this.exhaustiveTypo, searchResponse.exhaustiveTypo) &&
@@ -589,6 +612,7 @@ public int hashCode() {
589612
aroundLatLng,
590613
automaticRadius,
591614
exhaustive,
615+
appliedRules,
592616
exhaustiveFacetsCount,
593617
exhaustiveNbHits,
594618
exhaustiveTypo,
@@ -630,6 +654,7 @@ public String toString() {
630654
sb.append(" aroundLatLng: ").append(toIndentedString(aroundLatLng)).append("\n");
631655
sb.append(" automaticRadius: ").append(toIndentedString(automaticRadius)).append("\n");
632656
sb.append(" exhaustive: ").append(toIndentedString(exhaustive)).append("\n");
657+
sb.append(" appliedRules: ").append(toIndentedString(appliedRules)).append("\n");
633658
sb.append(" exhaustiveFacetsCount: ").append(toIndentedString(exhaustiveFacetsCount)).append("\n");
634659
sb.append(" exhaustiveNbHits: ").append(toIndentedString(exhaustiveNbHits)).append("\n");
635660
sb.append(" exhaustiveTypo: ").append(toIndentedString(exhaustiveTypo)).append("\n");

0 commit comments

Comments
 (0)