Class Lifetime

java.lang.Object
org.apache.thrift.TUnion<Lifetime,Lifetime._Fields>
dev.vality.damsel.domain.Lifetime
All Implemented Interfaces:
Serializable, Comparable<Lifetime>, org.apache.thrift.TBase<Lifetime,Lifetime._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.19.0)", date="2024-08-02") public class Lifetime extends org.apache.thrift.TUnion<Lifetime,Lifetime._Fields>
See Also:
  • Field Details

    • metaDataMap

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

  • Method Details

    • deepCopy

      public Lifetime deepCopy()
    • timestamp

      public static Lifetime timestamp(String value)
    • interval

      public static Lifetime interval(LifetimeInterval value)
    • checkType

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

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

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

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

      public Lifetime._Fields[] getFields()
    • getFieldMetaData

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

      public Lifetime._Fields fieldForId(int fieldId)
    • getTimestamp

      public String getTimestamp()
    • setTimestamp

      public void setTimestamp(String value)
    • getInterval

      public LifetimeInterval getInterval()
    • setInterval

      public void setInterval(LifetimeInterval value)
    • isSetTimestamp

      public boolean isSetTimestamp()
    • isSetInterval

      public boolean isSetInterval()
    • equals

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

      public boolean equals(Lifetime other)
    • compareTo

      public int compareTo(Lifetime other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object