Skip to content

Commit d4bbaac

Browse files
algolia-botwriteens
andcommitted
chore: generated code for commit bf539a7. [skip ci]
Co-authored-by: Adewusi Victor <[email protected]>
1 parent bf539a7 commit d4bbaac

31 files changed

+3061
-0
lines changed

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

Lines changed: 452 additions & 0 deletions
Large diffs are not rendered by default.
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+
/** ActivateModelInstanceResponse */
10+
public class ActivateModelInstanceResponse {
11+
12+
@JsonProperty("modelID")
13+
private String modelID;
14+
15+
@JsonProperty("updatedAt")
16+
private String updatedAt;
17+
18+
public ActivateModelInstanceResponse setModelID(String modelID) {
19+
this.modelID = modelID;
20+
return this;
21+
}
22+
23+
/**
24+
* The ID of the model.
25+
*
26+
* @return modelID
27+
*/
28+
@javax.annotation.Nonnull
29+
public String getModelID() {
30+
return modelID;
31+
}
32+
33+
public ActivateModelInstanceResponse setUpdatedAt(String updatedAt) {
34+
this.updatedAt = updatedAt;
35+
return this;
36+
}
37+
38+
/**
39+
* Date of last update (ISO-8601 format).
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+
ActivateModelInstanceResponse activateModelInstanceResponse = (ActivateModelInstanceResponse) o;
57+
return (
58+
Objects.equals(this.modelID, activateModelInstanceResponse.modelID) &&
59+
Objects.equals(this.updatedAt, activateModelInstanceResponse.updatedAt)
60+
);
61+
}
62+
63+
@Override
64+
public int hashCode() {
65+
return Objects.hash(modelID, updatedAt);
66+
}
67+
68+
@Override
69+
public String toString() {
70+
StringBuilder sb = new StringBuilder();
71+
sb.append("class ActivateModelInstanceResponse {\n");
72+
sb.append(" modelID: ").append(toIndentedString(modelID)).append("\n");
73+
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
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+
/** ActivateModelParams */
12+
public class ActivateModelParams {
13+
14+
@JsonProperty("type")
15+
private ModelsToRetrieve type;
16+
17+
@JsonProperty("name")
18+
private String name;
19+
20+
@JsonProperty("sourceID")
21+
private String sourceID;
22+
23+
@JsonProperty("index")
24+
private String index;
25+
26+
@JsonProperty("affinities")
27+
private List<String> affinities;
28+
29+
@JsonProperty("contentAttributes")
30+
private List<String> contentAttributes;
31+
32+
public ActivateModelParams setType(ModelsToRetrieve type) {
33+
this.type = type;
34+
return this;
35+
}
36+
37+
/**
38+
* Get type
39+
*
40+
* @return type
41+
*/
42+
@javax.annotation.Nonnull
43+
public ModelsToRetrieve getType() {
44+
return type;
45+
}
46+
47+
public ActivateModelParams setName(String name) {
48+
this.name = name;
49+
return this;
50+
}
51+
52+
/**
53+
* The model’s instance name.
54+
*
55+
* @return name
56+
*/
57+
@javax.annotation.Nonnull
58+
public String getName() {
59+
return name;
60+
}
61+
62+
public ActivateModelParams setSourceID(String sourceID) {
63+
this.sourceID = sourceID;
64+
return this;
65+
}
66+
67+
/**
68+
* The data source ID, as returned by the (external) sources API.
69+
*
70+
* @return sourceID
71+
*/
72+
@javax.annotation.Nonnull
73+
public String getSourceID() {
74+
return sourceID;
75+
}
76+
77+
public ActivateModelParams setIndex(String index) {
78+
this.index = index;
79+
return this;
80+
}
81+
82+
/**
83+
* The index name.
84+
*
85+
* @return index
86+
*/
87+
@javax.annotation.Nonnull
88+
public String getIndex() {
89+
return index;
90+
}
91+
92+
public ActivateModelParams setAffinities(List<String> affinities) {
93+
this.affinities = affinities;
94+
return this;
95+
}
96+
97+
public ActivateModelParams addAffinities(String affinitiesItem) {
98+
if (this.affinities == null) {
99+
this.affinities = new ArrayList<>();
100+
}
101+
this.affinities.add(affinitiesItem);
102+
return this;
103+
}
104+
105+
/**
106+
* Get affinities
107+
*
108+
* @return affinities
109+
*/
110+
@javax.annotation.Nullable
111+
public List<String> getAffinities() {
112+
return affinities;
113+
}
114+
115+
public ActivateModelParams setContentAttributes(List<String> contentAttributes) {
116+
this.contentAttributes = contentAttributes;
117+
return this;
118+
}
119+
120+
public ActivateModelParams addContentAttributes(String contentAttributesItem) {
121+
if (this.contentAttributes == null) {
122+
this.contentAttributes = new ArrayList<>();
123+
}
124+
this.contentAttributes.add(contentAttributesItem);
125+
return this;
126+
}
127+
128+
/**
129+
* Get contentAttributes
130+
*
131+
* @return contentAttributes
132+
*/
133+
@javax.annotation.Nullable
134+
public List<String> getContentAttributes() {
135+
return contentAttributes;
136+
}
137+
138+
@Override
139+
public boolean equals(Object o) {
140+
if (this == o) {
141+
return true;
142+
}
143+
if (o == null || getClass() != o.getClass()) {
144+
return false;
145+
}
146+
ActivateModelParams activateModelParams = (ActivateModelParams) o;
147+
return (
148+
Objects.equals(this.type, activateModelParams.type) &&
149+
Objects.equals(this.name, activateModelParams.name) &&
150+
Objects.equals(this.sourceID, activateModelParams.sourceID) &&
151+
Objects.equals(this.index, activateModelParams.index) &&
152+
Objects.equals(this.affinities, activateModelParams.affinities) &&
153+
Objects.equals(this.contentAttributes, activateModelParams.contentAttributes)
154+
);
155+
}
156+
157+
@Override
158+
public int hashCode() {
159+
return Objects.hash(type, name, sourceID, index, affinities, contentAttributes);
160+
}
161+
162+
@Override
163+
public String toString() {
164+
StringBuilder sb = new StringBuilder();
165+
sb.append("class ActivateModelParams {\n");
166+
sb.append(" type: ").append(toIndentedString(type)).append("\n");
167+
sb.append(" name: ").append(toIndentedString(name)).append("\n");
168+
sb.append(" sourceID: ").append(toIndentedString(sourceID)).append("\n");
169+
sb.append(" index: ").append(toIndentedString(index)).append("\n");
170+
sb.append(" affinities: ").append(toIndentedString(affinities)).append("\n");
171+
sb.append(" contentAttributes: ").append(toIndentedString(contentAttributes)).append("\n");
172+
sb.append("}");
173+
return sb.toString();
174+
}
175+
176+
/**
177+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
178+
*/
179+
private String toIndentedString(Object o) {
180+
if (o == null) {
181+
return "null";
182+
}
183+
return o.toString().replace("\n", "\n ");
184+
}
185+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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 com.fasterxml.jackson.annotation.JsonCreator;
8+
import com.fasterxml.jackson.annotation.JsonValue;
9+
10+
/** Gets or Sets compatibleSources */
11+
public enum CompatibleSources {
12+
BIGQUERY("bigquery");
13+
14+
private final String value;
15+
16+
CompatibleSources(String value) {
17+
this.value = value;
18+
}
19+
20+
@JsonValue
21+
public String getValue() {
22+
return value;
23+
}
24+
25+
@Override
26+
public String toString() {
27+
return String.valueOf(value);
28+
}
29+
30+
@JsonCreator
31+
public static CompatibleSources fromValue(String value) {
32+
for (CompatibleSources b : CompatibleSources.values()) {
33+
if (b.value.equals(value)) {
34+
return b;
35+
}
36+
}
37+
throw new IllegalArgumentException("Unexpected value '" + value + "'");
38+
}
39+
}

0 commit comments

Comments
 (0)