-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/renovateBaseBranch
- Loading branch information
Showing
16 changed files
with
230 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 94 additions & 0 deletions
94
...nt-java-2/algoliasearch-core/src/main/java/com/algolia/model/predict/ModelAttributes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
// This file is generated, manual changes will be lost - read more on | ||
// https://github.com/algolia/api-clients-automation. | ||
|
||
package com.algolia.model.predict; | ||
|
||
import com.fasterxml.jackson.annotation.*; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
/** ModelAttributes */ | ||
public class ModelAttributes { | ||
|
||
@JsonProperty("name") | ||
private String name; | ||
|
||
@JsonProperty("values") | ||
private List<String> values; | ||
|
||
public ModelAttributes setName(String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get name | ||
* | ||
* @return name | ||
*/ | ||
@javax.annotation.Nonnull | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
public ModelAttributes setValues(List<String> values) { | ||
this.values = values; | ||
return this; | ||
} | ||
|
||
public ModelAttributes addValues(String valuesItem) { | ||
if (this.values == null) { | ||
this.values = new ArrayList<>(); | ||
} | ||
this.values.add(valuesItem); | ||
return this; | ||
} | ||
|
||
/** | ||
* Get values | ||
* | ||
* @return values | ||
*/ | ||
@javax.annotation.Nullable | ||
public List<String> getValues() { | ||
return values; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
ModelAttributes modelAttributes = (ModelAttributes) o; | ||
return Objects.equals(this.name, modelAttributes.name) && Objects.equals(this.values, modelAttributes.values); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(name, values); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class ModelAttributes {\n"); | ||
sb.append(" name: ").append(toIndentedString(name)).append("\n"); | ||
sb.append(" values: ").append(toIndentedString(values)).append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces (except the first line). | ||
*/ | ||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.