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

com.volcengine.model.maas.api.v2.Logprobs 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;


/**
 * Logprobs
 * 

* * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "text_offset", "token_logprobs", "tokens", "top_logprobs" }) @Generated("jsonschema2pojo") public class Logprobs { /** * Text Offset *

* * */ @JsonProperty("text_offset") private List textOffset = new ArrayList(); /** * Token Logprobs *

* * */ @JsonProperty("token_logprobs") private List tokenLogprobs = new ArrayList(); /** * Tokens *

* * */ @JsonProperty("tokens") private List tokens = new ArrayList(); /** * Top Logprobs *

* * */ @JsonProperty("top_logprobs") private List topLogprobs = new ArrayList(); /** * Text Offset *

* * */ @JsonProperty("text_offset") public List getTextOffset() { return textOffset; } /** * Text Offset *

* * */ @JsonProperty("text_offset") public void setTextOffset(List textOffset) { this.textOffset = textOffset; } public Logprobs withTextOffset(List textOffset) { this.textOffset = textOffset; return this; } /** * Token Logprobs *

* * */ @JsonProperty("token_logprobs") public List getTokenLogprobs() { return tokenLogprobs; } /** * Token Logprobs *

* * */ @JsonProperty("token_logprobs") public void setTokenLogprobs(List tokenLogprobs) { this.tokenLogprobs = tokenLogprobs; } public Logprobs withTokenLogprobs(List tokenLogprobs) { this.tokenLogprobs = tokenLogprobs; return this; } /** * Tokens *

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

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

* * */ @JsonProperty("top_logprobs") public List getTopLogprobs() { return topLogprobs; } /** * Top Logprobs *

* * */ @JsonProperty("top_logprobs") public void setTopLogprobs(List topLogprobs) { this.topLogprobs = topLogprobs; } public Logprobs withTopLogprobs(List topLogprobs) { this.topLogprobs = topLogprobs; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(Logprobs.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("textOffset"); sb.append('='); sb.append(((this.textOffset == null)?"":this.textOffset)); sb.append(','); sb.append("tokenLogprobs"); sb.append('='); sb.append(((this.tokenLogprobs == null)?"":this.tokenLogprobs)); sb.append(','); sb.append("tokens"); sb.append('='); sb.append(((this.tokens == null)?"":this.tokens)); sb.append(','); sb.append("topLogprobs"); sb.append('='); sb.append(((this.topLogprobs == null)?"":this.topLogprobs)); 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.textOffset == null)? 0 :this.textOffset.hashCode())); result = ((result* 31)+((this.tokenLogprobs == null)? 0 :this.tokenLogprobs.hashCode())); result = ((result* 31)+((this.topLogprobs == null)? 0 :this.topLogprobs.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof Logprobs) == false) { return false; } Logprobs rhs = ((Logprobs) other); return (((((this.tokens == rhs.tokens)||((this.tokens!= null)&&this.tokens.equals(rhs.tokens)))&&((this.textOffset == rhs.textOffset)||((this.textOffset!= null)&&this.textOffset.equals(rhs.textOffset))))&&((this.tokenLogprobs == rhs.tokenLogprobs)||((this.tokenLogprobs!= null)&&this.tokenLogprobs.equals(rhs.tokenLogprobs))))&&((this.topLogprobs == rhs.topLogprobs)||((this.topLogprobs!= null)&&this.topLogprobs.equals(rhs.topLogprobs)))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy