-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: generated code for commit fcf0330.
Co-authored-by: Clément Vannicatte <[email protected]>
- Loading branch information
1 parent
fcf0330
commit 72ff5e3
Showing
77 changed files
with
1,082 additions
and
1,953 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
...rch-client-java-2/algoliasearch-core/com/algolia/model/search/AdvancedSyntaxFeatures.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package com.algolia.model.search; | ||
|
||
import com.google.gson.TypeAdapter; | ||
import com.google.gson.annotations.JsonAdapter; | ||
import com.google.gson.stream.JsonReader; | ||
import com.google.gson.stream.JsonWriter; | ||
import java.io.IOException; | ||
|
||
/** Gets or Sets advancedSyntaxFeatures */ | ||
@JsonAdapter(AdvancedSyntaxFeatures.Adapter.class) | ||
public enum AdvancedSyntaxFeatures { | ||
EXACT_PHRASE("exactPhrase"), | ||
|
||
EXCLUDE_WORDS("excludeWords"); | ||
|
||
private final String value; | ||
|
||
AdvancedSyntaxFeatures(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return String.valueOf(value); | ||
} | ||
|
||
public static AdvancedSyntaxFeatures fromValue(String value) { | ||
for (AdvancedSyntaxFeatures b : AdvancedSyntaxFeatures.values()) { | ||
if (b.value.equals(value)) { | ||
return b; | ||
} | ||
} | ||
throw new IllegalArgumentException("Unexpected value '" + value + "'"); | ||
} | ||
|
||
public static class Adapter extends TypeAdapter<AdvancedSyntaxFeatures> { | ||
|
||
@Override | ||
public void write( | ||
final JsonWriter jsonWriter, | ||
final AdvancedSyntaxFeatures enumeration | ||
) throws IOException { | ||
jsonWriter.value(enumeration.getValue()); | ||
} | ||
|
||
@Override | ||
public AdvancedSyntaxFeatures read(final JsonReader jsonReader) | ||
throws IOException { | ||
String value = jsonReader.nextString(); | ||
return AdvancedSyntaxFeatures.fromValue(value); | ||
} | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
...search-client-java-2/algoliasearch-core/com/algolia/model/search/AlternativesAsExact.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package com.algolia.model.search; | ||
|
||
import com.google.gson.TypeAdapter; | ||
import com.google.gson.annotations.JsonAdapter; | ||
import com.google.gson.stream.JsonReader; | ||
import com.google.gson.stream.JsonWriter; | ||
import java.io.IOException; | ||
|
||
/** Gets or Sets alternativesAsExact */ | ||
@JsonAdapter(AlternativesAsExact.Adapter.class) | ||
public enum AlternativesAsExact { | ||
IGNORE_PLURALS("ignorePlurals"), | ||
|
||
SINGLE_WORD_SYNONYM("singleWordSynonym"), | ||
|
||
MULTI_WORDS_SYNONYM("multiWordsSynonym"); | ||
|
||
private final String value; | ||
|
||
AlternativesAsExact(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return String.valueOf(value); | ||
} | ||
|
||
public static AlternativesAsExact fromValue(String value) { | ||
for (AlternativesAsExact b : AlternativesAsExact.values()) { | ||
if (b.value.equals(value)) { | ||
return b; | ||
} | ||
} | ||
throw new IllegalArgumentException("Unexpected value '" + value + "'"); | ||
} | ||
|
||
public static class Adapter extends TypeAdapter<AlternativesAsExact> { | ||
|
||
@Override | ||
public void write( | ||
final JsonWriter jsonWriter, | ||
final AlternativesAsExact enumeration | ||
) throws IOException { | ||
jsonWriter.value(enumeration.getValue()); | ||
} | ||
|
||
@Override | ||
public AlternativesAsExact read(final JsonReader jsonReader) | ||
throws IOException { | ||
String value = jsonReader.nextString(); | ||
return AlternativesAsExact.fromValue(value); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
...oliasearch-client-java-2/algoliasearch-core/com/algolia/model/search/AroundRadiusAll.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package com.algolia.model.search; | ||
|
||
import com.google.gson.TypeAdapter; | ||
import com.google.gson.annotations.JsonAdapter; | ||
import com.google.gson.stream.JsonReader; | ||
import com.google.gson.stream.JsonWriter; | ||
import java.io.IOException; | ||
|
||
/** Gets or Sets aroundRadiusAll */ | ||
@JsonAdapter(AroundRadiusAll.Adapter.class) | ||
public enum AroundRadiusAll { | ||
ALL("all"); | ||
|
||
private final String value; | ||
|
||
AroundRadiusAll(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return String.valueOf(value); | ||
} | ||
|
||
public static AroundRadiusAll fromValue(String value) { | ||
for (AroundRadiusAll b : AroundRadiusAll.values()) { | ||
if (b.value.equals(value)) { | ||
return b; | ||
} | ||
} | ||
throw new IllegalArgumentException("Unexpected value '" + value + "'"); | ||
} | ||
|
||
public static class Adapter extends TypeAdapter<AroundRadiusAll> { | ||
|
||
@Override | ||
public void write( | ||
final JsonWriter jsonWriter, | ||
final AroundRadiusAll enumeration | ||
) throws IOException { | ||
jsonWriter.value(enumeration.getValue()); | ||
} | ||
|
||
@Override | ||
public AroundRadiusAll read(final JsonReader jsonReader) | ||
throws IOException { | ||
String value = jsonReader.nextString(); | ||
return AroundRadiusAll.fromValue(value); | ||
} | ||
} | ||
} |
Oops, something went wrong.