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 class
FullTextEntitiesAnnotationsAllOf.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_NORMALIZED_TEXT
static String
SERIALIZED_NAME_PROBABILITY
static String
SERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description FullTextEntitiesAnnotationsAllOf()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static FullTextEntitiesAnnotationsAllOf
fromJson(String jsonString)
Create an instance of FullTextEntitiesAnnotationsAllOf given an JSON stringString
getNormalizedText()
Text used to determine annotation.Double
getProbability()
Confidence factor for annotation type.String
getType()
Annotation type.int
hashCode()
FullTextEntitiesAnnotationsAllOf
normalizedText(String normalizedText)
FullTextEntitiesAnnotationsAllOf
probability(Double probability)
void
setNormalizedText(String normalizedText)
void
setProbability(Double probability)
void
setType(String type)
String
toJson()
Convert an instance of FullTextEntitiesAnnotationsAllOf to an JSON stringString
toString()
FullTextEntitiesAnnotationsAllOf
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_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 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 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
-
-