Package com.twitter.clientlib.model
Class Get2TweetsSearchStreamResponse
- java.lang.Object
-
- com.twitter.clientlib.model.Get2TweetsSearchStreamResponse
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Get2TweetsSearchStreamResponse extends Object
Get2TweetsSearchStreamResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Get2TweetsSearchStreamResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_DATA
static String
SERIALIZED_NAME_ERRORS
static String
SERIALIZED_NAME_INCLUDES
-
Constructor Summary
Constructors Constructor Description Get2TweetsSearchStreamResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Get2TweetsSearchStreamResponse
addErrorsItem(Problem errorsItem)
Get2TweetsSearchStreamResponse
data(Tweet data)
boolean
equals(Object o)
Get2TweetsSearchStreamResponse
errors(List<Problem> errors)
static Get2TweetsSearchStreamResponse
fromJson(String jsonString)
Create an instance of Get2TweetsSearchStreamResponse given an JSON stringTweet
getData()
Get dataList<Problem>
getErrors()
Get errorsExpansions
getIncludes()
Get includesint
hashCode()
Get2TweetsSearchStreamResponse
includes(Expansions includes)
void
setData(Tweet data)
void
setErrors(List<Problem> errors)
void
setIncludes(Expansions includes)
String
toJson()
Convert an instance of Get2TweetsSearchStreamResponse to an JSON stringString
toString()
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DATA
public static final String SERIALIZED_NAME_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERRORS
public static final String SERIALIZED_NAME_ERRORS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INCLUDES
public static final String SERIALIZED_NAME_INCLUDES
- See Also:
- Constant Field Values
-
-
Method Detail
-
data
public Get2TweetsSearchStreamResponse data(Tweet data)
-
setData
public void setData(Tweet data)
-
errors
public Get2TweetsSearchStreamResponse errors(List<Problem> errors)
-
addErrorsItem
public Get2TweetsSearchStreamResponse addErrorsItem(Problem errorsItem)
-
includes
public Get2TweetsSearchStreamResponse includes(Expansions includes)
-
getIncludes
@Nullable public Expansions getIncludes()
Get includes- Returns:
- includes
-
setIncludes
public void setIncludes(Expansions includes)
-
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 Get2TweetsSearchStreamResponse
-
fromJson
public static Get2TweetsSearchStreamResponse fromJson(String jsonString) throws IOException
Create an instance of Get2TweetsSearchStreamResponse given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of Get2TweetsSearchStreamResponse
- Throws:
IOException
- if the JSON string is invalid with respect to Get2TweetsSearchStreamResponse
-
toJson
public String toJson()
Convert an instance of Get2TweetsSearchStreamResponse to an JSON string- Returns:
- JSON string
-
-