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 class
FullTextEntitiesAnnotations.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_END
static String
SERIALIZED_NAME_NORMALIZED_TEXT
static String
SERIALIZED_NAME_PROBABILITY
static String
SERIALIZED_NAME_START
static String
SERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description FullTextEntitiesAnnotations()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FullTextEntitiesAnnotations
end(Integer end)
boolean
equals(Object o)
static FullTextEntitiesAnnotations
fromJson(String jsonString)
Create an instance of FullTextEntitiesAnnotations given an JSON stringInteger
getEnd()
Index (zero-based) at which position this entity ends.String
getNormalizedText()
Text used to determine annotation.Double
getProbability()
Confidence factor for annotation type.Integer
getStart()
Index (zero-based) at which position this entity starts.String
getType()
Annotation type.int
hashCode()
FullTextEntitiesAnnotations
normalizedText(String normalizedText)
FullTextEntitiesAnnotations
probability(Double probability)
void
setEnd(Integer end)
void
setNormalizedText(String normalizedText)
void
setProbability(Double probability)
void
setStart(Integer start)
void
setType(String type)
FullTextEntitiesAnnotations
start(Integer start)
String
toJson()
Convert an instance of FullTextEntitiesAnnotations to an JSON stringString
toString()
FullTextEntitiesAnnotations
type(String type)
static void
validateJsonObject(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 IOException
Validates 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
-
-