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, toXdrByteArray
public 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 XdrElement
java.io.IOException
public static SurveyRequestMessage decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static SurveyRequestMessage fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static SurveyRequestMessage fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object