Class MachineEvent

java.lang.Object
dev.vality.machinegun.stateproc.MachineEvent
All Implemented Interfaces:
Serializable, Cloneable, Comparable<MachineEvent>, org.apache.thrift.TBase<MachineEvent,​MachineEvent._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
           date="2022-05-24")
public class MachineEvent
extends Object
implements org.apache.thrift.TBase<MachineEvent,​MachineEvent._Fields>, Serializable, Cloneable, Comparable<MachineEvent>
See Also:
Serialized Form
  • Field Details

    • ns

      public String ns
      Пространство имён, в котором работает машина
    • id

      public String id
      Основной идентификатор машины
    • event

      public Event event
      Событие машины
    • metaDataMap

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

    • MachineEvent

      public MachineEvent()
    • MachineEvent

      public MachineEvent​(String ns, String id, Event event)
    • MachineEvent

      public MachineEvent​(MachineEvent other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public MachineEvent deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<MachineEvent,​MachineEvent._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<MachineEvent,​MachineEvent._Fields>
    • getNs

      public String getNs()
      Пространство имён, в котором работает машина
    • setNs

      public MachineEvent setNs​(String ns)
      Пространство имён, в котором работает машина
    • unsetNs

      public void unsetNs()
    • isSetNs

      public boolean isSetNs()
      Returns true if field ns is set (has been assigned a value) and false otherwise
    • setNsIsSet

      public void setNsIsSet​(boolean value)
    • getId

      public String getId()
      Основной идентификатор машины
    • setId

      public MachineEvent setId​(String id)
      Основной идентификатор машины
    • 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)
    • getEvent

      public Event getEvent()
      Событие машины
    • setEvent

      public MachineEvent setEvent​(Event event)
      Событие машины
    • unsetEvent

      public void unsetEvent()
    • isSetEvent

      public boolean isSetEvent()
      Returns true if field event is set (has been assigned a value) and false otherwise
    • setEventIsSet

      public void setEventIsSet​(boolean value)
    • setFieldValue

      public void setFieldValue​(MachineEvent._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<MachineEvent,​MachineEvent._Fields>
    • getFieldValue

      public Object getFieldValue​(MachineEvent._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<MachineEvent,​MachineEvent._Fields>
    • isSet

      public boolean isSet​(MachineEvent._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<MachineEvent,​MachineEvent._Fields>
    • equals

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

      public boolean equals​(MachineEvent that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo​(MachineEvent other)
      Specified by:
      compareTo in interface Comparable<MachineEvent>
    • fieldForId

      public MachineEvent._Fields fieldForId​(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<MachineEvent,​MachineEvent._Fields>
    • getFields

      public MachineEvent._Fields[] getFields()
      Specified by:
      getFields in interface org.apache.thrift.TBase<MachineEvent,​MachineEvent._Fields>
    • getFieldMetaData

      public Map<MachineEvent._Fields,​org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
      Specified by:
      getFieldMetaData in interface org.apache.thrift.TBase<MachineEvent,​MachineEvent._Fields>
    • read

      public void read​(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.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:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException