Skip to content

Commit 4a18753

Browse files
algolia-botClaraMullermillotpshortcuts
committed
feat(specs): merge composition & composition-full (generated)
algolia/api-clients-automation#5333 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Pierre Millot <[email protected]> Co-authored-by: shortcuts <[email protected]>
1 parent 8054d21 commit 4a18753

Some content is hidden

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

52 files changed

+7391
-0
lines changed

algoliasearch/src/main/java/com/algolia/api/CompositionClient.java

Lines changed: 1207 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
2+
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
3+
4+
package com.algolia.model.composition;
5+
6+
import com.fasterxml.jackson.annotation.*;
7+
import com.fasterxml.jackson.databind.annotation.*;
8+
9+
/** Type of Composition Batch operation. */
10+
public enum Action {
11+
UPSERT("upsert"),
12+
13+
DELETE("delete");
14+
15+
private final String value;
16+
17+
Action(String value) {
18+
this.value = value;
19+
}
20+
21+
@JsonValue
22+
public String getValue() {
23+
return value;
24+
}
25+
26+
@Override
27+
public String toString() {
28+
return String.valueOf(value);
29+
}
30+
31+
@JsonCreator
32+
public static Action fromValue(String value) {
33+
for (Action b : Action.values()) {
34+
if (b.value.equals(value)) {
35+
return b;
36+
}
37+
}
38+
throw new IllegalArgumentException("Unexpected value '" + value + "'");
39+
}
40+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
2+
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
3+
4+
package com.algolia.model.composition;
5+
6+
import com.fasterxml.jackson.annotation.*;
7+
import com.fasterxml.jackson.databind.annotation.*;
8+
9+
/** Gets or Sets advancedSyntaxFeatures */
10+
public enum AdvancedSyntaxFeatures {
11+
EXACT_PHRASE("exactPhrase"),
12+
13+
EXCLUDE_WORDS("excludeWords");
14+
15+
private final String value;
16+
17+
AdvancedSyntaxFeatures(String value) {
18+
this.value = value;
19+
}
20+
21+
@JsonValue
22+
public String getValue() {
23+
return value;
24+
}
25+
26+
@Override
27+
public String toString() {
28+
return String.valueOf(value);
29+
}
30+
31+
@JsonCreator
32+
public static AdvancedSyntaxFeatures fromValue(String value) {
33+
for (AdvancedSyntaxFeatures b : AdvancedSyntaxFeatures.values()) {
34+
if (b.value.equals(value)) {
35+
return b;
36+
}
37+
}
38+
throw new IllegalArgumentException("Unexpected value '" + value + "'");
39+
}
40+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
2+
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
3+
4+
package com.algolia.model.composition;
5+
6+
import com.fasterxml.jackson.annotation.*;
7+
import com.fasterxml.jackson.databind.annotation.*;
8+
9+
/** Gets or Sets alternativesAsExact */
10+
public enum AlternativesAsExact {
11+
IGNORE_PLURALS("ignorePlurals"),
12+
13+
SINGLE_WORD_SYNONYM("singleWordSynonym"),
14+
15+
MULTI_WORDS_SYNONYM("multiWordsSynonym"),
16+
17+
IGNORE_CONJUGATIONS("ignoreConjugations");
18+
19+
private final String value;
20+
21+
AlternativesAsExact(String value) {
22+
this.value = value;
23+
}
24+
25+
@JsonValue
26+
public String getValue() {
27+
return value;
28+
}
29+
30+
@Override
31+
public String toString() {
32+
return String.valueOf(value);
33+
}
34+
35+
@JsonCreator
36+
public static AlternativesAsExact fromValue(String value) {
37+
for (AlternativesAsExact b : AlternativesAsExact.values()) {
38+
if (b.value.equals(value)) {
39+
return b;
40+
}
41+
}
42+
throw new IllegalArgumentException("Unexpected value '" + value + "'");
43+
}
44+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
2+
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
3+
4+
package com.algolia.model.composition;
5+
6+
import com.fasterxml.jackson.annotation.*;
7+
import com.fasterxml.jackson.databind.annotation.*;
8+
9+
/**
10+
* Which part of the search query the pattern should match: - `startsWith`. The pattern must match
11+
* the beginning of the query. - `endsWith`. The pattern must match the end of the query. - `is`.
12+
* The pattern must match the query exactly. - `contains`. The pattern must match anywhere in the
13+
* query. Empty queries are only allowed as patterns with `anchoring: is`.
14+
*/
15+
public enum Anchoring {
16+
IS("is"),
17+
18+
STARTS_WITH("startsWith"),
19+
20+
ENDS_WITH("endsWith"),
21+
22+
CONTAINS("contains");
23+
24+
private final String value;
25+
26+
Anchoring(String value) {
27+
this.value = value;
28+
}
29+
30+
@JsonValue
31+
public String getValue() {
32+
return value;
33+
}
34+
35+
@Override
36+
public String toString() {
37+
return String.valueOf(value);
38+
}
39+
40+
@JsonCreator
41+
public static Anchoring fromValue(String value) {
42+
for (Anchoring b : Anchoring.values()) {
43+
if (b.value.equals(value)) {
44+
return b;
45+
}
46+
}
47+
throw new IllegalArgumentException("Unexpected value '" + value + "'");
48+
}
49+
}

0 commit comments

Comments
 (0)