Class PacketClientGCMsgProtobuf

  • All Implemented Interfaces:
    IPacketGCMsg

    public class PacketClientGCMsgProtobuf
    extends java.lang.Object
    implements IPacketGCMsg
    Represents a protobuf backed packet message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getData()
      Gets the underlying data that represents this client message.
      int getMsgType()
      Gets the network message type of this packet message.
      JobID getSourceJobID()
      Gets the source job id for this packet message.
      JobID getTargetJobID()
      Gets the target job id for this packet message.
      boolean isProto()
      Gets a value indicating whether this packet message is protobuf backed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PacketClientGCMsgProtobuf

        public PacketClientGCMsgProtobuf​(int eMsg,
                                         byte[] data)
        Initializes a new instance of the PacketClientGCMsgProtobuf class.
        Parameters:
        eMsg - The network message type for this packet message.
        data - The data.
    • Method Detail

      • isProto

        public boolean isProto()
        Description copied from interface: IPacketGCMsg
        Gets a value indicating whether this packet message is protobuf backed.
        Specified by:
        isProto in interface IPacketGCMsg
        Returns:
        true if this instance is protobuf backed; otherwise, false.
      • getMsgType

        public int getMsgType()
        Description copied from interface: IPacketGCMsg
        Gets the network message type of this packet message.
        Specified by:
        getMsgType in interface IPacketGCMsg
        Returns:
        The message type.
      • getTargetJobID

        public JobID getTargetJobID()
        Description copied from interface: IPacketGCMsg
        Gets the target job id for this packet message.
        Specified by:
        getTargetJobID in interface IPacketGCMsg
        Returns:
        The target job id.
      • getSourceJobID

        public JobID getSourceJobID()
        Description copied from interface: IPacketGCMsg
        Gets the source job id for this packet message.
        Specified by:
        getSourceJobID in interface IPacketGCMsg
        Returns:
        The source job id.
      • getData

        public byte[] getData()
        Description copied from interface: IPacketGCMsg
        Gets the underlying data that represents this client message.
        Specified by:
        getData in interface IPacketGCMsg
        Returns:
        The data.