Class Packet<T extends com.google.protobuf.Message>
- java.lang.Object
-
- de.larsgrefer.sass.embedded.connection.Packet<T>
-
- 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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)intgetCompilationId()TgetMessage()intgetSerializedSize()inthashCode()static <T extends com.google.protobuf.Message>
Packet<T>parseDelimitedFrom(InputStream inputStream, com.google.protobuf.Parser<T> parser)voidsetCompilationId(int compilationId)voidsetMessage(T message)StringtoString()voidwriteDelimitedTo(OutputStream outputStream)
-
-
-
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)
-
-