Skip to content

Commit

Permalink
chore: generated code for commit e86e870. [skip ci]
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Millot <[email protected]>
  • Loading branch information
algolia-bot and millotp committed May 11, 2022
1 parent e86e870 commit 667d7b9
Show file tree
Hide file tree
Showing 19 changed files with 283 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ public void write(final JsonWriter out, final AddABTestsVariant oneOf)
@Override
public AddABTestsVariant read(final JsonReader jsonReader)
throws IOException {
AbTestsVariant abtestsvariant = JSON.tryDeserialize(
jsonReader,
new TypeToken<AbTestsVariant>() {}.getType()
);
if (abtestsvariant != null) {
return AddABTestsVariant.ofAbTestsVariant(abtestsvariant);
}
AbTestsVariantSearchParams abtestsvariantsearchparams = JSON.tryDeserialize(
jsonReader,
new TypeToken<AbTestsVariantSearchParams>() {}.getType()
);
if (abtestsvariantsearchparams != null) {
return AddABTestsVariant.ofAbTestsVariantSearchParams(
abtestsvariantsearchparams
);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ public void write(final JsonWriter out, final GetTopHitsResponse oneOf)
@Override
public GetTopHitsResponse read(final JsonReader jsonReader)
throws IOException {
TopHitsResponse tophitsresponse = JSON.tryDeserialize(
jsonReader,
new TypeToken<TopHitsResponse>() {}.getType()
);
if (tophitsresponse != null) {
return GetTopHitsResponse.ofTopHitsResponse(tophitsresponse);
}
TopHitsResponseWithAnalytics tophitsresponsewithanalytics = JSON.tryDeserialize(
jsonReader,
new TypeToken<TopHitsResponseWithAnalytics>() {}.getType()
);
if (tophitsresponsewithanalytics != null) {
return GetTopHitsResponse.ofTopHitsResponseWithAnalytics(
tophitsresponsewithanalytics
);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,24 @@ public void write(final JsonWriter out, final GetTopSearchesResponse oneOf)
@Override
public GetTopSearchesResponse read(final JsonReader jsonReader)
throws IOException {
TopSearchesResponse topsearchesresponse = JSON.tryDeserialize(
jsonReader,
new TypeToken<TopSearchesResponse>() {}.getType()
);
if (topsearchesresponse != null) {
return GetTopSearchesResponse.ofTopSearchesResponse(
topsearchesresponse
);
}
TopSearchesResponseWithAnalytics topsearchesresponsewithanalytics = JSON.tryDeserialize(
jsonReader,
new TypeToken<TopSearchesResponseWithAnalytics>() {}.getType()
);
if (topsearchesresponsewithanalytics != null) {
return GetTopSearchesResponse.ofTopSearchesResponseWithAnalytics(
topsearchesresponsewithanalytics
);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,27 @@ public void write(final JsonWriter out, final Params oneOf)

@Override
public Params read(final JsonReader jsonReader) throws IOException {
AllParams allparams = JSON.tryDeserialize(
jsonReader,
new TypeToken<AllParams>() {}.getType()
);
if (allparams != null) {
return Params.ofAllParams(allparams);
}
ModelsToRetrieve modelstoretrieve = JSON.tryDeserialize(
jsonReader,
new TypeToken<ModelsToRetrieve>() {}.getType()
);
if (modelstoretrieve != null) {
return Params.ofModelsToRetrieve(modelstoretrieve);
}
TypesToRetrieve typestoretrieve = JSON.tryDeserialize(
jsonReader,
new TypeToken<TypesToRetrieve>() {}.getType()
);
if (typestoretrieve != null) {
return Params.ofTypesToRetrieve(typestoretrieve);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ public void write(final JsonWriter out, final AroundRadius oneOf)

@Override
public AroundRadius read(final JsonReader jsonReader) throws IOException {
AroundRadiusAll aroundradiusall = JSON.tryDeserialize(
jsonReader,
new TypeToken<AroundRadiusAll>() {}.getType()
);
if (aroundradiusall != null) {
return AroundRadius.ofAroundRadiusAll(aroundradiusall);
}
Integer integer = JSON.tryDeserialize(
jsonReader,
new TypeToken<Integer>() {}.getType()
);
if (integer != null) {
return AroundRadius.ofInteger(integer);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ public void write(final JsonWriter out, final FacetFilters oneOf)

@Override
public FacetFilters read(final JsonReader jsonReader) throws IOException {
List<List<String>> listliststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<List<String>>>() {}.getType()
);
if (listliststring != null) {
return FacetFilters.ofListListString(listliststring);
}
List<String> liststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<String>>() {}.getType()
);
if (liststring != null) {
return FacetFilters.ofListString(liststring);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ public void write(final JsonWriter out, final NumericFilters oneOf)

@Override
public NumericFilters read(final JsonReader jsonReader) throws IOException {
List<List<String>> listliststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<List<String>>>() {}.getType()
);
if (listliststring != null) {
return NumericFilters.ofListListString(listliststring);
}
List<String> liststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<String>>() {}.getType()
);
if (liststring != null) {
return NumericFilters.ofListString(liststring);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,20 @@ public void write(final JsonWriter out, final OptionalFilters oneOf)
@Override
public OptionalFilters read(final JsonReader jsonReader)
throws IOException {
List<List<String>> listliststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<List<String>>>() {}.getType()
);
if (listliststring != null) {
return OptionalFilters.ofListListString(listliststring);
}
List<String> liststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<String>>() {}.getType()
);
if (liststring != null) {
return OptionalFilters.ofListString(liststring);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ public void write(final JsonWriter out, final ReRankingApplyFilter oneOf)
@Override
public ReRankingApplyFilter read(final JsonReader jsonReader)
throws IOException {
List<List<String>> listliststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<List<String>>>() {}.getType()
);
if (listliststring != null) {
return ReRankingApplyFilter.ofListListString(listliststring);
}
List<String> liststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<String>>() {}.getType()
);
if (liststring != null) {
return ReRankingApplyFilter.ofListString(liststring);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@ public void write(final JsonWriter out, final RecommendationsRequest oneOf)
@Override
public RecommendationsRequest read(final JsonReader jsonReader)
throws IOException {
RecommendationRequest recommendationrequest = JSON.tryDeserialize(
jsonReader,
new TypeToken<RecommendationRequest>() {}.getType()
);
if (recommendationrequest != null) {
return RecommendationsRequest.ofRecommendationRequest(
recommendationrequest
);
}
TrendingRequest trendingrequest = JSON.tryDeserialize(
jsonReader,
new TypeToken<TrendingRequest>() {}.getType()
);
if (trendingrequest != null) {
return RecommendationsRequest.ofTrendingRequest(trendingrequest);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ public void write(final JsonWriter out, final TagFilters oneOf)

@Override
public TagFilters read(final JsonReader jsonReader) throws IOException {
List<List<String>> listliststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<List<String>>>() {}.getType()
);
if (listliststring != null) {
return TagFilters.ofListListString(listliststring);
}
List<String> liststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<String>>() {}.getType()
);
if (liststring != null) {
return TagFilters.ofListString(liststring);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ public void write(final JsonWriter out, final AroundRadius oneOf)

@Override
public AroundRadius read(final JsonReader jsonReader) throws IOException {
AroundRadiusAll aroundradiusall = JSON.tryDeserialize(
jsonReader,
new TypeToken<AroundRadiusAll>() {}.getType()
);
if (aroundradiusall != null) {
return AroundRadius.ofAroundRadiusAll(aroundradiusall);
}
Integer integer = JSON.tryDeserialize(
jsonReader,
new TypeToken<Integer>() {}.getType()
);
if (integer != null) {
return AroundRadius.ofInteger(integer);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ public void write(
@Override
public AttributeOrBuiltInOperation read(final JsonReader jsonReader)
throws IOException {
BuiltInOperation builtinoperation = JSON.tryDeserialize(
jsonReader,
new TypeToken<BuiltInOperation>() {}.getType()
);
if (builtinoperation != null) {
return AttributeOrBuiltInOperation.ofBuiltInOperation(builtinoperation);
}
String string = JSON.tryDeserialize(
jsonReader,
new TypeToken<String>() {}.getType()
);
if (string != null) {
return AttributeOrBuiltInOperation.ofString(string);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ public void write(final JsonWriter out, final FacetFilters oneOf)

@Override
public FacetFilters read(final JsonReader jsonReader) throws IOException {
List<List<String>> listliststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<List<String>>>() {}.getType()
);
if (listliststring != null) {
return FacetFilters.ofListListString(listliststring);
}
List<String> liststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<String>>() {}.getType()
);
if (liststring != null) {
return FacetFilters.ofListString(liststring);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ public void write(final JsonWriter out, final NumericFilters oneOf)

@Override
public NumericFilters read(final JsonReader jsonReader) throws IOException {
List<List<String>> listliststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<List<String>>>() {}.getType()
);
if (listliststring != null) {
return NumericFilters.ofListListString(listliststring);
}
List<String> liststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<String>>() {}.getType()
);
if (liststring != null) {
return NumericFilters.ofListString(liststring);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,20 @@ public void write(final JsonWriter out, final OptionalFilters oneOf)
@Override
public OptionalFilters read(final JsonReader jsonReader)
throws IOException {
List<List<String>> listliststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<List<String>>>() {}.getType()
);
if (listliststring != null) {
return OptionalFilters.ofListListString(listliststring);
}
List<String> liststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<String>>() {}.getType()
);
if (liststring != null) {
return OptionalFilters.ofListString(liststring);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ public void write(final JsonWriter out, final ReRankingApplyFilter oneOf)
@Override
public ReRankingApplyFilter read(final JsonReader jsonReader)
throws IOException {
List<List<String>> listliststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<List<String>>>() {}.getType()
);
if (listliststring != null) {
return ReRankingApplyFilter.ofListListString(listliststring);
}
List<String> liststring = JSON.tryDeserialize(
jsonReader,
new TypeToken<List<String>>() {}.getType()
);
if (liststring != null) {
return ReRankingApplyFilter.ofListString(liststring);
}
return null;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ public void write(final JsonWriter out, final SearchParams oneOf)

@Override
public SearchParams read(final JsonReader jsonReader) throws IOException {
SearchParamsObject searchparamsobject = JSON.tryDeserialize(
jsonReader,
new TypeToken<SearchParamsObject>() {}.getType()
);
if (searchparamsobject != null) {
return SearchParams.ofSearchParamsObject(searchparamsobject);
}
SearchParamsString searchparamsstring = JSON.tryDeserialize(
jsonReader,
new TypeToken<SearchParamsString>() {}.getType()
);
if (searchparamsstring != null) {
return SearchParams.ofSearchParamsString(searchparamsstring);
}
return null;
}
}
Expand Down
Loading

0 comments on commit 667d7b9

Please sign in to comment.