Class Resolution

java.lang.Object
org.apache.thrift.TUnion<Resolution,​Resolution._Fields>
dev.vality.bouncer.decisions.Resolution
All Implemented Interfaces:
Serializable, Comparable<Resolution>, org.apache.thrift.TBase<Resolution,​Resolution._Fields>, org.apache.thrift.TSerializable

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

    • metaDataMap

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

  • Method Details

    • deepCopy

      public Resolution deepCopy()
    • allowed

      public static Resolution allowed​(ResolutionAllowed value)
    • restricted

      public static Resolution restricted​(ResolutionRestricted value)
    • forbidden

      public static Resolution forbidden​(ResolutionForbidden value)
    • checkType

      protected void checkType​(Resolution._Fields setField, Object value) throws ClassCastException
      Specified by:
      checkType in class org.apache.thrift.TUnion<Resolution,​Resolution._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<Resolution,​Resolution._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<Resolution,​Resolution._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<Resolution,​Resolution._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<Resolution,​Resolution._Fields>
      Throws:
      org.apache.thrift.TException
    • getFieldDesc

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

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

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

      public Resolution._Fields[] getFields()
    • getFieldMetaData

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

      public Resolution._Fields fieldForId​(int fieldId)
    • getAllowed

      public ResolutionAllowed getAllowed()
    • setAllowed

      public void setAllowed​(ResolutionAllowed value)
    • getRestricted

      public ResolutionRestricted getRestricted()
    • setRestricted

      public void setRestricted​(ResolutionRestricted value)
    • getForbidden

      public ResolutionForbidden getForbidden()
    • setForbidden

      public void setForbidden​(ResolutionForbidden value)
    • isSetAllowed

      public boolean isSetAllowed()
    • isSetRestricted

      public boolean isSetRestricted()
    • isSetForbidden

      public boolean isSetForbidden()
    • equals

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

      public boolean equals​(Resolution other)
    • compareTo

      public int compareTo​(Resolution other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object