All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.volcengine.model.maas.api.v2.TokenizeResp Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version

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;


/**
 * TokenizeResp
 * 

* * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "total_tokens", "tokens", "token_ids", "offset_mapping", "error" }) @Generated("jsonschema2pojo") public class TokenizeResp extends BaseResponse { /** * Total Tokens *

* * */ @JsonProperty("total_tokens") private Integer totalTokens; /** * Tokens *

* * */ @JsonProperty("tokens") private List tokens = new ArrayList(); /** * Token Ids *

* * */ @JsonProperty("token_ids") private List tokenIds = new ArrayList(); /** * Offset Mapping *

* * */ @JsonProperty("offset_mapping") private List> offsetMapping = new ArrayList>(); /** * Error *

* * */ @JsonProperty("error") private Error error; /** * Total Tokens *

* * */ @JsonProperty("total_tokens") public Integer getTotalTokens() { return totalTokens; } /** * Total Tokens *

* * */ @JsonProperty("total_tokens") public void setTotalTokens(Integer totalTokens) { this.totalTokens = totalTokens; } public TokenizeResp withTotalTokens(Integer totalTokens) { this.totalTokens = totalTokens; return this; } /** * Tokens *

* * */ @JsonProperty("tokens") public List getTokens() { return tokens; } /** * Tokens *

* * */ @JsonProperty("tokens") public void setTokens(List tokens) { this.tokens = tokens; } public TokenizeResp withTokens(List tokens) { this.tokens = tokens; return this; } /** * Token Ids *

* * */ @JsonProperty("token_ids") public List getTokenIds() { return tokenIds; } /** * Token Ids *

* * */ @JsonProperty("token_ids") public void setTokenIds(List tokenIds) { this.tokenIds = tokenIds; } public TokenizeResp withTokenIds(List tokenIds) { this.tokenIds = tokenIds; return this; } /** * Offset Mapping *

* * */ @JsonProperty("offset_mapping") public List> getOffsetMapping() { return offsetMapping; } /** * Offset Mapping *

* * */ @JsonProperty("offset_mapping") public void setOffsetMapping(List> offsetMapping) { this.offsetMapping = offsetMapping; } public TokenizeResp withOffsetMapping(List> offsetMapping) { this.offsetMapping = offsetMapping; return this; } /** * Error *

* * */ @JsonProperty("error") public Error getError() { return error; } /** * Error *

* * */ @JsonProperty("error") public void setError(Error error) { this.error = error; } public TokenizeResp withError(Error error) { this.error = error; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(TokenizeResp.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("totalTokens"); sb.append('='); sb.append(((this.totalTokens == null)?"":this.totalTokens)); sb.append(','); sb.append("tokens"); sb.append('='); sb.append(((this.tokens == null)?"":this.tokens)); sb.append(','); sb.append("tokenIds"); sb.append('='); sb.append(((this.tokenIds == null)?"":this.tokenIds)); sb.append(','); sb.append("offsetMapping"); sb.append('='); sb.append(((this.offsetMapping == null)?"":this.offsetMapping)); sb.append(','); sb.append("error"); sb.append('='); sb.append(((this.error == null)?"":this.error)); 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.tokens == null)? 0 :this.tokens.hashCode())); result = ((result* 31)+((this.offsetMapping == null)? 0 :this.offsetMapping.hashCode())); result = ((result* 31)+((this.tokenIds == null)? 0 :this.tokenIds.hashCode())); result = ((result* 31)+((this.error == null)? 0 :this.error.hashCode())); result = ((result* 31)+((this.totalTokens == null)? 0 :this.totalTokens.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof TokenizeResp) == false) { return false; } TokenizeResp rhs = ((TokenizeResp) other); return ((((((this.tokens == rhs.tokens)||((this.tokens!= null)&&this.tokens.equals(rhs.tokens)))&&((this.offsetMapping == rhs.offsetMapping)||((this.offsetMapping!= null)&&this.offsetMapping.equals(rhs.offsetMapping))))&&((this.tokenIds == rhs.tokenIds)||((this.tokenIds!= null)&&this.tokenIds.equals(rhs.tokenIds))))&&((this.error == rhs.error)||((this.error!= null)&&this.error.equals(rhs.error))))&&((this.totalTokens == rhs.totalTokens)||((this.totalTokens!= null)&&this.totalTokens.equals(rhs.totalTokens)))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy