Skip to content

Commit b276550

Browse files
chore: generated code for commit 07a2e93. [skip ci]
Co-authored-by: Ben Greenbank <[email protected]>
1 parent 07a2e93 commit b276550

31 files changed

+2919
-0
lines changed

Diff for: clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/api/PredictClient.java

+467
Large diffs are not rendered by default.
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+
/** AllUpdateSegmentParams */
10+
public class AllUpdateSegmentParams {
11+
12+
@JsonProperty("name")
13+
private String name;
14+
15+
@JsonProperty("conditions")
16+
private String conditions;
17+
18+
public AllUpdateSegmentParams setName(String name) {
19+
this.name = name;
20+
return this;
21+
}
22+
23+
/**
24+
* The name or description of the segment.
25+
*
26+
* @return name
27+
*/
28+
@javax.annotation.Nullable
29+
public String getName() {
30+
return name;
31+
}
32+
33+
public AllUpdateSegmentParams setConditions(String conditions) {
34+
this.conditions = conditions;
35+
return this;
36+
}
37+
38+
/**
39+
* The filters that define the segment, defined in the same way as filters for Rules.
40+
*
41+
* @return conditions
42+
*/
43+
@javax.annotation.Nullable
44+
public String getConditions() {
45+
return conditions;
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+
AllUpdateSegmentParams allUpdateSegmentParams = (AllUpdateSegmentParams) o;
57+
return Objects.equals(this.name, allUpdateSegmentParams.name) && Objects.equals(this.conditions, allUpdateSegmentParams.conditions);
58+
}
59+
60+
@Override
61+
public int hashCode() {
62+
return Objects.hash(name, conditions);
63+
}
64+
65+
@Override
66+
public String toString() {
67+
StringBuilder sb = new StringBuilder();
68+
sb.append("class AllUpdateSegmentParams {\n");
69+
sb.append(" name: ").append(toIndentedString(name)).append("\n");
70+
sb.append(" conditions: ").append(toIndentedString(conditions)).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+
}
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+
/** CreateSegmentParams */
10+
public class CreateSegmentParams {
11+
12+
@JsonProperty("name")
13+
private String name;
14+
15+
@JsonProperty("conditions")
16+
private String conditions;
17+
18+
public CreateSegmentParams setName(String name) {
19+
this.name = name;
20+
return this;
21+
}
22+
23+
/**
24+
* The name or description of the segment.
25+
*
26+
* @return name
27+
*/
28+
@javax.annotation.Nonnull
29+
public String getName() {
30+
return name;
31+
}
32+
33+
public CreateSegmentParams setConditions(String conditions) {
34+
this.conditions = conditions;
35+
return this;
36+
}
37+
38+
/**
39+
* The filters that define the segment, defined in the same way as filters for Rules.
40+
*
41+
* @return conditions
42+
*/
43+
@javax.annotation.Nonnull
44+
public String getConditions() {
45+
return conditions;
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+
CreateSegmentParams createSegmentParams = (CreateSegmentParams) o;
57+
return Objects.equals(this.name, createSegmentParams.name) && Objects.equals(this.conditions, createSegmentParams.conditions);
58+
}
59+
60+
@Override
61+
public int hashCode() {
62+
return Objects.hash(name, conditions);
63+
}
64+
65+
@Override
66+
public String toString() {
67+
StringBuilder sb = new StringBuilder();
68+
sb.append("class CreateSegmentParams {\n");
69+
sb.append(" name: ").append(toIndentedString(name)).append("\n");
70+
sb.append(" conditions: ").append(toIndentedString(conditions)).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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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+
/** CreateSegmentResponse */
10+
public class CreateSegmentResponse {
11+
12+
@JsonProperty("segmentID")
13+
private String segmentID;
14+
15+
@JsonProperty("updatedAt")
16+
private String updatedAt;
17+
18+
public CreateSegmentResponse setSegmentID(String segmentID) {
19+
this.segmentID = segmentID;
20+
return this;
21+
}
22+
23+
/**
24+
* The ID of the segment.
25+
*
26+
* @return segmentID
27+
*/
28+
@javax.annotation.Nonnull
29+
public String getSegmentID() {
30+
return segmentID;
31+
}
32+
33+
public CreateSegmentResponse setUpdatedAt(String updatedAt) {
34+
this.updatedAt = updatedAt;
35+
return this;
36+
}
37+
38+
/**
39+
* The date and time at which the segment was last updated.
40+
*
41+
* @return updatedAt
42+
*/
43+
@javax.annotation.Nonnull
44+
public String getUpdatedAt() {
45+
return updatedAt;
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+
CreateSegmentResponse createSegmentResponse = (CreateSegmentResponse) o;
57+
return (
58+
Objects.equals(this.segmentID, createSegmentResponse.segmentID) && Objects.equals(this.updatedAt, createSegmentResponse.updatedAt)
59+
);
60+
}
61+
62+
@Override
63+
public int hashCode() {
64+
return Objects.hash(segmentID, updatedAt);
65+
}
66+
67+
@Override
68+
public String toString() {
69+
StringBuilder sb = new StringBuilder();
70+
sb.append("class CreateSegmentResponse {\n");
71+
sb.append(" segmentID: ").append(toIndentedString(segmentID)).append("\n");
72+
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
73+
sb.append("}");
74+
return sb.toString();
75+
}
76+
77+
/**
78+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
79+
*/
80+
private String toIndentedString(Object o) {
81+
if (o == null) {
82+
return "null";
83+
}
84+
return o.toString().replace("\n", "\n ");
85+
}
86+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
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+
/** DeleteSegmentResponse */
10+
public class DeleteSegmentResponse {
11+
12+
@JsonProperty("segmentID")
13+
private String segmentID;
14+
15+
@JsonProperty("deletedUntil")
16+
private String deletedUntil;
17+
18+
public DeleteSegmentResponse setSegmentID(String segmentID) {
19+
this.segmentID = segmentID;
20+
return this;
21+
}
22+
23+
/**
24+
* The ID of the segment.
25+
*
26+
* @return segmentID
27+
*/
28+
@javax.annotation.Nonnull
29+
public String getSegmentID() {
30+
return segmentID;
31+
}
32+
33+
public DeleteSegmentResponse setDeletedUntil(String deletedUntil) {
34+
this.deletedUntil = deletedUntil;
35+
return this;
36+
}
37+
38+
/**
39+
* The date and time at which the segment will be re-ingested.
40+
*
41+
* @return deletedUntil
42+
*/
43+
@javax.annotation.Nonnull
44+
public String getDeletedUntil() {
45+
return deletedUntil;
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+
DeleteSegmentResponse deleteSegmentResponse = (DeleteSegmentResponse) o;
57+
return (
58+
Objects.equals(this.segmentID, deleteSegmentResponse.segmentID) &&
59+
Objects.equals(this.deletedUntil, deleteSegmentResponse.deletedUntil)
60+
);
61+
}
62+
63+
@Override
64+
public int hashCode() {
65+
return Objects.hash(segmentID, deletedUntil);
66+
}
67+
68+
@Override
69+
public String toString() {
70+
StringBuilder sb = new StringBuilder();
71+
sb.append("class DeleteSegmentResponse {\n");
72+
sb.append(" segmentID: ").append(toIndentedString(segmentID)).append("\n");
73+
sb.append(" deletedUntil: ").append(toIndentedString(deletedUntil)).append("\n");
74+
sb.append("}");
75+
return sb.toString();
76+
}
77+
78+
/**
79+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
80+
*/
81+
private String toIndentedString(Object o) {
82+
if (o == null) {
83+
return "null";
84+
}
85+
return o.toString().replace("\n", "\n ");
86+
}
87+
}

0 commit comments

Comments
 (0)