Class P2PFailure

java.lang.Object
org.apache.thrift.TUnion<P2PFailure,​P2PFailure._Fields>
dev.vality.fistful.p2p_errors.P2PFailure
All Implemented Interfaces:
Serializable, Comparable<P2PFailure>, org.apache.thrift.TBase<P2PFailure,​P2PFailure._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
           date="2022-06-27")
public class P2PFailure
extends org.apache.thrift.TUnion<P2PFailure,​P2PFailure._Fields>
See Also:
Serialized Form
  • Field Details

    • metaDataMap

      public static final Map<P2PFailure._Fields,​org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

  • Method Details

    • deepCopy

      public P2PFailure deepCopy()
    • authorization_failed

      public static P2PFailure authorization_failed​(AuthorizationFailure value)
    • no_route_found

      public static P2PFailure no_route_found​(GeneralFailure value)
    • checkType

      protected void checkType​(P2PFailure._Fields setField, Object value) throws ClassCastException
      Specified by:
      checkType in class org.apache.thrift.TUnion<P2PFailure,​P2PFailure._Fields>
      Throws:
      ClassCastException
    • standardSchemeReadValue

      protected Object standardSchemeReadValue​(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException
      Specified by:
      standardSchemeReadValue in class org.apache.thrift.TUnion<P2PFailure,​P2PFailure._Fields>
      Throws:
      org.apache.thrift.TException
    • standardSchemeWriteValue

      protected void standardSchemeWriteValue​(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      standardSchemeWriteValue in class org.apache.thrift.TUnion<P2PFailure,​P2PFailure._Fields>
      Throws:
      org.apache.thrift.TException
    • tupleSchemeReadValue

      protected Object tupleSchemeReadValue​(org.apache.thrift.protocol.TProtocol iprot, short fieldID) throws org.apache.thrift.TException
      Specified by:
      tupleSchemeReadValue in class org.apache.thrift.TUnion<P2PFailure,​P2PFailure._Fields>
      Throws:
      org.apache.thrift.TException
    • tupleSchemeWriteValue

      protected void tupleSchemeWriteValue​(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      tupleSchemeWriteValue in class org.apache.thrift.TUnion<P2PFailure,​P2PFailure._Fields>
      Throws:
      org.apache.thrift.TException
    • getFieldDesc

      protected org.apache.thrift.protocol.TField getFieldDesc​(P2PFailure._Fields setField)
      Specified by:
      getFieldDesc in class org.apache.thrift.TUnion<P2PFailure,​P2PFailure._Fields>
    • getStructDesc

      protected org.apache.thrift.protocol.TStruct getStructDesc()
      Specified by:
      getStructDesc in class org.apache.thrift.TUnion<P2PFailure,​P2PFailure._Fields>
    • enumForId

      protected P2PFailure._Fields enumForId​(short id)
      Specified by:
      enumForId in class org.apache.thrift.TUnion<P2PFailure,​P2PFailure._Fields>
    • getFields

      public P2PFailure._Fields[] getFields()
    • getFieldMetaData

      public Map<P2PFailure._Fields,​org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
    • fieldForId

      public P2PFailure._Fields fieldForId​(int fieldId)
    • getAuthorizationFailed

      public AuthorizationFailure getAuthorizationFailed()
    • setAuthorizationFailed

      public void setAuthorizationFailed​(AuthorizationFailure value)
    • getNoRouteFound

      public GeneralFailure getNoRouteFound()
    • setNoRouteFound

      public void setNoRouteFound​(GeneralFailure value)
    • isSetAuthorizationFailed

      public boolean isSetAuthorizationFailed()
    • isSetNoRouteFound

      public boolean isSetNoRouteFound()
    • equals

      public boolean equals​(Object other)
      Overrides:
      equals in class Object
    • equals

      public boolean equals​(P2PFailure other)
    • compareTo

      public int compareTo​(P2PFailure other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object