Class Packet<T extends com.google.protobuf.Message>

  • Type Parameters:
    T - Type of the protobuf message

    public class Packet<T extends com.google.protobuf.Message>
    extends Object
    This class represents a "packet" as specified by the embedded sass protocol.
    • Constructor Detail

      • Packet

        public Packet​(int compilationId,
                      T message)
    • Method Detail

      • getSerializedSize

        public int getSerializedSize()
        See Also:
        MessageLite.getSerializedSize()
      • writeDelimitedTo

        public void writeDelimitedTo​(OutputStream outputStream)
                              throws IOException
        Throws:
        IOException
        See Also:
        MessageLite.writeDelimitedTo(OutputStream)
      • parseDelimitedFrom

        public static <T extends com.google.protobuf.Message> Packet<T> parseDelimitedFrom​(InputStream inputStream,
                                                                                           com.google.protobuf.Parser<T> parser)
                                                                                    throws IOException
        Throws:
        IOException
        See Also:
        OutboundMessage.parseDelimitedFrom(InputStream)
      • getCompilationId

        public int getCompilationId()
      • getMessage

        public T getMessage()
      • setCompilationId

        public void setCompilationId​(int compilationId)
      • setMessage

        public void setMessage​(T message)
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object