Class Resource

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

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

    • metaDataMap

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

  • Method Details

    • deepCopy

      public Resource deepCopy()
    • internal

      public static Resource internal​(Internal value)
    • checkType

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

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

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

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

      public Resource._Fields[] getFields()
    • getFieldMetaData

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

      public Resource._Fields fieldForId​(int fieldId)
    • getInternal

      public Internal getInternal()
    • setInternal

      public void setInternal​(Internal value)
    • isSetInternal

      public boolean isSetInternal()
    • equals

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

      public boolean equals​(Resource other)
    • compareTo

      public int compareTo​(Resource other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object