File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/predict
algoliasearch-client-javascript/packages/predict/model Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public class ModelInstance {
27
27
private String index ;
28
28
29
29
@ JsonProperty ("modelAttributes" )
30
- private ModelAttributes modelAttributes ;
30
+ private List < ModelAttributes > modelAttributes = new ArrayList <>() ;
31
31
32
32
@ JsonProperty ("contentAttributes" )
33
33
private List <String > contentAttributes = new ArrayList <>();
@@ -119,18 +119,23 @@ public String getIndex() {
119
119
return index ;
120
120
}
121
121
122
- public ModelInstance setModelAttributes (ModelAttributes modelAttributes ) {
122
+ public ModelInstance setModelAttributes (List < ModelAttributes > modelAttributes ) {
123
123
this .modelAttributes = modelAttributes ;
124
124
return this ;
125
125
}
126
126
127
+ public ModelInstance addModelAttributes (ModelAttributes modelAttributesItem ) {
128
+ this .modelAttributes .add (modelAttributesItem );
129
+ return this ;
130
+ }
131
+
127
132
/**
128
133
* Get modelAttributes
129
134
*
130
135
* @return modelAttributes
131
136
*/
132
137
@ javax .annotation .Nonnull
133
- public ModelAttributes getModelAttributes () {
138
+ public List < ModelAttributes > getModelAttributes () {
134
139
return modelAttributes ;
135
140
}
136
141
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export type ModelInstance = {
23
23
24
24
index : string ;
25
25
26
- modelAttributes : ModelAttributes ;
26
+ modelAttributes : ModelAttributes [ ] ;
27
27
28
28
contentAttributes : string [ ] ;
29
29
Original file line number Diff line number Diff line change @@ -335,7 +335,9 @@ components:
335
335
index :
336
336
type : string
337
337
modelAttributes :
338
- $ref : ' #/components/schemas/modelAttributes'
338
+ type : array
339
+ items :
340
+ $ref : ' #/components/schemas/modelAttributes'
339
341
contentAttributes :
340
342
type : array
341
343
items :
You can’t perform that action at this time.
0 commit comments