Package dev.vality.fistful.p2p_session
Class Session
java.lang.Object
dev.vality.fistful.p2p_session.Session
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Session>,org.apache.thrift.TBase<Session,Session._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
date="2022-06-27")
public class Session
extends Object
implements org.apache.thrift.TBase<Session,Session._Fields>, Serializable, Cloneable, Comparable<Session>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSession._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description longdomain_revisionStringidstatic Map<Session._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapP2PTransferp2p_transferlongparty_revisionintprovider_legacyRouterouteSessionStatusstatus -
Constructor Summary
Constructors Constructor Description Session()Session(Session other)Performs a deep copy on other.Session(String id, SessionStatus status, P2PTransfer p2p_transfer, Route route, long domain_revision, long party_revision) -
Method Summary
Modifier and Type Method Description voidclear()intcompareTo(Session other)SessiondeepCopy()booleanequals(Session that)booleanequals(Object that)Session._FieldsfieldForId(int fieldId)longgetDomainRevision()Map<Session._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()Session._Fields[]getFields()ObjectgetFieldValue(Session._Fields field)StringgetId()P2PTransfergetP2pTransfer()longgetPartyRevision()intgetProviderLegacy()RoutegetRoute()SessionStatusgetStatus()inthashCode()booleanisSet(Session._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetDomainRevision()Returns true if field domain_revision is set (has been assigned a value) and false otherwisebooleanisSetId()Returns true if field id is set (has been assigned a value) and false otherwisebooleanisSetP2pTransfer()Returns true if field p2p_transfer is set (has been assigned a value) and false otherwisebooleanisSetPartyRevision()Returns true if field party_revision is set (has been assigned a value) and false otherwisebooleanisSetProviderLegacy()Returns true if field provider_legacy is set (has been assigned a value) and false otherwisebooleanisSetRoute()Returns true if field route 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)SessionsetDomainRevision(long domain_revision)voidsetDomainRevisionIsSet(boolean value)voidsetFieldValue(Session._Fields field, Object value)SessionsetId(String id)voidsetIdIsSet(boolean value)SessionsetP2pTransfer(P2PTransfer p2p_transfer)voidsetP2pTransferIsSet(boolean value)SessionsetPartyRevision(long party_revision)voidsetPartyRevisionIsSet(boolean value)SessionsetProviderLegacy(int provider_legacy)voidsetProviderLegacyIsSet(boolean value)SessionsetRoute(Route route)voidsetRouteIsSet(boolean value)SessionsetStatus(SessionStatus status)voidsetStatusIsSet(boolean value)StringtoString()voidunsetDomainRevision()voidunsetId()voidunsetP2pTransfer()voidunsetPartyRevision()voidunsetProviderLegacy()voidunsetRoute()voidunsetStatus()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
id
-
status
-
p2p_transfer
-
route
-
domain_revision
public long domain_revision -
party_revision
public long party_revision -
provider_legacy
public int provider_legacy -
metaDataMap
-
-
Constructor Details
-
Session
public Session() -
Session
public Session(String id, SessionStatus status, P2PTransfer p2p_transfer, Route route, long domain_revision, long party_revision) -
Session
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<Session,Session._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<Session,Session._Fields>
-
getId
-
setId
-
unsetId
public void unsetId() -
isSetId
public boolean isSetId()Returns true if field id is set (has been assigned a value) and false otherwise -
setIdIsSet
public void setIdIsSet(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) -
getP2pTransfer
-
setP2pTransfer
-
unsetP2pTransfer
public void unsetP2pTransfer() -
isSetP2pTransfer
public boolean isSetP2pTransfer()Returns true if field p2p_transfer is set (has been assigned a value) and false otherwise -
setP2pTransferIsSet
public void setP2pTransferIsSet(boolean value) -
getRoute
-
setRoute
-
unsetRoute
public void unsetRoute() -
isSetRoute
public boolean isSetRoute()Returns true if field route is set (has been assigned a value) and false otherwise -
setRouteIsSet
public void setRouteIsSet(boolean value) -
getDomainRevision
public long getDomainRevision() -
setDomainRevision
-
unsetDomainRevision
public void unsetDomainRevision() -
isSetDomainRevision
public boolean isSetDomainRevision()Returns true if field domain_revision is set (has been assigned a value) and false otherwise -
setDomainRevisionIsSet
public void setDomainRevisionIsSet(boolean value) -
getPartyRevision
public long getPartyRevision() -
setPartyRevision
-
unsetPartyRevision
public void unsetPartyRevision() -
isSetPartyRevision
public boolean isSetPartyRevision()Returns true if field party_revision is set (has been assigned a value) and false otherwise -
setPartyRevisionIsSet
public void setPartyRevisionIsSet(boolean value) -
getProviderLegacy
public int getProviderLegacy() -
setProviderLegacy
-
unsetProviderLegacy
public void unsetProviderLegacy() -
isSetProviderLegacy
public boolean isSetProviderLegacy()Returns true if field provider_legacy is set (has been assigned a value) and false otherwise -
setProviderLegacyIsSet
public void setProviderLegacyIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<Session,Session._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<Session,Session._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<Session,Session._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Session>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<Session,Session._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<Session,Session._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<Session,Session._Fields>
-
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
-