Package org.stellar.sdk.xdr
Class SurveyResponseBody
java.lang.Object
org.stellar.sdk.xdr.SurveyResponseBody
- All Implemented Interfaces:
XdrElement
SurveyResponseBody's original definition in the XDR file is:
union SurveyResponseBody switch (SurveyMessageResponseType type)
{
case SURVEY_TOPOLOGY_RESPONSE_V2:
TopologyResponseBodyV2 topologyResponseBodyV2;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSurveyResponseBody(SurveyMessageResponseType discriminant, TopologyResponseBodyV2 topologyResponseBodyV2) Creates a newSurveyResponseBodyinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SurveyResponseBodydecode(XdrDataInputStream stream) static SurveyResponseBodydecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SurveyResponseBodystatic SurveyResponseBodyfromXdrBase64(String xdr) static SurveyResponseBodyfromXdrByteArray(byte[] xdr) Value of thediscriminantfield.Value of thetopologyResponseBodyV2field.inthashCode()voidsetDiscriminant(SurveyMessageResponseType discriminant) Value of thediscriminantfield.voidsetTopologyResponseBodyV2(TopologyResponseBodyV2 topologyResponseBodyV2) Value of thetopologyResponseBodyV2field.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SurveyResponseBody
public SurveyResponseBody() -
SurveyResponseBody
public SurveyResponseBody(SurveyMessageResponseType discriminant, TopologyResponseBodyV2 topologyResponseBodyV2) Creates a newSurveyResponseBodyinstance.- Parameters:
discriminant- thediscriminantfield valuetopologyResponseBodyV2- thetopologyResponseBodyV2field value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getDiscriminant
Value of thediscriminantfield.- Returns:
- the
discriminantfield value
-
getTopologyResponseBodyV2
Value of thetopologyResponseBodyV2field.- Returns:
- the
topologyResponseBodyV2field value
-
setDiscriminant
Value of thediscriminantfield.- Parameters:
discriminant- thediscriminantfield value
-
setTopologyResponseBodyV2
Value of thetopologyResponseBodyV2field.- Parameters:
topologyResponseBodyV2- thetopologyResponseBodyV2field value
-
equals
-
hashCode
public int hashCode() -
toString
-