Skip to content

Commit cdeba97

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

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class ModelInstance {
2727
private String index;
2828

2929
@JsonProperty("modelAttributes")
30-
private ModelAttributes modelAttributes;
30+
private List<ModelAttributes> modelAttributes = new ArrayList<>();
3131

3232
@JsonProperty("contentAttributes")
3333
private List<String> contentAttributes = new ArrayList<>();
@@ -119,18 +119,23 @@ public String getIndex() {
119119
return index;
120120
}
121121

122-
public ModelInstance setModelAttributes(ModelAttributes modelAttributes) {
122+
public ModelInstance setModelAttributes(List<ModelAttributes> modelAttributes) {
123123
this.modelAttributes = modelAttributes;
124124
return this;
125125
}
126126

127+
public ModelInstance addModelAttributes(ModelAttributes modelAttributesItem) {
128+
this.modelAttributes.add(modelAttributesItem);
129+
return this;
130+
}
131+
127132
/**
128133
* Get modelAttributes
129134
*
130135
* @return modelAttributes
131136
*/
132137
@javax.annotation.Nonnull
133-
public ModelAttributes getModelAttributes() {
138+
public List<ModelAttributes> getModelAttributes() {
134139
return modelAttributes;
135140
}
136141

clients/algoliasearch-client-javascript/packages/predict/model/modelInstance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export type ModelInstance = {
2323

2424
index: string;
2525

26-
modelAttributes: ModelAttributes;
26+
modelAttributes: ModelAttributes[];
2727

2828
contentAttributes: string[];
2929

specs/bundled/predict.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,9 @@ components:
335335
index:
336336
type: string
337337
modelAttributes:
338-
$ref: '#/components/schemas/modelAttributes'
338+
type: array
339+
items:
340+
$ref: '#/components/schemas/modelAttributes'
339341
contentAttributes:
340342
type: array
341343
items:

0 commit comments

Comments
 (0)