Package com.twitter.clientlib.model
Class FullTextEntitiesAnnotations
- java.lang.Object
-
- com.twitter.clientlib.model.FullTextEntitiesAnnotations
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class FullTextEntitiesAnnotations extends Object
Annotation for entities based on the Tweet text.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFullTextEntitiesAnnotations.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ENDstatic StringSERIALIZED_NAME_NORMALIZED_TEXTstatic StringSERIALIZED_NAME_PROBABILITYstatic StringSERIALIZED_NAME_STARTstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description FullTextEntitiesAnnotations()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FullTextEntitiesAnnotationsend(Integer end)booleanequals(Object o)static FullTextEntitiesAnnotationsfromJson(String jsonString)Create an instance of FullTextEntitiesAnnotations given an JSON stringIntegergetEnd()Index (zero-based) at which position this entity ends.StringgetNormalizedText()Text used to determine annotation.DoublegetProbability()Confidence factor for annotation type.IntegergetStart()Index (zero-based) at which position this entity starts.StringgetType()Annotation type.inthashCode()FullTextEntitiesAnnotationsnormalizedText(String normalizedText)FullTextEntitiesAnnotationsprobability(Double probability)voidsetEnd(Integer end)voidsetNormalizedText(String normalizedText)voidsetProbability(Double probability)voidsetStart(Integer start)voidsetType(String type)FullTextEntitiesAnnotationsstart(Integer start)StringtoJson()Convert an instance of FullTextEntitiesAnnotations to an JSON stringStringtoString()FullTextEntitiesAnnotationstype(String type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_END
public static final String SERIALIZED_NAME_END
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_START
public static final String SERIALIZED_NAME_START
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NORMALIZED_TEXT
public static final String SERIALIZED_NAME_NORMALIZED_TEXT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROBABILITY
public static final String SERIALIZED_NAME_PROBABILITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
end
public FullTextEntitiesAnnotations end(Integer end)
-
getEnd
@Nonnull public Integer getEnd()
Index (zero-based) at which position this entity ends. The index is inclusive. minimum: 0- Returns:
- end
-
setEnd
public void setEnd(Integer end)
-
start
public FullTextEntitiesAnnotations start(Integer start)
-
getStart
@Nonnull public Integer getStart()
Index (zero-based) at which position this entity starts. The index is inclusive. minimum: 0- Returns:
- start
-
setStart
public void setStart(Integer start)
-
normalizedText
public FullTextEntitiesAnnotations normalizedText(String normalizedText)
-
getNormalizedText
@Nullable public String getNormalizedText()
Text used to determine annotation.- Returns:
- normalizedText
-
setNormalizedText
public void setNormalizedText(String normalizedText)
-
probability
public FullTextEntitiesAnnotations probability(Double probability)
-
getProbability
@Nullable public Double getProbability()
Confidence factor for annotation type. minimum: 0 maximum: 1- Returns:
- probability
-
setProbability
public void setProbability(Double probability)
-
type
public FullTextEntitiesAnnotations type(String type)
-
setType
public void setType(String type)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to FullTextEntitiesAnnotations
-
fromJson
public static FullTextEntitiesAnnotations fromJson(String jsonString) throws IOException
Create an instance of FullTextEntitiesAnnotations given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FullTextEntitiesAnnotations
- Throws:
IOException- if the JSON string is invalid with respect to FullTextEntitiesAnnotations
-
toJson
public String toJson()
Convert an instance of FullTextEntitiesAnnotations to an JSON string- Returns:
- JSON string
-
-