Package org.stellar.sdk.xdr
Class SurveyResponseBody
java.lang.Object
org.stellar.sdk.xdr.SurveyResponseBody
SurveyResponseBody's original definition in the XDR file is:
union SurveyResponseBody switch (SurveyMessageResponseType type) { case SURVEY_TOPOLOGY_RESPONSE_V0: TopologyResponseBodyV0 topologyResponseBodyV0; case SURVEY_TOPOLOGY_RESPONSE_V1: TopologyResponseBodyV1 topologyResponseBodyV1; case SURVEY_TOPOLOGY_RESPONSE_V2: TopologyResponseBodyV2 topologyResponseBodyV2; };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionSurveyResponseBody
(SurveyMessageResponseType discriminant, TopologyResponseBodyV0 topologyResponseBodyV0, TopologyResponseBodyV1 topologyResponseBodyV1, TopologyResponseBodyV2 topologyResponseBodyV2) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static SurveyResponseBody
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static SurveyResponseBody
fromXdrBase64
(String xdr) static SurveyResponseBody
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setDiscriminant
(SurveyMessageResponseType discriminant) void
setTopologyResponseBodyV0
(TopologyResponseBodyV0 topologyResponseBodyV0) void
setTopologyResponseBodyV1
(TopologyResponseBodyV1 topologyResponseBodyV1) void
setTopologyResponseBodyV2
(TopologyResponseBodyV2 topologyResponseBodyV2) toString()
default String
default byte[]
-
Constructor Details
-
SurveyResponseBody
public SurveyResponseBody() -
SurveyResponseBody
public SurveyResponseBody(SurveyMessageResponseType discriminant, TopologyResponseBodyV0 topologyResponseBodyV0, TopologyResponseBodyV1 topologyResponseBodyV1, TopologyResponseBodyV2 topologyResponseBodyV2)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getTopologyResponseBodyV0
-
getTopologyResponseBodyV1
-
getTopologyResponseBodyV2
-
setDiscriminant
-
setTopologyResponseBodyV0
-
setTopologyResponseBodyV1
-
setTopologyResponseBodyV2
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-