Package com.twitter.clientlib.model
Class FilteredStreamingTweet
- java.lang.Object
-
- com.twitter.clientlib.model.FilteredStreamingTweet
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class FilteredStreamingTweet extends Object
A tweet or error that can be returned by the streaming tweet API. The values returned with a successful streamed tweet. Includes the user provided rules that the tweet matched.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFilteredStreamingTweet.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATAstatic StringSERIALIZED_NAME_ERRORSstatic StringSERIALIZED_NAME_INCLUDESstatic StringSERIALIZED_NAME_MATCHING_RULES
-
Constructor Summary
Constructors Constructor Description FilteredStreamingTweet()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_DATA
public static final String SERIALIZED_NAME_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MATCHING_RULES
public static final String SERIALIZED_NAME_MATCHING_RULES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INCLUDES
public static final String SERIALIZED_NAME_INCLUDES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERRORS
public static final String SERIALIZED_NAME_ERRORS
- See Also:
- Constant Field Values
-
-
Method Detail
-
data
public FilteredStreamingTweet data(Tweet data)
-
setData
public void setData(Tweet data)
-
matchingRules
public FilteredStreamingTweet matchingRules(List<FilteredStreamingTweetMatchingRules> matchingRules)
-
addMatchingRulesItem
public FilteredStreamingTweet addMatchingRulesItem(FilteredStreamingTweetMatchingRules matchingRulesItem)
-
getMatchingRules
@Nullable public List<FilteredStreamingTweetMatchingRules> getMatchingRules()
The list of rules which matched the tweet- Returns:
- matchingRules
-
setMatchingRules
public void setMatchingRules(List<FilteredStreamingTweetMatchingRules> matchingRules)
-
includes
public FilteredStreamingTweet includes(Expansions includes)
-
getIncludes
@Nullable public Expansions getIncludes()
Get includes- Returns:
- includes
-
setIncludes
public void setIncludes(Expansions includes)
-
errors
public FilteredStreamingTweet errors(List<Problem> errors)
-
addErrorsItem
public FilteredStreamingTweet addErrorsItem(Problem errorsItem)
-
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 FilteredStreamingTweet
-
fromJson
public static FilteredStreamingTweet fromJson(String jsonString) throws IOException
Create an instance of FilteredStreamingTweet given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FilteredStreamingTweet
- Throws:
IOException- if the JSON string is invalid with respect to FilteredStreamingTweet
-
toJson
public String toJson()
Convert an instance of FilteredStreamingTweet to an JSON string- Returns:
- JSON string
-
-