Skip to content

Commit 20b74a3

Browse files
algolia-botFluf22
andcommitted
chore(website): exclude schema from generated variables file (generated)
algolia/api-clients-automation#5306 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]>
1 parent ae6484d commit 20b74a3

File tree

3 files changed

+189
-2
lines changed

3 files changed

+189
-2
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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+
import java.util.ArrayList;
9+
import java.util.List;
10+
import java.util.Objects;
11+
12+
/** ExternalInjectedItem */
13+
public class ExternalInjectedItem {
14+
15+
@JsonProperty("items")
16+
private List<ExternalInjection> items = new ArrayList<>();
17+
18+
public ExternalInjectedItem setItems(List<ExternalInjection> items) {
19+
this.items = items;
20+
return this;
21+
}
22+
23+
public ExternalInjectedItem addItems(ExternalInjection itemsItem) {
24+
this.items.add(itemsItem);
25+
return this;
26+
}
27+
28+
/** Get items */
29+
@javax.annotation.Nonnull
30+
public List<ExternalInjection> getItems() {
31+
return items;
32+
}
33+
34+
@Override
35+
public boolean equals(Object o) {
36+
if (this == o) {
37+
return true;
38+
}
39+
if (o == null || getClass() != o.getClass()) {
40+
return false;
41+
}
42+
ExternalInjectedItem externalInjectedItem = (ExternalInjectedItem) o;
43+
return Objects.equals(this.items, externalInjectedItem.items);
44+
}
45+
46+
@Override
47+
public int hashCode() {
48+
return Objects.hash(items);
49+
}
50+
51+
@Override
52+
public String toString() {
53+
StringBuilder sb = new StringBuilder();
54+
sb.append("class ExternalInjectedItem {\n");
55+
sb.append(" items: ").append(toIndentedString(items)).append("\n");
56+
sb.append("}");
57+
return sb.toString();
58+
}
59+
60+
/**
61+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
62+
*/
63+
private String toIndentedString(Object o) {
64+
if (o == null) {
65+
return "null";
66+
}
67+
return o.toString().replace("\n", "\n ");
68+
}
69+
}
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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+
import java.util.HashMap;
9+
import java.util.Map;
10+
import java.util.Objects;
11+
12+
/** ExternalInjection */
13+
public class ExternalInjection {
14+
15+
@JsonProperty("objectID")
16+
private String objectID;
17+
18+
@JsonProperty("metadata")
19+
private Map<String, Object> metadata;
20+
21+
public ExternalInjection setObjectID(String objectID) {
22+
this.objectID = objectID;
23+
return this;
24+
}
25+
26+
/** An objectID injected into an external source. */
27+
@javax.annotation.Nonnull
28+
public String getObjectID() {
29+
return objectID;
30+
}
31+
32+
public ExternalInjection setMetadata(Map<String, Object> metadata) {
33+
this.metadata = metadata;
34+
return this;
35+
}
36+
37+
public ExternalInjection putMetadata(String key, Object metadataItem) {
38+
if (this.metadata == null) {
39+
this.metadata = new HashMap<>();
40+
}
41+
this.metadata.put(key, metadataItem);
42+
return this;
43+
}
44+
45+
/**
46+
* User-defined key-values that will be added to the injected item in the response. This is
47+
* identical to Hits metadata defined in Composition or Composition Rule, with the benefit of
48+
* being set at runtime.
49+
*/
50+
@javax.annotation.Nullable
51+
public Map<String, Object> getMetadata() {
52+
return metadata;
53+
}
54+
55+
@Override
56+
public boolean equals(Object o) {
57+
if (this == o) {
58+
return true;
59+
}
60+
if (o == null || getClass() != o.getClass()) {
61+
return false;
62+
}
63+
ExternalInjection externalInjection = (ExternalInjection) o;
64+
return Objects.equals(this.objectID, externalInjection.objectID) && Objects.equals(this.metadata, externalInjection.metadata);
65+
}
66+
67+
@Override
68+
public int hashCode() {
69+
return Objects.hash(objectID, metadata);
70+
}
71+
72+
@Override
73+
public String toString() {
74+
StringBuilder sb = new StringBuilder();
75+
sb.append("class ExternalInjection {\n");
76+
sb.append(" objectID: ").append(toIndentedString(objectID)).append("\n");
77+
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
78+
sb.append("}");
79+
return sb.toString();
80+
}
81+
82+
/**
83+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
84+
*/
85+
private String toIndentedString(Object o) {
86+
if (o == null) {
87+
return "null";
88+
}
89+
return o.toString().replace("\n", "\n ");
90+
}
91+
}

algoliasearch/src/main/java/com/algolia/model/composition/Params.java

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
import com.fasterxml.jackson.annotation.*;
77
import com.fasterxml.jackson.databind.annotation.*;
88
import java.util.ArrayList;
9+
import java.util.HashMap;
910
import java.util.List;
11+
import java.util.Map;
1012
import java.util.Objects;
1113

1214
/** Params */
@@ -90,6 +92,9 @@ public class Params {
9092
@JsonProperty("enableReRanking")
9193
private Boolean enableReRanking;
9294

95+
@JsonProperty("injectedItems")
96+
private Map<String, ExternalInjectedItem> injectedItems;
97+
9398
public Params setQuery(String query) {
9499
this.query = query;
95100
return this;
@@ -492,6 +497,25 @@ public Boolean getEnableReRanking() {
492497
return enableReRanking;
493498
}
494499

500+
public Params setInjectedItems(Map<String, ExternalInjectedItem> injectedItems) {
501+
this.injectedItems = injectedItems;
502+
return this;
503+
}
504+
505+
public Params putInjectedItems(String key, ExternalInjectedItem injectedItemsItem) {
506+
if (this.injectedItems == null) {
507+
this.injectedItems = new HashMap<>();
508+
}
509+
this.injectedItems.put(key, injectedItemsItem);
510+
return this;
511+
}
512+
513+
/** A list of extenrally injected objectID groups into from an external source. */
514+
@javax.annotation.Nullable
515+
public Map<String, ExternalInjectedItem> getInjectedItems() {
516+
return injectedItems;
517+
}
518+
495519
@Override
496520
public boolean equals(Object o) {
497521
if (this == o) {
@@ -527,7 +551,8 @@ public boolean equals(Object o) {
527551
Objects.equals(this.analytics, params.analytics) &&
528552
Objects.equals(this.analyticsTags, params.analyticsTags) &&
529553
Objects.equals(this.enableABTest, params.enableABTest) &&
530-
Objects.equals(this.enableReRanking, params.enableReRanking)
554+
Objects.equals(this.enableReRanking, params.enableReRanking) &&
555+
Objects.equals(this.injectedItems, params.injectedItems)
531556
);
532557
}
533558

@@ -559,7 +584,8 @@ public int hashCode() {
559584
analytics,
560585
analyticsTags,
561586
enableABTest,
562-
enableReRanking
587+
enableReRanking,
588+
injectedItems
563589
);
564590
}
565591

@@ -593,6 +619,7 @@ public String toString() {
593619
sb.append(" analyticsTags: ").append(toIndentedString(analyticsTags)).append("\n");
594620
sb.append(" enableABTest: ").append(toIndentedString(enableABTest)).append("\n");
595621
sb.append(" enableReRanking: ").append(toIndentedString(enableReRanking)).append("\n");
622+
sb.append(" injectedItems: ").append(toIndentedString(injectedItems)).append("\n");
596623
sb.append("}");
597624
return sb.toString();
598625
}

0 commit comments

Comments
 (0)