Skip to content

Commit 3d832ea

Browse files
chore: generated code for commit 14d2225. [skip ci]
Co-authored-by: François Chalifour <[email protected]>
1 parent 14d2225 commit 3d832ea

File tree

18 files changed

+831
-221
lines changed

18 files changed

+831
-221
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
// This file is generated, manual changes will be lost - read more on
2+
// https://github.com/algolia/api-clients-automation.
3+
4+
package com.algolia.model.predict;
5+
6+
import com.fasterxml.jackson.annotation.*;
7+
import java.util.ArrayList;
8+
import java.util.List;
9+
import java.util.Objects;
10+
11+
/** Prediction for the **affinities** model. */
12+
public class AffinitiesSuccess {
13+
14+
@JsonProperty("value")
15+
private List<Affinity> value = new ArrayList<>();
16+
17+
@JsonProperty("lastUpdatedAt")
18+
private String lastUpdatedAt;
19+
20+
public AffinitiesSuccess setValue(List<Affinity> value) {
21+
this.value = value;
22+
return this;
23+
}
24+
25+
public AffinitiesSuccess addValue(Affinity valueItem) {
26+
this.value.add(valueItem);
27+
return this;
28+
}
29+
30+
/**
31+
* Get value
32+
*
33+
* @return value
34+
*/
35+
@javax.annotation.Nonnull
36+
public List<Affinity> getValue() {
37+
return value;
38+
}
39+
40+
public AffinitiesSuccess setLastUpdatedAt(String lastUpdatedAt) {
41+
this.lastUpdatedAt = lastUpdatedAt;
42+
return this;
43+
}
44+
45+
/**
46+
* Get lastUpdatedAt
47+
*
48+
* @return lastUpdatedAt
49+
*/
50+
@javax.annotation.Nonnull
51+
public String getLastUpdatedAt() {
52+
return lastUpdatedAt;
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+
AffinitiesSuccess affinitiesSuccess = (AffinitiesSuccess) o;
64+
return Objects.equals(this.value, affinitiesSuccess.value) && Objects.equals(this.lastUpdatedAt, affinitiesSuccess.lastUpdatedAt);
65+
}
66+
67+
@Override
68+
public int hashCode() {
69+
return Objects.hash(value, lastUpdatedAt);
70+
}
71+
72+
@Override
73+
public String toString() {
74+
StringBuilder sb = new StringBuilder();
75+
sb.append("class AffinitiesSuccess {\n");
76+
sb.append(" value: ").append(toIndentedString(value)).append("\n");
77+
sb.append(" lastUpdatedAt: ").append(toIndentedString(lastUpdatedAt)).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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
// This file is generated, manual changes will be lost - read more on
2+
// https://github.com/algolia/api-clients-automation.
3+
4+
package com.algolia.model.predict;
5+
6+
import com.fasterxml.jackson.annotation.*;
7+
import java.util.Objects;
8+
9+
/** The error when the model is not available. */
10+
public class Error {
11+
12+
@JsonProperty("error")
13+
private String error;
14+
15+
public Error setError(String error) {
16+
this.error = error;
17+
return this;
18+
}
19+
20+
/**
21+
* Get error
22+
*
23+
* @return error
24+
*/
25+
@javax.annotation.Nonnull
26+
public String getError() {
27+
return error;
28+
}
29+
30+
@Override
31+
public boolean equals(Object o) {
32+
if (this == o) {
33+
return true;
34+
}
35+
if (o == null || getClass() != o.getClass()) {
36+
return false;
37+
}
38+
Error error = (Error) o;
39+
return Objects.equals(this.error, error.error);
40+
}
41+
42+
@Override
43+
public int hashCode() {
44+
return Objects.hash(error);
45+
}
46+
47+
@Override
48+
public String toString() {
49+
StringBuilder sb = new StringBuilder();
50+
sb.append("class Error {\n");
51+
sb.append(" error: ").append(toIndentedString(error)).append("\n");
52+
sb.append("}");
53+
return sb.toString();
54+
}
55+
56+
/**
57+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
58+
*/
59+
private String toIndentedString(Object o) {
60+
if (o == null) {
61+
return "null";
62+
}
63+
return o.toString().replace("\n", "\n ");
64+
}
65+
}
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@
99
import java.util.Objects;
1010

1111
/** Prediction for the **funnel_stage** model. */
12-
public class PredictionsFunnelStage {
12+
public class FunnelStageSuccess {
1313

1414
@JsonProperty("value")
1515
private List<FunnelStage> value = new ArrayList<>();
1616

1717
@JsonProperty("lastUpdatedAt")
1818
private String lastUpdatedAt;
1919

20-
public PredictionsFunnelStage setValue(List<FunnelStage> value) {
20+
public FunnelStageSuccess setValue(List<FunnelStage> value) {
2121
this.value = value;
2222
return this;
2323
}
2424

25-
public PredictionsFunnelStage addValue(FunnelStage valueItem) {
25+
public FunnelStageSuccess addValue(FunnelStage valueItem) {
2626
this.value.add(valueItem);
2727
return this;
2828
}
@@ -37,7 +37,7 @@ public List<FunnelStage> getValue() {
3737
return value;
3838
}
3939

40-
public PredictionsFunnelStage setLastUpdatedAt(String lastUpdatedAt) {
40+
public FunnelStageSuccess setLastUpdatedAt(String lastUpdatedAt) {
4141
this.lastUpdatedAt = lastUpdatedAt;
4242
return this;
4343
}
@@ -60,10 +60,8 @@ public boolean equals(Object o) {
6060
if (o == null || getClass() != o.getClass()) {
6161
return false;
6262
}
63-
PredictionsFunnelStage predictionsFunnelStage = (PredictionsFunnelStage) o;
64-
return (
65-
Objects.equals(this.value, predictionsFunnelStage.value) && Objects.equals(this.lastUpdatedAt, predictionsFunnelStage.lastUpdatedAt)
66-
);
63+
FunnelStageSuccess funnelStageSuccess = (FunnelStageSuccess) o;
64+
return Objects.equals(this.value, funnelStageSuccess.value) && Objects.equals(this.lastUpdatedAt, funnelStageSuccess.lastUpdatedAt);
6765
}
6866

6967
@Override
@@ -74,7 +72,7 @@ public int hashCode() {
7472
@Override
7573
public String toString() {
7674
StringBuilder sb = new StringBuilder();
77-
sb.append("class PredictionsFunnelStage {\n");
75+
sb.append("class FunnelStageSuccess {\n");
7876
sb.append(" value: ").append(toIndentedString(value)).append("\n");
7977
sb.append(" lastUpdatedAt: ").append(toIndentedString(lastUpdatedAt)).append("\n");
8078
sb.append("}");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
// This file is generated, manual changes will be lost - read more on
2+
// https://github.com/algolia/api-clients-automation.
3+
4+
package com.algolia.model.predict;
5+
6+
import com.fasterxml.jackson.annotation.*;
7+
import java.util.Objects;
8+
9+
/** Prediction for the **order_value** model. */
10+
public class OrderValueSuccess {
11+
12+
@JsonProperty("value")
13+
private Double value;
14+
15+
@JsonProperty("lastUpdatedAt")
16+
private String lastUpdatedAt;
17+
18+
public OrderValueSuccess setValue(Double value) {
19+
this.value = value;
20+
return this;
21+
}
22+
23+
/**
24+
* Get value minimum: 0
25+
*
26+
* @return value
27+
*/
28+
@javax.annotation.Nonnull
29+
public Double getValue() {
30+
return value;
31+
}
32+
33+
public OrderValueSuccess setLastUpdatedAt(String lastUpdatedAt) {
34+
this.lastUpdatedAt = lastUpdatedAt;
35+
return this;
36+
}
37+
38+
/**
39+
* Get lastUpdatedAt
40+
*
41+
* @return lastUpdatedAt
42+
*/
43+
@javax.annotation.Nonnull
44+
public String getLastUpdatedAt() {
45+
return lastUpdatedAt;
46+
}
47+
48+
@Override
49+
public boolean equals(Object o) {
50+
if (this == o) {
51+
return true;
52+
}
53+
if (o == null || getClass() != o.getClass()) {
54+
return false;
55+
}
56+
OrderValueSuccess orderValueSuccess = (OrderValueSuccess) o;
57+
return Objects.equals(this.value, orderValueSuccess.value) && Objects.equals(this.lastUpdatedAt, orderValueSuccess.lastUpdatedAt);
58+
}
59+
60+
@Override
61+
public int hashCode() {
62+
return Objects.hash(value, lastUpdatedAt);
63+
}
64+
65+
@Override
66+
public String toString() {
67+
StringBuilder sb = new StringBuilder();
68+
sb.append("class OrderValueSuccess {\n");
69+
sb.append(" value: ").append(toIndentedString(value)).append("\n");
70+
sb.append(" lastUpdatedAt: ").append(toIndentedString(lastUpdatedAt)).append("\n");
71+
sb.append("}");
72+
return sb.toString();
73+
}
74+
75+
/**
76+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
77+
*/
78+
private String toIndentedString(Object o) {
79+
if (o == null) {
80+
return "null";
81+
}
82+
return o.toString().replace("\n", "\n ");
83+
}
84+
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
public class Predictions {
1111

1212
@JsonProperty("funnel_stage")
13-
private PredictionsFunnelStage funnelStage;
13+
private PredictionsfunnelStage funnelStage;
1414

1515
@JsonProperty("order_value")
1616
private PredictionsOrderValue orderValue;
1717

1818
@JsonProperty("affinities")
1919
private PredictionsAffinities affinities;
2020

21-
public Predictions setFunnelStage(PredictionsFunnelStage funnelStage) {
21+
public Predictions setFunnelStage(PredictionsfunnelStage funnelStage) {
2222
this.funnelStage = funnelStage;
2323
return this;
2424
}
@@ -29,7 +29,7 @@ public Predictions setFunnelStage(PredictionsFunnelStage funnelStage) {
2929
* @return funnelStage
3030
*/
3131
@javax.annotation.Nullable
32-
public PredictionsFunnelStage getFunnelStage() {
32+
public PredictionsfunnelStage getFunnelStage() {
3333
return funnelStage;
3434
}
3535

0 commit comments

Comments
 (0)