Skip to content

Commit

Permalink
chore: generated code for commit 8151e94. [skip ci]
Browse files Browse the repository at this point in the history
Co-authored-by: Adewusi Victor <glove.adewusi@gmail.com>
  • Loading branch information
algolia-bot and writeens committed Oct 4, 2022
1 parent 8151e94 commit 1a23b2c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ public class ModelInstance {
private String index;

@JsonProperty("modelAttributes")
private List<ModelAttributes> modelAttributes = new ArrayList<>();
private List<ModelAttributes> modelAttributes;

@JsonProperty("contentAttributes")
private List<String> contentAttributes = new ArrayList<>();
private List<String> contentAttributes;

@JsonProperty("lastTrained")
private String lastTrained;
Expand Down Expand Up @@ -125,6 +125,9 @@ public ModelInstance setModelAttributes(List<ModelAttributes> modelAttributes) {
}

public ModelInstance addModelAttributes(ModelAttributes modelAttributesItem) {
if (this.modelAttributes == null) {
this.modelAttributes = new ArrayList<>();
}
this.modelAttributes.add(modelAttributesItem);
return this;
}
Expand All @@ -134,7 +137,7 @@ public ModelInstance addModelAttributes(ModelAttributes modelAttributesItem) {
*
* @return modelAttributes
*/
@javax.annotation.Nonnull
@javax.annotation.Nullable
public List<ModelAttributes> getModelAttributes() {
return modelAttributes;
}
Expand All @@ -145,6 +148,9 @@ public ModelInstance setContentAttributes(List<String> contentAttributes) {
}

public ModelInstance addContentAttributes(String contentAttributesItem) {
if (this.contentAttributes == null) {
this.contentAttributes = new ArrayList<>();
}
this.contentAttributes.add(contentAttributesItem);
return this;
}
Expand All @@ -154,7 +160,7 @@ public ModelInstance addContentAttributes(String contentAttributesItem) {
*
* @return contentAttributes
*/
@javax.annotation.Nonnull
@javax.annotation.Nullable
public List<String> getContentAttributes() {
return contentAttributes;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export type ModelInstance = {

index: string;

modelAttributes: ModelAttributes[];
modelAttributes?: ModelAttributes[];

contentAttributes: string[];
contentAttributes?: string[];

/**
* The date and time this model instance was last trained.
Expand Down
2 changes: 0 additions & 2 deletions specs/bundled/predict.yml
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,6 @@ components:
- type
- sourceID
- index
- modelAttributes
- contentAttributes
- lastTrained
- lastInference
- modelStatus
Expand Down

0 comments on commit 1a23b2c

Please sign in to comment.