BodyType - The body type of this message.public class ClientGCMsgProtobuf<BodyType extends com.google.protobuf.GeneratedMessageV3.Builder<BodyType>> extends GCMsgBase<MsgGCHdrProtoBuf>
payload| Constructor and Description |
|---|
ClientGCMsgProtobuf(java.lang.Class<? extends com.google.protobuf.AbstractMessage> clazz,
int eMsg)
Initializes a new instance of the
ClientGCMsgProtobuf class. |
ClientGCMsgProtobuf(java.lang.Class<? extends com.google.protobuf.AbstractMessage> clazz,
int eMsg,
GCMsgBase<MsgGCHdrProtoBuf> msg)
Initializes a new instance of the
ClientGCMsgProtobuf class. |
ClientGCMsgProtobuf(java.lang.Class<? extends com.google.protobuf.AbstractMessage> clazz,
int eMsg,
GCMsgBase<MsgGCHdrProtoBuf> msg,
int payloadReserve)
Initializes a new instance of the
ClientGCMsgProtobuf class. |
ClientGCMsgProtobuf(java.lang.Class<? extends com.google.protobuf.AbstractMessage> clazz,
int eMsg,
int payloadReserve)
Initializes a new instance of the
ClientGCMsgProtobuf class. |
ClientGCMsgProtobuf(java.lang.Class<? extends com.google.protobuf.AbstractMessage> clazz,
IPacketGCMsg 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.
|
BodyType |
getBody() |
int |
getMsgType()
Gets the network message type of this client message.
|
in.dragonbra.javasteam.protobufs.steamclient.SteammessagesBase.CMsgProtoBufHeader.Builder |
getProtoHeader()
Shorthand accessor for the protobuf header.
|
JobID |
getSourceJobID()
Gets the source job id for this client message.
|
JobID |
getTargetJobID()
Gets the target job id for this client message.
|
boolean |
isProto()
Gets a value indicating whether this client message is protobuf backed.
|
byte[] |
serialize()
serializes this client message instance to a byte array.
|
void |
setSourceJobID(JobID jobID)
Sets the source job id for this client message.
|
void |
setTargetJobID(JobID jobID)
Sets the target job id for this client message.
|
getPayload, readByte, readBytes, readDouble, readFloat, readInt, readLong, readNullTermString, readNullTermString, readShort, seek, write, write, write, write, write, write, write, write, write, writeNullTermString, writeNullTermStringpublic ClientGCMsgProtobuf(java.lang.Class<? extends com.google.protobuf.AbstractMessage> clazz,
IPacketGCMsg msg)
ClientMsgProtobuf class.
This is a client send constructor.clazz - the type of the bodymsg - The network message type this client message represents.public ClientGCMsgProtobuf(java.lang.Class<? extends com.google.protobuf.AbstractMessage> clazz,
int eMsg)
ClientGCMsgProtobuf class.
This is a client send constructor.clazz - the type of the bodyeMsg - The network message type this client message represents.public ClientGCMsgProtobuf(java.lang.Class<? extends com.google.protobuf.AbstractMessage> clazz,
int eMsg,
int payloadReserve)
ClientGCMsgProtobuf class.
This is a client send constructor.clazz - the type of the bodyeMsg - The network message type this client message represents.payloadReserve - The number of bytes to initialize the payload capacity to.public ClientGCMsgProtobuf(java.lang.Class<? extends com.google.protobuf.AbstractMessage> clazz,
int eMsg,
GCMsgBase<MsgGCHdrProtoBuf> msg)
ClientGCMsgProtobuf class.
This is a reply constructor.clazz - the type of the bodyeMsg - The network message type this client message represents.msg - The message that this instance is a reply for.public ClientGCMsgProtobuf(java.lang.Class<? extends com.google.protobuf.AbstractMessage> clazz,
int eMsg,
GCMsgBase<MsgGCHdrProtoBuf> msg,
int payloadReserve)
ClientGCMsgProtobuf class.
This is a reply constructor.clazz - the type of the bodyeMsg - 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 boolean isProto()
IClientGCMsgpublic int getMsgType()
IClientGCMsgpublic JobID getTargetJobID()
IClientGCMsgpublic void setTargetJobID(JobID jobID)
IClientGCMsgjobID - The target job id.public JobID getSourceJobID()
IClientGCMsgpublic void setSourceJobID(JobID jobID)
IClientGCMsgjobID - The source job id.public byte[] serialize()
IClientGCMsgpublic void deserialize(byte[] data)
IClientGCMsgdata - The data representing a client message.public in.dragonbra.javasteam.protobufs.steamclient.SteammessagesBase.CMsgProtoBufHeader.Builder getProtoHeader()
public BodyType getBody()