U
- The builder for Tpublic final class ClientMsgProtobuf<U extends com.google.protobuf.GeneratedMessage.Builder<U>> extends MsgBase<MsgHdrProtoBuf>
Modifier and Type | Field and Description |
---|---|
private U |
body
Gets the body structure of this message.
|
private Class<? extends com.google.protobuf.AbstractMessage> |
clazz |
header, sessionID, sourceJobID, steamID, targetJobID
Constructor and Description |
---|
ClientMsgProtobuf(Class<? extends com.google.protobuf.AbstractMessage> clazz,
EMsg eMsg) |
ClientMsgProtobuf(Class<? extends com.google.protobuf.AbstractMessage> clazz,
EMsg eMsg,
int payloadReserve)
Initializes a new instance of the
ClientMsgProtobuf class. |
ClientMsgProtobuf(Class<? extends com.google.protobuf.AbstractMessage> clazz,
EMsg eMsg,
MsgBase<MsgHdrProtoBuf> msg) |
ClientMsgProtobuf(Class<? extends com.google.protobuf.AbstractMessage> clazz,
EMsg eMsg,
MsgBase<MsgHdrProtoBuf> msg,
int payloadReserve)
Initializes a new instance of the
ClientMsgProtobuf class. |
ClientMsgProtobuf(Class<? extends com.google.protobuf.AbstractMessage> clazz,
IPacketMsg msg)
Initializes a new instance of the
ClientMsgProtobuf class. |
Modifier and Type | Method and Description |
---|---|
void |
deSerialize(byte[] data)
Initializes this client message by deserializing the specified data.
|
EMsg |
getMsgType()
Gets the network message type of this client message.
|
uk.co.thomasc.steamkit.base.generated.SteammessagesBase.CMsgProtoBufHeader.Builder |
getProtoHeader()
Shorthand accessor for the protobuf header.
|
int |
getSessionID()
Gets the session id for this client message.
|
JobID |
getSourceJobID()
Gets or sets the target job id for this client message.
|
SteamID |
getSteamID()
Gets the
SteamID for this client message. |
JobID |
getTargetJobID()
Gets or sets the target job id for this client message.
|
boolean |
isProto()
Client messages of this type are always protobuf backed.
|
byte[] |
serialize()
serializes this client message instance to a byte array.
|
void |
setSessionID(int sessionID)
Sets the session id for this client message.
|
void |
setSourceJobID(JobID JobID)
Sets the target job id for this client message.
|
void |
setSteamID(SteamID steamID)
Sets the
SteamID for this client message. |
void |
setTargetJobID(JobID JobID)
Sets the target job id for this client message.
|
private U extends com.google.protobuf.GeneratedMessage.Builder<U> body
private Class<? extends com.google.protobuf.AbstractMessage> clazz
public ClientMsgProtobuf(Class<? extends com.google.protobuf.AbstractMessage> clazz, EMsg eMsg)
public ClientMsgProtobuf(Class<? extends com.google.protobuf.AbstractMessage> clazz, EMsg eMsg, int payloadReserve)
ClientMsgProtobuf
class.
This is a client send constructor.eMsg
- The network message type this client message represents.clazz
- The class of TpayloadReserve
- The number of bytes to initialize the payload capacity to.public ClientMsgProtobuf(Class<? extends com.google.protobuf.AbstractMessage> clazz, EMsg eMsg, MsgBase<MsgHdrProtoBuf> msg)
public ClientMsgProtobuf(Class<? extends com.google.protobuf.AbstractMessage> clazz, EMsg eMsg, MsgBase<MsgHdrProtoBuf> msg, int payloadReserve)
ClientMsgProtobuf
class.
This a reply constructor.eMsg
- The network message type this client message represents.msg
- The message that this instance is a reply for.payloadReserve
- The number of bytes to initialize the payload capacity to.public ClientMsgProtobuf(Class<? extends com.google.protobuf.AbstractMessage> clazz, IPacketMsg msg)
ClientMsgProtobuf
class.
This is a recieve constructor.msg
- The packet message to build this client message from.public boolean isProto()
public EMsg getMsgType()
public int getSessionID()
public void setSessionID(int sessionID)
public JobID getTargetJobID()
public void setTargetJobID(JobID JobID)
public JobID getSourceJobID()
public void setSourceJobID(JobID JobID)
public uk.co.thomasc.steamkit.base.generated.SteammessagesBase.CMsgProtoBufHeader.Builder getProtoHeader()
public byte[] serialize() throws IOException
serialize
in interface IClientMsg
serialize
in class MsgBase<MsgHdrProtoBuf>
IOException
public void deSerialize(byte[] data) throws IOException
deSerialize
in interface IClientMsg
deSerialize
in class MsgBase<MsgHdrProtoBuf>
data
- The data representing a client message.IOException
Copyright © 2012. All Rights Reserved.