* The collection of medical entities extracted from the input text and their associated information. For each * entity, the response provides the entity text, the entity category, where the entity text begins and ends, and * the level of confidence in the detection and analysis. Attributes and traits of the entity are also returned. *
*/ private java.util.List* Attributes extracted from the input text that couldn't be related to an entity. *
*/ private java.util.List
* If the result to the DetectEntitiesV2
operation was truncated, include the
* PaginationToken
to fetch the next page of entities.
*
* The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this * information to track the model used for a particular batch of documents. *
*/ private String modelVersion; /** ** The collection of medical entities extracted from the input text and their associated information. For each * entity, the response provides the entity text, the entity category, where the entity text begins and ends, and * the level of confidence in the detection and analysis. Attributes and traits of the entity are also returned. *
* * @return The collection of medical entities extracted from the input text and their associated information. For * each entity, the response provides the entity text, the entity category, where the entity text begins and * ends, and the level of confidence in the detection and analysis. Attributes and traits of the entity are * also returned. */ public java.util.List* The collection of medical entities extracted from the input text and their associated information. For each * entity, the response provides the entity text, the entity category, where the entity text begins and ends, and * the level of confidence in the detection and analysis. Attributes and traits of the entity are also returned. *
* * @param entities * The collection of medical entities extracted from the input text and their associated information. For * each entity, the response provides the entity text, the entity category, where the entity text begins and * ends, and the level of confidence in the detection and analysis. Attributes and traits of the entity are * also returned. */ public void setEntities(java.util.Collection* The collection of medical entities extracted from the input text and their associated information. For each * entity, the response provides the entity text, the entity category, where the entity text begins and ends, and * the level of confidence in the detection and analysis. Attributes and traits of the entity are also returned. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEntities(java.util.Collection)} or {@link #withEntities(java.util.Collection)} if you want to override * the existing values. *
* * @param entities * The collection of medical entities extracted from the input text and their associated information. For * each entity, the response provides the entity text, the entity category, where the entity text begins and * ends, and the level of confidence in the detection and analysis. Attributes and traits of the entity are * also returned. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectEntitiesV2Result withEntities(Entity... entities) { if (this.entities == null) { setEntities(new java.util.ArrayList* The collection of medical entities extracted from the input text and their associated information. For each * entity, the response provides the entity text, the entity category, where the entity text begins and ends, and * the level of confidence in the detection and analysis. Attributes and traits of the entity are also returned. *
* * @param entities * The collection of medical entities extracted from the input text and their associated information. For * each entity, the response provides the entity text, the entity category, where the entity text begins and * ends, and the level of confidence in the detection and analysis. Attributes and traits of the entity are * also returned. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectEntitiesV2Result withEntities(java.util.Collection* Attributes extracted from the input text that couldn't be related to an entity. *
* * @return Attributes extracted from the input text that couldn't be related to an entity. */ public java.util.List* Attributes extracted from the input text that couldn't be related to an entity. *
* * @param unmappedAttributes * Attributes extracted from the input text that couldn't be related to an entity. */ public void setUnmappedAttributes(java.util.Collection* Attributes extracted from the input text that couldn't be related to an entity. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUnmappedAttributes(java.util.Collection)} or {@link #withUnmappedAttributes(java.util.Collection)} if * you want to override the existing values. *
* * @param unmappedAttributes * Attributes extracted from the input text that couldn't be related to an entity. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectEntitiesV2Result withUnmappedAttributes(UnmappedAttribute... unmappedAttributes) { if (this.unmappedAttributes == null) { setUnmappedAttributes(new java.util.ArrayList* Attributes extracted from the input text that couldn't be related to an entity. *
* * @param unmappedAttributes * Attributes extracted from the input text that couldn't be related to an entity. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectEntitiesV2Result withUnmappedAttributes(java.util.Collection
* If the result to the DetectEntitiesV2
operation was truncated, include the
* PaginationToken
to fetch the next page of entities.
*
DetectEntitiesV2
operation was truncated, include the
* PaginationToken
to fetch the next page of entities.
*/
public void setPaginationToken(String paginationToken) {
this.paginationToken = paginationToken;
}
/**
*
* If the result to the DetectEntitiesV2
operation was truncated, include the
* PaginationToken
to fetch the next page of entities.
*
DetectEntitiesV2
operation was truncated, include the
* PaginationToken
to fetch the next page of entities.
*/
public String getPaginationToken() {
return this.paginationToken;
}
/**
*
* If the result to the DetectEntitiesV2
operation was truncated, include the
* PaginationToken
to fetch the next page of entities.
*
DetectEntitiesV2
operation was truncated, include the
* PaginationToken
to fetch the next page of entities.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DetectEntitiesV2Result withPaginationToken(String paginationToken) {
setPaginationToken(paginationToken);
return this;
}
/**
* * The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this * information to track the model used for a particular batch of documents. *
* * @param modelVersion * The version of the model used to analyze the documents. The version number looks like X.X.X. You can use * this information to track the model used for a particular batch of documents. */ public void setModelVersion(String modelVersion) { this.modelVersion = modelVersion; } /** ** The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this * information to track the model used for a particular batch of documents. *
* * @return The version of the model used to analyze the documents. The version number looks like X.X.X. You can use * this information to track the model used for a particular batch of documents. */ public String getModelVersion() { return this.modelVersion; } /** ** The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this * information to track the model used for a particular batch of documents. *
* * @param modelVersion * The version of the model used to analyze the documents. The version number looks like X.X.X. You can use * this information to track the model used for a particular batch of documents. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectEntitiesV2Result withModelVersion(String modelVersion) { setModelVersion(modelVersion); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getEntities() != null) sb.append("Entities: ").append(getEntities()).append(","); if (getUnmappedAttributes() != null) sb.append("UnmappedAttributes: ").append(getUnmappedAttributes()).append(","); if (getPaginationToken() != null) sb.append("PaginationToken: ").append(getPaginationToken()).append(","); if (getModelVersion() != null) sb.append("ModelVersion: ").append(getModelVersion()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DetectEntitiesV2Result == false) return false; DetectEntitiesV2Result other = (DetectEntitiesV2Result) obj; if (other.getEntities() == null ^ this.getEntities() == null) return false; if (other.getEntities() != null && other.getEntities().equals(this.getEntities()) == false) return false; if (other.getUnmappedAttributes() == null ^ this.getUnmappedAttributes() == null) return false; if (other.getUnmappedAttributes() != null && other.getUnmappedAttributes().equals(this.getUnmappedAttributes()) == false) return false; if (other.getPaginationToken() == null ^ this.getPaginationToken() == null) return false; if (other.getPaginationToken() != null && other.getPaginationToken().equals(this.getPaginationToken()) == false) return false; if (other.getModelVersion() == null ^ this.getModelVersion() == null) return false; if (other.getModelVersion() != null && other.getModelVersion().equals(this.getModelVersion()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEntities() == null) ? 0 : getEntities().hashCode()); hashCode = prime * hashCode + ((getUnmappedAttributes() == null) ? 0 : getUnmappedAttributes().hashCode()); hashCode = prime * hashCode + ((getPaginationToken() == null) ? 0 : getPaginationToken().hashCode()); hashCode = prime * hashCode + ((getModelVersion() == null) ? 0 : getModelVersion().hashCode()); return hashCode; } @Override public DetectEntitiesV2Result clone() { try { return (DetectEntitiesV2Result) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }