Package com.twitter.clientlib.model
Class FullTextEntitiesAnnotationsAllOf
- java.lang.Object
-
- com.twitter.clientlib.model.FullTextEntitiesAnnotationsAllOf
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class FullTextEntitiesAnnotationsAllOf extends Object
Represents the data for the annotation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFullTextEntitiesAnnotationsAllOf.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_NORMALIZED_TEXTstatic StringSERIALIZED_NAME_PROBABILITYstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description FullTextEntitiesAnnotationsAllOf()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static FullTextEntitiesAnnotationsAllOffromJson(String jsonString)Create an instance of FullTextEntitiesAnnotationsAllOf given an JSON stringStringgetNormalizedText()Text used to determine annotation.DoublegetProbability()Confidence factor for annotation type.StringgetType()Annotation type.inthashCode()FullTextEntitiesAnnotationsAllOfnormalizedText(String normalizedText)FullTextEntitiesAnnotationsAllOfprobability(Double probability)voidsetNormalizedText(String normalizedText)voidsetProbability(Double probability)voidsetType(String type)StringtoJson()Convert an instance of FullTextEntitiesAnnotationsAllOf to an JSON stringStringtoString()FullTextEntitiesAnnotationsAllOftype(String type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
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
-
normalizedText
public FullTextEntitiesAnnotationsAllOf normalizedText(String normalizedText)
-
getNormalizedText
@Nullable public String getNormalizedText()
Text used to determine annotation.- Returns:
- normalizedText
-
setNormalizedText
public void setNormalizedText(String normalizedText)
-
probability
public FullTextEntitiesAnnotationsAllOf 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 FullTextEntitiesAnnotationsAllOf 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 FullTextEntitiesAnnotationsAllOf
-
fromJson
public static FullTextEntitiesAnnotationsAllOf fromJson(String jsonString) throws IOException
Create an instance of FullTextEntitiesAnnotationsAllOf given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FullTextEntitiesAnnotationsAllOf
- Throws:
IOException- if the JSON string is invalid with respect to FullTextEntitiesAnnotationsAllOf
-
toJson
public String toJson()
Convert an instance of FullTextEntitiesAnnotationsAllOf to an JSON string- Returns:
- JSON string
-
-