com.volcengine.model.maas.api.v2.EmbeddingsReq Maven / Gradle / Ivy
Show all versions of volc-sdk-java Show documentation
package com.volcengine.model.maas.api.v2;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* MaasEmbeddingsRequest
*
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"input",
"encoding_format",
"user"
})
@Generated("jsonschema2pojo")
public class EmbeddingsReq {
/**
* Input
*
*
*
*/
@JsonProperty("input")
private List input = new ArrayList();
/**
* Encoding Format
*
*
*
*/
@JsonProperty("encoding_format")
private String encodingFormat;
/**
* User
*
*
*
*/
@JsonProperty("user")
private String user;
/**
* Input
*
*
*
*/
@JsonProperty("input")
public List getInput() {
return input;
}
/**
* Input
*
*
*
*/
@JsonProperty("input")
public void setInput(List input) {
this.input = input;
}
public EmbeddingsReq withInput(List input) {
this.input = input;
return this;
}
/**
* Encoding Format
*
*
*
*/
@JsonProperty("encoding_format")
public String getEncodingFormat() {
return encodingFormat;
}
/**
* Encoding Format
*
*
*
*/
@JsonProperty("encoding_format")
public void setEncodingFormat(String encodingFormat) {
this.encodingFormat = encodingFormat;
}
public EmbeddingsReq withEncodingFormat(String encodingFormat) {
this.encodingFormat = encodingFormat;
return this;
}
/**
* User
*
*
*
*/
@JsonProperty("user")
public String getUser() {
return user;
}
/**
* User
*
*
*
*/
@JsonProperty("user")
public void setUser(String user) {
this.user = user;
}
public EmbeddingsReq withUser(String user) {
this.user = user;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(EmbeddingsReq.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("input");
sb.append('=');
sb.append(((this.input == null)?"":this.input));
sb.append(',');
sb.append("encodingFormat");
sb.append('=');
sb.append(((this.encodingFormat == null)?"":this.encodingFormat));
sb.append(',');
sb.append("user");
sb.append('=');
sb.append(((this.user == null)?"":this.user));
sb.append(',');
if (sb.charAt((sb.length()- 1)) == ',') {
sb.setCharAt((sb.length()- 1), ']');
} else {
sb.append(']');
}
return sb.toString();
}
@Override
public int hashCode() {
int result = 1;
result = ((result* 31)+((this.input == null)? 0 :this.input.hashCode()));
result = ((result* 31)+((this.encodingFormat == null)? 0 :this.encodingFormat.hashCode()));
result = ((result* 31)+((this.user == null)? 0 :this.user.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof EmbeddingsReq) == false) {
return false;
}
EmbeddingsReq rhs = ((EmbeddingsReq) other);
return ((((this.input == rhs.input)||((this.input!= null)&&this.input.equals(rhs.input)))&&((this.encodingFormat == rhs.encodingFormat)||((this.encodingFormat!= null)&&this.encodingFormat.equals(rhs.encodingFormat))))&&((this.user == rhs.user)||((this.user!= null)&&this.user.equals(rhs.user))));
}
}