Skip to content

Commit bf82d9e

Browse files
algolia-botmillotp
andcommitted
chore: generated code for commit ce95833. [skip ci]
Co-authored-by: Pierre Millot <[email protected]>
1 parent ce95833 commit bf82d9e

35 files changed

+378
-294
lines changed

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/abtesting/AddABTestsVariant.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
import java.io.IOException;
1111

1212
@JsonAdapter(AddABTestsVariant.Adapter.class)
13+
/** AddABTestsVariant */
1314
public abstract class AddABTestsVariant implements CompoundType {
1415

15-
public static AddABTestsVariant ofAbTestsVariant(AbTestsVariant inside) {
16+
public static AddABTestsVariant of(AbTestsVariant inside) {
1617
return new AddABTestsVariantAbTestsVariant(inside);
1718
}
1819

19-
public static AddABTestsVariant ofAbTestsVariantSearchParams(AbTestsVariantSearchParams inside) {
20+
public static AddABTestsVariant of(AbTestsVariantSearchParams inside) {
2021
return new AddABTestsVariantAbTestsVariantSearchParams(inside);
2122
}
2223

@@ -32,14 +33,14 @@ public void write(final JsonWriter out, final AddABTestsVariant oneOf) throws IO
3233
public AddABTestsVariant read(final JsonReader jsonReader) throws IOException {
3334
AbTestsVariant abtestsvariant = JSON.tryDeserialize(jsonReader, new TypeToken<AbTestsVariant>() {}.getType());
3435
if (abtestsvariant != null) {
35-
return AddABTestsVariant.ofAbTestsVariant(abtestsvariant);
36+
return AddABTestsVariant.of(abtestsvariant);
3637
}
3738
AbTestsVariantSearchParams abtestsvariantsearchparams = JSON.tryDeserialize(
3839
jsonReader,
3940
new TypeToken<AbTestsVariantSearchParams>() {}.getType()
4041
);
4142
if (abtestsvariantsearchparams != null) {
42-
return AddABTestsVariant.ofAbTestsVariantSearchParams(abtestsvariantsearchparams);
43+
return AddABTestsVariant.of(abtestsvariantsearchparams);
4344
}
4445
return null;
4546
}

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/analytics/GetTopHitsResponse.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
import java.io.IOException;
1111

1212
@JsonAdapter(GetTopHitsResponse.Adapter.class)
13+
/** GetTopHitsResponse */
1314
public abstract class GetTopHitsResponse implements CompoundType {
1415

15-
public static GetTopHitsResponse ofTopHitsResponse(TopHitsResponse inside) {
16+
public static GetTopHitsResponse of(TopHitsResponse inside) {
1617
return new GetTopHitsResponseTopHitsResponse(inside);
1718
}
1819

19-
public static GetTopHitsResponse ofTopHitsResponseWithAnalytics(TopHitsResponseWithAnalytics inside) {
20+
public static GetTopHitsResponse of(TopHitsResponseWithAnalytics inside) {
2021
return new GetTopHitsResponseTopHitsResponseWithAnalytics(inside);
2122
}
2223

@@ -32,14 +33,14 @@ public void write(final JsonWriter out, final GetTopHitsResponse oneOf) throws I
3233
public GetTopHitsResponse read(final JsonReader jsonReader) throws IOException {
3334
TopHitsResponse tophitsresponse = JSON.tryDeserialize(jsonReader, new TypeToken<TopHitsResponse>() {}.getType());
3435
if (tophitsresponse != null) {
35-
return GetTopHitsResponse.ofTopHitsResponse(tophitsresponse);
36+
return GetTopHitsResponse.of(tophitsresponse);
3637
}
3738
TopHitsResponseWithAnalytics tophitsresponsewithanalytics = JSON.tryDeserialize(
3839
jsonReader,
3940
new TypeToken<TopHitsResponseWithAnalytics>() {}.getType()
4041
);
4142
if (tophitsresponsewithanalytics != null) {
42-
return GetTopHitsResponse.ofTopHitsResponseWithAnalytics(tophitsresponsewithanalytics);
43+
return GetTopHitsResponse.of(tophitsresponsewithanalytics);
4344
}
4445
return null;
4546
}

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/analytics/GetTopSearchesResponse.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
import java.io.IOException;
1111

1212
@JsonAdapter(GetTopSearchesResponse.Adapter.class)
13+
/** GetTopSearchesResponse */
1314
public abstract class GetTopSearchesResponse implements CompoundType {
1415

15-
public static GetTopSearchesResponse ofTopSearchesResponse(TopSearchesResponse inside) {
16+
public static GetTopSearchesResponse of(TopSearchesResponse inside) {
1617
return new GetTopSearchesResponseTopSearchesResponse(inside);
1718
}
1819

19-
public static GetTopSearchesResponse ofTopSearchesResponseWithAnalytics(TopSearchesResponseWithAnalytics inside) {
20+
public static GetTopSearchesResponse of(TopSearchesResponseWithAnalytics inside) {
2021
return new GetTopSearchesResponseTopSearchesResponseWithAnalytics(inside);
2122
}
2223

@@ -32,14 +33,14 @@ public void write(final JsonWriter out, final GetTopSearchesResponse oneOf) thro
3233
public GetTopSearchesResponse read(final JsonReader jsonReader) throws IOException {
3334
TopSearchesResponse topsearchesresponse = JSON.tryDeserialize(jsonReader, new TypeToken<TopSearchesResponse>() {}.getType());
3435
if (topsearchesresponse != null) {
35-
return GetTopSearchesResponse.ofTopSearchesResponse(topsearchesresponse);
36+
return GetTopSearchesResponse.of(topsearchesresponse);
3637
}
3738
TopSearchesResponseWithAnalytics topsearchesresponsewithanalytics = JSON.tryDeserialize(
3839
jsonReader,
3940
new TypeToken<TopSearchesResponseWithAnalytics>() {}.getType()
4041
);
4142
if (topsearchesresponsewithanalytics != null) {
42-
return GetTopSearchesResponse.ofTopSearchesResponseWithAnalytics(topsearchesresponsewithanalytics);
43+
return GetTopSearchesResponse.of(topsearchesresponsewithanalytics);
4344
}
4445
return null;
4546
}

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/predict/Params.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@
1010
import java.io.IOException;
1111

1212
@JsonAdapter(Params.Adapter.class)
13+
/** Params */
1314
public abstract class Params implements CompoundType {
1415

15-
public static Params ofAllParams(AllParams inside) {
16+
public static Params of(AllParams inside) {
1617
return new ParamsAllParams(inside);
1718
}
1819

19-
public static Params ofModelsToRetrieve(ModelsToRetrieve inside) {
20+
public static Params of(ModelsToRetrieve inside) {
2021
return new ParamsModelsToRetrieve(inside);
2122
}
2223

23-
public static Params ofTypesToRetrieve(TypesToRetrieve inside) {
24+
public static Params of(TypesToRetrieve inside) {
2425
return new ParamsTypesToRetrieve(inside);
2526
}
2627

@@ -36,15 +37,15 @@ public void write(final JsonWriter out, final Params oneOf) throws IOException {
3637
public Params read(final JsonReader jsonReader) throws IOException {
3738
AllParams allparams = JSON.tryDeserialize(jsonReader, new TypeToken<AllParams>() {}.getType());
3839
if (allparams != null) {
39-
return Params.ofAllParams(allparams);
40+
return Params.of(allparams);
4041
}
4142
ModelsToRetrieve modelstoretrieve = JSON.tryDeserialize(jsonReader, new TypeToken<ModelsToRetrieve>() {}.getType());
4243
if (modelstoretrieve != null) {
43-
return Params.ofModelsToRetrieve(modelstoretrieve);
44+
return Params.of(modelstoretrieve);
4445
}
4546
TypesToRetrieve typestoretrieve = JSON.tryDeserialize(jsonReader, new TypeToken<TypesToRetrieve>() {}.getType());
4647
if (typestoretrieve != null) {
47-
return Params.ofTypesToRetrieve(typestoretrieve);
48+
return Params.of(typestoretrieve);
4849
}
4950
return null;
5051
}

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
import java.io.IOException;
1111

1212
@JsonAdapter(AroundRadius.Adapter.class)
13+
/** Define the maximum radius for a geo search (in meters). */
1314
public abstract class AroundRadius implements CompoundType {
1415

15-
public static AroundRadius ofAroundRadiusAll(AroundRadiusAll inside) {
16+
public static AroundRadius of(AroundRadiusAll inside) {
1617
return new AroundRadiusAroundRadiusAll(inside);
1718
}
1819

19-
public static AroundRadius ofInteger(Integer inside) {
20+
public static AroundRadius of(Integer inside) {
2021
return new AroundRadiusInteger(inside);
2122
}
2223

@@ -32,11 +33,11 @@ public void write(final JsonWriter out, final AroundRadius oneOf) throws IOExcep
3233
public AroundRadius read(final JsonReader jsonReader) throws IOException {
3334
AroundRadiusAll aroundradiusall = JSON.tryDeserialize(jsonReader, new TypeToken<AroundRadiusAll>() {}.getType());
3435
if (aroundradiusall != null) {
35-
return AroundRadius.ofAroundRadiusAll(aroundradiusall);
36+
return AroundRadius.of(aroundradiusall);
3637
}
3738
Integer integer = JSON.tryDeserialize(jsonReader, new TypeToken<Integer>() {}.getType());
3839
if (integer != null) {
39-
return AroundRadius.ofInteger(integer);
40+
return AroundRadius.of(integer);
4041
}
4142
return null;
4243
}

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

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
import java.util.List;
1212

1313
@JsonAdapter(FacetFilters.Adapter.class)
14+
/** Filter hits by facet value. */
1415
public abstract class FacetFilters implements CompoundType {
1516

16-
public static FacetFilters ofListListString(List<List<String>> inside) {
17-
return new FacetFiltersListListString(inside);
17+
public static FacetFilters ofListOfListOfString(List<List<String>> inside) {
18+
return new FacetFiltersListOfListOfString(inside);
1819
}
1920

20-
public static FacetFilters ofListString(List<String> inside) {
21-
return new FacetFiltersListString(inside);
21+
public static FacetFilters ofListOfString(List<String> inside) {
22+
return new FacetFiltersListOfString(inside);
2223
}
2324

2425
public static class Adapter extends TypeAdapter<FacetFilters> {
@@ -31,25 +32,25 @@ public void write(final JsonWriter out, final FacetFilters oneOf) throws IOExcep
3132

3233
@Override
3334
public FacetFilters read(final JsonReader jsonReader) throws IOException {
34-
List<List<String>> listliststring = JSON.tryDeserialize(jsonReader, new TypeToken<List<List<String>>>() {}.getType());
35-
if (listliststring != null) {
36-
return FacetFilters.ofListListString(listliststring);
35+
List<List<String>> listoflistofstring = JSON.tryDeserialize(jsonReader, new TypeToken<List<List<String>>>() {}.getType());
36+
if (listoflistofstring != null) {
37+
return FacetFilters.ofListOfListOfString(listoflistofstring);
3738
}
38-
List<String> liststring = JSON.tryDeserialize(jsonReader, new TypeToken<List<String>>() {}.getType());
39-
if (liststring != null) {
40-
return FacetFilters.ofListString(liststring);
39+
List<String> listofstring = JSON.tryDeserialize(jsonReader, new TypeToken<List<String>>() {}.getType());
40+
if (listofstring != null) {
41+
return FacetFilters.ofListOfString(listofstring);
4142
}
4243
return null;
4344
}
4445
}
4546
}
4647

4748
@JsonAdapter(FacetFilters.Adapter.class)
48-
class FacetFiltersListListString extends FacetFilters {
49+
class FacetFiltersListOfListOfString extends FacetFilters {
4950

5051
private final List<List<String>> insideValue;
5152

52-
FacetFiltersListListString(List<List<String>> insideValue) {
53+
FacetFiltersListOfListOfString(List<List<String>> insideValue) {
5354
this.insideValue = insideValue;
5455
}
5556

@@ -60,11 +61,11 @@ public List<List<String>> getInsideValue() {
6061
}
6162

6263
@JsonAdapter(FacetFilters.Adapter.class)
63-
class FacetFiltersListString extends FacetFilters {
64+
class FacetFiltersListOfString extends FacetFilters {
6465

6566
private final List<String> insideValue;
6667

67-
FacetFiltersListString(List<String> insideValue) {
68+
FacetFiltersListOfString(List<String> insideValue) {
6869
this.insideValue = insideValue;
6970
}
7071

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

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,24 @@
1111
import java.util.List;
1212

1313
@JsonAdapter(IgnorePlurals.Adapter.class)
14+
/**
15+
* Treats singular, plurals, and other forms of declensions as matching terms. ignorePlurals is used
16+
* in conjunction with the queryLanguages setting. list: language ISO codes for which ignoring
17+
* plurals should be enabled. This list will override any values that you may have set in
18+
* queryLanguages. true: enables the ignore plurals functionality, where singulars and plurals are
19+
* considered equivalent (foot = feet). The languages supported here are either every language (this
20+
* is the default, see list of languages below), or those set by queryLanguages. false: disables
21+
* ignore plurals, where singulars and plurals are not considered the same for matching purposes
22+
* (foot will not find feet).
23+
*/
1424
public abstract class IgnorePlurals implements CompoundType {
1525

16-
public static IgnorePlurals ofBoolean(Boolean inside) {
26+
public static IgnorePlurals of(Boolean inside) {
1727
return new IgnorePluralsBoolean(inside);
1828
}
1929

20-
public static IgnorePlurals ofListString(List<String> inside) {
21-
return new IgnorePluralsListString(inside);
30+
public static IgnorePlurals of(List<String> inside) {
31+
return new IgnorePluralsListOfString(inside);
2232
}
2333

2434
public static class Adapter extends TypeAdapter<IgnorePlurals> {
@@ -33,11 +43,11 @@ public void write(final JsonWriter out, final IgnorePlurals oneOf) throws IOExce
3343
public IgnorePlurals read(final JsonReader jsonReader) throws IOException {
3444
Boolean _boolean = JSON.tryDeserialize(jsonReader, new TypeToken<Boolean>() {}.getType());
3545
if (_boolean != null) {
36-
return IgnorePlurals.ofBoolean(_boolean);
46+
return IgnorePlurals.of(_boolean);
3747
}
38-
List<String> liststring = JSON.tryDeserialize(jsonReader, new TypeToken<List<String>>() {}.getType());
39-
if (liststring != null) {
40-
return IgnorePlurals.ofListString(liststring);
48+
List<String> listofstring = JSON.tryDeserialize(jsonReader, new TypeToken<List<String>>() {}.getType());
49+
if (listofstring != null) {
50+
return IgnorePlurals.of(listofstring);
4151
}
4252
return null;
4353
}
@@ -60,11 +70,11 @@ public Boolean getInsideValue() {
6070
}
6171

6272
@JsonAdapter(IgnorePlurals.Adapter.class)
63-
class IgnorePluralsListString extends IgnorePlurals {
73+
class IgnorePluralsListOfString extends IgnorePlurals {
6474

6575
private final List<String> insideValue;
6676

67-
IgnorePluralsListString(List<String> insideValue) {
77+
IgnorePluralsListOfString(List<String> insideValue) {
6878
this.insideValue = insideValue;
6979
}
7080

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

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
import java.util.List;
1212

1313
@JsonAdapter(NumericFilters.Adapter.class)
14+
/** Filter on numeric attributes. */
1415
public abstract class NumericFilters implements CompoundType {
1516

16-
public static NumericFilters ofListListString(List<List<String>> inside) {
17-
return new NumericFiltersListListString(inside);
17+
public static NumericFilters ofListOfListOfString(List<List<String>> inside) {
18+
return new NumericFiltersListOfListOfString(inside);
1819
}
1920

20-
public static NumericFilters ofListString(List<String> inside) {
21-
return new NumericFiltersListString(inside);
21+
public static NumericFilters ofListOfString(List<String> inside) {
22+
return new NumericFiltersListOfString(inside);
2223
}
2324

2425
public static class Adapter extends TypeAdapter<NumericFilters> {
@@ -31,25 +32,25 @@ public void write(final JsonWriter out, final NumericFilters oneOf) throws IOExc
3132

3233
@Override
3334
public NumericFilters read(final JsonReader jsonReader) throws IOException {
34-
List<List<String>> listliststring = JSON.tryDeserialize(jsonReader, new TypeToken<List<List<String>>>() {}.getType());
35-
if (listliststring != null) {
36-
return NumericFilters.ofListListString(listliststring);
35+
List<List<String>> listoflistofstring = JSON.tryDeserialize(jsonReader, new TypeToken<List<List<String>>>() {}.getType());
36+
if (listoflistofstring != null) {
37+
return NumericFilters.ofListOfListOfString(listoflistofstring);
3738
}
38-
List<String> liststring = JSON.tryDeserialize(jsonReader, new TypeToken<List<String>>() {}.getType());
39-
if (liststring != null) {
40-
return NumericFilters.ofListString(liststring);
39+
List<String> listofstring = JSON.tryDeserialize(jsonReader, new TypeToken<List<String>>() {}.getType());
40+
if (listofstring != null) {
41+
return NumericFilters.ofListOfString(listofstring);
4142
}
4243
return null;
4344
}
4445
}
4546
}
4647

4748
@JsonAdapter(NumericFilters.Adapter.class)
48-
class NumericFiltersListListString extends NumericFilters {
49+
class NumericFiltersListOfListOfString extends NumericFilters {
4950

5051
private final List<List<String>> insideValue;
5152

52-
NumericFiltersListListString(List<List<String>> insideValue) {
53+
NumericFiltersListOfListOfString(List<List<String>> insideValue) {
5354
this.insideValue = insideValue;
5455
}
5556

@@ -60,11 +61,11 @@ public List<List<String>> getInsideValue() {
6061
}
6162

6263
@JsonAdapter(NumericFilters.Adapter.class)
63-
class NumericFiltersListString extends NumericFilters {
64+
class NumericFiltersListOfString extends NumericFilters {
6465

6566
private final List<String> insideValue;
6667

67-
NumericFiltersListString(List<String> insideValue) {
68+
NumericFiltersListOfString(List<String> insideValue) {
6869
this.insideValue = insideValue;
6970
}
7071

0 commit comments

Comments
 (0)