Package dev.vality.damsel.messages
Class Conversation
java.lang.Object
dev.vality.damsel.messages.Conversation
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Conversation>,org.apache.thrift.TBase<Conversation,Conversation._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
date="2022-11-14")
public class Conversation
extends Object
implements org.apache.thrift.TBase<Conversation,Conversation._Fields>, Serializable, Cloneable, Comparable<Conversation>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConversation._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description Stringconversation_idList<Message>messagesstatic Map<Conversation._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapConversationStatusstatus -
Constructor Summary
Constructors Constructor Description Conversation()Conversation(Conversation other)Performs a deep copy on other.Conversation(String conversation_id, List<Message> messages, ConversationStatus status) -
Method Summary
Modifier and Type Method Description voidaddToMessages(Message elem)voidclear()intcompareTo(Conversation other)ConversationdeepCopy()booleanequals(Conversation that)booleanequals(Object that)Conversation._FieldsfieldForId(int fieldId)StringgetConversationId()Map<Conversation._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()Conversation._Fields[]getFields()ObjectgetFieldValue(Conversation._Fields field)List<Message>getMessages()Iterator<Message>getMessagesIterator()intgetMessagesSize()ConversationStatusgetStatus()inthashCode()booleanisSet(Conversation._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetConversationId()Returns true if field conversation_id is set (has been assigned a value) and false otherwisebooleanisSetMessages()Returns true if field messages is set (has been assigned a value) and false otherwisebooleanisSetStatus()Returns true if field status is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)ConversationsetConversationId(String conversation_id)voidsetConversationIdIsSet(boolean value)voidsetFieldValue(Conversation._Fields field, Object value)ConversationsetMessages(List<Message> messages)voidsetMessagesIsSet(boolean value)ConversationsetStatus(ConversationStatus status)voidsetStatusIsSet(boolean value)StringtoString()voidunsetConversationId()voidunsetMessages()voidunsetStatus()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
conversation_id
-
messages
-
status
-
metaDataMap
public static final Map<Conversation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
Conversation
public Conversation() -
Conversation
-
Conversation
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<Conversation,Conversation._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<Conversation,Conversation._Fields>
-
getConversationId
-
setConversationId
-
unsetConversationId
public void unsetConversationId() -
isSetConversationId
public boolean isSetConversationId()Returns true if field conversation_id is set (has been assigned a value) and false otherwise -
setConversationIdIsSet
public void setConversationIdIsSet(boolean value) -
getMessagesSize
public int getMessagesSize() -
getMessagesIterator
-
addToMessages
-
getMessages
-
setMessages
-
unsetMessages
public void unsetMessages() -
isSetMessages
public boolean isSetMessages()Returns true if field messages is set (has been assigned a value) and false otherwise -
setMessagesIsSet
public void setMessagesIsSet(boolean value) -
getStatus
-
setStatus
-
unsetStatus
public void unsetStatus() -
isSetStatus
public boolean isSetStatus()Returns true if field status is set (has been assigned a value) and false otherwise -
setStatusIsSet
public void setStatusIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<Conversation,Conversation._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<Conversation,Conversation._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<Conversation,Conversation._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Conversation>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<Conversation,Conversation._Fields>
-
getFields
-
getFieldMetaData
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-