public class SurveyRequestMessage extends java.lang.Object implements XdrElement
struct SurveyRequestMessage
{
NodeID surveyorPeerID;
NodeID surveyedPeerID;
uint32 ledgerNum;
Curve25519Public encryptionKey;
SurveyMessageCommandType commandType;
};
| Modifier and Type | Class and Description |
|---|---|
static class |
SurveyRequestMessage.SurveyRequestMessageBuilder |
| Constructor and Description |
|---|
SurveyRequestMessage() |
SurveyRequestMessage(NodeID surveyorPeerID,
NodeID surveyedPeerID,
Uint32 ledgerNum,
Curve25519Public encryptionKey,
SurveyMessageCommandType commandType) |
| Modifier and Type | Method and Description |
|---|---|
static SurveyRequestMessage.SurveyRequestMessageBuilder |
builder() |
static SurveyRequestMessage |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static SurveyRequestMessage |
fromXdrBase64(java.lang.String xdr) |
static SurveyRequestMessage |
fromXdrByteArray(byte[] xdr) |
SurveyMessageCommandType |
getCommandType() |
Curve25519Public |
getEncryptionKey() |
Uint32 |
getLedgerNum() |
NodeID |
getSurveyedPeerID() |
NodeID |
getSurveyorPeerID() |
int |
hashCode() |
void |
setCommandType(SurveyMessageCommandType commandType) |
void |
setEncryptionKey(Curve25519Public encryptionKey) |
void |
setLedgerNum(Uint32 ledgerNum) |
void |
setSurveyedPeerID(NodeID surveyedPeerID) |
void |
setSurveyorPeerID(NodeID surveyorPeerID) |
SurveyRequestMessage.SurveyRequestMessageBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArraypublic SurveyRequestMessage()
public SurveyRequestMessage(NodeID surveyorPeerID, NodeID surveyedPeerID, Uint32 ledgerNum, Curve25519Public encryptionKey, SurveyMessageCommandType commandType)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static SurveyRequestMessage decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic static SurveyRequestMessage fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static SurveyRequestMessage fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOExceptionpublic static SurveyRequestMessage.SurveyRequestMessageBuilder builder()
public SurveyRequestMessage.SurveyRequestMessageBuilder toBuilder()
public NodeID getSurveyorPeerID()
public NodeID getSurveyedPeerID()
public Uint32 getLedgerNum()
public Curve25519Public getEncryptionKey()
public SurveyMessageCommandType getCommandType()
public void setSurveyorPeerID(NodeID surveyorPeerID)
public void setSurveyedPeerID(NodeID surveyedPeerID)
public void setLedgerNum(Uint32 ledgerNum)
public void setEncryptionKey(Curve25519Public encryptionKey)
public void setCommandType(SurveyMessageCommandType commandType)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object